|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.metadata.DescriptorBase
org.apache.ojb.broker.metadata.AttributeDescriptorBase
org.apache.ojb.broker.metadata.ObjectReferenceDescriptor
org.apache.ojb.broker.metadata.CollectionDescriptor
mapping Description for member fields that are Collections
Note: Be careful when use references of this class or caching instances of this class,
because instances could become invalid (see MetadataManager
).
Field Summary |
Constructor Summary | |
CollectionDescriptor(ClassDescriptor descriptor)
|
Method Summary | |
void |
addFkToItemClass(java.lang.String column)
add a FK column pointing to the item Class |
void |
addFkToThisClass(java.lang.String column)
add a FK column pointing to This Class |
void |
addOrderBy(java.lang.String fieldName,
boolean sortAscending)
Adds a field for orderBy |
java.lang.Class |
getCollectionClass()
returns the type of the collection. |
java.lang.String |
getCollectionClassName()
Retrieve the classname of the collection. |
java.lang.String[] |
getFksToItemClass()
|
java.lang.String[] |
getFksToThisClass()
|
java.lang.String |
getIndirectionTable()
|
java.util.Collection |
getOrderBy()
Returns the orderby Collection of Fields. |
org.apache.ojb.broker.accesslayer.QueryCustomizer |
getQueryCustomizer()
|
boolean |
hasProxyItems()
|
boolean |
isLazy()
returns true if this is a lazy Collection. |
boolean |
isMtoNRelation()
|
boolean |
isRefresh()
Gets the refresh. |
void |
setCollectionClass(java.lang.Class c)
set the type of the collection |
void |
setFksToItemClass(java.util.Vector fksToItemClass)
|
void |
setFksToThisClass(java.util.Vector fksToThisClass)
|
void |
setIndirectionTable(java.lang.String indirectionTable)
|
void |
setLazy(boolean lazy)
Sets the lazy flag. |
void |
setQueryCustomizer(org.apache.ojb.broker.accesslayer.QueryCustomizer queryCustomizer)
Sets the queryCustomizer. |
void |
setRefresh(boolean refresh)
Sets the refresh. |
java.lang.String |
toXML()
returns the XML marshalled version of this instance. |
Methods inherited from class org.apache.ojb.broker.metadata.ObjectReferenceDescriptor |
addForeignKeyField, addForeignKeyField, getCascadeDelete, getCascadeRetrieve, getCascadeStore, getForeignKeyFieldDescriptors, getForeignKeyFields, getForeignKeyValues, getItemClass, getItemClassName, getItemProxyClass, getOtmDependent, getProxyPrefetchingLimit, setCascadeDelete, setCascadeRetrieve, setCascadeStore, setForeignKeyFields, setItemClass, setOtmDependent, setProxyPrefetchingLimit, toString |
Methods inherited from class org.apache.ojb.broker.metadata.AttributeDescriptorBase |
addAttribute, getAttribute, getAttribute, getAttributeName, getClassDescriptor, getPersistentField, setClassDescriptor, setPersistentField |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CollectionDescriptor(ClassDescriptor descriptor)
Method Detail |
public java.lang.String[] getFksToThisClass()
public void setFksToThisClass(java.util.Vector fksToThisClass)
public void addFkToThisClass(java.lang.String column)
public void addFkToItemClass(java.lang.String column)
public java.lang.Class getCollectionClass()
public void setCollectionClass(java.lang.Class c)
c
- the collection typepublic java.lang.String getCollectionClassName()
public java.lang.String getIndirectionTable()
public void setIndirectionTable(java.lang.String indirectionTable)
public java.lang.String[] getFksToItemClass()
public void setFksToItemClass(java.util.Vector fksToItemClass)
public boolean isMtoNRelation()
public void addOrderBy(java.lang.String fieldName, boolean sortAscending)
fieldName
- The field name to be usedsortAscending
- true for ASCENDING, false for DESCENDINGpublic java.util.Collection getOrderBy()
public boolean isLazy()
isLazy
in class ObjectReferenceDescriptor
public void setLazy(boolean lazy)
setLazy
in class ObjectReferenceDescriptor
lazy
- The lazy to setpublic boolean isRefresh()
isRefresh
in class ObjectReferenceDescriptor
public void setRefresh(boolean refresh)
setRefresh
in class ObjectReferenceDescriptor
refresh
- The refresh to setpublic java.lang.String toXML()
XmlCapable
toXML
in interface XmlCapable
toXML
in class ObjectReferenceDescriptor
public org.apache.ojb.broker.accesslayer.QueryCustomizer getQueryCustomizer()
public void setQueryCustomizer(org.apache.ojb.broker.accesslayer.QueryCustomizer queryCustomizer)
queryCustomizer
- The queryCustomizer to setpublic boolean hasProxyItems() throws PersistenceBrokerException
PersistenceBrokerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |