|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.broker.metadata.ClassDescriptor
A ClassDescriptor contains all information for mapping objects of a given class to database tables.
Constructor Summary | |
ClassDescriptor()
Constructor declaration |
Method Summary | |
void |
addCollectionDescriptor(CollectionDescriptor cod)
Method declaration |
void |
addExtentClass(java.lang.Class newExtendClass)
Method declaration |
void |
addFieldDescriptor(FieldDescriptor fld)
adds a FieldDescriptor to this ClassDescriptor. |
void |
addObjectReferenceDescriptor(ObjectReferenceDescriptor ord)
Method declaration |
java.lang.Object[] |
getAllValues(java.lang.Object obj)
returns a vector containing values for all the Objects attributes |
java.lang.Class |
getClassOfObject()
Method declaration |
CollectionDescriptor |
getCollectionDescriptorByName(java.lang.String name)
Get an CollectionDescriptor by name BRJ |
java.util.Vector |
getCollectionDescriptors()
Method declaration |
JdbcConnectionDescriptor |
getConnectionDescriptor()
Method declaration |
java.lang.reflect.Constructor |
getConstructor()
returns a Constructor that takes all persistent attributes of the class as arguments. |
ConversionStrategy |
getConversionStrategy()
|
java.lang.Object[] |
getCurrentLockingValues(java.lang.Object o)
returns an Array with an Objects CURRENT locking VALUES , BRJ |
java.lang.Class |
getDynamicProxyClass()
returns a dynamic Proxy that implements all interfaces of the class described by this ClassDescriptor. |
java.util.Vector |
getExtentClasses()
return all classes in this extent. |
FieldDescriptor[] |
getFieldDescriptions()
returns array of all FieldDescriptors. |
FieldDescriptor |
getFieldDescriptorByIndex(int index)
Method declaration |
FieldDescriptor |
getFieldDescriptorByName(java.lang.String name)
Method declaration |
java.lang.String |
getFullTableName()
Answer Table name including schema BRJ |
int |
getIsolationLevel()
returns the transaction isolation level to be used for this class. |
java.lang.Object[] |
getKeyValues(java.lang.Object o)
returns an Array with an Objects PK VALUES |
FieldDescriptor[] |
getLockingFields()
return an array of FieldDescription for optimistic locking sorted ascending according to the field-descriptions getOrder() property |
java.lang.Object[] |
getNonKeyValues(java.lang.Object o)
returns an Array with an Objects NON-PK VALUES |
FieldDescriptor[] |
getNonPkFields()
return an array of PK FieldDescription sorted ascending according to the field-descriptions getOrder() property |
ObjectReferenceDescriptor |
getObjectReferenceDescriptorByName(java.lang.String name)
Get an ObjectReferenceDescriptor by name BRJ |
java.util.Vector |
getObjectReferenceDescriptors()
Method declaration |
java.lang.String |
getOrderby()
Insert the method's description here. |
ObjectReferenceDescriptor |
getORDescriptorByClass(java.lang.Class c)
Method declaration |
FieldDescriptor[] |
getPkFields()
return an array of PK FieldDescription sorted ascending according to the field-descriptions getOrder() property |
java.lang.Class |
getProxyClass()
Insert the method's description here. |
DescriptorRepository |
getRepository()
Gets the repository. |
RowReader |
getRowReader()
|
java.lang.String |
getSchema()
Gets the schema. |
boolean |
isExtent()
Insert the method's description here. |
boolean |
isInterface()
Insert the method's description here. |
boolean |
isLocking()
return true if optimistic locking is used |
void |
setClassOfObject(java.lang.Class c)
Method declaration |
void |
setConnectionDescriptor(JdbcConnectionDescriptor jcd)
Method declaration |
void |
setConversionStrategy(ConversionStrategy newStrategy)
|
void |
setIsInterface(boolean newIsInterface)
Insert the method's description here. |
void |
setIsolationLevel(int isoLevel)
Method declaration |
void |
setOrderby(java.lang.String newOrderby)
Insert the method's description here. |
void |
setProxyClass(java.lang.Class newProxyClass)
Insert the method's description here. |
void |
setRepository(DescriptorRepository repository)
Sets the repository. |
void |
setRowReader(RowReader newReader)
|
void |
setSchema(java.lang.String schema)
Sets the schema. |
void |
setTableName(java.lang.String str)
Method declaration |
java.lang.String |
toString()
Method declaration |
void |
updateLockingValues(java.lang.Object obj)
updates the values for locking fields , BRJ handles int, long, Timestamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClassDescriptor()
Method Detail |
public void setConversionStrategy(ConversionStrategy newStrategy)
public ConversionStrategy getConversionStrategy()
public void setRowReader(RowReader newReader)
public RowReader getRowReader()
public java.lang.String getFullTableName()
public void setTableName(java.lang.String str)
str
- public java.lang.Class getClassOfObject()
public void setClassOfObject(java.lang.Class c)
c
- public void addFieldDescriptor(FieldDescriptor fld)
fld
- public java.util.Vector getCollectionDescriptors()
public void addCollectionDescriptor(CollectionDescriptor cod)
cod
- public java.util.Vector getObjectReferenceDescriptors()
public void addObjectReferenceDescriptor(ObjectReferenceDescriptor ord)
ord
- public JdbcConnectionDescriptor getConnectionDescriptor()
public void setConnectionDescriptor(JdbcConnectionDescriptor jcd)
jcd
- public FieldDescriptor getFieldDescriptorByIndex(int index)
index
-
public ObjectReferenceDescriptor getORDescriptorByClass(java.lang.Class c)
c
-
public java.lang.String toString()
toString
in class java.lang.Object
public FieldDescriptor getFieldDescriptorByName(java.lang.String name)
name
-
public ObjectReferenceDescriptor getObjectReferenceDescriptorByName(java.lang.String name)
name
-
public CollectionDescriptor getCollectionDescriptorByName(java.lang.String name)
name
-
public int getIsolationLevel()
public void setIsolationLevel(int isoLevel)
isoLevel
- public void addExtentClass(java.lang.Class newExtendClass)
newExtendClass
- public java.lang.reflect.Constructor getConstructor()
public java.util.Vector getExtentClasses()
public java.lang.String getOrderby()
public java.lang.Class getProxyClass()
public boolean isExtent()
public boolean isInterface()
public void setIsInterface(boolean newIsInterface)
newIsInterface
- booleanpublic void setOrderby(java.lang.String newOrderby)
newOrderby
- java.lang.Stringpublic void setProxyClass(java.lang.Class newProxyClass)
newProxyClass
- java.lang.Classpublic java.lang.Object[] getAllValues(java.lang.Object obj) throws PersistenceBrokerException
PersistenceBrokerException
public FieldDescriptor[] getFieldDescriptions()
public java.lang.Object[] getKeyValues(java.lang.Object o) throws PersistenceBrokerException
PersistenceBrokerException
public java.lang.Object[] getCurrentLockingValues(java.lang.Object o) throws PersistenceBrokerException
PersistenceBrokerException
public void updateLockingValues(java.lang.Object obj) throws PersistenceBrokerException
PersistenceBrokerException
public java.lang.Object[] getNonKeyValues(java.lang.Object o) throws PersistenceBrokerException
PersistenceBrokerException
public FieldDescriptor[] getNonPkFields()
public FieldDescriptor[] getPkFields()
public FieldDescriptor[] getLockingFields()
public java.lang.Class getDynamicProxyClass()
public boolean isLocking()
public DescriptorRepository getRepository()
public void setRepository(DescriptorRepository repository)
repository
- The repository to setpublic java.lang.String getSchema()
public void setSchema(java.lang.String schema)
schema
- The schema to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |