パッケージ org.nkjmlab.sorm4j
インタフェース OrmUpdater
- 既知のサブインタフェースのリスト:
Orm
,OrmConnection
,OrmTransaction
,Sorm
public interface OrmUpdater
A 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
-
メソッドの概要
修飾子とタイプメソッド説明<T> int[]
Deletes objects from the table corresponding to the class of the given objects.<T> int
delete
(T object) Deletes an object from the table corresponding to the class of the given objects.<T> int[]
delete
(T... objects) Deletes objects.<T> int
Deletes all objects on the table corresponding to the given class.int
deleteAllOn
(String tableName) Deletes all objects on the table corresponding to the given table name.<T> int[]
Deletes objects on the table of the given table name.<T> int
Deletes object on the table of the given table name.<T> int[]
Deletes objects on the table of the given table name.<T> int[]
Inserts objects on the table corresponding to the class of the given objects.<T> int
insert
(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[]
Inserts objects and get the last insert result.<T> int
Inserts an object and get the insert result.<T> int[]
Inserts objects and get the last insert result.<T> int[]
Merges by objects on the table corresponding to the class of the given objects.<T> int
merge
(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[]
Merges by objects on the table corresponding to the given table name.<T> int
Merges by an object on the table corresponding to the given table name.<T> int[]
Merges by objects on the table corresponding to the given table name.<T> int[]
Updates by objects on the table corresponding to the class of the given objects.<T> int
update
(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[]
Updates by objects on the table corresponding to the given table name.<T> int
Updates by an object on the table corresponding to the given table name.<T> int[]
Updates by objects on the table corresponding to the given table name.
-
メソッドの詳細
-
delete
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
Deletes objects on the table of the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
deleteOn
Deletes object on the table of the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-object
-- 戻り値:
-
deleteOn
Deletes objects on the table of the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
deleteAll
Deletes all objects on the table corresponding to the given class.- 型パラメータ:
T
-- パラメータ:
objectClass
-- 戻り値:
-
deleteAllOn
Deletes all objects on the table corresponding to the given table name.- パラメータ:
tableName
-- 戻り値:
-
insert
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
Inserts objects and get the last insert result.- 型パラメータ:
T
-- パラメータ:
objects
-- 戻り値:
-
insertAndGet
Inserts an object and get the result.- 型パラメータ:
T
-- パラメータ:
object
-- 戻り値:
-
insertAndGet
Inserts objects and get the last insert result.- 型パラメータ:
T
-- パラメータ:
objects
-- 戻り値:
-
insertAndGetOn
Inserts objects and get the last insert result.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
insertAndGetOn
Inserts an object and get the insert result.- 型パラメータ:
T
-- パラメータ:
tableName
-object
-- 戻り値:
-
insertAndGetOn
Inserts objects and get the last insert result.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
insertOn
Inserts objects and get the last insert result.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
insertOn
Inserts an object and get the insert result.- 型パラメータ:
T
-- パラメータ:
tableName
-object
-- 戻り値:
-
insertOn
Inserts objects and get the last insert result.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
merge
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
Merges by objects on the table corresponding to the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
mergeOn
Merges by an object on the table corresponding to the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-object
-- 戻り値:
-
mergeOn
Merges by objects on the table corresponding to the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
update
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
Updates by objects on the table corresponding to the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-
updateOn
Updates by an object on the table corresponding to the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-object
-- 戻り値:
-
updateOn
Updates by objects on the table corresponding to the given table name.- 型パラメータ:
T
-- パラメータ:
tableName
-objects
-- 戻り値:
-