パッケージ org.nkjmlab.sorm4j.typed

インタフェース TypedOrmUpdater<T>

既知のサブインタフェースのリスト:
TypedOrm<T>, TypedOrmConnection<T>, TypedOrmTransaction<T>

public interface TypedOrmUpdater<T>
A typed interface for updating database.
作成者:
nkjm
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    int[]
    delete(List<T> objects)
    Deletes objects from the table corresponding to the class of the given objects.
    int
    delete(T object)
    Deletes an object from the table corresponding to the class of the given objects.
    int[]
    delete(T... objects)
    Deletes objects.
    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.
    int[]
    deleteOn(String tableName, List<T> objects)
    Deletes objects on the table of the given table name.
    int
    deleteOn(String tableName, T object)
    Deletes object on the table of the given table name.
    int[]
    deleteOn(String tableName, T... objects)
    Deletes objects on the table of the given table name.
    int[]
    insert(List<T> objects)
    Inserts objects on the table corresponding to the class of the given objects.
    int
    insert(T object)
    Inserts object on the table corresponding to the class of the given object.
    int[]
    insert(T... objects)
    Insert objects on the table corresponding to the class of the given objects.
    insertAndGet(List<T> objects)
    Inserts objects and get the last insert result.
    insertAndGet(T object)
    Inserts an object and get the result.
    insertAndGet(T... objects)
    Inserts objects and get the last insert result.
    insertAndGetOn(String tableName, List<T> objects)
    Inserts objects and get the last insert result.
    insertAndGetOn(String tableName, T object)
    Inserts an object and get the insert result.
    insertAndGetOn(String tableName, T... objects)
    Inserts objects and get the last insert result.
    int[]
    insertOn(String tableName, List<T> objects)
    Inserts objects and get the last insert result.
    int
    insertOn(String tableName, T object)
    Inserts an object and get the insert result.
    int[]
    insertOn(String tableName, T... objects)
    Inserts objects and get the last insert result.
    int[]
    merge(List<T> objects)
    Merges by objects on the table corresponding to the class of the given objects.
    int
    merge(T object)
    Merges by an object on the table corresponding to the class of the given object.
    int[]
    merge(T... objects)
    Merges by objects on the table corresponding to the class of the given objects.
    int[]
    mergeOn(String tableName, List<T> objects)
    Merges by objects on the table corresponding to the given table name.
    int
    mergeOn(String tableName, T object)
    Merges by an object on the table corresponding to the given table name.
    int[]
    mergeOn(String tableName, T... objects)
    Merges by objects on the table corresponding to the given table name.
    int[]
    update(List<T> objects)
    Updates by objects on the table corresponding to the class of the given objects.
    int
    update(T object)
    Updates by an object on the table corresponding to the class of the given object.
    int[]
    update(T... objects)
    Updates by objects on the table corresponding to the class of the given objects.
    int[]
    updateOn(String tableName, List<T> objects)
    Updates by objects on the table corresponding to the given table name.
    int
    updateOn(String tableName, T object)
    Updates by an object on the table corresponding to the given table name.
    int[]
    updateOn(String tableName, T... objects)
    Updates by objects on the table corresponding to the given table name.
  • メソッドの詳細

    • delete

      int[] delete(List<T> objects)
      Deletes objects from the table corresponding to the class of the given objects.
      パラメータ:
      objects -
      戻り値:
    • delete

      int delete(T object)
      Deletes an object from the table corresponding to the class of the given objects.
      パラメータ:
      object -
      戻り値:
    • delete

      int[] delete(T... objects)
      Deletes objects.
      パラメータ:
      objects -
      戻り値:
    • deleteOn

      int[] deleteOn(String tableName, List<T> objects)
      Deletes objects on the table of the given table name.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • deleteOn

      int deleteOn(String tableName, T object)
      Deletes object on the table of the given table name.
      パラメータ:
      tableName -
      object -
      戻り値:
    • deleteOn

      int[] deleteOn(String tableName, T... objects)
      Deletes objects on the table of the given table name.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • deleteAll

      int deleteAll()
      Deletes all objects on the table corresponding to the given class.
      戻り値:
    • deleteAllOn

      int deleteAllOn(String tableName)
      Deletes all objects on the table corresponding to the given table name.
      パラメータ:
      tableName -
      戻り値:
    • insert

      int[] insert(List<T> objects)
      Inserts objects on the table corresponding to the class of the given objects.
      パラメータ:
      objects -
      戻り値:
    • insert

      int insert(T object)
      Inserts object on the table corresponding to the class of the given object.
      パラメータ:
      object -
      戻り値:
    • insert

      int[] insert(T... objects)
      Insert objects on the table corresponding to the class of the given objects.
      パラメータ:
      objects -
      戻り値:
    • insertAndGet

      InsertResult<T> insertAndGet(List<T> objects)
      Inserts objects and get the last insert result.
      パラメータ:
      objects -
      戻り値:
    • insertAndGet

      InsertResult<T> insertAndGet(T object)
      Inserts an object and get the result.
      パラメータ:
      object -
      戻り値:
    • insertAndGet

      InsertResult<T> insertAndGet(T... objects)
      Inserts objects and get the last insert result.
      パラメータ:
      objects -
      戻り値:
    • insertAndGetOn

      InsertResult<T> insertAndGetOn(String tableName, List<T> objects)
      Inserts objects and get the last insert result.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • insertAndGetOn

      InsertResult<T> insertAndGetOn(String tableName, T object)
      Inserts an object and get the insert result.
      パラメータ:
      tableName -
      object -
      戻り値:
    • insertAndGetOn

      InsertResult<T> insertAndGetOn(String tableName, T... objects)
      Inserts objects and get the last insert result.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • insertOn

      int[] insertOn(String tableName, List<T> objects)
      Inserts objects and get the last insert result.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • insertOn

      int insertOn(String tableName, T object)
      Inserts an object and get the insert result.
      パラメータ:
      tableName -
      object -
      戻り値:
    • insertOn

      int[] insertOn(String tableName, T... objects)
      Inserts objects and get the last insert result.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • merge

      int[] merge(List<T> objects)
      Merges by objects on the table corresponding to the class of the given objects.
      パラメータ:
      objects -
      戻り値:
    • merge

      int merge(T object)
      Merges by an object on the table corresponding to the class of the given object.
      パラメータ:
      object -
      戻り値:
    • merge

      int[] merge(T... objects)
      Merges by objects on the table corresponding to the class of the given objects.
      パラメータ:
      objects -
      戻り値:
    • mergeOn

      int[] mergeOn(String tableName, List<T> objects)
      Merges by objects on the table corresponding to the given table name.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • mergeOn

      int mergeOn(String tableName, T object)
      Merges by an object on the table corresponding to the given table name.
      パラメータ:
      tableName -
      object -
      戻り値:
    • mergeOn

      int[] mergeOn(String tableName, T... objects)
      Merges by objects on the table corresponding to the given table name.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • update

      int[] update(List<T> objects)
      Updates by objects on the table corresponding to the class of the given objects.
      パラメータ:
      objects -
      戻り値:
    • update

      int update(T object)
      Updates by an object on the table corresponding to the class of the given object.
      パラメータ:
      object -
      戻り値:
    • update

      int[] update(T... objects)
      Updates by objects on the table corresponding to the class of the given objects.
      パラメータ:
      objects -
      戻り値:
    • updateOn

      int[] updateOn(String tableName, List<T> objects)
      Updates by objects on the table corresponding to the given table name.
      パラメータ:
      tableName -
      objects -
      戻り値:
    • updateOn

      int updateOn(String tableName, T object)
      Updates by an object on the table corresponding to the given table name.
      パラメータ:
      tableName -
      object -
      戻り値:
    • updateOn

      int[] updateOn(String tableName, T... objects)
      Updates by objects on the table corresponding to the given table name.
      パラメータ:
      tableName -
      objects -
      戻り値: