|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.phraseanet.business.media.MediaHandlerDAO
public final class MediaHandlerDAO
This class provides Data Access methods for MediaHandler objects
Constructor Summary | |
---|---|
MediaHandlerDAO()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaHandlerDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin
public 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 plugin
public 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 plugin
public boolean checkMediaHandlerByAccount(int nIdAccount, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkMediaHandlerByAccount
in interface IMediaHandlerDAO
nIdAccount
- the id account to checkplugin
- the plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |