パッケージ jp.co.sds_corp.util.db
クラス DbPreparedStatement
- java.lang.Object
-
- jp.co.sds_corp.util.db.DbStatement
-
- jp.co.sds_corp.util.db.DbPreparedStatement
-
- すべての実装されたインタフェース:
AutoCloseable
,PreparedStatement
,Statement
,Wrapper
- 直系の既知のサブクラス:
DbCallableStatement
public class DbPreparedStatement extends DbStatement implements PreparedStatement
PreparedStatementのラッパクラスです。 prepared SQL実行時に、SQL文と動的パラメータをログファイルに出力します。- 作成者:
- 小見山 聡
-
-
フィールドの概要
-
インタフェースから継承されたフィールド java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 DbPreparedStatement(PreparedStatement stmt)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 推奨されていないメソッド 修飾子とタイプ メソッド 説明 void
addBatch()
void
clearParameters()
boolean
execute()
ResultSet
executeQuery()
int
executeUpdate()
ResultSetMetaData
getMetaData()
ParameterMetaData
getParameterMetaData()
void
setArray(int i, Array x)
void
setAsciiStream(int paramIndex, InputStream x)
void
setAsciiStream(int paramIndex, InputStream x, int length)
void
setAsciiStream(int paramIndex, InputStream x, long length)
void
setBigDecimal(int paramIndex, BigDecimal x)
void
setBinaryStream(int paramIndex, InputStream x)
void
setBinaryStream(int paramIndex, InputStream x, int length)
void
setBinaryStream(int paramIndex, InputStream x, long length)
void
setBlob(int paramIndex, InputStream x)
void
setBlob(int paramIndex, InputStream x, long length)
void
setBlob(int i, Blob x)
void
setBoolean(int paramIndex, boolean x)
void
setByte(int paramIndex, byte x)
void
setBytes(int paramIndex, byte[] x)
void
setCharacterStream(int i, Reader reader)
void
setCharacterStream(int paramIndex, Reader reader, int length)
void
setCharacterStream(int paramIndex, Reader reader, long length)
void
setClob(int i, Reader reader)
void
setClob(int i, Reader reader, long length)
void
setClob(int i, Clob x)
void
setDate(int paramIndex, Date x)
void
setDate(int paramIndex, Date x, Calendar cal)
void
setDouble(int paramIndex, double x)
void
setFloat(int paramIndex, float x)
void
setInt(int paramIndex, int x)
void
setLong(int paramIndex, long x)
void
setNCharacterStream(int i, Reader reader)
void
setNCharacterStream(int i, Reader reader, long length)
void
setNClob(int i, Reader reader)
void
setNClob(int i, Reader reader, long length)
void
setNClob(int i, NClob x)
void
setNString(int i, String x)
void
setNull(int paramIndex, int sqlType)
void
setNull(int paramIndex, int sqlType, String typeName)
void
setObject(int paramIndex, Object x)
void
setObject(int paramIndex, Object x, int targetSqlType)
void
setObject(int paramIndex, Object x, int targetSqlType, int scale)
void
setRef(int i, Ref x)
void
setRowId(int i, RowId x)
void
setShort(int paramIndex, short x)
void
setSQLXML(int i, SQLXML x)
void
setString(int paramIndex, String x)
void
setTime(int paramIndex, Time x)
void
setTime(int paramIndex, Time x, Calendar cal)
void
setTimestamp(int paramIndex, Timestamp x)
void
setTimestamp(int paramIndex, Timestamp x, Calendar cal)
void
setUnicodeStream(int paramIndex, InputStream x, int length)
推奨されていません。void
setURL(int i, URL url)
-
クラスから継承されたメソッド jp.co.sds_corp.util.db.DbStatement
addBatch, addParameter, cancel, clearBatch, clearParameter, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSqlOutput, isWrapperFor, parameterString, printParameter, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, setSql, setSqlOutput, unwrap
-
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
インタフェースから継承されたメソッド java.sql.PreparedStatement
executeLargeUpdate, setObject, setObject
-
インタフェースから継承されたメソッド java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
-
インタフェースから継承されたメソッド java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
コンストラクタの詳細
-
DbPreparedStatement
public DbPreparedStatement(PreparedStatement stmt)
-
-
メソッドの詳細
-
executeQuery
public ResultSet executeQuery() throws SQLException
- 定義:
executeQuery
インタフェース内PreparedStatement
- 例外:
SQLException
-
executeUpdate
public int executeUpdate() throws SQLException
- 定義:
executeUpdate
インタフェース内PreparedStatement
- 例外:
SQLException
-
setNull
public void setNull(int paramIndex, int sqlType, String typeName) throws SQLException
- 定義:
setNull
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBoolean
public void setBoolean(int paramIndex, boolean x) throws SQLException
- 定義:
setBoolean
インタフェース内PreparedStatement
- 例外:
SQLException
-
setByte
public void setByte(int paramIndex, byte x) throws SQLException
- 定義:
setByte
インタフェース内PreparedStatement
- 例外:
SQLException
-
setShort
public void setShort(int paramIndex, short x) throws SQLException
- 定義:
setShort
インタフェース内PreparedStatement
- 例外:
SQLException
-
setInt
public void setInt(int paramIndex, int x) throws SQLException
- 定義:
setInt
インタフェース内PreparedStatement
- 例外:
SQLException
-
setLong
public void setLong(int paramIndex, long x) throws SQLException
- 定義:
setLong
インタフェース内PreparedStatement
- 例外:
SQLException
-
setFloat
public void setFloat(int paramIndex, float x) throws SQLException
- 定義:
setFloat
インタフェース内PreparedStatement
- 例外:
SQLException
-
setDouble
public void setDouble(int paramIndex, double x) throws SQLException
- 定義:
setDouble
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBigDecimal
public void setBigDecimal(int paramIndex, BigDecimal x) throws SQLException
- 定義:
setBigDecimal
インタフェース内PreparedStatement
- 例外:
SQLException
-
setString
public void setString(int paramIndex, String x) throws SQLException
- 定義:
setString
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBytes
public void setBytes(int paramIndex, byte[] x) throws SQLException
- 定義:
setBytes
インタフェース内PreparedStatement
- 例外:
SQLException
-
setDate
public void setDate(int paramIndex, Date x) throws SQLException
- 定義:
setDate
インタフェース内PreparedStatement
- 例外:
SQLException
-
setTime
public void setTime(int paramIndex, Time x) throws SQLException
- 定義:
setTime
インタフェース内PreparedStatement
- 例外:
SQLException
-
setTimestamp
public void setTimestamp(int paramIndex, Timestamp x) throws SQLException
- 定義:
setTimestamp
インタフェース内PreparedStatement
- 例外:
SQLException
-
setAsciiStream
public void setAsciiStream(int paramIndex, InputStream x, int length) throws SQLException
- 定義:
setAsciiStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setUnicodeStream
public void setUnicodeStream(int paramIndex, InputStream x, int length) throws SQLException
推奨されていません。- 定義:
setUnicodeStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBinaryStream
public void setBinaryStream(int paramIndex, InputStream x, int length) throws SQLException
- 定義:
setBinaryStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
clearParameters
public void clearParameters() throws SQLException
- 定義:
clearParameters
インタフェース内PreparedStatement
- 例外:
SQLException
-
setObject
public void setObject(int paramIndex, Object x, int targetSqlType) throws SQLException
- 定義:
setObject
インタフェース内PreparedStatement
- 例外:
SQLException
-
setObject
public void setObject(int paramIndex, Object x) throws SQLException
- 定義:
setObject
インタフェース内PreparedStatement
- 例外:
SQLException
-
execute
public boolean execute() throws SQLException
- 定義:
execute
インタフェース内PreparedStatement
- 例外:
SQLException
-
addBatch
public void addBatch() throws SQLException
- 定義:
addBatch
インタフェース内PreparedStatement
- 例外:
SQLException
-
setCharacterStream
public void setCharacterStream(int paramIndex, Reader reader, int length) throws SQLException
- 定義:
setCharacterStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setRef
public void setRef(int i, Ref x) throws SQLException
- 定義:
setRef
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBlob
public void setBlob(int i, Blob x) throws SQLException
- 定義:
setBlob
インタフェース内PreparedStatement
- 例外:
SQLException
-
setClob
public void setClob(int i, Clob x) throws SQLException
- 定義:
setClob
インタフェース内PreparedStatement
- 例外:
SQLException
-
setArray
public void setArray(int i, Array x) throws SQLException
- 定義:
setArray
インタフェース内PreparedStatement
- 例外:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- 定義:
getMetaData
インタフェース内PreparedStatement
- 例外:
SQLException
-
setDate
public void setDate(int paramIndex, Date x, Calendar cal) throws SQLException
- 定義:
setDate
インタフェース内PreparedStatement
- 例外:
SQLException
-
setTime
public void setTime(int paramIndex, Time x, Calendar cal) throws SQLException
- 定義:
setTime
インタフェース内PreparedStatement
- 例外:
SQLException
-
setTimestamp
public void setTimestamp(int paramIndex, Timestamp x, Calendar cal) throws SQLException
- 定義:
setTimestamp
インタフェース内PreparedStatement
- 例外:
SQLException
-
setNull
public void setNull(int paramIndex, int sqlType) throws SQLException
- 定義:
setNull
インタフェース内PreparedStatement
- 例外:
SQLException
-
setURL
public void setURL(int i, URL url) throws SQLException
- 定義:
setURL
インタフェース内PreparedStatement
- 例外:
SQLException
-
getParameterMetaData
public ParameterMetaData getParameterMetaData() throws SQLException
- 定義:
getParameterMetaData
インタフェース内PreparedStatement
- 例外:
SQLException
-
setRowId
public void setRowId(int i, RowId x) throws SQLException
- 定義:
setRowId
インタフェース内PreparedStatement
- 例外:
SQLException
-
setNString
public void setNString(int i, String x) throws SQLException
- 定義:
setNString
インタフェース内PreparedStatement
- 例外:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int i, Reader reader, long length) throws SQLException
- 定義:
setNCharacterStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setNClob
public void setNClob(int i, NClob x) throws SQLException
- 定義:
setNClob
インタフェース内PreparedStatement
- 例外:
SQLException
-
setClob
public void setClob(int i, Reader reader, long length) throws SQLException
- 定義:
setClob
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBlob
public void setBlob(int paramIndex, InputStream x, long length) throws SQLException
- 定義:
setBlob
インタフェース内PreparedStatement
- 例外:
SQLException
-
setNClob
public void setNClob(int i, Reader reader, long length) throws SQLException
- 定義:
setNClob
インタフェース内PreparedStatement
- 例外:
SQLException
-
setSQLXML
public void setSQLXML(int i, SQLXML x) throws SQLException
- 定義:
setSQLXML
インタフェース内PreparedStatement
- 例外:
SQLException
-
setObject
public void setObject(int paramIndex, Object x, int targetSqlType, int scale) throws SQLException
- 定義:
setObject
インタフェース内PreparedStatement
- 例外:
SQLException
-
setAsciiStream
public void setAsciiStream(int paramIndex, InputStream x, long length) throws SQLException
- 定義:
setAsciiStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBinaryStream
public void setBinaryStream(int paramIndex, InputStream x, long length) throws SQLException
- 定義:
setBinaryStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setCharacterStream
public void setCharacterStream(int paramIndex, Reader reader, long length) throws SQLException
- 定義:
setCharacterStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setAsciiStream
public void setAsciiStream(int paramIndex, InputStream x) throws SQLException
- 定義:
setAsciiStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBinaryStream
public void setBinaryStream(int paramIndex, InputStream x) throws SQLException
- 定義:
setBinaryStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setCharacterStream
public void setCharacterStream(int i, Reader reader) throws SQLException
- 定義:
setCharacterStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int i, Reader reader) throws SQLException
- 定義:
setNCharacterStream
インタフェース内PreparedStatement
- 例外:
SQLException
-
setClob
public void setClob(int i, Reader reader) throws SQLException
- 定義:
setClob
インタフェース内PreparedStatement
- 例外:
SQLException
-
setBlob
public void setBlob(int paramIndex, InputStream x) throws SQLException
- 定義:
setBlob
インタフェース内PreparedStatement
- 例外:
SQLException
-
setNClob
public void setNClob(int i, Reader reader) throws SQLException
- 定義:
setNClob
インタフェース内PreparedStatement
- 例外:
SQLException
-
-