org.modelsphere.jack.baseDb.db
Class DbRAMRelationN

java.lang.Object
  extended by PersistentObject
      extended by org.modelsphere.jack.baseDb.db.DbRelationN
          extended by 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.


Constructor Summary
DbRAMRelationN()
           
 
Method Summary
 DbObject elementAt(int index)
           
 int indexOf(DbObject dbo)
           
 int size()
           
 
Methods inherited from class org.modelsphere.jack.baseDb.db.DbRelationN
closeAllEnums, elements, elements, elements, getMetaRelation, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbRAMRelationN

public DbRAMRelationN()
Method Detail

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.