Class PlatformReleaseDAO
java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformReleaseDAO
- All Implemented Interfaces:
IPlatformReleaseDAO
This class provides Data Access methods for PlatformRelease objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidinsert(PlatformRelease platformRelease, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByName(String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the campaign with the given name, names being uniqueselectPlatformReleasesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the PlatformRelease objects and returns them as a list, most recent firstvoidstore(PlatformRelease platformRelease, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
PlatformReleaseDAO
public PlatformReleaseDAO()
-
-
Method Details
-
insert
public void insert(PlatformRelease platformRelease, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceIPlatformReleaseDAO- Parameters:
platformRelease- instance of the PlatformRelease object to insertplugin- the Plugin
-
store
public void store(PlatformRelease platformRelease, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table- Specified by:
storein interfaceIPlatformReleaseDAO- Parameters:
platformRelease- the reference of the PlatformReleaseplugin- the Plugin
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIPlatformReleaseDAO- Parameters:
nKey- The identifier of the PlatformRelease to deleteplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIPlatformReleaseDAO- Parameters:
nKey- The identifier of the PlatformReleaseplugin- the Plugin- Returns:
- The instance of the PlatformRelease, or null if not found
-
loadByName
public PlatformRelease loadByName(String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the campaign with the given name, names being unique- Specified by:
loadByNamein interfaceIPlatformReleaseDAO- Parameters:
strName- The name of the PlatformReleaseplugin- the Plugin- Returns:
- The instance of the PlatformRelease, or null if not found
-
selectPlatformReleasesList
public List<PlatformRelease> selectPlatformReleasesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the PlatformRelease objects and returns them as a list, most recent first- Specified by:
selectPlatformReleasesListin interfaceIPlatformReleaseDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the PlatformRelease objects
-