fr.paris.lutece.plugins.graphite.business
Class GraphHome

java.lang.Object
  extended by fr.paris.lutece.plugins.graphite.business.GraphHome

public final class GraphHome
extends Object

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


Method Summary
static Graph create(Graph graph)
          Create an instance of the graph class
static Graph findByPrimaryKey(int nKey)
          Returns an instance of a graph whose identifier is specified in parameter
static Collection<Graph> getGraphsList()
          Load the data of all the graph objects and returns them in form of a collection
static void remove(int nGraphId)
          Remove the graph whose identifier is specified in parameter
static Graph update(Graph graph)
          Update of the graph 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 Graph create(Graph graph)
Create an instance of the graph class

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

update

public static Graph update(Graph graph)
Update of the graph which is specified in parameter

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

remove

public static void remove(int nGraphId)
Remove the graph whose identifier is specified in parameter

Parameters:
nGraphId - The graph Id

findByPrimaryKey

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

Parameters:
nKey - The graph primary key
Returns:
an instance of Graph

getGraphsList

public static Collection<Graph> getGraphsList()
Load the data of all the graph objects and returns them in form of a collection

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


Copyright © 2014 Mairie de Paris. All Rights Reserved.