org.neodatis.odb.impl.main
Class ODBExtImpl
- java.lang.Object
-
- org.neodatis.odb.impl.main.ODBExtImpl
-
-
Constructor Summary
Constructors Constructor and Description ODBExtImpl(IStorageEngine storageEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ExternalOIDconvertToExternalOID(OID oid)Convert an OID to External OIDTransactionIdgetCurrentTransactionId()Gets the current transaction IdDatabaseIdgetDatabaseId()Get the Database IDlonggetObjectCreationDate(OID oid)Returns the object creation date in ms since 1/1/1970ExternalOIDgetObjectExternalOID(java.lang.Object object)Gets the external OID of an Object.longgetObjectUpdateDate(OID oid, boolean useCache)Returns the object last update date in ms since 1/1/1970intgetObjectVersion(OID oid, boolean useCache)Returns the object version of the object that has the specified OIDOIDreplace(OID oid, java.lang.Object o)Replace the object with the specific OID by the object passed as a parameter
-
-
-
Constructor Detail
-
ODBExtImpl
public ODBExtImpl(IStorageEngine storageEngine)
-
-
Method Detail
-
convertToExternalOID
public ExternalOID convertToExternalOID(OID oid)
Description copied from interface:ODBExtConvert an OID to External OID- Specified by:
convertToExternalOIDin interfaceODBExt- Returns:
- The external OID
-
getCurrentTransactionId
public TransactionId getCurrentTransactionId()
Description copied from interface:ODBExtGets the current transaction Id- Specified by:
getCurrentTransactionIdin interfaceODBExt- Returns:
- The current transaction Id
-
getDatabaseId
public DatabaseId getDatabaseId()
Description copied from interface:ODBExtGet the Database ID- Specified by:
getDatabaseIdin interfaceODBExt- Returns:
-
getObjectExternalOID
public ExternalOID getObjectExternalOID(java.lang.Object object)
Description copied from interface:ODBExtGets the external OID of an Object. The external OID contains the ID of the database + the oid of the object. The External OID can be used to identify objects outside the ODB database as it should be unique across databases. It can be used for example to implement a replication process.- Specified by:
getObjectExternalOIDin interfaceODBExt- Returns:
-
getObjectVersion
public int getObjectVersion(OID oid, boolean useCache)
Description copied from interface:ODBExtReturns the object version of the object that has the specified OID- Specified by:
getObjectVersionin interfaceODBExtuseCache- if false, force a disk read. else use the version that has already been loaded in the cache- Returns:
-
getObjectCreationDate
public long getObjectCreationDate(OID oid)
Description copied from interface:ODBExtReturns the object creation date in ms since 1/1/1970- Specified by:
getObjectCreationDatein interfaceODBExt- Returns:
- The creation date
-
getObjectUpdateDate
public long getObjectUpdateDate(OID oid, boolean useCache)
Description copied from interface:ODBExtReturns the object last update date in ms since 1/1/1970- Specified by:
getObjectUpdateDatein interfaceODBExtuseCache- if false, force a disk read. else use the date that has already been loaded in the cache- Returns:
- The last update date
-
-
DataMelt 3.0 © DataMelt by jWork.ORG