it.eng.spagobi.profiling.dao
Class SbiAttributeDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.profiling.dao.SbiAttributeDAOHibImpl
All Implemented Interfaces:
ISpagoBIDao, ISbiAttributeDAO

public class SbiAttributeDAOHibImpl
extends AbstractHibernateDAO
implements ISbiAttributeDAO


Field Summary
 
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
TENANT_FILTER_NAME
 
Constructor Summary
SbiAttributeDAOHibImpl()
           
 
Method Summary
 void deleteSbiAttributeById(java.lang.Integer id)
           
 SbiAttribute loadSbiAttributeById(java.lang.Integer id)
           
 SbiAttribute loadSbiAttributeByName(java.lang.String name)
           
 java.util.List<SbiAttribute> loadSbiAttributes()
           
 java.util.HashMap<java.lang.Integer,java.lang.String> loadSbiAttributesByIds(java.util.List<java.lang.String> ids)
           
 SbiUserAttributes loadSbiAttributesByUserAndId(java.lang.Integer userId, java.lang.Integer attributeId)
           
 java.util.List<SbiUserAttributes> loadSbiUserAttributesById(java.lang.Integer id)
           
 java.lang.Integer saveOrUpdateSbiAttribute(SbiAttribute attribute)
           
 java.lang.Integer saveSbiAttribute(SbiAttribute attribute)
           
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, disableTenantFilter, enableTenantFilter, getSession, getTenant, getUserProfile, logException, rollbackIfActiveAndClose, setTenant, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setTenant, setUserID, setUserProfile
 

Constructor Detail

SbiAttributeDAOHibImpl

public SbiAttributeDAOHibImpl()
Method Detail

loadSbiUserAttributesById

public java.util.List<SbiUserAttributes> loadSbiUserAttributesById(java.lang.Integer id)
                                                            throws it.eng.spago.error.EMFUserError
Specified by:
loadSbiUserAttributesById in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError

loadSbiAttributesByUserAndId

public SbiUserAttributes loadSbiAttributesByUserAndId(java.lang.Integer userId,
                                                      java.lang.Integer attributeId)
                                               throws it.eng.spago.error.EMFUserError
Specified by:
loadSbiAttributesByUserAndId in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError

saveSbiAttribute

public java.lang.Integer saveSbiAttribute(SbiAttribute attribute)
                                   throws it.eng.spago.error.EMFUserError
Specified by:
saveSbiAttribute in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError

saveOrUpdateSbiAttribute

public java.lang.Integer saveOrUpdateSbiAttribute(SbiAttribute attribute)
                                           throws it.eng.spago.error.EMFUserError
Specified by:
saveOrUpdateSbiAttribute in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError

loadSbiAttributes

public java.util.List<SbiAttribute> loadSbiAttributes()
                                               throws it.eng.spago.error.EMFUserError
Specified by:
loadSbiAttributes in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError

loadSbiAttributeByName

public SbiAttribute loadSbiAttributeByName(java.lang.String name)
                                    throws it.eng.spago.error.EMFUserError
Specified by:
loadSbiAttributeByName in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError

loadSbiAttributeById

public SbiAttribute loadSbiAttributeById(java.lang.Integer id)
                                  throws it.eng.spago.error.EMFUserError
Specified by:
loadSbiAttributeById in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError

loadSbiAttributesByIds

public java.util.HashMap<java.lang.Integer,java.lang.String> loadSbiAttributesByIds(java.util.List<java.lang.String> ids)
                                                                             throws it.eng.spago.error.EMFUserError
Specified by:
loadSbiAttributesByIds in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError

deleteSbiAttributeById

public void deleteSbiAttributeById(java.lang.Integer id)
                            throws it.eng.spago.error.EMFUserError
Specified by:
deleteSbiAttributeById in interface ISbiAttributeDAO
Throws:
it.eng.spago.error.EMFUserError