public final class MediaHandlerDAO extends Object implements IMediaHandlerDAO
Constructor and Description |
---|
MediaHandlerDAO() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkMediaHandlerByAccount(int nIdAccount,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if some Account is used by Media
|
void |
delete(int nMediaHandlerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(MediaHandler mediaHandler,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
MediaHandler |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the mediaHandler from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<MediaHandler> |
selectMediaHandlersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the mediaHandlers and returns them as a List
|
void |
store(MediaHandler mediaHandler,
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(MediaHandler mediaHandler, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IMediaHandlerDAO
mediaHandler
- instance of the MediaHandler object to insertplugin
- The pluginpublic MediaHandler load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IMediaHandlerDAO
nId
- The identifier of the mediaHandlerplugin
- The pluginpublic void delete(int nMediaHandlerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IMediaHandlerDAO
nMediaHandlerId
- The identifier of the mediaHandlerplugin
- The pluginpublic void store(MediaHandler mediaHandler, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IMediaHandlerDAO
mediaHandler
- The reference of the mediaHandlerplugin
- The pluginpublic List<MediaHandler> selectMediaHandlersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMediaHandlersList
in interface IMediaHandlerDAO
plugin
- The pluginpublic boolean checkMediaHandlerByAccount(int nIdAccount, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkMediaHandlerByAccount
in interface IMediaHandlerDAO
nIdAccount
- the id account to checkplugin
- the pluginCopyright © 2018 City of Paris. All rights reserved.