public class MockClient extends java.lang.Object implements ExtClient
| Constructor and Description |
|---|
MockClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(java.lang.Object obj) |
void |
activate(java.lang.Object obj,
int depth) |
void |
backup(Storage targetStorage,
java.lang.String path) |
void |
backup(java.lang.String path) |
void |
bind(java.lang.Object obj,
long id) |
boolean |
close() |
void |
commit() |
Configuration |
configure() |
void |
deactivate(java.lang.Object obj) |
void |
deactivate(java.lang.Object obj,
int depth) |
void |
delete(java.lang.Object obj) |
java.lang.Object |
descend(java.lang.Object obj,
java.lang.String[] path) |
ExtObjectContainer |
ext() |
<T> QLin<T> |
from(java.lang.Class<T> clazz) |
<T> ObjectSet<T> |
get(java.lang.Object template) |
<T> T |
getByID(long ID) |
<T> T |
getByUUID(Db4oUUID uuid) |
long |
getID(java.lang.Object obj) |
ObjectInfo |
getObjectInfo(java.lang.Object obj) |
Db4oDatabase |
identity() |
boolean |
isActive(java.lang.Object obj) |
boolean |
isAlive() |
boolean |
isCached(long ID) |
boolean |
isClosed() |
boolean |
isStored(java.lang.Object obj) |
ReflectClass[] |
knownClasses() |
java.lang.Object |
lock() |
ObjectContainer |
openSession() |
<T> T |
peekPersisted(T object,
int depth,
boolean committed) |
void |
purge() |
void |
purge(java.lang.Object obj) |
Query |
query() |
<TargetType> |
query(java.lang.Class<TargetType> clazz) |
<TargetType> |
query(Predicate<TargetType> predicate) |
<TargetType> |
query(Predicate<TargetType> predicate,
java.util.Comparator<TargetType> comparator) |
<TargetType> |
query(Predicate<TargetType> predicate,
QueryComparator<TargetType> comparator) |
<T> ObjectSet<T> |
queryByExample(java.lang.Object template) |
GenericReflector |
reflector() |
void |
refresh(java.lang.Object obj,
int depth) |
void |
releaseSemaphore(java.lang.String name) |
void |
rollback() |
boolean |
setSemaphore(java.lang.String name,
int waitForAvailability) |
void |
store(java.lang.Object obj) |
void |
store(java.lang.Object obj,
int depth) |
StoredClass |
storedClass(java.lang.Object clazz) |
StoredClass[] |
storedClasses() |
void |
switchToFile(java.lang.String fileName) |
void |
switchToMainFile() |
SystemInfo |
systemInfo() |
long |
version() |
public void switchToFile(java.lang.String fileName)
public void switchToMainFile()
public void activate(java.lang.Object obj)
throws Db4oIOException,
DatabaseClosedException
activate in interface ExtObjectContainerDb4oIOExceptionDatabaseClosedExceptionpublic void backup(java.lang.String path)
throws Db4oIOException,
DatabaseClosedException,
NotSupportedException
backup in interface ExtObjectContainerDb4oIOExceptionDatabaseClosedExceptionNotSupportedExceptionpublic void backup(Storage targetStorage, java.lang.String path) throws Db4oIOException, DatabaseClosedException, NotSupportedException
backup in interface ExtObjectContainerDb4oIOExceptionDatabaseClosedExceptionNotSupportedExceptionpublic void bind(java.lang.Object obj,
long id)
throws InvalidIDException,
DatabaseClosedException
bind in interface ExtObjectContainerInvalidIDExceptionDatabaseClosedExceptionpublic Configuration configure()
configure in interface ExtObjectContainerpublic void deactivate(java.lang.Object obj)
deactivate in interface ExtObjectContainerpublic java.lang.Object descend(java.lang.Object obj,
java.lang.String[] path)
descend in interface ExtObjectContainerpublic <T> T getByID(long ID)
throws DatabaseClosedException,
InvalidIDException
getByID in interface ExtObjectContainerDatabaseClosedExceptionInvalidIDExceptionpublic <T> T getByUUID(Db4oUUID uuid) throws DatabaseClosedException, Db4oIOException
getByUUID in interface ExtObjectContainerDatabaseClosedExceptionDb4oIOExceptionpublic long getID(java.lang.Object obj)
getID in interface ExtObjectContainerpublic ObjectInfo getObjectInfo(java.lang.Object obj)
getObjectInfo in interface ExtObjectContainerpublic Db4oDatabase identity()
identity in interface ExtObjectContainerpublic boolean isActive(java.lang.Object obj)
isActive in interface ExtObjectContainerpublic boolean isCached(long ID)
isCached in interface ExtObjectContainerpublic boolean isClosed()
isClosed in interface ExtObjectContainerpublic boolean isStored(java.lang.Object obj)
throws DatabaseClosedException
isStored in interface ExtObjectContainerDatabaseClosedExceptionpublic ReflectClass[] knownClasses()
knownClasses in interface ExtObjectContainerpublic java.lang.Object lock()
lock in interface ExtObjectContainerpublic <T> T peekPersisted(T object,
int depth,
boolean committed)
peekPersisted in interface ExtObjectContainerpublic void purge()
purge in interface ExtObjectContainerpublic void purge(java.lang.Object obj)
purge in interface ExtObjectContainerpublic GenericReflector reflector()
reflector in interface ExtObjectContainerpublic void refresh(java.lang.Object obj,
int depth)
refresh in interface ExtObjectContainerpublic void releaseSemaphore(java.lang.String name)
releaseSemaphore in interface ExtObjectContainerpublic boolean setSemaphore(java.lang.String name,
int waitForAvailability)
setSemaphore in interface ExtObjectContainerpublic void store(java.lang.Object obj,
int depth)
store in interface ExtObjectContainerpublic StoredClass storedClass(java.lang.Object clazz)
storedClass in interface ExtObjectContainerpublic StoredClass[] storedClasses()
storedClasses in interface ExtObjectContainerpublic SystemInfo systemInfo()
systemInfo in interface ExtObjectContainerpublic long version()
version in interface ExtObjectContainerpublic void activate(java.lang.Object obj,
int depth)
throws Db4oIOException,
DatabaseClosedException
activate in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionpublic boolean close()
throws Db4oIOException
close in interface ObjectContainerDb4oIOExceptionpublic void commit()
throws Db4oIOException,
DatabaseClosedException,
DatabaseReadOnlyException
commit in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionDatabaseReadOnlyExceptionpublic void deactivate(java.lang.Object obj,
int depth)
throws DatabaseClosedException
deactivate in interface ObjectContainerDatabaseClosedExceptionpublic void delete(java.lang.Object obj)
throws Db4oIOException,
DatabaseClosedException,
DatabaseReadOnlyException
delete in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionDatabaseReadOnlyExceptionpublic ExtObjectContainer ext()
ext in interface ObjectContainerpublic <T> ObjectSet<T> get(java.lang.Object template) throws Db4oIOException, DatabaseClosedException
public Query query() throws DatabaseClosedException
query in interface ObjectContainerDatabaseClosedExceptionpublic <TargetType> ObjectSet<TargetType> query(java.lang.Class<TargetType> clazz) throws Db4oIOException, DatabaseClosedException
query in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionpublic <TargetType> ObjectSet<TargetType> query(Predicate<TargetType> predicate) throws Db4oIOException, DatabaseClosedException
query in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionpublic <TargetType> ObjectSet<TargetType> query(Predicate<TargetType> predicate, QueryComparator<TargetType> comparator) throws Db4oIOException, DatabaseClosedException
query in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionpublic <TargetType> ObjectSet<TargetType> query(Predicate<TargetType> predicate, java.util.Comparator<TargetType> comparator) throws Db4oIOException, DatabaseClosedException
query in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionpublic <T> ObjectSet<T> queryByExample(java.lang.Object template) throws Db4oIOException, DatabaseClosedException
queryByExample in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionpublic void rollback()
throws Db4oIOException,
DatabaseClosedException,
DatabaseReadOnlyException
rollback in interface ObjectContainerDb4oIOExceptionDatabaseClosedExceptionDatabaseReadOnlyExceptionpublic void store(java.lang.Object obj)
throws DatabaseClosedException,
DatabaseReadOnlyException
store in interface ObjectContainerDatabaseClosedExceptionDatabaseReadOnlyExceptionpublic ObjectContainer openSession()
openSession in interface ExtObjectContainerpublic <T> QLin<T> from(java.lang.Class<T> clazz)