public final class DocumentAttributeHome extends Object
Modifier and Type | Method and Description |
---|---|
static DocumentAttribute |
create(DocumentAttribute documentAttribute)
Creation of an instance of documentAttribute
|
static void |
deleteRegularExpression(int nIdAttribute,
int nIdExpression)
Deletes a regular expression in the attribute
|
static DocumentAttribute |
findByPrimaryKey(int nKey)
Returns an instance of a documentAttribute whose identifier is specified in parameter
|
static Collection<AttributeTypeParameter> |
getAttributeParametersValues(int nAttributeId,
Locale locale)
Get the attribute type parameters of an attribute
|
static List<String> |
getAttributeParameterValues(int nAttributeId,
String strParameterName)
Get the list of values of a parameters of an attribute
|
static Collection<Integer> |
getListRegularExpressionKeyByIdAttribute(int nIdAttribute)
Loads all regular expression key associated to the attribute and returns them into a collection
|
static void |
insertRegularExpression(int nIdAttribute,
int nIdExpression)
Inserts a regular expression in the attribute
|
static void |
remove(int nAttributeId)
Remove the DocumentAttribute whose identifier is specified in parameter
|
static List<DocumentAttribute> |
selectAllAttributesOfDocumentType(String codeDocumentType)
Get all attributes of document type
|
static void |
setDocumentTypeAttributes(DocumentType documentType)
Returns a collection of documentAttributes objects
|
static DocumentAttribute |
update(DocumentAttribute documentAttribute)
Update of the documentAttribute which is specified in parameter
|
public static DocumentAttribute create(DocumentAttribute documentAttribute)
documentAttribute
- The instance of the documentAttribute which contains the informations to storepublic static DocumentAttribute update(DocumentAttribute documentAttribute)
documentAttribute
- The instance of the documentAttribute which contains the data to storepublic static void remove(int nAttributeId)
nAttributeId
- The id of the attributepublic static DocumentAttribute findByPrimaryKey(int nKey)
nKey
- The Primary key of the documentAttributepublic static void setDocumentTypeAttributes(DocumentType documentType)
documentType
- The document typepublic static List<DocumentAttribute> selectAllAttributesOfDocumentType(String codeDocumentType)
codeDocumentType
- The code document Typepublic static Collection<AttributeTypeParameter> getAttributeParametersValues(int nAttributeId, Locale locale)
nAttributeId
- The id of the attribute to get the parameter oflocale
- The localepublic static List<String> getAttributeParameterValues(int nAttributeId, String strParameterName)
nAttributeId
- The id of the attributestrParameterName
- The name of the parameterpublic static void insertRegularExpression(int nIdAttribute, int nIdExpression)
nIdAttribute
- The identifier of the document attributenIdExpression
- The identifier of the regular expressionpublic static void deleteRegularExpression(int nIdAttribute, int nIdExpression)
nIdAttribute
- The identifier of the document attributenIdExpression
- The identifier of the regular expressionpublic static Collection<Integer> getListRegularExpressionKeyByIdAttribute(int nIdAttribute)
nIdAttribute
- The identifier of the document attributeCopyright © 2020 City of Paris. All rights reserved.