|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.jdbcserver.AbstractJDBCDatabaseInterface
com.mckoi.database.jdbcserver.JDBCDatabaseInterface
public class JDBCDatabaseInterface
An implementation of jdbc.DatabaseInterface on the server-side.
This receives database commands and dispatches them to the database system. This assumes that all calls to the methods here are in a UserWorkerThread thread.
NOTE: Currently, the client/server use of this object isn't multi-threaded, however the local connection could be. Therefore, this object has been made multi-thread safe.
Constructor Summary | |
---|---|
JDBCDatabaseInterface(Database database,
java.lang.String host_name)
Sets up the processor. |
Method Summary | |
---|---|
void |
dispose()
Called when the connection is disposed. |
QueryResponse |
execQuery(SQLQuery query)
Executes the query and returns a QueryResponse object that describes the result of the query. |
boolean |
login(java.lang.String default_schema,
java.lang.String username,
java.lang.String password,
DatabaseCallBack database_call_back)
Attempts to log in to the database as the given username with the given password. |
Methods inherited from class com.mckoi.database.jdbcserver.AbstractJDBCDatabaseInterface |
---|
checkNotDisposed, clearResultSetMap, Debug, disposeResult, disposeStreamableObject, finalize, getDatabase, getDatabaseConnection, getResultPart, getStreamableObjectPart, getUser, handleExecuteThrowable, init, internalDispose, pushStreamableObjectPart |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCDatabaseInterface(Database database, java.lang.String host_name)
Method Detail |
---|
public boolean login(java.lang.String default_schema, java.lang.String username, java.lang.String password, DatabaseCallBack database_call_back) throws java.sql.SQLException
DatabaseInterface
A DatabaseCallBack implementation must be given here that is notified of all events from the database. Events are only received if the login was successful.
java.sql.SQLException
public QueryResponse execQuery(SQLQuery query) throws java.sql.SQLException
DatabaseInterface
execQuery
in interface DatabaseInterface
execQuery
in class AbstractJDBCDatabaseInterface
java.sql.SQLException
public void dispose() throws java.sql.SQLException
DatabaseInterface
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |