Uses of Class
com.aashish.javaormashcode.jdbc.OrmSession
Packages that use OrmSession
Package
Description
-
Uses of OrmSession in com.aashish.javaormashcode.api
Methods in com.aashish.javaormashcode.api that return OrmSessionModifier and TypeMethodDescriptionstatic OrmSessionORM.openSession()Opens a session backed by the configured primary data source.static OrmSessionORM.openSession(DataSource dataSource) Opens a session backed by the given data source. -
Uses of OrmSession in com.aashish.javaormashcode.jdbc
Methods in com.aashish.javaormashcode.jdbc that return OrmSessionModifier and TypeMethodDescriptionOrmSession.beginTransaction()Starts a transaction by disabling auto-commit on the session connection.Methods in com.aashish.javaormashcode.jdbc with parameters of type OrmSessionModifier and TypeMethodDescriptionstatic <T> List<T> JdbcExecutor.query(OrmSession session, PreparedSql preparedSql, Class<T> targetType) JdbcExecutor.querySingleRow(OrmSession session, PreparedSql preparedSql) static intJdbcExecutor.update(OrmSession session, PreparedSql preparedSql) -
Uses of OrmSession in com.aashish.javaormashcode.query
Methods in com.aashish.javaormashcode.query with parameters of type OrmSessionModifier and TypeMethodDescriptionQuerySet.aggregate(OrmSession session, Aggregate... aggregates) Executes one or more aggregate projections within the given session.QuerySet.all(OrmSession session) Executes the select query within the given ORM session.<R> List<R> QuerySet.all(Class<R> dtoClass, OrmSession session) Executes the select query within the given session and maps rows into the DTO type.intQuerySet.delete(OrmSession session) Deletes rows matched by the current filters within the given session.intQuerySet.insert(Map<String, Object> values, OrmSession session) Inserts a row within the given session.intQuerySet.update(Map<String, Object> values, OrmSession session) Updates rows matched by the current filters within the given session.