org.modelsphere.jack.baseDb.db
Class DbHugeRAMRelationN

java.lang.Object
  extended by PersistentObject
      extended by org.modelsphere.jack.baseDb.db.DbRelationN
          extended by org.modelsphere.jack.baseDb.db.DbHugeRAMRelationN

public final class DbHugeRAMRelationN
extends DbRelationN

This class is a faster alternative to DbRAMRelationN for relations that may become big, but in counterpart it does not preserve the order of elements, so it cannot be used for lists whose order is controlled by the user.


Constructor Summary
DbHugeRAMRelationN()
           
 
Method Summary
 boolean checkIntegrity()
           
 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

DbHugeRAMRelationN

public DbHugeRAMRelationN()
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

checkIntegrity

public final boolean checkIntegrity()
                             throws DbException
Throws:
DbException


Open ModelSphere 2007. All Rights Reserved.