Class 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
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Options options, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Options load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Options loadOptionByFieldName​(java.lang.String fieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      int newPrimaryKey​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Generates a new primary key
      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
      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
      void store​(Options options, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OptionsDAO

        public OptionsDAO()
    • 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:
        insert in interface IOptionsDAO
        Parameters:
        options - instance of the Options object to insert
        plugin - the Plugin
      • load

        public Options load​(int nKey,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IOptionsDAO
        Parameters:
        nKey - The identifier of the options
        plugin - 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:
        delete in interface IOptionsDAO
        Parameters:
        nKey - The identifier of the Options to delete
        plugin - the Plugin
      • store

        public void store​(Options options,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IOptionsDAO
        Parameters:
        options - the reference of the Options
        plugin - 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:
        selectOptionssList in interface IOptionsDAO
        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:
        selectIdOptionssList in interface IOptionsDAO
        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:
        loadOptionByFieldName in interface IOptionsDAO
        Parameters:
        fieldName - The identifier of the options
        plugin - the Plugin
        Returns:
        The instance of the options