Top Description Fields Constructors Methods
liquibase.snapshot.jvm

public Class ColumnSnapshotGeneratorOracle

extends ColumnSnapshotGenerator
Class Inheritance
Imports
liquibase.database.Database, liquibase.database.core.OracleDatabase, liquibase.snapshot.CachedRow, .SnapshotGenerator, liquibase.structure.DatabaseObject, liquibase.structure.core.Column, .DataType

Oracle Database-specific parts of ColumnSnapshotGenerator

Field Summary

Inherited from liquibase.snapshot.jvm.ColumnSnapshotGenerator:
COLUMN_DEF_COL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getPriority(Class<? extends DatabaseObject>
The object type we are asked to snapshot
objectType
,
Database
The DBMS for which the snapshotting should be done
database
)

Overrides liquibase.snapshot.jvm.JdbcSnapshotGenerator.getPriority.

Implements liquibase.snapshot.SnapshotGenerator.getPriority.

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.

protected DataType
readDataType(CachedRow
the result from the JDBC getColumns() call for the column
columnMetadataResultSet
,
Column
logical definition of the column (object form)
column
,
Database
the database from which the column originates
database
)

Overrides liquibase.snapshot.jvm.ColumnSnapshotGenerator.readDataType.

Processes metadata of a column, e.g. name, type and default value.

public Class<? extends SnapshotGenerator>[]
replaces()

Overrides liquibase.snapshot.jvm.JdbcSnapshotGenerator.replaces.

Implements liquibase.snapshot.SnapshotGenerator.replaces.

Returns classes (and superclasses) that this SnapshotGenerator replaces.

Inherited from liquibase.snapshot.jvm.ColumnSnapshotGenerator:
addToreadColumnreadDefaultValuesetAutoIncrementDetailssnapshotObject

Constructor Detail

ColumnSnapshotGeneratorOracleback to summary
public ColumnSnapshotGeneratorOracle()

Method Detail

getPriorityback to summary
public int getPriority(Class<? extends DatabaseObject> objectType, Database database)

Overrides liquibase.snapshot.jvm.JdbcSnapshotGenerator.getPriority.

Implements liquibase.snapshot.SnapshotGenerator.getPriority.

Doc from liquibase.snapshot.SnapshotGenerator.getPriority.

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.

Parameters
objectType:Class<? extends DatabaseObject>

The object type we are asked to snapshot

database:Database

The DBMS for which the snapshotting should be done

Returns:int

An integer of PRIORITY_... constants indicating our capability and willingness to snapshot

Annotations
@Override
readDataTypeback to summary
protected DataType readDataType(CachedRow columnMetadataResultSet, Column column, Database database)

Overrides liquibase.snapshot.jvm.ColumnSnapshotGenerator.readDataType.

Doc from liquibase.snapshot.jvm.ColumnSnapshotGenerator.readDataType.

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.

Parameters
columnMetadataResultSet:CachedRow

the result from the JDBC getColumns() call for the column

column:Column

logical definition of the column (object form)

database:Database

the database from which the column originates

Returns:DataType

a DataType object with detailed information about the type

Annotations
@Override
replacesback to summary
public Class<? extends SnapshotGenerator>[] replaces()

Overrides liquibase.snapshot.jvm.JdbcSnapshotGenerator.replaces.

Implements liquibase.snapshot.SnapshotGenerator.replaces.

Doc from liquibase.snapshot.SnapshotGenerator.replaces.

Returns classes (and superclasses) that this SnapshotGenerator replaces. Return null or empty array to not affect the SnapshotGeneratorChain.

Annotations
@Override