@Published public interface SqlPStatement extends SqlStatement
PreparedStatement
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addBatch()
|
void |
clearParameters()
|
boolean |
execute()
|
ResultSetIterator |
executeQuery()
|
int |
executeUpdate()
|
int |
getFetchDirection()
|
ResultSet |
getGeneratedKeys()
|
ResultSetMetaData |
getMetaData()
|
boolean |
getMoreResults()
|
boolean |
getMoreResults(int current)
|
ResultSet |
getResultSet()
Statement.getResultSet() のラッパー。 |
int |
getResultSetConcurrency()
|
int |
getResultSetHoldability()
|
int |
getResultSetType()
|
SqlResultSet |
retrieve()
簡易検索機能。
|
SqlResultSet |
retrieve(int start,
int max)
簡易検索機能。
|
void |
setArray(int parameterIndex,
Array x)
|
void |
setAsciiStream(int parameterIndex,
InputStream x,
int length)
|
void |
setBigDecimal(int parameterIndex,
BigDecimal x)
|
void |
setBinaryStream(int parameterIndex,
InputStream x,
int length)
|
void |
setBlob(int parameterIndex,
Blob x)
|
void |
setBoolean(int parameterIndex,
boolean x)
|
void |
setByte(int parameterIndex,
byte x)
|
void |
setBytes(int parameterIndex,
byte[] x)
|
void |
setCharacterStream(int parameterIndex,
Reader reader,
int length)
|
void |
setClob(int parameterIndex,
Clob x)
|
void |
setDate(int parameterIndex,
Date x)
|
void |
setDate(int parameterIndex,
Date x,
Calendar cal)
|
void |
setDouble(int parameterIndex,
double x)
|
void |
setFetchDirection(int direction)
|
void |
setFloat(int parameterIndex,
float x)
|
void |
setInt(int parameterIndex,
int x)
|
void |
setLong(int parameterIndex,
long x)
|
void |
setNull(int parameterIndex,
int sqlType)
|
void |
setNull(int parameterIndex,
int sqlType,
String typeName)
|
void |
setObject(int parameterIndex,
Object x)
|
void |
setObject(int parameterIndex,
Object x,
int targetSqlType)
|
void |
setRef(int parameterIndex,
Ref x)
|
void |
setShort(int parameterIndex,
short x)
|
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 |
setURL(int parameterIndex,
URL x)
|
executeBatch, getBatchSize
SqlResultSet retrieve() throws SqlStatementException
#setMaxRows
で事前に設定した値は無視する。SqlStatementException
- SQL実行時にSQLException
が発生した場合。SqlResultSet retrieve(int start, int max) throws SqlStatementException
start
- 取得開始位置max
- 取得最大件数SqlStatementException
- SQL実行時にSQLException
が発生した場合。ResultSetIterator executeQuery() throws SqlStatementException
SqlStatementException
- SQL実行時にSQLException
が発生した場合。int executeUpdate() throws SqlStatementException
SqlStatementException
- SQL実行時にSQLException
が発生した場合。void setNull(int parameterIndex, int sqlType)
parameterIndex
- パラメータインデックスsqlType
- SQLタイプ(Types
)void setBoolean(int parameterIndex, boolean x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setByte(int parameterIndex, byte x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setShort(int parameterIndex, short x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setInt(int parameterIndex, int x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setLong(int parameterIndex, long x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setFloat(int parameterIndex, float x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setDouble(int parameterIndex, double x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setBigDecimal(int parameterIndex, BigDecimal x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setString(int parameterIndex, String x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setBytes(int parameterIndex, byte[] x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setDate(int parameterIndex, Date x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setTime(int parameterIndex, Time x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setTimestamp(int parameterIndex, Timestamp x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setAsciiStream(int parameterIndex, InputStream x, int length)
parameterIndex
- パラメータインデックスx
- パラメータlength
- ストリームのバイト数void setBinaryStream(int parameterIndex, InputStream x, int length)
parameterIndex
- パラメータインデックスx
- パラメータlength
- ストリームのバイト数void clearParameters()
void setObject(int parameterIndex, Object x, int targetSqlType)
parameterIndex
- パラメータインデックスx
- パラメータtargetSqlType
- SQLタイプ(java.sql.Types
)void setObject(int parameterIndex, Object x)
parameterIndex
- パラメータインデックスx
- パラメータboolean execute() throws SqlStatementException
ResultSet
オブジェクトの場合はtrue
。
更新カウントであるか、または結果がない場合はfalse
。SqlStatementException
- 例外発生時void addBatch()
void setCharacterStream(int parameterIndex, Reader reader, int length)
parameterIndex
- パラメータインデックスreader
- パラメータlength
- ストリームないの文字数void setRef(int parameterIndex, Ref x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setBlob(int parameterIndex, Blob x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setClob(int parameterIndex, Clob x)
parameterIndex
- パラメータインデックスx
- パラメータvoid setArray(int parameterIndex, Array x)
parameterIndex
- パラメータインデックスx
- パラメータResultSetMetaData getMetaData()
void setDate(int parameterIndex, Date x, Calendar cal)
parameterIndex
- パラメータインデックスx
- パラメータcal
- ドライバが日付を作成するために使用するCalendar
オブジェクトvoid setTime(int parameterIndex, Time x, Calendar cal)
parameterIndex
- パラメータインデックスx
- パラメータcal
- ドライバが日付を作成するために使用するCalendar
オブジェクトvoid setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
parameterIndex
- パラメータインデックスx
- パラメータcal
- ドライバが日付を作成するために使用するCalendar
オブジェクトvoid setNull(int parameterIndex, int sqlType, String typeName)
parameterIndex
- パラメータインデックスsqlType
- SQLタイプtypeName
- SQL ユーザー定義型の完全指定の名前。
パラメータがユーザー定義型でもRef
でもない場合は無視される。void setURL(int parameterIndex, URL x)
parameterIndex
- パラメータインデックスx
- パラメータResultSet getResultSet()
Statement.getResultSet()
のラッパー。ResultSet
オブジェクトとしての現在の結果。
更新カウントであるか、結果がない場合はnull
。boolean getMoreResults()
ResultSet
オブジェクトの場合はtrue
。
更新カウントであるか、結果がない場合はfalse
。void setFetchDirection(int direction)
direction
- 行を処理する初期方向int getFetchDirection()
int getResultSetConcurrency()
int getResultSetType()
boolean getMoreResults(int current)
current
- getResultSet メソッドを使用して取得した、
現在の ResultSet
オブジェクトに生じる状態を示す Statement 定数。
Statement.CLOSE_CURRENT_RESULT
、
Statement.KEEP_CURRENT_RESULT
、
Statement.CLOSE_ALL_RESULTS
のうちの 1 つ。ResultSet
オブジェクトの場合はtrue
。
更新カウントであるか、または結果がない場合はfalse
。ResultSet getGeneratedKeys()
ResultSet
オブジェクトint getResultSetHoldability()