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.


Nested Class Summary
protected  class CollectionProxy.ProxyIterator
           
 
Field Summary
protected  ClassMapping classMapping
           
protected  boolean closed
           
protected  CollectionProxy.ProxyIterator iterator
           
protected static Logger logger
           
protected  org.xorm.InterfaceManager mgr
           
protected  Collection rows
           
protected  HashMap rowToProxy
           
protected  Selector selector
           
protected  int sizeHint
           
 
Fields inherited from interface org.xorm.I15d
I18N
 
Constructor Summary
protected CollectionProxy(org.xorm.InterfaceManager mgr, ClassMapping classMapping)
           
  CollectionProxy(PersistenceManager mgr, ClassMapping classMapping, Selector selector)
           
 
Method Summary
 boolean add(Object o)
           
 void close()
           
 Class getElementType()
           
 org.xorm.InterfaceManager getInterfaceManager()
          Returns the InterfaceManager associated with this proxy.
protected  Column getKeyColumn()
          Returns the column on the rows held by this object that contains the primary keys of the element type.
 Collection getRows()
          Lazy resolve on rows.
 Iterator iterator()
           
 boolean remove(Object o)
           
 int size()
          Returns the size of the collection.
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, 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

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
Constructor Detail

CollectionProxy

protected CollectionProxy(org.xorm.InterfaceManager mgr,
                          ClassMapping classMapping)

CollectionProxy

public CollectionProxy(PersistenceManager mgr,
                       ClassMapping classMapping,
                       Selector selector)
Method Detail

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 $