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

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

public class ObjNoteDAOHibImpl
extends AbstractHibernateDAO
implements IObjNoteDAO


Field Summary
 
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
TENANT_FILTER_NAME
 
Constructor Summary
ObjNoteDAOHibImpl()
           
 
Method Summary
 void eraseNotes(java.lang.Integer biobjId)
          Deletes all notes associated to the BIObject with the id specified in input.
 void eraseNotesByOwner(java.lang.Integer biobjId, java.lang.String execIdentif, java.lang.String owner)
          Deletes all notes associated to the BIObject with the id and the owner specified in input.
 ObjNote getExecutionNotes(java.lang.Integer biobjId, java.lang.String execIdentif)
          Get Notes for a specific execution of the biobject.
 ObjNote getExecutionNotesByOwner(java.lang.Integer biobjId, java.lang.String execIdentif, java.lang.String owner)
          Get Notes for a specific execution of the biobject by owner.
 java.util.List getListExecutionNotes(java.lang.Integer biobjId, java.lang.String execIdentif)
          Get Notes for a specific execution of the biobject.
 void modifyExecutionNotes(ObjNote objNote)
          Modify execution notes.
 void saveExecutionNotes(java.lang.Integer biobjId, ObjNote objNote)
          Save Notes for a specific execution of the biobject.
 
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

ObjNoteDAOHibImpl

public ObjNoteDAOHibImpl()
Method Detail

getExecutionNotes

public ObjNote getExecutionNotes(java.lang.Integer biobjId,
                                 java.lang.String execIdentif)
                          throws java.lang.Exception
Description copied from interface: IObjNoteDAO
Get Notes for a specific execution of the biobject.

Specified by:
getExecutionNotes in interface IObjNoteDAO
Parameters:
biobjId - id of the biobject executed
execIdentif - the exec identif
Returns:
ObjNote notes saved
Throws:
java.lang.Exception - the exception

getExecutionNotesByOwner

public ObjNote getExecutionNotesByOwner(java.lang.Integer biobjId,
                                        java.lang.String execIdentif,
                                        java.lang.String owner)
                                 throws java.lang.Exception
Description copied from interface: IObjNoteDAO
Get Notes for a specific execution of the biobject by owner.

Specified by:
getExecutionNotesByOwner in interface IObjNoteDAO
Parameters:
biobjId - id of the biobject executed
execIdentif - the exec identif
owner - the note's owner
Returns:
ObjNote notes saved
Throws:
java.lang.Exception - the exception

getListExecutionNotes

public java.util.List getListExecutionNotes(java.lang.Integer biobjId,
                                            java.lang.String execIdentif)
                                     throws java.lang.Exception
Description copied from interface: IObjNoteDAO
Get Notes for a specific execution of the biobject.

Specified by:
getListExecutionNotes in interface IObjNoteDAO
Parameters:
biobjId - id of the biobject executed
execIdentif - the exec identif
Returns:
ObjNote notes saved
Throws:
java.lang.Exception - the exception

saveExecutionNotes

public void saveExecutionNotes(java.lang.Integer biobjId,
                               ObjNote objNote)
                        throws java.lang.Exception
Description copied from interface: IObjNoteDAO
Save Notes for a specific execution of the biobject.

Specified by:
saveExecutionNotes in interface IObjNoteDAO
Parameters:
biobjId - id of the biobject executed
objNote - notes to save
Throws:
java.lang.Exception - the exception

modifyExecutionNotes

public void modifyExecutionNotes(ObjNote objNote)
                          throws java.lang.Exception
Description copied from interface: IObjNoteDAO
Modify execution notes.

Specified by:
modifyExecutionNotes in interface IObjNoteDAO
Parameters:
objNote - the obj note
Throws:
java.lang.Exception - the exception

eraseNotes

public void eraseNotes(java.lang.Integer biobjId)
                throws java.lang.Exception
Description copied from interface: IObjNoteDAO
Deletes all notes associated to the BIObject with the id specified in input.

Specified by:
eraseNotes in interface IObjNoteDAO
Parameters:
biobjId - the biobj id
Throws:
java.lang.Exception - the exception

eraseNotesByOwner

public void eraseNotesByOwner(java.lang.Integer biobjId,
                              java.lang.String execIdentif,
                              java.lang.String owner)
                       throws java.lang.Exception
Description copied from interface: IObjNoteDAO
Deletes all notes associated to the BIObject with the id and the owner specified in input.

Specified by:
eraseNotesByOwner in interface IObjNoteDAO
Parameters:
biobjId - the biobj id
owner - the user owner the note
Throws:
java.lang.Exception - the exception