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

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

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

See Also:
Serialized Form

Constructor Summary
SubObject()
           
 
Method Summary
 java.lang.Integer getBinaryContentId()
          Gets the binary content id.
 java.lang.Integer getBiobjId()
          Gets the biobj id.
 byte[] getContent()
          Tries to load binary content from database for this SubObject instance, given its binary content identifier, if content field is null.
 java.util.Date getCreationDate()
          Gets the creation date.
 java.lang.String getDescription()
          Gets the description.
 java.lang.Integer getId()
          Gets the id.
 java.lang.Boolean getIsPublic()
          Gets the checks if is public.
 java.util.Date getLastChangeDate()
          Gets the last change date.
 java.lang.String getName()
          Gets the name.
 java.lang.String getOwner()
          Gets the owner.
 void setBinaryContentId(java.lang.Integer binaryContentId)
          Sets the binary content id.
 void setBiobjId(java.lang.Integer biobjId)
          Sets the biobj id.
 void setContent(byte[] content)
          Sets the content.
 void setCreationDate(java.util.Date creationDate)
          Sets the creation date.
 void setDescription(java.lang.String description)
          Sets the description.
 void setId(java.lang.Integer id)
          Sets the id.
 void setIsPublic(java.lang.Boolean isPublic)
          Sets the checks if is public.
 void setLastChangeDate(java.util.Date lastChangeDate)
          Sets the last change date.
 void setName(java.lang.String name)
          Sets the name.
 void setOwner(java.lang.String owner)
          Sets the owner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubObject

public SubObject()
Method Detail

getBinaryContentId

public java.lang.Integer getBinaryContentId()
Gets the binary content id.

Returns:
the binary content id

setBinaryContentId

public void setBinaryContentId(java.lang.Integer binaryContentId)
Sets the binary content id.

Parameters:
binaryContentId - the new binary content id

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

getIsPublic

public java.lang.Boolean getIsPublic()
Gets the checks if is public.

Returns:
the checks if is public

setIsPublic

public void setIsPublic(java.lang.Boolean isPublic)
Sets the checks if is public.

Parameters:
isPublic - the new checks if is public

getOwner

public java.lang.String getOwner()
Gets the owner.

Returns:
the owner

setOwner

public void setOwner(java.lang.String owner)
Sets the owner.

Parameters:
owner - the new owner

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

getLastChangeDate

public java.util.Date getLastChangeDate()
Gets the last change date.

Returns:
the last change date

setLastChangeDate

public void setLastChangeDate(java.util.Date lastChangeDate)
Sets the last change date.

Parameters:
lastChangeDate - the new last change date

getCreationDate

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

Returns:
the creation date

setCreationDate

public void setCreationDate(java.util.Date creationDate)
Sets the creation date.

Parameters:
creationDate - the new creation date

getContent

public byte[] getContent()
                  throws it.eng.spago.error.EMFUserError,
                         it.eng.spago.error.EMFInternalError
Tries to load binary content from database for this SubObject 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