|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.jso.storage.JSOObjectManager
Manager responsible for object storage.
| Constructor Summary | |
JSOObjectManager(StorageManager aManager,
StorageController aController,
SchemaProxy aSchema,
DatabaseInterface aDatabase,
ConnectionPool aPool,
int cacheSize)
Constructs the object manager. |
|
| Method Summary | |
void |
batchStore(java.util.Collection objs,
boolean deep,
Transaction tx)
Stores a collection of objects in one only "batch" operation. |
int |
delete(java.util.List objs,
Transaction tx)
Deletes objects according to parameters. |
void |
delete(java.lang.Object obj,
Transaction tx)
Deletes an object. |
void |
delete(OID oid,
Transaction tx)
Deletes an object. |
CacheInfo |
getCacheInfo()
Gets cache information. |
OID |
getOID(java.lang.Object obj)
Returns OID of a transient storable object. |
void |
invalidate()
Invalidates all cached data. |
void |
invalidate(java.lang.Class cls)
Invalidates cached data of all objects of a class. |
void |
invalidate(OID oid)
Invalidates cached data of an object. |
java.lang.Object |
retrieve(OID oid,
boolean summary,
boolean lazy,
boolean refresh,
boolean useProxy,
Transaction tx)
Retrieves an object. |
OID |
store(java.lang.Object obj,
boolean deep,
Transaction tx)
Stores an object. |
void |
unlinkTransientObjects()
Unlinks transient storable objects from stored ones. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JSOObjectManager(StorageManager aManager,
StorageController aController,
SchemaProxy aSchema,
DatabaseInterface aDatabase,
ConnectionPool aPool,
int cacheSize)
| Method Detail |
public OID getOID(java.lang.Object obj)
throws StorageException
getOID in interface ObjectManagerobj - The object to be identified.
StorageExceptionpublic void unlinkTransientObjects()
unlinkTransientObjects in interface ObjectManager
public OID store(java.lang.Object obj,
boolean deep,
Transaction tx)
throws StorageException
store in interface ObjectManagerobj - Object to be stored.deep - Indicates if referenced objects should also be stored.tx - Transaction within which operation will be executed.
StorageException
public void batchStore(java.util.Collection objs,
boolean deep,
Transaction tx)
throws StorageException
batchStore in interface ObjectManagerobjs - The collection of object to be stored.tx - Transaction within which operation will be executed.deep - Indicates if referenced objects should also be stored.
StorageException
public java.lang.Object retrieve(OID oid,
boolean summary,
boolean lazy,
boolean refresh,
boolean useProxy,
Transaction tx)
throws StorageException
retrieve in interface ObjectManageroid - Identification of the object to be retrieved.summary - Indicates if only summary fields should be retrieved.
filled with elements/references (true) or only references
to them (false).lazy - Indicates if referenced objects should be lazy loaded, by
proxy objetcs.refresh - Indicates if an existent transient version of storable
object should be refreshd with data from database.useProxy - Indicates if a proxy may be returned instead of a real
storable object.tx - Transaction within which operation will be executed.
StorageException
public void delete(java.lang.Object obj,
Transaction tx)
throws StorageException
delete in interface ObjectManagerobj - Object to be deleted.tx - Transaction within which operation will be executed.
StorageException
public void delete(OID oid,
Transaction tx)
throws StorageException
delete in interface ObjectManageroid - Identification of the object to be deleted.tx - Transaction within which operation will be executed.
StorageException
public int delete(java.util.List objs,
Transaction tx)
throws StorageException
delete in interface ObjectManagerobjs - List of objects to be deleted.tx - Transaction within which operation will be executed.
StorageExceptionpublic void invalidate()
invalidate in interface ObjectManagerpublic void invalidate(OID oid)
invalidate in interface ObjectManageroid - Object's identification.public void invalidate(java.lang.Class cls)
invalidate in interface ObjectManagercls - Object's class.public CacheInfo getCacheInfo()
getCacheInfo in interface ObjectManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||