liquibase.integration.commandline
Class CommandLineUtils
java.lang.Object
liquibase.integration.commandline.CommandLineUtils
public class CommandLineUtils
- extends Object
Common Utilitiy methods used in the CommandLine application and the Maven plugin.
These methods were orignally moved from Main
so they could be shared.
- Author:
- Peter Murray
Method Summary |
static Database |
createDatabaseObject(ClassLoader classLoader,
String url,
String username,
String password,
String driver,
String defaultCatalogName,
String defaultSchemaName,
String databaseClass,
String driverPropertiesFile)
|
static void |
doDiff(Database referenceDatabase,
Database targetDatabase)
|
static void |
doDiffToChangeLog(String changeLogFile,
Database referenceDatabase,
Database targetDatabase,
DiffOutputControl diffOutputControl)
|
static void |
doGenerateChangeLog(String changeLogFile,
Database originalDatabase,
String catalogName,
String schemaName,
String snapshotTypes,
String author,
String context,
String dataDir,
DiffOutputControl diffOutputControl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLineUtils
public CommandLineUtils()
createDatabaseObject
public static Database createDatabaseObject(ClassLoader classLoader,
String url,
String username,
String password,
String driver,
String defaultCatalogName,
String defaultSchemaName,
String databaseClass,
String driverPropertiesFile)
throws DatabaseException
- Throws:
DatabaseException
doDiff
public static void doDiff(Database referenceDatabase,
Database targetDatabase)
throws LiquibaseException
- Throws:
LiquibaseException
doDiffToChangeLog
public static void doDiffToChangeLog(String changeLogFile,
Database referenceDatabase,
Database targetDatabase,
DiffOutputControl diffOutputControl)
throws LiquibaseException,
IOException,
ParserConfigurationException
- Throws:
LiquibaseException
IOException
ParserConfigurationException
doGenerateChangeLog
public static void doGenerateChangeLog(String changeLogFile,
Database originalDatabase,
String catalogName,
String schemaName,
String snapshotTypes,
String author,
String context,
String dataDir,
DiffOutputControl diffOutputControl)
throws DatabaseException,
IOException,
ParserConfigurationException,
InvalidExampleException
- Throws:
DatabaseException
IOException
ParserConfigurationException
InvalidExampleException
Copyright © 2013 Liquibase.org. All Rights Reserved.