|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.persist.DataType
public class DataType
The DataType class provides a means of encapsulating the type
of data objects as defined within the persistence framework.
| Field Summary | |
|---|---|
static DataType |
NULL_DATA_TYPE
|
| Constructor Summary | |
|---|---|
DataType(java.lang.Class typeClass)
Creates a new DataType object with the given class value as the
unique data type identifier. |
|
DataType(java.lang.String name)
Deprecated. Use DataType(Class) instead. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates whether the given object is "equal to" this one. |
java.lang.String |
getName()
Returns the identifier name for this DataType as a String. |
java.lang.Class |
getTypeClass()
Returns the class defined by this DataType. |
int |
hashCode()
|
static java.lang.String |
toDbLoaderType(DataType dataType)
Returns a loader type key that can be use for retrieving a database loader (from an appropriate persistence manager -- see below) capable of handling objects with the given data type (see BbObject.getDataType()). |
static java.lang.String |
toDbPersisterType(DataType dataType)
Returns a persister type key that can be use for retrieving a database persister (from an appropriate persistence manager -- see below) capable of handling objects with the given data type (see BbObject.getDataType()). |
java.lang.String |
toString()
Returns the contents of this DataType object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DataType NULL_DATA_TYPE
| Constructor Detail |
|---|
public DataType(java.lang.String name)
DataType(Class) instead.
DataType(Class).
public DataType(java.lang.Class typeClass)
DataType object with the given class value as the
unique data type identifier. Use the java keyword class for an
easier way to generate the Class value, such as:
DataType dataType = new DataType( Announcement.class );
typeClass - the Class value to use as the data type identifier.
This Class value is the class value of the object that this
DataType is designed to represent.| Method Detail |
|---|
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the reference object with which to comparepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Class getTypeClass()
DataType.
DataType.public java.lang.String getName()
DataType as a String.
Stringpublic java.lang.String toString()
DataType object. This method can
be used for debug purposes.
toString in class java.lang.ObjectString that represents the contents of this objectpublic static java.lang.String toDbLoaderType(DataType dataType)
BbObject.getDataType()).
dataType - the DataType of the data object that a necessary
loader type key value should be returned for
Stringpublic static java.lang.String toDbPersisterType(DataType dataType)
BbObject.getDataType()).
dataType - the DataType of the data object that a necessary
persister type key value should be returned for
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||