モジュール org.nkjmlab.sorm4j
パッケージ org.nkjmlab.sorm4j.table

インタフェース Table<T>

すべてのスーパーインタフェース:
TableMappedOrm<T>
既知のサブインタフェースのリスト:
H2Table<T>, TableWithDefinition<T>
既知の実装クラスのリスト:
H2BasicTable, SimpleTable, SimpleTableWithDefinition

public interface Table<T> extends TableMappedOrm<T>
  • メソッドの詳細

    • getOrm

      Sorm getOrm()
      Gets Orm object
      定義:
      getOrm インタフェース内 TableMappedOrm<T>
      戻り値:
    • create

      static <T> Table<T> create(Sorm orm, Class<T> valueType)
      型パラメータ:
      T -
      パラメータ:
      orm -
      valueType -
      戻り値:
    • toTableConnection

      default TableConnection<T> toTableConnection(OrmConnection conn)
    • open

      default TableConnection<T> open()
      Open TableOrmConnection. You should always use try-with-resources block to ensure the database connection is released.
      戻り値:
    • acceptHandler

      default void acceptHandler(ConsumerHandler<TableConnection<T>> handler)
      Accepts a OrmConnection handler for a task with object-relation mapping. The connection will be closed after the process of handler.
      パラメータ:
      handler -
    • applyHandler

      default <R> R applyHandler(FunctionHandler<TableConnection<T>,R> handler)
      Applies a OrmConnection handler for a task with object-relation mapping and gets the result. The connection will be closed after the process of handler.
      型パラメータ:
      R -
      パラメータ:
      connectionHandler -
      戻り値: