it.eng.spagobi.engines.dossier.dao
Class DossierPresentationsDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.engines.dossier.dao.DossierPresentationsDAOHibImpl
All Implemented Interfaces:
ISpagoBIDao, IDossierPresentationsDAO

public class DossierPresentationsDAOHibImpl
extends AbstractHibernateDAO
implements IDossierPresentationsDAO

Author:
Zerbetto (davide.zerbetto@eng.it)

Constructor Summary
DossierPresentationsDAOHibImpl()
           
 
Method Summary
 void deletePresentations(java.lang.Integer dossierId)
          Delete presentations.
 void deletePresentationVersion(java.lang.Integer dossierId, java.lang.Integer versionId)
          Delete presentation version.
 DossierPresentation getCurrentPresentation(java.lang.Integer dossierId, java.lang.Long workflowProcessId)
          Gets the current presentation.
 java.lang.Integer getNextProg(java.lang.Integer dossierId)
          Gets the next prog.
 byte[] getPresentationVersionContent(java.lang.Integer dossierId, java.lang.Integer versionId)
          Gets the presentation version content.
 java.util.List getPresentationVersions(java.lang.Integer dossierId)
          Gets the presentation versions.
 void insertPresentation(DossierPresentation dossierPresentation)
          Insert presentation.
 void updatePresentation(DossierPresentation dossierPresentation)
          Update presentation.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
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

DossierPresentationsDAOHibImpl

public DossierPresentationsDAOHibImpl()
Method Detail

getPresentationVersionContent

public byte[] getPresentationVersionContent(java.lang.Integer dossierId,
                                            java.lang.Integer versionId)
                                     throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPresentationsDAO
Gets the presentation version content.

Specified by:
getPresentationVersionContent in interface IDossierPresentationsDAO
Parameters:
dossierId - the dossier id
versionId - the version id
Returns:
the presentation version content
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getPresentationVersions

public java.util.List getPresentationVersions(java.lang.Integer dossierId)
                                       throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPresentationsDAO
Gets the presentation versions.

Specified by:
getPresentationVersions in interface IDossierPresentationsDAO
Parameters:
dossierId - the dossier id
Returns:
the presentation versions
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

deletePresentationVersion

public void deletePresentationVersion(java.lang.Integer dossierId,
                                      java.lang.Integer versionId)
                               throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPresentationsDAO
Delete presentation version.

Specified by:
deletePresentationVersion in interface IDossierPresentationsDAO
Parameters:
dossierId - the dossier id
versionId - the version id
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

insertPresentation

public void insertPresentation(DossierPresentation dossierPresentation)
                        throws it.eng.spago.error.EMFUserError,
                               it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPresentationsDAO
Insert presentation.

Specified by:
insertPresentation in interface IDossierPresentationsDAO
Parameters:
dossierPresentation - the dossier presentation
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
it.eng.spago.error.EMFInternalError - the EMF internal error

updatePresentation

public void updatePresentation(DossierPresentation dossierPresentation)
                        throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPresentationsDAO
Update presentation.

Specified by:
updatePresentation in interface IDossierPresentationsDAO
Parameters:
dossierPresentation - the dossier presentation
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getNextProg

public java.lang.Integer getNextProg(java.lang.Integer dossierId)
                              throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPresentationsDAO
Gets the next prog.

Specified by:
getNextProg in interface IDossierPresentationsDAO
Parameters:
dossierId - the dossier id
Returns:
the next prog
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getCurrentPresentation

public DossierPresentation getCurrentPresentation(java.lang.Integer dossierId,
                                                  java.lang.Long workflowProcessId)
                                           throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPresentationsDAO
Gets the current presentation.

Specified by:
getCurrentPresentation in interface IDossierPresentationsDAO
Parameters:
dossierId - the dossier id
workflowProcessId - the workflow process id
Returns:
the current presentation
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

deletePresentations

public void deletePresentations(java.lang.Integer dossierId)
                         throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPresentationsDAO
Delete presentations.

Specified by:
deletePresentations in interface IDossierPresentationsDAO
Parameters:
dossierId - the dossier id
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error