|
||||||||||
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<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 IDocumentAttributeDAO
documentAttribute
- The documentAttribute objectpublic DocumentAttribute load(int nAttributeId)
load
in interface IDocumentAttributeDAO
nAttributeId
- The attribute Id
public void delete(int nAttributeId)
delete
in interface IDocumentAttributeDAO
nAttributeId
- The DocumentAttribute Idpublic void store(DocumentAttribute documentAttribute)
store
in interface IDocumentAttributeDAO
documentAttribute
- The document attributepublic void selectAttributesByDocumentType(DocumentType documentType)
selectAttributesByDocumentType
in interface IDocumentAttributeDAO
documentType
- The document Typepublic java.util.List<AttributeTypeParameter> selectAttributeParametersValues(int nAttributeId)
selectAttributeParametersValues
in interface IDocumentAttributeDAO
nAttributeId
- The attribute Id
public java.util.List<java.lang.String> getAttributeParameterValues(int nAttributeId, java.lang.String strParameterName)
getAttributeParameterValues
in interface IDocumentAttributeDAO
nAttributeId
- The attribute IdstrParameterName
- The parameter name
public void insertRegularExpression(int nIdAttribute, int nIdExpression)
insertRegularExpression
in interface IDocumentAttributeDAO
nIdAttribute
- The identifier of the document attributenIdExpression
- The identifier of the regular expressionpublic void deleteRegularExpression(int nIdAttribute, int nIdExpression)
deleteRegularExpression
in interface IDocumentAttributeDAO
nIdAttribute
- The identifier of the document attributenIdExpression
- The identifier of the regular expressionpublic java.util.Collection<java.lang.Integer> selectListRegularExpressionKeyByIdAttribute(int nIdAttribute)
selectListRegularExpressionKeyByIdAttribute
in interface IDocumentAttributeDAO
nIdAttribute
- The identifier of the document attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |