public class PreparedStatementWrapper extends Object implements PreparedStatement
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected PreparedStatement |
original |
protected String |
sql |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| コンストラクタと説明 |
|---|
PreparedStatementWrapper(PreparedStatement original,
String sql) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addBatch() |
void |
addBatch(String sql) |
void |
cancel() |
void |
clearBatch() |
void |
clearParameters() |
void |
clearWarnings() |
void |
close() |
void |
closeOnCompletion() |
boolean |
execute() |
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() |
ResultSet |
executeQuery(String sql) |
int |
executeUpdate() |
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() |
ResultSetMetaData |
getMetaData() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int current) |
ParameterMetaData |
getParameterMetaData() |
int |
getQueryTimeout() |
ResultSet |
getResultSet() |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
int |
getUpdateCount() |
SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(Class iface) |
void |
setArray(int i,
Array x) |
void |
setAsciiStream(int parameterIndex,
InputStream x) |
void |
setAsciiStream(int parameterIndex,
InputStream x,
int length) |
void |
setAsciiStream(int parameterIndex,
InputStream x,
long length) |
void |
setBigDecimal(int parameterIndex,
BigDecimal x) |
void |
setBinaryStream(int parameterIndex,
InputStream x) |
void |
setBinaryStream(int parameterIndex,
InputStream x,
int length) |
void |
setBinaryStream(int parameterIndex,
InputStream x,
long length) |
void |
setBlob(int i,
Blob x) |
void |
setBlob(int parameterIndex,
InputStream inputStream) |
void |
setBlob(int parameterIndex,
InputStream inputStream,
long length) |
void |
setBoolean(int parameterIndex,
boolean x) |
void |
setByte(int parameterIndex,
byte x) |
void |
setBytes(int parameterIndex,
byte[] x) |
void |
setCharacterStream(int parameterIndex,
Reader reader) |
void |
setCharacterStream(int parameterIndex,
Reader reader,
int length) |
void |
setCharacterStream(int parameterIndex,
Reader reader,
long length) |
void |
setClob(int i,
Clob x) |
void |
setClob(int parameterIndex,
Reader reader) |
void |
setClob(int parameterIndex,
Reader reader,
long length) |
void |
setCursorName(String name) |
void |
setDate(int parameterIndex,
Date x) |
void |
setDate(int parameterIndex,
Date x,
Calendar cal) |
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 |
setNCharacterStream(int parameterIndex,
Reader value) |
void |
setNCharacterStream(int parameterIndex,
Reader value,
long length) |
void |
setNClob(int parameterIndex,
NClob value) |
void |
setNClob(int parameterIndex,
Reader reader) |
void |
setNClob(int parameterIndex,
Reader reader,
long length) |
void |
setNString(int parameterIndex,
String value) |
void |
setNull(int parameterIndex,
int sqlType) |
void |
setNull(int paramIndex,
int sqlType,
String typeName) |
void |
setObject(int parameterIndex,
Object x) |
void |
setObject(int parameterIndex,
Object x,
int targetSqlType) |
void |
setObject(int parameterIndex,
Object x,
int targetSqlType,
int scale) |
void |
setPoolable(boolean poolable) |
void |
setQueryTimeout(int seconds) |
void |
setRef(int i,
Ref x) |
void |
setRowId(int parameterIndex,
RowId x) |
void |
setShort(int parameterIndex,
short x) |
void |
setSQLXML(int parameterIndex,
SQLXML xmlObject) |
void |
setString(int parameterIndex,
String x) |
void |
setTime(int parameterIndex,
Time x) |
void |
setTime(int parameterIndex,
Time x,
Calendar cal) |
void |
setTimestamp(int parameterIndex,
Timestamp x) |
void |
setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal) |
void |
setUnicodeStream(int parameterIndex,
InputStream x,
int length)
非推奨です。
|
void |
setURL(int parameterIndex,
URL x) |
String |
toString() |
Object |
unwrap(Class iface) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecuteLargeUpdate, setObject, setObjectexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowsprotected final PreparedStatement original
protected final String sql
public PreparedStatementWrapper(PreparedStatement original, String sql)
public ResultSet executeQuery() throws SQLException
executeQuery インタフェース内 PreparedStatementSQLExceptionpublic int executeUpdate()
throws SQLException
executeUpdate インタフェース内 PreparedStatementSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData インタフェース内 PreparedStatementSQLExceptionpublic ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData インタフェース内 PreparedStatementSQLExceptionpublic int getMaxRows()
throws SQLException
getMaxRows インタフェース内 StatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout インタフェース内 StatementSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings インタフェース内 StatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet インタフェース内 StatementSQLExceptionpublic int getUpdateCount()
throws SQLException
getUpdateCount インタフェース内 StatementSQLExceptionpublic boolean getMoreResults()
throws SQLException
getMoreResults インタフェース内 StatementSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection インタフェース内 StatementSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize インタフェース内 StatementSQLExceptionpublic int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency インタフェース内 StatementSQLExceptionpublic int getResultSetType()
throws SQLException
getResultSetType インタフェース内 StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch インタフェース内 StatementSQLExceptionpublic Connection getConnection() throws SQLException
getConnection インタフェース内 StatementSQLExceptionpublic boolean getMoreResults(int current)
throws SQLException
getMoreResults インタフェース内 StatementSQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys インタフェース内 StatementSQLExceptionpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate インタフェース内 StatementSQLExceptionpublic int getResultSetHoldability()
throws SQLException
getResultSetHoldability インタフェース内 StatementSQLExceptionpublic void addBatch()
throws SQLException
addBatch インタフェース内 PreparedStatementSQLExceptionpublic void addBatch(String sql) throws SQLException
addBatch インタフェース内 StatementSQLExceptionpublic void cancel()
throws SQLException
cancel インタフェース内 StatementSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch インタフェース内 StatementSQLExceptionpublic void clearParameters()
throws SQLException
clearParameters インタフェース内 PreparedStatementSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings インタフェース内 StatementSQLExceptionpublic void close()
throws SQLException
close インタフェース内 AutoCloseableclose インタフェース内 StatementSQLExceptionpublic boolean execute()
throws SQLException
execute インタフェース内 PreparedStatementSQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute インタフェース内 StatementSQLExceptionpublic boolean execute(String sql, int[] columnIndexes) throws SQLException
execute インタフェース内 StatementSQLExceptionpublic boolean execute(String sql, String[] columnNames) throws SQLException
execute インタフェース内 StatementSQLExceptionpublic boolean execute(String sql) throws SQLException
execute インタフェース内 StatementSQLExceptionpublic ResultSet executeQuery(String sql) throws SQLException
executeQuery インタフェース内 StatementSQLExceptionpublic int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate インタフェース内 StatementSQLExceptionpublic int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate インタフェース内 StatementSQLExceptionpublic int executeUpdate(String sql) throws SQLException
executeUpdate インタフェース内 StatementSQLExceptionpublic int getMaxFieldSize()
throws SQLException
getMaxFieldSize インタフェース内 StatementSQLExceptionpublic void setArray(int i,
Array x)
throws SQLException
setArray インタフェース内 PreparedStatementSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
setAsciiStream インタフェース内 PreparedStatementSQLExceptionpublic void setBigDecimal(int parameterIndex,
BigDecimal x)
throws SQLException
setBigDecimal インタフェース内 PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
setBinaryStream インタフェース内 PreparedStatementSQLExceptionpublic void setBlob(int i,
Blob x)
throws SQLException
setBlob インタフェース内 PreparedStatementSQLExceptionpublic void setBoolean(int parameterIndex,
boolean x)
throws SQLException
setBoolean インタフェース内 PreparedStatementSQLExceptionpublic void setByte(int parameterIndex,
byte x)
throws SQLException
setByte インタフェース内 PreparedStatementSQLExceptionpublic void setBytes(int parameterIndex,
byte[] x)
throws SQLException
setBytes インタフェース内 PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader,
int length)
throws SQLException
setCharacterStream インタフェース内 PreparedStatementSQLExceptionpublic void setClob(int i,
Clob x)
throws SQLException
setClob インタフェース内 PreparedStatementSQLExceptionpublic void setCursorName(String name) throws SQLException
setCursorName インタフェース内 StatementSQLExceptionpublic void setDate(int parameterIndex,
Date x,
Calendar cal)
throws SQLException
setDate インタフェース内 PreparedStatementSQLExceptionpublic void setDate(int parameterIndex,
Date x)
throws SQLException
setDate インタフェース内 PreparedStatementSQLExceptionpublic void setDouble(int parameterIndex,
double x)
throws SQLException
setDouble インタフェース内 PreparedStatementSQLExceptionpublic void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing インタフェース内 StatementSQLExceptionpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection インタフェース内 StatementSQLExceptionpublic void setFetchSize(int rows)
throws SQLException
setFetchSize インタフェース内 StatementSQLExceptionpublic void setFloat(int parameterIndex,
float x)
throws SQLException
setFloat インタフェース内 PreparedStatementSQLExceptionpublic void setInt(int parameterIndex,
int x)
throws SQLException
setInt インタフェース内 PreparedStatementSQLExceptionpublic void setLong(int parameterIndex,
long x)
throws SQLException
setLong インタフェース内 PreparedStatementSQLExceptionpublic void setMaxFieldSize(int max)
throws SQLException
setMaxFieldSize インタフェース内 StatementSQLExceptionpublic void setMaxRows(int max)
throws SQLException
setMaxRows インタフェース内 StatementSQLExceptionpublic void setNull(int paramIndex,
int sqlType,
String typeName)
throws SQLException
setNull インタフェース内 PreparedStatementSQLExceptionpublic void setNull(int parameterIndex,
int sqlType)
throws SQLException
setNull インタフェース内 PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x,
int targetSqlType,
int scale)
throws SQLException
setObject インタフェース内 PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x,
int targetSqlType)
throws SQLException
setObject インタフェース内 PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x)
throws SQLException
setObject インタフェース内 PreparedStatementSQLExceptionpublic void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout インタフェース内 StatementSQLExceptionpublic void setRef(int i,
Ref x)
throws SQLException
setRef インタフェース内 PreparedStatementSQLExceptionpublic void setShort(int parameterIndex,
short x)
throws SQLException
setShort インタフェース内 PreparedStatementSQLExceptionpublic void setString(int parameterIndex,
String x)
throws SQLException
setString インタフェース内 PreparedStatementSQLExceptionpublic void setTime(int parameterIndex,
Time x,
Calendar cal)
throws SQLException
setTime インタフェース内 PreparedStatementSQLExceptionpublic void setTime(int parameterIndex,
Time x)
throws SQLException
setTime インタフェース内 PreparedStatementSQLExceptionpublic void setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal)
throws SQLException
setTimestamp インタフェース内 PreparedStatementSQLExceptionpublic void setTimestamp(int parameterIndex,
Timestamp x)
throws SQLException
setTimestamp インタフェース内 PreparedStatementSQLExceptionpublic void setUnicodeStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
setUnicodeStream インタフェース内 PreparedStatementSQLExceptionpublic void setURL(int parameterIndex,
URL x)
throws SQLException
setURL インタフェース内 PreparedStatementSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed インタフェース内 StatementSQLExceptionpublic void setPoolable(boolean poolable)
throws SQLException
setPoolable インタフェース内 StatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable インタフェース内 StatementSQLExceptionpublic void closeOnCompletion()
throws SQLException
closeOnCompletion インタフェース内 StatementSQLExceptionpublic boolean isCloseOnCompletion()
throws SQLException
isCloseOnCompletion インタフェース内 StatementSQLExceptionpublic Object unwrap(Class iface) throws SQLException
unwrap インタフェース内 WrapperSQLExceptionpublic boolean isWrapperFor(Class iface) throws SQLException
isWrapperFor インタフェース内 WrapperSQLExceptionpublic void setRowId(int parameterIndex,
RowId x)
throws SQLException
setRowId インタフェース内 PreparedStatementSQLExceptionpublic void setNString(int parameterIndex,
String value)
throws SQLException
setNString インタフェース内 PreparedStatementSQLExceptionpublic void setNCharacterStream(int parameterIndex,
Reader value,
long length)
throws SQLException
setNCharacterStream インタフェース内 PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
NClob value)
throws SQLException
setNClob インタフェース内 PreparedStatementSQLExceptionpublic void setClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
setClob インタフェース内 PreparedStatementSQLExceptionpublic void setBlob(int parameterIndex,
InputStream inputStream,
long length)
throws SQLException
setBlob インタフェース内 PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
setNClob インタフェース内 PreparedStatementSQLExceptionpublic void setSQLXML(int parameterIndex,
SQLXML xmlObject)
throws SQLException
setSQLXML インタフェース内 PreparedStatementSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
setAsciiStream インタフェース内 PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
setBinaryStream インタフェース内 PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader,
long length)
throws SQLException
setCharacterStream インタフェース内 PreparedStatementSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x)
throws SQLException
setAsciiStream インタフェース内 PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x)
throws SQLException
setBinaryStream インタフェース内 PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader)
throws SQLException
setCharacterStream インタフェース内 PreparedStatementSQLExceptionpublic void setNCharacterStream(int parameterIndex,
Reader value)
throws SQLException
setNCharacterStream インタフェース内 PreparedStatementSQLExceptionpublic void setClob(int parameterIndex,
Reader reader)
throws SQLException
setClob インタフェース内 PreparedStatementSQLExceptionpublic void setBlob(int parameterIndex,
InputStream inputStream)
throws SQLException
setBlob インタフェース内 PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
Reader reader)
throws SQLException
setNClob インタフェース内 PreparedStatementSQLExceptionCopyright © 2015 The DBFlute Project. All rights reserved.