public class StoredClassImpl extends java.lang.Object implements StoredClass
| Constructor and Description |
|---|
StoredClassImpl(Transaction transaction,
ClassMetadata classMetadata) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long[] |
getIDs()
returns an array of IDs of all stored object instances of this stored class.
|
java.lang.String |
getName()
returns the name of this stored class.
|
StoredClass |
getParentStoredClass()
returns the StoredClass for the parent of the class, this StoredClass represents.
|
StoredField[] |
getStoredFields()
returns all stored fields of this stored class.
|
boolean |
hasClassIndex()
returns true if this StoredClass has a class index.
|
int |
hashCode() |
int |
instanceCount()
Returns the number of instances of this class that have been persisted to the
database, as seen by the transaction (container) that produces this StoredClass
instance.
|
void |
rename(java.lang.String newName)
renames this stored class.
|
StoredField |
storedField(java.lang.String name,
java.lang.Object type)
returns an existing stored field of this stored class.
|
java.lang.String |
toString() |
public StoredClassImpl(Transaction transaction, ClassMetadata classMetadata)
public long[] getIDs()
StoredClassgetIDs in interface StoredClasspublic java.lang.String getName()
StoredClassgetName in interface StoredClasspublic StoredClass getParentStoredClass()
StoredClassgetParentStoredClass in interface StoredClasspublic StoredField[] getStoredFields()
StoredClassgetStoredFields in interface StoredClasspublic boolean hasClassIndex()
StoredClasshasClassIndex in interface StoredClasspublic void rename(java.lang.String newName)
StoredClassrename in interface StoredClassnewName - the new namepublic StoredField storedField(java.lang.String name, java.lang.Object type)
StoredClassstoredField in interface StoredClassname - the name of the fieldtype - the type of the field.
There are four possibilities how to supply the type:StoredFieldpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int instanceCount()
StoredClassinstanceCount in interface StoredClass