Package | Description |
---|---|
org.nutz.dao.impl |
Dao的实现
|
org.nutz.dao.util |
Dao工具集
|
org.nutz.json |
让Json转换仅需一条语句
|
org.nutz.lang |
Java语法糖,封装众多常用实用方法
|
org.nutz.lang.util | |
org.nutz.mvc |
基于注解的MVC
|
org.nutz.mvc.impl | |
org.nutz.mvc.upload |
Modifier and Type | Field and Description |
---|---|
protected NutMap |
NutTxDao.sps |
Modifier and Type | Class and Description |
---|---|
class |
RelationObjectMap
为多对多关联做的延迟取值Map
|
Modifier and Type | Class and Description |
---|---|
class |
JsonFormat
描述Json输出的格式
|
Modifier and Type | Method and Description |
---|---|
static NutMap |
Xmls.asMap(Element ele)
根据一个 XML 节点,将其变成一个 Map。
注意: 不支持混合节点
|
static NutMap |
Xmls.asMap(Element ele,
boolean lowFirst)
根据一个 XML 节点,将其变成一个 Map。
注意: 不支持混合节点
|
static NutMap |
Xmls.asMap(Element ele,
boolean lowFirst,
boolean dupAsList) |
static NutMap |
Xmls.asMap(Element ele,
boolean lowerFirst,
boolean dupAsList,
List<String> alwaysAsList) |
static NutMap |
Lang.map(String str)
根据一段字符串,生成一个 Map 对象。
|
static NutMap |
Lang.map(String key,
Object v)
创建一个一个键的 Map 对象
|
static NutMap |
Lang.mapf(String fmt,
Object... args)
根据一个格式化字符串,生成 Map 对象
|
static NutMap |
Lang.obj2nutmap(Object obj)
将对象转为 Nutz 的标准 Map 封装
|
static NutMap |
Xmls.xmlToMap(InputStream ins) |
static NutMap |
Xmls.xmlToMap(InputStream ins,
boolean lowerFirst,
boolean dupAsList,
List<String> alwaysAsList) |
static NutMap |
Xmls.xmlToMap(String xml)
将一个下面格式的 XML:
|
Modifier and Type | Method and Description |
---|---|
NutMap |
NutMap.addv(String key,
Object value)
为 Map 增加一个名值对。如果同名已经有值了,那么会将两个值合并成一个列表
|
NutMap |
NutMap.addv2(String key,
Object value)
为 Map 增加一个名值对。强制设置为一个列表,如果有同名则合并
|
NutMap |
NutMap.attach(NutMap map) |
NutMap |
NutMap.detach() |
NutMap |
NutMap.duplicate() |
NutMap |
CmdParams.getMap(String key) |
NutMap |
CmdParams.getMap(String key,
NutMap dft) |
NutMap |
CmdParams.map() |
NutMap |
NutMap.mergeWith(Map<String,Object> map)
相当于 mergeWith(map, false)
|
NutMap |
NutMap.mergeWith(Map<String,Object> map,
boolean onlyAbsent)
与一个给定的 Map 融合,如果有子 Map 递归
|
static NutMap |
NutMap.NEW() |
NutMap |
NutMap.omit(String... keys)
从 Map 里将指定的键过滤,生成一个新的 Map
|
NutMap |
NutMap.pick(String... keys)
从 Map 里挑选一些键生成一个新的 Map
|
NutMap |
NutMap.pickAndRemove(String... keys)
从 Map 里挑选一些键生成一个新的 Map,自己同时删除这些键
|
NutMap |
NutMap.pickAndRemoveBy(Pattern p,
boolean isNot)
从 Map 里挑选一些键生成一个新的 Map,自己同时删除这些键
|
NutMap |
NutMap.pickAndRemoveBy(String regex)
就是 pickAndRemoveBy 的一个便利写法
|
NutMap |
NutMap.pickBy(Pattern p,
boolean isNot)
从 Map 里挑选一些键生成一个新的 Map
|
NutMap |
NutMap.pickBy(String regex)
从 Map 里挑选一些键生成一个新的 Map
|
NutMap |
NutMap.pushTo(String key,
Collection<?> values)
是 pushTo 函数的另一个变种(可以接受集合)
|
<T> NutMap |
NutMap.pushTo(String key,
T... values)
向某个键增加一组值,如果原来就有值,是集合的话,会被合并,否则原来的值用列表包裹后再加入新值
|
NutMap |
NutMap.putDefault(String key,
Object dft)
如果一个键的值无效(has(key) 返回 false),那么为其设置默认值
|
NutMap |
NutMap.putv(String key,
Object value)
Deprecated.
本函数意义容易发生混淆,已经改名成 addv,下个版将被删除
|
NutMap |
NutMap.setMap(Map<?,?> map,
boolean ignoreNullValue) |
NutMap |
NutMap.setnx(String key,
Object val)
与JDK8+的 putIfAbsent(key, val)一致, 当且仅当值不存在时设置进去,但与putIfAbsent返回值有不一样
|
NutMap |
NutMap.setnxAll(Map<String,Object> map)
将一个集合与自己补充(相当于针对每个 key 调用 setnx)
|
NutMap |
NutMap.setv(String key,
Object value) |
static NutMap |
NutMap.WRAP(Map<String,Object> map) |
static NutMap |
NutMap.WRAP(String json) |
Modifier and Type | Method and Description |
---|---|
NutMap |
NutMap.attach(NutMap map) |
NutMap |
CmdParams.getMap(String key,
NutMap dft) |
Modifier and Type | Class and Description |
---|---|
class |
ViewModel
用作入口方法参数,作为传递视图渲染内容的途径
|
Modifier and Type | Method and Description |
---|---|
static NutMap |
Mvcs.toParamMap(Reader r,
String enc) |
Modifier and Type | Method and Description |
---|---|
protected static NutMap |
JsonRPC.error(int code,
String message,
Object data) |
static NutMap |
JsonRPC.invoke(Object obj,
NutMap req) |
static NutMap |
JsonRPC.invoke(Object obj,
Reader r)
服务端
|
Modifier and Type | Method and Description |
---|---|
static NutMap |
JsonRPC.invoke(Object obj,
NutMap req) |
Modifier and Type | Method and Description |
---|---|
static NutMap |
Uploads.createParamsMap(javax.servlet.http.HttpServletRequest req)
根据请求对象创建参数 MAP, 同时根据 QueryString,为 MAP 设置初始值
|
Copyright © 2017. All rights reserved.