public class Access
extends Object
コンストラクタと説明 |
---|
Access() |
修飾子とタイプ | メソッドと説明 |
---|---|
static int |
insert(String sql,
byte[]... bss)
DBに新規登録(重複キー判定)
|
static Object |
selectMultiple(String sql,
String entityName)
DBに複数レコード検索
|
static void |
selectPage(String sql,
IntSelPage selPage)
DBにページ単位レコード検索
|
static Object |
selectSingle(String sql,
String entityName)
DBに1レコード検索
|
static int |
update(String sql,
byte[]... bss)
DBに更新(重複キー判定しない)
|
static int |
updates(String[] sqls,
Integer[] effects,
byte[][]... bsss)
DBに複数新規登録及び更新(重複キー判定)
|
static Integer |
writeCsvFile(String sql,
String path,
String charset,
String head)
検索結果をCSVファイルに出力する。
|
public static int insert(String sql, byte[]... bss) throws Exception
sql
- 新規登録用sqlbss
- バイナリ文字列Exception
public static int update(String sql, byte[]... bss) throws Exception
sql
- 更新用sqlbss
- バイナリ文字列Exception
public static int updates(String[] sqls, Integer[] effects, byte[][]... bsss) throws Exception
sqls
- 更新用SQL文リストeffects
- 最小影響レコード数リスト(これらにより影響レコード数が未満の場合、エラーにする)bsss
- バイナリ文字列リストException
public static Object selectSingle(String sql, String entityName) throws Exception
sql
- 検索用sqlentityName
- 返却用フルパスエンティティクラス名Exception
public static Object selectMultiple(String sql, String entityName) throws Exception
sql
- 検索用sqlentityName
- 返却用フルパスエンティティクラス名Exception
public static void selectPage(String sql, IntSelPage selPage) throws Exception
sql
- 検索用sqlselPage
- 条件及び返却用エンティティクラスException
public static Integer writeCsvFile(String sql, String path, String charset, String head) throws Exception
sql
- 検索用sqlpath
- 出力ファイルフルパスcharset
- 出力ファイル文字コードhead
- 出力ファイル項目論理名(指定された場合のみ、1行目として出力)Exception