com.spotfire.ws.im.ds.sql
Class StatementWrapper

java.lang.Object
  extended by com.spotfire.ws.im.ds.sql.StatementWrapper
Direct Known Subclasses:
PreparedStatementWrapper

public class StatementWrapper
extends Object

Use this class for creating wrapper classes around the Statement interface. The subclass can override the methods that need to show a different behaviour than the wrapped object.

Since:
7.2
See Also:
BasicSQLRuntime.createStatement()

Field Summary
protected  Statement m_stmt
          The wrapped Statement object.
 
Constructor Summary
StatementWrapper(Statement stmt)
          Creates a new StatementWrapper instance.
 
Method Summary
 void addBatch(String sql)
           
 void cancel()
           
 void clearBatch()
           
 void clearWarnings()
           
 void close()
           
 boolean execute(String sql)
           
 boolean execute(String sql, int autoGeneratedKeys)
           
 boolean execute(String sql, int[] columnIndexes)
           
 boolean execute(String sql, String[] columnNames)
           
 int[] executeBatch()
           
 ResultSet executeQuery(String sql)
           
 int executeUpdate(String sql)
           
 int executeUpdate(String sql, int autoGeneratedKeys)
           
 int executeUpdate(String sql, int[] columnIndexes)
           
 int executeUpdate(String sql, String[] columnNames)
           
 Connection getConnection()
           
 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()
           
 boolean isClosed()
           
 boolean isPoolable()
           
 boolean isWrapperFor(Class iface)
           
 void setCursorName(String name)
           
 void setEscapeProcessing(boolean enable)
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 void setMaxFieldSize(int max)
           
 void setMaxRows(int max)
           
 void setPoolable(boolean poolable)
           
 void setQueryTimeout(int seconds)
           
 Object unwrap(Class iface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_stmt

protected Statement m_stmt
The wrapped Statement object.

Constructor Detail

StatementWrapper

public StatementWrapper(Statement stmt)
Creates a new StatementWrapper instance.

Parameters:
stmt - the Statement to be wrapped
Method Detail

executeQuery

public ResultSet executeQuery(String sql)

executeUpdate

public int executeUpdate(String sql)

close

public void close()

getMaxFieldSize

public int getMaxFieldSize()

setMaxFieldSize

public void setMaxFieldSize(int max)

getMaxRows

public int getMaxRows()

setMaxRows

public void setMaxRows(int max)

setEscapeProcessing

public void setEscapeProcessing(boolean enable)

getQueryTimeout

public int getQueryTimeout()

setQueryTimeout

public void setQueryTimeout(int seconds)

cancel

public void cancel()

getWarnings

public SQLWarning getWarnings()

clearWarnings

public void clearWarnings()

setCursorName

public void setCursorName(String name)

execute

public boolean execute(String sql)

getResultSet

public ResultSet getResultSet()

getUpdateCount

public int getUpdateCount()

getMoreResults

public boolean getMoreResults()

setFetchDirection

public void setFetchDirection(int direction)

getFetchDirection

public int getFetchDirection()

setFetchSize

public void setFetchSize(int rows)

getFetchSize

public int getFetchSize()

getResultSetConcurrency

public int getResultSetConcurrency()

getResultSetType

public int getResultSetType()

addBatch

public void addBatch(String sql)

clearBatch

public void clearBatch()

executeBatch

public int[] executeBatch()

getConnection

public Connection getConnection()

getMoreResults

public boolean getMoreResults(int current)

getGeneratedKeys

public ResultSet getGeneratedKeys()

executeUpdate

public int executeUpdate(String sql,
                         int autoGeneratedKeys)

executeUpdate

public int executeUpdate(String sql,
                         int[] columnIndexes)

executeUpdate

public int executeUpdate(String sql,
                         String[] columnNames)

execute

public boolean execute(String sql,
                       int autoGeneratedKeys)

execute

public boolean execute(String sql,
                       int[] columnIndexes)

execute

public boolean execute(String sql,
                       String[] columnNames)

getResultSetHoldability

public int getResultSetHoldability()

isPoolable

public boolean isPoolable()

setPoolable

public void setPoolable(boolean poolable)

isClosed

public boolean isClosed()

isWrapperFor

public boolean isWrapperFor(Class iface)

unwrap

public Object unwrap(Class iface)


Copyright © 2000-2009 TIBCO Software Inc. All Rights Reserved.