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

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.analiticalmodel.document.dao.ObjTemplateDAOHibImpl
All Implemented Interfaces:
IObjTemplateDAO, ISpagoBIDao

public class ObjTemplateDAOHibImpl
extends AbstractHibernateDAO
implements IObjTemplateDAO


Constructor Summary
ObjTemplateDAOHibImpl()
           
 
Method Summary
 void deleteBIObjectTemplate(java.lang.Integer tempId)
          Delete bi object template.
 ObjTemplate getBIObjectActiveTemplate(java.lang.Integer biobjId)
          Gets the bI object active template.
 ObjTemplate getBIObjectActiveTemplateByLabel(java.lang.String label)
          Gets the bI object active template starting by document label
 java.util.List getBIObjectTemplateList(java.lang.Integer biobjId)
          Gets the bI object template list.
 java.lang.Integer getNextProgForTemplate(java.lang.Integer biobjId)
          Gets the next prog for template.
 void insertBIObjectTemplate(ObjTemplate objTemplate)
          Insert a new bi object template.
 ObjTemplate loadBIObjectTemplate(java.lang.Integer tempId)
          Load bi object template.
 ObjTemplate toObjTemplate(SbiObjTemplates hibObjTemp)
          To obj template.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, getSession, getUserProfile, logException, rollbackIfActiveAndClose, 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, setUserID, setUserProfile
 

Constructor Detail

ObjTemplateDAOHibImpl

public ObjTemplateDAOHibImpl()
Method Detail

loadBIObjectTemplate

public ObjTemplate loadBIObjectTemplate(java.lang.Integer tempId)
                                 throws it.eng.spago.error.EMFInternalError
Description copied from interface: IObjTemplateDAO
Load bi object template.

Specified by:
loadBIObjectTemplate in interface IObjTemplateDAO
Parameters:
tempId - the temp id
Returns:
the obj template
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getBIObjectActiveTemplate

public ObjTemplate getBIObjectActiveTemplate(java.lang.Integer biobjId)
                                      throws it.eng.spago.error.EMFInternalError
Description copied from interface: IObjTemplateDAO
Gets the bI object active template.

Specified by:
getBIObjectActiveTemplate in interface IObjTemplateDAO
Parameters:
biobjId - the biobj id
Returns:
the bI object active template
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getBIObjectActiveTemplateByLabel

public ObjTemplate getBIObjectActiveTemplateByLabel(java.lang.String label)
                                             throws it.eng.spago.error.EMFInternalError
Description copied from interface: IObjTemplateDAO
Gets the bI object active template starting by document label

Specified by:
getBIObjectActiveTemplateByLabel in interface IObjTemplateDAO
Returns:
the bI object active template
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getBIObjectTemplateList

public java.util.List getBIObjectTemplateList(java.lang.Integer biobjId)
                                       throws it.eng.spago.error.EMFInternalError
Description copied from interface: IObjTemplateDAO
Gets the bI object template list.

Specified by:
getBIObjectTemplateList in interface IObjTemplateDAO
Parameters:
biobjId - the biobj id
Returns:
the bI object template list
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getNextProgForTemplate

public java.lang.Integer getNextProgForTemplate(java.lang.Integer biobjId)
                                         throws it.eng.spago.error.EMFInternalError
Description copied from interface: IObjTemplateDAO
Gets the next prog for template.

Specified by:
getNextProgForTemplate in interface IObjTemplateDAO
Parameters:
biobjId - the biobj id
Returns:
the next prog for template
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

toObjTemplate

public ObjTemplate toObjTemplate(SbiObjTemplates hibObjTemp)
To obj template.

Parameters:
hibObjTemp - the hib obj temp
Returns:
the obj template

deleteBIObjectTemplate

public void deleteBIObjectTemplate(java.lang.Integer tempId)
                            throws it.eng.spago.error.EMFInternalError
Description copied from interface: IObjTemplateDAO
Delete bi object template.

Specified by:
deleteBIObjectTemplate in interface IObjTemplateDAO
Parameters:
tempId - the temp id
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

insertBIObjectTemplate

public void insertBIObjectTemplate(ObjTemplate objTemplate)
                            throws it.eng.spago.error.EMFUserError,
                                   it.eng.spago.error.EMFInternalError
Description copied from interface: IObjTemplateDAO
Insert a new bi object template.

Specified by:
insertBIObjectTemplate in interface IObjTemplateDAO
Parameters:
objTemplate - the new template
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error
it.eng.spago.error.EMFUserError