Class TemplateFieldHome
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.modules.template.business.TemplateFieldHome
-
public final class TemplateFieldHome extends Object
This class provides instances management methods (create, find, ...) for Field objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopy(fr.paris.lutece.plugins.genericattributes.business.Field field)Copy of an instance of fieldstatic intcreate(fr.paris.lutece.plugins.genericattributes.business.Field field)Creation of an instance of fieldstatic fr.paris.lutece.plugins.genericattributes.business.FieldfindByPrimaryKey(int nKey)Returns an instance of a Field whose identifier is specified in parameterstatic List<fr.paris.lutece.plugins.genericattributes.business.Field>getFieldListByCode(String code)Load the data of all the field by codestatic List<fr.paris.lutece.plugins.genericattributes.business.Field>getFieldListByIdEntry(int nIdEntry)Load the data of all the field of the entry and returns them in a liststatic voidremove(int nIdField)Remove the field whose identifier is specified in parameterstatic voidupdate(fr.paris.lutece.plugins.genericattributes.business.Field field)Update of the field which is specified in parameter
-
-
-
Method Detail
-
create
public static int create(fr.paris.lutece.plugins.genericattributes.business.Field field)
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.
-
update
public static void update(fr.paris.lutece.plugins.genericattributes.business.Field field)
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
public static fr.paris.lutece.plugins.genericattributes.business.Field findByPrimaryKey(int nKey)
Returns an instance of a Field whose identifier is specified in parameter- Parameters:
nKey- The field primary key- Returns:
- an instance of Field
-
getFieldListByIdEntry
public static List<fr.paris.lutece.plugins.genericattributes.business.Field> getFieldListByIdEntry(int nIdEntry)
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
-
copy
public static void copy(fr.paris.lutece.plugins.genericattributes.business.Field field)
Copy of an instance of field- Parameters:
field- The instance of the Field who must copy
-
-