Package net.ontopia.persistence.proxy
Interface ClassInfoIF
- All Known Implementing Classes:
ClassInfo
public interface ClassInfoIF
INTERNAL: A interface for class descriptor-like object types that
is used by the proxy implementation to access the information it
needs about the object relational class descriptor in an optimized
manner.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFlag indicating that the descriptor class has collection structure.static final intFlag indicating that the descriptor class has object structure.static final intFlag indicating that the descriptor class is an aggregate.static final intFlag indicating that the descriptor class is identifiable. -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(boolean immutable) INTERNAL: Creates an instance of the descriptor class.Class<?>INTERNAL: Return the descriptor class described by the descriptor.getFieldInfoByName(String name) INTERNAL: Get the field info by name.INTERNAL: Get the identity field info.INTERNAL: Get the M:M field infos.INTERNAL: Returns the owning object relational mapping instance.INTERNAL: Returns the name of the master table in which the class is stored.getName()INTERNAL: Returns the name of the descriptor class (the mapped class).INTERNAL: Get the 1:M field infos.INTERNAL: Get the 1:1 field infos.intINTERNAL: Returns the structure of the descriptor class.INTERNAL: Get the value field infos.booleanINTERNAL: Returns true if the descriptor class is declared as an abstract descriptor.booleanINTERNAL: Returns true if the descriptor class is declared as an aggregate type.booleanINTERNAL: Returns true if the descriptor class is declared as a an identifiable type.
-
Field Details
-
TYPE_IDENTIFIABLE
static final int TYPE_IDENTIFIABLEFlag indicating that the descriptor class is identifiable.- See Also:
-
TYPE_AGGREGATE
static final int TYPE_AGGREGATEFlag indicating that the descriptor class is an aggregate.- See Also:
-
STRUCTURE_OBJECT
static final int STRUCTURE_OBJECTFlag indicating that the descriptor class has object structure.- See Also:
-
STRUCTURE_COLLECTION
static final int STRUCTURE_COLLECTIONFlag indicating that the descriptor class has collection structure.- See Also:
-
-
Method Details
-
getMapping
ObjectRelationalMappingIF getMapping()INTERNAL: Returns the owning object relational mapping instance. -
getName
String getName()INTERNAL: Returns the name of the descriptor class (the mapped class). -
getDescriptorClass
Class<?> getDescriptorClass()INTERNAL: Return the descriptor class described by the descriptor. -
createInstance
INTERNAL: Creates an instance of the descriptor class. Actual implementation will depend on the immutable argument.- Throws:
Exception
-
getFieldInfoByName
INTERNAL: Get the field info by name. -
getIdentityFieldInfo
FieldInfoIF getIdentityFieldInfo()INTERNAL: Get the identity field info. Note that this field info is a wrapper instance that wraps the value field infos representing the fields used to represent the object identity. -
getValueFieldInfos
FieldInfoIF[] getValueFieldInfos()INTERNAL: Get the value field infos. The field infos are returned in the same order as specified by their index property. -
getOne2OneFieldInfos
FieldInfoIF[] getOne2OneFieldInfos()INTERNAL: Get the 1:1 field infos. -
getOne2ManyFieldInfos
FieldInfoIF[] getOne2ManyFieldInfos()INTERNAL: Get the 1:M field infos. -
getMany2ManyFieldInfos
FieldInfoIF[] getMany2ManyFieldInfos()INTERNAL: Get the M:M field infos. -
isAbstract
boolean isAbstract()INTERNAL: Returns true if the descriptor class is declared as an abstract descriptor. -
isIdentifiable
boolean isIdentifiable()INTERNAL: Returns true if the descriptor class is declared as a an identifiable type. -
isAggregate
boolean isAggregate()INTERNAL: Returns true if the descriptor class is declared as an aggregate type. -
getStructure
int getStructure()INTERNAL: Returns the structure of the descriptor class. This can either be OBJECT, COLLECTION or MAP. -
getMasterTable
String getMasterTable()INTERNAL: Returns the name of the master table in which the class is stored. This is the table which typically contains the instance identity.
-