fr.paris.lutece.plugins.phraseanet.business.media
Class MediaHandlerHome

java.lang.Object
  extended by fr.paris.lutece.plugins.phraseanet.business.media.MediaHandlerHome

public final class MediaHandlerHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for MediaHandler objects


Method Summary
static MediaHandler create(MediaHandler mediaHandler)
          Create an instance of the mediaHandler class
static java.util.List<MediaHandler> findAll()
          Load the data of all the mediaHandler objects and returns them in form of a collection
static MediaHandler findByPrimaryKey(int nKey)
          Returns an instance of a mediaHandler whose identifier is specified in parameter
static void remove(int nMediaHandlerId)
          Remove the mediaHandler whose identifier is specified in parameter
static MediaHandler update(MediaHandler mediaHandler)
          Update of the mediaHandler data specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static MediaHandler create(MediaHandler mediaHandler)
Create an instance of the mediaHandler class

Parameters:
mediaHandler - The instance of the MediaHandler which contains the informations to store
Returns:
The instance of mediaHandler which has been created with its primary key.

update

public static MediaHandler update(MediaHandler mediaHandler)
Update of the mediaHandler data specified in parameter

Parameters:
mediaHandler - The instance of the MediaHandler which contains the data to store
Returns:
The instance of the mediaHandler which has been updated

remove

public static void remove(int nMediaHandlerId)
Remove the mediaHandler whose identifier is specified in parameter

Parameters:
nMediaHandlerId - The mediaHandler Id

findByPrimaryKey

public static MediaHandler findByPrimaryKey(int nKey)
Returns an instance of a mediaHandler whose identifier is specified in parameter

Parameters:
nKey - The mediaHandler primary key
Returns:
an instance of MediaHandler

findAll

public static java.util.List<MediaHandler> findAll()
Load the data of all the mediaHandler objects and returns them in form of a collection

Returns:
the list which contains the data of all the mediaHandler objects


Copyright © 2011 Mairie de Paris. All Rights Reserved.