liquibase.database
Class OfflineConnection

java.lang.Object
  extended by liquibase.database.OfflineConnection
All Implemented Interfaces:
DatabaseConnection

public class OfflineConnection
extends Object
implements DatabaseConnection


Constructor Summary
OfflineConnection(String url, ResourceAccessor resourceAccessor)
           
 
Method Summary
 void attached(Database database)
           
 void close()
           
 void commit()
           
protected  ChangeLogHistoryService createChangeLogHistoryService(Database database)
           
 boolean getAutoCommit()
           
 String getCatalog()
           
 String getConnectionUserName()
           
 int getDatabaseMajorVersion()
           
 int getDatabaseMinorVersion()
           
 String getDatabaseProductName()
           
 String getDatabaseProductVersion()
           
 boolean getSendsStringParametersAsUnicode()
           
 DatabaseSnapshot getSnapshot()
           
 String getURL()
           
 boolean isCaseSensitive()
           
 boolean isClosed()
           
 boolean isCorrectDatabaseImplementation(Database database)
           
 String nativeSQL(String sql)
           
 void rollback()
           
 void setAutoCommit(boolean autoCommit)
           
 void setCaseSensitive(boolean caseSensitive)
           
 void setConnectionUserName(String connectionUserName)
           
 void setDatabaseMajorVersion(int databaseMajorVersion)
           
 void setDatabaseMinorVersion(int databaseMinorVersion)
           
 void setProductName(String productName)
           
 void setProductVersion(String productVersion)
           
 void setSendsStringParametersAsUnicode(boolean sendsStringParametersAsUnicode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineConnection

public OfflineConnection(String url,
                         ResourceAccessor resourceAccessor)
Method Detail

isCorrectDatabaseImplementation

public boolean isCorrectDatabaseImplementation(Database database)

attached

public void attached(Database database)
Specified by:
attached in interface DatabaseConnection

createChangeLogHistoryService

protected ChangeLogHistoryService createChangeLogHistoryService(Database database)

getSnapshot

public DatabaseSnapshot getSnapshot()

close

public void close()
           throws DatabaseException
Specified by:
close in interface DatabaseConnection
Throws:
DatabaseException

commit

public void commit()
            throws DatabaseException
Specified by:
commit in interface DatabaseConnection
Throws:
DatabaseException

getAutoCommit

public boolean getAutoCommit()
                      throws DatabaseException
Specified by:
getAutoCommit in interface DatabaseConnection
Throws:
DatabaseException

getCatalog

public String getCatalog()
                  throws DatabaseException
Specified by:
getCatalog in interface DatabaseConnection
Throws:
DatabaseException

nativeSQL

public String nativeSQL(String sql)
                 throws DatabaseException
Specified by:
nativeSQL in interface DatabaseConnection
Throws:
DatabaseException

rollback

public void rollback()
              throws DatabaseException
Specified by:
rollback in interface DatabaseConnection
Throws:
DatabaseException

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws DatabaseException
Specified by:
setAutoCommit in interface DatabaseConnection
Throws:
DatabaseException

getDatabaseProductName

public String getDatabaseProductName()
                              throws DatabaseException
Specified by:
getDatabaseProductName in interface DatabaseConnection
Throws:
DatabaseException

getDatabaseProductVersion

public String getDatabaseProductVersion()
                                 throws DatabaseException
Specified by:
getDatabaseProductVersion in interface DatabaseConnection
Throws:
DatabaseException

getDatabaseMajorVersion

public int getDatabaseMajorVersion()
                            throws DatabaseException
Specified by:
getDatabaseMajorVersion in interface DatabaseConnection
Throws:
DatabaseException

setDatabaseMajorVersion

public void setDatabaseMajorVersion(int databaseMajorVersion)

setDatabaseMinorVersion

public void setDatabaseMinorVersion(int databaseMinorVersion)

setProductVersion

public void setProductVersion(String productVersion)

setProductName

public void setProductName(String productName)

getDatabaseMinorVersion

public int getDatabaseMinorVersion()
                            throws DatabaseException
Specified by:
getDatabaseMinorVersion in interface DatabaseConnection
Throws:
DatabaseException

getURL

public String getURL()
Specified by:
getURL in interface DatabaseConnection

getConnectionUserName

public String getConnectionUserName()
Specified by:
getConnectionUserName in interface DatabaseConnection

setConnectionUserName

public void setConnectionUserName(String connectionUserName)

isClosed

public boolean isClosed()
                 throws DatabaseException
Specified by:
isClosed in interface DatabaseConnection
Throws:
DatabaseException

getSendsStringParametersAsUnicode

public boolean getSendsStringParametersAsUnicode()

setSendsStringParametersAsUnicode

public void setSendsStringParametersAsUnicode(boolean sendsStringParametersAsUnicode)

isCaseSensitive

public boolean isCaseSensitive()

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)


Copyright © 2015 Liquibase.org. All rights reserved.