|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.jdbc.SPIStatement
public class SPIStatement
Field Summary |
---|
Fields inherited from interface java.sql.Statement |
---|
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Constructor Summary | |
---|---|
SPIStatement(SPIConnection conn)
|
Method Summary | |
---|---|
void |
addBatch(String statement)
|
void |
cancel()
|
void |
clearBatch()
|
void |
clearWarnings()
|
void |
close()
|
boolean |
execute(String statement)
|
boolean |
execute(String statement,
int autoGeneratedKeys)
Return of auto generated keys is not yet supported. |
boolean |
execute(String statement,
int[] columnIndexes)
Return of auto generated keys is not yet supported. |
boolean |
execute(String statement,
String[] columnNames)
Return of auto generated keys is not yet supported. |
int[] |
executeBatch()
|
protected int |
executeBatchEntry(Object batchEntry)
|
protected boolean |
executePlan(ExecutionPlan plan,
Object[] paramValues)
|
ResultSet |
executeQuery(String statement)
|
int |
executeUpdate(String statement)
|
int |
executeUpdate(String statement,
int autoGeneratedKeys)
Return of auto generated keys is not yet supported. |
int |
executeUpdate(String statement,
int[] columnIndexes)
Return of auto generated keys is not yet supported. |
int |
executeUpdate(String statement,
String[] columnNames)
Return of auto generated keys is not yet supported. |
Connection |
getConnection()
Returns the Connection from that created this statement. |
int |
getFetchDirection()
|
int |
getFetchSize()
|
ResultSet |
getGeneratedKeys()
|
int |
getMaxFieldSize()
|
int |
getMaxRows()
|
boolean |
getMoreResults()
|
boolean |
getMoreResults(int current)
|
int |
getQueryTimeout()
|
ResultSet |
getResultSet()
|
int |
getResultSetConcurrency()
|
int |
getResultSetHoldability()
|
int |
getResultSetType()
|
int |
getUpdateCount()
|
SQLWarning |
getWarnings()
|
protected void |
internalAddBatch(Object batch)
|
void |
setCursorName(String cursorName)
|
void |
setEscapeProcessing(boolean enable)
|
void |
setFetchDirection(int direction)
Only ResultSet.FETCH_FORWARD is supported. |
void |
setFetchSize(int size)
|
void |
setMaxFieldSize(int size)
|
void |
setMaxRows(int rows)
|
void |
setQueryTimeout(int seconds)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SPIStatement(SPIConnection conn)
Method Detail |
---|
public void addBatch(String statement) throws SQLException
addBatch
in interface Statement
SQLException
public void cancel() throws SQLException
cancel
in interface Statement
SQLException
public void clearBatch() throws SQLException
clearBatch
in interface Statement
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface Statement
SQLException
public void close() throws SQLException
close
in interface Statement
SQLException
public boolean execute(String statement) throws SQLException
execute
in interface Statement
SQLException
protected boolean executePlan(ExecutionPlan plan, Object[] paramValues) throws SQLException
SQLException
public boolean execute(String statement, int autoGeneratedKeys) throws SQLException
execute
in interface Statement
SQLException
- indicating that this feature is not supported.public boolean execute(String statement, int[] columnIndexes) throws SQLException
execute
in interface Statement
SQLException
- indicating that this feature is not supported.public boolean execute(String statement, String[] columnNames) throws SQLException
execute
in interface Statement
SQLException
- indicating that this feature is not supported.public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
SQLException
public ResultSet executeQuery(String statement) throws SQLException
executeQuery
in interface Statement
SQLException
public int executeUpdate(String statement) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String statement, int autoGeneratedKeys) throws SQLException
executeUpdate
in interface Statement
SQLException
- indicating that this feature is not supported.public int executeUpdate(String statement, int[] columnIndexes) throws SQLException
executeUpdate
in interface Statement
SQLException
- indicating that this feature is not supported.public int executeUpdate(String statement, String[] columnNames) throws SQLException
executeUpdate
in interface Statement
SQLException
- indicating that this feature is not supported.public Connection getConnection() throws SQLException
getConnection
in interface Statement
SQLException
- if the statement is closed.public int getFetchDirection() throws SQLException
getFetchDirection
in interface Statement
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface Statement
SQLException
public ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys
in interface Statement
SQLException
public int getMaxFieldSize() throws SQLException
getMaxFieldSize
in interface Statement
SQLException
public int getMaxRows() throws SQLException
getMaxRows
in interface Statement
SQLException
public boolean getMoreResults() throws SQLException
getMoreResults
in interface Statement
SQLException
public boolean getMoreResults(int current) throws SQLException
getMoreResults
in interface Statement
SQLException
public int getQueryTimeout() throws SQLException
getQueryTimeout
in interface Statement
SQLException
public ResultSet getResultSet() throws SQLException
getResultSet
in interface Statement
SQLException
public int getResultSetConcurrency()
getResultSetConcurrency
in interface Statement
public int getResultSetHoldability() throws SQLException
getResultSetHoldability
in interface Statement
SQLException
public int getResultSetType()
getResultSetType
in interface Statement
public int getUpdateCount() throws SQLException
getUpdateCount
in interface Statement
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface Statement
SQLException
public void setCursorName(String cursorName) throws SQLException
setCursorName
in interface Statement
SQLException
public void setEscapeProcessing(boolean enable) throws SQLException
setEscapeProcessing
in interface Statement
SQLException
public void setFetchDirection(int direction) throws SQLException
ResultSet.FETCH_FORWARD
is supported.
setFetchDirection
in interface Statement
SQLException
- indicating that this feature is not supported
for other values on direction
.public void setFetchSize(int size) throws SQLException
setFetchSize
in interface Statement
SQLException
public void setMaxFieldSize(int size) throws SQLException
setMaxFieldSize
in interface Statement
SQLException
public void setMaxRows(int rows) throws SQLException
setMaxRows
in interface Statement
SQLException
public void setQueryTimeout(int seconds) throws SQLException
setQueryTimeout
in interface Statement
SQLException
protected void internalAddBatch(Object batch) throws SQLException
SQLException
protected int executeBatchEntry(Object batchEntry) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |