public class MockEmbedded extends java.lang.Object implements EmbeddedObjectContainer
| Constructor and Description |
|---|
MockEmbedded() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(java.lang.Object obj,
int depth) |
void |
backup(java.lang.String path) |
boolean |
close() |
void |
commit() |
void |
deactivate(java.lang.Object obj,
int depth) |
void |
delete(java.lang.Object obj) |
ExtObjectContainer |
ext() |
<T> QLin<T> |
from(java.lang.Class<T> clazz) |
<T> ObjectSet<T> |
get(java.lang.Object template) |
ObjectContainer |
openSession() |
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) |
void |
rollback() |
void |
store(java.lang.Object obj) |
public void backup(java.lang.String path)
throws Db4oIOException,
DatabaseClosedException,
NotSupportedException
backup in interface EmbeddedObjectContainerDb4oIOExceptionDatabaseClosedExceptionNotSupportedExceptionpublic ObjectContainer openSession()
public 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 <T> QLin<T> from(java.lang.Class<T> clazz)