|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jso.storage.JSODataManager
Manager responsible for object data storage.
Constructor Summary | |
JSODataManager(int cacheSize)
Constructs the data manager. |
Method Summary | |
void |
createObject(ObjectFieldData data,
StorableClass cls,
Transaction tx)
Creates an object with suplied data. |
void |
deleteObject(OID oid,
StorableClass cls,
Transaction tx)
Deletes an object. |
CacheInfo |
getCacheInfo()
Gets cache information. |
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. |
ObjectFieldData |
readObject(OID oid,
boolean summary,
StorableClass cls,
Transaction tx)
Reads an object's data. |
boolean |
updateObject(ObjectFieldData data,
StorableClass cls,
Transaction tx)
Updates object's data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSODataManager(int cacheSize)
Method Detail |
public void createObject(ObjectFieldData data, StorableClass cls, Transaction tx) throws java.sql.SQLException, StorageException
createObject
in interface DataManager
data
- Object's data.cls
- Object's class.tx
- Transaction within which the operation will be made.
java.sql.SQLException
StorageException
public ObjectFieldData readObject(OID oid, boolean summary, StorableClass cls, Transaction tx) throws java.sql.SQLException, StorageException
readObject
in interface DataManager
oid
- Object's identification.summary
- Indicates if only summary should be read.cls
- Object's class.tx
- Transaction within which the operation will be made.
java.sql.SQLException
StorageException
public boolean updateObject(ObjectFieldData data, StorableClass cls, Transaction tx) throws java.sql.SQLException, StorageException
updateObject
in interface DataManager
data
- Object's data.cls
- Object's class.tx
- Transaction within which the operation will be made.
java.sql.SQLException
StorageException
public void deleteObject(OID oid, StorableClass cls, Transaction tx) throws java.sql.SQLException, StorageException
deleteObject
in interface DataManager
oid
- Object's identification.cls
- Object's class.tx
- Transaction within which the operation will be made.
java.sql.SQLException
StorageException
public void invalidate()
invalidate
in interface DataManager
public void invalidate(OID oid)
invalidate
in interface DataManager
oid
- Object's identification.public void invalidate(java.lang.Class cls)
invalidate
in interface DataManager
cls
- Object's class.public CacheInfo getCacheInfo()
getCacheInfo
in interface DataManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |