public class OfflineConnection extends java.lang.Object implements DatabaseConnection
| Constructor and Description |
|---|
OfflineConnection(java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
attached(Database database) |
void |
close() |
void |
commit() |
boolean |
getAutoCommit() |
java.lang.String |
getCatalog() |
java.lang.String |
getConnectionUserName() |
int |
getDatabaseMajorVersion() |
int |
getDatabaseMinorVersion() |
java.lang.String |
getDatabaseProductName() |
java.lang.String |
getDatabaseProductVersion() |
java.lang.String |
getURL() |
boolean |
isClosed() |
boolean |
isCorrectDatabaseImplementation(Database database) |
java.lang.String |
nativeSQL(java.lang.String sql) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
public boolean isCorrectDatabaseImplementation(Database database)
public void attached(Database database)
attached in interface DatabaseConnectionpublic void close()
throws DatabaseException
close in interface DatabaseConnectionDatabaseExceptionpublic void commit()
throws DatabaseException
commit in interface DatabaseConnectionDatabaseExceptionpublic boolean getAutoCommit()
throws DatabaseException
getAutoCommit in interface DatabaseConnectionDatabaseExceptionpublic java.lang.String getCatalog()
throws DatabaseException
getCatalog in interface DatabaseConnectionDatabaseExceptionpublic java.lang.String nativeSQL(java.lang.String sql)
throws DatabaseException
nativeSQL in interface DatabaseConnectionDatabaseExceptionpublic void rollback()
throws DatabaseException
rollback in interface DatabaseConnectionDatabaseExceptionpublic void setAutoCommit(boolean autoCommit)
throws DatabaseException
setAutoCommit in interface DatabaseConnectionDatabaseExceptionpublic java.lang.String getDatabaseProductName()
throws DatabaseException
getDatabaseProductName in interface DatabaseConnectionDatabaseExceptionpublic java.lang.String getDatabaseProductVersion()
throws DatabaseException
getDatabaseProductVersion in interface DatabaseConnectionDatabaseExceptionpublic int getDatabaseMajorVersion()
throws DatabaseException
getDatabaseMajorVersion in interface DatabaseConnectionDatabaseExceptionpublic int getDatabaseMinorVersion()
throws DatabaseException
getDatabaseMinorVersion in interface DatabaseConnectionDatabaseExceptionpublic java.lang.String getURL()
getURL in interface DatabaseConnectionpublic java.lang.String getConnectionUserName()
getConnectionUserName in interface DatabaseConnectionpublic boolean isClosed()
throws DatabaseException
isClosed in interface DatabaseConnectionDatabaseException