Package de.xima.fc.liquibase.context
Class LiquibaseContextFactory
java.lang.Object
de.xima.fc.liquibase.context.LiquibaseContextFactory
Factory for creating an liquibase context
- Author:
- XIMA MEDIA GmbH, Dresden
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ILiquibaseContext
createContext
(DataSource datasource, String filePath) Creats an liquibase context based on an datasource, the path to the changelog filestatic ILiquibaseContext
createContext
(DataSource datasource, String filePath, liquibase.resource.ResourceAccessor resourceAccessor) Creats an liquibase context based on an datasource, the path to the changelog file and an custom resource accessor
-
Constructor Details
-
LiquibaseContextFactory
public LiquibaseContextFactory()
-
-
Method Details
-
createContext
public static ILiquibaseContext createContext(DataSource datasource, String filePath, liquibase.resource.ResourceAccessor resourceAccessor) throws liquibase.exception.LiquibaseException, SQLException Creats an liquibase context based on an datasource, the path to the changelog file and an custom resource accessor- Parameters:
datasource
- the datasourcefilePath
- the path to the changelog fileresourceAccessor
- the custom resource accessor- Returns:
- an liquibase context
- Throws:
liquibase.exception.LiquibaseException
- on errors while creating the liquibase instanceSQLException
- on errors when creating an connection to the datasource
-
createContext
public static ILiquibaseContext createContext(DataSource datasource, String filePath) throws liquibase.exception.LiquibaseException, SQLException Creats an liquibase context based on an datasource, the path to the changelog file- Parameters:
datasource
- the datasourcefilePath
- the path to the changelog file- Returns:
- an liquibase context
- Throws:
liquibase.exception.LiquibaseException
- on errors while creating the liquibase instanceSQLException
- on errors when creating an connection to the datasource
-