liquibase.snapshot.jvm
Class PostgresDatabaseSnapshotGenerator

java.lang.Object
  extended by liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator
      extended by liquibase.snapshot.jvm.PostgresDatabaseSnapshotGenerator
All Implemented Interfaces:
DatabaseSnapshotGenerator

public class PostgresDatabaseSnapshotGenerator
extends JdbcDatabaseSnapshotGenerator


Field Summary
 
Fields inherited from interface liquibase.snapshot.DatabaseSnapshotGenerator
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
PostgresDatabaseSnapshotGenerator()
           
 
Method Summary
protected  String convertColumnNameToDatabaseTableName(String columnName)
           
protected  String convertFromDatabaseName(String objectName)
           
protected  String convertPrimaryKeyName(String pkName)
           
protected  String convertTableNameToDatabaseTableName(String tableName)
           
protected  void getColumnsForUniqueConstraint(Database database, long conrelid, Array keys, UniqueConstraint constraint)
           
 int getPriority(Database database)
           
protected  void readUniqueConstraints(DatabaseSnapshot snapshot, String schema, DatabaseMetaData databaseMetaData)
           
 boolean supports(Database database)
           
 
Methods inherited from class liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator
configureColumnType, convertToForeignKeyConstraintType, createSnapshot, fillForeignKeyInfo, generateForeignKey, getAdditionalForeignKeys, getColumn, getColumnTypeAndDefValue, getDatabaseChangeLogLockTable, getDatabaseChangeLogTable, getDatabaseType, getForeignKeyByForeignKeyTable, getForeignKeys, getMetaData, getTable, hasDatabaseChangeLogLockTable, hasDatabaseChangeLogTable, hasIndex, hasTable, hasView, isColumnAutoIncrement, readColumns, readForeignKeyInformation, readIndexes, readPrimaryKeys, readSequences, readTables, readViews, updateListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgresDatabaseSnapshotGenerator

public PostgresDatabaseSnapshotGenerator()
Method Detail

supports

public boolean supports(Database database)

getPriority

public int getPriority(Database database)

convertTableNameToDatabaseTableName

protected String convertTableNameToDatabaseTableName(String tableName)
Overrides:
convertTableNameToDatabaseTableName in class JdbcDatabaseSnapshotGenerator

convertColumnNameToDatabaseTableName

protected String convertColumnNameToDatabaseTableName(String columnName)
Overrides:
convertColumnNameToDatabaseTableName in class JdbcDatabaseSnapshotGenerator

convertPrimaryKeyName

protected String convertPrimaryKeyName(String pkName)
                                throws SQLException
Overrides:
convertPrimaryKeyName in class JdbcDatabaseSnapshotGenerator
Throws:
SQLException

convertFromDatabaseName

protected String convertFromDatabaseName(String objectName)
Overrides:
convertFromDatabaseName in class JdbcDatabaseSnapshotGenerator

readUniqueConstraints

protected void readUniqueConstraints(DatabaseSnapshot snapshot,
                                     String schema,
                                     DatabaseMetaData databaseMetaData)
                              throws DatabaseException,
                                     SQLException
Overrides:
readUniqueConstraints in class JdbcDatabaseSnapshotGenerator
Throws:
DatabaseException
SQLException

getColumnsForUniqueConstraint

protected void getColumnsForUniqueConstraint(Database database,
                                             long conrelid,
                                             Array keys,
                                             UniqueConstraint constraint)
                                      throws SQLException
Throws:
SQLException


Copyright © 2004-2011 Liquibase.org. All Rights Reserved.