Method Summary |
|
public synchronized void | close() Closes the record manager. |
public synchronized void | commit() Commit (make persistent) all changes since beginning of transaction. |
public synchronized void | delete(long recid) Deletes a record. |
public Object | fetch(long recid) Fetches a record using standard Java serialization.
Parameters: recid - the recid for the record that must be fetched. |
public synchronized Object | fetch(long recid, Serializer serializer) Fetches a record using a custom serializer. |
public CachePolicy | getCachePolicy() Get the underlying cache policy
underlying CachePolicy or null if CacheRecordManager hasbeen closed. |
public synchronized long | getNamedObject(String name) Obtain the record id of a named object. |
public RecordManager | getRecordManager() Get the underlying Record Manager.
underlying RecordManager or null if CacheRecordManager hasbeen closed. |
public synchronized long | getRoot(int id) Returns the indicated root rowid. |
public synchronized int | getRootCount() Returns the number of slots available for "root" rowids. |
public long | insert(Object obj) Inserts a new record using a custom serializer.
Parameters: obj - the object for the new record. |
public synchronized long | insert(Object obj, Serializer serializer) Inserts a new record using a custom serializer. |
public synchronized void | rollback() Rollback (cancel) all changes since beginning of transaction. |
public synchronized void | setNamedObject(String name, long recid) Set the record id of a named object. |
public synchronized void | setRoot(int id, long rowid) Sets the indicated root rowid. |
public void | update(long recid, Object obj) Updates a record using standard Java serialization. |
public synchronized void | update(long recid, Object obj, Serializer serializer) Updates a record using a custom serializer. |
protected void | updateCacheEntries() Update all dirty cache objects to the underlying RecordManager. |