パッケージ org.nkjmlab.sorm4j
インタフェース OrmUpdater
-
- 既知のサブインタフェースのリスト:
Orm,OrmConnection,OrmTransaction,Sorm
public interface OrmUpdaterA interface for updating database.
Merge methods execute a SQL sentence as MERGE INTO of the H2 grammar. This operation may be not working the other database system. See, MERGE INTO - Commands
- 作成者:
- nkjm
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 <T> int[]delete(List<T> objects)Deletes objects from the table corresponding to the class of the given objects.<T> intdelete(T object)Deletes an object from the table corresponding to the class of the given objects.<T> int[]delete(T... objects)Deletes objects.<T> intdeleteAll(Class<T> objectClass)Deletes all objects on the table corresponding to the given class.intdeleteAllOn(String tableName)Deletes all objects on the table corresponding to the given table name.<T> int[]deleteOn(String tableName, List<T> objects)Deletes objects on the table of the given table name.<T> intdeleteOn(String tableName, T object)Deletes object on the table of the given table name.<T> int[]deleteOn(String tableName, T... objects)Deletes objects on the table of the given table name.<T> int[]insert(List<T> objects)Inserts objects on the table corresponding to the class of the given objects.<T> intinsert(T object)Inserts object on the table corresponding to the class of the given object.<T> int[]insert(T... objects)Insert objects on the table corresponding to the class of the given objects.<T> InsertResult<T>insertAndGet(List<T> objects)Inserts objects and get the last insert result.<T> InsertResult<T>insertAndGet(T object)Inserts an object and get the result.<T> InsertResult<T>insertAndGet(T... objects)Inserts objects and get the last insert result.<T> InsertResult<T>insertAndGetOn(String tableName, List<T> objects)Inserts objects and get the last insert result.<T> InsertResult<T>insertAndGetOn(String tableName, T object)Inserts an object and get the insert result.<T> InsertResult<T>insertAndGetOn(String tableName, T... objects)Inserts objects and get the last insert result.<T> int[]insertOn(String tableName, List<T> objects)Inserts objects and get the last insert result.<T> intinsertOn(String tableName, T object)Inserts an object and get the insert result.<T> int[]insertOn(String tableName, T... objects)Inserts objects and get the last insert result.<T> int[]merge(List<T> objects)Merges by objects on the table corresponding to the class of the given objects.<T> intmerge(T object)Merges by an object on the table corresponding to the class of the given object.<T> int[]merge(T... objects)Merges by objects on the table corresponding to the class of the given objects.<T> int[]mergeOn(String tableName, List<T> objects)Merges by objects on the table corresponding to the given table name.<T> intmergeOn(String tableName, T object)Merges by an object on the table corresponding to the given table name.<T> int[]mergeOn(String tableName, T... objects)Merges by objects on the table corresponding to the given table name.<T> int[]update(List<T> objects)Updates by objects on the table corresponding to the class of the given objects.<T> intupdate(T object)Updates by an object on the table corresponding to the class of the given object.<T> int[]update(T... objects)Updates by objects on the table corresponding to the class of the given objects.<T> int[]updateOn(String tableName, List<T> objects)Updates by objects on the table corresponding to the given table name.<T> intupdateOn(String tableName, T object)Updates by an object on the table corresponding to the given table name.<T> int[]updateOn(String tableName, T... objects)Updates by objects on the table corresponding to the given table name.
-
-
-
メソッドの詳細
-
delete
<T> int[] delete(List<T> objects)
Deletes objects from the table corresponding to the class of the given objects.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
delete
<T> int delete(T object)
Deletes an object from the table corresponding to the class of the given objects.- 型パラメータ:
T-- パラメータ:
object-- 戻り値:
-
delete
<T> int[] delete(T... objects)
Deletes objects.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
deleteOn
<T> int[] deleteOn(String tableName, List<T> objects)
Deletes objects on the table of the given table name.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
deleteOn
<T> int deleteOn(String tableName, T object)
Deletes object on the table of the given table name.- 型パラメータ:
T-- パラメータ:
tableName-object-- 戻り値:
-
deleteOn
<T> int[] deleteOn(String tableName, T... objects)
Deletes objects on the table of the given table name.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
deleteAll
<T> int deleteAll(Class<T> objectClass)
Deletes all objects on the table corresponding to the given class.- 型パラメータ:
T-- パラメータ:
objectClass-- 戻り値:
-
deleteAllOn
int deleteAllOn(String tableName)
Deletes all objects on the table corresponding to the given table name.- パラメータ:
tableName-- 戻り値:
-
insert
<T> int[] insert(List<T> objects)
Inserts objects on the table corresponding to the class of the given objects.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
insert
<T> int insert(T object)
Inserts object on the table corresponding to the class of the given object.- 型パラメータ:
T-- パラメータ:
object-- 戻り値:
-
insert
<T> int[] insert(T... objects)
Insert objects on the table corresponding to the class of the given objects.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
insertAndGet
<T> InsertResult<T> insertAndGet(List<T> objects)
Inserts objects and get the last insert result.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
insertAndGet
<T> InsertResult<T> insertAndGet(T object)
Inserts an object and get the result.- 型パラメータ:
T-- パラメータ:
object-- 戻り値:
-
insertAndGet
<T> InsertResult<T> insertAndGet(T... objects)
Inserts objects and get the last insert result.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
insertAndGetOn
<T> InsertResult<T> insertAndGetOn(String tableName, List<T> objects)
Inserts objects and get the last insert result.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
insertAndGetOn
<T> InsertResult<T> insertAndGetOn(String tableName, T object)
Inserts an object and get the insert result.- 型パラメータ:
T-- パラメータ:
tableName-object-- 戻り値:
-
insertAndGetOn
<T> InsertResult<T> insertAndGetOn(String tableName, T... objects)
Inserts objects and get the last insert result.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
insertOn
<T> int[] insertOn(String tableName, List<T> objects)
Inserts objects and get the last insert result.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
insertOn
<T> int insertOn(String tableName, T object)
Inserts an object and get the insert result.- 型パラメータ:
T-- パラメータ:
tableName-object-- 戻り値:
-
insertOn
<T> int[] insertOn(String tableName, T... objects)
Inserts objects and get the last insert result.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
merge
<T> int[] merge(List<T> objects)
Merges by objects on the table corresponding to the class of the given objects.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
merge
<T> int merge(T object)
Merges by an object on the table corresponding to the class of the given object.- 型パラメータ:
T-- パラメータ:
object-- 戻り値:
-
merge
<T> int[] merge(T... objects)
Merges by objects on the table corresponding to the class of the given objects.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
mergeOn
<T> int[] mergeOn(String tableName, List<T> objects)
Merges by objects on the table corresponding to the given table name.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
mergeOn
<T> int mergeOn(String tableName, T object)
Merges by an object on the table corresponding to the given table name.- 型パラメータ:
T-- パラメータ:
tableName-object-- 戻り値:
-
mergeOn
<T> int[] mergeOn(String tableName, T... objects)
Merges by objects on the table corresponding to the given table name.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
update
<T> int[] update(List<T> objects)
Updates by objects on the table corresponding to the class of the given objects.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
update
<T> int update(T object)
Updates by an object on the table corresponding to the class of the given object.- 型パラメータ:
T-- パラメータ:
object-- 戻り値:
-
update
<T> int[] update(T... objects)
Updates by objects on the table corresponding to the class of the given objects.- 型パラメータ:
T-- パラメータ:
objects-- 戻り値:
-
updateOn
<T> int[] updateOn(String tableName, List<T> objects)
Updates by objects on the table corresponding to the given table name.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
updateOn
<T> int updateOn(String tableName, T object)
Updates by an object on the table corresponding to the given table name.- 型パラメータ:
T-- パラメータ:
tableName-object-- 戻り値:
-
updateOn
<T> int[] updateOn(String tableName, T... objects)
Updates by objects on the table corresponding to the given table name.- 型パラメータ:
T-- パラメータ:
tableName-objects-- 戻り値:
-
-