|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.jdbc.pool.Statement
Field Summary | |
weblogic.jdbc.common.internal.ConnectionEnv |
cc
|
Connection |
conn
|
java.lang.String |
key
|
protected boolean |
sqlParamLoggingEnabled
|
protected int |
sqlParamLogMaxLength
|
protected boolean |
sqlProfilingEnabled
|
java.sql.Statement |
stmt
|
protected weblogic.jdbc.common.internal.StatementProfile |
stmtProfile
|
Constructor Summary | |
Statement()
|
|
Statement(java.sql.Statement jstmt,
weblogic.jdbc.common.internal.ConnectionEnv aCc,
java.lang.String aKey,
Connection aConn)
|
Method Summary | |
void |
addBatch(java.lang.String sql)
|
void |
cancel()
|
void |
clearBatch()
|
void |
clearDefines()
|
void |
clearParameters()
|
void |
clearWarnings()
|
void |
close()
|
void |
closeWithKey(java.lang.String s)
|
int |
creationState()
|
void |
defineColumnType(int i,
int j)
|
void |
defineColumnType(int i,
int j,
int k)
|
void |
defineColumnType(int i,
int j,
java.lang.String s)
|
void |
describe()
|
boolean |
execute()
|
boolean |
execute(java.lang.String sql)
|
int[] |
executeBatch()
|
java.sql.ResultSet |
executeQuery(java.lang.String sql)
|
int |
executeUpdate()
jdk1.2 move to subclasses public java.sql.ResultSet executeQuery() throws SQLException { conn.checkIfClosed(); cc.checkIfEnabled(); current_rs = null; java.sql.ResultSet rs = ((java.sql.PreparedStatement)stmt).executeQuery(); cc.lastSuccessfulConnectionUse = System.currentTimeMillis(); if (rs == null) return null; ResultSetHolder rsh = new ResultSetHolder(rs); String rs_key = cc.addResultSet(rsh); current_rs = new ResultSet(rs, cc, rs_key, conn); return current_rs; } |
int |
executeUpdate(java.lang.String sql)
|
int |
executeWriteText(java.lang.String tableName,
java.lang.String columnName,
byte[] textptr,
boolean log,
byte[] in,
int offset,
int length)
|
int |
executeWriteText(java.lang.String tableName,
java.lang.String columnName,
byte[] textptr,
boolean log,
byte[] in,
int offset,
int length,
byte[] timestamp)
|
int |
executeWriteText(java.lang.String tableName,
java.lang.String columnName,
byte[] textptr,
boolean log,
java.io.InputStream in,
int length)
|
int |
executeWriteText(java.lang.String tableName,
java.lang.String columnName,
byte[] textptr,
boolean log,
java.io.InputStream in,
int length,
byte[] timestamp)
|
void |
finalize()
|
boolean |
getAutoRefetch()
|
java.math.BigDecimal |
getBigDecimal(int parameterIndex,
int scale)
|
java.lang.Object |
getBinds()
|
boolean |
getBoolean(int parameterIndex)
|
byte |
getByte(int parameterIndex)
|
byte[] |
getBytes(int parameterIndex)
|
java.sql.Connection |
getConnection()
|
java.sql.Date |
getDate(int parameterIndex)
|
java.lang.Object[] |
getDBDescription()
|
double |
getDouble(int parameterIndex)
|
int |
getFetchDirection()
|
int |
getFetchSize()
|
float |
getFloat(int parameterIndex)
|
int |
getInt(int parameterIndex)
|
long |
getLong(int parameterIndex)
|
int |
getMaxFieldSize()
|
int |
getMaxRows()
|
boolean |
getMoreResults()
|
java.lang.Object |
getObject(int parameterIndex)
|
java.lang.String |
getOriginalSql()
|
int |
getQueryTimeout()
|
java.sql.ResultSet |
getResultSet()
|
oracle.jdbc.driver.OracleResultSetCache |
getResultSetCache()
|
int |
getResultSetConcurrency()
|
int |
getResultSetType()
|
java.lang.String |
getRevisedSql()
|
int |
getRowPrefetch()
|
short |
getShort(int parameterIndex)
|
byte |
getSqlKind()
|
java.lang.String |
getString(int parameterIndex)
|
java.sql.Time |
getTime(int parameterIndex)
|
java.sql.Timestamp |
getTimestamp(int parameterIndex)
|
int |
getUpdateCount()
jdk1.2 move to subclasses public java.sql.ResultSet getResultSet() throws SQLException { conn.checkIfClosed(); cc.checkIfEnabled(); java.sql.ResultSet rs = stmt.getResultSet(); if (rs == null) return null; ResultSetHolder rsh = new ResultSetHolder(rs); String rs_key = cc.addResultSet(rsh); return new ResultSet(rs, cc, rs_key, conn); } |
java.sql.SQLWarning |
getWarnings()
|
protected void |
initMonitoring()
|
boolean |
is_value_null(boolean b,
int i)
|
void |
notify_close_rset()
|
void |
registerOutParameter(int parameterIndex,
int sqlType)
TC: for JDK1.2 override these in subclass PreparedStatement public java.sql.ResultSet executeQuery(String sql) throws SQLException { conn.checkIfClosed(); cc.checkIfEnabled(); current_rs = null; java.sql.ResultSet rs = ((java.sql.PreparedStatement)stmt).executeQuery(sql); cc.lastSuccessfulConnectionUse = System.currentTimeMillis(); if (rs == null) return null; ResultSetHolder rsh = new ResultSetHolder(rs); String rs_key = cc.addResultSet(rsh); current_rs = new ResultSet(rs, cc, rs_key, conn); return current_rs; } public int executeUpdate(String sql) throws SQLException { conn.checkIfClosed(); cc.checkIfEnabled(); current_rs = null; int i = ((java.sql.PreparedStatement)stmt).executeUpdate(sql); cc.lastSuccessfulConnectionUse = System.currentTimeMillis(); return i; } public boolean execute(String sql) throws SQLException { conn.checkIfClosed(); cc.checkIfEnabled(); current_rs = null; int i = ((java.sql.PreparedStatement)stmt).execute(sql); cc.lastSuccessfulConnectionUse = System.currentTimeMillis(); return i; } |
void |
registerOutParameter(int parameterIndex,
int sqlType,
int scale)
|
int |
sendBatch()
|
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
|
void |
setAutoRefetch(boolean b)
|
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
|
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length)
|
void |
setBoolean(int parameterIndex,
boolean x)
|
void |
setByte(int parameterIndex,
byte x)
|
void |
setBytes(int parameterIndex,
byte[] x)
|
void |
setCursorName(java.lang.String name)
|
void |
setDate(int parameterIndex,
java.sql.Date x)
|
void |
setDouble(int parameterIndex,
double x)
|
void |
setEscapeProcessing(boolean enable)
|
void |
setFetchDirection(int direction)
|
void |
setFetchSize(int rows)
|
void |
setFloat(int parameterIndex,
float x)
|
void |
setInt(int parameterIndex,
int x)
|
void |
setLong(int parameterIndex,
long x)
|
void |
setMaxFieldSize(int max)
|
void |
setMaxRows(int max)
|
void |
setNull(int parameterIndex,
int sqlType)
|
void |
setObject(int parameterIndex,
java.lang.Object x)
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType)
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType,
int scale)
|
void |
setQueryTimeout(int seconds)
|
void |
setResultSetCache(oracle.jdbc.driver.OracleResultSetCache c)
|
void |
setResultSetCache(oracle.jdbc.OracleResultSetCache c)
|
void |
setRowPrefetch(int i)
|
void |
setShort(int parameterIndex,
short x)
|
void |
setString(int parameterIndex,
java.lang.String x)
|
void |
setTime(int parameterIndex,
java.sql.Time x)
|
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x)
|
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length)
|
boolean |
wasNull()
|
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public weblogic.jdbc.common.internal.ConnectionEnv cc
public java.sql.Statement stmt
public java.lang.String key
public Connection conn
protected boolean sqlProfilingEnabled
protected boolean sqlParamLoggingEnabled
protected int sqlParamLogMaxLength
protected weblogic.jdbc.common.internal.StatementProfile stmtProfile
Constructor Detail |
public Statement()
public Statement(java.sql.Statement jstmt, weblogic.jdbc.common.internal.ConnectionEnv aCc, java.lang.String aKey, Connection aConn)
jstmt
- java.sql.StatementaCc
- ConnectionEnvaKey
- StringaConn
- weblogic.jdbc.pool.ConnectionMethod Detail |
public void finalize()
public void close() throws java.sql.SQLException
public void cancel() throws java.sql.SQLException
public void setCursorName(java.lang.String name) throws java.sql.SQLException
public int getMaxFieldSize() throws java.sql.SQLException
public void setMaxFieldSize(int max) throws java.sql.SQLException
public int getMaxRows() throws java.sql.SQLException
public void setMaxRows(int max) throws java.sql.SQLException
public int getQueryTimeout() throws java.sql.SQLException
public void setQueryTimeout(int seconds) throws java.sql.SQLException
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
public boolean execute(java.lang.String sql) throws java.sql.SQLException
public int getUpdateCount() throws java.sql.SQLException
public boolean getMoreResults() throws java.sql.SQLException
public void setEscapeProcessing(boolean enable) throws java.sql.SQLException
public boolean execute() throws java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
public void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException
public void setBoolean(int parameterIndex, boolean x) throws java.sql.SQLException
public void setByte(int parameterIndex, byte x) throws java.sql.SQLException
public void setShort(int parameterIndex, short x) throws java.sql.SQLException
public void setInt(int parameterIndex, int x) throws java.sql.SQLException
public void setLong(int parameterIndex, long x) throws java.sql.SQLException
public void setFloat(int parameterIndex, float x) throws java.sql.SQLException
public void setDouble(int parameterIndex, double x) throws java.sql.SQLException
public void setBytes(int parameterIndex, byte[] x) throws java.sql.SQLException
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws java.sql.SQLException
public void setString(int parameterIndex, java.lang.String x) throws java.sql.SQLException
public void setTime(int parameterIndex, java.sql.Time x) throws java.sql.SQLException
public void setDate(int parameterIndex, java.sql.Date x) throws java.sql.SQLException
public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws java.sql.SQLException
public void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
public void setBinaryStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scale) throws java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType) throws java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x) throws java.sql.SQLException
public void registerOutParameter(int parameterIndex, int sqlType) throws java.sql.SQLException
public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws java.sql.SQLException
public boolean wasNull() throws java.sql.SQLException
public java.lang.String getString(int parameterIndex) throws java.sql.SQLException
public boolean getBoolean(int parameterIndex) throws java.sql.SQLException
public byte getByte(int parameterIndex) throws java.sql.SQLException
public short getShort(int parameterIndex) throws java.sql.SQLException
public int getInt(int parameterIndex) throws java.sql.SQLException
public long getLong(int parameterIndex) throws java.sql.SQLException
public float getFloat(int parameterIndex) throws java.sql.SQLException
public double getDouble(int parameterIndex) throws java.sql.SQLException
public java.sql.Date getDate(int parameterIndex) throws java.sql.SQLException
public java.sql.Time getTime(int parameterIndex) throws java.sql.SQLException
public java.sql.Timestamp getTimestamp(int parameterIndex) throws java.sql.SQLException
public java.math.BigDecimal getBigDecimal(int parameterIndex, int scale) throws java.sql.SQLException
public byte[] getBytes(int parameterIndex) throws java.sql.SQLException
public java.lang.Object getObject(int parameterIndex) throws java.sql.SQLException
public int executeWriteText(java.lang.String tableName, java.lang.String columnName, byte[] textptr, boolean log, byte[] in, int offset, int length, byte[] timestamp) throws java.sql.SQLException
public int executeWriteText(java.lang.String tableName, java.lang.String columnName, byte[] textptr, boolean log, java.io.InputStream in, int length, byte[] timestamp) throws java.sql.SQLException
public int executeWriteText(java.lang.String tableName, java.lang.String columnName, byte[] textptr, boolean log, byte[] in, int offset, int length) throws java.sql.SQLException
public int executeWriteText(java.lang.String tableName, java.lang.String columnName, byte[] textptr, boolean log, java.io.InputStream in, int length) throws java.sql.SQLException
protected final void initMonitoring()
public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
sql
- Stringpublic int executeUpdate(java.lang.String sql) throws java.sql.SQLException
sql
- Stringpublic java.sql.ResultSet getResultSet() throws java.sql.SQLException
public void setFetchDirection(int direction) throws java.sql.SQLException
public int getFetchDirection() throws java.sql.SQLException
public void setFetchSize(int rows) throws java.sql.SQLException
public int getFetchSize() throws java.sql.SQLException
public int getResultSetConcurrency() throws java.sql.SQLException
public int getResultSetType() throws java.sql.SQLException
public void addBatch(java.lang.String sql) throws java.sql.SQLException
public void clearBatch() throws java.sql.SQLException
public int[] executeBatch() throws java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException
public java.lang.String getOriginalSql() throws java.sql.SQLException
public java.lang.String getRevisedSql() throws java.sql.SQLException
public boolean getAutoRefetch() throws java.sql.SQLException
public boolean is_value_null(boolean b, int i) throws java.sql.SQLException
public byte getSqlKind() throws java.sql.SQLException
public int creationState() throws java.sql.SQLException
public int getRowPrefetch() throws java.sql.SQLException
public int sendBatch() throws java.sql.SQLException
public void clearDefines() throws java.sql.SQLException
public void defineColumnType(int i, int j) throws java.sql.SQLException
public void defineColumnType(int i, int j, java.lang.String s) throws java.sql.SQLException
public void defineColumnType(int i, int j, int k) throws java.sql.SQLException
public void describe() throws java.sql.SQLException
public void notify_close_rset() throws java.sql.SQLException
public void setAutoRefetch(boolean b) throws java.sql.SQLException
public void setRowPrefetch(int i) throws java.sql.SQLException
public void closeWithKey(java.lang.String s) throws java.sql.SQLException
public java.lang.Object[] getDBDescription() throws java.sql.SQLException
public java.lang.Object getBinds() throws java.sql.SQLException
public oracle.jdbc.driver.OracleResultSetCache getResultSetCache() throws java.sql.SQLException
public void setResultSetCache(oracle.jdbc.driver.OracleResultSetCache c) throws java.sql.SQLException
public void setResultSetCache(oracle.jdbc.OracleResultSetCache c) throws java.sql.SQLException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |