- すべてのスーパーインタフェース:
AutoCloseable,Orm
- 既知のサブインタフェースのリスト:
H2OrmConnection,OrmTransaction
- 既知の実装クラスのリスト:
H2OrmConnectionImpl,org.nkjmlab.sorm4j.internal.OrmConnectionImpl
- 作成者:
- yuu_nkjm
-
メソッドの概要
修飾子とタイプメソッド説明voidclose()Closes theConnectionassociated with this instance.voidcommit()Commits theConnectionassociated with this instance.Gets JDBCConnection.<T> TableConnection<T>mapToTable(Class<T> type) Gets aTableConnectioninstance indicated the given parameter.<T> TableConnection<T>mapToTable(Class<T> type, String tableName) Gets aTableConnectioninstance indicated the given parameters.static OrmConnectionof(Connection connection) Create aOrmConnectionwrapping the given JDBC Connection.static OrmConnectionof(Connection connection, SormContext sormContext) Create aOrmConnectionwrapping the given JDBC Connection and the given context.voidrollback()Roll back theConnectionassociated with this instance.voidsetAutoCommit(boolean autoCommit) Sets the auto commit behavior for theConnectionassociated with this instance.インタフェースから継承されたメソッド org.nkjmlab.sorm4j.Orm
delete, delete, delete, deleteAll, deleteAllIn, deleteByPrimaryKey, deleteByPrimaryKeyIn, deleteIn, deleteIn, deleteIn, execute, execute, executeQuery, executeQuery, executeQuery, executeQuery, executeUpdate, executeUpdate, exists, exists, exists, exists, getContext, getJdbcDatabaseMetaData, getJdbcTableMetaData, getResultSetTraverser, getRowMapper, getTableMetaData, getTableName, getTableSql, getTableSql, insert, insert, insert, insertAndGet, insertAndGet, insertAndGet, insertAndGetIn, insertAndGetIn, insertAndGetIn, insertIn, insertIn, insertIn, insertMapIn, insertMapIn, insertMapIn, join, join, joinOn, joinOn, joinUsing, leftJoinOn, leftJoinOn, merge, merge, merge, mergeIn, mergeIn, mergeIn, readFirst, readFirst, readList, readList, readOne, readOne, readTupleList, readTupleList, readTupleList, readTupleList, selectAll, selectByPrimaryKey, stream, stream, streamAll, update, update, update, updateByPrimaryKey, updateByPrimaryKeyIn, updateIn, updateIn, updateIn
-
メソッドの詳細
-
of
Create aOrmConnectionwrapping the given JDBC Connection.You should always use try-with-resources block to ensure the database connection is released.
- パラメータ:
connection-- 戻り値:
-
of
Create aOrmConnectionwrapping the given JDBC Connection and the given context.You should always use try-with-resources block to ensure the database connection is released.
- パラメータ:
connection-sormContext-- 戻り値:
-
getJdbcConnection
Connection getJdbcConnection()Gets JDBCConnection.- 戻り値:
-
close
void close()Closes theConnectionassociated with this instance.- 定義:
closeインタフェース内AutoCloseable- 関連項目:
-
commit
void commit()Commits theConnectionassociated with this instance.- 関連項目:
-
rollback
void rollback()Roll back theConnectionassociated with this instance.- 関連項目:
-
setAutoCommit
void setAutoCommit(boolean autoCommit) Sets the auto commit behavior for theConnectionassociated with this instance. -
mapToTable
Gets aTableConnectioninstance indicated the given parameter. The table name is guessed from the given type.- 型パラメータ:
T-- パラメータ:
type-- 戻り値:
-
mapToTable
Gets aTableConnectioninstance indicated the given parameters.- 型パラメータ:
T-- パラメータ:
type-tableName-- 戻り値:
-