Class FieldHome
java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.FieldHome
This class provides instances management methods (create, find, ...) for Field objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCopy of an instance of fieldstatic intCreation of an instance of fieldstatic voidcreateVerifyBy(int nIdField, int nIdExpression) Insert an association between field and a regular expressionstatic FieldfindByPrimaryKey(int nKey) Returns an instance of a Field whose identifier is specified in parametergetFieldListByCode(String code) Load the data of all the field by codegetFieldListByIdEntry(int nIdEntry) Load the data of all the field of the entry and returns them in a listgetFieldListByListIdEntry(List<Integer> idList) Load the data of all the field of the list of entry entry and returns them in a listgetListRegularExpressionKeyByIdField(int nIdField) Load the key of all the regularExpression associate to the field and returns them in a liststatic booleanisRegularExpressionIsUse(int nIdExpression) Verify if the regular expression is usestatic voidremove(int nIdField) Remove the field whose identifier is specified in parameterstatic voidremoveVerifyBy(int nIdField, int nIdExpression) Delete an association between field and a regular expressionstatic voidUpdate of the field which is specified in parameter
-
Method Details
-
create
Creation of an instance of field- Parameters:
field- The instance of the Field which contains the informations to store- Returns:
- The primary key of the new Field.
-
copy
Copy of an instance of field- Parameters:
field- The instance of the Field who must copy
-
update
Update of the field which is specified in parameter- Parameters:
field- The instance of the Field which contains the informations to update
-
remove
public static void remove(int nIdField) Remove the field whose identifier is specified in parameter- Parameters:
nIdField- The field Id
-
findByPrimaryKey
Returns an instance of a Field whose identifier is specified in parameter- Parameters:
nKey- The field primary key- Returns:
- an instance of Field
-
getFieldListByIdEntry
Load the data of all the field of the entry and returns them in a list- Parameters:
nIdEntry- the id of the entry- Returns:
- the list of field
-
removeVerifyBy
public static void removeVerifyBy(int nIdField, int nIdExpression) Delete an association between field and a regular expression- Parameters:
nIdField- The identifier of the fieldnIdExpression- The identifier of the regular expression
-
createVerifyBy
public static void createVerifyBy(int nIdField, int nIdExpression) Insert an association between field and a regular expression- Parameters:
nIdField- The identifier of the fieldnIdExpression- The identifier of the regular expression
-
getListRegularExpressionKeyByIdField
Load the key of all the regularExpression associate to the field and returns them in a list- Parameters:
nIdField- the id of the field- Returns:
- the list of regular expression key
-
isRegularExpressionIsUse
public static boolean isRegularExpressionIsUse(int nIdExpression) Verify if the regular expression is use- Parameters:
nIdExpression- The identifier of the regular expression- Returns:
- true if the regular expression is use
-
getFieldListByCode
Load the data of all the field by code- Parameters:
code-- Returns:
- the list of field
-
getFieldListByListIdEntry
Load the data of all the field of the list of entry entry and returns them in a list- Parameters:
idList- the ids of the entries- Returns:
- the list of field
-