org.modelsphere.jack.baseDb.db
Class DbRAMRelationN
java.lang.Object
PersistentObject
org.modelsphere.jack.baseDb.db.DbRelationN
org.modelsphere.jack.baseDb.db.DbRAMRelationN
public final class DbRAMRelationN
- extends DbRelationN
This class implements a general support for relation N, that may be used for any DBMS (not only
DbRAM); so, for some DBMSs, we may prefer to use this implementation instead of the DBMS's own
collections.
IMPORTANT: if for a DBMS, we have a particular implementation, we must provide the methods
writeObject()
and readObject()
to convert the DBMS representation to
DbRAMRelationN and vice-versa.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbRAMRelationN
public DbRAMRelationN()
size
public final int size()
throws DbException
- Specified by:
size
in class DbRelationN
- Throws:
DbException
elementAt
public final DbObject elementAt(int index)
throws DbException
- Specified by:
elementAt
in class DbRelationN
- Throws:
DbException
indexOf
public final int indexOf(DbObject dbo)
throws DbException
- Specified by:
indexOf
in class DbRelationN
- Throws:
DbException
Open ModelSphere 2007. All Rights Reserved.