|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.BbObject
public abstract class BbObject
The BbObject class is the root of the data class hierarchy.
All data objects have BbObject as a superclass. It contains a
set of members and methods that all data objects inherit.
| Field Summary | |
|---|---|
protected BbAttributes |
_bbAttributes
|
| Constructor Summary | |
|---|---|
BbObject()
Default Constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
This method clones the BbObject as well as it's contained BbAttributes object. |
BbAttributes |
getBbAttributes()
Returns the BbAttributes associated with this BbObject. |
java.util.Calendar |
getCreatedDate()
Deprecated. |
abstract DataType |
getDataType()
Returns the DataType identifier for the given BbObject-derived
object. |
Id |
getId()
Returns the Id associated with this BbObject. |
java.util.Calendar |
getModifiedDate()
Returns the date on which this BbObject was last modified. |
void |
persist()
Inserts or updates the current BbObject in a lightweight
fashion. |
void |
setCreatedDate(java.util.Calendar cCreatedDate)
Deprecated. |
void |
setId(Id iId)
Sets the Id value for this BbObject. |
void |
setModifiedDate(java.util.Calendar cModifiedDate)
Sets the last modified date for this BbObject. |
java.lang.String |
toString()
Returns the contents of this BbObject object as a line-feed
separated list of name value pairs of this object's properties. |
void |
validate()
Validates the contents of this BbObject. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected BbAttributes _bbAttributes
| Constructor Detail |
|---|
public BbObject()
| Method Detail |
|---|
public BbAttributes getBbAttributes()
BbAttributes associated with this BbObject.
getBbAttributes in interface IBbObjectBbAttributes value for this BbObjectpublic Id getId()
Id associated with this BbObject.
getId in interface IdentifiableId value for this BbObjectpublic void setId(Id iId)
Id value for this BbObject.
setId in interface IdentifiableiId - an Id value to use for this BbObjectpublic java.util.Calendar getCreatedDate()
getCreatedDate in interface IBbObjectpublic void setCreatedDate(java.util.Calendar cCreatedDate)
setCreatedDate in interface IBbObjectpublic java.util.Calendar getModifiedDate()
BbObject was last modified.
getModifiedDate in interface IBbObjectCalendar representing the modified date of this
BbObjectpublic void setModifiedDate(java.util.Calendar cModifiedDate)
BbObject.
setModifiedDate in interface IBbObjectcModifiedDate - a Calendar to use for the modified datepublic abstract DataType getDataType()
DataType identifier for the given BbObject-derived
object. Can be used to uniquely identify the "type" of a data object.
getDataType in interface IBbObjectgetDataType in interface IdentifiableDataType for current objectpublic java.lang.String toString()
BbObject object as a line-feed
separated list of name value pairs of this object's properties. The line-feed
character used is the one specified by the java system property
"line.separator". This method can be used for debug purposes.
toString in class java.lang.ObjectString that represents the contents of this object
public void validate()
throws ValidationException
BbObject. Internal consistency
checks are also performed.
validate in interface IBbObjectValidationException - if validation of this object failspublic java.lang.Object clone()
clone in class java.lang.Object
public void persist()
throws ValidationException,
PersistenceException
BbObject in a lightweight
fashion. The target of the operation is determined based upon the state
of the object. If the object represents a valid object within an existing
database container, the object will be persisted back to that container
(update operation). Otherwise, the object will be persisted using the
default database persistence manager (as determined by context).
ValidationException - if this object is not in a consistent state
to be persisted.
PersistenceException - if some other exception happens while
persisting this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||