|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Manager responsible for object storage.
| 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 a list of objects. |
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. |
| Method Detail |
public OID getOID(java.lang.Object obj)
throws StorageException
obj - The object to be identified.
StorageExceptionpublic void unlinkTransientObjects()
public OID store(java.lang.Object obj,
boolean deep,
Transaction tx)
throws StorageException
obj - 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
objs - The collection of object to be stored.deep - Indicates if referenced objects should also be stored.tx - Transaction within which operation will be executed.
StorageException
public java.lang.Object retrieve(OID oid,
boolean summary,
boolean lazy,
boolean refresh,
boolean useProxy,
Transaction tx)
throws StorageException
oid - 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
obj - Object to be deleted.tx - Transaction within which operation will be executed.
StorageException
public void delete(OID oid,
Transaction tx)
throws StorageException
oid - 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
objs - List of objects to be deleted.tx - Transaction within which operation will be executed.
StorageExceptionpublic void invalidate()
public void invalidate(OID oid)
oid - Object's identification.public void invalidate(java.lang.Class cls)
cls - Object's class.public CacheInfo getCacheInfo()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||