Interface IDocumentAttributeDAO
-
- All Known Implementing Classes:
DocumentAttributeDAO
public interface IDocumentAttributeDAODocumentAttribute Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nAttributeId)Delete a record from the tablevoiddeleteRegularExpression(int nIdAttribute, int nIdExpression)Deletes an association between an attribute and a regular expressionjava.util.List<java.lang.String>getAttributeParameterValues(int nAttributeId, java.lang.String strParameterName)Returns the parameter values of an attributevoidinsert(DocumentAttribute documentAttribute)Insert a new record in the table.voidinsertRegularExpression(int nIdAttribute, int nIdExpression)Inserts an association between an attribute and a regular expressionDocumentAttributeload(int nAttributeId)Load the data of DocumentAttribute from the tablejava.util.List<DocumentAttribute>selectAllAttributesOfDocumentType(java.lang.String codeDocumentType)Get all attributes of document typejava.util.List<AttributeTypeParameter>selectAttributeParametersValues(int nAttributeId)Gets Attribute parameters valuesvoidselectAttributesByDocumentType(DocumentType documentType)Add attributes to a documentjava.util.Collection<java.lang.Integer>selectListRegularExpressionKeyByIdAttribute(int nIdAttribute)Loads all regular expression key associated to the attribute and returns them into a collectionvoidstore(DocumentAttribute documentAttribute)Update the record in the table
-
-
-
Method Detail
-
delete
void delete(int nAttributeId)
Delete a record from the table- Parameters:
nAttributeId- The DocumentAttribute Id
-
getAttributeParameterValues
java.util.List<java.lang.String> getAttributeParameterValues(int nAttributeId, java.lang.String strParameterName)Returns the parameter values of an attribute- Parameters:
nAttributeId- The attribute IdstrParameterName- The parameter name- Returns:
- The parameter values of an attribute
-
insert
void insert(DocumentAttribute documentAttribute)
Insert a new record in the table.- Parameters:
documentAttribute- The documentAttribute object
-
load
DocumentAttribute load(int nAttributeId)
Load the data of DocumentAttribute from the table- Parameters:
nAttributeId- The attribute Id- Returns:
- the instance of the DocumentAttribute
-
selectAttributeParametersValues
java.util.List<AttributeTypeParameter> selectAttributeParametersValues(int nAttributeId)
Gets Attribute parameters values- Parameters:
nAttributeId- The attribute Id- Returns:
- List of attribute parameters values
-
selectAttributesByDocumentType
void selectAttributesByDocumentType(DocumentType documentType)
Add attributes to a document- Parameters:
documentType- The document Type
-
selectAllAttributesOfDocumentType
java.util.List<DocumentAttribute> selectAllAttributesOfDocumentType(java.lang.String codeDocumentType)
Get all attributes of document type- Parameters:
codeDocumentType- The code document Type- Returns:
- listDocumentAttributes The list of all attributes of selected code document type
-
store
void store(DocumentAttribute documentAttribute)
Update the record in the table- Parameters:
documentAttribute- The document attribute
-
insertRegularExpression
void insertRegularExpression(int nIdAttribute, int nIdExpression)Inserts an association between an attribute and a regular expression- Parameters:
nIdAttribute- The identifier of the document attributenIdExpression- The identifier of the regular expression
-
deleteRegularExpression
void deleteRegularExpression(int nIdAttribute, int nIdExpression)Deletes an association between an attribute and a regular expression- Parameters:
nIdAttribute- The identifier of the document attributenIdExpression- The identifier of the regular expression
-
selectListRegularExpressionKeyByIdAttribute
java.util.Collection<java.lang.Integer> selectListRegularExpressionKeyByIdAttribute(int nIdAttribute)
Loads all regular expression key associated to the attribute and returns them into a collection- Parameters:
nIdAttribute- The identifier of the document attribute- Returns:
- A collection of regular expression key
-
-