org.nakedobjects.persistence.sql
Interface SqlCollectionMapper

All Known Implementing Classes:
AutoSqlCollectionMapper, DirectOneToManySqlCollectionMapper, IndirectOneToManySqlCollectionMapper

public interface SqlCollectionMapper


Method Summary
 void add(java.lang.Object collectionOid, NakedObject object)
           
 boolean containsElement(java.lang.Object collectionOid, NakedObject element)
           
 boolean isFirstElement(java.lang.Object collectionOid, NakedObject element)
           
 boolean isLastElement(java.lang.Object collectionOid, NakedObject element)
           
 java.util.Vector nextElements(java.lang.Object collectionOid, NakedObject fromObject, int count)
           
 int numberOfElements(java.lang.Object collectionOid)
           
 java.util.Vector previousElements(java.lang.Object collectionOid, NakedObject toObject, int count)
           
 void remove(java.lang.Object collectionOid, NakedObject object)
           
 

Method Detail

add

public void add(java.lang.Object collectionOid,
                NakedObject object)
         throws ObjectStoreException
Throws:
ObjectStoreException

containsElement

public boolean containsElement(java.lang.Object collectionOid,
                               NakedObject element)
                        throws ObjectStoreException
Throws:
ObjectStoreException

isFirstElement

public boolean isFirstElement(java.lang.Object collectionOid,
                              NakedObject element)
                       throws ObjectStoreException
Throws:
ObjectStoreException

isLastElement

public boolean isLastElement(java.lang.Object collectionOid,
                             NakedObject element)
                      throws ObjectStoreException
Throws:
ObjectStoreException

nextElements

public java.util.Vector nextElements(java.lang.Object collectionOid,
                                     NakedObject fromObject,
                                     int count)
                              throws ObjectStoreException
Throws:
ObjectStoreException

numberOfElements

public int numberOfElements(java.lang.Object collectionOid)
                     throws ObjectStoreException
Throws:
ObjectStoreException

previousElements

public java.util.Vector previousElements(java.lang.Object collectionOid,
                                         NakedObject toObject,
                                         int count)
                                  throws ObjectStoreException
Throws:
ObjectStoreException

remove

public void remove(java.lang.Object collectionOid,
                   NakedObject object)
            throws ObjectStoreException
Throws:
ObjectStoreException