Modifier and Type | Method and Description |
---|---|
protected void |
DaoTemplate.closeConnection(DBContext context,
Connection conn,
DataSource ds) |
protected Connection |
DaoTemplate.getConnection(DBContext context,
DataSource ds) |
Modifier and Type | Method and Description |
---|---|
DBContext |
WrapConnection.getDbContext() |
Modifier and Type | Method and Description |
---|---|
void |
WrapConnection.setDbContext(DBContext dbContext) |
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<DBContext> |
DBClient.dbContexts
sql执行上下文.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DBClient.closeConnection(DBContext context,
Connection conn,
DataSource ds) |
protected Connection |
DBClient.getConnection(DBContext context,
DataSource ds) |
DBClient |
DBMethod.useContext(DBContext context)
执行sql上下文,比如切换数据源
|
DBClient |
DBClient.useContext(DBContext context)
使用上下文语境(一次性的,每次使用后必须重新设置,供以后扩展使用.)
|
Modifier and Type | Method and Description |
---|---|
static <T> BeanRowMapper<T> |
RowMapperHelp.getBeanRowMapper(Class<T> beanClass,
DBContext context)
获取转为 BeanRowMapper
|
static JPABeanRowMapper |
RowMapperHelp.getBeanRowMapper(javax.persistence.SqlResultSetMapping resultSetMapping,
DBContext context) |
static <T> RowMapper<T> |
RowMapperHelp.getRowMapper(Class<T> beanClass,
DBContext context)
获取转为rowmapper
|
Modifier and Type | Method and Description |
---|---|
static SQLContext |
CommonSql.forModelDelete(DBContext context,
TableMapping table,
DBDialect dialect,
DBObject obj) |
static SQLContext |
CommonSql.forModelDeleteByIds(DBContext context,
TableMapping table,
DBDialect dialect,
Object... keyParams) |
static SQLContext |
CommonSql.forModelExistsByIds(DBContext context,
TableMapping table,
DBDialect dialect,
Object... keyParams) |
static SQLContext |
CommonSql.forModelSelectByIds(DBContext context,
TableMapping table,
DBDialect dialect,
Object... keyParams) |
static SQLContext |
CommonSql.forModelUpdate(DBContext context,
TableMapping table,
DBDialect dialect,
DBObject obj,
boolean useOptimisticLock,
boolean useNvl)
更新对象,如果有乐观锁,会根据乐观锁条件更新,并会更新数据库中的乐观锁条件.但不会更新对象的乐观锁字段的值.
|
static <T> List<T> |
CommonResult.getListResult(ResultSet rs,
Class<T> beanClass,
DBContext context)
提取结果
|
static <T> T |
CommonResult.getOneResult(ResultSet rs,
Class<T> beanClass,
DBContext context) |
static SQLContext |
CommonSql.model2Save(DBContext context,
TableMapping table,
DBDialect dialect,
DBObject obj,
boolean useOptimisticLock)
生成插入语句
|
Modifier and Type | Method and Description |
---|---|
static DBContext |
DBUtils.doGetDBContext(Connection conn)
获取上下文
|
Modifier and Type | Method and Description |
---|---|
static String |
OrmUtils.getDynamicTableName(DBContext context,
TableMapping tableMapping)
获取动态表名
|
Modifier and Type | Method and Description |
---|---|
static String |
ExampleSQLHelp.getFromClause(Example example,
DBContext context,
boolean useAlias) |
static SQLContext |
ExampleSQLHelp.getSelectSQLContext(Example example,
DBContext context,
SelectOpt opt,
boolean offsetLimit,
boolean useAlias)
获取完整的查询
|
Modifier and Type | Method and Description |
---|---|
SimpleTable |
SimpleTable.cloneNew(DBContext context,
DBDialect dialect) |
static <T extends DBObject> |
DynmicSQLTables.getTable(DBContext context,
Class<T> clz) |
static <T extends DBObject> |
DynmicSQLTables.getTable(DBContext context,
Class<T> clz,
DBDialect dialect) |
static SimpleTable |
DynmicSQLTables.getTable(DBContext context,
TableMapping tm,
DBDialect dialect) |
Constructor and Description |
---|
SimpleTable(DBContext context,
DBDialect dialect,
Class<? extends DBObject> clz) |
SimpleTable(DBContext context,
DBDialect dialect,
Class<? extends DBObject> clz,
boolean useTemplateReplace) |
Modifier and Type | Method and Description |
---|---|
SimpleTable |
DynmicSQLMapperImpl.dynmicSQLTable(DBContext context) |
SimpleTable |
DynmicSQLMapper.dynmicSQLTable(DBContext context) |
Modifier and Type | Method and Description |
---|---|
static <T extends DBObject> |
JooqTables.getTable(DBContext context,
Class<T> clz) |
static <T extends DBObject> |
JooqTables.getTable(DBContext context,
Class<T> clz,
DBDialect dialect) |
static <T extends DBObject> |
JooqTables.getTable(DBContext context,
TableMapping tm) |
static <T extends DBObject> |
JooqTables.getTable(DBContext context,
TableMapping tm,
DBDialect dialect) |
Modifier and Type | Method and Description |
---|---|
JooqTable<?> |
JooqMapperImpl.jooqTable(DBContext context) |
JooqTable<?> |
JooqMapper.jooqTable(DBContext context) |
Modifier and Type | Method and Description |
---|---|
<R extends org.jooq.Record> |
JooqTable.cloneNew(DBContext context) |
Constructor and Description |
---|
JooqTable(DBContext context,
Class<? extends DBObject> clz,
DBDialect dialect) |
Modifier and Type | Method and Description |
---|---|
<T extends DBObject> |
JPAEntityPath.cloneNew(DBContext context)
克隆一个新的原始对象.
|
<T extends DBObject> |
SQLRelationalPath.cloneNew(DBContext context,
String variable) |
static JPAEntityPath |
QueryDSLTables.entityPathBase(DBContext context,
Class<? extends DBObject> clz) |
static <T extends DBObject> |
QueryDSLTables.relationalPathBase(DBContext context,
Class<T> clz) |
static <T extends DBObject> |
QueryDSLTables.relationalPathBase(DBContext context,
TableMapping tm) |
Constructor and Description |
---|
JPAEntityPath(DBContext context,
Class<? extends DBObject> type) |
SQLRelationalPath(DBContext context,
Class<? extends DBObject> type,
String variable) |
SQLRelationalPath(DBContext context,
TableMapping tm) |
SQLRelationalPath(DBContext context,
TableMapping tm,
String variable) |
Modifier and Type | Method and Description |
---|---|
SQLRelationalPath<T> |
QueryDSLMapper.queryDSLTable(DBContext context) |
SQLRelationalPath<T> |
QueryDSLMapperImpl.queryDSLTable(DBContext context) |
Copyright © 2020. All rights reserved.