Documentation of 'org.neodatis.odb.impl.main.ODBExtImpl' Java class
ODBExtImpl
org.neodatis.odb.impl.main

Class ODBExtImpl

  • All Implemented Interfaces:
    ODBExt


    public class ODBExtImpl
    extends java.lang.Object
    implements ODBExt
    • Constructor Detail

    • Method Detail

      • convertToExternalOID

        public ExternalOID convertToExternalOID(OID oid)
        Description copied from interface: ODBExt
        Convert an OID to External OID
        Specified by:
        convertToExternalOID in interface ODBExt
        Returns:
        The external OID
      • getCurrentTransactionId

        public TransactionId getCurrentTransactionId()
        Description copied from interface: ODBExt
        Gets the current transaction Id
        Specified by:
        getCurrentTransactionId in interface ODBExt
        Returns:
        The current transaction Id
      • getObjectExternalOID

        public ExternalOID getObjectExternalOID(java.lang.Object object)
        Description copied from interface: ODBExt
        Gets 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:
        getObjectExternalOID in interface ODBExt
        Returns:
      • getObjectVersion

        public int getObjectVersion(OID oid,
                                    boolean useCache)
        Description copied from interface: ODBExt
        Returns the object version of the object that has the specified OID
        Specified by:
        getObjectVersion in interface ODBExt
        useCache - 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: ODBExt
        Returns the object creation date in ms since 1/1/1970
        Specified by:
        getObjectCreationDate in interface ODBExt
        Returns:
        The creation date
      • getObjectUpdateDate

        public long getObjectUpdateDate(OID oid,
                                        boolean useCache)
        Description copied from interface: ODBExt
        Returns the object last update date in ms since 1/1/1970
        Specified by:
        getObjectUpdateDate in interface ODBExt
        useCache - if false, force a disk read. else use the date that has already been loaded in the cache
        Returns:
        The last update date
      • replace

        public OID replace(OID oid,
                           java.lang.Object o)
        Description copied from interface: ODBExt
        Replace the object with the specific OID by the object passed as a parameter
        Specified by:
        replace in interface ODBExt
        Returns:

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.