org.xorm
Class CollectionProxy
java.lang.Object
|
+--java.util.AbstractCollection
|
+--org.xorm.CollectionProxy
- All Implemented Interfaces:
- Collection, I15d
- Direct Known Subclasses:
- RelationshipProxy
- public class CollectionProxy
- extends AbstractCollection
- implements I15d
Represents a one-to-many or many-to-many relationship. An instance
of CollectionProxy is constructed by
InterfaceInvocationHandler.invokeCollectionGet() and by the JDO Query
mechanism.
Fields inherited from interface org.xorm.I15d |
I18N |
logger
protected static Logger logger
rows
protected Collection rows
rowToProxy
protected HashMap rowToProxy
classMapping
protected ClassMapping classMapping
mgr
protected org.xorm.InterfaceManager mgr
selector
protected Selector selector
sizeHint
protected int sizeHint
iterator
protected CollectionProxy.ProxyIterator iterator
closed
protected boolean closed
CollectionProxy
protected CollectionProxy(org.xorm.InterfaceManager mgr,
ClassMapping classMapping)
CollectionProxy
public CollectionProxy(PersistenceManager mgr,
ClassMapping classMapping,
Selector selector)
getInterfaceManager
public org.xorm.InterfaceManager getInterfaceManager()
- Returns the InterfaceManager associated with this proxy.
getElementType
public Class getElementType()
getKeyColumn
protected Column getKeyColumn()
- Returns the column on the rows held by this object that contains
the primary keys of the element type.
getRows
public Collection getRows()
- Lazy resolve on rows.
add
public boolean add(Object o)
- Specified by:
add
in interface Collection
- Overrides:
add
in class AbstractCollection
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection
- Overrides:
remove
in class AbstractCollection
close
public void close()
size
public int size()
- Returns the size of the collection.
- Specified by:
size
in interface Collection
- Specified by:
size
in class AbstractCollection
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in class AbstractCollection
$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/CollectionProxy.html,v 1.4 2004/05/30 08:55:03 wbiggs Exp $