|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Meta class for storable classes.
| Method Summary | |
void |
addJavaSubclass(java.lang.Class aClass)
Adds a class to the set of subclasses of the storable class. |
boolean |
check(StorableClass aClass)
Checks this storable class against another one. |
CID |
getCID()
Returns the class' schema identification. |
java.lang.reflect.Field |
getContainerValueField()
Returns a generic fake field for storing values of container classes. |
java.lang.String |
getDeleteStatement()
Returns the delete statement for an object in the form: delete from <table> where oid = ? |
java.lang.Integer |
getFieldType(java.lang.reflect.Field field)
Returns the type of a field as established in StorableField. |
long |
getId()
Returns the class' schema identification. |
java.lang.String |
getInsertStatement()
Returns an insert statement for an object in the form: insert into <table> (oid,<fields>) values (? |
java.util.Set |
getJavaAccessibleFields()
Returns the set of accessible fields of the storable class. |
java.lang.Class |
getJavaClass()
Returns the target java class. |
java.lang.reflect.Field |
getJavaField(java.lang.String fieldName)
Returns a fields of the storable class. |
java.util.Set |
getJavaFields()
Returns the set of fields of the storable class. |
java.util.Set |
getJavaReferenceFields()
Returns the set of fields of the storable class that are from types StorableField.OBJECT or
StorableField.CONTAINER. |
java.util.Set |
getJavaSubclasses()
Returns the set of subclasses of the storable class. |
java.util.Set |
getJavaSummaryFields()
Returns the set of summary fields of the storable class. |
java.util.Set |
getJavaSuperclasses()
Returns the set of superclasses of the storable class. |
java.lang.reflect.Field |
getJsoMetadataField()
Returns class's jsoMetadata field. |
java.lang.reflect.Method |
getJsoPostRetrieveMethod()
Returns class's jsoPostRetrieve() method. |
java.lang.reflect.Method |
getJsoPreDeleteMethod()
Returns class's jsoPreDelete() method. |
java.lang.reflect.Method |
getJsoPreStoreMethod()
Returns class's jsoPreStore() method. |
java.lang.String |
getSelectStatement(boolean summary)
Returns a select statement for an object in the form: select <fields> from <table> where oid = ? |
java.lang.String |
getTableName()
Returns the name of the storable class's corresponding table. |
java.lang.String |
getUpdateStatement()
Returns an update statement for an object in the form: update <table> set <fields = ? |
java.lang.reflect.Constructor |
getVoidConstructor()
Returns class's void constructor. |
java.lang.reflect.Field |
getWrapperValueField()
Returns a generic fake field for storing values of wrapper classes. |
boolean |
isAccessible(java.lang.reflect.Field field)
Indicates if the supplied field is accessible. |
boolean |
isChecked()
Indicates if this storable class has been checked agains corresponding class. |
boolean |
isCollectionType()
Indicates if storable class is a collection type. |
boolean |
isContainerType()
Indicates if storable class is a container type. |
boolean |
isGarbageCollectable()
Indicates if the storable class is garabage collectable. |
boolean |
isMapType()
Indicates if storable class is a map type. |
boolean |
isStorableType()
Indicates if storable class is a storable type. |
boolean |
isSummary(java.lang.reflect.Field field)
Indicates if the supplied field is a summary field. |
java.lang.Object |
newInstance()
Creates new instance of storable class' target java class. |
java.lang.Object |
newProxy(OID oid,
boolean isSummary,
StorageManager aManager)
Creates a new proxy to storable class' target java class. |
void |
removeJavaSubclass(java.lang.Class aClass)
Removes a class to the set of subclasses of the storable class. |
| Method Detail |
public long getId()
public CID getCID()
public java.lang.Class getJavaClass()
public boolean isChecked()
true if descriptor has been checked; false
otherwise.
public java.lang.reflect.Field getJavaField(java.lang.String fieldName)
throws StorageException
fieldName - The name of the field to be returned.
StorageException - If no such field exists int the class.
public java.lang.Integer getFieldType(java.lang.reflect.Field field)
throws StorageException
StorableField.
field - The field of which the name should be returned.
StorageException - If no such field exists int the class.public java.lang.reflect.Field getJsoMetadataField()
jsoMetadata field.
public java.lang.reflect.Method getJsoPreStoreMethod()
jsoPreStore() method.
jsoPreStore() method if class has it;
null otherwise.public java.lang.reflect.Method getJsoPostRetrieveMethod()
jsoPostRetrieve() method.
jsoPostRetrieve() method if class has it;
null otherwise.public java.lang.reflect.Method getJsoPreDeleteMethod()
jsoPreDelete() method.
jsoPreDelete() method if class has it;
null otherwise.public java.lang.reflect.Constructor getVoidConstructor()
null otherwise.
public boolean isSummary(java.lang.reflect.Field field)
throws StorageException
true if the field is part of the class' summary;
false otherwise;
StorageException
public boolean isAccessible(java.lang.reflect.Field field)
throws StorageException
true if the field may be accessed during query
processing; false otherwise;
StorageExceptionpublic java.lang.reflect.Field getWrapperValueField()
public java.lang.reflect.Field getContainerValueField()
public java.util.Set getJavaFields()
public java.util.Set getJavaSummaryFields()
public java.util.Set getJavaAccessibleFields()
public java.util.Set getJavaReferenceFields()
StorableField.OBJECT or
StorableField.CONTAINER.
OBJECT and CONTAINER fields of
the storable class.public java.util.Set getJavaSubclasses()
public java.util.Set getJavaSuperclasses()
public boolean isGarbageCollectable()
true if the storable class is garabage collectable;
false> otherwise.public void addJavaSubclass(java.lang.Class aClass)
aClass - The class to be added.public void removeJavaSubclass(java.lang.Class aClass)
aClass - The class to be removed.public java.lang.String getTableName()
public java.lang.String getInsertStatement()
insert into <table> (oid,<fields>) values (?,<?>)
prepared statement.public java.lang.String getUpdateStatement()
update <table> set <fields = ?> where oid = ?
prepared statement. May return
null if class has no fields.public java.lang.String getDeleteStatement()
delete from <table> where oid = ?
prepared statement.public java.lang.String getSelectStatement(boolean summary)
select <fields> from <table> where oid = ?
summary - If true only summary fields are included in the
statement; otherwise all fields are included.
prepared statement. May return
null if class has no fields.public boolean check(StorableClass aClass)
aClass - The class to be checked against.
true if check was successfull; false
otherwise.public boolean isContainerType()
true if storable class is a collection or a map type;
false otherwise.public boolean isCollectionType()
true if storable class is a collection type;
false otherwise.public boolean isMapType()
true if storable class is a map type;
false otherwise.public boolean isStorableType()
true if storable class is a
storable type; false
otherwise.
public java.lang.Object newInstance()
throws StorageException
StorageException
public java.lang.Object newProxy(OID oid,
boolean isSummary,
StorageManager aManager)
throws StorageException
oid - Target object's identification.isSummary - If only summary fields of target object should be used.aManager - Storage manager to which proxy will communicate.
StorageException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||