|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jso.schema.ClassDescriptor
Class for class descritptors. Class descriptors represent
Storable
implementations as they should be
stored in JSO schema.
Constructor Summary | |
ClassDescriptor(java.lang.Class javaClass,
java.util.Set fieldSet,
java.util.Set indexSet,
java.util.Set superclassSet,
boolean collectable)
Constructs the class descriptor. |
Method Summary | |
void |
addJavaSubclass(java.lang.Class aClass)
Adds a class to the set of subclasses of the storable class. |
boolean |
equals(java.lang.Object o)
Indicates whether some other class descriptor is "equal to" this one. |
boolean |
equalsIgnoreSubclasses(ClassDescriptor cd)
Indicates whether some other class descriptor is "equal to" this one. |
java.util.Set |
getFields()
Gets the field descriptors for the class descriptor . |
long |
getId()
Returns the cataloged id of this class descriptor's class. |
java.util.Set |
getIndices()
Gets the index descriptors for the class descriptor . |
java.lang.Class |
getJavaClass()
Returns the corresponding java class. |
java.util.Set |
getJavaSubclasses()
Returns the set of subclasses of the storable class. |
java.util.Set |
getJavaSuperclasses()
Returns the set of superclasses of the storable class. |
TableDescriptor |
getTableDescriptor()
Returns a table descriptor for this class descriptor. |
java.lang.String |
getTableName()
Returns the name of the storable class's corresponding table. |
static java.lang.String |
getTableNameFor(java.lang.Class aClass)
Returns a table name for a class. |
static java.lang.String |
getTableNameFor(java.lang.String className)
Returns a table name for a class name. |
int |
hashCode()
Returns a hash code value for the class descriptor. |
boolean |
isGarbageCollectable()
Indicates if the storable class is garabage collectable. |
void |
removeJavaSubclass(java.lang.Class aClass)
Removes a class to the set of subclasses of the storable class. |
void |
setId(long anId)
Sets the cataloged id of this class descriptor's class. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassDescriptor(java.lang.Class javaClass, java.util.Set fieldSet, java.util.Set indexSet, java.util.Set superclassSet, boolean collectable)
Method Detail |
public java.lang.Class getJavaClass()
public void setId(long anId)
anId
- The id of this class descriptor's class.public long getId()
public boolean isGarbageCollectable()
public java.util.Set getFields()
FieldDescriptor
objects.public java.util.Set getIndices()
IndexDescriptor
objects.public java.util.Set getJavaSubclasses()
public java.util.Set getJavaSuperclasses()
public void addJavaSubclass(java.lang.Class aClass)
public void removeJavaSubclass(java.lang.Class aClass)
public static java.lang.String getTableNameFor(java.lang.Class aClass)
aClass
- Class for which a table name will be returned.
public static java.lang.String getTableNameFor(java.lang.String className)
className
- Class name for which a table name will be returned.
public TableDescriptor getTableDescriptor()
public java.lang.String getTableName()
public boolean equals(java.lang.Object o)
o
- The object with which to compare.
true
if the class descriptor is the same as the
class descriptor argument; false
otherwise.public boolean equalsIgnoreSubclasses(ClassDescriptor cd)
cd
- The class descriptor with which to compare.
true
if the class descriptor is the same as the
class descriptor argument; false
otherwise.public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |