Class FlashbackSynchronizer

  • All Implemented Interfaces:
    Synchronizer

    public class FlashbackSynchronizer
    extends java.lang.Object
    implements Synchronizer
    Synchronizes a PGX graph with an Oracle Database using Flashback queries
    • Method Detail

      • fetch

        public void fetch()
                   throws java.sql.SQLException
        Description copied from interface: Synchronizer
        Fetches the changes from the external data source. You can call this multiple times to accumulate deltas. The deltas reset once you call Synchronizer.apply().
        Specified by:
        fetch in interface Synchronizer
        Throws:
        java.sql.SQLException
      • apply

        public PgxGraph apply()
        Description copied from interface: Synchronizer
        Applies the changes to the underlying PGX graph. Require Synchronizer.fetch() to be called first.
        Specified by:
        apply in interface Synchronizer
        Returns:
        the new snapshot of the graph with the fetched changes applied.
      • getGraphDelta

        public GraphDelta getGraphDelta()
        Description copied from interface: Synchronizer
        Get the description of the delta between current snapshot and the fetched changes. Can be used to make a decision for when to apply the delta.
        Specified by:
        getGraphDelta in interface Synchronizer
        Returns:
        the description of the delta.