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

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

public final class ApplicationHome
extends Object

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


Method Summary
static void addComponent(int nApplicationId, int nComponentId)
           
static void clearComponentsList(int nApplicationId)
           
static Application create(Application application)
          Create an instance of the application class
static Application findByPrimaryKey(int nKey)
          Returns an instance of a application whose identifier is specified in parameter
static Collection<Application> getApplicationsList()
          Load the data of all the application objects and returns them in form of a collection
static void remove(int nApplicationId)
          Remove the application whose identifier is specified in parameter
static Application update(Application application)
          Update of the application 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 Application create(Application application)
Create an instance of the application class

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

update

public static Application update(Application application)
Update of the application which is specified in parameter

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

remove

public static void remove(int nApplicationId)
Remove the application whose identifier is specified in parameter

Parameters:
nApplicationId - The application Id

findByPrimaryKey

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

Parameters:
nKey - The application primary key
Returns:
an instance of Application

getApplicationsList

public static Collection<Application> getApplicationsList()
Load the data of all the application objects and returns them in form of a collection

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

clearComponentsList

public static void clearComponentsList(int nApplicationId)

addComponent

public static void addComponent(int nApplicationId,
                                int nComponentId)


Copyright © 2013 Mairie de Paris. All Rights Reserved.