Definition at line 55 of file FODBCollection.java.
Public Member Functions | |
Class | getCollectionObjectClass () |
FODBIndex | getIndexByMember (String member) |
boolean | isSynchronized () |
void | setSynchronized (boolean sync) throws FODBException |
String | getName () |
void | setCollectionCypher (FODBCypher cypher) throws FODBException |
Init collection encryption with the specified cypher. | |
FODBCypher | getCollectionCypher () throws FODBException |
return the collection cypher if any, null otherwise. | |
boolean | addIndex (FODBIndexDescriptor descriptor) throws FODBException |
Add an index. | |
FODBIndex[] | getCollectionIndexList () |
FODBUniqueIndex | getCollectionIdIndex () throws FODBException |
boolean | addElement (Object obj) throws FODBException |
Add an Element to the collection. | |
boolean | replaceElement (Object obj) throws FODBException |
Replace an existing element of the Collection. | |
boolean | deleteSingleElement (Object obj) throws FODBException |
Delete an element of the Collection. | |
boolean | deleteObjectWithId (Object id) throws FODBException |
Delete an object of the Collection with its ID. | |
ForwardUniqueIndexIterator | getForwardIndexIterator (String memberName) throws FODBException |
BackwardUniqueIndexIterator | getBackwardIndexIterator (String memberName) throws FODBException |
Object | getElementAtPos (long pos) throws FODBException |
Returns the element at position 'pos'. | |
FastObjectDB | getDatabase () |
Static Public Member Functions | |
static FODBCollection | createCollection (FastObjectDB db, String colName, Class objType) throws FODBException |
Function that is called to create a new collection. | |
static FODBCollection | openCollection (FastObjectDB db, String colName) throws FODBException |
Function that is called to open an existing collection. | |
Protected Member Functions | |
Object | getNodeAtPos (long pos) throws FODBException |
Returns the node at position 'pos'. |
|
Add an Element to the collection.
Definition at line 265 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.begin(), org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.commit(), org.openmobileis.common.util.collection.Array.get(), org.openmobileis.database.fastobjectdb.FastObjectDB.getTransactionManager(), org.openmobileis.common.util.collection.Array.size, and org.openmobileis.database.fastobjectdb.db.store.FODBCollectionFile.writeObject(). Referenced by org.openmobileis.database.fastobjectdb.FastObjectDB.add(). |
|
Add an index.
Definition at line 210 of file FODBCollection.java. References org.openmobileis.common.util.collection.Array.add(), org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.begin(), org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.commit(), org.openmobileis.common.util.collection.Array.contains(), and org.openmobileis.database.fastobjectdb.FastObjectDB.getTransactionManager(). Referenced by org.openmobileis.database.fastobjectdb.FastObjectDB.addIndex(). |
|
Function that is called to create a new collection.
Definition at line 148 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.FastObjectDB.getName(), and org.openmobileis.database.fastobjectdb.FastObjectDB.getRootDir(). Referenced by org.openmobileis.database.fastobjectdb.FastObjectDB.createCollection(). |
|
|
Delete an element of the Collection.
Definition at line 347 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.begin(), org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.commit(), org.openmobileis.common.util.collection.Array.get(), org.openmobileis.database.fastobjectdb.db.index.FODBIndex.getKey(), org.openmobileis.database.fastobjectdb.FastObjectDB.getTransactionManager(), and org.openmobileis.common.util.collection.Array.isEmpty(). Referenced by org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.add(), org.openmobileis.database.fastobjectdb.FastObjectDB.delete(), and org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.replace(). |
|
return the collection cypher if any, null otherwise.
Definition at line 199 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.db.store.FODBCollectionFile.getCollectionCypher(). Referenced by org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDBManager.flushDB(). |
|
Definition at line 519 of file FODBCollection.java. Referenced by org.openmobileis.database.fastobjectdb.db.BackwardUniqueIndexIterator.BackwardUniqueIndexIterator(), org.openmobileis.database.fastobjectdb.db.ForwardUniqueIndexIterator.initCurrentNode(), org.openmobileis.database.fastobjectdb.db.BackwardUniqueIndexIterator.initCurrentNode(), org.openmobileis.database.fastobjectdb.db.ForwardUniqueIndexIterator.next(), and org.openmobileis.database.fastobjectdb.db.BackwardUniqueIndexIterator.prev(). |
|
Returns the element at position 'pos'.
Definition at line 488 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.db.store.FODBCollectionFile.readObject(). Referenced by org.openmobileis.database.fastobjectdb.db.FODBCollection.deleteObjectWithId(), org.openmobileis.database.fastobjectdb.db.ForwardUniqueIndexIterator.next(), and org.openmobileis.database.fastobjectdb.db.BackwardUniqueIndexIterator.prev(). |
|
Returns the node at position 'pos'.
Definition at line 505 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.db.store.FODBCollectionFile.readNode(). Referenced by org.openmobileis.database.fastobjectdb.db.BackwardUniqueIndexIterator.BackwardUniqueIndexIterator(), org.openmobileis.database.fastobjectdb.db.ForwardUniqueIndexIterator.next(), and org.openmobileis.database.fastobjectdb.db.BackwardUniqueIndexIterator.prev(). |
|
Function that is called to open an existing collection.
Definition at line 167 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.FastObjectDB.getName(), and org.openmobileis.database.fastobjectdb.FastObjectDB.getRootDir(). Referenced by org.openmobileis.database.fastobjectdb.FastObjectDB.openCollection(). |
|
Replace an existing element of the Collection.
Definition at line 302 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.begin(), org.openmobileis.database.fastobjectdb.db.transaction.TransactionManager.commit(), org.openmobileis.common.util.collection.Array.get(), org.openmobileis.database.fastobjectdb.db.index.FODBIndex.getKey(), org.openmobileis.database.fastobjectdb.db.index.FODBUniqueIndex.getKeyPosition(), org.openmobileis.database.fastobjectdb.FastObjectDB.getTransactionManager(), org.openmobileis.database.fastobjectdb.db.index.FODBIndex.getType(), and org.openmobileis.common.util.collection.Array.isEmpty(). Referenced by org.openmobileis.database.fastobjectdb.FastObjectDB.replace(). |
|
Init collection encryption with the specified cypher. Must be call just after collection initialization before storing/reading any data. Same cypher must be provided to read already stored object.
Definition at line 190 of file FODBCollection.java. References org.openmobileis.database.fastobjectdb.db.store.FODBCollectionFile.setCollectionCypher(). Referenced by org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDBManager.getCurrentFODB(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.openDB(). |