|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mobixess.jodb.core.JODBSessionContainer
public class JODBSessionContainer
| Method Summary | ||
|---|---|---|
void |
activate(java.lang.Object obj,
int depth)
Activates all members on a stored object to the specified depth. |
|
boolean |
close()
closes the ObjectContainer. |
|
void |
commit()
Commits the running transaction. |
|
void |
commit(JODBIndexingRootAgent indexingRootAgent)
|
|
void |
configureIndex(java.lang.Class clazz,
java.lang.String fieldName,
boolean enable)
|
|
void |
configureIndex(java.lang.reflect.Field field,
boolean enable)
|
|
void |
deactivate(java.lang.Object obj,
int depth)
deactivates a stored object by setting all members to NULL. |
|
void |
delete(java.lang.Object obj)
deletes a stored object permanently. |
|
void |
delete(java.lang.Object obj,
int depth)
|
|
protected void |
finalize()
|
|
|
get(java.lang.Object template)
Query-By-Example interface to retrieve objects. |
|
JODBQueryList |
getAllObjects()
|
|
int |
getCachedObjectsCount()
|
|
IDatabaseStatistics |
getDatabaseStatistics()
|
|
JODBIndexingAgent |
getIndexingAgent(java.lang.reflect.Field field)
|
|
IPersistentObjectStatistics |
getPersistenceStatistics(java.lang.Object object)
|
|
java.lang.Object |
getSyncObject(java.lang.Object activeObject)
|
|
void |
printFileMap()
|
|
Query |
query()
creates a new S.O.D.A. |
|
|
query(java.lang.Class<Type> clazz)
queries for all instances of a class. |
|
void |
rollback()
rolls back the running transaction. |
|
void |
set(java.lang.Object obj)
Newly stores objects or updates stored objects. |
|
void |
set(java.lang.Object obj,
int depth)
Newly stores objects or updates stored objects. |
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void printFileMap()
throws java.io.IOException
java.io.IOException
public void configureIndex(java.lang.Class clazz,
java.lang.String fieldName,
boolean enable)
throws java.lang.SecurityException,
java.lang.NoSuchFieldException,
java.io.IOException
java.lang.SecurityException
java.lang.NoSuchFieldException
java.io.IOException
public JODBIndexingAgent getIndexingAgent(java.lang.reflect.Field field)
throws java.io.IOException
java.io.IOException
public void configureIndex(java.lang.reflect.Field field,
boolean enable)
throws java.io.IOException
java.io.IOException
public void activate(java.lang.Object obj,
int depth)
throws java.io.IOException
ObjectContainer
activate in interface ObjectContainerjava.io.IOExceptionpublic int getCachedObjectsCount()
public boolean close()
throws java.io.IOException
ObjectContainerObjectContainer.
close() automatically performs a
commit().
while(!close()){} to close all sessions using this container.
close in interface ObjectContainerjava.io.IOException
public void commit()
throws java.io.IOException
ObjectContainer
commit in interface ObjectContainerjava.io.IOException
public void commit(JODBIndexingRootAgent indexingRootAgent)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object getSyncObject(java.lang.Object activeObject)
public void deactivate(java.lang.Object obj,
int depth)
ObjectContainerNULL.
ObjectContainer
deactivate in interface ObjectContainerobj - the object to be deactivated.depth - the member
to which deactivate is to cascade.
public void delete(java.lang.Object obj)
throws java.io.IOException
ObjectContainerObjectContainer.
which can be also used for cascaded deletes.
delete in interface ObjectContainerobj - the object to be deleted from the
ObjectContainer.java.io.IOException
public void delete(java.lang.Object obj,
int depth)
throws java.io.IOException
java.io.IOException
public <T> ObjectSet<T> get(java.lang.Object template)
throws java.io.IOException,
IllegalClassTypeException
ObjectContainerget() creates an
ObjectSet containing
all objects in the ObjectContainer that match the passed
template object.get(NULL) returns all objects stored in the
ObjectContainer.ObjectSet are instantiated
and activated to the preconfigured depth. The
activation depth
may be configured globally via com.mobixess.jodb.core.JODBConfig#setDefaultActivationDepth() .
get in interface ObjectContainertemplate - object to be used as an example to find all matching objects.ObjectSet containing all found objects.java.io.IOException
IllegalClassTypeExceptionpublic Query query()
ObjectContainerQuery.
get(Object template) for simple Query-By-Example.
query in interface ObjectContainer
public <Type> ObjectSet<Type> query(java.lang.Class<Type> clazz)
throws java.io.IOException,
IllegalClassTypeException
ObjectContainer
query in interface ObjectContainerclazz - the class to query for.
ObjectSet returned by the query.
java.io.IOException
IllegalClassTypeExceptionpublic void rollback()
ObjectContainerdeactivate()
and activate() to reload an objects member values.
rollback in interface ObjectContainer
public void set(java.lang.Object obj)
throws IllegalClassTypeException,
java.io.IOException
ObjectContainerObjectContainer will be
stored when it is passed to set(). An object already stored
in the ObjectContainer will be updated.
set in interface ObjectContainerobj - the object to be stored or updated.
java.io.IOException
IllegalClassTypeException
public void set(java.lang.Object obj,
int depth)
throws IllegalClassTypeException,
java.io.IOException
ObjectContainerObjectContainer will be
stored when it is passed to set(). An object already stored
in the ObjectContainer will be updated.
set in interface ObjectContainerobj - the object to be stored or updated.depth - the depth to which the object is to be updated
IllegalClassTypeException
java.io.IOException
public JODBQueryList getAllObjects()
throws java.io.IOException
java.io.IOException
public IPersistentObjectStatistics getPersistenceStatistics(java.lang.Object object)
throws java.io.IOException
java.io.IOExceptionpublic IDatabaseStatistics getDatabaseStatistics()
public void setClassLoader(java.lang.ClassLoader classLoader)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||