Class OptionsDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.uploadimage.business.OptionsDAO
-
- All Implemented Interfaces:
IOptionsDAO
public final class OptionsDAO extends java.lang.Object implements IOptionsDAO
This class provides Data Access methods for Options objects
-
-
Constructor Summary
Constructors Constructor Description OptionsDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Options options, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Optionsload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableOptionsloadOptionByFieldName(java.lang.String fieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyjava.util.Collection<java.lang.Integer>selectIdOptionssList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the options objects and returns them as a collectionjava.util.Collection<Options>selectOptionssList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the options objects and returns them as a collectionvoidstore(Options options, 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(Options options, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIOptionsDAO- Parameters:
options- instance of the Options object to insertplugin- the Plugin
-
load
public Options load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIOptionsDAO- Parameters:
nKey- The identifier of the optionsplugin- the Plugin- Returns:
- The instance of the options
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIOptionsDAO- Parameters:
nKey- The identifier of the Options to deleteplugin- the Plugin
-
store
public void store(Options options, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIOptionsDAO- Parameters:
options- the reference of the Optionsplugin- the Plugin
-
selectOptionssList
public java.util.Collection<Options> selectOptionssList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the options objects and returns them as a collection- Specified by:
selectOptionssListin interfaceIOptionsDAO- Parameters:
plugin- the Plugin- Returns:
- The collection which contains the data of all the options objects
-
selectIdOptionssList
public java.util.Collection<java.lang.Integer> selectIdOptionssList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the options objects and returns them as a collection- Specified by:
selectIdOptionssListin interfaceIOptionsDAO- Parameters:
plugin- the Plugin- Returns:
- The collection which contains the id of all the options objects
-
loadOptionByFieldName
public Options loadOptionByFieldName(java.lang.String fieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadOptionByFieldNamein interfaceIOptionsDAO- Parameters:
fieldName- The identifier of the optionsplugin- the Plugin- Returns:
- The instance of the options
-
-