|
|||||||||
| 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. |
java.lang.String |
getDatabase()
|
Encoding |
getEncoding()
|
java.lang.String |
getHost()
|
PGNotification[] |
getNotifications()
Retrieve and clear the set of asynchronous notifications pending on this connection. |
int |
getPort()
|
int |
getProtocolVersion()
|
QueryExecutor |
getQueryExecutor()
|
java.lang.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. |
java.lang.String |
getUser()
|
java.sql.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 |
|---|
java.lang.String getHost()
int getPort()
java.lang.String getUser()
java.lang.String getDatabase()
java.lang.String getServerVersion()
Encoding getEncoding()
boolean getStandardConformingStrings()
int getTransactionState()
PGNotification[] getNotifications()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.SQLWarning getWarnings()
QueryExecutor getQueryExecutor()
void sendQueryCancel()
throws java.sql.SQLException
java.sql.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 | ||||||||