Inheritance diagram for org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB:
Definition at line 56 of file SynchroFastObjectDB.java.
Public Member Functions | |
boolean | createCollection (String collectionName, Class objectType, boolean synchro) throws IOException, ClassNotFoundException, BadDataFormatException, FODBException |
Add a new collection to the database. | |
boolean | createCollection (String collectionName, Class objectType) throws IOException, ClassNotFoundException, BadDataFormatException, FODBException |
Add a new collection to the database. | |
void | registerSynchroFODBReturnListener (String collectionName, SynchroFODBReturnListener listener) |
Register a synchroListener call during synchronisation processus. | |
boolean | isObjectInCollection (String colName, Object obj) throws DatabaseException |
return true if the specified object from the specified collection is in the collection. | |
Object | getObjectFromCollectionWithId (String colName, String id) throws DatabaseException |
return the object from the specified collection with specified id. | |
boolean | addFODB (String colName, Object obj) throws FODBException |
Add an element to a Collection of the database without saving modification data needed to synchronize synchronizable collection. | |
boolean | add (String colName, Object obj) throws FODBException |
Add an element to a Collection of the database. | |
boolean | replaceFODB (String colName, Object obj) throws FODBException |
Replace an existing element in a Collection of the database without saving modification data needed to synchronize synchronizable collection. | |
boolean | replace (String colName, Object obj) throws FODBException |
Replace an existing element in a Collection of the database. | |
boolean | delete (String colName, Object obj) throws FODBException |
Delete an element of a Collection. | |
boolean | deleteWithIdFODB (String colName, Object id) throws FODBException |
Delete an object of a Collection with its id Doas not generate syncho action. | |
boolean | deleteWithId (String colName, Object id) throws FODBException |
Delete an object of a Collection with its id. | |
Static Public Member Functions | |
static FastObjectDB | open (String dbRootDir, String dbName) throws IOException, ClassNotFoundException, BadDataFormatException, FODBException |
The function is called to open a database. | |
Protected Member Functions | |
boolean | openCollection (String collectionName) throws IOException, ClassNotFoundException, BadDataFormatException, FODBException |
Open an existing collection. |
|
Add an element to a Collection of the database.
Reimplemented from org.openmobileis.database.fastobjectdb.FastObjectDB. Definition at line 265 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.db.FODBCollection.deleteSingleElement(), org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionIdIndex(), and org.openmobileis.database.fastobjectdb.db.FODBCollection.isSynchronized(). |
|
Add an element to a Collection of the database without saving modification data needed to synchronize synchronizable collection. Use by synchro to add data that come from the server.
Definition at line 253 of file SynchroFastObjectDB.java. Referenced by org.openmobileis.database.fastobjectdb.synchro.client.sync4j.Sync4jFODBSyncSource.setSyncItem(). |
|
Add a new collection to the database. the synchro parameter is set to true.
Reimplemented from org.openmobileis.database.fastobjectdb.FastObjectDB. Definition at line 141 of file SynchroFastObjectDB.java. |
|
Add a new collection to the database.
Reimplemented from org.openmobileis.database.fastobjectdb.FastObjectDB. Definition at line 117 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.synchro.client.SynchroFODBConnector.registerCollection(), and org.openmobileis.database.fastobjectdb.db.FODBCollection.setSynchronized(). |
|
Delete an element of a Collection.
Reimplemented from org.openmobileis.database.fastobjectdb.FastObjectDB. Definition at line 346 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionIdIndex(), and org.openmobileis.database.fastobjectdb.db.FODBCollection.isSynchronized(). |
|
Delete an object of a Collection with its id.
Reimplemented from org.openmobileis.database.fastobjectdb.FastObjectDB. Definition at line 392 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionIdIndex(), and org.openmobileis.database.fastobjectdb.db.FODBCollection.isSynchronized(). |
|
Delete an object of a Collection with its id Doas not generate syncho action.
Definition at line 380 of file SynchroFastObjectDB.java. Referenced by org.openmobileis.database.fastobjectdb.synchro.client.sync4j.Sync4jFODBSyncSource.removeSyncItem(). |
|
return the object from the specified collection with specified id. id is the string format of the id object. If id is an int for exemple. The specified parameter is converted to an int.
Definition at line 217 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.FastObjectDB.colManager, org.odbms.Query.constrain(), org.odbms.Query.descend(), org.odbms.Constraint.equal(), org.odbms.Query.execute(), org.openmobileis.database.fastobjectdb.db.CollectionManager.getCollectionByName(), org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionIdIndex(), org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionObjectClass(), org.odbms.ObjectSet.hasNext(), and org.odbms.ObjectSet.next(). |
|
return true if the specified object from the specified collection is in the collection. return false otherwise
Definition at line 186 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.FastObjectDB.colManager, org.openmobileis.database.fastobjectdb.db.CollectionManager.getCollectionByName(), org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionIdIndex(), org.openmobileis.database.fastobjectdb.db.index.FODBUniqueIndex.getKeyPosition(), and org.openmobileis.database.fastobjectdb.db.FODBCollection.getName(). Referenced by org.openmobileis.database.fastobjectdb.synchro.client.sync4j.Sync4jFODBSyncSource.setSyncItem(). |
|
The function is called to open a database. If the database does not exist, It's created.
Reimplemented from org.openmobileis.database.fastobjectdb.FastObjectDB. Definition at line 84 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.FastObjectDB.ACTION_CREATE, org.openmobileis.database.fastobjectdb.FastObjectDB.ACTION_OPEN, org.openmobileis.database.fastobjectdb.db.store.FODBMainFile.createDbFile(), and org.openmobileis.database.fastobjectdb.db.store.FODBMainFile.openDbFile(). |
|
Open an existing collection. This is not used and should be suppressed.
Reimplemented from org.openmobileis.database.fastobjectdb.FastObjectDB. Definition at line 157 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.db.FODBCollection.isSynchronized(), and org.openmobileis.database.fastobjectdb.synchro.client.SynchroFODBConnector.registerCollection(). |
|
Register a synchroListener call during synchronisation processus. The listener is not persistent, so it must be registered at each application start.
Definition at line 174 of file SynchroFastObjectDB.java. |
|
Replace an existing element in a Collection of the database.
Reimplemented from org.openmobileis.database.fastobjectdb.FastObjectDB. Definition at line 312 of file SynchroFastObjectDB.java. References org.openmobileis.database.fastobjectdb.db.FODBCollection.deleteSingleElement(), org.openmobileis.database.fastobjectdb.db.FODBCollection.getCollectionIdIndex(), and org.openmobileis.database.fastobjectdb.db.FODBCollection.isSynchronized(). |
|
Replace an existing element in a Collection of the database without saving modification data needed to synchronize synchronizable collection. Use by synchro to replace data that come from the server.
Definition at line 300 of file SynchroFastObjectDB.java. Referenced by org.openmobileis.database.fastobjectdb.synchro.client.sync4j.Sync4jFODBSyncSource.setSyncItem(). |