|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.jdbc.SPIConnection
public class SPIConnection
Field Summary | |
---|---|
static int[] |
JDBC_TYPE_NUMBERS
|
static String[] |
JDBC3_TYPE_NAMES
|
Fields inherited from interface java.sql.Connection |
---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
---|---|
SPIConnection()
|
Method Summary | |
---|---|
void |
clearWarnings()
Warnings are not yet supported. |
void |
close()
This is a no-op. |
void |
commit()
It's not legal to do a commit within a call from SQL. |
Statement |
createStatement()
Creates a new instance of SPIStatement . |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
Creates a new instance of SPIStatement . |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
Creates a new instance of SPIStatement . |
boolean |
getAutoCommit()
It is assumed that an SPI call is under transaction control. |
String |
getCatalog()
Returns null . |
static Connection |
getDefault()
Returns a default connection instance. |
int |
getHoldability()
Returns ResultSet.CLOSE_CURSORS_AT_COMMIT . |
DatabaseMetaData |
getMetaData()
DatabaseMetaData is not yet supported. |
String |
getPGType(Oid oid)
|
int |
getSQLType(Oid oid)
|
int |
getSQLType(String pgTypeName)
|
int |
getTransactionIsolation()
Returns Connection.TRANSACTION_READ_COMMITTED . |
Map |
getTypeMap()
Returns null . |
int[] |
getVersionNumber()
|
SQLWarning |
getWarnings()
Warnings are not yet supported. |
boolean |
isClosed()
Will always return false. |
boolean |
isReadOnly()
Returns false . |
String |
nativeSQL(String sql)
Parse the JDBC SQL into PostgreSQL. |
String |
nativeSQL(String sql,
int[] paramCountRet)
|
CallableStatement |
prepareCall(String sql)
Procedure calls are not yet implemented. |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency)
Procedure calls are not yet implemented. |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
Procedure calls are not yet implemented. |
PreparedStatement |
prepareStatement(String sql)
Creates a new instance of SPIPreparedStatement . |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys)
Return of auto generated keys is not yet supported. |
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes)
Return of auto generated keys is not yet supported. |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
Creates a new instance of SPIPreparedStatement . |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
Creates a new instance of SPIPreparedStatement . |
PreparedStatement |
prepareStatement(String sql,
String[] columnNames)
Return of auto generated keys is not yet supported. |
void |
releaseSavepoint(Savepoint savepoint)
|
void |
rollback()
It's not legal to do a rollback within a call from SQL. |
void |
rollback(Savepoint savepoint)
|
void |
setAutoCommit(boolean autoCommit)
It is assumed that an SPI call is under transaction control. |
void |
setCatalog(String catalog)
The catalog name cannot be set. |
void |
setHoldability(int holdability)
Change of holdability is not supported. |
void |
setReadOnly(boolean readOnly)
It is assumed that an inserts and updates can be performed using and SPIConnection. |
Savepoint |
setSavepoint()
|
Savepoint |
setSavepoint(String name)
|
void |
setTransactionIsolation(int level)
Change of transaction isolation level is not supported. |
void |
setTypeMap(Map map)
Type map is not yet implemented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] JDBC3_TYPE_NAMES
public static final int[] JDBC_TYPE_NUMBERS
Constructor Detail |
---|
public SPIConnection()
Method Detail |
---|
public static Connection getDefault() throws SQLException
SQLException
public int getHoldability() throws SQLException
ResultSet.CLOSE_CURSORS_AT_COMMIT
. Cursors are actually
closed when a function returns to SQL.
getHoldability
in interface Connection
SQLException
public int getTransactionIsolation() throws SQLException
Connection.TRANSACTION_READ_COMMITTED
.
getTransactionIsolation
in interface Connection
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface Connection
SQLException
- indicating that this feature is not supported.public void close() throws SQLException
close
in interface Connection
SQLException
public void commit() throws SQLException
commit
in interface Connection
SQLException
- indicating that this feature is not supported.public void rollback() throws SQLException
rollback
in interface Connection
SQLException
- indicating that this feature is not supported.public boolean getAutoCommit() throws SQLException
false
.
getAutoCommit
in interface Connection
SQLException
public boolean isClosed() throws SQLException
isClosed
in interface Connection
SQLException
public boolean isReadOnly() throws SQLException
false
. The SPIConnection is not real-only.
isReadOnly
in interface Connection
SQLException
public void setHoldability(int holdability) throws SQLException
setHoldability
in interface Connection
SQLException
- indicating that this feature is not supported.public void setTransactionIsolation(int level) throws SQLException
setTransactionIsolation
in interface Connection
SQLException
- indicating that this feature is not supported.public void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
SQLException
- indicating that this feature is not supported.public void setReadOnly(boolean readOnly) throws SQLException
setReadOnly
in interface Connection
SQLException
- indicating that this feature is not supported.public String getCatalog() throws SQLException
null
.
getCatalog
in interface Connection
SQLException
public void setCatalog(String catalog) throws SQLException
setCatalog
in interface Connection
SQLException
- indicating that this feature is not supported.public DatabaseMetaData getMetaData() throws SQLException
getMetaData
in interface Connection
SQLException
- indicating that this feature is not supported.public SQLWarning getWarnings() throws SQLException
getWarnings
in interface Connection
SQLException
- indicating that this feature is not supported.public void releaseSavepoint(Savepoint savepoint) throws SQLException
releaseSavepoint
in interface Connection
SQLException
public void rollback(Savepoint savepoint) throws SQLException
rollback
in interface Connection
SQLException
public Statement createStatement() throws SQLException
SPIStatement
.
createStatement
in interface Connection
SQLException
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
SPIStatement
.
createStatement
in interface Connection
SQLException
- if the resultSetType
differs from ResultSet.TYPE_FORWARD_ONLY
or if the resultSetConcurrencty
differs from ResultSet.CONCUR_READ_ONLY
.public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SPIStatement
.
createStatement
in interface Connection
SQLException
- if the resultSetType
differs from ResultSet.TYPE_FORWARD_ONLY
, if the resultSetConcurrencty
differs from ResultSet.CONCUR_READ_ONLY
, or if the
resultSetHoldability differs from ResultSet.CLOSE_CURSORS_AT_COMMIT
.public Map getTypeMap() throws SQLException
null
. Type map is not yet imlemented.
getTypeMap
in interface Connection
SQLException
public void setTypeMap(Map map) throws SQLException
setTypeMap
in interface Connection
SQLException
- indicating that this feature is not supported.public String nativeSQL(String sql) throws SQLException
nativeSQL
in interface Connection
SQLException
public String nativeSQL(String sql, int[] paramCountRet)
public CallableStatement prepareCall(String sql) throws SQLException
prepareCall
in interface Connection
SQLException
- indicating that this feature is not supported.public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall
in interface Connection
SQLException
- indicating that this feature is not supported.public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall
in interface Connection
SQLException
- indicating that this feature is not supported.public PreparedStatement prepareStatement(String sql) throws SQLException
SPIPreparedStatement
.
prepareStatement
in interface Connection
SQLException
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement
in interface Connection
SQLException
- indicating that this feature is not supported.public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SPIPreparedStatement
.
prepareStatement
in interface Connection
SQLException
- if the resultSetType
differs from ResultSet.TYPE_FORWARD_ONLY
or if the resultSetConcurrencty
differs from ResultSet.CONCUR_READ_ONLY
.public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SPIPreparedStatement
.
prepareStatement
in interface Connection
SQLException
- if the resultSetType
differs from ResultSet.TYPE_FORWARD_ONLY
, if the resultSetConcurrencty
differs from ResultSet.CONCUR_READ_ONLY
, or if the
resultSetHoldability differs from ResultSet.CLOSE_CURSORS_AT_COMMIT
.public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement
in interface Connection
SQLException
- indicating that this feature is not supported.public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement
in interface Connection
SQLException
- indicating that this feature is not supported.public Savepoint setSavepoint() throws SQLException
setSavepoint
in interface Connection
SQLException
public Savepoint setSavepoint(String name) throws SQLException
setSavepoint
in interface Connection
SQLException
public int[] getVersionNumber() throws SQLException
SQLException
public int getSQLType(String pgTypeName)
public int getSQLType(Oid oid) throws SQLException
SQLException
public String getPGType(Oid oid) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |