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)
           
 
Method Summary
 void attached(Database database)
           
 void close()
           
 void commit()
           
 boolean getAutoCommit()
           
 String getCatalog()
           
 String getConnectionUserName()
           
 int getDatabaseMajorVersion()
           
 int getDatabaseMinorVersion()
           
 String getDatabaseProductName()
           
 String getDatabaseProductVersion()
           
 String getURL()
           
 boolean isClosed()
           
 boolean isCorrectDatabaseImplementation(Database database)
           
 String nativeSQL(String sql)
           
 void rollback()
           
 void setAutoCommit(boolean autoCommit)
           
 
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)
Method Detail

isCorrectDatabaseImplementation

public boolean isCorrectDatabaseImplementation(Database database)

attached

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

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

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

isClosed

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


Copyright © 2014 Liquibase.org. All Rights Reserved.