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

java.lang.Object
  extended by fr.paris.lutece.plugins.graphite.business.GraphDAO
All Implemented Interfaces:
IGraphDAO

public final class GraphDAO
extends Object
implements IGraphDAO

This class provides Data Access methods for Graph objects


Constructor Summary
GraphDAO()
           
 
Method Summary
 void delete(int nGraphId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Graph graph, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Graph load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 Collection<Graph> selectGraphsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the graph objects and returns them as a collection
 void store(Graph graph, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphDAO

public GraphDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

public void insert(Graph graph,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IGraphDAO
Parameters:
graph - instance of the Graph object to insert
plugin - the Plugin

load

public Graph load(int nKey,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Specified by:
load in interface IGraphDAO
Parameters:
nKey - The identifier of the graph
plugin - the Plugin
Returns:
The instance of the graph

delete

public void delete(int nGraphId,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IGraphDAO
Parameters:
nGraphId - int identifier of the Graph to delete
plugin - the Plugin

store

public void store(Graph graph,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IGraphDAO
Parameters:
graph - the reference of the Graph
plugin - the Plugin

selectGraphsList

public Collection<Graph> selectGraphsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the graph objects and returns them as a collection

Specified by:
selectGraphsList in interface IGraphDAO
Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the graph objects


Copyright © 2014 Mairie de Paris. All Rights Reserved.