public final class CatalogDAO extends Object implements ICatalogDAO
Constructor and Description |
---|
CatalogDAO() |
Modifier and Type | Method and Description |
---|---|
void |
addRelease(int nCatalogId,
int nReleaseId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a plugin release to a given catalog
|
void |
delete(int nCatalogId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Catalog catalog,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Catalog |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the catalog from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
void |
removeRelease(int nCatalogId,
int nReleaseId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a plugin release from a given catalog
|
List<Catalog> |
selectCatalogsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the catalogs and returns them as a List
|
List<CatalogPluginEntry> |
selectPluginsEntries(int nCatalogId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load plugins entries
|
void |
store(Catalog catalog,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic void insert(Catalog catalog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ICatalogDAO
catalog
- instance of the Catalog object to insertplugin
- The pluginpublic Catalog load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ICatalogDAO
nId
- The identifier of the catalogplugin
- The pluginpublic void delete(int nCatalogId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ICatalogDAO
nCatalogId
- The identifier of the catalogplugin
- The pluginpublic void store(Catalog catalog, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ICatalogDAO
catalog
- The reference of the catalogplugin
- The pluginpublic List<Catalog> selectCatalogsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCatalogsList
in interface ICatalogDAO
plugin
- The pluginpublic List<CatalogPluginEntry> selectPluginsEntries(int nCatalogId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPluginsEntries
in interface ICatalogDAO
nCatalogId
- Catalog Idplugin
- The pluginpublic void addRelease(int nCatalogId, int nReleaseId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addRelease
in interface ICatalogDAO
nCatalogId
- The catalog IDnReleaseId
- The Release Idplugin
- The pluginpublic void removeRelease(int nCatalogId, int nReleaseId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRelease
in interface ICatalogDAO
nCatalogId
- The catalog IDnReleaseId
- The Release Idplugin
- The pluginCopyright © 2018 City of Paris. All rights reserved.