Class FieldHome
- java.lang.Object
-
- fr.paris.lutece.plugins.search.solr.business.field.FieldHome
-
public final class FieldHome 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 Fieldcreate(Field field)Create an instance of the field classstatic FieldfindByPrimaryKey(int nKey)Returns an instance of a field whose identifier is specified in parameterstatic List<Field>getFieldsList()Load the data of all the field objects and returns them in form of a liststatic voidremove(int nFieldId)Remove the field whose identifier is specified in parameterstatic Fieldupdate(Field field)Update of the field which is specified in parameter
-
-
-
Method Detail
-
create
public static Field create(Field field)
Create an instance of the field class- Parameters:
field- The instance of the Field which contains the informations to store- Returns:
- The instance of field which has been created with its primary key.
-
update
public static Field update(Field field)
Update of the field which is specified in parameter- Parameters:
field- The instance of the Field which contains the data to store- Returns:
- The instance of the field which has been updated
-
remove
public static void remove(int nFieldId)
Remove the field whose identifier is specified in parameter- Parameters:
nFieldId- The field Id
-
findByPrimaryKey
public static 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
-
-