|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProtocolConnection
Provides access to protocol-level connection operations.
| Field Summary | |
|---|---|
static int |
TRANSACTION_FAILED
Constant returned by getTransactionState() indicating that a
transaction is currently open, but it has seen errors and will
refuse subsequent queries until a ROLLBACK. |
static int |
TRANSACTION_IDLE
Constant returned by getTransactionState() indicating that no
transaction is currently open. |
static int |
TRANSACTION_OPEN
Constant returned by getTransactionState() indicating that a
transaction is currently open. |
| Method Summary | |
|---|---|
void |
close()
Close this connection cleanly. |
String |
getDatabase()
|
Encoding |
getEncoding()
|
String |
getHost()
|
PGNotification[] |
getNotifications()
Retrieve and clear the set of asynchronous notifications pending on this connection. |
int |
getPort()
|
int |
getProtocolVersion()
|
QueryExecutor |
getQueryExecutor()
|
String |
getServerVersion()
|
boolean |
getStandardConformingStrings()
Returns whether the server treats string-literals according to the SQL standard or if it uses traditional PostgreSQL escaping rules. |
int |
getTransactionState()
Get the current transaction state of this connection. |
String |
getUser()
|
SQLWarning |
getWarnings()
Retrieve and clear the chain of warnings accumulated on this connection. |
boolean |
isClosed()
Check if this connection is closed. |
void |
sendQueryCancel()
Sends a query cancellation for this connection. |
| Field Detail |
|---|
static final int TRANSACTION_IDLE
getTransactionState() indicating that no
transaction is currently open.
static final int TRANSACTION_OPEN
getTransactionState() indicating that a
transaction is currently open.
static final int TRANSACTION_FAILED
getTransactionState() indicating that a
transaction is currently open, but it has seen errors and will
refuse subsequent queries until a ROLLBACK.
| Method Detail |
|---|
String getHost()
int getPort()
String getUser()
String getDatabase()
String getServerVersion()
Encoding getEncoding()
boolean getStandardConformingStrings()
int getTransactionState()
PGNotification[] getNotifications()
throws SQLException
SQLExceptionSQLWarning getWarnings()
QueryExecutor getQueryExecutor()
void sendQueryCancel()
throws SQLException
SQLException - if something goes wrong.void close()
boolean isClosed()
int getProtocolVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||