it.eng.spagobi.analiticalmodel.document.dao
Class SubreportDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.analiticalmodel.document.dao.SubreportDAOHibImpl
All Implemented Interfaces:
ISubreportDAO

public class SubreportDAOHibImpl
extends AbstractHibernateDAO
implements ISubreportDAO

Author:
Gioia

Constructor Summary
SubreportDAOHibImpl()
           
 
Method Summary
 void eraseSubreportByMasterRptId(java.lang.Integer master_rpt_id)
          Erase subreport by master rpt id.
 void eraseSubreportBySubRptId(java.lang.Integer sub_rpt_id)
          Erase subreport by sub rpt id.
 void insertSubreport(Subreport aSubreport)
          Insert subreport.
 java.util.List loadSubreportsByMasterRptId(java.lang.Integer master_rpt_id)
          Load subreports by master rpt id.
 java.util.List loadSubreportsBySubRptId(java.lang.Integer sub_rpt_id)
          Load subreports by sub rpt id.
 Subreport toSubreport(SbiSubreports hibSubreport)
          From the hibernate subreports at input, gives the corrispondent Subreports object.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
getSession, logException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubreportDAOHibImpl

public SubreportDAOHibImpl()
Method Detail

loadSubreportsByMasterRptId

public java.util.List loadSubreportsByMasterRptId(java.lang.Integer master_rpt_id)
                                           throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubreportDAO
Load subreports by master rpt id.

Specified by:
loadSubreportsByMasterRptId in interface ISubreportDAO
Parameters:
master_rpt_id - the master_rpt_id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

loadSubreportsBySubRptId

public java.util.List loadSubreportsBySubRptId(java.lang.Integer sub_rpt_id)
                                        throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubreportDAO
Load subreports by sub rpt id.

Specified by:
loadSubreportsBySubRptId in interface ISubreportDAO
Parameters:
sub_rpt_id - the sub_rpt_id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

insertSubreport

public void insertSubreport(Subreport aSubreport)
                     throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubreportDAO
Insert subreport.

Specified by:
insertSubreport in interface ISubreportDAO
Parameters:
aSubreport - the a subreport
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

eraseSubreportByMasterRptId

public void eraseSubreportByMasterRptId(java.lang.Integer master_rpt_id)
                                 throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubreportDAO
Erase subreport by master rpt id.

Specified by:
eraseSubreportByMasterRptId in interface ISubreportDAO
Parameters:
master_rpt_id - the id
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

eraseSubreportBySubRptId

public void eraseSubreportBySubRptId(java.lang.Integer sub_rpt_id)
                              throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubreportDAO
Erase subreport by sub rpt id.

Specified by:
eraseSubreportBySubRptId in interface ISubreportDAO
Parameters:
sub_rpt_id - the id
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

toSubreport

public Subreport toSubreport(SbiSubreports hibSubreport)
From the hibernate subreports at input, gives the corrispondent Subreports object.

Parameters:
hibSubreport - the hib subreport
Returns:
The corrispondent Parameter object