Class ColumnSnapshotGeneratorOracle

All Implemented Interfaces:
SnapshotGenerator

public class ColumnSnapshotGeneratorOracle extends ColumnSnapshotGenerator
Oracle Database-specific parts of ColumnSnapshotGenerator
  • Constructor Details

    • ColumnSnapshotGeneratorOracle

      public ColumnSnapshotGeneratorOracle()
  • Method Details

    • getPriority

      public int getPriority(Class<? extends DatabaseObject> objectType, Database database)
      Description copied from interface: SnapshotGenerator
      Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g. Table, Index, View etc.) in the DBMS database (e.g. Oracle, Postgres, HyperSQL etc.) A return priority of > 0 will be interpreted as capable. The highest priority for an objectType-database combination wins.
      Specified by:
      getPriority in interface SnapshotGenerator
      Overrides:
      getPriority in class JdbcSnapshotGenerator
      Parameters:
      objectType - The object type we are asked to snapshot
      database - The DBMS for which the snapshotting should be done
      Returns:
      An integer of PRIORITY_... constants indicating our capability and willingness to snapshot
    • replaces

      public Class<? extends SnapshotGenerator>[] replaces()
      Description copied from interface: SnapshotGenerator
      Returns classes (and superclasses) that this SnapshotGenerator replaces. Return null or empty array to not affect the SnapshotGeneratorChain.
      Specified by:
      replaces in interface SnapshotGenerator
      Overrides:
      replaces in class JdbcSnapshotGenerator
    • readDataType

      protected DataType readDataType(CachedRow columnMetadataResultSet, Column column, Database database)
      Description copied from class: ColumnSnapshotGenerator
      Processes metadata of a column, e.g. name, type and default value. We start with the result of the JDBC DatabaseMetaData.getColumns() method. Depending on Database, additional columns might be present.
      Overrides:
      readDataType in class ColumnSnapshotGenerator
      Parameters:
      columnMetadataResultSet - the result from the JDBC getColumns() call for the column
      column - logical definition of the column (object form)
      database - the database from which the column originates
      Returns:
      a DataType object with detailed information about the type