it.eng.spagobi.analiticalmodel.document.dao
Interface ISnapshotDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
SnapshotDAOHibImpl

public interface ISnapshotDAO
extends ISpagoBIDao


Method Summary
 void deleteSnapshot(java.lang.Integer idSnap)
          Delete a snapshot.
 Snapshot getLastSnapshot(java.lang.Integer idBIObj)
          Gets the last snapshot that is children of a biobject.
 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 interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setTenant, setUserID, setUserProfile
 

Method Detail

saveSnapshot

void saveSnapshot(byte[] content,
                  java.lang.Integer idBIObj,
                  java.lang.String name,
                  java.lang.String description)
                  throws it.eng.spago.error.EMFUserError
Save a snapshot of the object.

Parameters:
content - byte array containing the content of the snapshot
idBIObj - the id of the biobject parent
name - the name of the new subobject
description - the description of the new subobject
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getSnapshots

java.util.List getSnapshots(java.lang.Integer idBIObj)
                            throws it.eng.spago.error.EMFUserError
Gets the list of the snapshot details that are children of a biobject.

Parameters:
idBIObj - the id of the biobject parent
Returns:
List of BIObject.BIObjectSnapshot objects
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

deleteSnapshot

void deleteSnapshot(java.lang.Integer idSnap)
                    throws it.eng.spago.error.EMFUserError
Delete a snapshot.

Parameters:
idSnap - the id of the snapshot
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

loadSnapshot

Snapshot loadSnapshot(java.lang.Integer idSnap)
                      throws it.eng.spago.error.EMFUserError
Load a snapshot.

Parameters:
idSnap - the id of the snapshot
Returns:
Snapshot the snapshot loaded
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getLastSnapshot

Snapshot getLastSnapshot(java.lang.Integer idBIObj)
                         throws it.eng.spago.error.EMFUserError
Gets the last snapshot that is children of a biobject.

Parameters:
idBIObj - the id of the biobject parent
Returns:
Snapshot the snapshot loaded
Throws:
it.eng.spago.error.EMFUserError - the EMF user error