| Modifier and Type | Field and Description |
|---|---|
| private ChangeLogParametersType | |
| private AntClassLoader | |
| private Path | |
| private static final ResourceBundle | |
| private DatabaseType | |
| private Liquibase | |
| private ResourceAccessor | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| protected void | closeDatabase(Database
The database to close. database)Convenience method to safely close the database connection. |
| public Path | |
| protected Database | |
| protected Database | |
| private ResourceAccessor | Returns: A ResourceAccessor.The ClassLoader to use in the ResourceAccessor. It is preferable that it is an AntClassLoader. classLoader)Creates a suitable ResourceAccessor for use in an Ant task.. |
| public final void | execute()
Overrides org. Called by the project to let the task do its work. |
| protected abstract void | |
| public String | Returns: Returns null in this implementation. Subclasses that need a change log should implement.This method is designed to be overridden by subclasses when a change log is needed. |
| protected String | Returns: Returns null in this implementation. Subclasses that need a change log should implement.This method is designed to be overridden by subclasses when a change log is needed. |
| protected String | |
| protected Liquibase | |
| protected ResourceAccessor | |
| public String | Returns: Returns null in this implementation. Subclasses that need a change log should implement.This method is designed to be overridden by subclasses when a change log is needed. |
| public void | init()
Overrides org. Called by the project to let the task initialize properly. |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected boolean | |
| protected void | validateParameters()
Subclasses that override this method must always call |
| changeLogParameters | back to summary |
|---|---|
| private ChangeLogParametersType changeLogParameters | |
| classLoader | back to summary |
|---|---|
| private AntClassLoader classLoader | |
| classpath | back to summary |
|---|---|
| private Path classpath | |
| coreBundle | back to summary |
|---|---|
| private static final ResourceBundle coreBundle | |
| databaseType | back to summary |
|---|---|
| private DatabaseType databaseType | |
| liquibase | back to summary |
|---|---|
| private Liquibase liquibase | |
| resourceAccessor | back to summary |
|---|---|
| private ResourceAccessor resourceAccessor | |
| scopeValues | back to summary |
|---|---|
| private final Map<String, Object> scopeValues | |
| BaseLiquibaseTask | back to summary |
|---|---|
| public BaseLiquibaseTask() | |
| addChangeLogParameters | back to summary |
|---|---|
| public void addChangeLogParameters(ChangeLogParametersType changeLogParameters) | |
| addDatabase | back to summary |
|---|---|
| public void addDatabase(DatabaseType databaseType) | |
| closeDatabase | back to summary |
|---|---|
| protected void closeDatabase(Database database) Convenience method to safely close the database connection.
| |
| createClasspath | back to summary |
|---|---|
| public Path createClasspath() | |
| createDatabaseFromConfiguredDatabaseType | back to summary |
|---|---|
| protected Database createDatabaseFromConfiguredDatabaseType() | |
| createDatabaseFromType | back to summary |
|---|---|
| protected Database createDatabaseFromType(DatabaseType databaseType, ResourceAccessor resourceAccessor) | |
| createResourceAccessor | back to summary |
|---|---|
| private ResourceAccessor createResourceAccessor(AntClassLoader classLoader) Creates a suitable ResourceAccessor for use in an Ant task..
| |
| execute | back to summary |
|---|---|
| public final void execute() throws BuildException Overrides org. Doc from org. Called by the project to let the task do its work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.
| |
| executeWithLiquibaseClassloader | back to summary |
|---|---|
| protected abstract void executeWithLiquibaseClassloader() throws BuildException | |
| getChangeLogDirectory | back to summary |
|---|---|
| public String getChangeLogDirectory() This method is designed to be overridden by subclasses when a change log is needed. By default it returns null.
| |
| getChangeLogFile | back to summary |
|---|---|
| protected String getChangeLogFile() This method is designed to be overridden by subclasses when a change log is needed. By default it returns null.
| |
| getDefaultOutputEncoding | back to summary |
|---|---|
| protected String getDefaultOutputEncoding() | |
| getLiquibase | back to summary |
|---|---|
| protected Liquibase getLiquibase() | |
| getResourceAccessor | back to summary |
|---|---|
| protected ResourceAccessor getResourceAccessor() | |
| getSearchPath | back to summary |
|---|---|
| public String getSearchPath() This method is designed to be overridden by subclasses when a change log is needed. By default it returns null.
| |
| init | back to summary |
|---|---|
| public void init() throws BuildException Overrides org. Doc from org. Called by the project to let the task initialize properly. The default implementation is a no-op.
| |
| isPromptOnNonLocalDatabase | back to summary |
|---|---|
| public boolean isPromptOnNonLocalDatabase()
Deprecated no longer prompts | |
| setChangeLogParametersRef | back to summary |
|---|---|
| public void setChangeLogParametersRef(Reference changeLogParametersRef) | |
| setClasspathRef | back to summary |
|---|---|
| public void setClasspathRef(Reference r) | |
| setDatabaseRef | back to summary |
|---|---|
| public void setDatabaseRef(Reference databaseRef) | |
| setPromptOnNonLocalDatabase | back to summary |
|---|---|
| public void setPromptOnNonLocalDatabase(boolean promptOnNonLocalDatabase)
Deprecated no longer prompts | |
| shouldRun | back to summary |
|---|---|
| protected boolean shouldRun() | |
| validateParameters | back to summary |
|---|---|
| protected void validateParameters() Subclasses that override this method must always call | |