it.eng.spagobi.analiticalmodel.document.bo
Class Snapshot

java.lang.Object
  extended by it.eng.spagobi.analiticalmodel.document.bo.Snapshot
All Implemented Interfaces:
java.io.Serializable

public class Snapshot
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Snapshot()
           
 
Method Summary
 java.lang.Integer getBinId()
          Gets the bin id.
 java.lang.Integer getBiobjId()
          Gets the biobj id.
 byte[] getContent()
          Tries to load binary content from database for this Snapshot instance, given its binary content identifier, if content field is null.
 java.util.Date getDateCreation()
          Gets the date creation.
 java.lang.String getDescription()
          Gets the description.
 java.lang.Integer getId()
          Gets the id.
 java.lang.String getName()
          Gets the name.
 void setBinId(java.lang.Integer binId)
          Sets the bin id.
 void setBiobjId(java.lang.Integer biobjId)
          Sets the biobj id.
 void setContent(byte[] content)
          Sets the content.
 void setDateCreation(java.util.Date dateCreation)
          Sets the date creation.
 void setDescription(java.lang.String description)
          Sets the description.
 void setId(java.lang.Integer id)
          Sets the id.
 void setName(java.lang.String name)
          Sets the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Snapshot

public Snapshot()
Method Detail

getId

public java.lang.Integer getId()
Gets the id.

Returns:
the id

setId

public void setId(java.lang.Integer id)
Sets the id.

Parameters:
id - the new id

getBiobjId

public java.lang.Integer getBiobjId()
Gets the biobj id.

Returns:
the biobj id

setBiobjId

public void setBiobjId(java.lang.Integer biobjId)
Sets the biobj id.

Parameters:
biobjId - the new biobj id

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getDescription

public java.lang.String getDescription()
Gets the description.

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - the new description

getDateCreation

public java.util.Date getDateCreation()
Gets the date creation.

Returns:
the date creation

setDateCreation

public void setDateCreation(java.util.Date dateCreation)
Sets the date creation.

Parameters:
dateCreation - the new date creation

getBinId

public java.lang.Integer getBinId()
Gets the bin id.

Returns:
the bin id

setBinId

public void setBinId(java.lang.Integer binId)
Sets the bin id.

Parameters:
binId - the new bin id

getContent

public byte[] getContent()
                  throws it.eng.spago.error.EMFUserError,
                         it.eng.spago.error.EMFInternalError
Tries to load binary content from database for this Snapshot instance, given its binary content identifier, if content field is null.

Returns:
The binary content of this instance; if it is null, it tries to load it from database if binary content identifier is available
Throws:
it.eng.spago.error.EMFUserError - if some errors while reading from db occurs
it.eng.spago.error.EMFInternalError - if some errors while reading from db occurs

setContent

public void setContent(byte[] content)
Sets the content.

Parameters:
content - the new content