Package com.mckoi.database.jdbcserver
Class DefaultLocalBootable.LocalJDBCDatabaseInterface
- java.lang.Object
-
- com.mckoi.database.jdbcserver.AbstractJDBCDatabaseInterface
-
- com.mckoi.database.jdbcserver.JDBCDatabaseInterface
-
- com.mckoi.database.jdbcserver.DefaultLocalBootable.LocalJDBCDatabaseInterface
-
- All Implemented Interfaces:
DatabaseInterface
- Enclosing class:
- DefaultLocalBootable
private class DefaultLocalBootable.LocalJDBCDatabaseInterface extends JDBCDatabaseInterface
A local implementation of JDBCDatabaseInterface that will dispose the parent LocalBootable object when the last open connection is disposed.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
closed
-
Constructor Summary
Constructors Constructor Description LocalJDBCDatabaseInterface(Database database, java.lang.String host_string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Called when the connection is disposed.void
finalize()
Clean up if this object is GC'd.-
Methods inherited from class com.mckoi.database.jdbcserver.JDBCDatabaseInterface
execQuery, login
-
Methods inherited from class com.mckoi.database.jdbcserver.AbstractJDBCDatabaseInterface
checkNotDisposed, clearResultSetMap, Debug, disposeResult, disposeStreamableObject, getDatabase, getDatabaseConnection, getResultPart, getStreamableObjectPart, getUser, handleExecuteThrowable, init, internalDispose, pushStreamableObjectPart
-
-
-
-
Constructor Detail
-
LocalJDBCDatabaseInterface
public LocalJDBCDatabaseInterface(Database database, java.lang.String host_string)
-
-
Method Detail
-
dispose
public void dispose() throws java.sql.SQLException
Description copied from interface:DatabaseInterface
Called when the connection is disposed. This will terminate the connection if there is any connection to terminate.- Specified by:
dispose
in interfaceDatabaseInterface
- Overrides:
dispose
in classJDBCDatabaseInterface
- Throws:
java.sql.SQLException
-
finalize
public void finalize() throws java.lang.Throwable
Description copied from class:AbstractJDBCDatabaseInterface
Clean up if this object is GC'd.- Overrides:
finalize
in classAbstractJDBCDatabaseInterface
- Throws:
java.lang.Throwable
-
-