Class FieldDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.search.solr.business.field.FieldDAO
-
-
Constructor Summary
Constructors Constructor Description FieldDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nFieldId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Fieldload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the field from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyList<Field>selectFieldsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the fields and returns them as a Listvoidstore(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
insert
public void insert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Field load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the field from the table
-
delete
public void delete(int nFieldId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectFieldsList
public List<Field> selectFieldsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the fields and returns them as a List- Specified by:
selectFieldsListin interfaceIFieldDAO- Parameters:
plugin- The plugin- Returns:
- The List which contains the data of all the fields
-
-