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 Object

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


Method Summary
static boolean checkMediaHandlerByAccount(int nIdAccount)
          Check if some Account is used by Media
static MediaHandler create(MediaHandler mediaHandler)
          Create an instance of the mediaHandler class
static 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 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

checkMediaHandlerByAccount

public static boolean checkMediaHandlerByAccount(int nIdAccount)
Check if some Account is used by Media

Parameters:
nIdAccount - the id account to check
Returns:
true if the account is used


Copyright © 2013 Mairie de Paris. All Rights Reserved.