fr.paris.lutece.plugins.jasper.business
Class JasperReportHome

java.lang.Object
  extended by fr.paris.lutece.plugins.jasper.business.JasperReportHome

public final class JasperReportHome
extends java.lang.Object

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


Method Summary
static JasperReport create(JasperReport jasperReport, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the jasperReport class
static JasperReport findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a jasperReport whose identifier is specified in parameter
static JasperReport findByPrimaryKey(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static java.util.Collection<JasperReport> getJasperReportsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the jasperReport objects and returns them in form of a collection
static void remove(int nJasperReportId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the jasperReport whose identifier is specified in parameter
static JasperReport update(JasperReport jasperReport, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the jasperReport 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 JasperReport create(JasperReport jasperReport,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the jasperReport class

Parameters:
jasperReport - The instance of the JasperReport which contains the informations to store
plugin - the Plugin
Returns:
The instance of jasperReport which has been created with its primary key.

update

public static JasperReport update(JasperReport jasperReport,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the jasperReport which is specified in parameter

Parameters:
jasperReport - The instance of the JasperReport which contains the data to store
plugin - the Plugin
Returns:
The instance of the jasperReport which has been updated

remove

public static void remove(int nJasperReportId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the jasperReport whose identifier is specified in parameter

Parameters:
nJasperReportId - The jasperReport Id
plugin - the Plugin

findByPrimaryKey

public static JasperReport findByPrimaryKey(int nKey,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a jasperReport whose identifier is specified in parameter

Parameters:
nKey - The jasperReport primary key
plugin - the Plugin
Returns:
an instance of JasperReport

getJasperReportsList

public static java.util.Collection<JasperReport> getJasperReportsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the jasperReport objects and returns them in form of a collection

Parameters:
plugin - the Plugin
Returns:
the collection which contains the data of all the jasperReport objects

findByPrimaryKey

public static JasperReport findByPrimaryKey(java.lang.String strKey,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
strKey -
plugin -
Returns:


Copyright © 2012 Mairie de Paris. All Rights Reserved.