com.spotfire.ws.im.ds.sql
Class StatementWrapper
java.lang.Object
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()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_stmt
protected Statement m_stmt
- The wrapped
Statement object.
StatementWrapper
public StatementWrapper(Statement stmt)
- Creates a new
StatementWrapper instance.
- Parameters:
stmt - the Statement to be wrapped
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.