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 defaultSchemaName,
String databaseClass,
String driverPropertiesFile)
|
static void |
doDiff(Database referenceDatabase,
Database targetDatabase)
|
static void |
doDiffToChangeLog(String changeLogFile,
Database referenceDatabase,
Database targetDatabase)
|
static void |
doGenerateChangeLog(String changeLogFile,
Database originalDatabase,
String defaultSchemaName,
String diffTypes,
String author,
String context,
String dataDir)
|
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 defaultSchemaName,
String databaseClass,
String driverPropertiesFile)
throws DatabaseException
- Throws:
DatabaseException
doDiff
public static void doDiff(Database referenceDatabase,
Database targetDatabase)
throws DatabaseException
- Throws:
DatabaseException
doDiffToChangeLog
public static void doDiffToChangeLog(String changeLogFile,
Database referenceDatabase,
Database targetDatabase)
throws DatabaseException,
IOException,
ParserConfigurationException
- Throws:
DatabaseException
IOException
ParserConfigurationException
doGenerateChangeLog
public static void doGenerateChangeLog(String changeLogFile,
Database originalDatabase,
String defaultSchemaName,
String diffTypes,
String author,
String context,
String dataDir)
throws DatabaseException,
IOException,
ParserConfigurationException
- Throws:
DatabaseException
IOException
ParserConfigurationException
Copyright © 2012 Liquibase.org. All Rights Reserved.