|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--org.xorm.CollectionProxy | +--org.xorm.RelationshipProxy
Represents a one-to-many or many-to-many relationship. An instance of RelationshipProxy is constructed in InterfaceInvocationHandler.invokeCollectionGet().
Nested Class Summary | |
protected class |
RelationshipProxy.RelationshipProxyIterator
|
Nested classes inherited from class org.xorm.CollectionProxy |
|
Field Summary | |
protected Object[] |
args
|
protected Collection |
deletedRows
|
protected static Logger |
logger
|
protected RelationshipMapping |
mapping
|
protected Collection |
newRows
|
protected InterfaceInvocationHandler |
owner
|
protected boolean |
txnManaged
|
Fields inherited from class org.xorm.CollectionProxy |
classMapping, closed, iterator, mgr, rows, rowToProxy, selector, sizeHint |
Fields inherited from interface org.xorm.I15d |
I18N |
Constructor Summary | |
RelationshipProxy(org.xorm.InterfaceManager mgr,
RelationshipMapping mapping,
InterfaceInvocationHandler owner,
ClassMapping classMapping,
Object[] args)
Creates a new proxy backed by the data in the rows collection. |
Method Summary | |
boolean |
add(Object o)
Adds the given object (proxy object) to the collection. |
void |
clear()
Removes all rows. |
boolean |
dependsOn(InterfaceInvocationHandler other)
|
protected void |
forceTransaction()
Ensures that the proxy is registered in a transaction if necessary. |
Class |
getElementType()
Overrides CollectionProxy implementation. |
protected Column |
getKeyColumn()
Returns the column on the rows held by this object that contains the primary keys of the element type. |
InterfaceInvocationHandler |
getOwner()
Returns the owner of this directional relationship. |
RelationshipMapping |
getRelationshipMapping()
Returns the underlying relationship mapping this represents. |
protected Selector |
getSelector()
|
Iterator |
iterator()
|
void |
notifyIDChanged(Object oldID,
Object newID)
Called when an object ID changes. |
boolean |
remove(Object o)
Removes the given object (proxy object) from the collection. |
Methods inherited from class org.xorm.CollectionProxy |
close, getInterfaceManager, getRows, size |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Field Detail |
protected static Logger logger
protected boolean txnManaged
protected RelationshipMapping mapping
protected InterfaceInvocationHandler owner
protected Collection deletedRows
protected Collection newRows
protected Object[] args
Constructor Detail |
public RelationshipProxy(org.xorm.InterfaceManager mgr, RelationshipMapping mapping, InterfaceInvocationHandler owner, ClassMapping classMapping, Object[] args)
Method Detail |
public RelationshipMapping getRelationshipMapping()
public InterfaceInvocationHandler getOwner()
public Class getElementType()
getElementType
in class CollectionProxy
protected Selector getSelector()
protected void forceTransaction()
public boolean add(Object o)
add
in interface Collection
add
in class CollectionProxy
public boolean remove(Object o)
remove
in interface Collection
remove
in class CollectionProxy
public void clear()
clear
in interface Collection
clear
in class AbstractCollection
public void notifyIDChanged(Object oldID, Object newID)
public boolean dependsOn(InterfaceInvocationHandler other)
protected Column getKeyColumn()
CollectionProxy
getKeyColumn
in class CollectionProxy
public Iterator iterator()
iterator
in interface Collection
iterator
in class CollectionProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |