|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.document.business.attributes.DocumentAttributeDAO
public final class DocumentAttributeDAO
This class provides Data Access methods for DocumentAttribute objects
| Constructor Summary | |
|---|---|
DocumentAttributeDAO()
|
|
| Method Summary | |
|---|---|
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 |
java.util.List<java.lang.String> |
getAttributeParameterValues(int nAttributeId,
java.lang.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 |
java.util.List<DocumentAttribute> |
selectAllAttributesOfDocumentType(java.lang.String codeDocumentType)
Get all attributes of document type |
java.util.List<AttributeTypeParameter> |
selectAttributeParametersValues(int nAttributeId)
Gets Attribute parameters values |
void |
selectAttributesByDocumentType(DocumentType documentType)
Add attributes to a document |
java.util.Collection<java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentAttributeDAO()
| Method Detail |
|---|
public void insert(DocumentAttribute documentAttribute)
insert in interface IDocumentAttributeDAOdocumentAttribute - The documentAttribute objectpublic DocumentAttribute load(int nAttributeId)
load in interface IDocumentAttributeDAOnAttributeId - The attribute Id
public 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 java.util.List<DocumentAttribute> selectAllAttributesOfDocumentType(java.lang.String codeDocumentType)
selectAllAttributesOfDocumentType in interface IDocumentAttributeDAOcodeDocumentType - The code document Type
public java.util.List<AttributeTypeParameter> selectAttributeParametersValues(int nAttributeId)
selectAttributeParametersValues in interface IDocumentAttributeDAOnAttributeId - The attribute Id
public java.util.List<java.lang.String> getAttributeParameterValues(int nAttributeId,
java.lang.String strParameterName)
getAttributeParameterValues in interface IDocumentAttributeDAOnAttributeId - The attribute IdstrParameterName - The parameter name
public void insertRegularExpression(int nIdAttribute,
int nIdExpression)
insertRegularExpression in interface IDocumentAttributeDAOnIdAttribute - The identifier of the document attributenIdExpression - The identifier of the regular expression
public void deleteRegularExpression(int nIdAttribute,
int nIdExpression)
deleteRegularExpression in interface IDocumentAttributeDAOnIdAttribute - The identifier of the document attributenIdExpression - The identifier of the regular expressionpublic java.util.Collection<java.lang.Integer> selectListRegularExpressionKeyByIdAttribute(int nIdAttribute)
selectListRegularExpressionKeyByIdAttribute in interface IDocumentAttributeDAOnIdAttribute - The identifier of the document attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||