Package | Description |
---|---|
org.nutz.dao |
这是 Nutz 最重要的包之一,它主要围绕着 org.nutz.dao.Dao 接口提供了一系列的功能
|
org.nutz.dao.impl |
Dao的实现
|
org.nutz.dao.impl.entity.macro | |
org.nutz.dao.impl.jdbc |
数据库方言
|
org.nutz.dao.impl.sql |
自定义Sql及抽象Sql结构
|
org.nutz.dao.impl.sql.run | |
org.nutz.dao.jdbc | |
org.nutz.dao.sql |
Modifier and Type | Field and Description |
---|---|
protected DaoStatement |
DaoInterceptorChain.daoStatement |
protected DaoStatement[] |
DaoInterceptorChain.sts |
Modifier and Type | Method and Description |
---|---|
DaoStatement |
DaoInterceptorChain.getDaoStatement()
当前执行的DaoStatement
|
DaoStatement[] |
DaoInterceptorChain.getDaoStatements()
全部DaoStatement,可能不止一条
|
Modifier and Type | Method and Description |
---|---|
void |
DaoInterceptorChain.setDaoStatement(DaoStatement daoStatement)
替换当前执行的DaoStatement
|
Constructor and Description |
---|
DaoInterceptorChain(DaoStatement... sts)
新建一个DaoInterceptorChain.
|
Modifier and Type | Method and Description |
---|---|
protected int |
DaoSupport._exec(DaoStatement... sts) |
void |
DaoExecutor.exec(Connection conn,
DaoStatement st) |
Modifier and Type | Class and Description |
---|---|
class |
ElFieldMacro |
class |
SqlFieldMacro |
Modifier and Type | Class and Description |
---|---|
class |
NutPojo |
Modifier and Type | Method and Description |
---|---|
protected static List<DaoStatement> |
AbstractJdbcExpert.wrap(List<String> sqls) |
protected static List<DaoStatement> |
AbstractJdbcExpert.wrap(String... sqls) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractJdbcExpert.formatQuery(DaoStatement daoStatement) |
Modifier and Type | Class and Description |
---|---|
class |
NutSql |
class |
NutStatement |
Modifier and Type | Method and Description |
---|---|
DaoStatement |
NutStatement.setEntity(Entity<?> entity) |
DaoStatement |
NutSql.setPager(Pager pager) |
DaoStatement |
NutStatement.setSqlType(SqlType sqlType) |
Modifier and Type | Method and Description |
---|---|
protected void |
NutDaoExecutor._runExec(Connection conn,
DaoStatement st) |
void |
NutDaoExecutor.exec(Connection conn,
DaoStatement st) |
static void |
NutDaoExecutor.printSQL(DaoStatement sql) |
Modifier and Type | Method and Description |
---|---|
void |
JdbcExpert.formatQuery(DaoStatement daoStatement)
根据 Dao 查询语句,以及其翻页信息,对其进行格式化
|
Modifier and Type | Interface and Description |
---|---|
interface |
Pojo
封装通过 POJO 生成的 SQL 语句
|
interface |
Sql
封装了自定义 SQL
|
Modifier and Type | Method and Description |
---|---|
DaoStatement |
DaoStatement.setEntity(Entity<?> entity)
设置 当前语句对应的实体
|
DaoStatement |
DaoStatement.setPager(Pager pager)
为自定义SQL设置Pager
如果设置为非空值,那么将附加上分页语句!!
由于不带SQL语法分析,无法探知用户是否已经自行添加分页语句!!
使用这个功能,你就不要自己在SQL里面写limit了!!!
|
Copyright © 2017. All rights reserved.