it.eng.spagobi.analiticalmodel.document.dao
Class SnapshotDAOHibImpl
java.lang.Object
it.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.analiticalmodel.document.dao.SnapshotDAOHibImpl
- All Implemented Interfaces:
- ISnapshotDAO, ISpagoBIDao
public class SnapshotDAOHibImpl
- extends AbstractHibernateDAO
- implements ISnapshotDAO
Method Summary |
void |
deleteSnapshot(java.lang.Integer idSnap)
Delete a snapshot. |
java.util.List |
getSnapshots(java.lang.Integer idBIObj)
Gets the list of the snapshot details that are children of a biobject. |
Snapshot |
loadSnapshot(java.lang.Integer idSnap)
Load a snapshot. |
void |
saveSnapshot(byte[] content,
java.lang.Integer idBIObj,
java.lang.String name,
java.lang.String description)
Save a snapshot of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotDAOHibImpl
public SnapshotDAOHibImpl()
deleteSnapshot
public void deleteSnapshot(java.lang.Integer idSnap)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
ISnapshotDAO
- Delete a snapshot.
- Specified by:
deleteSnapshot
in interface ISnapshotDAO
- Parameters:
idSnap
- the id of the snapshot
- Throws:
it.eng.spago.error.EMFUserError
- the EMF user error
getSnapshots
public java.util.List getSnapshots(java.lang.Integer idBIObj)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
ISnapshotDAO
- Gets the list of the snapshot details that are children of a biobject.
- Specified by:
getSnapshots
in interface ISnapshotDAO
- Parameters:
idBIObj
- the id of the biobject parent
- Returns:
- List of BIObject.BIObjectSnapshot objects
- Throws:
it.eng.spago.error.EMFUserError
- the EMF user error
saveSnapshot
public void saveSnapshot(byte[] content,
java.lang.Integer idBIObj,
java.lang.String name,
java.lang.String description)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
ISnapshotDAO
- Save a snapshot of the object.
- Specified by:
saveSnapshot
in interface ISnapshotDAO
- Parameters:
content
- byte array containing the content of the snapshotidBIObj
- the id of the biobject parentname
- the name of the new subobjectdescription
- the description of the new subobject
- Throws:
it.eng.spago.error.EMFUserError
- the EMF user error
loadSnapshot
public Snapshot loadSnapshot(java.lang.Integer idSnap)
throws it.eng.spago.error.EMFUserError
- Description copied from interface:
ISnapshotDAO
- Load a snapshot.
- Specified by:
loadSnapshot
in interface ISnapshotDAO
- Parameters:
idSnap
- the id of the snapshot
- Returns:
- Snapshot the snapshot loaded
- Throws:
it.eng.spago.error.EMFUserError
- the EMF user error