public final class DocumentAttributeDAO extends Object implements IDocumentAttributeDAO
| Constructor and Description |
|---|
DocumentAttributeDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nAttributeId)
Delete a record from the table
|
void |
deleteRegularExpression(int nIdAttribute,
int nIdExpression)
Deletes an association between an attribute and a regular expression
|
List<String> |
getAttributeParameterValues(int nAttributeId,
String strParameterName)
Returns the parameter value of an attribute
|
void |
insert(DocumentAttribute documentAttribute)
Insert a new record in the table.
|
void |
insertRegularExpression(int nIdAttribute,
int nIdExpression)
Inserts an association between an attribute and a regular expression
|
DocumentAttribute |
load(int nAttributeId)
Load the data of DocumentAttribute from the table
|
List<DocumentAttribute> |
selectAllAttributesOfDocumentType(String codeDocumentType)
Get all attributes of document type
|
List<AttributeTypeParameter> |
selectAttributeParametersValues(int nAttributeId)
Gets Attribute parameters values
|
void |
selectAttributesByDocumentType(DocumentType documentType)
Add attributes to a document
|
Collection<Integer> |
selectListRegularExpressionKeyByIdAttribute(int nIdAttribute)
Loads all regular expression key associated to the attribute and returns them into a collection
|
void |
store(DocumentAttribute documentAttribute)
Update the record in the table
|
public void insert(DocumentAttribute documentAttribute)
insert in interface IDocumentAttributeDAOdocumentAttribute - The documentAttribute objectpublic DocumentAttribute load(int nAttributeId)
load in interface IDocumentAttributeDAOnAttributeId - The attribute Idpublic void delete(int nAttributeId)
delete in interface IDocumentAttributeDAOnAttributeId - The DocumentAttribute Idpublic void store(DocumentAttribute documentAttribute)
store in interface IDocumentAttributeDAOdocumentAttribute - The document attributepublic void selectAttributesByDocumentType(DocumentType documentType)
selectAttributesByDocumentType in interface IDocumentAttributeDAOdocumentType - The document Typepublic List<DocumentAttribute> selectAllAttributesOfDocumentType(String codeDocumentType)
selectAllAttributesOfDocumentType in interface IDocumentAttributeDAOcodeDocumentType - The code document Typepublic List<AttributeTypeParameter> selectAttributeParametersValues(int nAttributeId)
selectAttributeParametersValues in interface IDocumentAttributeDAOnAttributeId - The attribute Idpublic List<String> getAttributeParameterValues(int nAttributeId, String strParameterName)
getAttributeParameterValues in interface IDocumentAttributeDAOnAttributeId - The attribute IdstrParameterName - The parameter namepublic void insertRegularExpression(int nIdAttribute,
int nIdExpression)
insertRegularExpression in interface IDocumentAttributeDAOnIdAttribute - The identifier of the document attributenIdExpression - The identifier of the regular expressionpublic void deleteRegularExpression(int nIdAttribute,
int nIdExpression)
deleteRegularExpression in interface IDocumentAttributeDAOnIdAttribute - The identifier of the document attributenIdExpression - The identifier of the regular expressionpublic Collection<Integer> selectListRegularExpressionKeyByIdAttribute(int nIdAttribute)
selectListRegularExpressionKeyByIdAttribute in interface IDocumentAttributeDAOnIdAttribute - The identifier of the document attributeCopyright © 2020 City of Paris. All rights reserved.