lumis.portal.report
Class ReportDaoHib

Package class diagram package ReportDaoHib
java.lang.Object
  extended by lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<ReportConfig,String>
      extended by lumis.portal.report.ReportDaoHib
All Implemented Interfaces:
IReportDao

public class ReportDaoHib
extends GenericHibernateManualUpdateDao<ReportConfig,String>
implements IReportDao

Data access implementation for reports.

Since:
4.1.0

Constructor Summary
ReportDaoHib()
           
 
Method Summary
 void add(ReportConfig bean, ITransaction transaction)
          Adds the bean to the persistence layer.
 boolean delete(String id, ITransaction transaction)
          Deletes the bean with the given id from persistence.
 void deleteParameters(ReportConfig reportConfig, ITransaction transaction)
           
 ReportConfig get(String id, ITransaction transaction)
          Returns the bean with the given id.
protected  String getIdentifier(ReportConfig bean)
           
 void update(ReportConfig bean, ITransaction transaction)
           
 
Methods inherited from class lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao
addOrUpdate, evict, findByCriteria, findByCriteria, getPersistentClass, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportDaoHib

public ReportDaoHib()
Method Detail

getIdentifier

protected String getIdentifier(ReportConfig bean)
Specified by:
getIdentifier in class GenericHibernateManualUpdateDao<ReportConfig,String>

add

public void add(ReportConfig bean,
                ITransaction transaction)
         throws PortalException
Description copied from class: GenericHibernateManualUpdateDao
Adds the bean to the persistence layer.

Specified by:
add in interface IReportDao
Overrides:
add in class GenericHibernateManualUpdateDao<ReportConfig,String>
Parameters:
bean - the bean to be added.
transaction - the transaction for persistence access.
Throws:
PortalException

delete

public boolean delete(String id,
                      ITransaction transaction)
               throws PortalException
Description copied from class: GenericHibernateManualUpdateDao
Deletes the bean with the given id from persistence.

Specified by:
delete in interface IReportDao
Overrides:
delete in class GenericHibernateManualUpdateDao<ReportConfig,String>
Parameters:
id - the bean's id.
transaction - the transaction for persistence access. Must be a ITransactionHibernate.
Returns:
true if the bean was deleted, or false if it did not exist
Throws:
PortalException

deleteParameters

public void deleteParameters(ReportConfig reportConfig,
                             ITransaction transaction)
                      throws PortalException
Specified by:
deleteParameters in interface IReportDao
Throws:
PortalException

get

public ReportConfig get(String id,
                        ITransaction transaction)
                 throws PortalObjectNotFoundException,
                        PortalException
Description copied from class: GenericHibernateManualUpdateDao
Returns the bean with the given id. The bean is set as read-only, so changes on it won't persist automatically.

Specified by:
get in interface IReportDao
Overrides:
get in class GenericHibernateManualUpdateDao<ReportConfig,String>
Parameters:
id - the bean's id.
transaction - the transaction for persistence access. Must be a ITransactionHibernate.
Returns:
the bean.
Throws:
PortalObjectNotFoundException - if the corresponding bean does not exist in the persistence.
PortalException

update

public void update(ReportConfig bean,
                   ITransaction transaction)
            throws PortalException
Specified by:
update in interface IReportDao
Overrides:
update in class GenericHibernateManualUpdateDao<ReportConfig,String>
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.