|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Protocol
User: marcuse Date: Jan 14, 2009 Time: 4:05:47 PM
| Method Summary | |
|---|---|
void |
addToBatch(Query dQuery)
adds a query to the batch |
void |
cancelCurrentQuery()
|
void |
clearBatch()
clears the current batch |
void |
close()
closes the connection to the server |
void |
commit()
commits the current transaction |
boolean |
createDB()
should a database be created if it does not exist ? |
java.util.List<QueryResult> |
executeBatch()
executes the batch of queries |
QueryResult |
executeQuery(Query dQuery)
executes a query |
QueryResult |
executeQuery(Query createQuery,
java.io.InputStream inputStream)
|
java.lang.String |
getDatabase()
returns the current used database |
SupportedDatabases |
getDatabaseType()
|
java.lang.String |
getHost()
returns the host |
QueryResult |
getMoreResults()
|
java.lang.String |
getPassword()
the current password |
int |
getPort()
returns the port we are connected to |
boolean |
getReadonly()
check if it is possble to execute writing operations on this connection |
java.lang.String |
getServerVariable(java.lang.String s)
|
java.lang.String |
getServerVersion()
returns the server version string |
java.lang.String |
getUsername()
returns the current connected username |
boolean |
isClosed()
returns true if the connection has been closed |
boolean |
ping()
checks whether the connectiion is still valid |
void |
releaseSavepoint(java.lang.String savepoint)
releases the savepoint |
void |
rollback()
rolls back the current transaction |
void |
rollback(java.lang.String savepoint)
rolls back to the given save point |
void |
selectDB(java.lang.String database)
selects what database to use |
void |
setReadonly(boolean readOnly)
sets whether this connection should be read only TODO: actually enforce this |
void |
setSavepoint(java.lang.String savepoint)
sets a save point |
java.util.List<RawPacket> |
startBinlogDump(int startPos,
java.lang.String filename)
|
boolean |
supportsPBMS()
|
void |
timeOut()
|
| Method Detail |
|---|
void close()
throws QueryException
QueryException - if there is a communication problem with the serverboolean isClosed()
void selectDB(java.lang.String database)
throws QueryException
database - the database
QueryException - if there is a problem selecting the databasejava.lang.String getServerVersion()
void setReadonly(boolean readOnly)
readOnly - if the connection should be read onlyboolean getReadonly()
void commit()
throws QueryException
QueryException - if there is a problem committing the txn
void rollback()
throws QueryException
QueryException - if there is a problem rolling back
void rollback(java.lang.String savepoint)
throws QueryException
savepoint - the save point to roll back to
QueryException - if there is a problem rolling back
void setSavepoint(java.lang.String savepoint)
throws QueryException
savepoint - the save point name
QueryException - if there is a problem setting the save point
void releaseSavepoint(java.lang.String savepoint)
throws QueryException
savepoint - the name of the savepoint to release
QueryException - if there is a problem releasing the save pointjava.lang.String getHost()
int getPort()
java.lang.String getDatabase()
java.lang.String getUsername()
java.lang.String getPassword()
boolean ping()
throws QueryException
QueryException - if there is a problem communicating
QueryResult executeQuery(Query dQuery)
throws QueryException
dQuery - the query to execute
QueryException - if there is a problem with the queryvoid addToBatch(Query dQuery)
dQuery - the query to add
java.util.List<QueryResult> executeBatch()
throws QueryException
QueryException - if there is a problemvoid clearBatch()
java.util.List<RawPacket> startBinlogDump(int startPos,
java.lang.String filename)
throws BinlogDumpException
BinlogDumpExceptionSupportedDatabases getDatabaseType()
boolean supportsPBMS()
java.lang.String getServerVariable(java.lang.String s)
throws QueryException
QueryExceptionboolean createDB()
QueryResult executeQuery(Query createQuery,
java.io.InputStream inputStream)
throws QueryException
QueryException
void cancelCurrentQuery()
throws QueryException
QueryException
void timeOut()
throws QueryException
QueryException
QueryResult getMoreResults()
throws QueryException
QueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||