org.postgresql.pljava.jdbc

Class SPIStatement

Implemented Interfaces:
Statement
Known Direct Subclasses:
SPIPreparedStatement

public class SPIStatement
extends java.lang.Object
implements Statement

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, String[] columnNames)
Return of auto generated keys is not yet supported.
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.
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, String[] columnNames)
Return of auto generated keys is not yet supported.
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.
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)

Constructor Details

SPIStatement

public SPIStatement(SPIConnection conn)

Method Details

addBatch

public void addBatch(String statement)
            throws SQLException

cancel

public void cancel()
            throws SQLException

clearBatch

public void clearBatch()
            throws SQLException

clearWarnings

public void clearWarnings()
            throws SQLException

close

public void close()
            throws SQLException

execute

public boolean execute(String statement)
            throws SQLException

execute

public boolean execute(String statement,
                       String[] columnNames)
            throws SQLException
Return of auto generated keys is not yet supported.

execute

public boolean execute(String statement,
                       int autoGeneratedKeys)
            throws SQLException
Return of auto generated keys is not yet supported.

execute

public boolean execute(String statement,
                       int[] columnIndexes)
            throws SQLException
Return of auto generated keys is not yet supported.

executeBatch

public int[] executeBatch()
            throws SQLException

executeBatchEntry

protected int executeBatchEntry(Object batchEntry)
            throws SQLException

executePlan

protected boolean executePlan(ExecutionPlan plan,
                              Object[] paramValues)
            throws SQLException

executeQuery

public ResultSet executeQuery(String statement)
            throws SQLException

executeUpdate

public int executeUpdate(String statement)
            throws SQLException

executeUpdate

public int executeUpdate(String statement,
                         String[] columnNames)
            throws SQLException
Return of auto generated keys is not yet supported.

executeUpdate

public int executeUpdate(String statement,
                         int autoGeneratedKeys)
            throws SQLException
Return of auto generated keys is not yet supported.

executeUpdate

public int executeUpdate(String statement,
                         int[] columnIndexes)
            throws SQLException
Return of auto generated keys is not yet supported.

getConnection

public Connection getConnection()
            throws SQLException
Returns the Connection from that created this statement.

getFetchDirection

public int getFetchDirection()
            throws SQLException

getFetchSize

public int getFetchSize()
            throws SQLException

getGeneratedKeys

public ResultSet getGeneratedKeys()
            throws SQLException

getMaxFieldSize

public int getMaxFieldSize()
            throws SQLException

getMaxRows

public int getMaxRows()
            throws SQLException

getMoreResults

public boolean getMoreResults()
            throws SQLException

getMoreResults

public boolean getMoreResults(int current)
            throws SQLException

getQueryTimeout

public int getQueryTimeout()
            throws SQLException

getResultSet

public ResultSet getResultSet()
            throws SQLException

getResultSetConcurrency

public int getResultSetConcurrency()

getResultSetHoldability

public int getResultSetHoldability()
            throws SQLException

getResultSetType

public int getResultSetType()

getUpdateCount

public int getUpdateCount()
            throws SQLException

getWarnings

public SQLWarning getWarnings()
            throws SQLException

internalAddBatch

protected void internalAddBatch(Object batch)
            throws SQLException

setCursorName

public void setCursorName(String cursorName)
            throws SQLException

setEscapeProcessing

public void setEscapeProcessing(boolean enable)
            throws SQLException

setFetchDirection

public void setFetchDirection(int direction)
            throws SQLException
Only ResultSet.FETCH_FORWARD is supported.

setFetchSize

public void setFetchSize(int size)
            throws SQLException

setMaxFieldSize

public void setMaxFieldSize(int size)
            throws SQLException

setMaxRows

public void setMaxRows(int rows)
            throws SQLException

setQueryTimeout

public void setQueryTimeout(int seconds)
            throws SQLException

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT