パッケージ com.handywedge.db
インタフェース FWStatement
-
- すべてのスーパーインタフェース:
AutoCloseable
- 既知のサブインタフェースのリスト:
FWCallableStatement,FWFullCallableStatement,FWFullPreparedStatement,FWFullStatement,FWPreparedStatement
public interface FWStatement extends AutoCloseable
Statementのラッパーインターフェースです。
DBへアクセスを行うにはFWConnectionManagerからFWConnectionインスタンスを取得してアクセスします。- 関連項目:
FWConnectionManager,Statement
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static intCLOSE_ALL_RESULTSstatic intCLOSE_CURRENT_RESULTstatic intEXECUTE_FAILEDstatic intKEEP_CURRENT_RESULTstatic intNO_GENERATED_KEYSstatic intRETURN_GENERATED_KEYSstatic intSUCCESS_NO_INFO
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 voidaddBatch(String sql)voidclearBatch()voidclose()booleanexecute(String sql)booleanexecute(String sql, int autoGeneratedKeys)booleanexecute(String sql, int[] columnIndexes)booleanexecute(String sql, String[] columnNames)int[]executeBatch()long[]executeLargeBatch()longexecuteLargeUpdate(String sql)longexecuteLargeUpdate(String sql, int autoGeneratedKeys)longexecuteLargeUpdate(String sql, int[] columnIndexes)longexecuteLargeUpdate(String sql, String[] columnNames)FWResultSetexecuteQuery(String sql)intexecuteUpdate(String sql)intexecuteUpdate(String sql, int autoGeneratedKeys)intexecuteUpdate(String sql, int[] columnIndexes)intexecuteUpdate(String sql, String[] columnNames)FWResultSetgetGeneratedKeys()longgetLargeMaxRows()longgetLargeUpdateCount()intgetMaxFieldSize()intgetMaxRows()booleangetMoreResults()booleangetMoreResults(int current)intgetQueryTimeout()FWResultSetgetResultSet()intgetUpdateCount()booleanisClosed()voidsetEscapeProcessing(boolean enable)voidsetLargeMaxRows(long max)voidsetMaxFieldSize(int max)voidsetMaxRows(int max)voidsetQueryTimeout(int seconds)
-
-
-
フィールドの詳細
-
CLOSE_CURRENT_RESULT
static final int CLOSE_CURRENT_RESULT
- 関連項目:
- 定数フィールド値
-
KEEP_CURRENT_RESULT
static final int KEEP_CURRENT_RESULT
- 関連項目:
- 定数フィールド値
-
CLOSE_ALL_RESULTS
static final int CLOSE_ALL_RESULTS
- 関連項目:
- 定数フィールド値
-
SUCCESS_NO_INFO
static final int SUCCESS_NO_INFO
- 関連項目:
- 定数フィールド値
-
EXECUTE_FAILED
static final int EXECUTE_FAILED
- 関連項目:
- 定数フィールド値
-
RETURN_GENERATED_KEYS
static final int RETURN_GENERATED_KEYS
- 関連項目:
- 定数フィールド値
-
NO_GENERATED_KEYS
static final int NO_GENERATED_KEYS
- 関連項目:
- 定数フィールド値
-
-
メソッドの詳細
-
close
void close() throws SQLException- 定義:
closeインタフェース内AutoCloseable- 例外:
SQLException
-
isClosed
boolean isClosed() throws SQLException- 例外:
SQLException
-
executeQuery
FWResultSet executeQuery(String sql) throws SQLException
- 例外:
SQLException
-
executeUpdate
int executeUpdate(String sql) throws SQLException
- 例外:
SQLException
-
getMaxFieldSize
int getMaxFieldSize() throws SQLException- 例外:
SQLException
-
setMaxFieldSize
void setMaxFieldSize(int max) throws SQLException- 例外:
SQLException
-
getMaxRows
int getMaxRows() throws SQLException- 例外:
SQLException
-
setMaxRows
void setMaxRows(int max) throws SQLException- 例外:
SQLException
-
setEscapeProcessing
void setEscapeProcessing(boolean enable) throws SQLException- 例外:
SQLException
-
getQueryTimeout
int getQueryTimeout() throws SQLException- 例外:
SQLException
-
setQueryTimeout
void setQueryTimeout(int seconds) throws SQLException- 例外:
SQLException
-
execute
boolean execute(String sql) throws SQLException
- 例外:
SQLException
-
getResultSet
FWResultSet getResultSet() throws SQLException
- 例外:
SQLException
-
getUpdateCount
int getUpdateCount() throws SQLException- 例外:
SQLException
-
getMoreResults
boolean getMoreResults() throws SQLException- 例外:
SQLException
-
addBatch
void addBatch(String sql) throws SQLException
- 例外:
SQLException
-
clearBatch
void clearBatch() throws SQLException- 例外:
SQLException
-
executeBatch
int[] executeBatch() throws SQLException- 例外:
SQLException
-
getMoreResults
boolean getMoreResults(int current) throws SQLException- 例外:
SQLException
-
getGeneratedKeys
FWResultSet getGeneratedKeys() throws SQLException
- 例外:
SQLException
-
executeUpdate
int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
- 例外:
SQLException
-
executeUpdate
int executeUpdate(String sql, int[] columnIndexes) throws SQLException
- 例外:
SQLException
-
executeUpdate
int executeUpdate(String sql, String[] columnNames) throws SQLException
- 例外:
SQLException
-
execute
boolean execute(String sql, int autoGeneratedKeys) throws SQLException
- 例外:
SQLException
-
execute
boolean execute(String sql, int[] columnIndexes) throws SQLException
- 例外:
SQLException
-
execute
boolean execute(String sql, String[] columnNames) throws SQLException
- 例外:
SQLException
-
getLargeUpdateCount
long getLargeUpdateCount() throws SQLException- 例外:
SQLException
-
setLargeMaxRows
void setLargeMaxRows(long max) throws SQLException- 例外:
SQLException
-
getLargeMaxRows
long getLargeMaxRows() throws SQLException- 例外:
SQLException
-
executeLargeBatch
long[] executeLargeBatch() throws SQLException- 例外:
SQLException
-
executeLargeUpdate
long executeLargeUpdate(String sql) throws SQLException
- 例外:
SQLException
-
executeLargeUpdate
long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException
- 例外:
SQLException
-
executeLargeUpdate
long executeLargeUpdate(String sql, int[] columnIndexes) throws SQLException
- 例外:
SQLException
-
executeLargeUpdate
long executeLargeUpdate(String sql, String[] columnNames) throws SQLException
- 例外:
SQLException
-
-