Package | Description |
---|---|
org.nutz.dao |
这是 Nutz 最重要的包之一,它主要围绕着 org.nutz.dao.Dao 接口提供了一系列的功能
|
org.nutz.dao.entity |
抽象的Pojo配置信息描述
|
org.nutz.dao.impl |
Dao的实现
|
org.nutz.dao.impl.entity |
Pojo配置信息实现
|
org.nutz.dao.impl.entity.field | |
org.nutz.dao.impl.entity.macro | |
org.nutz.dao.impl.jdbc |
数据库方言
|
org.nutz.dao.impl.jdbc.db2 | |
org.nutz.dao.impl.jdbc.derby | |
org.nutz.dao.impl.jdbc.gbase | |
org.nutz.dao.impl.jdbc.h2 | |
org.nutz.dao.impl.jdbc.hsqldb | |
org.nutz.dao.impl.jdbc.mysql | |
org.nutz.dao.impl.jdbc.oracle | |
org.nutz.dao.impl.jdbc.psql | |
org.nutz.dao.impl.jdbc.sqlite | |
org.nutz.dao.impl.jdbc.sqlserver2005 | |
org.nutz.dao.impl.sql.pojo | |
org.nutz.dao.interceptor.impl | |
org.nutz.dao.jdbc | |
org.nutz.dao.util |
Dao工具集
|
org.nutz.dao.util.cri |
Modifier and Type | Method and Description |
---|---|
boolean |
FieldMatcher.match(MappingField mf,
Object obj) |
Modifier and Type | Method and Description |
---|---|
MappingField |
Entity.getColumn(String name)
根据实体的数据库字段名获取一个实体字段对象
|
MappingField |
Entity.getField(String name)
根据实体的 Java 字段名获取一个实体字段对象
|
MappingField |
LinkField.getHostField() |
MappingField |
Entity.getIdField() |
MappingField |
LinkField.getLinkedField() |
MappingField |
Entity.getNameField() |
MappingField |
Entity.getVersionField() |
Modifier and Type | Method and Description |
---|---|
List<MappingField> |
Entity.getCompositePKFields()
如果实体采用了复合主键,调用这个函数能返回所有的复合主键,顺序就是复合主键的顺序
|
List<MappingField> |
Entity.getMappingFields() |
List<MappingField> |
Entity.getPks()
根据,"数字主键 > 字符主键 > 复合主键" 的优先顺序,返回主键列表
|
Modifier and Type | Method and Description |
---|---|
<T> T |
NutDao.fetchByJoin(Class<T> klass,
String regex,
Entity<T> en,
MappingField mf,
Object value) |
Modifier and Type | Method and Description |
---|---|
MappingField |
NutEntity.getColumn(String name) |
MappingField |
NutEntity.getField(String name) |
MappingField |
NutEntity.getIdField() |
MappingField |
NutEntity.getNameField() |
MappingField |
NutEntity.getVersionField() |
Modifier and Type | Method and Description |
---|---|
List<MappingField> |
NutEntity.getCompositePKFields() |
List<MappingField> |
NutEntity.getMappingFields() |
List<MappingField> |
NutEntity.getPks() |
Modifier and Type | Method and Description |
---|---|
void |
NutEntity.addMappingField(MappingField field)
增加映射字段
|
Modifier and Type | Class and Description |
---|---|
class |
NutMappingField |
Modifier and Type | Field and Description |
---|---|
protected MappingField |
AbstractLinkField.hostField |
protected MappingField |
AbstractLinkField.linkedField |
Modifier and Type | Method and Description |
---|---|
MappingField |
ManyLinkField.getHostField() |
MappingField |
AbstractLinkField.getHostField() |
MappingField |
ManyLinkField.getLinkedField() |
MappingField |
AbstractLinkField.getLinkedField() |
Constructor and Description |
---|
ManyLinkField(NutEntity<?> en,
EntityHolder holder,
LinkInfo info,
Class<?> klass,
MappingField mf,
MappingField mfKey) |
OneLinkField(Entity<?> entity,
EntityHolder holder,
LinkInfo info,
Class<?> target,
MappingField field,
MappingField key) |
Constructor and Description |
---|
ElFieldMacro(MappingField field,
String str) |
SqlFieldMacro(MappingField field,
String str) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractJdbcExpert.addDefaultValue(StringBuilder sb,
MappingField mf) |
Sql |
AbstractJdbcExpert.createAddColumnSql(Entity<?> en,
MappingField mf) |
String |
AbstractJdbcExpert.evalFieldType(MappingField mf) |
Pojo |
AbstractJdbcExpert.fetchPojoId(Entity<?> en,
MappingField idField) |
ValueAdaptor |
AbstractJdbcExpert.getAdaptor(MappingField ef) |
protected String |
AbstractJdbcExpert.getDefaultValue(MappingField mf) |
Modifier and Type | Method and Description |
---|---|
String |
Db2JdbcExpert.evalFieldType(MappingField mf) |
ValueAdaptor |
Db2JdbcExpert.getAdaptor(MappingField ef) |
Modifier and Type | Method and Description |
---|---|
String |
DerbyJdbcExpert.evalFieldType(MappingField mf) |
Pojo |
DerbyJdbcExpert.fetchPojoId(Entity<?> en,
MappingField idField) |
ValueAdaptor |
DerbyJdbcExpert.getAdaptor(MappingField ef) |
Modifier and Type | Method and Description |
---|---|
String |
GBaseJdbcExpert.evalFieldType(MappingField mf) |
Pojo |
GBaseJdbcExpert.fetchPojoId(Entity<?> en,
MappingField idField) |
Modifier and Type | Method and Description |
---|---|
Pojo |
H2JdbcExpert.fetchPojoId(Entity<?> en,
MappingField idField) |
Modifier and Type | Method and Description |
---|---|
String |
HsqldbJdbcExpert.evalFieldType(MappingField mf) |
Modifier and Type | Method and Description |
---|---|
String |
MysqlJdbcExpert.evalFieldType(MappingField mf) |
Pojo |
MysqlJdbcExpert.fetchPojoId(Entity<?> en,
MappingField idField) |
ValueAdaptor |
MysqlJdbcExpert.getAdaptor(MappingField ef) |
Modifier and Type | Method and Description |
---|---|
String |
OracleJdbcExpert.evalFieldType(MappingField mf) |
ValueAdaptor |
OracleJdbcExpert.getAdaptor(MappingField ef) |
Modifier and Type | Method and Description |
---|---|
String |
PsqlJdbcExpert.evalFieldType(MappingField mf) |
ValueAdaptor |
PsqlJdbcExpert.getAdaptor(MappingField ef) |
Modifier and Type | Method and Description |
---|---|
Pojo |
SQLiteJdbcExpert.fetchPojoId(Entity<?> en,
MappingField idField) |
Modifier and Type | Method and Description |
---|---|
String |
Sqlserver2005JdbcExpert.evalFieldType(MappingField mf) |
Pojo |
Sqlserver2005JdbcExpert.fetchPojoId(Entity<?> en,
MappingField idField) |
Modifier and Type | Field and Description |
---|---|
protected List<MappingField> |
InsertValuesPItem.mfs
缓存要操作的字段
|
Modifier and Type | Method and Description |
---|---|
protected List<MappingField> |
UpdateFieldsPItem._mfs(Entity<?> en) |
protected List<MappingField> |
InsertValuesPItem._mfs(Entity<?> en) |
Constructor and Description |
---|
SingleColumnCondtionPItem(MappingField mf,
Object def) |
Modifier and Type | Field and Description |
---|---|
protected MappingField |
SimpleElPojoInterceptor.mf |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultPojoInterceptor.setupField(MappingField mf,
Field field) |
protected void |
DefaultPojoInterceptor.setupFieldAnnotation(MappingField mf,
Field field,
Annotation anno) |
protected void |
DefaultPojoInterceptor.setupFieldEL(MappingField mf,
Field field,
EL[] els,
String event,
boolean nullEffective) |
Constructor and Description |
---|
SimpleElPojoInterceptor(MappingField mf,
String str,
String event) |
SimpleElPojoInterceptor(MappingField mf,
String str,
String event,
boolean nullEffective) |
Modifier and Type | Method and Description |
---|---|
Sql |
JdbcExpert.createAddColumnSql(Entity<?> en,
MappingField mf) |
String |
JdbcExpert.evalFieldType(MappingField mf) |
Pojo |
JdbcExpert.fetchPojoId(Entity<?> en,
MappingField idField) |
ValueAdaptor |
JdbcExpert.getAdaptor(MappingField ef)
根据字段类型为其获取一个字段适配器
|
Modifier and Type | Method and Description |
---|---|
static List<MappingField> |
Pojos.getFieldsForInsert(Entity<?> en,
FieldMatcher fm) |
static List<MappingField> |
Pojos.getFieldsForUpdate(Entity<?> en,
FieldMatcher fm,
Object refer) |
Modifier and Type | Method and Description |
---|---|
static PItem |
Pojos.Items.cndColumn(MappingField mappingField,
Object def) |
static PItem |
Pojos.Items.cndColumn(String colName,
MappingField mappingField,
Object def) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Daos.filterFields(Object obj,
FieldMatcher matcher,
Dao dao,
Callback2<MappingField,Object> callback) |
Modifier and Type | Method and Description |
---|---|
protected MappingField |
AbstractSqlExpression._field(Entity<?> en) |
Copyright © 2020. All rights reserved.