Class LiquibaseContextFactory

java.lang.Object
de.xima.fc.persistence.impl.schema.LiquibaseContextFactory

@ApplicationScoped public class LiquibaseContextFactory extends Object
Factory for creating an liquibase context
Author:
XIMA MEDIA GmbH, Dresden
  • Method Summary

    Modifier and Type
    Method
    Description
    de.xima.fc.persistence.impl.schema.ILiquibaseContext
    createContext(DataSource datasource, String filePath)
    Creats an liquibase context based on an datasource, the path to the changelog file
    de.xima.fc.persistence.impl.schema.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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createContext

      public de.xima.fc.persistence.impl.schema.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 datasource
      filePath - the path to the changelog file
      resourceAccessor - the custom resource accessor
      Returns:
      an liquibase context
      Throws:
      liquibase.exception.LiquibaseException - on errors while creating the liquibase instance
      SQLException - on errors when creating an connection to the datasource
    • createContext

      public de.xima.fc.persistence.impl.schema.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 datasource
      filePath - the path to the changelog file
      Returns:
      an liquibase context
      Throws:
      liquibase.exception.LiquibaseException - on errors while creating the liquibase instance
      SQLException - on errors when creating an connection to the datasource