fr.paris.lutece.plugins.appstore.business
Class ComponentHome

java.lang.Object
  extended by fr.paris.lutece.plugins.appstore.business.ComponentHome

public final class ComponentHome
extends Object

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


Method Summary
static Component create(Component component)
          Create an instance of the component class
static List<Component> findByApplication(int nApplicationId)
          Returns a list of component used by the application
static Component findByPrimaryKey(int nKey)
          Returns an instance of a component whose identifier is specified in parameter
static Collection<Component> getComponentsList()
          Load the data of all the component objects and returns them in form of a collection
static void remove(int nComponentId)
          Remove the component whose identifier is specified in parameter
static Component update(Component component)
          Update of the component which is 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 Component create(Component component)
Create an instance of the component class

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

update

public static Component update(Component component)
Update of the component which is specified in parameter

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

remove

public static void remove(int nComponentId)
Remove the component whose identifier is specified in parameter

Parameters:
nComponentId - The component Id

findByPrimaryKey

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

Parameters:
nKey - The component primary key
Returns:
an instance of Component

getComponentsList

public static Collection<Component> getComponentsList()
Load the data of all the component objects and returns them in form of a collection

Returns:
the collection which contains the data of all the component objects

findByApplication

public static List<Component> findByApplication(int nApplicationId)
Returns a list of component used by the application

Parameters:
nApplicationId - The application ID
Returns:
a List of Component


Copyright © 2013 Mairie de Paris. All Rights Reserved.