org.nakedobjects.persistence.sql
Class AutoSqlCollectionMapper
java.lang.Object
org.nakedobjects.persistence.sql.DatabaseAccess
org.nakedobjects.persistence.sql.AutoSqlCollectionMapper
- All Implemented Interfaces:
- SqlCollectionMapper
- public class AutoSqlCollectionMapper
- extends DatabaseAccess
- implements SqlCollectionMapper
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AutoSqlCollectionMapper
public AutoSqlCollectionMapper(SqlObjectStore store,
java.lang.String className,
java.lang.String fieldName)
isFirstElement
public boolean isFirstElement(java.lang.Object collectionOid,
NakedObject element)
throws ObjectStoreException
- Specified by:
isFirstElement in interface SqlCollectionMapper
- Throws:
ObjectStoreException
isLastElement
public boolean isLastElement(java.lang.Object collectionOid,
NakedObject element)
throws ObjectStoreException
- Specified by:
isLastElement in interface SqlCollectionMapper
- Throws:
ObjectStoreException
add
public void add(java.lang.Object collectionOid,
NakedObject object)
throws ObjectStoreException
- Specified by:
add in interface SqlCollectionMapper
- Throws:
ObjectStoreException
containsElement
public boolean containsElement(java.lang.Object collectionOid,
NakedObject element)
throws ObjectStoreException
- Specified by:
containsElement in interface SqlCollectionMapper
- Throws:
ObjectStoreException
nextElements
public java.util.Vector nextElements(java.lang.Object collectionOid,
NakedObject fromElement,
int size)
throws ObjectStoreException
- Specified by:
nextElements in interface SqlCollectionMapper
- Throws:
ObjectStoreException
numberOfElements
public int numberOfElements(java.lang.Object collectionOid)
throws ObjectStoreException
- Specified by:
numberOfElements in interface SqlCollectionMapper
- Throws:
ObjectStoreException
previousElements
public java.util.Vector previousElements(java.lang.Object collectionOid,
NakedObject toElement,
int size)
throws ObjectStoreException
- Specified by:
previousElements in interface SqlCollectionMapper
- Throws:
ObjectStoreException
remove
public void remove(java.lang.Object collectionOid,
NakedObject object)
throws ObjectStoreException
- Specified by:
remove in interface SqlCollectionMapper
- Throws:
ObjectStoreException
toString
public java.lang.String toString()