|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neodatis.odb.impl.main.ODBExtImpl
public class ODBExtImpl
Field Summary | |
---|---|
protected IStorageEngine |
engine
|
Constructor Summary | |
---|---|
ODBExtImpl(IStorageEngine storageEngine)
|
Method Summary | |
---|---|
ExternalOID |
convertToExternalOID(OID oid)
Convert an OID to External OID |
TransactionId |
getCurrentTransactionId()
Gets the current transaction Id |
DatabaseId |
getDatabaseId()
Get the Database ID |
long |
getObjectCreationDate(OID oid)
Returns the object creation date in ms since 1/1/1970 |
ExternalOID |
getObjectExternalOID(java.lang.Object object)
Gets the external OID of an Object. |
long |
getObjectUpdateDate(OID oid,
boolean useCache)
Returns the object last update date in ms since 1/1/1970 |
int |
getObjectVersion(OID oid,
boolean useCache)
Returns the object version of the object that has the specified OID |
OID |
replace(OID oid,
java.lang.Object o)
Replace the object with the specific OID by the object passed as a parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IStorageEngine engine
Constructor Detail |
---|
public ODBExtImpl(IStorageEngine storageEngine)
Method Detail |
---|
public ExternalOID convertToExternalOID(OID oid)
ODBExt
convertToExternalOID
in interface ODBExt
public TransactionId getCurrentTransactionId()
ODBExt
getCurrentTransactionId
in interface ODBExt
public DatabaseId getDatabaseId()
ODBExt
getDatabaseId
in interface ODBExt
public ExternalOID getObjectExternalOID(java.lang.Object object)
ODBExt
getObjectExternalOID
in interface ODBExt
public int getObjectVersion(OID oid, boolean useCache)
ODBExt
getObjectVersion
in interface ODBExt
useCache
- if false, force a disk read. else use the version that has already been loaded in the cache
public long getObjectCreationDate(OID oid)
ODBExt
getObjectCreationDate
in interface ODBExt
public long getObjectUpdateDate(OID oid, boolean useCache)
ODBExt
getObjectUpdateDate
in interface ODBExt
useCache
- if false, force a disk read. else use the date that has already been loaded in the cache
public OID replace(OID oid, java.lang.Object o)
ODBExt
replace
in interface ODBExt
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |