it.eng.spagobi.tools.udp.dao
Class UdpValueDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.tools.udp.dao.UdpValueDAOHibImpl
All Implemented Interfaces:
IUdpValueDAO

public class UdpValueDAOHibImpl
extends AbstractHibernateDAO
implements IUdpValueDAO

Author:
Antonella Giachino
See Also:
it.eng.spagobi.tools.udp.bo.SbiUdp

Constructor Summary
UdpValueDAOHibImpl()
           
 
Method Summary
 void delete(java.lang.Integer id)
           
 void delete(SbiUdpValue propValue)
           
 void delete(org.hibernate.Session session, java.lang.Integer id)
           
 void delete(org.hibernate.Session session, SbiUdpValue item)
           
 java.util.List<SbiUdpValue> findAll()
           
 SbiUdpValue findById(java.lang.Integer id)
           
 java.util.List findByReferenceId(java.lang.Integer kpiId, java.lang.String family)
           
 java.lang.Integer insert(SbiUdpValue propValue)
           
 void insert(org.hibernate.Session session, SbiUdpValue propValue)
           
 void insertOrUpdateRelatedUdpValues(java.lang.Object object, java.lang.Object sbiObject, org.hibernate.Session aSession, java.lang.String family)
          Given a ModelInstance Node or a Kpi Get the Udp Value, update the existing one, add the new ones
 UdpValue loadById(java.lang.Integer id)
          Load a UdpValue by Id
 UdpValue loadByReferenceIdAndUdpId(java.lang.Integer referenceId, java.lang.Integer udpId, java.lang.String family)
          Load a UdpValue by refrence Id, udpId, family
 UdpValue toUdpValue(SbiUdpValue sbiUdpValue)
           
 void update(SbiUdpValue propValue)
           
 void update(org.hibernate.Session session, SbiUdpValue propValue)
           
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
getSession, logException, rollbackIfActiveAndClose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UdpValueDAOHibImpl

public UdpValueDAOHibImpl()
Method Detail

insert

public java.lang.Integer insert(SbiUdpValue propValue)
Specified by:
insert in interface IUdpValueDAO

insert

public void insert(org.hibernate.Session session,
                   SbiUdpValue propValue)
Specified by:
insert in interface IUdpValueDAO

update

public void update(SbiUdpValue propValue)
Specified by:
update in interface IUdpValueDAO

update

public void update(org.hibernate.Session session,
                   SbiUdpValue propValue)
Specified by:
update in interface IUdpValueDAO

delete

public void delete(SbiUdpValue propValue)
Specified by:
delete in interface IUdpValueDAO

delete

public void delete(org.hibernate.Session session,
                   SbiUdpValue item)
Specified by:
delete in interface IUdpValueDAO

delete

public void delete(java.lang.Integer id)
Specified by:
delete in interface IUdpValueDAO

delete

public void delete(org.hibernate.Session session,
                   java.lang.Integer id)
Specified by:
delete in interface IUdpValueDAO

findById

public SbiUdpValue findById(java.lang.Integer id)
Specified by:
findById in interface IUdpValueDAO

findByReferenceId

public java.util.List findByReferenceId(java.lang.Integer kpiId,
                                        java.lang.String family)
Specified by:
findByReferenceId in interface IUdpValueDAO

loadById

public UdpValue loadById(java.lang.Integer id)
Load a UdpValue by Id

Specified by:
loadById in interface IUdpValueDAO

loadByReferenceIdAndUdpId

public UdpValue loadByReferenceIdAndUdpId(java.lang.Integer referenceId,
                                          java.lang.Integer udpId,
                                          java.lang.String family)
Load a UdpValue by refrence Id, udpId, family

Specified by:
loadByReferenceIdAndUdpId in interface IUdpValueDAO

findAll

public java.util.List<SbiUdpValue> findAll()
Specified by:
findAll in interface IUdpValueDAO

toUdpValue

public UdpValue toUdpValue(SbiUdpValue sbiUdpValue)

insertOrUpdateRelatedUdpValues

public void insertOrUpdateRelatedUdpValues(java.lang.Object object,
                                           java.lang.Object sbiObject,
                                           org.hibernate.Session aSession,
                                           java.lang.String family)
                                    throws it.eng.spago.error.EMFUserError
Given a ModelInstance Node or a Kpi Get the Udp Value, update the existing one, add the new ones

Specified by:
insertOrUpdateRelatedUdpValues in interface IUdpValueDAO
Throws:
it.eng.spago.error.EMFUserError