|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BaseConnection
Driver-internal connection interface. Application code should not use this interface.
| Field Summary |
|---|
| Fields inherited from interface java.sql.Connection |
|---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Method Summary | |
|---|---|
void |
cancelQuery()
Cancel the current query executing on this connection. |
byte[] |
encodeString(java.lang.String str)
Encode a string using the database's client_encoding (usually UNICODE, but can vary on older server versions). |
java.lang.String |
escapeString(java.lang.String str)
Escapes a string for use as string-literal within an SQL command. |
java.sql.ResultSet |
execSQLQuery(java.lang.String s)
Execute a SQL query that returns a single resultset. |
java.sql.ResultSet |
execSQLQuery(java.lang.String s,
int resultSetType,
int resultSetConcurrency)
|
void |
execSQLUpdate(java.lang.String s)
Execute a SQL query that does not return results. |
java.lang.String |
getJavaClass(int oid)
|
Logger |
getLogger()
|
java.lang.Object |
getObject(java.lang.String type,
java.lang.String value)
Construct and return an appropriate object for the given type and value. |
java.lang.String |
getPGType(int oid)
Look up the postgresql type name for a given oid. |
int |
getPGType(java.lang.String pgTypeName)
Look up the oid for a given postgresql type name. |
QueryExecutor |
getQueryExecutor()
Get the QueryExecutor implementation for this connection. |
int |
getSQLType(int oid)
Look up the SQL typecode for a given type oid. |
int |
getSQLType(java.lang.String pgTypeName)
Look up the SQL typecode for a given postgresql type name. |
boolean |
getStandardConformingStrings()
Returns whether the server treats string-literals according to the SQL standard or if it uses traditional PostgreSQL escaping rules. |
boolean |
getStringVarcharFlag()
|
TimestampUtils |
getTimestampUtils()
|
boolean |
haveMinimumCompatibleVersion(java.lang.String ver)
Check if we should use driver behaviour introduced in a particular driver version. |
boolean |
haveMinimumServerVersion(java.lang.String ver)
Check if we have at least a particular server version. |
| Methods inherited from interface org.postgresql.PGConnection |
|---|
addDataType, addDataType, getEncoding, getFastpathAPI, getLargeObjectAPI, getNotifications, getPrepareThreshold, setPrepareThreshold |
| Methods inherited from interface java.sql.Connection |
|---|
clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap |
| Method Detail |
|---|
void cancelQuery()
throws java.sql.SQLException
java.sql.SQLException - if something goes wrong.
java.sql.ResultSet execSQLQuery(java.lang.String s)
throws java.sql.SQLException
s - the query to execute
java.sql.SQLException - if something goes wrong.
java.sql.ResultSet execSQLQuery(java.lang.String s,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
java.sql.SQLException
void execSQLUpdate(java.lang.String s)
throws java.sql.SQLException
s - the query to execute
java.sql.SQLException - if something goes wrong.QueryExecutor getQueryExecutor()
java.lang.Object getObject(java.lang.String type,
java.lang.String value)
throws java.sql.SQLException
PGConnection.addDataType(String,Class) and
PGConnection.addDataType(String,String).
If no class is registered as handling the given type, then a generic
PGobject instance is returned.
getObject in interface PGConnectiontype - the backend typenamevalue - the type-specific string representation of the value
java.sql.SQLException - if something goes wrong
java.lang.String getJavaClass(int oid)
throws java.sql.SQLException
java.sql.SQLException
java.lang.String getPGType(int oid)
throws java.sql.SQLException
getPGType(String).
getPGType in interface PGConnectionoid - the type's OID
java.sql.SQLException - if something goes wrong
int getPGType(java.lang.String pgTypeName)
throws java.sql.SQLException
getPGType(int).
getPGType in interface PGConnectionpgTypeName - the server type name to look up
java.sql.SQLException - if something goes wrong
int getSQLType(int oid)
throws java.sql.SQLException
getSQLType in interface PGConnectionoid - the type's OID
Types) for the type
java.sql.SQLException - if something goes wrong
int getSQLType(java.lang.String pgTypeName)
throws java.sql.SQLException
getSQLType in interface PGConnectionpgTypeName - the server type name to look up
Types) for the type
java.sql.SQLException - if something goes wrongboolean haveMinimumCompatibleVersion(java.lang.String ver)
ver - the driver version to check
java.sql.SQLException - if something goes wrongboolean haveMinimumServerVersion(java.lang.String ver)
ver - the server version to check
java.sql.SQLException - if something goes wrong
byte[] encodeString(java.lang.String str)
throws java.sql.SQLException
str - the string to encode
java.sql.SQLException - if something goes wrong.
java.lang.String escapeString(java.lang.String str)
throws java.sql.SQLException
getStandardConformingStrings().
str - a string value
java.sql.SQLException - if the string contains a \0 characterboolean getStandardConformingStrings()
ProtocolConnection.getStandardConformingStrings()TimestampUtils getTimestampUtils()
Logger getLogger()
boolean getStringVarcharFlag()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||