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) booleanclosed
-
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 voiddispose()Called when the connection is disposed.voidfinalize()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.SQLExceptionDescription copied from interface:DatabaseInterfaceCalled when the connection is disposed. This will terminate the connection if there is any connection to terminate.- Specified by:
disposein interfaceDatabaseInterface- Overrides:
disposein classJDBCDatabaseInterface- Throws:
java.sql.SQLException
-
finalize
public void finalize() throws java.lang.ThrowableDescription copied from class:AbstractJDBCDatabaseInterfaceClean up if this object is GC'd.- Overrides:
finalizein classAbstractJDBCDatabaseInterface- Throws:
java.lang.Throwable
-
-