Action - com.jfinal.core 中的类
Action
Action(String, String, Class<? extends Controller>, Method, String, Interceptor[], String) - 类 的构造器com.jfinal.core.Action
ActionException - com.jfinal.core 中的异常错误
ActionException.
ActionException(int, Render) - 异常错误 的构造器com.jfinal.core.ActionException
ActionException(int, String) - 异常错误 的构造器com.jfinal.core.ActionException
ActionException(int, Render, String) - 异常错误 的构造器com.jfinal.core.ActionException
ActionHandler - com.jfinal.core 中的类
ActionHandler
ActionHandler() - 类 的构造器com.jfinal.core.ActionHandler
ActionKey - com.jfinal.core 中的注释类型
ActionKey is used to configure actionKey for method of controller.
actionMapping - 类 中的变量com.jfinal.core.ActionHandler
ActionMapping - com.jfinal.core 中的类
ActionMapping
ActionMapping(Routes) - 类 的构造器com.jfinal.core.ActionMapping
actionReporter - 类 中的变量com.jfinal.core.ActionHandler
ActionReporter - com.jfinal.core 中的类
ActionReporter
ActionReporter() - 类 的构造器com.jfinal.core.ActionReporter
ActiveRecordException - com.jfinal.plugin.activerecord 中的异常错误
ActiveRecordException
ActiveRecordException(String) - 异常错误 的构造器com.jfinal.plugin.activerecord.ActiveRecordException
ActiveRecordException(Throwable) - 异常错误 的构造器com.jfinal.plugin.activerecord.ActiveRecordException
ActiveRecordException(String, Throwable) - 异常错误 的构造器com.jfinal.plugin.activerecord.ActiveRecordException
ActiveRecordPlugin - com.jfinal.plugin.activerecord 中的类
ActiveRecord plugin.
ActiveRecordPlugin(String, DataSource, int) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
ActiveRecordPlugin(DataSource) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
ActiveRecordPlugin(String, DataSource) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
ActiveRecordPlugin(DataSource, int) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
ActiveRecordPlugin(String, IDataSourceProvider, int) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
ActiveRecordPlugin(IDataSourceProvider) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
ActiveRecordPlugin(String, IDataSourceProvider) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
ActiveRecordPlugin(IDataSourceProvider, int) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
ActiveRecordPlugin(Config) - 类 的构造器com.jfinal.plugin.activerecord.ActiveRecordPlugin
add(Handler) - 类 中的方法com.jfinal.config.Handlers
add(Interceptor) - 类 中的方法com.jfinal.config.Interceptors
The same as addGlobalActionInterceptor.
add(IPlugin) - 类 中的方法com.jfinal.config.Plugins
add(Routes) - 类 中的方法com.jfinal.config.Routes
Add Routes
add(String, Class<? extends Controller>, String) - 类 中的方法com.jfinal.config.Routes
Add route
add(String, Class<? extends Controller>) - 类 中的方法com.jfinal.config.Routes
Add route.
add(String) - 类 中的方法com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory.CaseInsensitiveSet
add(String) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
addAll(Collection<? extends String>) - 类 中的方法com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory.CaseInsensitiveSet
addAll(Collection<? extends String>) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
addBoolean(boolean) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addCache(Cache) - 类 中的静态方法com.jfinal.plugin.redis.Redis
addChar(char) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addCompileOption(String) - 类 中的方法com.jfinal.proxy.ProxyCompiler
addConfig(Config) - 类 中的静态方法com.jfinal.plugin.activerecord.DbKit
Add Config object
addDate(Date) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addDirective(String, Class<? extends Directive>, boolean) - 类 中的方法com.jfinal.template.Engine
添加自定义指令
建议添加自定义指令时明确指定 keepLineBlank 变量值,其规则如下:
1:keepLineBlank 为 true 时, 该指令所在行的前后空白字符以及末尾字符 '\n' 将会被保留
一般用于具有输出值的指令,例如 #date、#para 等指令
2:keepLineBlank 为 false 时,该指令所在行的前后空白字符以及末尾字符 '\n' 将会被删除
一般用于没有输出值的指令,例如 #for、#if、#else、#end 这种性质的指令
示例:
addDirective("now", NowDirective.class, true)
addDirective(String, Class<? extends Directive>) - 类 中的方法com.jfinal.template.Engine
添加自定义指令,keepLineBlank 使用默认值
addDirective(String, Class<? extends Directive>, boolean) - 类 中的方法com.jfinal.template.EngineConfig
addDirective(String, Class<? extends Directive>) - 类 中的方法com.jfinal.template.EngineConfig
addDirective(String, Class<? extends Directive>) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
添加自定义指令
addDirective(String, Directive) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
已过时。
addDouble(double) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addEnum(Enum) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addEnum(Class<? extends Enum<?>>) - 类 中的方法com.jfinal.template.Engine
添加枚举类型,便于在模板中使用
例子:
1:定义枚举类型
public enum UserType {
ADMIN,
USER;
public String hello() {
return "hello";
}
}
2:配置
engine.addEnum(UserType.class);
3:模板中使用
### 以下的对象 u 通过 Controller 中的 setAttr("u", UserType.ADMIN) 传递
#if( u == UserType.ADMIN )
#(UserType.ADMIN)
#(UserType.ADMIN.name())
#(UserType.ADMIN.hello())
#end
addError(String, String) - 类 中的方法com.jfinal.validate.Validator
Add message when validate failure.
addExcludedAttrs(String...) - 类 中的静态方法com.jfinal.render.JsonRender
仅对无参 renderJson() 起作用
addExcludedTable(String...) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
添加不需要处理的数据表
addExcludedTable(String...) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
addExtensionMethod(Class<?>, Object) - 类 中的静态方法com.jfinal.template.Engine
addExtensionMethod(Class<?>, Class<?>) - 类 中的静态方法com.jfinal.template.Engine
addExtensionMethod(Class<?>, Object) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
addExtensionMethod(Class<?>, Class<?>) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
addExtensionMethod(Class<?>, Object) - 类 中的静态方法com.jfinal.template.ext.spring.JFinalViewResolver
添加扩展方法
addExtensionMethod(Class<?>, Class<?>) - 类 中的静态方法com.jfinal.template.ext.spring.JFinalViewResolver
添加扩展方法
addFieldGetter(int, FieldGetter) - 类 中的静态方法com.jfinal.template.Engine
添加 FieldGetter 实现类到指定的位置
系统当前默认 FieldGetter 实现类及其位置如下:
GetterMethodFieldGetter ---> 调用 getter 方法取值
RealFieldGetter ---> 直接获取 public 型的 object.field 值
ModelFieldGetter ---> 调用 Model.get(String) 方法取值
RecordFieldGetter ---> 调用 Record.get(String) 方法取值
MapFieldGetter ---> 调用 Map.get(String) 方法取值
ArrayLengthGetter ---> 获取数组长度
根据以上次序,如果要插入 IsMethodFieldGetter 到 GetterMethodFieldGetter
之后的代码如下:
Engine.addFieldGetter(1, new IsMethodFieldGetter());
注:IsMethodFieldGetter 系统已经提供,只是默认没有启用。
addFieldGetter(int, FieldGetter) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKit
addFieldGetterToFirst(FieldGetter) - 类 中的静态方法com.jfinal.template.Engine
addFieldGetterToFirst(FieldGetter) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKit
addFieldGetterToLast(FieldGetter) - 类 中的静态方法com.jfinal.template.Engine
addFieldGetterToLast(FieldGetter) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKit
addFilter(Filter) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
addFloat(float) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addForbiddenClass(Class<?>) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
addForbiddenMethod(String) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
addFunction(Define) - 类 中的方法com.jfinal.template.Env
Add template function
addGlobalActionInterceptor(Interceptor...) - 类 中的方法com.jfinal.aop.InterceptorManager
addGlobalActionInterceptor(Interceptor) - 类 中的方法com.jfinal.config.Interceptors
Add the global action interceptor to intercept all the actions.
addGlobalServiceInterceptor(Interceptor...) - 类 中的方法com.jfinal.aop.InterceptorManager
addGlobalServiceInterceptor(Interceptor) - 类 中的方法com.jfinal.config.Interceptors
Add the global service interceptor to intercept all the method enhanced by aop Enhancer.
addInt(int) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addInterceptor(Interceptor) - 类 中的方法com.jfinal.config.Routes
Add interceptor for controller in this Routes
addInterceptors(Interceptor...) - 类 中的方法com.jfinal.aop.InterceptorStack
addKeyword(String) - 类 中的方法com.jfinal.kit.JavaKeyword
addLocalDate(LocalDate) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addLocalDateTime(LocalDateTime) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addLocalTime(LocalTime) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addLong(long) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addMapKey(Object) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addMapping(Class<T>, Class<? extends T>) - 类 中的方法com.jfinal.aop.AopFactory
addMapping(Class<T>, String) - 类 中的方法com.jfinal.aop.AopFactory
addMapping(Class<T>, Class<? extends T>) - 类 中的方法com.jfinal.aop.AopManager
添加父类到子类的映射,或者接口到实现类的映射。
addMapping(Class<T>, String) - 类 中的方法com.jfinal.aop.AopManager
功能与 addMapping(Class from, Class
addMapping(String, String, Class<? extends Model<?>>) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
addMapping(String, Class<? extends Model<?>>) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
addMapping(Class<?>, Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.generator.TypeMapping
addMapping(String, String) - 类 中的方法com.jfinal.plugin.activerecord.generator.TypeMapping
addModelToConfigMapping(Class<? extends Model>, Config) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
addNull() - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addNumber(Number) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addPara(Object) - 类 中的方法com.jfinal.plugin.activerecord.SqlPara
addParaGetter(int, IParaGetter<?>) - 类 中的方法com.jfinal.core.paragetter.ParaProcessor
addProxyMethod(ProxyMethod) - 类 中的方法com.jfinal.proxy.ProxyClass
addRoute(String, String) - 类 中的方法com.jfinal.ext.handler.RoutesHandler
addRoute(String, String, String) - 类 中的方法com.jfinal.ext.handler.RoutesHandler
addRoute(String, Controller, String) - 类 中的方法com.jfinal.ext.handler.RoutesHandler
addSerializer(Type, ObjectSerializer) - 类 中的静态方法com.jfinal.json.FastJson
addSharedFunction(String) - 类 中的方法com.jfinal.template.Engine
Add shared function by file
addSharedFunction(ISource) - 类 中的方法com.jfinal.template.Engine
Add shared function by ISource
addSharedFunction(String...) - 类 中的方法com.jfinal.template.Engine
Add shared function by files
addSharedFunction(String) - 类 中的方法com.jfinal.template.EngineConfig
Add shared function with file
addSharedFunction(String...) - 类 中的方法com.jfinal.template.EngineConfig
Add shared function with files
addSharedFunction(ISource) - 类 中的方法com.jfinal.template.EngineConfig
Add shared function by ISource
addSharedFunction(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
添加 shared function 文件,可调用多次添加多个文件
addSharedFunctionByString(String) - 类 中的方法com.jfinal.template.Engine
Add shared function by string content
addSharedFunctionByString(String) - 类 中的方法com.jfinal.template.EngineConfig
Add shared function by string content
addSharedMethod(Object) - 类 中的方法com.jfinal.template.Engine
Add shared method from object
addSharedMethod(Class<?>) - 类 中的方法com.jfinal.template.Engine
Add shared method from class
addSharedMethod(Object) - 类 中的方法com.jfinal.template.EngineConfig
Add shared method from object
addSharedMethod(Class<?>) - 类 中的方法com.jfinal.template.EngineConfig
Add shared method from class
addSharedMethod(Object) - 类 中的方法com.jfinal.template.expr.ast.SharedMethodKit
addSharedMethod(Class<?>) - 类 中的方法com.jfinal.template.expr.ast.SharedMethodKit
addSharedMethod(Object) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
添加共享方法
addSharedMethod(Class<?>) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
添加共享方法
addSharedObject(String, Object) - 类 中的方法com.jfinal.template.Engine
Add shared object
addSharedObject(String, Object) - 类 中的方法com.jfinal.template.EngineConfig
addSharedObject(String, Object) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
添加共享对象
addSharedStaticMethod(Class<?>) - 类 中的方法com.jfinal.template.Engine
Add shared static method of Class
addSharedStaticMethod(Class<?>) - 类 中的方法com.jfinal.template.EngineConfig
Add shared static method of Class
addSharedStaticMethod(Class<?>) - 类 中的方法com.jfinal.template.expr.ast.SharedMethodKit
addSingletonObject(Class<?>, Object) - 类 中的方法com.jfinal.aop.AopFactory
addSingletonObject(Object) - 类 中的方法com.jfinal.aop.AopFactory
addSingletonObject(Class<?>, Object) - 类 中的方法com.jfinal.aop.AopManager
添加单例对象
由于 Aop 创建对象时不支持为构造方法传递参数,故添加此方法
示例:
// Service 类的构造方法中传入了两个参数
Service service = new Service(paraAaa, paraBbb);
AopManager.me().addSingletonObject(Service.class, service);
// 上面代码添加完成以后,可以在任何地方通过下面的方式获取单例对象
service = Aop.get(Service.class);
// 被添加进去的对象还可以用于注入
addSingletonObject(Object) - 类 中的方法com.jfinal.aop.AopManager
addSource(ISource) - 类 中的方法com.jfinal.template.Env
添加本 Template 的 ISource,以及该 Template 使用 include 包含进来的所有 ISource
以便于在 devMode 之下判断该 Template 是否被 modified,进而 reload 该 Template
addSqlTemplate(String) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
addSqlTemplate(ISource) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
addSqlTemplate(String) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
addSqlTemplate(ISource) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
addStr(String) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addStrNoEscape(String) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addTask(String, Runnable, boolean, boolean) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTask(String, Runnable, boolean) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTask(String, Runnable) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTask(String, ProcessTask, boolean, boolean) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTask(String, ProcessTask, boolean) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTask(String, ProcessTask) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTask(String, Task, boolean, boolean) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTask(String, Task, boolean) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTask(String, Task) - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
addTime(Time) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addTimestamp(Timestamp) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
addToJson(Class<?>, JFinalJsonKit.ToJson<?>) - 类 中的静态方法com.jfinal.json.JFinalJson
添加 ToJson 转换接口实现类,自由定制任意类型数据的转换规则
例子:
ToJson toJson = (value, depth, ret) -> {
ret.addLong(value.getTime());
};
JFinalJson.addToJson(Timestamp.class, toJson);
以上代码为 Timestamp 类型的 json 转换定制了转换规则
将其转换成了 long 型数据
addToJson(Class<?>, JFinalJsonKit.ToJson<?>) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
添加 ToJson 转换接口实现类,自由定制任意类型数据的转换规则
例子:
ToJson toJson = (value, depth, ret) -> {
ret.addLong(value.getTime());
};
JFinalJson.addToJson(Timestamp.class, toJson);
以上代码为 Timestamp 类型的 json 转换定制了转换规则
将其转换成了 long 型数据
addType(Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.JavaType
addTypeMapping(Class<?>, Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
为生成器添加类型映射,将数据库反射得到的类型映射到指定类型,
从而在生成过程中用指定类型替换数据反射得到的类型
添加的映射可以覆盖默认的映射,从而可以自由定制映射关系
例如:
generator.addTypeMaping(LocalDateTime.class, LocalDateTime.class)
generator.addTypeMaping(LocalDate.class, LocalDate.class)
例如:
generator.addTypeMaping(java.sql.Date.class, LocalDateTime.class)
以上配置在生成 base model 时碰到 Date 类型时会生成为 LocalDateTime 类型
addTypeMapping(String, String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
与 addTypeMaping(Class
addTypeMapping(Class<?>, Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.JavaType
addTypeMapping(String, Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.JavaType
addUnknown(Object) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
AesKit - com.jfinal.kit 中的类
完全兼容微信所使用的AES加密方式。
afterJFinalStart() - 类 中的方法com.jfinal.config.JFinalConfig
已过时。
AnsiSqlDialect - com.jfinal.plugin.activerecord.dialect 中的类
AnsiSqlDialect.
AnsiSqlDialect() - 类 的构造器com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
Aop - com.jfinal.aop 中的类
Aop 支持在任意时空便捷使用 Aop
Aop 主要功能:
1:Aop.get(Class) 根据 Class 去创建对象,然后对创建好的对象进行依赖注入
2:Aop.inject(Object) 对传入的对象进行依赖注入
3:Aop.inject(...)
Aop() - 类 的构造器com.jfinal.aop.Aop
AopFactory - com.jfinal.aop 中的类
AopFactory 是工具类 Aop 功能的具体实现,详细用法见 Aop
AopFactory() - 类 的构造器com.jfinal.aop.AopFactory
AopManager - com.jfinal.aop 中的类
AopManager
append(Prop) - 类 中的方法com.jfinal.kit.Prop
append(String, String) - 类 中的方法com.jfinal.kit.Prop
append(String) - 类 中的方法com.jfinal.kit.Prop
append(File, String) - 类 中的方法com.jfinal.kit.Prop
append(File) - 类 中的方法com.jfinal.kit.Prop
append(Prop) - 类 中的静态方法com.jfinal.kit.PropKit
append(String, String) - 类 中的静态方法com.jfinal.kit.PropKit
append(String) - 类 中的静态方法com.jfinal.kit.PropKit
append(File, String) - 类 中的静态方法com.jfinal.kit.PropKit
append(File) - 类 中的静态方法com.jfinal.kit.PropKit
append(CharSequence) - 类 中的方法com.jfinal.template.io.FastStringWriter
append(CharSequence, int, int) - 类 中的方法com.jfinal.template.io.FastStringWriter
append(char) - 类 中的方法com.jfinal.template.io.FastStringWriter
appendIfExists(String, String) - 类 中的方法com.jfinal.kit.Prop
appendIfExists(String) - 类 中的方法com.jfinal.kit.Prop
appendIfExists(File, String) - 类 中的方法com.jfinal.kit.Prop
appendIfExists(File) - 类 中的方法com.jfinal.kit.Prop
appendIfExists(String, String) - 类 中的静态方法com.jfinal.kit.PropKit
appendIfExists(String) - 类 中的静态方法com.jfinal.kit.PropKit
appendIfExists(File, String) - 类 中的静态方法com.jfinal.kit.PropKit
appendIfExists(File) - 类 中的静态方法com.jfinal.kit.PropKit
Arith - com.jfinal.template.expr.ast 中的类
Arithmetic
1:支持 byte short int long float double BigInteger BigDecimal 的 + - * / % 运算
2:支持字符串加法运算
Arith(Sym, Expr, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.Arith
Array - com.jfinal.template.expr.ast 中的类
Array
用法:
1:[1, 2, 3]
2:["a", 1, "b", 2, false, 3.14]
Array(Expr[], Location) - 类 的构造器com.jfinal.template.expr.ast.Array
Array.ArrayListExt - com.jfinal.template.expr.ast 中的类
支持 array.length 表达式
ArrayLengthGetter() - 类 的构造器com.jfinal.template.expr.ast.FieldGetters.ArrayLengthGetter
ArrayListExt(int) - 类 的构造器com.jfinal.template.expr.ast.Array.ArrayListExt
Assign - com.jfinal.template.expr.ast 中的类
Assign
支持三种赋值,其中第二种如果括号中是 ID 或 STR 则演变为第三种是对 map 赋值:
1:ID = expr
2:ID [ expr ] = expr
如果 expr 为 int 或 long 型,则是对 array 赋值
如果 expr 为 ID、STR 型,则是对 map 进行赋值
否则抛异常出来
3:ID [ ID ] = expr 或者 ID [ STR ] = expr
4:支持无限连:id = array[ i = 0 ] = array[1] = 123
Assign(String, Expr, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.Assign
数组赋值表达式
Assign(String, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.Assign
普通赋值表达式
attachment - 类 中的变量com.jfinal.template.stat.Ctrl
attrName - 类 中的变量com.jfinal.plugin.activerecord.generator.ColumnMeta
attrs - 类 中的变量com.jfinal.render.JsonRender
C3p0Plugin - com.jfinal.plugin.c3p0 中的类
The c3p0 datasource plugin.
C3p0Plugin(String, String, String) - 类 的构造器com.jfinal.plugin.c3p0.C3p0Plugin
C3p0Plugin(String, String, String, String) - 类 的构造器com.jfinal.plugin.c3p0.C3p0Plugin
C3p0Plugin(String, String, String, String, Integer, Integer, Integer, Integer, Integer) - 类 的构造器com.jfinal.plugin.c3p0.C3p0Plugin
C3p0Plugin(File) - 类 的构造器com.jfinal.plugin.c3p0.C3p0Plugin
C3p0Plugin(Properties) - 类 的构造器com.jfinal.plugin.c3p0.C3p0Plugin
cache - 类 中的静态变量com.jfinal.json.JFinalJsonKit
Cache - com.jfinal.plugin.redis 中的类
Cache.
Cache() - 类 的构造器com.jfinal.plugin.redis.Cache
Cache(String, JedisPool, ISerializer, IKeyNamingPolicy) - 类 的构造器com.jfinal.plugin.redis.Cache
cache - 类 中的变量com.jfinal.proxy.ProxyFactory
cache - 类 中的静态变量com.jfinal.template.expr.ast.FastFieldGetter
cacheAction(String, String, Controller) - 类 中的方法com.jfinal.plugin.ehcache.CacheInterceptor
CacheInterceptor - com.jfinal.plugin.ehcache 中的类
CacheInterceptor.
CacheInterceptor() - 类 的构造器com.jfinal.plugin.ehcache.CacheInterceptor
CacheKit - com.jfinal.plugin.ehcache 中的类
CacheKit.
CacheKit() - 类 的构造器com.jfinal.plugin.ehcache.CacheKit
cacheMethodProxy(ProxyClass) - 类 中的方法com.jfinal.proxy.ProxyFactory
在生成类被 loadClass 成功以后缓存 MethodProxy,否则 MethodProxyCache
将存进去不健康的 ProxyMethod
CacheName - com.jfinal.plugin.ehcache 中的注释类型
CacheName can configure CacheInterceptor's cache name or EvictInterceptor's evict cache name.
cacheName - 类 中的变量com.jfinal.plugin.redis.RedisPlugin
call() - 接口 中的方法com.jfinal.kit.Func.F00
call() - 接口 中的方法com.jfinal.kit.Func.F01
call(T) - 接口 中的方法com.jfinal.kit.Func.F10
call(T) - 接口 中的方法com.jfinal.kit.Func.F11
call(T, U) - 接口 中的方法com.jfinal.kit.Func.F20
call(T, U) - 接口 中的方法com.jfinal.kit.Func.F21
call(T, U, V) - 接口 中的方法com.jfinal.kit.Func.F30
call(T, U, V) - 接口 中的方法com.jfinal.kit.Func.F31
call(T, U, V, W) - 接口 中的方法com.jfinal.kit.Func.F40
call(T, U, V, W) - 接口 中的方法com.jfinal.kit.Func.F41
call(T, U, V, W, X) - 接口 中的方法com.jfinal.kit.Func.F50
call(T, U, V, W, X) - 接口 中的方法com.jfinal.kit.Func.F51
call(T, U, V, W, X, Y) - 接口 中的方法com.jfinal.kit.Func.F60
call(T, U, V, W, X, Y) - 接口 中的方法com.jfinal.kit.Func.F61
call(T, U, V, W, X, Y, Z) - 接口 中的方法com.jfinal.kit.Func.F70
call(T, U, V, W, X, Y, Z) - 接口 中的方法com.jfinal.kit.Func.F71
call(Connection) - 接口 中的方法com.jfinal.plugin.activerecord.ICallback
Place codes here that need call back by active record plugin.
call(Function<Jedis, R>) - 类 中的方法com.jfinal.plugin.redis.Cache
使用 lambda 开放 Jedis API,建议优先使用本方法
例子 1:
Long ret = Redis.use().call(j -> j.incrBy("key", 1));
例子 2:
Long ret = Redis.use().call(jedis -> {
return jedis.incrBy("key", 1);
});
call(Cache) - 接口 中的方法com.jfinal.plugin.redis.ICallback
call(Function<Jedis, R>) - 类 中的静态方法com.jfinal.plugin.redis.Redis
使用 lambda 开放 Jedis API,建议优先使用本方法
例子 1:
Long ret = Redis.call(j -> j.incrBy("key", 1));
例子 2:
Long ret = Redis.call(jedis -> {
return jedis.incrBy("key", 1);
});
call(String, Function<Jedis, R>) - 类 中的静态方法com.jfinal.plugin.redis.Redis
使用 lambda 开放 Jedis API,建议优先使用本方法
例子:
Long ret = Redis.call("cacheName", j -> j.incrBy("key", 1));
call(Object[]) - 接口 中的方法com.jfinal.proxy.Callback
Call - com.jfinal.template.stat.ast 中的类
Call 调用模板函数,两种用法:
1:常规调用
#@funcName(p1, p2, ..., pn)
2:安全调用,函数被定义才调用,否则跳过
#@funcName?
Call(String, ExprList, boolean) - 类 的构造器com.jfinal.template.stat.ast.Call
call(Env, Scope, ExprList, Writer) - 类 中的方法com.jfinal.template.stat.ast.Define
真正调用模板函数
call(Stat, Env, Scope, T) - 接口 中的方法com.jfinal.template.Template.Func
callback(ICallback<T>) - 类 中的静态方法com.jfinal.plugin.redis.Redis
callback(String, ICallback<T>) - 类 中的静态方法com.jfinal.plugin.redis.Redis
Callback - com.jfinal.proxy 中的接口
Callback
CallDirective - com.jfinal.template.ext.directive 中的类
CallDirective 动态调用模板函数
模板函数的名称与参数都可以动态指定,提升模板函数调用的灵活性
例如:
#call(funcName, p1, p2, ..., pn)
其中 funcName,为函数名,p1、p2、pn 为被调用函数所使用的参数
如果希望模板函数不存在时忽略其调用,添加常量值 true 在第一个参数位置即可
例如:
#call(true, funcName, p1, p2, ..., pn)
TODO 后续优化看一下 ast.Call.java
CallDirective() - 类 的构造器com.jfinal.template.ext.directive.CallDirective
Captcha - com.jfinal.captcha 中的类
验证码
Captcha(String, String, int) - 类 的构造器com.jfinal.captcha.Captcha
验证码构造
Captcha(String, String) - 类 的构造器com.jfinal.captcha.Captcha
Captcha() - 类 的构造器com.jfinal.captcha.Captcha
redis 反序列化需要默认构造方法
CaptchaCache - com.jfinal.captcha 中的类
ICaptchaCache 默认实现,可用于单实例部署
集群部署需自行实现 ICaptchaCache 接口,并使用
CaptchaManager.setCaptchaCache(...)
CaptchaCache() - 类 的构造器com.jfinal.captcha.CaptchaCache
CaptchaManager - com.jfinal.captcha 中的类
CaptchaManager
captchaName - 类 中的静态变量com.jfinal.captcha.CaptchaRender
CaptchaRender - com.jfinal.captcha 中的类
CaptchaRender.
CaptchaRender() - 类 的构造器com.jfinal.captcha.CaptchaRender
CaptchaRender - com.jfinal.ext.render 中的类
已过时。
CaptchaRender(String) - 类 的构造器com.jfinal.ext.render.CaptchaRender
已过时。
Case - com.jfinal.template.stat.ast 中的类
Case
Case(ExprList, StatList, Location) - 类 的构造器com.jfinal.template.stat.ast.Case
CaseInsensitiveContainerFactory - com.jfinal.plugin.activerecord 中的类
CaseInsensitiveContainerFactory.
CaseInsensitiveContainerFactory() - 类 的构造器com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
CaseInsensitiveContainerFactory(boolean) - 类 的构造器com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
CaseInsensitiveContainerFactory.CaseInsensitiveMap <V > - com.jfinal.plugin.activerecord 中的类
CaseInsensitiveContainerFactory.CaseInsensitiveSet - com.jfinal.plugin.activerecord 中的类
CaseInsensitiveMap() - 类 的构造器com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory.CaseInsensitiveMap
CaseInsensitiveSet() - 类 的构造器com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory.CaseInsensitiveSet
CaseSetter - com.jfinal.template.stat.ast 中的接口
CaseSetter
CglibProxyFactory - com.jfinal.ext.proxy 中的类
CglibProxyFactory 用于扩展 cglib 的代理模式,默认不使用
配置方法:
public void configConstant(Constants me) {
ProxyManager.me().setProxyFactory(new CglibProxyFactory());
}
CglibProxyFactory() - 类 的构造器com.jfinal.ext.proxy.CglibProxyFactory
charArray - 类 中的静态变量com.jfinal.captcha.CaptchaRender
charset - 类 中的变量com.jfinal.template.io.EncoderFactory
CharTable - com.jfinal.template.stat 中的类
CharTable 空间换时间优化字符判断性能
负值参数强转 char 会自动变正值,无需判断负值数组下标
isLetter(EOF) 不会下标越界
CharWriter - com.jfinal.template.io 中的类
CharWriter
CharWriter(int) - 类 的构造器com.jfinal.template.io.CharWriter
checkDepth(int, JFinalJsonKit.JsonResult) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
checkUrlPara(int, int) - 类 中的方法com.jfinal.core.Controller
checkUrlPara(int) - 类 中的方法com.jfinal.core.Controller
classLoader - 类 中的静态变量com.jfinal.template.expr.ast.FastFieldGetter
classLoader - 类 中的变量com.jfinal.template.source.ClassPathSource
ClassPathSource - com.jfinal.template.source 中的类
ClassPathSource 用于从 class path 以及 jar 包之中加载模板内容
注意:
1:如果被加载的文件是 class path 中的普通文件,则该文件支持热加载
2:如果被加载的文件处于 jar 包之中,则该文件不支持热加载,jar 包之中的文件在运行时通常不会被修改
在极少数情况下如果需要对 jar 包之中的模板文件进行热加载,可以通过继承 ClassPathSource
的方式进行扩展
3:JFinal Template Engine 开启热加载需要配置 engine.setDevMode(true)
ClassPathSource(String) - 类 的构造器com.jfinal.template.source.ClassPathSource
ClassPathSource(String, String) - 类 的构造器com.jfinal.template.source.ClassPathSource
ClassPathSource(String, String, String) - 类 的构造器com.jfinal.template.source.ClassPathSource
ClassPathSourceFactory - com.jfinal.template.source 中的类
ClassPathSourceFactory 用于配置 Engine 使用 ClassPathSource 加载模板文件
配置示例:
engine.baseTemplatePath(null); // 清掉 base path
engine.setSourceFactory(new ClassPathSourceFactory());
ClassPathSourceFactory() - 类 的构造器com.jfinal.template.source.ClassPathSourceFactory
clazz - 类 中的变量com.jfinal.template.expr.ast.MethodInfo
Clear - com.jfinal.aop 中的注释类型
Clear is used to clear all interceptors or the specified interceptors,
it can not clear the interceptor which declare on method.
clear() - 类 中的方法com.jfinal.config.Routes
clear() - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
clear() - 类 中的静态方法com.jfinal.kit.PropKit
clear() - 类 中的方法com.jfinal.kit.SyncWriteMap
clear() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
clear() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
clear() - 类 中的方法com.jfinal.plugin.activerecord.Model
Remove all attributes of this model.
clear() - 类 中的方法com.jfinal.plugin.activerecord.Record
Remove all columns of this record.
clear() - 类 中的方法com.jfinal.plugin.activerecord.SqlPara
clearCache() - 类 中的静态方法com.jfinal.template.expr.ast.FieldKit
clearCache() - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
clearExcludedAttrs() - 类 中的静态方法com.jfinal.render.JsonRender
clientName - 类 中的变量com.jfinal.plugin.redis.RedisPlugin
close(ResultSet, Statement, Connection) - 类 中的方法com.jfinal.plugin.activerecord.Config
Close ResultSet、Statement、Connection
ThreadLocal support declare transaction.
close(Statement, Connection) - 类 中的方法com.jfinal.plugin.activerecord.Config
close(Connection) - 类 中的方法com.jfinal.plugin.activerecord.Config
close(Jedis) - 类 中的方法com.jfinal.plugin.redis.Cache
close() - 类 中的方法com.jfinal.template.io.ByteWriter
close() - 类 中的方法com.jfinal.template.io.CharWriter
close() - 类 中的方法com.jfinal.template.io.FastStringWriter
colDefaultValueMaxLen - 类 中的变量com.jfinal.plugin.activerecord.generator.TableMeta
colNameMaxLen - 类 中的变量com.jfinal.plugin.activerecord.generator.TableMeta
colTypeMaxLen - 类 中的变量com.jfinal.plugin.activerecord.generator.TableMeta
ColumnMeta - com.jfinal.plugin.activerecord.generator 中的类
ColumnMeta
ColumnMeta() - 类 的构造器com.jfinal.plugin.activerecord.generator.ColumnMeta
columnMetas - 类 中的变量com.jfinal.plugin.activerecord.generator.TableMeta
com.jfinal.aop - 程序包 com.jfinal.aop
com.jfinal.captcha - 程序包 com.jfinal.captcha
com.jfinal.config - 程序包 com.jfinal.config
com.jfinal.core - 程序包 com.jfinal.core
com.jfinal.core.converter - 程序包 com.jfinal.core.converter
com.jfinal.core.paragetter - 程序包 com.jfinal.core.paragetter
com.jfinal.ext.cors - 程序包 com.jfinal.ext.cors
com.jfinal.ext.handler - 程序包 com.jfinal.ext.handler
com.jfinal.ext.interceptor - 程序包 com.jfinal.ext.interceptor
com.jfinal.ext.kit - 程序包 com.jfinal.ext.kit
com.jfinal.ext.proxy - 程序包 com.jfinal.ext.proxy
com.jfinal.ext.render - 程序包 com.jfinal.ext.render
com.jfinal.handler - 程序包 com.jfinal.handler
com.jfinal.i18n - 程序包 com.jfinal.i18n
com.jfinal.json - 程序包 com.jfinal.json
com.jfinal.kit - 程序包 com.jfinal.kit
com.jfinal.log - 程序包 com.jfinal.log
com.jfinal.plugin - 程序包 com.jfinal.plugin
com.jfinal.plugin.activerecord - 程序包 com.jfinal.plugin.activerecord
com.jfinal.plugin.activerecord.builder - 程序包 com.jfinal.plugin.activerecord.builder
com.jfinal.plugin.activerecord.cache - 程序包 com.jfinal.plugin.activerecord.cache
com.jfinal.plugin.activerecord.dialect - 程序包 com.jfinal.plugin.activerecord.dialect
com.jfinal.plugin.activerecord.generator - 程序包 com.jfinal.plugin.activerecord.generator
com.jfinal.plugin.activerecord.sql - 程序包 com.jfinal.plugin.activerecord.sql
com.jfinal.plugin.activerecord.tx - 程序包 com.jfinal.plugin.activerecord.tx
com.jfinal.plugin.c3p0 - 程序包 com.jfinal.plugin.c3p0
com.jfinal.plugin.cron4j - 程序包 com.jfinal.plugin.cron4j
com.jfinal.plugin.druid - 程序包 com.jfinal.plugin.druid
com.jfinal.plugin.ehcache - 程序包 com.jfinal.plugin.ehcache
com.jfinal.plugin.hikaricp - 程序包 com.jfinal.plugin.hikaricp
com.jfinal.plugin.redis - 程序包 com.jfinal.plugin.redis
com.jfinal.plugin.redis.serializer - 程序包 com.jfinal.plugin.redis.serializer
com.jfinal.proxy - 程序包 com.jfinal.proxy
com.jfinal.render - 程序包 com.jfinal.render
com.jfinal.server - 程序包 com.jfinal.server
com.jfinal.template - 程序包 com.jfinal.template
com.jfinal.template.expr - 程序包 com.jfinal.template.expr
com.jfinal.template.expr.ast - 程序包 com.jfinal.template.expr.ast
com.jfinal.template.ext.directive - 程序包 com.jfinal.template.ext.directive
com.jfinal.template.ext.extensionmethod - 程序包 com.jfinal.template.ext.extensionmethod
com.jfinal.template.ext.sharedmethod - 程序包 com.jfinal.template.ext.sharedmethod
com.jfinal.template.ext.spring - 程序包 com.jfinal.template.ext.spring
com.jfinal.template.io - 程序包 com.jfinal.template.io
com.jfinal.template.source - 程序包 com.jfinal.template.source
com.jfinal.template.stat - 程序包 com.jfinal.template.stat
com.jfinal.template.stat.ast - 程序包 com.jfinal.template.stat.ast
com.jfinal.token - 程序包 com.jfinal.token
com.jfinal.upload - 程序包 com.jfinal.upload
com.jfinal.validate - 程序包 com.jfinal.validate
Compare - com.jfinal.template.expr.ast 中的类
Compare
1:支持 byte short int long float double BigInteger BigDecimal 的 == !
Compare(Sym, Expr, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.Compare
compile(ProxyClass) - 类 中的方法com.jfinal.proxy.ProxyCompiler
compiler - 类 中的静态变量com.jfinal.template.expr.ast.FastFieldGetter
compress(StringBuilder) - 类 中的方法com.jfinal.template.stat.Compressor
compress(StringBuilder) - 类 中的方法com.jfinal.template.stat.LineCompressor
compressLine(StringBuilder, int, int, int, StringBuilder) - 类 中的方法com.jfinal.template.stat.LineCompressor
按行压缩
只压缩文本前后的空白字符,文本内部的空白字符不压缩,极大简化压缩算法、提升压缩效率,并且压缩结果也不错
Compressor - com.jfinal.template.stat 中的类
Compressor
压缩规则:
1:为追求性能极致只压缩模板中的静态文本内容,指令输出的内容不压缩,例如 #(blog.content) 输出的内容不会被压缩
由于模板静态内容会被缓存,所以只需压缩一次,性能被最大化
2:多个连续空格字符压缩为一个空格字符
3:空格字符与 '\n' 的组合,压缩为一个 separator 字符。
Compressor() - 类 的构造器com.jfinal.template.stat.Compressor
Compressor(char) - 类 的构造器com.jfinal.template.stat.Compressor
config() - 类 中的方法com.jfinal.aop.InterceptorStack
config() - 类 中的方法com.jfinal.config.Routes
Implement this method to add route, add interceptor and set baseViewPath
config() - 类 中的方法com.jfinal.json.Jackson
config - 类 中的变量com.jfinal.plugin.activerecord.ActiveRecordPlugin
Config - com.jfinal.plugin.activerecord 中的类
Config(String, DataSource, int) - 类 的构造器com.jfinal.plugin.activerecord.Config
Config(String, DataSource, Dialect, boolean, boolean, int, IContainerFactory, ICache) - 类 的构造器com.jfinal.plugin.activerecord.Config
Constructor with full parameters
Config(String, DataSource) - 类 的构造器com.jfinal.plugin.activerecord.Config
Constructor with name and dataSource
Config(String, DataSource, Dialect) - 类 的构造器com.jfinal.plugin.activerecord.Config
Constructor with name, dataSource and dialect
config - 类 中的变量com.jfinal.plugin.activerecord.DbPro
config(Consumer<JedisPoolConfig>) - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
lambda 方式配置 JedisPoolConfig
例子:
RedisPlugin redisPlugin = new RedisPlugin(...);
redisPlugin.config(c -> {
c.setMaxIdle(123456);
});
configConstant(Constants) - 类 中的方法com.jfinal.config.JFinalConfig
Config constant
configEngine(Engine) - 类 中的方法com.jfinal.config.JFinalConfig
Config engine
configHandler(Handlers) - 类 中的方法com.jfinal.config.JFinalConfig
Config handler
configInterceptor(Interceptors) - 类 中的方法com.jfinal.config.JFinalConfig
Config interceptor applied to all actions.
configPlugin(Plugins) - 类 中的方法com.jfinal.config.JFinalConfig
Config plugin
configRoute(Routes) - 类 中的方法com.jfinal.config.JFinalConfig
Config route
conn - 类 中的变量com.jfinal.plugin.activerecord.generator.MetaBuilder
connectionInitSql - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
connectionProperties - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
Const - com.jfinal.core 中的接口
Global constants definition
Const - com.jfinal.template.expr.ast 中的类
STR INT LONG FLOAT DOUBLE TRUE FALSE NULL
Const(Sym, Object) - 类 的构造器com.jfinal.template.expr.ast.Const
INT LONG FLOAT DOUBLE 常量已在 NumTok 中转换成了确切的类型,无需再次转换
Constants - com.jfinal.config 中的类
The constant for JFinal runtime.
Constants() - 类 的构造器com.jfinal.config.Constants
constants - 类 中的变量com.jfinal.core.JFinalFilter
constants - 类 中的变量com.jfinal.render.RenderFactory
contains(String) - 类 中的方法com.jfinal.captcha.CaptchaCache
contains(String) - 类 中的方法com.jfinal.kit.JavaKeyword
contains(Object) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
contains(Class<? extends FieldGetter>) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKit
判断是否包含某个 FieldGetter
contains(Token) - 接口 中的方法com.jfinal.token.ITokenCache
containsAll(Collection<?>) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
containsKey(String) - 类 中的方法com.jfinal.kit.Prop
containsKey(String) - 类 中的静态方法com.jfinal.kit.PropKit
containsKey(Object) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
containsValue(Object) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
content - 类 中的变量com.jfinal.render.QrCodeRender
ContentType - com.jfinal.render 中的枚举
ContentType
TOMCAT-HOME/conf/web.xml
http://tool.oschina.net/commons
contentType - 类 中的静态变量com.jfinal.render.ErrorRender
contentType - 类 中的静态变量com.jfinal.render.JsonRender
http://zh.wikipedia.org/zh/MIME
在wiki中查到: 尚未被接受为正式数据类型的subtype,可以使用x-开始的独立名称(例如application/x-gzip)
所以以下可能要改成 application/x-json
通过使用firefox测试,struts2-json-plugin返回的是 application/json, 所以暂不改为 application/x-json
1: 官方的 MIME type为application/json, 见 http://en.wikipedia.org/wiki/MIME_type
2: IE 不支持 application/json, 在 ajax 上传文件完成后返回 json时 IE 提示下载文件
contentType - 类 中的变量com.jfinal.render.TextRender
contentTypeForIE - 类 中的静态变量com.jfinal.render.JsonRender
contextDestroyed(ServletContextEvent) - 类 中的方法com.jfinal.ext.kit.ElResolverListener
contextInitialized(ServletContextEvent) - 类 中的方法com.jfinal.ext.kit.ElResolverListener
contextPath - 类 中的静态变量com.jfinal.render.RedirectRender
ContextPathHandler - com.jfinal.ext.handler 中的类
Provide a context path to view if you need.
ContextPathHandler() - 类 的构造器com.jfinal.ext.handler.ContextPathHandler
ContextPathHandler(String) - 类 的构造器com.jfinal.ext.handler.ContextPathHandler
contextPathLength - 类 中的变量com.jfinal.core.JFinalFilter
Continue - com.jfinal.template.stat.ast 中的类
Continue
Controller - com.jfinal.core 中的类
Controller
昨夜西风凋碧树。
Controller() - 类 的构造器com.jfinal.core.Controller
controller - 类 中的变量com.jfinal.validate.Validator
controllerFactory - 类 中的变量com.jfinal.core.ActionHandler
ControllerFactory - com.jfinal.core 中的类
ControllerFactory
ControllerFactory() - 类 的构造器com.jfinal.core.ControllerFactory
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.BigDecimalConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.BigIntegerConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.BooleanConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.ByteArrayConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.ByteConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.DateConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.DoubleConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.FloatConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.IntegerConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.LocalDateConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.LocalDateTimeConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.LongConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.ShortConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.SqlDateConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.TimeConverter
convert(String) - 类 中的方法com.jfinal.core.converter.Converters.TimestampConverter
convert(String) - 接口 中的方法com.jfinal.core.converter.IConverter
convert(Class<?>, String) - 类 中的方法com.jfinal.core.converter.TypeConverter
将 String 数据转换为指定的类型
convertDepth - 类 中的变量com.jfinal.json.JFinalJson
Converters - com.jfinal.core.converter 中的类
针对 Integer、Long、Date 等类型实现 IConverter 接口
Converters.BigDecimalConverter - com.jfinal.core.converter 中的类
Converters.BigIntegerConverter - com.jfinal.core.converter 中的类
Converters.BooleanConverter - com.jfinal.core.converter 中的类
Converters.ByteArrayConverter - com.jfinal.core.converter 中的类
Converters.ByteConverter - com.jfinal.core.converter 中的类
Converters.DateConverter - com.jfinal.core.converter 中的类
Converters.DoubleConverter - com.jfinal.core.converter 中的类
Converters.FloatConverter - com.jfinal.core.converter 中的类
Converters.IntegerConverter - com.jfinal.core.converter 中的类
Converters.LocalDateConverter - com.jfinal.core.converter 中的类
Converters.LocalDateTimeConverter - com.jfinal.core.converter 中的类
Converters.LongConverter - com.jfinal.core.converter 中的类
Converters.ShortConverter - com.jfinal.core.converter 中的类
Converters.SqlDateConverter - com.jfinal.core.converter 中的类
Converters.TimeConverter - com.jfinal.core.converter 中的类
Converters.TimestampConverter - com.jfinal.core.converter 中的类
copyInterceptors(List<Class<?>>) - 类 中的方法com.jfinal.proxy.ProxyGenerator
CORSInterceptor - com.jfinal.ext.cors 中的类
CORSInterceptor() - 类 的构造器com.jfinal.ext.cors.CORSInterceptor
CPI - com.jfinal.core 中的类
Cross Package Invoking pattern for package core.
CPI() - 类 的构造器com.jfinal.core.CPI
CPI - com.jfinal.kit 中的类
用于定制个性化 Ret
例子:
CPI.setRetState("success", true, false);
将 Ret 的状态字段名由 "state" 改为 "success",将状态值 "ok" 改为 true、"fail" 改为 false
CPI.setRetState("code", 200, 500);
将 Ret 的状态字段名由 "state" 改为 "code",将状态值 "ok" 改为 200、"fail" 改为 500
CPI.setRetMsg("message")
将 Ret 的消息字段名由 "msg" 改为 "message"
CPI() - 类 的构造器com.jfinal.kit.CPI
CPI - com.jfinal.plugin.activerecord 中的类
Cross Package Invoking pattern for package activerecord.
CPI() - 类 的构造器com.jfinal.plugin.activerecord.CPI
create() - 类 中的静态方法com.jfinal.kit.Kv
create() - 类 中的静态方法com.jfinal.kit.Okv
create(Object, Object) - 类 中的静态方法com.jfinal.kit.Ret
create() - 类 中的静态方法com.jfinal.kit.Ret
create(String) - 类 中的静态方法com.jfinal.template.Engine
Create engine with engine name managed by JFinal
create(String, Consumer<Engine>) - 类 中的静态方法com.jfinal.template.Engine
Create engine with engine name managed by JFinal
Example:
Engine engine = Engine.create("myEngine", e -> {
e.setDevMode(true);
e.setToClassPathSourceFactory();
});
engine.getTemplate("template.html").render(System.out);
>
createCaptcha() - 类 中的方法com.jfinal.captcha.CaptchaRender
createControllerInterceptor(Class<? extends Controller>) - 类 中的方法com.jfinal.aop.InterceptorManager
createIfAbsent(String, Consumer<Engine>) - 类 中的静态方法com.jfinal.template.Engine
Create engine if absent with engine name managed by JFinal
Example:
Engine engine = Engine.createIfAbsent("myEngine", e -> {
e.setDevMode(true);
e.setToClassPathSourceFactory();
});
engine.getTemplate("template.html").render(System.out);
>
createInterceptor(Before) - 类 中的方法com.jfinal.aop.InterceptorManager
createInterceptor(Class<? extends Interceptor>[]) - 类 中的方法com.jfinal.aop.InterceptorManager
createJFinalConfig(String) - 类 中的方法com.jfinal.core.JFinalFilter
createObject(Class<?>) - 类 中的方法com.jfinal.aop.AopFactory
createProxy(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FastFieldGetter
createRender() - 类 中的方法com.jfinal.plugin.ehcache.RenderInfo
createRenderInfo(Render) - 类 中的方法com.jfinal.plugin.ehcache.CacheInterceptor
通过继承 CacheInterceptor 并覆盖此方法支持更多类型的 Render
createServiceInterceptor(Class<?>) - 类 中的方法com.jfinal.aop.InterceptorManager
createToJson(Object) - 类 中的方法com.jfinal.json.JFinalJsonKit
createToken(String, int) - 类 中的方法com.jfinal.core.Controller
Create a token.
createToken() - 类 中的方法com.jfinal.core.Controller
Create a token with default token name and with default seconds of time out.
createToken(String) - 类 中的方法com.jfinal.core.Controller
Create a token with default seconds of time out.
createToken(Controller, String, int) - 类 中的静态方法com.jfinal.token.TokenManager
Create Token.
Cron4jPlugin - com.jfinal.plugin.cron4j 中的类
Cron4jPlugin 封装 cron4j,使用 cron 表达式调试 Task 执行
cron 表达式由五部分组成:分 时 天 月 周
分 :从 0 到 59
时 :从 0 到 23
天 :从 1 到 31,字母 L 可以表示月的最后一天
月 :从 1 到 12,可以别名:jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov" and "dec"
周 :从 0 到 6,0 表示周日,6 表示周六,可以使用别名: "sun", "mon", "tue", "wed", "thu", "fri" and "sat"
数字 n:表示一个具体的时间点,例如 5 * * * * 表示 5 分这个时间点时执行
逗号 , :表示指定多个数值,例如 3,5 * * * * 表示 3 和 5 分这两个时间点执行
减号 -:表示范围,例如 1-3 * * * * 表示 1 分、2 分再到 3 分这三个时间点执行
星号 *:表示每一个时间点,例如 * * * * * 表示每分钟执行
除号 /:表示指定一个值的增加幅度。
Cron4jPlugin() - 类 的构造器com.jfinal.plugin.cron4j.Cron4jPlugin
Cron4jPlugin(String) - 类 的构造器com.jfinal.plugin.cron4j.Cron4jPlugin
Cron4jPlugin(Prop) - 类 的构造器com.jfinal.plugin.cron4j.Cron4jPlugin
Cron4jPlugin(String, String) - 类 的构造器com.jfinal.plugin.cron4j.Cron4jPlugin
Cron4jPlugin(Prop, String) - 类 的构造器com.jfinal.plugin.cron4j.Cron4jPlugin
Ctrl - com.jfinal.template.stat 中的类
Ctrl
封装 AST 执行过程中的控制状态,避免使用 Scope.data 保存控制状态
从而污染用户空间数据,目前仅用于 nullSafe、break、continue、return 控制
未来可根据需求引入更多控制状态
Ctrl() - 类 的构造器com.jfinal.template.stat.Ctrl
fail() - 类 中的静态方法com.jfinal.kit.Ret
fail(Object, Object) - 类 中的静态方法com.jfinal.kit.Ret
fail(String) - 类 中的静态方法com.jfinal.kit.Ret
FakeStaticHandler - com.jfinal.ext.handler 中的类
FakeStaticHandler.
FakeStaticHandler() - 类 的构造器com.jfinal.ext.handler.FakeStaticHandler
FakeStaticHandler(String) - 类 的构造器com.jfinal.ext.handler.FakeStaticHandler
FALSE - 类 中的静态变量com.jfinal.template.expr.ast.Const
FastControllerFactory - com.jfinal.core 中的类
FastControllerFactory 用于回收使用 Controller 对象,提升性能
由于 Controller 会被回收利用,所以使用之前一定要确保 controller
对象中的属性值没有线程安全问题
警告:如果用户自己的 Controller 或者 BaseController 之中声明了属性,
并且这些属性不能被多线程共享,则不能直接使用 FastControllerFactory,
否则会有线程安全问题
jfinal 3.5 版本可以通过覆盖 Controller.
FastControllerFactory() - 类 的构造器com.jfinal.core.FastControllerFactory
FastFieldGetter - com.jfinal.template.expr.ast 中的类
使用 jfinal proxy 机制消除 java.lang.reflect.Method.invoke(...)
FastFieldGetter(FastFieldGetter.Proxy, Method) - 类 的构造器com.jfinal.template.expr.ast.FastFieldGetter
FastFieldGetter() - 类 的构造器com.jfinal.template.expr.ast.FastFieldGetter
仅用于配置 Engine.addFieldGetter(0, new FastFieldGetter());
FastFieldGetter.Proxy - com.jfinal.template.expr.ast 中的接口
代理接口
FastFieldKeyBuilder() - 类 的构造器com.jfinal.template.expr.ast.FieldKeyBuilder.FastFieldKeyBuilder
FastJson - com.jfinal.json 中的类
Json 转换 fastjson 实现.
FastJson() - 类 的构造器com.jfinal.json.FastJson
FastJsonFactory - com.jfinal.json 中的类
IJsonFactory 的 fastjson 实现.
FastJsonFactory() - 类 的构造器com.jfinal.json.FastJsonFactory
FastJsonRecordSerializer - com.jfinal.json 中的类
FastJsonRecordSerializer 支持序列化 activerecord 的 Record 类型
FastJsonRecordSerializer() - 类 的构造器com.jfinal.json.FastJsonRecordSerializer
FastMethodKeyBuilder() - 类 的构造器com.jfinal.template.expr.ast.MethodKeyBuilder.FastMethodKeyBuilder
FastStringWriter - com.jfinal.template.io 中的类
FastStringWriter
由 JDK 中 Writer 改造而来,在其基础之上做了如下改变:
1:添加 char[] value 直接保存 char 值
2:添加 int len 记录数据长度
3:去掉 synchronized 操作
4:添加 MAX_BUFFER_SIZE,限定 value 被重用的最大长度
5:去掉了 close() 方法声明中的 throws IOException,并添加缓存回收逻辑
FastStringWriter(int) - 类 的构造器com.jfinal.template.io.FastStringWriter
FastStringWriter() - 类 的构造器com.jfinal.template.io.FastStringWriter
fatal(String) - 类 中的静态方法com.jfinal.kit.LogKit
fatal(String, Throwable) - 类 中的静态方法com.jfinal.kit.LogKit
fatal(String, Object...) - 类 中的静态方法com.jfinal.kit.LogKit
fatal(String) - 类 中的方法com.jfinal.log.JdkLog
JdkLog fatal is the same as the error.
fatal(String, Throwable) - 类 中的方法com.jfinal.log.JdkLog
JdkLog fatal is the same as the error.
fatal(String, Object...) - 类 中的方法com.jfinal.log.JdkLog
fatal(String) - 类 中的方法com.jfinal.log.Log
fatal(String, Throwable) - 类 中的方法com.jfinal.log.Log
fatal(String, Object...) - 类 中的方法com.jfinal.log.Log
fatal(String) - 类 中的方法com.jfinal.log.Log4jLog
fatal(String, Throwable) - 类 中的方法com.jfinal.log.Log4jLog
fatal(String, Object...) - 类 中的方法com.jfinal.log.Log4jLog
fatal(String) - 类 中的方法com.jfinal.log.Slf4jLog
fatal(String, Throwable) - 类 中的方法com.jfinal.log.Slf4jLog
fatal(String, Object...) - 类 中的方法com.jfinal.log.Slf4jLog
fatal(String) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
fatal(String, Throwable) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
fatal(String, Object...) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
Field - com.jfinal.template.expr.ast 中的类
Field
field 表达式取值优先次序,以 user.name 为例
1:假如 user.getName() 存在,则优先调用
2:假如 user 具有 public name 属性,则取 user.name 属性值
3:假如 user 为 Model 子类,则调用 user.get("name")
4:假如 user 为 Record,则调用 user.get("name")
5:假如 user 为 Map,则调用 user.get("name")
Field(Expr, String, Location) - 类 的构造器com.jfinal.template.expr.ast.Field
field - 类 中的变量com.jfinal.template.expr.ast.FieldGetters.RealFieldGetter
fieldFromBytes(byte[]) - 类 中的方法com.jfinal.plugin.redis.Cache
fieldFromBytes(byte[]) - 类 中的方法com.jfinal.plugin.redis.serializer.FstSerializer
fieldFromBytes(byte[]) - 接口 中的方法com.jfinal.plugin.redis.serializer.ISerializer
fieldFromBytes(byte[]) - 类 中的方法com.jfinal.plugin.redis.serializer.JdkSerializer
FieldGetter - com.jfinal.template.expr.ast 中的类
FieldGetter 用于支持 target.field 表达式的取值,
以及支持用户扩展自定义的 FieldGetter 实现方式
FieldGetter() - 类 的构造器com.jfinal.template.expr.ast.FieldGetter
FieldGetters - com.jfinal.template.expr.ast 中的类
FieldGetters 封装官方默认 FieldGetter 实现
FieldGetters() - 类 的构造器com.jfinal.template.expr.ast.FieldGetters
FieldGetters.ArrayLengthGetter - com.jfinal.template.expr.ast 中的类
ArrayLengthGetter
获取数组长度: array.length
FieldGetters.GetterMethodFieldGetter - com.jfinal.template.expr.ast 中的类
GetterMethodFieldGetter
使用 getter 方法获取 target.field 表达式的值
FieldGetters.IsMethodFieldGetter - com.jfinal.template.expr.ast 中的类
IsMethodFieldGetter
使用 target.isXxx() 方法获取值,默认不启用该功能,用户可以通过如下方式启用:
Engine.addLastFieldGetter(new FieldGetters.IsMethodFieldGetter());
FieldGetters.MapFieldGetter - com.jfinal.template.expr.ast 中的类
MapFieldGetter
使用 Map.get(Object) 获取值
FieldGetters.ModelFieldGetter - com.jfinal.template.expr.ast 中的类
ModelFieldGetter
使用 Model.get(String) 获取值
FieldGetters.NullFieldGetter - com.jfinal.template.expr.ast 中的类
NullFieldGetter
用于消除 FieldKit.getFieldGetter(...)
FieldGetters.RealFieldGetter - com.jfinal.template.expr.ast 中的类
RealFieldGetter
使用 target.field 获取值
FieldGetters.RecordFieldGetter - com.jfinal.template.expr.ast 中的类
RecordFieldGetter
使用 Record.get(String) 获取值
FieldKey(int, long) - 类 的构造器com.jfinal.template.expr.ast.FieldKeyBuilder.FieldKey
FieldKeyBuilder - com.jfinal.template.expr.ast 中的类
FieldKeyBuilder
用于生成缓存 FieldGetter 的 key
FieldKeyBuilder() - 类 的构造器com.jfinal.template.expr.ast.FieldKeyBuilder
FieldKeyBuilder.FastFieldKeyBuilder - com.jfinal.template.expr.ast 中的类
FastFieldKeyBuilder
FieldKeyBuilder.FieldKey - com.jfinal.template.expr.ast 中的类
FieldKey
FieldKey 用于封装 targetClass、fieldName 这两部分的 hash 值,
确保不会出现 key 值碰撞
这两部分 hash 值在不同 class 与 field 的组合下出现碰撞的
概率完全可以忽略不计
备忘:
可以考虑用 ThreadLocal 重用 FieldKey 对象,但要注意放入 Map fieldGetterCache
中的 FieldKey 对象需要 clone 出来,确保线程安全。
FieldKeyBuilder.StrictFieldKeyBuilder - com.jfinal.template.expr.ast 中的类
StrictFieldKeyBuilder
FieldKit - com.jfinal.template.expr.ast 中的类
FieldKit
FieldKit() - 类 的构造器com.jfinal.template.expr.ast.FieldKit
fieldSetFromBytesSet(Set<byte[]>, Set<Object>) - 类 中的方法com.jfinal.plugin.redis.Cache
fieldsToBytesArray(Object...) - 类 中的方法com.jfinal.plugin.redis.Cache
fieldToBytes(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
fieldToBytes(Object) - 类 中的方法com.jfinal.plugin.redis.serializer.FstSerializer
fieldToBytes(Object) - 接口 中的方法com.jfinal.plugin.redis.serializer.ISerializer
fieldToBytes(Object) - 类 中的方法com.jfinal.plugin.redis.serializer.JdkSerializer
file - 类 中的变量com.jfinal.render.FileRender
FileGetter - com.jfinal.core.paragetter 中的类
FileGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.FileGetter
FileKit - com.jfinal.kit 中的类
FileKit.
FileKit() - 类 的构造器com.jfinal.kit.FileKit
fileName - 类 中的变量com.jfinal.template.source.ClassPathSource
fileObjects - 类 中的变量com.jfinal.proxy.ProxyCompiler.MyJavaFileManager
FileRender - com.jfinal.render 中的类
FileRender.
FileRender(File) - 类 的构造器com.jfinal.render.FileRender
FileRender(File, String) - 类 的构造器com.jfinal.render.FileRender
FileRender(String) - 类 的构造器com.jfinal.render.FileRender
FileRender(String, String) - 类 的构造器com.jfinal.render.FileRender
FileSource - com.jfinal.template.source 中的类
FileSource 用于从普通文件中加载模板内容
FileSource(String, String, String) - 类 的构造器com.jfinal.template.source.FileSource
FileSource(String, String) - 类 的构造器com.jfinal.template.source.FileSource
FileSourceFactory - com.jfinal.template.source 中的类
FileSourceFactory 用于配置 Engine 使用 FileSource 加载模板文件
注意:
FileSourceFactory 为模板引擎默认配置
FileSourceFactory() - 类 的构造器com.jfinal.template.source.FileSourceFactory
fillInStackTrace() - 异常错误 中的方法com.jfinal.core.ActionException
异常构造函数会调用 fillInStackTrace() 构建整个调用栈,消耗较大
而 ActionException 无需使用调用栈信息,覆盖此方法用于提升性能
fillInStackTrace() - 异常错误 中的方法com.jfinal.plugin.activerecord.NestedTransactionHelpException
异常构造函数会调用 fillInStackTrace() 构建整个调用栈,消耗较大
而 NestedTransactionHelpException 无需使用调用栈信息,覆盖
此方法用于提升性能
fillInStackTrace() - 异常错误 中的方法com.jfinal.validate.ValidateException
异常构造函数会调用 fillInStackTrace() 构建整个调用栈,消耗较大
而 ValidateException 无需使用调用栈信息,覆盖此方法用于提升性能
fillStatement(PreparedStatement, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
fillStatement(PreparedStatement, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
fillStatement(PreparedStatement, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
fillStatement(PreparedStatement, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
fillStatement(PreparedStatement, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
fillStatement(PreparedStatement, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
fillStatement(PreparedStatement, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
fillStatement(PreparedStatement, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
fillStatement(PreparedStatement, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
fillStatement(PreparedStatement, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
fillStatement(PreparedStatement, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
fillStatement(PreparedStatement, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
fillStatementHandleDateType(PreparedStatement, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
fillStatement 时处理日期类型
fillStatementHandleDateType(PreparedStatement, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
fillStatement 时处理日期类型
filter(Predicate<URL>) - 类 中的静态方法com.jfinal.core.PathScanner
过滤被扫描的资源,提升安全性
例子:
PathScanner.filter(url -> {
String res = url.toString();
// 如果资源在 jar 包之中,并且 jar 包文件名不包含 "my-project" 则过滤掉
// 避免第三方 jar 包中的 Controller 被扫描到,提高安全性
if (res.contains(".jar") && !
filter(int) - 类 中的方法com.jfinal.plugin.activerecord.Model
filter () 方法将被 save()、update() 两个方法回调,
子类可通过覆盖此方法,实现类似于过滤 XSS 攻击脚本的功能
FILTER_BY_SAVE - 类 中的静态变量com.jfinal.plugin.activerecord.Model
FILTER_BY_UPDATE - 类 中的静态变量com.jfinal.plugin.activerecord.Model
filterList - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
filters - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
finalFileName - 类 中的变量com.jfinal.template.source.ClassPathSource
find(Connection, String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
find(String, Connection, String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
find() - 类 中的方法com.jfinal.plugin.activerecord.DaoTemplate
find(String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
find(String) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
find(SqlPara) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
find(Config, Connection, String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
find(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
find(String) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
find(SqlPara) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
find() - 类 中的方法com.jfinal.plugin.activerecord.DbTemplate
find(Config, Connection, String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find model.
find(Config, String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
find(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find model.
find(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
find(SqlPara) - 类 中的方法com.jfinal.plugin.activerecord.Model
findAll(String) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
findAll(String) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
findAll() - 类 中的方法com.jfinal.plugin.activerecord.Model
findByCache(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.DaoTemplate
findByCache(String, Object, String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
Find Record by cache.
findByCache(String, Object, String) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
findByCache(String, Object, String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Find Record by cache.
findByCache(String, Object, String) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
findByCache(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.DbTemplate
findByCache(String, Object, String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find model by cache.
findByCache(String, Object, String) - 类 中的方法com.jfinal.plugin.activerecord.Model
findById(String, Object) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
Find record by id with default primary key.
findById(String, String, Object) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
findById(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Find record by id with default primary key.
findById(String, String, Object) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
findById(Object) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find model by id.
findByIdLoadColumns(Object, String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find model by id and load specific columns only.
findByIdLoadColumns(Object[], String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find model by composite id values and load specific columns only.
findByIds(String, String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
Find record by ids.
findByIds(String, String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Find record by ids.
findByIds(Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find model by composite id values.
findClass(String) - 类 中的方法com.jfinal.proxy.ProxyClassLoader
findFirst() - 类 中的方法com.jfinal.plugin.activerecord.DaoTemplate
findFirst(String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
Find first record.
findFirst(String) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
findFirst(SqlPara) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
findFirst(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Find first record.
findFirst(String) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
findFirst(SqlPara) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
findFirst() - 类 中的方法com.jfinal.plugin.activerecord.DbTemplate
findFirst(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find first model.
findFirst(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
findFirst(SqlPara) - 类 中的方法com.jfinal.plugin.activerecord.Model
findFirstByCache(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.DaoTemplate
findFirstByCache(String, Object, String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
Find first record by cache.
findFirstByCache(String, Object, String) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
findFirstByCache(String, Object, String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Find first record by cache.
findFirstByCache(String, Object, String) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
findFirstByCache(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.DbTemplate
findFirstByCache(String, Object, String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
Find first model by cache.
findFirstByCache(String, Object, String) - 类 中的方法com.jfinal.plugin.activerecord.Model
firstCharToLowerCase(String) - 类 中的静态方法com.jfinal.kit.StrKit
首字母变小写
firstCharToUpperCase(String) - 类 中的静态方法com.jfinal.kit.StrKit
首字母变大写
FLOAT - 类 中的静态变量com.jfinal.template.expr.ast.Arith
FloatConverter() - 类 的构造器com.jfinal.core.converter.Converters.FloatConverter
FloatExt - com.jfinal.template.ext.extensionmethod 中的类
针对 java.lang.Float 的扩展方法
用法:
#if(value.toInt() == 123)
FloatExt() - 类 的构造器com.jfinal.template.ext.extensionmethod.FloatExt
FloatGetter - com.jfinal.core.paragetter 中的类
FloatGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.FloatGetter
FloatingDecimal - com.jfinal.template.io 中的类
FloatingDecimal(double) - 类 的构造器com.jfinal.template.io.FloatingDecimal
FloatingDecimal(float) - 类 的构造器com.jfinal.template.io.FloatingDecimal
FloatingWriter - com.jfinal.template.io 中的类
FloatingWriter
FloatingWriter() - 类 的构造器com.jfinal.template.io.FloatingWriter
flush() - 类 中的方法com.jfinal.template.io.ByteWriter
flush() - 类 中的方法com.jfinal.template.io.CharWriter
flush() - 类 中的方法com.jfinal.template.io.FastStringWriter
flush() - 类 中的方法com.jfinal.template.io.Writer
flushAll() - 类 中的方法com.jfinal.plugin.redis.Cache
删除所有 db 的所有数据
flushDB() - 类 中的方法com.jfinal.plugin.redis.Cache
删除当前 db 所有数据
fnv1a64(String) - 类 中的静态方法com.jfinal.kit.HashKit
FNV_OFFSET_BASIS_64 - 类 中的静态变量com.jfinal.kit.HashKit
FNV_PRIME_64 - 类 中的静态变量com.jfinal.kit.HashKit
For - com.jfinal.template.stat.ast 中的类
For 循环控制,支持 List、Map、数组、Collection、Iterator、Iterable
Enumeration、null 以及任意单个对象的迭代,简单说是支持所有对象迭代
主要用法:
1:#for(item : list) #(item) #end
2:#for(item : list) #(item) #else content #end
3:#for(i=0; i<9; i++) #(item) #end
4:#for(i=0; i<9; i++) #(item) #else content #end
For(ForCtrl, StatList, Stat) - 类 的构造器com.jfinal.template.stat.ast.For
ForCtrl - com.jfinal.template.expr.ast 中的类
forCtrl : ID : expression
| exprList?
ForCtrl(Id, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.ForCtrl
ID : expr
ForCtrl(ExprList, Expr, ExprList, Location) - 类 的构造器com.jfinal.template.expr.ast.ForCtrl
exprList?
forDbDeleteById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forDbDeleteById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forDbDeleteById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forDbDeleteById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forDbDeleteById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forDbDeleteById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forDbDeleteById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
forDbFindById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forDbFindById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forDbFindById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forDbFindById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forDbFindById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forDbFindById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forDbFindById(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
forDbSave(String, String[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forDbSave(String, String[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forDbSave(String, String[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
Do not delete the String[] pKeys parameter, the element of pKeys needs to trim()
forDbSave(String, String[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forDbSave(String, String[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forDbSave(String, String[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forDbSave(String, String[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
forDbUpdate(String, String[], Object[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forDbUpdate(String, String[], Object[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forDbUpdate(String, String[], Object[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forDbUpdate(String, String[], Object[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forDbUpdate(String, String[], Object[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forDbUpdate(String, String[], Object[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forDbUpdate(String, String[], Object[], Record, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
ForEntry - com.jfinal.template.stat.ast 中的类
ForEntry 包装 HashMap、LinkedHashMap 等 Map 类型的 Entry 对象
ForEntry() - 类 的构造器com.jfinal.template.stat.ast.ForEntry
forFindAll(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forFindAll(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forFindAll(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forIE - 类 中的变量com.jfinal.render.JsonRender
forIE() - 类 中的方法com.jfinal.render.JsonRender
ForIteratorStatus - com.jfinal.template.stat.ast 中的类
ForIteratorStatus
封装 #for( id : expr) 迭代语句状态,便于模板中获取
使用以下表达式可以模板中获取迭代状态:
for.size 被迭代集合元素数量,不支持 Iterator 与 Iterable
for.index 从 0 下始的下标
for.count 从 1 开始的计数器
for.first 是否第一个元素
for.last 是否最后一个元素
for.odd 是否第奇数个元素
for.even 是否第偶数个元素
for.outer 获取外层 for 对象,便于获取外层 for 循环状态
例如: for.outer.index
ForIteratorStatus(Object, Object, Location) - 类 的构造器com.jfinal.template.stat.ast.ForIteratorStatus
ForLoopStatus - com.jfinal.template.stat.ast 中的类
ForLoopStatus
封装 #for( init; cond; update) 循环的状态,便于模板中获取
如下表达式可从模板中获取循环状态:
for.index 从 0 下始的下标
for.count 从 1 开始的计数器
for.first 是否第一个元素
for.odd 是否第奇数个元素
for.even 是否第偶数个元素
for.outer 获取外层 for 对象,便于获取外层 for 循环状态
例如: for.outer.index
注意:比迭代型循环语句少支持两个状态取值表达式:for.size、for.last
ForLoopStatus(Object) - 类 的构造器com.jfinal.template.stat.ast.ForLoopStatus
format(String, Object...) - 类 中的方法com.jfinal.i18n.Res
Get the message value from ResourceBundle by the key then format with the arguments.
format(LocalDateTime, String) - 类 中的静态方法com.jfinal.kit.TimeKit
按指定 pattern 将 LocalDateTime 转换成 String
例如:format(LocalDateTime.now(), "yyyy-MM-dd HH:mm:ss")
format(LocalDate, String) - 类 中的静态方法com.jfinal.kit.TimeKit
按指定 pattern 将 LocalDate 转换成 String
format(LocalTime, String) - 类 中的静态方法com.jfinal.kit.TimeKit
按指定 pattern 将 LocalTime 转换成 String
format(Date, String) - 类 中的静态方法com.jfinal.kit.TimeKit
按指定 pattern 将 Date 转换成 String
例如:format(new Date(), "yyyy-MM-dd HH:mm:ss")
formats - 类 中的变量com.jfinal.template.io.Writer
forModelDeleteById(Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forModelDeleteById(Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forModelDeleteById(Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forModelDeleteById(Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forModelDeleteById(Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forModelDeleteById(Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forModelDeleteById(Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
forModelFindById(Table, String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forModelFindById(Table, String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forModelFindById(Table, String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forModelFindById(Table, String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forModelFindById(Table, String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forModelFindById(Table, String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forModelFindById(Table, String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
forModelSave(Table, Map<String, Object>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forModelSave(Table, Map<String, Object>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forModelSave(Table, Map<String, Object>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forModelSave(Table, Map<String, Object>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forModelSave(Table, Map<String, Object>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forModelSave(Table, Map<String, Object>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forModelSave(Table, Map<String, Object>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
forModelUpdate(Table, Map<String, Object>, Set<String>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forModelUpdate(Table, Map<String, Object>, Set<String>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forModelUpdate(Table, Map<String, Object>, Set<String>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forModelUpdate(Table, Map<String, Object>, Set<String>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forModelUpdate(Table, Map<String, Object>, Set<String>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forModelUpdate(Table, Map<String, Object>, Set<String>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forModelUpdate(Table, Map<String, Object>, Set<String>, StringBuilder, List<Object>) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
forPaginate(int, int, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
SELECT * FROM subject t1 WHERE (SELECT count(*) FROM subject t2 WHERE t2.id < t1.id AND t2.key = '123') > = 10 AND (SELECT count(*) FROM subject t2 WHERE t2.id < t1.id AND t2.key = '123') < 20 AND t1.key = '123'
forPaginate(int, int, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forPaginate(int, int, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forPaginate(int, int, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forPaginate(int, int, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forPaginate(int, int, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forPaginate(int, int, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
sql.replaceFirst("(?
forPaginateTotalRow(String, String, Object) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
为分页方法生成查询 totalRow 值的 sql
forTableBuilderDoBuild(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
forTableBuilderDoBuild(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
forTableBuilderDoBuild(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.MysqlDialect
forTableBuilderDoBuild(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
forTableBuilderDoBuild(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
forTableBuilderDoBuild(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
forTableBuilderDoBuild(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.SqlServerDialect
forwardAction(String) - 类 中的方法com.jfinal.core.Controller
Forward to an action
ForwardActionRender - com.jfinal.core 中的类
ForwardActionRender
ForwardActionRender(String) - 类 的构造器com.jfinal.core.ForwardActionRender
FREE_MARKER_RENDER - 类 中的静态变量com.jfinal.plugin.ehcache.RenderType
FreeMarkerRender - com.jfinal.render 中的类
FreeMarkerRender.
FreeMarkerRender(String) - 类 的构造器com.jfinal.render.FreeMarkerRender
FstSerializer - com.jfinal.plugin.redis.serializer 中的类
FstSerializer.
FstSerializer() - 类 的构造器com.jfinal.plugin.redis.serializer.FstSerializer
Func - com.jfinal.kit 中的接口
lambda 函数工具箱,主要用来解决 JDK 函数接口参数过少的问题,同时还降低了学习成本
JDK java.util.function 包里面的函数接口有如下缺点:
1:设计繁琐,相比动态语言的闭包在理解和学习成本上要高
2:函数支持的参数过少,超过两个参数时就没法使用了
3:基于 java 接口的闭包实现方案,转移了用户对于函数本身这个核心要点的关注,
接口名、方法名带来了噪声干扰
Func.F00 - com.jfinal.kit 中的接口
0 参 0 返回函数
Func.F01 <R > - com.jfinal.kit 中的接口
0 参 1 返回函数
Func.F10 <T > - com.jfinal.kit 中的接口
1 参 0 返回函数
Func.F11 <T ,R > - com.jfinal.kit 中的接口
1 参 1 返回函数
Func.F20 <T ,U > - com.jfinal.kit 中的接口
2 参 0 返回函数
Func.F21 <T ,U ,R > - com.jfinal.kit 中的接口
2 参 1 返回函数
Func.F30 <T ,U ,V > - com.jfinal.kit 中的接口
3 参 0 返回函数
Func.F31 <T ,U ,V ,R > - com.jfinal.kit 中的接口
3 参 1 返回函数
Func.F40 <T ,U ,V ,W > - com.jfinal.kit 中的接口
4 参 0 返回函数
Func.F41 <T ,U ,V ,W ,R > - com.jfinal.kit 中的接口
4 参 1 返回函数
Func.F50 <T ,U ,V ,W ,X > - com.jfinal.kit 中的接口
5 参 0 返回函数
Func.F51 <T ,U ,V ,W ,X ,R > - com.jfinal.kit 中的接口
5 参 1 返回函数
Func.F60 <T ,U ,V ,W ,X ,Y > - com.jfinal.kit 中的接口
6 参 0 返回函数
Func.F61 <T ,U ,V ,W ,X ,Y ,R > - com.jfinal.kit 中的接口
6 参 1 返回函数
Func.F70 <T ,U ,V ,W ,X ,Y ,Z > - com.jfinal.kit 中的接口
7 参 0 返回函数
Func.F71 <T ,U ,V ,W ,X ,Y ,Z ,R > - com.jfinal.kit 中的接口
7 参 1 返回函数
funcNameExpr - 类 中的变量com.jfinal.template.ext.directive.CallDirective
functionMap - 类 中的变量com.jfinal.template.Env
genAesKey() - 类 中的静态方法com.jfinal.kit.AesKit
genBaseModelContent(TableMeta) - 类 中的方法com.jfinal.plugin.activerecord.generator.BaseModelGenerator
genCell(int, String, String, String, String, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
genColumn(TableMeta, ColumnMeta, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
generate(HttpServletRequest) - 类 中的方法com.jfinal.ext.kit.SessionIdKit
generate(List<TableMeta>) - 类 中的方法com.jfinal.plugin.activerecord.generator.BaseModelGenerator
generate(List<TableMeta>) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
generate() - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
generate(List<TableMeta>) - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
generate(List<TableMeta>) - 类 中的方法com.jfinal.plugin.activerecord.generator.ModelGenerator
generate(Class<?>) - 类 中的方法com.jfinal.proxy.ProxyGenerator
generateChainSetter - 类 中的变量com.jfinal.plugin.activerecord.generator.BaseModelGenerator
generateDaoInModel - 类 中的变量com.jfinal.plugin.activerecord.generator.ModelGenerator
generateDataDictionary - 类 中的变量com.jfinal.plugin.activerecord.generator.Generator
generateKey() - 类 中的静态方法com.jfinal.proxy.ProxyMethodCache
generateNullValue - 类 中的变量com.jfinal.json.Jackson
generateRandomStr(int) - 类 中的静态方法com.jfinal.kit.HashKit
generateRemarks - 类 中的变量com.jfinal.plugin.activerecord.generator.MetaBuilder
generateSalt(int) - 类 中的静态方法com.jfinal.kit.HashKit
md5 128bit 16bytes
sha1 160bit 20bytes
sha256 256bit 32bytes
sha384 384bit 48bytes
sha512 512bit 64bytes
generateSaltForSha256() - 类 中的静态方法com.jfinal.kit.HashKit
generateSaltForSha512() - 类 中的静态方法com.jfinal.kit.HashKit
generateTable(TableMeta, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
generateView - 类 中的变量com.jfinal.plugin.activerecord.generator.MetaBuilder
Generator - com.jfinal.plugin.activerecord.generator 中的类
生成器
1:生成时会强制覆盖 Base model、MappingKit、DataDictionary,建议不要修改三类文件,在数据库有变化重新生成一次便可
2:生成 Model 不会覆盖已经存在的文件,Model 通常会被人为修改和维护
3:MappingKit 文件默认会在生成 Model 文件的同时生成
4:DataDictionary 文件默认不会生成。
Generator(DataSource, String, String, String, String) - 类 的构造器com.jfinal.plugin.activerecord.generator.Generator
构造 Generator,生成 BaseModel、Model、MappingKit 三类文件,其中 MappingKit 输出目录与包名与 Model相同
Generator(DataSource, String, String) - 类 的构造器com.jfinal.plugin.activerecord.generator.Generator
构造 Generator,只生成 baseModel
Generator(DataSource, BaseModelGenerator) - 类 的构造器com.jfinal.plugin.activerecord.generator.Generator
Generator(DataSource, BaseModelGenerator, ModelGenerator) - 类 的构造器com.jfinal.plugin.activerecord.generator.Generator
使用指定 BaseModelGenerator、ModelGenerator 构造 Generator
生成 BaseModel、Model、MappingKit 三类文件,其中 MappingKit 输出目录与包名与 Model相同
generator - 类 中的静态变量com.jfinal.template.expr.ast.FastFieldGetter
genModelContent(TableMeta) - 类 中的方法com.jfinal.plugin.activerecord.generator.ModelGenerator
genSeparateLine(TableMeta) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
genTableHead(TableMeta, StringBuilder) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
get(Class<T>) - 类 中的静态方法com.jfinal.aop.Aop
get(Class<T>) - 类 中的方法com.jfinal.aop.AopFactory
get(String) - 类 中的方法com.jfinal.captcha.CaptchaCache
get(String) - 接口 中的方法com.jfinal.captcha.ICaptchaCache
get(String) - 类 中的方法com.jfinal.core.Controller
get(String, String) - 类 中的方法com.jfinal.core.Controller
get(int) - 类 中的方法com.jfinal.core.Controller
get(int, String) - 类 中的方法com.jfinal.core.Controller
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.BeanGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.BigDecimalGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.BigIntegerGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.BooleanGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.DateGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.DoubleGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.EnumGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.FileGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.FloatGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.IntegerArrayGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.IntegerGetter
get(Action, Controller) - 接口 中的方法com.jfinal.core.paragetter.IParaGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.LongArrayGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.LongGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.ModelGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.NullGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.NullParaProcessor
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.ParaProcessor
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.RawDataGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.ShortGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.SqlDateGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.StringArrayGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.StringGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.TimeGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.TimestampGetter
get(Action, Controller) - 类 中的方法com.jfinal.core.paragetter.UploadFileGetter
GET - com.jfinal.ext.interceptor 中的类
Accept GET method only.
GET() - 类 的构造器com.jfinal.ext.interceptor.GET
get(Class<T>) - 类 中的方法com.jfinal.ext.proxy.CglibProxyFactory
get(String) - 类 中的方法com.jfinal.i18n.Res
Get the message value from ResourceBundle of the related Locale.
get(String, Map<String, String>, Map<String, String>) - 类 中的静态方法com.jfinal.kit.HttpKit
Send GET request
get(String, Map<String, String>) - 类 中的静态方法com.jfinal.kit.HttpKit
get(String) - 类 中的静态方法com.jfinal.kit.HttpKit
get(String) - 类 中的方法com.jfinal.kit.Prop
get(String, String) - 类 中的方法com.jfinal.kit.Prop
get(String) - 类 中的静态方法com.jfinal.kit.PropKit
get(String, String) - 类 中的静态方法com.jfinal.kit.PropKit
get(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.cache.EhCache
get(String, Object) - 接口 中的方法com.jfinal.plugin.activerecord.cache.ICache
get(Object) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
get(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column value of any mysql type
get(String, Object) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of any mysql type.
get(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of any mysql type
get(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of any mysql type.
get(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of any mysql type
get(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of any mysql type.
get(String, Object) - 类 中的静态方法com.jfinal.plugin.ehcache.CacheKit
get(String, Object, IDataLoader) - 类 中的静态方法com.jfinal.plugin.ehcache.CacheKit
get(String, Object, Class<? extends IDataLoader>) - 类 中的静态方法com.jfinal.plugin.ehcache.CacheKit
get(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
返回 key 所关联的 value 值
如果 key 不存在那么返回特殊值 nil 。
get(Class<T>) - 类 中的静态方法com.jfinal.proxy.Proxy
获取代理对象
get(Class<T>) - 类 中的方法com.jfinal.proxy.ProxyFactory
get(Long) - 类 中的静态方法com.jfinal.proxy.ProxyMethodCache
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FastFieldGetter
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetter
获取 target.fieldName 表达式的值
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.ArrayLengthGetter
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.GetterMethodFieldGetter
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.IsMethodFieldGetter
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.MapFieldGetter
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.ModelFieldGetter
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.NullFieldGetter
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.RealFieldGetter
get(Object, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.RecordFieldGetter
get(int) - 类 中的方法com.jfinal.template.expr.ast.RangeArray.RangeList
get(Object) - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
覆盖 HashMap 的 get
get(Object) - 类 中的方法com.jfinal.template.stat.Scope
获取变量
自内向外在作用域栈中查找变量,返回最先找到的变量
getAction(String, String[]) - 类 中的方法com.jfinal.core.ActionHandler
子类覆盖 getAction 方法可以定制路由功能
getAction(String, String[]) - 类 中的方法com.jfinal.core.ActionMapping
Support four types of url
1: http://abc.com/controllerPath ---> 00
2: http://abc.com/controllerPath/para ---> 01
3: http://abc.com/controllerPath/method ---> 10
4: http://abc.com/controllerPath/method/para ---> 11
The controllerPath can also contains "/"
Example: http://abc.com/uvw/xyz/method/para
getAction(Controller) - 类 中的静态方法com.jfinal.core.CPI
getAction(String, String[]) - 类 中的方法com.jfinal.core.JFinal
getActionHandler() - 类 中的方法com.jfinal.config.Handlers
getActionKey() - 类 中的方法com.jfinal.aop.Invocation
Return the action key.
getActionKey() - 类 中的方法com.jfinal.core.Action
getActionKey() - 类 中的方法com.jfinal.validate.Validator
Return the action key of this action.
getActionMappingFunc() - 类 中的方法com.jfinal.config.Constants
getActionMethod() - 类 中的方法com.jfinal.validate.Validator
Return the method of this action.
getActionMethodName() - 类 中的方法com.jfinal.validate.Validator
Return the method name of this action.
getActionReporter() - 类 中的方法com.jfinal.config.Constants
getActionUrl() - 类 中的方法com.jfinal.core.ForwardActionRender
getActualExpr() - 类 中的方法com.jfinal.template.expr.ast.ExprList
持有 ExprList 的指令可以通过此方法提升 AST 执行性能
1:当 exprArray.length == 1 时返回 exprArray[0]
2:当 exprArray.length == 0 时返回 NullExpr
3:其它情况返回 ExprList 自身
意义在于,当满足前面两个条件时,避免掉了 ExprList.eval(...)
getActualStat() - 类 中的方法com.jfinal.template.stat.ast.StatList
持有 StatList 的指令可以通过此方法提升 AST 执行性能
1:当 statArray.length > 1 时返回 StatList 自身
2:当 statArray.length == 1 时返回 statArray[0]
3:其它情况返回 NullStat
意义在于,当满足前面两个条件时,避免掉了 StatList.exec(...)
getAll() - 接口 中的方法com.jfinal.token.ITokenCache
getAllActionKeys() - 类 中的方法com.jfinal.core.ActionMapping
getAllActionKeys() - 类 中的方法com.jfinal.core.JFinal
getAopFactory() - 类 中的方法com.jfinal.aop.AopManager
getArg(int) - 类 中的方法com.jfinal.aop.Invocation
getArgs() - 类 中的方法com.jfinal.aop.Invocation
getAs(Object) - 类 中的方法com.jfinal.kit.Kv
getAs(Object) - 类 中的方法com.jfinal.kit.Okv
getAs(Object) - 类 中的方法com.jfinal.kit.Ret
getAttachment() - 类 中的方法com.jfinal.template.stat.Ctrl
getAttr(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
getAttr(String, T) - 类 中的方法com.jfinal.core.Controller
getAttrForInt(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
getAttrForStr(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
getAttribute(String) - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getAttribute(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getAttributeNames() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getAttributeNames() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getAttrNames() - 类 中的方法com.jfinal.core.Controller
Returns an Enumeration containing the names of the attributes available to this request.
getAttrs(Model) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
Return the attributes map of the model
getAttrs() - 类 中的方法com.jfinal.render.JsonRender
getAttrsMap() - 类 中的方法com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
getAttrsMap() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory
getAttrsMap() - 接口 中的方法com.jfinal.plugin.activerecord.IContainerFactory
getAttrsMap() - 类 中的方法com.jfinal.plugin.activerecord.OrderedFieldContainerFactory
getBaseDownloadPath() - 类 中的方法com.jfinal.config.Constants
getBaseModelOutputDir() - 类 中的方法com.jfinal.plugin.activerecord.generator.BaseModelGenerator
getBaseModelPackageName() - 类 中的方法com.jfinal.plugin.activerecord.generator.BaseModelGenerator
getBaseModelPackageName() - 类 中的方法com.jfinal.plugin.activerecord.generator.ModelGenerator
getBaseName() - 类 中的方法com.jfinal.i18n.I18nInterceptor
Return the baseName, which is used as base name of the i18n resource file.
getBaseTemplatePath() - 类 中的方法com.jfinal.template.Engine
getBaseTemplatePath() - 类 中的方法com.jfinal.template.EngineConfig
getBaseUploadPath() - 类 中的方法com.jfinal.config.Constants
getBaseViewPath() - 类 中的方法com.jfinal.config.Routes
getBean(Class<T>) - 类 中的方法com.jfinal.core.Controller
getBean(Class<T>, boolean) - 类 中的方法com.jfinal.core.Controller
getBean(Class<T>, String) - 类 中的方法com.jfinal.core.Controller
getBean(Class<T>, String, boolean) - 类 中的方法com.jfinal.core.Controller
getBigDecimal(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: decimal, numeric
getBigDecimal(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: decimal, numeric
getBigDecimal(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: decimal, numeric
getBigInteger(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: unsigned bigint
getBigInteger(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: unsigned bigint
getBigInteger(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: unsigned bigint
getBoolean(String) - 类 中的方法com.jfinal.core.Controller
getBoolean(String, Boolean) - 类 中的方法com.jfinal.core.Controller
getBoolean() - 类 中的方法com.jfinal.core.Controller
getBoolean(int) - 类 中的方法com.jfinal.core.Controller
getBoolean(int, Boolean) - 类 中的方法com.jfinal.core.Controller
getBoolean(Object) - 类 中的方法com.jfinal.kit.Kv
getBoolean(Object) - 类 中的方法com.jfinal.kit.Okv
getBoolean(String) - 类 中的方法com.jfinal.kit.Prop
getBoolean(String, Boolean) - 类 中的方法com.jfinal.kit.Prop
getBoolean(String) - 类 中的静态方法com.jfinal.kit.PropKit
getBoolean(String, Boolean) - 类 中的静态方法com.jfinal.kit.PropKit
getBoolean(Object) - 类 中的方法com.jfinal.kit.Ret
getBoolean(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: bit, tinyint(1)
getBoolean(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: bit, tinyint(1)
getBoolean(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: bit, tinyint(1)
getBoolean() - 类 中的方法com.jfinal.template.expr.ast.Const
getByte(ResultSet, int) - 类 中的静态方法com.jfinal.plugin.activerecord.builder.BuilderKit
getByte(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
getByte(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
getByte(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
getByteCode() - 类 中的方法com.jfinal.proxy.ProxyClass
getByteCode() - 类 中的方法com.jfinal.proxy.ProxyCompiler.MyJavaFileObject
getBytes(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: binary, varbinary, tinyblob, blob, mediumblob, longblob
I have not finished the test.
getBytes(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: binary, varbinary, tinyblob, blob, mediumblob, longblob
getBytes(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: binary, varbinary, tinyblob, blob, mediumblob, longblob
I have not finished the test.
getBytes() - 接口 中的方法com.jfinal.template.io.IWritable
供 OutputStream 模式下的 ByteWrite 使用
getBytes() - 类 中的方法com.jfinal.template.stat.ast.Text
getByteWriter(OutputStream) - 类 中的方法com.jfinal.template.io.WriterBuffer
getCache() - 类 中的方法com.jfinal.plugin.activerecord.Config
getCache() - 类 中的方法com.jfinal.plugin.redis.RedisInterceptor
通过继承 RedisInterceptor 类并覆盖此方法,可以指定
当前线程所使用的 cache
getCacheKey() - 类 中的方法com.jfinal.template.source.ClassPathSource
getCacheKey() - 类 中的方法com.jfinal.template.source.FileSource
getCacheKey() - 接口 中的方法com.jfinal.template.source.ISource
cache key used to cache, return null if do not cache the template
注意:如果不希望缓存从该 ISource 解析出来的 Template 对象
让 getCacheKey() 返回 null 值即可
getCacheKey() - 类 中的方法com.jfinal.template.source.StringSource
getCacheManager() - 类 中的静态方法com.jfinal.plugin.ehcache.CacheKit
getCacheName(Invocation) - 类 中的方法com.jfinal.plugin.ehcache.EvictInterceptor
获取 @CacheName 注解配置的 cacheName,注解可配置在方法和类之上
getCaptchaCache() - 类 中的方法com.jfinal.captcha.CaptchaManager
getCaptchaKeyFromCookie() - 类 中的方法com.jfinal.captcha.CaptchaRender
getCaptchaRender() - 接口 中的方法com.jfinal.render.IRenderFactory
getCaptchaRender() - 类 中的方法com.jfinal.render.RenderFactory
getCharContent(boolean) - 类 中的方法com.jfinal.proxy.ProxyCompiler.MyJavaFileObject
getChars(char[]) - 类 中的方法com.jfinal.template.io.FloatingDecimal
getChars() - 接口 中的方法com.jfinal.template.io.IWritable
供 Writer 模式下的 CharWrite 使用
getChars() - 类 中的方法com.jfinal.template.stat.ast.Text
getCharWriter(Writer) - 类 中的方法com.jfinal.template.io.WriterBuffer
getClassLoader() - 类 中的方法com.jfinal.template.source.ClassPathSource
getClassPath() - 类 中的方法com.jfinal.proxy.ProxyCompiler
兼容 tomcat 丢失 class path,否则无法编译
getClazz() - 类 中的方法com.jfinal.proxy.ProxyClass
getColumnNames() - 类 中的方法com.jfinal.plugin.activerecord.Record
Return column names of this record.
getColumnNameSet() - 类 中的方法com.jfinal.plugin.activerecord.Table
getColumns() - 类 中的方法com.jfinal.plugin.activerecord.Record
Return columns map.
getColumnsMap() - 类 中的方法com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
getColumnsMap() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory
getColumnsMap() - 接口 中的方法com.jfinal.plugin.activerecord.IContainerFactory
getColumnsMap() - 类 中的方法com.jfinal.plugin.activerecord.OrderedFieldContainerFactory
getColumnType(String) - 类 中的方法com.jfinal.plugin.activerecord.Table
getColumnTypeMap() - 类 中的方法com.jfinal.plugin.activerecord.Table
getColumnTypeMapEntrySet() - 类 中的方法com.jfinal.plugin.activerecord.Table
getColumnValues() - 类 中的方法com.jfinal.plugin.activerecord.Record
Return column values of this record.
getComboPooledDataSource() - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
getCommonPropertyType(ELContext, Object) - 类 中的方法com.jfinal.plugin.activerecord.ModelRecordElResolver
getCompressor() - 类 中的方法com.jfinal.template.EngineConfig
getCond() - 类 中的方法com.jfinal.template.expr.ast.ForCtrl
getConfig() - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
getConfig(Model) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
getConfig() - 类 中的静态方法com.jfinal.plugin.activerecord.DbKit
getConfig(String) - 类 中的静态方法com.jfinal.plugin.activerecord.DbKit
getConfig(Class<? extends Model>) - 类 中的静态方法com.jfinal.plugin.activerecord.DbKit
getConfig() - 类 中的方法com.jfinal.plugin.activerecord.DbPro
getConfigPluginOrder() - 类 中的方法com.jfinal.config.Constants
getConfigSet() - 类 中的静态方法com.jfinal.plugin.activerecord.DbKit
getConfiguration() - 类 中的静态方法com.jfinal.render.FreeMarkerRender
freemarker can not load freemarker.properies automatically
getConfigWithTxConfig(Invocation) - 类 中的静态方法com.jfinal.plugin.activerecord.tx.Tx
getConnection() - 类 中的方法com.jfinal.plugin.activerecord.Config
Get Connection.
getConnection() - 类 中的方法com.jfinal.plugin.activerecord.SqlReporter
getConstants() - 类 中的方法com.jfinal.core.JFinal
getConstants() - 类 中的方法com.jfinal.render.RenderManager
getContainerFactory() - 类 中的方法com.jfinal.plugin.activerecord.Config
getContent() - 类 中的方法com.jfinal.template.source.ClassPathSource
getContent() - 类 中的方法com.jfinal.template.source.FileSource
getContent() - 接口 中的方法com.jfinal.template.source.ISource
content of ISource
getContent() - 类 中的方法com.jfinal.template.source.StringSource
getContent() - 类 中的方法com.jfinal.template.stat.ParaToken
getContentType() - 类 中的方法com.jfinal.render.FreeMarkerRender
继承类可通过覆盖此方法改变 contentType,从而重用 freemarker 模板功能
例如利用 freemarker 实现 FreeMarkerXmlRender 生成 Xml 内容
getContentType() - 类 中的方法com.jfinal.render.TemplateRender
getContentType() - 类 中的方法com.jfinal.render.TextRender
getContentType() - 类 中的方法com.jfinal.render.VelocityRender
继承类可通过覆盖此方法改变 contentType,从而重用 velocity 模板功能
例如利用 velocity 实现 VelocityXmlRender
getContentType() - 类 中的方法com.jfinal.render.XmlRender
getContentType() - 类 中的方法com.jfinal.upload.UploadFile
getContextPath() - 类 中的方法com.jfinal.core.JFinal
getController() - 类 中的方法com.jfinal.aop.Invocation
Return the controller of this action.
getController(Class<? extends Controller>) - 类 中的方法com.jfinal.core.ControllerFactory
getController(Class<? extends Controller>) - 类 中的方法com.jfinal.core.FastControllerFactory
getController() - 类 中的方法com.jfinal.validate.Validator
Return the controller of this action.
getControllerClass() - 类 中的方法com.jfinal.config.Routes.Route
getControllerClass() - 类 中的方法com.jfinal.core.Action
getControllerFactory() - 类 中的方法com.jfinal.config.Constants
getControllerKey() - 类 中的方法com.jfinal.aop.Invocation
已过时。
getControllerKey() - 类 中的方法com.jfinal.core.Action
已过时。
getControllerKey() - 类 中的方法com.jfinal.core.Controller
已过时。
getControllerKey() - 类 中的方法com.jfinal.validate.Validator
已过时。
getControllerPath() - 类 中的方法com.jfinal.aop.Invocation
Return the controller path.
getControllerPath() - 类 中的方法com.jfinal.config.Routes.Route
getControllerPath() - 类 中的方法com.jfinal.core.Action
getControllerPath() - 类 中的方法com.jfinal.core.Controller
getControllerPath() - 类 中的方法com.jfinal.validate.Validator
Return the controller path of this action.
getConverterMap() - 类 中的方法com.jfinal.core.converter.TypeConverter
getConvertFunc() - 类 中的方法com.jfinal.core.converter.TypeConverter
getCookie(String, String) - 类 中的方法com.jfinal.core.Controller
Get cookie value by cookie name.
getCookie(String) - 类 中的方法com.jfinal.core.Controller
Get cookie value by cookie name.
getCookieObject(String) - 类 中的方法com.jfinal.core.Controller
Get cookie object by cookie name.
getCookieObjects() - 类 中的方法com.jfinal.core.Controller
Get all cookie objects.
getCookieToInt(String) - 类 中的方法com.jfinal.core.Controller
Get cookie value by cookie name and convert to Integer.
getCookieToInt(String, Integer) - 类 中的方法com.jfinal.core.Controller
Get cookie value by cookie name and convert to Integer.
getCookieToLong(String) - 类 中的方法com.jfinal.core.Controller
Get cookie value by cookie name and convert to Long.
getCookieToLong(String, Long) - 类 中的方法com.jfinal.core.Controller
Get cookie value by cookie name and convert to Long.
getCount() - 类 中的方法com.jfinal.template.stat.ast.ForIteratorStatus
getCount() - 类 中的方法com.jfinal.template.stat.ast.ForLoopStatus
getCounter(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
获取记数器的值
getCreationTime() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getCreationTime() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getCtrl() - 类 中的方法com.jfinal.template.stat.Scope
getData() - 类 中的方法com.jfinal.core.paragetter.RawData
getData() - 类 中的方法com.jfinal.template.stat.Scope
获取本层作用域 data,可能为 null 值
getDataDictionaryFileName() - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
getDataDictionaryOutputDir() - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
getDataSource() - 类 中的方法com.jfinal.plugin.activerecord.Config
getDataSource() - 接口 中的方法com.jfinal.plugin.activerecord.IDataSourceProvider
getDataSource() - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
getDataSource() - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
getDataSource() - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
getDate(String) - 类 中的方法com.jfinal.core.Controller
getDate(String, Date) - 类 中的方法com.jfinal.core.Controller
getDate(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: date, year
getDate(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: date, year
getDate(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: date, year
getDateFormat(String) - 类 中的方法com.jfinal.template.io.DateFormats
getDatePattern() - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
getDatePattern() - 类 中的方法com.jfinal.json.Json
getDatePattern() - 类 中的方法com.jfinal.template.Engine
getDatePattern() - 类 中的方法com.jfinal.template.EngineConfig
getDatePattern() - 类 中的方法com.jfinal.validate.Validator
getDateTimeFormatter(String) - 类 中的静态方法com.jfinal.kit.TimeKit
getDbPro(String) - 接口 中的方法com.jfinal.plugin.activerecord.IDbProFactory
getDbProFactory() - 类 中的方法com.jfinal.plugin.activerecord.Config
getDefaultDatePattern() - 类 中的方法com.jfinal.json.Json
getDefaultPrimaryKey() - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
getDefaultPrimaryKey() - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
getDefaultRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getDefaultRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getDefaultValue() - 类 中的方法com.jfinal.core.paragetter.ParaGetter
getDenyAccessJsp() - 类 中的方法com.jfinal.config.Constants
getDevMode() - 类 中的方法com.jfinal.config.Constants
getDevMode() - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
getDevMode() - 类 中的静态方法com.jfinal.render.Render
getDevMode() - 类 中的方法com.jfinal.template.Engine
getDialect() - 类 中的方法com.jfinal.plugin.activerecord.Config
getDirective(String) - 类 中的方法com.jfinal.template.EngineConfig
getDouble(Object) - 类 中的方法com.jfinal.kit.Kv
getDouble(Object) - 类 中的方法com.jfinal.kit.Okv
getDouble(String) - 类 中的方法com.jfinal.kit.Prop
getDouble(String, Double) - 类 中的方法com.jfinal.kit.Prop
getDouble(String) - 类 中的静态方法com.jfinal.kit.PropKit
getDouble(String, Double) - 类 中的静态方法com.jfinal.kit.PropKit
getDouble(Object) - 类 中的方法com.jfinal.kit.Ret
getDouble(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: real, double
getDouble(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: real, double
getDouble(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: real, double
getDouble() - 类 中的方法com.jfinal.template.expr.ast.Const
getEncoder() - 类 中的方法com.jfinal.template.io.EncoderFactory
getEncoder() - 类 中的方法com.jfinal.template.io.JdkEncoderFactory
getEncoding() - 类 中的方法com.jfinal.config.Constants
getEncoding() - 类 中的静态方法com.jfinal.render.Render
getEncoding() - 类 中的方法com.jfinal.template.Engine
getEncoding() - 类 中的方法com.jfinal.template.EngineConfig
getEncoding() - 类 中的方法com.jfinal.template.source.ClassPathSource
getEncoding() - 类 中的方法com.jfinal.template.source.FileSource
getEncoding() - 接口 中的方法com.jfinal.template.source.ISource
encoding of content
getEncoding() - 类 中的方法com.jfinal.template.source.StringSource
getEngine() - 类 中的静态方法com.jfinal.kit.ElKit
getEngine() - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
getEngine() - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
getEngine() - 类 中的方法com.jfinal.render.RenderManager
getEngine() - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
getEngineConfig() - 类 中的方法com.jfinal.template.Engine
getEngineConfig() - 类 中的方法com.jfinal.template.Env
getErrorCode() - 异常错误 中的方法com.jfinal.core.ActionException
getErrorCode() - 类 中的方法com.jfinal.render.ErrorRender
getErrorHtml() - 类 中的方法com.jfinal.render.ErrorRender
getErrorRender() - 异常错误 中的方法com.jfinal.core.ActionException
getErrorRender(int, String) - 接口 中的方法com.jfinal.render.IRenderFactory
getErrorRender(int) - 接口 中的方法com.jfinal.render.IRenderFactory
getErrorRender(int, String) - 类 中的方法com.jfinal.render.RenderFactory
getErrorRender(int) - 类 中的方法com.jfinal.render.RenderFactory
getErrorView(int) - 类 中的方法com.jfinal.config.Constants
getEven() - 类 中的方法com.jfinal.template.stat.ast.ForIteratorStatus
getEven() - 类 中的方法com.jfinal.template.stat.ast.ForLoopStatus
getExecutor() - 类 中的静态方法com.jfinal.kit.ScheduledKit
getExecutor() - 类 中的静态方法com.jfinal.kit.ThreadPoolKit
getExpirationTime() - 类 中的方法com.jfinal.token.Token
getExpireAt() - 类 中的方法com.jfinal.captcha.Captcha
getExpr(int) - 类 中的方法com.jfinal.template.expr.ast.ExprList
getExpr() - 类 中的方法com.jfinal.template.expr.ast.ForCtrl
getExprArray() - 类 中的方法com.jfinal.template.expr.ast.ExprList
getFastStringWriter() - 类 中的方法com.jfinal.template.io.WriterBuffer
getFeatureDescriptors(ELContext, Object) - 类 中的方法com.jfinal.plugin.activerecord.ModelRecordElResolver
getFieldGetter(Object, Class<?>, String) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKit
getFieldKey(Class<?>, long) - 类 中的方法com.jfinal.template.expr.ast.FieldKeyBuilder.FastFieldKeyBuilder
getFieldKey(Class<?>, long) - 类 中的方法com.jfinal.template.expr.ast.FieldKeyBuilder
getFieldKey(Class<?>, long) - 类 中的方法com.jfinal.template.expr.ast.FieldKeyBuilder.StrictFieldKeyBuilder
getFile(String, String, long, String) - 类 中的方法com.jfinal.core.Controller
getFile(String, String, long) - 类 中的方法com.jfinal.core.Controller
getFile(String, String) - 类 中的方法com.jfinal.core.Controller
getFile() - 类 中的方法com.jfinal.core.Controller
getFile(String) - 类 中的方法com.jfinal.core.Controller
getFile() - 类 中的方法com.jfinal.upload.UploadFile
getFileExtension(String) - 类 中的静态方法com.jfinal.kit.FileKit
getFileExtension(File) - 类 中的静态方法com.jfinal.kit.FileKit
getFileFromJar(String) - 类 中的静态方法com.jfinal.kit.PathKit
getFileName() - 类 中的方法com.jfinal.template.source.FileSource
getFileName() - 类 中的方法com.jfinal.upload.UploadFile
getFileRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getFileRender(String, String) - 接口 中的方法com.jfinal.render.IRenderFactory
getFileRender(File) - 接口 中的方法com.jfinal.render.IRenderFactory
getFileRender(File, String) - 接口 中的方法com.jfinal.render.IRenderFactory
getFileRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getFileRender(String, String) - 类 中的方法com.jfinal.render.RenderFactory
getFileRender(File) - 类 中的方法com.jfinal.render.RenderFactory
getFileRender(File, String) - 类 中的方法com.jfinal.render.RenderFactory
getFiles(String, long, String) - 类 中的方法com.jfinal.core.Controller
Get upload file from multipart request.
getFiles(String, long) - 类 中的方法com.jfinal.core.Controller
getFiles(String) - 类 中的方法com.jfinal.core.Controller
getFiles() - 类 中的方法com.jfinal.core.Controller
getFiles() - 类 中的方法com.jfinal.upload.MultipartRequest
getFinalFileName() - 类 中的方法com.jfinal.template.source.FileSource
getFinalViewPath(String) - 类 中的方法com.jfinal.config.Routes.Route
getFirst() - 类 中的方法com.jfinal.template.stat.ast.ForIteratorStatus
getFirst() - 类 中的方法com.jfinal.template.stat.ast.ForLoopStatus
getFirstExpr() - 类 中的方法com.jfinal.template.expr.ast.ExprList
getFloat(Object) - 类 中的方法com.jfinal.kit.Kv
getFloat(Object) - 类 中的方法com.jfinal.kit.Okv
getFloat(Object) - 类 中的方法com.jfinal.kit.Ret
getFloat(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: float
getFloat(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: float
getFloat(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: float
getFloat() - 类 中的方法com.jfinal.template.expr.ast.Const
getForIE() - 类 中的方法com.jfinal.render.JsonRender
getFormat(String) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
getFreeMarkerRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getFreeMarkerRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getFreeMarkerTemplateUpdateDelay() - 类 中的方法com.jfinal.config.Constants
getFunction(String) - 类 中的方法com.jfinal.template.Env
Get function of current template first, getting shared function if null before
getFunction(String) - 类 中的方法com.jfinal.template.ext.directive.RenderDirective.SubEnv
接管父类 getFunction(),先从子模板中找模板函数,找不到再去父模板中找
getFunctionName() - 类 中的方法com.jfinal.template.stat.ast.Define
getGlobal(Object) - 类 中的方法com.jfinal.template.stat.Scope
获取全局变量
全局作用域是指本次请求的整个 template
getGlobalServiceInterceptorClasses() - 类 中的方法com.jfinal.aop.InterceptorManager
getHandler(List<Handler>, Handler) - 类 中的静态方法com.jfinal.handler.HandlerFactory
Build handler chain
getHandlerList() - 类 中的方法com.jfinal.config.Handlers
getHeader(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of the specified request header as a String.
getHtmlRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getHtmlRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getId() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getId() - 类 中的方法com.jfinal.template.expr.ast.Assign
获取 assign 表达式左侧标识符 id
在自定义指令中得到 id 值,可以得知该赋值表达式是针对哪个变量在操作,有助于扩展
需求来源:https://jfinal.com/share/379
getId() - 类 中的方法com.jfinal.template.expr.ast.ForCtrl
getId() - 类 中的方法com.jfinal.template.expr.ast.Id
getId() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getId() - 类 中的方法com.jfinal.token.Token
Returns a string containing the unique identifier assigned to this token.
getIndex() - 类 中的方法com.jfinal.template.expr.ast.Assign
getIndex() - 类 中的方法com.jfinal.template.stat.ast.ForIteratorStatus
getIndex() - 类 中的方法com.jfinal.template.stat.ast.ForLoopStatus
getInit() - 类 中的方法com.jfinal.template.expr.ast.ForCtrl
getInjectDependency() - 类 中的方法com.jfinal.config.Constants
getInjectSuperClass() - 类 中的方法com.jfinal.config.Constants
getInstance() - 类 中的静态方法com.jfinal.template.expr.ast.FieldKeyBuilder
getInstance() - 类 中的静态方法com.jfinal.template.expr.ast.MethodKeyBuilder
getInt(String) - 类 中的方法com.jfinal.core.Controller
getInt(String, Integer) - 类 中的方法com.jfinal.core.Controller
getInt() - 类 中的方法com.jfinal.core.Controller
getInt(int) - 类 中的方法com.jfinal.core.Controller
getInt(int, Integer) - 类 中的方法com.jfinal.core.Controller
getInt(Object) - 类 中的方法com.jfinal.kit.Kv
getInt(Object) - 类 中的方法com.jfinal.kit.Okv
getInt(String) - 类 中的方法com.jfinal.kit.Prop
getInt(String, Integer) - 类 中的方法com.jfinal.kit.Prop
getInt(String) - 类 中的静态方法com.jfinal.kit.PropKit
getInt(String, Integer) - 类 中的静态方法com.jfinal.kit.PropKit
getInt(Object) - 类 中的方法com.jfinal.kit.Ret
getInt(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumint
getInt(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumint
getInt(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumint
getInt() - 类 中的方法com.jfinal.template.expr.ast.Const
getInterceptors() - 类 中的方法com.jfinal.config.Routes
getInterceptors() - 类 中的方法com.jfinal.core.Action
getInterceptors() - 类 中的方法com.jfinal.proxy.ProxyMethod
分离类的生成与对象的创建,避免 ProxyGenerator 与 AopFactory 形成死循环
本方法仅在 Invocation 构造方法中调用
getJavaFileForInput(JavaFileManager.Location, String, JavaFileObject.Kind) - 类 中的方法com.jfinal.proxy.ProxyCompiler.MyJavaFileManager
getJavaFileForOutput(JavaFileManager.Location, String, JavaFileObject.Kind, FileObject) - 类 中的方法com.jfinal.proxy.ProxyCompiler.MyJavaFileManager
getJavascriptRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getJavascriptRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getJavaType() - 类 中的方法com.jfinal.plugin.activerecord.TableBuilder
getJedis() - 类 中的方法com.jfinal.plugin.redis.Cache
getJedisPoolConfig() - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
当RedisPlugin 提供的设置属性仍然无法满足需求时,通过此方法获取到
JedisPoolConfig 对象,可对 redis 进行更加细致的配置
例如:
redisPlugin.getJedisPoolConfig().setMaxTotal(100);
getJson() - 类 中的静态方法com.jfinal.json.FastJson
getJson() - 类 中的方法com.jfinal.json.FastJsonFactory
getJson() - 接口 中的方法com.jfinal.json.IJsonFactory
getJson() - 类 中的静态方法com.jfinal.json.Jackson
getJson() - 类 中的方法com.jfinal.json.JacksonFactory
getJson() - 类 中的静态方法com.jfinal.json.JFinalJson
getJson() - 类 中的方法com.jfinal.json.JFinalJsonFactory
getJson() - 类 中的静态方法com.jfinal.json.Json
getJson() - 类 中的静态方法com.jfinal.json.MixedJson
getJson() - 类 中的方法com.jfinal.json.MixedJsonFactory
getJsonRender() - 接口 中的方法com.jfinal.render.IRenderFactory
getJsonRender(String, Object) - 接口 中的方法com.jfinal.render.IRenderFactory
getJsonRender(String[]) - 接口 中的方法com.jfinal.render.IRenderFactory
getJsonRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getJsonRender(Object) - 接口 中的方法com.jfinal.render.IRenderFactory
getJsonRender() - 类 中的方法com.jfinal.render.RenderFactory
getJsonRender(String, Object) - 类 中的方法com.jfinal.render.RenderFactory
getJsonRender(String[]) - 类 中的方法com.jfinal.render.RenderFactory
getJsonRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getJsonRender(Object) - 类 中的方法com.jfinal.render.RenderFactory
getJsonText() - 类 中的方法com.jfinal.render.JsonRender
getJspRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getJspRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getKeepLineBlankDirectives() - 类 中的方法com.jfinal.template.EngineConfig
getKey() - 类 中的方法com.jfinal.captcha.Captcha
getKey() - 类 中的方法com.jfinal.proxy.ProxyMethod
getKey() - 类 中的方法com.jfinal.template.expr.ast.MethodInfo
getKey() - 类 中的方法com.jfinal.template.stat.ast.ForEntry
getKeyName(Object) - 接口 中的方法com.jfinal.plugin.redis.IKeyNamingPolicy
getKeyNamingPolicy() - 类 中的方法com.jfinal.plugin.redis.Cache
getKeys(String) - 类 中的静态方法com.jfinal.plugin.ehcache.CacheKit
getKv() - 类 中的方法com.jfinal.core.Controller
获取被 Kv 封装后的参数,便于使用 Kv 中的一些工具方法
由于 Kv 继承自 HashMap,也便于需要使用 HashMap 的场景,
例如:
Record record = new Record().setColumns(getKv());
getLast() - 类 中的方法com.jfinal.template.stat.ast.ForIteratorStatus
getLastAccessedTime() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getLastAccessedTime() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getLastExpr() - 类 中的方法com.jfinal.template.expr.ast.ExprList
getLastModified() - 类 中的方法com.jfinal.template.source.ClassPathSource
getLength() - 类 中的方法com.jfinal.template.expr.ast.Array.ArrayListExt
getList() - 类 中的方法com.jfinal.plugin.activerecord.Page
Return list of this page.
getLocal(Object) - 类 中的方法com.jfinal.template.stat.Scope
获取局部变量
getLocalDateTime(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
getLocalDateTime(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
getLocalDateTime(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
getLocaleParaName() - 类 中的方法com.jfinal.i18n.I18nInterceptor
Return the localeParaName, which is used as para name to get locale from the request para and the cookie.
getLocation() - 类 中的方法com.jfinal.template.stat.ast.Stat
getLog(Class<?>) - 接口 中的方法com.jfinal.log.ILogFactory
getLog(String) - 接口 中的方法com.jfinal.log.ILogFactory
getLog(Class<?>) - 类 中的静态方法com.jfinal.log.JdkLog
getLog(String) - 类 中的静态方法com.jfinal.log.JdkLog
getLog(Class<?>) - 类 中的方法com.jfinal.log.JdkLogFactory
getLog(String) - 类 中的方法com.jfinal.log.JdkLogFactory
getLog(Class<?>) - 类 中的静态方法com.jfinal.log.Log
getLog(String) - 类 中的静态方法com.jfinal.log.Log
getLog(Class<?>) - 类 中的静态方法com.jfinal.log.Log4jLog
getLog(String) - 类 中的静态方法com.jfinal.log.Log4jLog
getLog(Class<?>) - 类 中的方法com.jfinal.log.Log4jLogFactory
getLog(String) - 类 中的方法com.jfinal.log.Log4jLogFactory
getLog(Class<?>) - 类 中的方法com.jfinal.log.Slf4jLogFactory
getLog(String) - 类 中的方法com.jfinal.log.Slf4jLogFactory
getLong(String) - 类 中的方法com.jfinal.core.Controller
getLong(String, Long) - 类 中的方法com.jfinal.core.Controller
getLong() - 类 中的方法com.jfinal.core.Controller
getLong(int) - 类 中的方法com.jfinal.core.Controller
getLong(int, Long) - 类 中的方法com.jfinal.core.Controller
getLong(Object) - 类 中的方法com.jfinal.kit.Kv
getLong(Object) - 类 中的方法com.jfinal.kit.Okv
getLong(String) - 类 中的方法com.jfinal.kit.Prop
getLong(String, Long) - 类 中的方法com.jfinal.kit.Prop
getLong(String) - 类 中的静态方法com.jfinal.kit.PropKit
getLong(String, Long) - 类 中的静态方法com.jfinal.kit.PropKit
getLong(Object) - 类 中的方法com.jfinal.kit.Ret
getLong(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: bigint, unsigned int
getLong(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: bigint, unsign int
getLong(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: bigint, unsigned int
getLong() - 类 中的方法com.jfinal.template.expr.ast.Const
getMapOfValue(Object) - 类 中的方法com.jfinal.template.stat.Scope
自内向外在作用域栈中查找变量,获取变量所在的 Map,主要用于 IncDec
getMappingClass(Class<?>) - 类 中的方法com.jfinal.aop.AopFactory
获取父类到子类的映射值,或者接口到实现类的映射值
getMappingKitClassName() - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
getMappingKitOutputDir() - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
getMappingKitPackageName() - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
getMappingSuperClass() - 类 中的方法com.jfinal.config.Routes
getMaxInactiveInterval() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getMaxInactiveInterval() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getMaxPostSize() - 类 中的方法com.jfinal.config.Constants
getMethod() - 类 中的方法com.jfinal.aop.Invocation
Return the method of this action.
getMethod() - 类 中的方法com.jfinal.core.Action
getMethod() - 类 中的方法com.jfinal.proxy.ProxyMethod
getMethod(Class<?>, String, Object[]) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
getMethodKey(Class<?>, String, Class<?>[]) - 类 中的方法com.jfinal.template.expr.ast.MethodKeyBuilder.FastMethodKeyBuilder
getMethodKey(Class<?>, String, Class<?>[]) - 类 中的方法com.jfinal.template.expr.ast.MethodKeyBuilder
生成指定 class、指定方法名、指定方法形参类型的 key 值,用于缓存
getMethodKey(Class<?>, String, Class<?>[]) - 类 中的方法com.jfinal.template.expr.ast.MethodKeyBuilder.StrictMethodKeyBuilder
getMethodName() - 类 中的方法com.jfinal.aop.Invocation
Return the method name of this action's method.
getMethodName() - 类 中的方法com.jfinal.core.Action
getMethodSignature(Method) - 类 中的静态方法com.jfinal.kit.ReflectKit
getMethodUpperInterceptors(ProxyClass) - 类 中的方法com.jfinal.proxy.ProxyGenerator
获取 method 上层的拦截器,也即获取 global、class 这两层拦截器
注意:global 层拦截器已结合 class 层 @Clear 注解处理过
getModel(Class<T>) - 类 中的方法com.jfinal.core.Controller
Get model from http request.
getModel(Class<T>, boolean) - 类 中的方法com.jfinal.core.Controller
getModel(Class<T>, String) - 类 中的方法com.jfinal.core.Controller
Get model from http request.
getModel(Class<T>, String, boolean) - 类 中的方法com.jfinal.core.Controller
getModelClass() - 类 中的方法com.jfinal.plugin.activerecord.Table
getModelGeneratedKey(Model<?>, PreparedStatement, Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
用于获取 Model.save() 以后自动生成的主键值,可通过覆盖此方法实现更精细的控制
目前只有 PostgreSqlDialect,覆盖过此方法
getModelGeneratedKey(Model<?>, PreparedStatement, Table) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
解决 PostgreSql 获取自增主键时 rs.getObject(1) 总是返回第一个字段的值,而非返回了 id 值
issue: https://www.oschina.net/question/2312705_2243354
相对于 Dialect 中的默认实现,仅将 rs.getXxx(1) 改成了 rs.getXxx(pKey)
getModelOutputDir() - 类 中的方法com.jfinal.plugin.activerecord.generator.ModelGenerator
getModelPackageName() - 类 中的方法com.jfinal.plugin.activerecord.generator.ModelGenerator
getModifyFlag(Model) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
getModifyFlagSet() - 类 中的方法com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
getModifyFlagSet() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory
getModifyFlagSet() - 接口 中的方法com.jfinal.plugin.activerecord.IContainerFactory
getModifyFlagSet() - 类 中的方法com.jfinal.plugin.activerecord.OrderedFieldContainerFactory
getMsgName() - 类 中的静态方法com.jfinal.kit.CPI
getName() - 类 中的方法com.jfinal.plugin.activerecord.Config
getName() - 类 中的方法com.jfinal.plugin.activerecord.Table
getName() - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
getName() - 类 中的方法com.jfinal.plugin.redis.Cache
getName() - 类 中的方法com.jfinal.proxy.ProxyClass
getName() - 类 中的方法com.jfinal.template.Engine
getName() - 类 中的方法com.jfinal.template.expr.ast.MethodInfo
getNullRender() - 接口 中的方法com.jfinal.render.IRenderFactory
getNullRender() - 类 中的方法com.jfinal.render.RenderFactory
getNumber(Object) - 类 中的方法com.jfinal.kit.Kv
getNumber(Object) - 类 中的方法com.jfinal.kit.Okv
getNumber(Object) - 类 中的方法com.jfinal.kit.Ret
getNumber(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of any type that extends from Number
getNumber(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of any type that extends from Number
getNumber(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of any type that extends from Number
getNumber() - 类 中的方法com.jfinal.template.expr.ast.Const
getNumberValue() - 类 中的方法com.jfinal.template.expr.NumTok
getObject(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
getObject(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.Record
getObjectMapper() - 类 中的方法com.jfinal.json.Jackson
通过获取 ObjectMapper 进行更个性化设置,满足少数特殊情况
getOdd() - 类 中的方法com.jfinal.template.stat.ast.ForIteratorStatus
getOdd() - 类 中的方法com.jfinal.template.stat.ast.ForLoopStatus
getOptions() - 类 中的方法com.jfinal.proxy.ProxyCompiler
getOriginalFileName() - 类 中的方法com.jfinal.upload.UploadFile
getOuter() - 类 中的方法com.jfinal.template.stat.ast.ForIteratorStatus
getOuter() - 类 中的方法com.jfinal.template.stat.ast.ForLoopStatus
getOutputDirective(ExprList, Location) - 类 中的方法com.jfinal.template.EngineConfig
getOutputDirective(ExprList, Location) - 类 中的方法com.jfinal.template.stat.OutputDirectiveFactory
getPackagePath(Object) - 类 中的静态方法com.jfinal.kit.PathKit
getPageNumber() - 类 中的方法com.jfinal.plugin.activerecord.Page
Return page number.
getPageSize() - 类 中的方法com.jfinal.plugin.activerecord.Page
Return page size.
getPara(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter as a String, or null if the parameter does not exist.
getPara(String, String) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter as a String, or default value if the parameter does not exist.
getPara() - 类 中的方法com.jfinal.core.Controller
Get all para with separator char from url
getPara(int) - 类 中的方法com.jfinal.core.Controller
Get para from url.
getPara(int, String) - 类 中的方法com.jfinal.core.Controller
Get para from url with default value if it is null or "".
getPara() - 类 中的方法com.jfinal.plugin.activerecord.SqlPara
getParaMap() - 类 中的方法com.jfinal.core.Controller
Returns the values of the request parameters as a Map.
getParameter(String) - 类 中的方法com.jfinal.upload.MultipartRequest
getParameterGetter() - 类 中的方法com.jfinal.core.Action
getParameterMap() - 类 中的方法com.jfinal.upload.MultipartRequest
getParameterName() - 类 中的方法com.jfinal.core.paragetter.ParaGetter
getParameterName() - 类 中的方法com.jfinal.upload.UploadFile
getParameterNames() - 类 中的方法com.jfinal.template.stat.ast.Define
getParameterNames() - 类 中的方法com.jfinal.upload.MultipartRequest
Methods to replace HttpServletRequest methods
getParameterTypes() - 类 中的方法com.jfinal.template.expr.ast.MethodInfo
getParameterValues(String) - 类 中的方法com.jfinal.upload.MultipartRequest
getParaNames() - 类 中的方法com.jfinal.core.Controller
Returns an Enumeration of String objects containing the names of the parameters
contained in this request.
getParaToBoolean(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter and convert to Boolean.
getParaToBoolean(String, Boolean) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter and convert to Boolean with a default value if it is null.
getParaToBoolean() - 类 中的方法com.jfinal.core.Controller
Get all para from url and convert to Boolean
getParaToBoolean(int) - 类 中的方法com.jfinal.core.Controller
Get para from url and conver to Boolean.
getParaToBoolean(int, Boolean) - 类 中的方法com.jfinal.core.Controller
Get para from url and conver to Boolean with default value if it is null.
getParaToDate(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter and convert to Date.
getParaToDate(String, Date) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter and convert to Date with a default value if it is null.
getParaToDate() - 类 中的方法com.jfinal.core.Controller
Get all para from url and convert to Date
getParaToInt(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter and convert to Integer.
getParaToInt(String, Integer) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter and convert to Integer with a default value if it is null.
getParaToInt(int) - 类 中的方法com.jfinal.core.Controller
Get para from url and conver to Integer.
getParaToInt(int, Integer) - 类 中的方法com.jfinal.core.Controller
Get para from url and conver to Integer with default value if it is null.
getParaToInt() - 类 中的方法com.jfinal.core.Controller
Get all para from url and convert to Integer
getParaToLong(String) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter and convert to Long.
getParaToLong(String, Long) - 类 中的方法com.jfinal.core.Controller
Returns the value of a request parameter and convert to Long with a default value if it is null.
getParaToLong(int) - 类 中的方法com.jfinal.core.Controller
Get para from url and conver to Long.
getParaToLong(int, Long) - 类 中的方法com.jfinal.core.Controller
Get para from url and conver to Long with default value if it is null.
getParaToLong() - 类 中的方法com.jfinal.core.Controller
Get all para from url and convert to Long
getParaValues(String) - 类 中的方法com.jfinal.core.Controller
Returns an array of String objects containing all of the values the given request
parameter has, or null if the parameter does not exist.
getParaValuesToInt(String) - 类 中的方法com.jfinal.core.Controller
Returns an array of Integer objects containing all of the values the given request
parameter has, or null if the parameter does not exist.
getParaValuesToLong(String) - 类 中的方法com.jfinal.core.Controller
getParentClassLoader() - 类 中的静态方法com.jfinal.proxy.ProxyClassLoader
getPath(Class) - 类 中的静态方法com.jfinal.kit.PathKit
getPath(Object) - 类 中的静态方法com.jfinal.kit.PathKit
getPkg() - 类 中的方法com.jfinal.proxy.ProxyClass
getPluginList() - 类 中的方法com.jfinal.config.Plugins
getPrimaryKey() - 类 中的方法com.jfinal.plugin.activerecord.Table
update() and delete() need this method.
getProp() - 类 中的静态方法com.jfinal.kit.PropKit
getProp(String) - 类 中的静态方法com.jfinal.kit.PropKit
getProperties() - 类 中的方法com.jfinal.kit.Prop
getProperty(String) - 类 中的方法com.jfinal.config.JFinalConfig
getProperty(String, String) - 类 中的方法com.jfinal.config.JFinalConfig
getPropertyToBoolean(String) - 类 中的方法com.jfinal.config.JFinalConfig
getPropertyToBoolean(String, Boolean) - 类 中的方法com.jfinal.config.JFinalConfig
getPropertyToInt(String) - 类 中的方法com.jfinal.config.JFinalConfig
getPropertyToInt(String, Integer) - 类 中的方法com.jfinal.config.JFinalConfig
getPropertyToLong(String) - 类 中的方法com.jfinal.config.JFinalConfig
getPropertyToLong(String, Long) - 类 中的方法com.jfinal.config.JFinalConfig
getProxyClass(Class<T>) - 类 中的方法com.jfinal.proxy.ProxyFactory
getProxyClass() - 类 中的方法com.jfinal.proxy.ProxyMethod
getProxyClassLoader() - 类 中的方法com.jfinal.proxy.ProxyFactory
getProxyCompiler() - 类 中的方法com.jfinal.proxy.ProxyFactory
getProxyFactory() - 类 中的方法com.jfinal.proxy.ProxyManager
getProxyGenerator() - 类 中的方法com.jfinal.proxy.ProxyFactory
getProxyMethodList() - 类 中的方法com.jfinal.proxy.ProxyClass
getQrCodeRender(String, int, int) - 接口 中的方法com.jfinal.render.IRenderFactory
getQrCodeRender(String, int, int, char) - 接口 中的方法com.jfinal.render.IRenderFactory
getQrCodeRender(String, int, int) - 类 中的方法com.jfinal.render.RenderFactory
getQrCodeRender(String, int, int, char) - 类 中的方法com.jfinal.render.RenderFactory
getRandColor(int, int) - 类 中的方法com.jfinal.captcha.CaptchaRender
getRandomString() - 类 中的方法com.jfinal.captcha.CaptchaRender
getRandomUUID() - 类 中的静态方法com.jfinal.kit.StrKit
getRawData() - 类 中的方法com.jfinal.core.Controller
获取 http 请求 body 中的原始数据,通常用于接收 json String 这类数据
可多次调用此方法,避免掉了 HttpKit.readData(...)
getRecordGeneratedKey(PreparedStatement, Record, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
用于获取 Db.save(tableName, record) 以后自动生成的主键值,可通过覆盖此方法实现更精细的控制
目前只有 PostgreSqlDialect,覆盖过此方法
getRecordGeneratedKey(PreparedStatement, Record, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect
解决 PostgreSql 获取自增主键时 rs.getObject(1) 总是返回第一个字段的值,而非返回了 id 值
issue: https://www.oschina.net/question/2312705_2243354
相对于 Dialect 中的默认实现,仅将 rs.getXxx(1) 改成了 rs.getXxx(pKey)
getRedirect301Render(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getRedirect301Render(String, boolean) - 接口 中的方法com.jfinal.render.IRenderFactory
getRedirect301Render(String) - 类 中的方法com.jfinal.render.RenderFactory
getRedirect301Render(String, boolean) - 类 中的方法com.jfinal.render.RenderFactory
getRedirectRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getRedirectRender(String, boolean) - 接口 中的方法com.jfinal.render.IRenderFactory
getRedirectRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getRedirectRender(String, boolean) - 类 中的方法com.jfinal.render.RenderFactory
getRender() - 类 中的方法com.jfinal.core.Controller
getRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
Create Render for Controller.render(String view)
getRender(String) - 类 中的方法com.jfinal.render.RenderFactory
Return Render by default ViewType which config in JFinalConfig
getRenderFactory() - 类 中的方法com.jfinal.render.RenderManager
getRequest() - 类 中的方法com.jfinal.core.Controller
Return HttpServletRequest.
getResName() - 类 中的方法com.jfinal.i18n.I18nInterceptor
Return the resName, which is used as attribute name to pass the Res object to the view.
getResourceBundle() - 类 中的方法com.jfinal.i18n.Res
getResponse() - 类 中的方法com.jfinal.core.Controller
Return HttpServletResponse.
getRet() - 类 中的方法com.jfinal.validate.Validator
便于在 handleError 中使用 controller.renderJson(getRet());
getRetStateName() - 类 中的静态方法com.jfinal.kit.CPI
getReturnType(Method) - 类 中的方法com.jfinal.proxy.ProxyGenerator
方法返回值为 int[] 时 method.getReturnType().getName() 返回值为: [I
需要识别并转化
getReturnValue() - 类 中的方法com.jfinal.aop.Invocation
Get the return value of the target method
getRight() - 类 中的方法com.jfinal.template.expr.ast.Assign
getRootClassPath() - 类 中的静态方法com.jfinal.kit.PathKit
getRootData() - 类 中的方法com.jfinal.template.stat.Scope
获取顶层作用域 data,可能为 null 值
getRoundingMode() - 类 中的方法com.jfinal.template.EngineConfig
getRouteItemList() - 类 中的方法com.jfinal.config.Routes
getRoutesList() - 类 中的静态方法com.jfinal.config.Routes
getRoutesList() - 类 中的方法com.jfinal.core.ActionMapping
getRow() - 类 中的方法com.jfinal.template.stat.Location
getSerializer() - 类 中的方法com.jfinal.plugin.redis.Cache
getServletContext() - 类 中的方法com.jfinal.core.JFinal
getServletContext() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getServletContext() - 类 中的方法com.jfinal.render.RenderManager
getServletContext() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getSession() - 类 中的方法com.jfinal.core.Controller
Return HttpSession.
getSession(boolean) - 类 中的方法com.jfinal.core.Controller
Return HttpSession.
getSessionAttr(String) - 类 中的方法com.jfinal.core.Controller
Return a Object from session.
getSessionAttr(String, T) - 类 中的方法com.jfinal.core.Controller
getSessionContext() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getSessionContext() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getSet(Object, Object) - 类 中的方法com.jfinal.plugin.redis.Cache
将给定 key 的值设为 value ,并返回 key 的旧值(old value)。
getSharedMethodInfo(String, Object[]) - 类 中的方法com.jfinal.template.expr.ast.SharedMethodKit
getSharedMethodKit() - 类 中的方法com.jfinal.template.EngineConfig
getSharedObject(String) - 类 中的方法com.jfinal.template.stat.Scope
获取共享对象
getSharedObjectMap() - 类 中的方法com.jfinal.template.EngineConfig
getShort(ResultSet, int) - 类 中的静态方法com.jfinal.plugin.activerecord.builder.BuilderKit
getShort(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
getShort(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
getShort(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
getSimpleDateFormat(String) - 类 中的静态方法com.jfinal.kit.TimeKit
getSize() - 类 中的方法com.jfinal.template.stat.ast.ForIteratorStatus
getSource(String, String, String) - 类 中的方法com.jfinal.template.source.ClassPathSourceFactory
getSource(String, String, String) - 类 中的方法com.jfinal.template.source.FileSourceFactory
getSource(String, String, String) - 接口 中的方法com.jfinal.template.source.ISourceFactory
getSourceCode() - 类 中的方法com.jfinal.proxy.ProxyClass
getSourceFactory() - 类 中的方法com.jfinal.template.Engine
getSourceFactory() - 类 中的方法com.jfinal.template.EngineConfig
getSql(String) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
getSql(String) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
getSql(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
getSql(String) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
getSql() - 类 中的方法com.jfinal.plugin.activerecord.SqlPara
getSqlKit() - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
getSqlKit() - 类 中的方法com.jfinal.plugin.activerecord.Config
getSqlMapEntrySet() - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
getSqlPara() - 类 中的方法com.jfinal.plugin.activerecord.DaoTemplate
getSqlPara(String, Record) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
getSqlPara(String, Model) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
getSqlPara(String, Map) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
getSqlPara(String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
getSqlPara(String, Record) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
getSqlPara(String, Model) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
getSqlPara(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
getSqlPara(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
getSqlPara() - 类 中的方法com.jfinal.plugin.activerecord.DbTemplate
getSqlPara(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.Model
可以在模板中利用 Model 自身的属性参与动态生成 sql,例如:
select * from user where nickName = #(nickName)
new Account().setNickName("James").getSqlPara(...)
getSqlPara(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
getSqlPara(String, Model) - 类 中的方法com.jfinal.plugin.activerecord.Model
getSqlPara(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
示例:
1:sql 定义
#sql("key")
select * from xxx where id = #para(id) and age > #para(age)
#end
2:java 代码
Kv cond = Kv.by("id", 123).set("age", 18);
getSqlPara("key", cond);
getSqlPara(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
示例:
1:sql 定义
#sql("key")
select * from xxx where a = #para(0) and b = #para(1)
#end
2:java 代码
getSqlPara("key", 123, 456);
getSqlParaByString(String, Map) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
getSqlParaByString(String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
getSqlParaByString(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
getSqlParaByString(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
getSqlParaByString(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.Model
getSqlParaByString(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
getSqlParaByString(String, Model) - 类 中的方法com.jfinal.plugin.activerecord.Model
getSqlParaByString(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
通过 String 内容获取 SqlPara 对象
例子:
String content = "select * from user where id = #para(id)";
SqlPara sqlPara = getSqlParaByString(content, Kv.by("id", 123));
特别注意:content 参数中不能包含 #sql 指令
getSqlParaByString(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
通过 String 内容获取 SqlPara 对象
例子:
String content = "select * from user where id = #para(0)";
SqlPara sqlPara = getSqlParaByString(content, 123);
特别注意:content 参数中不能包含 #sql 指令
getStat(int) - 类 中的方法com.jfinal.template.stat.ast.StatList
getStateFailValue() - 类 中的静态方法com.jfinal.kit.CPI
getStateOkValue() - 类 中的静态方法com.jfinal.kit.CPI
getStr(Object) - 类 中的方法com.jfinal.kit.Kv
getStr(Object) - 类 中的方法com.jfinal.kit.Okv
getStr(Object) - 类 中的方法com.jfinal.kit.Ret
getStr(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: varchar, char, enum, set, text, tinytext, mediumtext, longtext
getStr(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: varchar, char, enum, set, text, tinytext, mediumtext, longtext
getStr(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: varchar, char, enum, set, text, tinytext, mediumtext, longtext
getStr() - 类 中的方法com.jfinal.template.expr.ast.Const
getSubFileName(String, String) - 类 中的静态方法com.jfinal.template.stat.ast.Include
获取在父模板之下子模板的最终文件名,子模板目录相对于父模板文件目录来确定
以 "/" 打头则以 baseTemplatePath 为根,否则以父文件所在路径为根
getTable(Model) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
getTable(Class<? extends Model>) - 类 中的方法com.jfinal.plugin.activerecord.TableMapping
getTableBuilder() - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
一般用于配置 TableBuilder 内的 JavaType
例如:
ActiveRecordPlugin arp = ...;
JavaType jt = arp.getTableBuilder().getJavaType();
jt.addType(org.postgresql.geometric.PGpoint.class);
jt.addType(org.postgresql.geometric.PGbox.class);
jt.addType(org.postgresql.geometric.PGcircle.class);
jt.addType(org.postgresql.geometric.PGline.class);
jt.addType(org.postgresql.geometric.PGlseg.class);
jt.addType(org.postgresql.geometric.PGpath.class);
jt.addType(org.postgresql.geometric.PGpolygon.class);
getTablesResultSet() - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
不同数据库 dbMeta.getTables(...)
getTarget() - 类 中的方法com.jfinal.aop.Invocation
Get the target object which be intercepted
Example:
OrderService os = getTarget();
getTarget() - 类 中的方法com.jfinal.proxy.ProxyClass
getTargetClass() - 类 中的方法com.jfinal.proxy.ProxyMethod
getTargetName(Class<?>) - 类 中的方法com.jfinal.proxy.ProxyGenerator
支持对 static 类的代理
getTargetTypeVars(TypeVariable[]) - 类 中的方法com.jfinal.proxy.ProxyGenerator
获取父类泛型变量
相对于 getTypeVars(...)
getTaskInfoList() - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
getTemplate(String) - 类 中的方法com.jfinal.template.Engine
Get template by file name
getTemplate(ISource) - 类 中的方法com.jfinal.template.Engine
Get template by implementation of ISource
getTemplateByString(String) - 类 中的方法com.jfinal.template.Engine
Get template by string content and do not cache the template
getTemplateByString(String, boolean) - 类 中的方法com.jfinal.template.Engine
Get template by string content
重要:StringSource 中的 cacheKey = HashKit.md5(content),也即 cacheKey
与 content 有紧密的对应关系,当 content 发生变化时 cacheKey 值也相应变化
因此,原先 cacheKey 所对应的 Template 缓存对象已无法被获取,当 getTemplateByString(String)
的 String 参数的数量不确定时会引发内存泄漏
当 getTemplateByString(String, boolean) 中的 String 参数的
数量可控并且确定时,才可对其使用缓存
getTemplateByString(String, String) - 类 中的方法com.jfinal.template.Engine
getTemplateCacheSize() - 类 中的方法com.jfinal.template.Engine
getTemplateFile() - 类 中的方法com.jfinal.template.stat.Location
getTemplateRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getTemplateRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getterMethod - 类 中的变量com.jfinal.template.expr.ast.FastFieldGetter
getterMethod - 类 中的变量com.jfinal.template.expr.ast.FieldGetters.GetterMethodFieldGetter
GetterMethodFieldGetter(Method) - 类 的构造器com.jfinal.template.expr.ast.FieldGetters.GetterMethodFieldGetter
getterTypeMap - 类 中的变量com.jfinal.plugin.activerecord.generator.BaseModelGenerator
针对 Model 中七种可以自动转换类型的 getter 方法,调用其具有确定类型返回值的 getter 方法
享用自动类型转换的便利性,例如 getInt(String)、getStr(String)
其它方法使用泛型返回值方法: get(String)
注意:jfinal 3.2 及以上版本 Model 中的六种 getter 方法才具有类型转换功能
getText() - 类 中的方法com.jfinal.render.TextRender
getTextRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getTextRender(String, String) - 接口 中的方法com.jfinal.render.IRenderFactory
getTextRender(String, ContentType) - 接口 中的方法com.jfinal.render.IRenderFactory
getTextRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getTextRender(String, String) - 类 中的方法com.jfinal.render.RenderFactory
getTextRender(String, ContentType) - 类 中的方法com.jfinal.render.RenderFactory
getThreadLocalConnection() - 类 中的方法com.jfinal.plugin.activerecord.Config
Helps to implement nested transaction.
getThreadLocalJedis() - 类 中的方法com.jfinal.plugin.redis.Cache
getThrows(Method) - 类 中的方法com.jfinal.proxy.ProxyGenerator
获取方法抛出的异常
getTime(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: time
getTime(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: time
getTime(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: time
getTimestamp(String) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Get column of mysql type: timestamp, datetime
getTimestamp(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Get attribute of mysql type: timestamp, datetime
getTimestamp(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Get column of mysql type: timestamp, datetime
getTimestampPattern() - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
getToJson(Object) - 类 中的方法com.jfinal.json.JFinalJsonKit
getTokenCache() - 类 中的方法com.jfinal.config.Constants
getTotalPage() - 类 中的方法com.jfinal.plugin.activerecord.Page
Return total page.
getTotalRow() - 类 中的方法com.jfinal.plugin.activerecord.Page
Return total row.
getTransactionLevel() - 类 中的方法com.jfinal.plugin.activerecord.Config
getTransactionLevel(Config) - 类 中的方法com.jfinal.plugin.activerecord.tx.Tx
getTransactionLevel(Config) - 类 中的方法com.jfinal.plugin.activerecord.tx.TxReadCommitted
getTransactionLevel(Config) - 类 中的方法com.jfinal.plugin.activerecord.tx.TxReadUncommitted
getTransactionLevel(Config) - 类 中的方法com.jfinal.plugin.activerecord.tx.TxRepeatableRead
getTransactionLevel(Config) - 类 中的方法com.jfinal.plugin.activerecord.tx.TxSerializable
getType(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.TypeMapping
getType(String) - 类 中的方法com.jfinal.plugin.activerecord.JavaType
getType(ELContext, Object, Object) - 类 中的方法com.jfinal.plugin.activerecord.ModelRecordElResolver
getTypeVars(TypeVariable[]) - 类 中的方法com.jfinal.proxy.ProxyGenerator
获取子类泛型变量,也可用于获取方法泛型变量
getUpdate() - 类 中的方法com.jfinal.template.expr.ast.ForCtrl
getUploadPath() - 类 中的方法com.jfinal.upload.UploadFile
getURLClassLoader() - 类 中的方法com.jfinal.proxy.ProxyCompiler
getUrlParaSeparator() - 类 中的方法com.jfinal.config.Constants
getUsefulClass(Class<?>) - 类 中的方法com.jfinal.aop.AopFactory
被 cglib、guice 增强过的类需要通过本方法获取到被增强之前的类型
否则调用其 targetClass.getDeclaredFields() 方法时
获取到的是一堆 cglib guice 生成类中的 Field 对象
而被增强前的原类型中的 Field 反而获取不到
getUsefulClass(Model) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
getUsefulClass(Class<? extends Model>) - 类 中的静态方法com.jfinal.plugin.activerecord.DbKit
getValue() - 类 中的方法com.jfinal.captcha.Captcha
getValue(String) - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getValue(ELContext, Object, Object) - 类 中的方法com.jfinal.plugin.activerecord.ModelRecordElResolver
getValue() - 类 中的方法com.jfinal.template.expr.ast.Const
getValue(Object, String) - 接口 中的方法com.jfinal.template.expr.ast.FastFieldGetter.Proxy
getValue(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getValue() - 类 中的方法com.jfinal.template.stat.ast.ForEntry
getValueNames() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
getValueNames() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
getVelocityRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getVelocityRender(String) - 类 中的方法com.jfinal.render.RenderFactory
getView() - 类 中的方法com.jfinal.render.Render
getViewExtension() - 类 中的方法com.jfinal.config.Constants
getViewPath() - 类 中的方法com.jfinal.aop.Invocation
Return view path of this controller.
getViewPath() - 类 中的方法com.jfinal.core.Action
getViewPath() - 类 中的方法com.jfinal.core.Controller
getViewPath() - 类 中的方法com.jfinal.validate.Validator
Return view path of this controller.
getViewType() - 类 中的方法com.jfinal.config.Constants
getWebRootPath() - 类 中的静态方法com.jfinal.kit.PathKit
getXmlRender(String) - 接口 中的方法com.jfinal.render.IRenderFactory
getXmlRender(String) - 类 中的方法com.jfinal.render.RenderFactory
I18n - com.jfinal.i18n 中的类
I18N support.
I18nInterceptor - com.jfinal.i18n 中的类
I18nInterceptor is used to change the locale by request para,
and it is also switch the view or pass Res object to the view.
I18nInterceptor() - 类 的构造器com.jfinal.i18n.I18nInterceptor
I18nInterceptor(String, String) - 类 的构造器com.jfinal.i18n.I18nInterceptor
I18nInterceptor(String, String, boolean) - 类 的构造器com.jfinal.i18n.I18nInterceptor
I18nInterceptor(boolean) - 类 的构造器com.jfinal.i18n.I18nInterceptor
IAtom - com.jfinal.plugin.activerecord 中的接口
IAtom support transaction of database.
IBean - com.jfinal.plugin.activerecord 中的接口
IBean 标记型接口.
ICache - com.jfinal.plugin.activerecord.cache 中的接口
ICache.
ICallback - com.jfinal.plugin.activerecord 中的接口
ICallback provide a JDBC Connection if you need it or the active record plugin can not satisfy you requirement.
ICallback <T > - com.jfinal.plugin.redis 中的接口
ICallback.
ICaptchaCache - com.jfinal.captcha 中的接口
ICaptchaCache
IContainerFactory - com.jfinal.plugin.activerecord 中的接口
IConverter <T > - com.jfinal.core.converter 中的接口
将一个字符串转换成特定类型
Id - com.jfinal.template.expr.ast 中的类
Id
Id(String) - 类 的构造器com.jfinal.template.expr.ast.Id
IDataLoader - com.jfinal.plugin.ehcache 中的接口
IDataLoader.
IDataSourceProvider - com.jfinal.plugin.activerecord 中的接口
IDataSourceProvider
ActiveRecordPlugin constructor accept DataSourceProvider and DataSource
IDbProFactory - com.jfinal.plugin.activerecord 中的接口
IDbProFactory
用于自义扩展 DbPro 实现类,实现定制化功能
1:创建 DbPro 继承类: public class MyDbPro extends DbPro
2:创建 IDbProFactory 实现类:public class MyDbProFactory implements IDbProFactory,让其 getDbPro 方法 返回 MyDbPro 对象
3:配置生效: activeRecordPlugin.setDbProFactory(new MyDbProFactory())
注意:每个 ActiveRecordPlugin 对象拥有独立的 IDbProFactory 对象,多数据源使用时注意要对每个 arp 进行配置
IDruidStatViewAuth - com.jfinal.plugin.druid 中的接口
授权
If - com.jfinal.template.stat.ast 中的类
If
If(ExprList, StatList, Location) - 类 的构造器com.jfinal.template.stat.ast.If
IJsonFactory - com.jfinal.json 中的接口
IJsonFactory.
IKeyNamingPolicy - com.jfinal.plugin.redis 中的接口
IKeyNamingPolicy.
ILogFactory - com.jfinal.log 中的接口
ILogFactory.
ImageKit - com.jfinal.kit 中的类
IncDec - com.jfinal.template.expr.ast 中的类
自增与自减
IncDec(Sym, boolean, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.IncDec
Include - com.jfinal.template.stat.ast 中的类
Include
1:父模板被缓存时,被 include 的模板会被间接缓存,无需关心缓存问题
2:同一个模板文件被多个父模板 include,所处的背景环境不同,例如各父模板中定义的模板函数不同
各父模板所处的相对路径不同,所以多个父模板不能共用一次 parse 出来的结果,而是在每个被include
的地方重新 parse
两种用法:
1:只传入一个参数,参数必须是 String 常量,如果希望第一个参数是变量可以使用 #render 指令去实现
#include("_hot.html")
2:传入任意多个参数,除第一个参数以外的所有参数必须是赋值表达式,用于实现参数传递功能
#include("_hot.html", title = "热门新闻", list = newsList)
上例中传递了 title、list 两个参数,可以代替父模板中的 #set 指令传参方式
并且此方式传入的参数只在子模板作用域有效,不会污染父模板作用域
这种传参方式有利于将子模板模块化,例如上例的调用改成如下的参数:
#include("_hot.html", title = "热门项目", list = projectList)
通过这种传参方式在子模板 _hot.html 之中,完全不需要修改对于 title 与 list
这两个变量的处理代码,就实现了对 “热门项目” 数据的渲染
Include(Env, ExprList, String, Location) - 类 的构造器com.jfinal.template.stat.ast.Include
incr(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
将 key 中储存的数字值增一。
incrBy(Object, long) - 类 中的方法com.jfinal.plugin.redis.Cache
将 key 所储存的值加上增量 increment 。
Index - com.jfinal.template.expr.ast 中的类
index : expr '[' expr ']'
支持 a[i]、 a[b[i]]、a[i][j]、a[i][j]...
Index(Expr, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.Index
info(String) - 类 中的静态方法com.jfinal.kit.LogKit
info(String, Throwable) - 类 中的静态方法com.jfinal.kit.LogKit
info(String, Object...) - 类 中的静态方法com.jfinal.kit.LogKit
info(String) - 类 中的方法com.jfinal.log.JdkLog
info(String, Throwable) - 类 中的方法com.jfinal.log.JdkLog
info(String, Object...) - 类 中的方法com.jfinal.log.JdkLog
info(String) - 类 中的方法com.jfinal.log.Log
info(String, Throwable) - 类 中的方法com.jfinal.log.Log
info(String, Object...) - 类 中的方法com.jfinal.log.Log
info(String) - 类 中的方法com.jfinal.log.Log4jLog
info(String, Throwable) - 类 中的方法com.jfinal.log.Log4jLog
info(String, Object...) - 类 中的方法com.jfinal.log.Log4jLog
info(String) - 类 中的方法com.jfinal.log.Slf4jLog
info(String, Throwable) - 类 中的方法com.jfinal.log.Slf4jLog
info(String, Object...) - 类 中的方法com.jfinal.log.Slf4jLog
info(String) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
info(String, Throwable) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
info(String, Object...) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
init(ActionMapping, Constants) - 类 中的方法com.jfinal.core.ActionHandler
init(FilterConfig) - 类 中的方法com.jfinal.core.JFinalFilter
init(String, String) - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
init(int) - 类 中的静态方法com.jfinal.kit.ScheduledKit
初始化
init(ScheduledExecutorService) - 类 中的静态方法com.jfinal.kit.ScheduledKit
传递 ScheduledExecutorService 对象进行初始化,从而完全掌控线程池参数
init(int) - 类 中的静态方法com.jfinal.kit.ThreadPoolKit
初始化
init(ExecutorService) - 类 中的静态方法com.jfinal.kit.ThreadPoolKit
传递 ExecutorService 对象进行初始化,从而完全掌控线程池参数
init() - 类 中的方法com.jfinal.log.LogManager
init(ServletContext) - 类 中的静态方法com.jfinal.plugin.activerecord.ModelRecordElResolver
init() - 类 中的静态方法com.jfinal.plugin.activerecord.ModelRecordElResolver
init(Engine, Constants, ServletContext) - 接口 中的方法com.jfinal.render.IRenderFactory
init(String, int, int, char) - 类 中的方法com.jfinal.render.QrCodeRender
init(String, int, int, ErrorCorrectionLevel) - 类 中的方法com.jfinal.render.QrCodeRender
init(Engine, Constants, ServletContext) - 类 中的方法com.jfinal.render.RenderFactory
init(Engine, Constants, ServletContext) - 类 中的方法com.jfinal.render.RenderManager
init(OutputStream) - 类 中的方法com.jfinal.template.io.ByteWriter
init(Writer) - 类 中的方法com.jfinal.template.io.CharWriter
init() - 类 中的方法com.jfinal.template.io.FastStringWriter
init(Map.Entry<Object, Object>) - 类 中的方法com.jfinal.template.stat.ast.ForEntry
init(ITokenCache) - 类 中的静态方法com.jfinal.token.TokenManager
init(String, long, String) - 类 中的静态方法com.jfinal.upload.OreillyCos
initEngine() - 类 中的方法com.jfinal.plugin.activerecord.generator.BaseModelGenerator
initEngine() - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
initEngine() - 类 中的方法com.jfinal.plugin.activerecord.generator.ModelGenerator
initialSize - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
initServletContext(ServletContext) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
spring 回调,利用 ServletContext 做必要的初始化工作
inject(T) - 类 中的静态方法com.jfinal.aop.Aop
inject(T) - 类 中的方法com.jfinal.aop.AopFactory
inject(Class<T>, T) - 类 中的方法com.jfinal.aop.AopFactory
Inject - com.jfinal.aop 中的注释类型
Inject is used to inject dependent object
injectBean(Class<T>, HttpServletRequest, boolean) - 类 中的静态方法com.jfinal.core.Injector
injectBean(Class<T>, String, HttpServletRequest, boolean) - 类 中的静态方法com.jfinal.core.Injector
injectDependency - 类 中的变量com.jfinal.core.ControllerFactory
injectModel(Class<T>, HttpServletRequest, boolean) - 类 中的静态方法com.jfinal.core.Injector
injectModel(Class<T>, String, HttpServletRequest, boolean) - 类 中的静态方法com.jfinal.core.Injector
Injector - com.jfinal.core 中的类
Injector.
Injector() - 类 的构造器com.jfinal.core.Injector
injectSuperClass - 类 中的变量com.jfinal.aop.AopFactory
InnerEvalDirective() - 类 的构造器com.jfinal.kit.ElKit.InnerEvalDirective
InnerSession(HttpSession) - 类 的构造器com.jfinal.template.ext.spring.JFinalView.InnerSession
INT - 类 中的静态变量com.jfinal.template.expr.ast.Arith
IntegerArrayGetter - com.jfinal.core.paragetter 中的类
IntegerArrayGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.IntegerArrayGetter
IntegerConverter() - 类 的构造器com.jfinal.core.converter.Converters.IntegerConverter
IntegerExt - com.jfinal.template.ext.extensionmethod 中的类
针对 java.lang.Integer 的扩展方法
重要用途:
Controller.keepPara() 方法会将所有类型的数据当成 String 并传回到
到模板中,所以模板中的如下代码将无法工作:
#if(age > 18)
....
IntegerExt() - 类 的构造器com.jfinal.template.ext.extensionmethod.IntegerExt
IntegerGetter - com.jfinal.core.paragetter 中的类
IntegerGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.IntegerGetter
IntegerWriter - com.jfinal.template.io 中的类
IntegerWriter() - 类 的构造器com.jfinal.template.io.IntegerWriter
intercept(Invocation) - 接口 中的方法com.jfinal.aop.Interceptor
intercept(Invocation) - 类 中的方法com.jfinal.aop.InterceptorStack
intercept(Invocation) - 类 中的方法com.jfinal.aop.PrototypeInterceptor
intercept(Invocation) - 类 中的方法com.jfinal.ext.cors.CORSInterceptor
intercept(Invocation) - 类 中的方法com.jfinal.ext.interceptor.GET
intercept(Invocation) - 类 中的方法com.jfinal.ext.interceptor.LogInterceptor
intercept(Invocation) - 类 中的方法com.jfinal.ext.interceptor.NotAction
已过时。
intercept(Invocation) - 类 中的方法com.jfinal.ext.interceptor.NoUrlPara
intercept(Invocation) - 类 中的方法com.jfinal.ext.interceptor.POST
intercept(Invocation) - 类 中的方法com.jfinal.ext.interceptor.Restful
add edit 无需处理
GET /user ---> index
GET /user/id ---> show
POST /user ---> save
PUT /user/id ---> update
DELETE /user/id ---> delete
intercept(Invocation) - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor
intercept(Invocation) - 类 中的方法com.jfinal.i18n.I18nInterceptor
1: use the locale from request para if exists. change the locale write to the cookie
2: use the locale from cookie para if exists.
3: use the default locale
4: use setAttr(resName, resObject) pass Res object to the view.
intercept(Invocation) - 类 中的方法com.jfinal.plugin.activerecord.OneConnectionPerThread
intercept(Invocation) - 类 中的方法com.jfinal.plugin.activerecord.tx.Tx
intercept(Invocation) - 类 中的方法com.jfinal.plugin.activerecord.tx.TxByActionKeyRegex
intercept(Invocation) - 类 中的方法com.jfinal.plugin.activerecord.tx.TxByActionKeys
intercept(Invocation) - 类 中的方法com.jfinal.plugin.activerecord.tx.TxByMethodRegex
intercept(Invocation) - 类 中的方法com.jfinal.plugin.activerecord.tx.TxByMethods
intercept(Invocation) - 类 中的方法com.jfinal.plugin.ehcache.CacheInterceptor
intercept(Invocation) - 类 中的方法com.jfinal.plugin.ehcache.EvictInterceptor
intercept(Invocation) - 类 中的方法com.jfinal.plugin.redis.RedisInterceptor
intercept(Invocation) - 类 中的方法com.jfinal.validate.Validator
Interceptor - com.jfinal.aop 中的接口
Interceptor.
InterceptorManager - com.jfinal.aop 中的类
InterceptorManager.
1:管理控制层、业务层全局拦截器
2:缓存业务层 Class 级拦截器数组。
Interceptors - com.jfinal.config 中的类
The Interceptors is used to config global action interceptors and global service interceptors.
Interceptors() - 类 的构造器com.jfinal.config.Interceptors
InterceptorStack - com.jfinal.aop 中的类
InterceptorStack.
InterceptorStack() - 类 的构造器com.jfinal.aop.InterceptorStack
invalid - 类 中的变量com.jfinal.validate.Validator
invalidate() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
invalidate() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
Invocation - com.jfinal.aop 中的类
Invocation is used to invoke the interceptors and the target method
Invocation(Object, Long, Callback, Object...) - 类 的构造器com.jfinal.aop.Invocation
Invocation(Object, Long, Callback) - 类 的构造器com.jfinal.aop.Invocation
Invocation(Object, Method, Interceptor[], Callback, Object[]) - 类 的构造器com.jfinal.aop.Invocation
用于扩展 ProxyFactory
Invocation() - 类 的构造器com.jfinal.aop.Invocation
Invocation(Action, Controller) - 类 的构造器com.jfinal.aop.Invocation
invocation - 类 中的变量com.jfinal.validate.Validator
invoke() - 类 中的方法com.jfinal.aop.Invocation
invoke(Object, Method, Object[]) - 类 中的方法com.jfinal.plugin.activerecord.SqlReporter
invoke(Object, Object...) - 类 中的方法com.jfinal.template.expr.ast.MethodInfo
invoke(Object, Object...) - 类 中的方法com.jfinal.template.expr.ast.MethodInfoExt
invoke(Object, Object...) - 类 中的方法com.jfinal.template.expr.ast.NullMethodInfo
invokeVarArgsMethod(Object, Object[]) - 类 中的方法com.jfinal.template.expr.ast.MethodInfo
IParaGetter <T > - com.jfinal.core.paragetter 中的接口
IPlugin - com.jfinal.plugin 中的接口
IPlugin
IRenderFactory - com.jfinal.render 中的接口
IRenderFactory.
IRow <M > - com.jfinal.plugin.activerecord 中的接口
IRow 支持统一的方式来处理 Model 和 Record
isAbsolutePath(String) - 类 中的静态方法com.jfinal.kit.PathKit
isActionInvocation() - 类 中的方法com.jfinal.aop.Invocation
return true if it is action invocation.
isAfter(ChronoLocalDateTime<?>, ChronoLocalDateTime<?>) - 类 中的静态方法com.jfinal.kit.TimeKit
判断 A 的时间是否在 B 的时间 "之后"
isBefore(ChronoLocalDateTime<?>, ChronoLocalDateTime<?>) - 类 中的静态方法com.jfinal.kit.TimeKit
判断 A 的时间是否在 B 的时间 "之前"
isBlank(String) - 类 中的静态方法com.jfinal.kit.StrKit
字符串为 null 或者内部字符全部为 ' ' '\t' '\n' '\r' 这四类字符时返回 true
isBlank(char) - 类 中的静态方法com.jfinal.template.stat.CharTable
isBlankOrLineFeed(char) - 类 中的静态方法com.jfinal.template.stat.CharTable
isBoolean() - 类 中的方法com.jfinal.template.expr.ast.Const
isBreak() - 类 中的方法com.jfinal.template.stat.Ctrl
isContinue() - 类 中的方法com.jfinal.template.stat.Ctrl
isDebugEnabled() - 类 中的静态方法com.jfinal.kit.LogKit
isDebugEnabled() - 类 中的方法com.jfinal.log.JdkLog
isDebugEnabled() - 类 中的方法com.jfinal.log.Log
isDebugEnabled() - 类 中的方法com.jfinal.log.Log4jLog
isDebugEnabled() - 类 中的方法com.jfinal.log.Slf4jLog
isDebugEnabled() - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
isDevMode() - 类 中的方法com.jfinal.plugin.activerecord.Config
isDevMode() - 类 中的方法com.jfinal.template.EngineConfig
isDevMode() - 类 中的方法com.jfinal.template.Env
isDigit(char) - 类 中的静态方法com.jfinal.template.stat.CharTable
isDouble() - 类 中的方法com.jfinal.template.expr.ast.Const
isEmpty() - 类 中的方法com.jfinal.kit.Prop
isEmpty() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
isEmpty() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
isEmpty(Object) - 类 中的方法com.jfinal.template.ext.sharedmethod.SharedMethodLib
判断 Collection、Map、数组、Iterator、Iterable 类型对象中的元素个数是否为 0
规则:
1:null 返回 true
2:List、Set 等一切继承自 Collection 的,返回 isEmpty()
3:Map 返回 isEmpty()
4:数组返回 length == 0
5:Iterator 返回 !
isEmpty() - 类 中的方法com.jfinal.template.stat.ast.Text
isEqual(ChronoLocalDateTime<?>, ChronoLocalDateTime<?>) - 类 中的静态方法com.jfinal.kit.TimeKit
判断 A 的时间是否与 B 的时间 "相同"
ISerializer - com.jfinal.plugin.redis.serializer 中的接口
ISerializer.
isErrorEnabled() - 类 中的静态方法com.jfinal.kit.LogKit
isErrorEnabled() - 类 中的方法com.jfinal.log.JdkLog
isErrorEnabled() - 类 中的方法com.jfinal.log.Log
isErrorEnabled() - 类 中的方法com.jfinal.log.Log4jLog
isErrorEnabled() - 类 中的方法com.jfinal.log.Slf4jLog
isErrorEnabled() - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
IServer - com.jfinal.server 中的接口
isExpired() - 类 中的方法com.jfinal.captcha.Captcha
isExprChar(char) - 类 中的静态方法com.jfinal.template.stat.CharTable
isFail() - 类 中的方法com.jfinal.kit.Ret
isFalse(Object) - 类 中的方法com.jfinal.kit.Kv
key 存在,并且 value 为 false,则返回 true
isFalse(Object) - 类 中的方法com.jfinal.kit.Okv
key 存在,并且 value 为 false,则返回 true
isFalse(Object) - 类 中的方法com.jfinal.kit.Ret
key 存在,并且 value 为 false,则返回 true
isFalse() - 类 中的方法com.jfinal.template.expr.ast.Const
isFalse(Object) - 类 中的静态方法com.jfinal.template.expr.ast.Logic
isFatalEnabled() - 类 中的静态方法com.jfinal.kit.LogKit
isFatalEnabled() - 类 中的方法com.jfinal.log.JdkLog
isFatalEnabled() - 类 中的方法com.jfinal.log.Log
isFatalEnabled() - 类 中的方法com.jfinal.log.Log4jLog
isFatalEnabled() - 类 中的方法com.jfinal.log.Slf4jLog
isFatalEnabled() - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
isFirstPage() - 类 中的方法com.jfinal.plugin.activerecord.Page
isFloat() - 类 中的方法com.jfinal.template.expr.ast.Const
isForbiddenClass(Class<?>) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
isForbiddenMethod(String) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
isGlobalAssignment() - 类 中的方法com.jfinal.template.stat.Ctrl
isHexadecimalDigit(char) - 类 中的静态方法com.jfinal.template.stat.CharTable
isHttps(HttpServletRequest) - 类 中的静态方法com.jfinal.kit.HttpKit
检测是否为 https 请求
nginx 代理实现 https 的场景,需要对 nginx 进行如下配置:
proxy_set_header X-Forwarded-Proto https;
或者配置:
proxy_set_header X-Forwarded-Proto $scheme;
isInfoEnabled() - 类 中的静态方法com.jfinal.kit.LogKit
isInfoEnabled() - 类 中的方法com.jfinal.log.JdkLog
isInfoEnabled() - 类 中的方法com.jfinal.log.Log
isInfoEnabled() - 类 中的方法com.jfinal.log.Log4jLog
isInfoEnabled() - 类 中的方法com.jfinal.log.Slf4jLog
isInfoEnabled() - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
isInJar - 类 中的变量com.jfinal.template.source.ClassPathSource
isInjectDependency() - 类 中的方法com.jfinal.aop.AopManager
isInjectDependency() - 类 中的方法com.jfinal.core.ControllerFactory
isInjectSuperClass() - 类 中的方法com.jfinal.aop.AopFactory
isInjectSuperClass() - 类 中的方法com.jfinal.aop.AopManager
isInt() - 类 中的方法com.jfinal.template.expr.ast.Const
isInTransaction() - 类 中的方法com.jfinal.plugin.activerecord.Config
Return true if current thread in transaction.
isInUse() - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
isInUse() - 类 中的方法com.jfinal.template.io.ByteWriter
isInUse() - 类 中的方法com.jfinal.template.io.CharWriter
isInUse() - 类 中的方法com.jfinal.template.io.FastStringWriter
isIterator() - 类 中的方法com.jfinal.template.expr.ast.ForCtrl
isJump() - 类 中的方法com.jfinal.template.stat.Ctrl
isKeepByteAndShort() - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
指示 MetaBuilder 生成的 ColumnMeta.javaType 是否保持住 Byte、Short 类型
进而 BaseModelBuilder 生成针对 Byte、Short 类型的获取方法:
getByte(String)、getShort(String)
isLastPage() - 类 中的方法com.jfinal.plugin.activerecord.Page
isLetter(char) - 类 中的静态方法com.jfinal.template.stat.CharTable
isLetterOrDigit(char) - 类 中的静态方法com.jfinal.template.stat.CharTable
isLocalAssignment() - 类 中的方法com.jfinal.template.stat.Ctrl
isLong() - 类 中的方法com.jfinal.template.expr.ast.Const
isMethod - 类 中的变量com.jfinal.template.expr.ast.FieldGetters.IsMethodFieldGetter
IsMethodFieldGetter() - 类 的构造器com.jfinal.template.expr.ast.FieldGetters.IsMethodFieldGetter
IsMethodFieldGetter(Method) - 类 的构造器com.jfinal.template.expr.ast.FieldGetters.IsMethodFieldGetter
isModified() - 类 中的方法com.jfinal.template.source.ClassPathSource
模板文件在 jar 包文件之内则不支持热加载
isModified() - 类 中的方法com.jfinal.template.source.FileSource
isModified() - 接口 中的方法com.jfinal.template.source.ISource
reload template if modified on devMode
isModified() - 类 中的方法com.jfinal.template.source.StringSource
isModified() - 类 中的方法com.jfinal.template.Template
isNew() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
isNew() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
isNull(Object) - 类 中的方法com.jfinal.kit.Kv
key 不存在,或者 key 存在但 value 为null
isNull(Object) - 类 中的方法com.jfinal.kit.Okv
key 不存在,或者 key 存在但 value 为null
isNull(Object) - 类 中的方法com.jfinal.kit.Ret
key 不存在,或者 key 存在但 value 为null
isNull() - 类 中的方法com.jfinal.template.expr.ast.Const
isNullable - 类 中的变量com.jfinal.plugin.activerecord.generator.ColumnMeta
isNullSafe() - 类 中的方法com.jfinal.template.stat.Ctrl
isNumber() - 类 中的方法com.jfinal.template.expr.ast.Const
isOctalDigit(char) - 类 中的静态方法com.jfinal.template.stat.CharTable
isOk() - 类 中的方法com.jfinal.kit.Ret
isOracle() - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
isOracle() - 类 中的方法com.jfinal.plugin.activerecord.dialect.OracleDialect
ISource - com.jfinal.template.source 中的接口
ISource 用于表示模板内容的来源
ISourceFactory - com.jfinal.template.source 中的接口
ISourceFactory 用于为 engine 切换不同的 ISource 实现类
FileSourceFactory 用于从指定的目录中加载模板文件
ClassPathSourceFactory 用于从 class path 以及 jar 文件中加载模板文件
配置示例:
engine.setSourceFactory(new ClassPathSourceFactory());
isParaBlank(String) - 类 中的方法com.jfinal.core.Controller
Return true if the para value is blank otherwise return false
isParaBlank(int) - 类 中的方法com.jfinal.core.Controller
Return true if the urlPara value is blank otherwise return false
isParaExists(String) - 类 中的方法com.jfinal.core.Controller
Return true if the para exists otherwise return false
isParaExists(int) - 类 中的方法com.jfinal.core.Controller
Return true if the urlPara exists otherwise return false
isPermitted(HttpServletRequest) - 接口 中的方法com.jfinal.plugin.druid.IDruidStatViewAuth
isPrimaryKey(String, String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
isPrimaryKey - 类 中的变量com.jfinal.plugin.activerecord.generator.ColumnMeta
isReadOnly(ELContext, Object, Object) - 类 中的方法com.jfinal.plugin.activerecord.ModelRecordElResolver
isReportAfterInvocation(HttpServletRequest) - 类 中的方法com.jfinal.core.ActionReporter
isReturn() - 类 中的方法com.jfinal.template.stat.Ctrl
isShowSql() - 类 中的方法com.jfinal.plugin.activerecord.Config
isSingleton() - 类 中的方法com.jfinal.aop.AopFactory
isSingleton() - 类 中的方法com.jfinal.aop.AopManager
isSkipMethod(Method) - 类 中的方法com.jfinal.proxy.ProxyGenerator
跳过不能代理的方法
1:非 public
2:final、static、abstract
3:方法名为:toString、hashCode、equals
isSkipTable(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
通过继承并覆盖此方法,跳过一些不希望处理的 table,定制更加灵活的 table 过滤规则
isSourceListModified() - 类 中的方法com.jfinal.template.Env
本方法用于在 devMode 之下,判断当前 Template 以及其下 #include 指令
所涉及的所有 ISource 对象是否被修改,以便于在 devMode 下重新加载
sourceList 属性用于存放主模板以及 #include 进来的模板所对应的
ISource 对象
isSourceModifiedForDevMode() - 类 中的方法com.jfinal.template.stat.ast.Define
isStarted - 类 中的变量com.jfinal.plugin.activerecord.ActiveRecordPlugin
isStarted - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
isStatic() - 类 中的方法com.jfinal.template.expr.ast.MethodInfo
isStr() - 类 中的方法com.jfinal.template.expr.ast.Const
isTakeOverDbPaginate() - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
isTakeOverDbPaginate() - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
isTakeOverModelPaginate() - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
isTakeOverModelPaginate() - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
isTraceEnabled() - 类 中的静态方法com.jfinal.kit.LogKit
isTraceEnabled() - 类 中的方法com.jfinal.log.JdkLog
isTraceEnabled() - 类 中的方法com.jfinal.log.Log
isTraceEnabled() - 类 中的方法com.jfinal.log.Log4jLog
isTraceEnabled() - 类 中的方法com.jfinal.log.Slf4jLog
isTraceEnabled() - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
isTrue(Object) - 类 中的方法com.jfinal.kit.Kv
key 存在,并且 value 为 true,则返回 true
isTrue(Object) - 类 中的方法com.jfinal.kit.Okv
key 存在,并且 value 为 true,则返回 true
isTrue(Object) - 类 中的方法com.jfinal.kit.Ret
key 存在,并且 value 为 true,则返回 true
isTrue() - 类 中的方法com.jfinal.template.expr.ast.Const
isTrue(Object) - 类 中的静态方法com.jfinal.template.expr.ast.Logic
规则:
1:null 返回 false
2:boolean 类型,原值返回
3:String、StringBuilder 等一切继承自 CharSequence 类的对象,返回 length > 0
4:其它返回 true
isVarArgs - 类 中的变量com.jfinal.template.expr.ast.MethodInfo
isVarArgs() - 类 中的方法com.jfinal.template.expr.ast.MethodInfo
isWarnEnabled() - 类 中的静态方法com.jfinal.kit.LogKit
isWarnEnabled() - 类 中的方法com.jfinal.log.JdkLog
isWarnEnabled() - 类 中的方法com.jfinal.log.Log
isWarnEnabled() - 类 中的方法com.jfinal.log.Log4jLog
isWarnEnabled() - 类 中的方法com.jfinal.log.Slf4jLog
isWarnEnabled() - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
isWindows() - 类 中的方法com.jfinal.proxy.ProxyCompiler
isWisdomAssignment() - 类 中的方法com.jfinal.template.stat.Ctrl
ITask - com.jfinal.plugin.cron4j 中的接口
实现 ITask 接口的 Task,多了一个 stop 方法,插件在停止时会进行回调
iterator() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
iteratorToJson(Iterator, int, JFinalJsonKit.JsonResult) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
ITokenCache - com.jfinal.token 中的接口
ITokenCache.
IWritable - com.jfinal.template.io 中的接口
IWritable 支持 OutputStream、Writer 双模式动态切换输出
详见 com.jfinal.template.stat.ast.Text 中的用法
random - 类 中的静态变量com.jfinal.captcha.CaptchaRender
random - 类 中的静态变量com.jfinal.ext.kit.SessionIdKit
RANDOM_FONT - 类 中的静态变量com.jfinal.captcha.CaptchaRender
RandomDirective - com.jfinal.template.ext.directive 中的类
输出 int 型随机数
RandomDirective() - 类 的构造器com.jfinal.template.ext.directive.RandomDirective
randomKey() - 类 中的方法com.jfinal.plugin.redis.Cache
从当前数据库中随机返回(不删除)一个 key 。
RangeArray - com.jfinal.template.expr.ast 中的类
RangeArray : [expr .. expr]
用法:
1:[1..3]
2:[3..1]
RangeArray(Expr, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.RangeArray
array : '[' exprList ?
RangeArray.RangeList - com.jfinal.template.expr.ast 中的类
RangeList(int, int, Location) - 类 的构造器com.jfinal.template.expr.ast.RangeArray.RangeList
rangeRender() - 类 中的方法com.jfinal.render.FileRender
RawData - com.jfinal.core.paragetter 中的类
RawData(String) - 类 的构造器com.jfinal.core.paragetter.RawData
RawDataGetter - com.jfinal.core.paragetter 中的类
RawDataGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.RawDataGetter
readData(HttpServletRequest) - 类 中的静态方法com.jfinal.kit.HttpKit
readIncommingRequestData(HttpServletRequest) - 类 中的静态方法com.jfinal.kit.HttpKit
已过时。
RealFieldGetter(Field) - 类 的构造器com.jfinal.template.expr.ast.FieldGetters.RealFieldGetter
rebuildColumnMetas(List<TableMeta>) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
Record - com.jfinal.plugin.activerecord 中的类
Record
Record() - 类 的构造器com.jfinal.plugin.activerecord.Record
recordBuilder - 类 中的变量com.jfinal.plugin.activerecord.dialect.Dialect
RecordBuilder - com.jfinal.plugin.activerecord 中的类
RecordBuilder.
RecordBuilder() - 类 的构造器com.jfinal.plugin.activerecord.RecordBuilder
RecordFieldGetter() - 类 的构造器com.jfinal.template.expr.ast.FieldGetters.RecordFieldGetter
recycle(Controller) - 类 中的方法com.jfinal.core.ControllerFactory
回收利用 Controller,参考 FastControllerFactory,大致步骤如下:
1:在控制器中覆盖 Controller 的 _clear_() 方法,先清除自身状态,再调用
super.
recycle(Controller) - 类 中的方法com.jfinal.core.FastControllerFactory
清除 controller 状态,回收利用
redirect(String) - 类 中的方法com.jfinal.core.Controller
Redirect to url
redirect(String, boolean) - 类 中的方法com.jfinal.core.Controller
Redirect to url
redirect(String, HttpServletRequest, HttpServletResponse, boolean[]) - 类 中的静态方法com.jfinal.kit.HandlerKit
redirect301(String) - 类 中的方法com.jfinal.core.Controller
Render with url and 301 status
redirect301(String, boolean) - 类 中的方法com.jfinal.core.Controller
Render with url and 301 status
redirect301(String, HttpServletRequest, HttpServletResponse, boolean[]) - 类 中的静态方法com.jfinal.kit.HandlerKit
Redirect301Render - com.jfinal.render 中的类
Redirect301Render.
Redirect301Render(String) - 类 的构造器com.jfinal.render.Redirect301Render
Redirect301Render(String, boolean) - 类 的构造器com.jfinal.render.Redirect301Render
RedirectRender - com.jfinal.render 中的类
RedirectRender with status: 302 Found.
RedirectRender(String) - 类 的构造器com.jfinal.render.RedirectRender
RedirectRender(String, boolean) - 类 的构造器com.jfinal.render.RedirectRender
Redis - com.jfinal.plugin.redis 中的类
Redis.
Redis() - 类 的构造器com.jfinal.plugin.redis.Redis
RedisInterceptor - com.jfinal.plugin.redis 中的类
RedisInterceptor 用于在同一线程中共享同一个 jedis 对象,提升性能.
RedisInterceptor() - 类 的构造器com.jfinal.plugin.redis.RedisInterceptor
RedisPlugin - com.jfinal.plugin.redis 中的类
RedisPlugin.
RedisPlugin(String, String) - 类 的构造器com.jfinal.plugin.redis.RedisPlugin
RedisPlugin(String, String, int) - 类 的构造器com.jfinal.plugin.redis.RedisPlugin
RedisPlugin(String, String, int, int) - 类 的构造器com.jfinal.plugin.redis.RedisPlugin
RedisPlugin(String, String, int, int, String) - 类 的构造器com.jfinal.plugin.redis.RedisPlugin
RedisPlugin(String, String, int, int, String, int) - 类 的构造器com.jfinal.plugin.redis.RedisPlugin
RedisPlugin(String, String, int, int, String, int, String) - 类 的构造器com.jfinal.plugin.redis.RedisPlugin
RedisPlugin(String, String, int, String) - 类 的构造器com.jfinal.plugin.redis.RedisPlugin
RedisPlugin(String, String, String) - 类 的构造器com.jfinal.plugin.redis.RedisPlugin
ReflectKit - com.jfinal.kit 中的类
反射工具类
ReflectKit() - 类 的构造器com.jfinal.kit.ReflectKit
regist(Class<T>, IConverter<T>) - 类 中的方法com.jfinal.core.converter.TypeConverter
regist(Class<T>, Class<? extends ParaGetter<T>>, String) - 类 中的方法com.jfinal.core.paragetter.ParaProcessorBuilder
注册一个类型对应的参数获取器
ParameterGetterBuilder.me().regist(java.lang.String.class, StringParaGetter.class, null);
remarks - 类 中的变量com.jfinal.plugin.activerecord.generator.ColumnMeta
remarks - 类 中的变量com.jfinal.plugin.activerecord.generator.TableMeta
remove(String) - 类 中的方法com.jfinal.captcha.CaptchaCache
remove(String) - 接口 中的方法com.jfinal.captcha.ICaptchaCache
remove(Object) - 类 中的方法com.jfinal.kit.SyncWriteMap
remove(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.cache.EhCache
remove(String, Object) - 接口 中的方法com.jfinal.plugin.activerecord.cache.ICache
remove(Object) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
remove(Object) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
remove(String) - 类 中的方法com.jfinal.plugin.activerecord.Model
Remove attribute of this model.
remove(String...) - 类 中的方法com.jfinal.plugin.activerecord.Model
Remove attributes of this model.
remove(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Remove attribute of this record.
remove(String...) - 类 中的方法com.jfinal.plugin.activerecord.Record
Remove columns of this record.
remove(String, Object) - 类 中的静态方法com.jfinal.plugin.ehcache.CacheKit
remove(String) - 类 中的静态方法com.jfinal.template.Engine
Remove engine with engine name managed by JFinal
remove(Object) - 类 中的方法com.jfinal.template.stat.Scope
移除变量
自内向外在作用域栈中查找变量,移除最先找到的变量
remove(Token) - 接口 中的方法com.jfinal.token.ITokenCache
removeAbandoned - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
removeAbandonedTimeoutMillis - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
removeAll() - 类 中的方法com.jfinal.captcha.CaptchaCache
removeAll() - 接口 中的方法com.jfinal.captcha.ICaptchaCache
removeAll(String) - 类 中的方法com.jfinal.plugin.activerecord.cache.EhCache
removeAll(String) - 接口 中的方法com.jfinal.plugin.activerecord.cache.ICache
removeAll(Collection<?>) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
removeAll(String) - 类 中的静态方法com.jfinal.plugin.ehcache.CacheKit
removeAllTemplateCache() - 类 中的方法com.jfinal.template.Engine
Remove all template cache
removeAttr(String) - 类 中的方法com.jfinal.core.Controller
Removes an attribute from this request
removeAttribute(String) - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
removeAttribute(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
removeCache(String) - 类 中的静态方法com.jfinal.plugin.redis.Redis
removeConfig(String) - 类 中的静态方法com.jfinal.plugin.activerecord.DbKit
removeCookie(String) - 类 中的方法com.jfinal.core.Controller
Remove Cookie.
removeCookie(String, String) - 类 中的方法com.jfinal.core.Controller
Remove Cookie.
removeCookie(String, String, String) - 类 中的方法com.jfinal.core.Controller
Remove Cookie.
removeDirective(String) - 类 中的方法com.jfinal.template.Engine
Remove directive
removeDirective(String) - 类 中的方法com.jfinal.template.EngineConfig
removedTableNamePrefixes - 类 中的变量com.jfinal.plugin.activerecord.generator.MetaBuilder
removeExcludedAttrs(String...) - 类 中的静态方法com.jfinal.render.JsonRender
removeExtensionMethod(Class<?>, Object) - 类 中的静态方法com.jfinal.template.Engine
removeExtensionMethod(Class<?>, Class<?>) - 类 中的静态方法com.jfinal.template.Engine
removeExtensionMethod(Class<?>, Object) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
removeExtensionMethod(Class<?>, Class<?>) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
removeFieldGetter(Class<? extends FieldGetter>) - 类 中的静态方法com.jfinal.template.Engine
removeFieldGetter(Class<? extends FieldGetter>) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKit
removeForbiddenClass(Class<?>) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
removeForbiddenMethod(String) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKit
removeGlobal(Object) - 类 中的方法com.jfinal.template.stat.Scope
移除全局变量
全局作用域是指本次请求的整个 template
removeInterceptor(List<Class<?>>, Class<?>[]) - 类 中的方法com.jfinal.proxy.ProxyGenerator
removeKeyword(String) - 类 中的方法com.jfinal.kit.JavaKeyword
removeLocal(Object) - 类 中的方法com.jfinal.template.stat.Scope
移除局部变量
removeMapping(Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.generator.TypeMapping
removeMapping(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.TypeMapping
removeNoPrimaryKeyTable(List<TableMeta>) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
removeNullValueAttrs() - 类 中的方法com.jfinal.plugin.activerecord.Model
Remove attributes if it is null.
removeNullValueColumns() - 类 中的方法com.jfinal.plugin.activerecord.Record
Remove columns if it is null.
removeRecordSerializer() - 类 中的方法com.jfinal.json.FastJsonFactory
移除 FastJsonRecordSerializer
仅为了与 jfinal 3.3 版本之前版本的行为保持一致
removeSessionAttr(String) - 类 中的方法com.jfinal.core.Controller
Remove Object in session.
removeSharedMethod(String) - 类 中的方法com.jfinal.template.Engine
Remove shared Method by method name
removeSharedMethod(Class<?>) - 类 中的方法com.jfinal.template.Engine
Remove shared Method of the Class
removeSharedMethod(Method) - 类 中的方法com.jfinal.template.Engine
Remove shared Method
removeSharedMethod(String) - 类 中的方法com.jfinal.template.EngineConfig
Remove shared Method with method name
removeSharedMethod(Class<?>) - 类 中的方法com.jfinal.template.EngineConfig
Remove shared Method of the Class
removeSharedMethod(Method) - 类 中的方法com.jfinal.template.EngineConfig
Remove shared Method
removeSharedMethod(String) - 类 中的方法com.jfinal.template.expr.ast.SharedMethodKit
removeSharedMethod(Class<?>) - 类 中的方法com.jfinal.template.expr.ast.SharedMethodKit
removeSharedMethod(Method) - 类 中的方法com.jfinal.template.expr.ast.SharedMethodKit
removeSharedObject(String) - 类 中的方法com.jfinal.template.Engine
removeSharedObject(String) - 类 中的方法com.jfinal.template.EngineConfig
removeTemplateCache(String) - 类 中的方法com.jfinal.template.Engine
Remove template cache by cache key
removeThreadLocalConnection() - 类 中的方法com.jfinal.plugin.activerecord.Config
removeThreadLocalJedis() - 类 中的方法com.jfinal.plugin.redis.Cache
removeType(Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.JavaType
removeTypeMapping(Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
removeTypeMapping(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
removeValue(String) - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
removeValue(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
rename(Object, Object) - 类 中的方法com.jfinal.plugin.redis.Cache
将 key 改名为 newkey 。
render() - 类 中的方法com.jfinal.captcha.CaptchaRender
生成验证码
render(Render) - 类 中的方法com.jfinal.core.Controller
Render with any Render which extends Render
render(String) - 类 中的方法com.jfinal.core.Controller
Render with view use default type Render configured in JFinalConfig
render(String, int) - 类 中的方法com.jfinal.core.Controller
Render with view and status use default type Render configured in JFinalConfig
render() - 类 中的方法com.jfinal.core.ForwardActionRender
render() - 类 中的方法com.jfinal.ext.render.CaptchaRender
已过时。
render() - 类 中的方法com.jfinal.ext.render.StaticHtmlRender
render() - 类 中的方法com.jfinal.render.ErrorRender
render() - 类 中的方法com.jfinal.render.FileRender
render() - 类 中的方法com.jfinal.render.FreeMarkerRender
render() - 类 中的方法com.jfinal.render.JsonRender
render() - 类 中的方法com.jfinal.render.JspRender
render() - 类 中的方法com.jfinal.render.NullRender
Render nothing
render() - 类 中的方法com.jfinal.render.QrCodeRender
render() - 类 中的方法com.jfinal.render.Redirect301Render
render() - 类 中的方法com.jfinal.render.RedirectRender
Render - com.jfinal.render 中的类
Render.
Render() - 类 的构造器com.jfinal.render.Render
render() - 类 中的方法com.jfinal.render.Render
Render to client
render() - 类 中的方法com.jfinal.render.TemplateRender
render() - 类 中的方法com.jfinal.render.TextRender
render() - 类 中的方法com.jfinal.render.VelocityRender
render(Map<?, ?>, OutputStream) - 类 中的方法com.jfinal.template.Template
渲染到 OutputStream 中去
render(OutputStream) - 类 中的方法com.jfinal.template.Template
支持无 data 参数,渲染到 OutputStream 中去
适用于数据在模板中通过表达式和语句直接计算得出等等应用场景
render(Map<?, ?>, Writer) - 类 中的方法com.jfinal.template.Template
渲染到 Writer 中去
render(Writer) - 类 中的方法com.jfinal.template.Template
支持无 data 参数,渲染到 Writer 中去
适用于数据在模板中通过表达式和语句直接计算得出等等应用场景
render(Map<?, ?>, File) - 类 中的方法com.jfinal.template.Template
渲染到 File 中去
适用于代码生成器类似应用场景
render(Map<?, ?>, String) - 类 中的方法com.jfinal.template.Template
渲染到 String fileName 参数所指定的文件中去
适用于代码生成器类似应用场景
render(Map<?, ?>, OutputStream, Template.Func<ByteWriter>) - 类 中的方法com.jfinal.template.Template
渲染到 OutputStream 中去
render(Map<?, ?>, Writer, Template.Func<CharWriter>) - 类 中的方法com.jfinal.template.Template
渲染到 Writer 中去
render(Map<?, ?>, File, Template.Func<ByteWriter>) - 类 中的方法com.jfinal.template.Template
渲染到 File 中去
适用于代码生成器类似应用场景
renderCaptcha() - 类 中的方法com.jfinal.core.Controller
RenderDirective - com.jfinal.template.ext.directive 中的类
#render 指令用于动态渲染子模板,作为 include 指令的补充
两种用法:
1:只传入一个参数,参数可以是 String 常量,也可以是任意表达式
#render("_hot.html")
#render(subFile)
2:传入任意多个参数,除第一个参数以外的所有参数必须是赋值表达式,用于实现参数传递功能
#render("_hot.html", title = "热门新闻", list = newsList)
上例中传递了 title、list 两个参数,可以代替父模板中的 #set 指令传参方式
并且此方式传入的参数只在子模板作用域有效,不会污染父模板作用域
这种传参方式有利于将子模板模块化,例如上例的调用改成如下的参数:
#render("_hot.html", title = "热门项目", list = projectList)
通过这种传参方式在子模板 _hot.html 之中,完全不需要修改对于 title 与 list
这两个变量的处理代码,就实现了对 “热门项目” 数据的渲染
RenderDirective() - 类 的构造器com.jfinal.template.ext.directive.RenderDirective
RenderDirective.SubEnv - com.jfinal.template.ext.directive 中的类
SubEnv 用于将子模板与父模板中的模板函数隔离开来,
否则在子模板被修改并被重新解析时会再次添加子模板中的
模板函数,从而抛出异常
SubEnv 也可以使子模板中定义的模板函数不与上层产生冲突,
有利于动态型模板渲染的模块化
注意: #render 子模板中定义的模板函数无法在父模板中调用
RenderDirective.SubStat - com.jfinal.template.ext.directive 中的类
renderError(int, String) - 类 中的方法com.jfinal.core.Controller
Render with view and errorCode status
renderError(int, Render) - 类 中的方法com.jfinal.core.Controller
Render with render and errorCode status
renderError(int) - 类 中的方法com.jfinal.core.Controller
Render with view and errorCode status configured in JFinalConfig
renderError404(String, HttpServletRequest, HttpServletResponse, boolean[]) - 类 中的静态方法com.jfinal.kit.HandlerKit
renderError404(HttpServletRequest, HttpServletResponse, boolean[]) - 类 中的静态方法com.jfinal.kit.HandlerKit
RenderException - com.jfinal.render 中的异常错误
RenderException.
RenderException() - 异常错误 的构造器com.jfinal.render.RenderException
RenderException(String) - 异常错误 的构造器com.jfinal.render.RenderException
RenderException(Throwable) - 异常错误 的构造器com.jfinal.render.RenderException
RenderException(String, Throwable) - 异常错误 的构造器com.jfinal.render.RenderException
RenderFactory - com.jfinal.render 中的类
RenderFactory.
RenderFactory() - 类 的构造器com.jfinal.render.RenderFactory
renderFile(String) - 类 中的方法com.jfinal.core.Controller
Render with file
renderFile(String, String) - 类 中的方法com.jfinal.core.Controller
Render with file, using the new file name to the client
renderFile(File) - 类 中的方法com.jfinal.core.Controller
Render with file
renderFile(File, String) - 类 中的方法com.jfinal.core.Controller
Render with file, using the new file name to the client
renderFreeMarker(String) - 类 中的方法com.jfinal.core.Controller
Render with freemarker view
renderHtml(String) - 类 中的方法com.jfinal.core.Controller
Render with html text.
RenderInfo - com.jfinal.plugin.ehcache 中的类
RenderInfo.
RenderInfo(Render) - 类 的构造器com.jfinal.plugin.ehcache.RenderInfo
renderJavascript(String) - 类 中的方法com.jfinal.core.Controller
Render with javascript text.
renderJson(String, Object) - 类 中的方法com.jfinal.core.Controller
Render with json
Example:
renderJson("message", "Save successful");
renderJson("users", users);
renderJson() - 类 中的方法com.jfinal.core.Controller
Render with json
renderJson(String[]) - 类 中的方法com.jfinal.core.Controller
Render with attributes set by setAttr(...) before.
renderJson(String) - 类 中的方法com.jfinal.core.Controller
Render with json text.
renderJson(Object) - 类 中的方法com.jfinal.core.Controller
Render json with object.
renderJsp(String) - 类 中的方法com.jfinal.core.Controller
Render with jsp view
renderManager - 类 中的静态变量com.jfinal.core.ActionHandler
RenderManager - com.jfinal.render 中的类
RenderManager.
renderMergedTemplateModel(Map<String, Object>, HttpServletRequest, HttpServletResponse) - 类 中的方法com.jfinal.template.ext.spring.JFinalView
renderNull() - 类 中的方法com.jfinal.core.Controller
Render nothing, no response to browser
renderQrCode(String, int, int) - 类 中的方法com.jfinal.core.Controller
渲染二维码
renderQrCode(String, int, int, char) - 类 中的方法com.jfinal.core.Controller
渲染二维码,并指定纠错级别
renderTemplate(String) - 类 中的方法com.jfinal.core.Controller
Render with JFinal template
renderText(String) - 类 中的方法com.jfinal.core.Controller
Render with text.
renderText(String, String) - 类 中的方法com.jfinal.core.Controller
响应 text 文本并指定 content type,例如: "text/xml"、"application/javascript"
其中 "text/xml"、"application/javascript"、"application/json"、"text/html"
从 jfinal 4.6 版本开始可以简写为 "xml"、"js"、"json"、"html"
例子:
renderText("<user id='5888'>James</user>", "xml");
renderText(String, ContentType) - 类 中的方法com.jfinal.core.Controller
Render with text and ContentType.
renderToString(String, Map) - 类 中的方法com.jfinal.core.Controller
Render template to String content, it is useful for:
1: Generate HTML fragment for AJAX request
2: Generate email, short message and so on
renderToString(Map<?, ?>) - 类 中的方法com.jfinal.template.Template
渲染到 String 中去
renderToString() - 类 中的方法com.jfinal.template.Template
支持无 data 参数,渲染到 String 中去
适用于数据在模板中通过表达式和语句直接计算得出等等应用场景
renderToString(Map<?, ?>, Template.Func<CharWriter>) - 类 中的方法com.jfinal.template.Template
渲染到 String 中去
Func 接口用于接管内部的 Stat ast、Env env、Scope scope 变量,并且便于
向 Ctrl 传入 attachment 参数
例子:
Map data = new HashMap<>();
data.put("key", 123);
String ret = template.renderToString(data, (ast, env, scope, writer) -> {
// 可以传入任意类型的 attachment 参数,以下以 Kv 对象为例
// 该参数可以在指令中通过 scope.getCtrl().getAttachment() 获取
scope.getCtrl().setAttachment(Kv.by("key", 456));
// 接管内部的 ast、env、scope、writer,执行 ast.exec(...)
renderToStringBuilder(Map<?, ?>) - 类 中的方法com.jfinal.template.Template
渲染到 StringBuilder 中去
renderType - 类 中的变量com.jfinal.plugin.ehcache.RenderInfo
RenderType - com.jfinal.plugin.ehcache 中的类
RenderType
RenderType() - 类 的构造器com.jfinal.plugin.ehcache.RenderType
renderVelocity(String) - 类 中的方法com.jfinal.core.Controller
Render with velocity view
renderXml(String) - 类 中的方法com.jfinal.core.Controller
Render with xml view using enjoy template.
replaceOrderBy(String) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
report(String, Controller, Action) - 类 中的方法com.jfinal.core.ActionReporter
Report the action
reportAfterInvocation - 类 中的静态变量com.jfinal.core.ActionReporter
request - 类 中的变量com.jfinal.render.Render
requiredViewClass() - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
Res - com.jfinal.i18n 中的类
Res is used to get the message value from the ResourceBundle of the related Locale.
Res(String, String) - 类 的构造器com.jfinal.i18n.Res
response - 类 中的变量com.jfinal.render.Render
Restful - com.jfinal.ext.interceptor 中的类
Invocation 中添加 Method method
The standard definition is as follows:
index - GET - A view of all (or a selection of) the records
show - GET - A view of a single record
add - GET - A form to post to create
save - POST - Create a new record
edit - GET - A form to edit a single record
update - PUT - Update a record
delete - DELETE - Delete a record
GET /user ---> index
GET /user/id ---> show
GET /user/add ---> add
POST /user ---> save
GET /user/edit/id ---> edit
PUT /user/id ---> update
DELETE /user/id ---> delete
Restful() - 类 的构造器com.jfinal.ext.interceptor.Restful
Ret - com.jfinal.kit 中的类
Ret 用于返回值封装,也用于服务端与客户端的 json 数据通信
一、主要应用场景:
1:业务层需要返回多个返回值,例如要返回业务状态以及数据
2:renderJson(ret) 响应 json 数据给客户端
二、实例
1:服务端
Ret ret = service.justDoIt(paras);
renderJson(ret);
2:javascript 客户端 ajax 回调函数通常这么用:
success: function(ret) {
if(ret.state == "ok") {
...
}
if (ret.state == "fail") {
...
}
}
3:普通应用程序通常这么用:
String json = HttpKit.readData(getRequest());
Ret ret = FastJson.getJson().parse(json, Ret.class);
if (ret.isOk()) {
...
}
if (ret.isFail()) {
...
}
三、定制 Ret
1:将状态字段名由 "state" 改为 "success",将状态值 "ok" 改为 true、"fail" 改为 false
CPI.setRetState("success", true, false);
2:将状态字段名由 "state" 改为 "code",将状态值 "ok" 改为 200、"fail" 改为 500
CPI.setRetState("code", 200, 500);
3:将消息字段名由 "msg" 改为 "message"
CPI.setRetMsg("message")
Ret() - 类 的构造器com.jfinal.kit.Ret
ret - 类 中的变量com.jfinal.validate.Validator
retainAll(Collection<?>) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
Return - com.jfinal.template.stat.ast 中的类
Return
通常用于 #define 指令内部,不支持返回值
Route(String, Class<? extends Controller>, String) - 类 的构造器com.jfinal.config.Routes.Route
Routes - com.jfinal.config 中的类
Routes.
Routes() - 类 的构造器com.jfinal.config.Routes
routes - 类 中的变量com.jfinal.core.ActionMapping
Routes.Route - com.jfinal.config 中的类
RoutesHandler - com.jfinal.ext.handler 中的类
RoutesHandler.
RoutesHandler() - 类 的构造器com.jfinal.ext.handler.RoutesHandler
rpop(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
移除并返回列表 key 的尾元素。
rpoplpush(Object, Object) - 类 中的方法com.jfinal.plugin.redis.Cache
命令 RPOPLPUSH 在一个原子时间内,执行以下两个动作:
将列表 source 中的最后一个元素(尾元素)弹出,并返回给客户端。
rpush(Object, Object...) - 类 中的方法com.jfinal.plugin.redis.Cache
将一个或多个值 value 插入到列表 key 的表尾(最右边)。
run() - 接口 中的方法com.jfinal.plugin.activerecord.IAtom
Place codes here that need transaction support.
sadd(Object, Object...) - 类 中的方法com.jfinal.plugin.redis.Cache
将一个或多个 member 元素加入到集合 key 当中,已经存在于集合的 member 元素将被忽略。
save(String, String, Record) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
Save record.
save(String, Record) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
save(Config, Connection, String, String, Record) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
save(String, String, Record) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Save record.
save(String, Record) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
save() - 类 中的方法com.jfinal.plugin.activerecord.Model
Save model.
scan(String, Predicate<String>) - 类 中的方法com.jfinal.config.Routes
扫描路由
1:路由不拆分例子:
routes.setBaseViewPath("/_view");
routes.scan("com.jfinal.club.");
2:前后台路由拆分例子(例子来源于俱乐部项目源码 jfinal-club):
// 扫描后台路由
me.add(new Routes() {
public void config() {
// 添加后台管理拦截器,将拦截在此方法中注册的所有 Controller
this.addInterceptor(new AdminAuthInterceptor());
this.addInterceptor(new PjaxInterceptor());
this.setBaseViewPath("/_view/_admin");
// 如果被扫描的包在 jar 文件之中,需要添加如下配置:
// undertow.hotSwapClassPrefix = com.jfinal.club.
scan(String) - 类 中的方法com.jfinal.config.Routes
扫描路由
scan() - 类 中的方法com.jfinal.core.PathScanner
scard(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
返回集合 key 的基数(集合中元素的数量)。
schedule(Runnable, long, TimeUnit) - 类 中的静态方法com.jfinal.kit.ScheduledKit
创建一次性调度,在给定的 delay 时间后调度
schedule(Callable<V>, long, TimeUnit) - 类 中的静态方法com.jfinal.kit.ScheduledKit
创建一次性调度,在给定的 delay 时间后调度
scheduleAtFixedRate(Runnable, long, long, TimeUnit) - 类 中的静态方法com.jfinal.kit.ScheduledKit
以固定频率执行任务
ScheduledKit - com.jfinal.kit 中的类
调度工具类
1:scheduleWithFixedDelay 以上一次任务的 "结束时间" 为间隔调度任务
2:scheduleAtFixedRate 以上一次任务的 "开始时间" 为间隔调度任务。
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - 类 中的静态方法com.jfinal.kit.ScheduledKit
以固定延迟执行任务
Scope - com.jfinal.template.stat 中的类
Scope
1:顶层 scope.parent 为 null
2:scope.set(...)
Scope(Map, Map<String, Object>) - 类 的构造器com.jfinal.template.stat.Scope
构建顶层 Scope, parent 为 null 是顶层 Scope 的标志
Scope(Scope) - 类 的构造器com.jfinal.template.stat.Scope
构建 AST 执行过程中作用域栈
sdf - 类 中的静态变量com.jfinal.core.ActionReporter
sdiff(Object...) - 类 中的方法com.jfinal.plugin.redis.Cache
返回一个集合的全部成员,该集合是所有给定集合之间的差集。
select(int) - 类 中的方法com.jfinal.plugin.redis.Cache
切换到指定的数据库,数据库索引号 index 用数字值指定,以 0 作为起始索引值。
separator - 类 中的变量com.jfinal.template.stat.Compressor
serializer - 类 中的变量com.jfinal.plugin.redis.Cache
serializer - 类 中的变量com.jfinal.plugin.redis.RedisPlugin
ServerNameRedirect301Handler - com.jfinal.ext.handler 中的类
ServerNameRedirect301Handler redirect to new server name with 301 Moved Permanently.
ServerNameRedirect301Handler(String, String) - 类 的构造器com.jfinal.ext.handler.ServerNameRedirect301Handler
Example: new ServerNameRedirectHandler("http://abc.com", "http://www.abc.com")
servletContext - 类 中的静态变量com.jfinal.render.FileRender
servletContext - 类 中的变量com.jfinal.render.RenderFactory
SessionIdKit - com.jfinal.ext.kit 中的类
SessionIdKit.
SessionInViewInterceptor - com.jfinal.ext.interceptor 中的类
SessionInViewInterceptor.
SessionInViewInterceptor() - 类 的构造器com.jfinal.ext.interceptor.SessionInViewInterceptor
SessionInViewInterceptor(boolean) - 类 的构造器com.jfinal.ext.interceptor.SessionInViewInterceptor
SessionInViewInterceptor.JFinalSession - com.jfinal.ext.interceptor 中的类
set(String, Object) - 类 中的方法com.jfinal.core.Controller
为了进一步省代码,创建与 setAttr(...)
set(Object, Object) - 类 中的方法com.jfinal.kit.Kv
set(Map) - 类 中的方法com.jfinal.kit.Kv
set(Kv) - 类 中的方法com.jfinal.kit.Kv
set(Object, Object) - 类 中的方法com.jfinal.kit.Okv
set(Map) - 类 中的方法com.jfinal.kit.Okv
set(Okv) - 类 中的方法com.jfinal.kit.Okv
set(Object, Object) - 类 中的方法com.jfinal.kit.Ret
set(Map) - 类 中的方法com.jfinal.kit.Ret
set(Ret) - 类 中的方法com.jfinal.kit.Ret
set(String, Object) - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Set column value.
set(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.Model
Set attribute to model.
set(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.Record
Set column to record.
set(int, int, int) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
set(Object, Object) - 类 中的方法com.jfinal.plugin.redis.Cache
存放 key value 对到 redis
如果 key 已经持有其他值, SET 就覆写旧值,无视类型。
Set - com.jfinal.template.stat.ast 中的类
Set 赋值,从内向外作用域查找变量,找到则替换变量值,否则在顶层作用域赋值
用法:
1:#set(k = v)
2:#set(k1 = v1, k2 = v2, ..., kn = vn)
3:#set(x = 1+2)
4:#set(x = 1+2, y = 3>4, ..., z = c ?
Set(ExprList, Location) - 类 的构造器com.jfinal.template.stat.ast.Set
set(Object, Object) - 类 中的方法com.jfinal.template.stat.Scope
设置变量
自内向外在作用域栈中查找变量,如果找到则改写变量值,否则将变量存放到顶层 Scope
setAcquireIncrement(int) - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
setActionHandler(ActionHandler) - 类 中的方法com.jfinal.config.Handlers
setActionMapping(Function<Routes, ActionMapping>) - 类 中的方法com.jfinal.config.Constants
setActionReporter(ActionReporter) - 类 中的方法com.jfinal.config.Constants
设置自定义的 ActionReporter 用于定制 action report 输出功能
setAopFactory(AopFactory) - 类 中的方法com.jfinal.aop.AopManager
设置 AopFactory,便于扩展自己的 AopFactory 实现
setArg(int, Object) - 类 中的方法com.jfinal.aop.Invocation
setAttachment(Object) - 类 中的方法com.jfinal.template.stat.Ctrl
setAttr(String, Object) - 类 中的方法com.jfinal.core.Controller
Stores an attribute in this request
setAttribute(String, Object) - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
setAttribute(String, Object) - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
setAttrs(Map<String, Object>) - 类 中的方法com.jfinal.core.Controller
Stores attributes in this request, key of the map as attribute name and value of the map as attribute value
setAutoCommit(boolean) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
是否自动提交
setBaseDownloadPath(String) - 类 中的方法com.jfinal.config.Constants
Set file base download path for Controller.renderFile(...)
setBaseModelTemplate(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置用于生成 BaseModel 的模板文件,模板引擎将在 class path 与 jar 包内寻找模板文件
默认模板为:"/com/jfinal/plugin/activerecord/generator/base_model_template.jf"
setBaseSqlTemplatePath(String) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
setBaseSqlTemplatePath(String) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
setBaseTemplatePath(String) - 类 中的方法com.jfinal.template.Engine
setBaseTemplatePath(String) - 类 中的方法com.jfinal.template.EngineConfig
setBaseTemplatePath(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
设置模板基础路径
setBaseUploadPath(String) - 类 中的方法com.jfinal.config.Constants
Set file base upload path.
setBaseViewPath(String) - 类 中的方法com.jfinal.config.Routes
Set base view path for controller in this routes
setBigDecimalDivideMinScale(int) - 类 中的静态方法com.jfinal.template.expr.ast.Arith
设置 BigDecimal 除法使用的最小 scale 值,默认为 5
setBigDecimalDivideRoundingMode(RoundingMode) - 类 中的静态方法com.jfinal.template.expr.ast.Arith
设置 BigDecimal 除法使用的舍入模式,默认为四舍五入
setBreak() - 类 中的方法com.jfinal.template.stat.Ctrl
setBufferSize(int) - 类 中的方法com.jfinal.template.Engine
setBufferSize(int) - 类 中的方法com.jfinal.template.EngineConfig
setBufferSize(int) - 类 中的方法com.jfinal.template.io.WriterBuffer
setByteCode(Map<String, byte[]>) - 类 中的方法com.jfinal.proxy.ProxyClass
setCache(ICache) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
setCacheStringTemplate(boolean) - 类 中的方法com.jfinal.template.Engine
配置是否缓存字符串模板,也即是否缓存通过 getTemplateByString(String content)
方法获取的模板,默认配置为 false
setCaptchaCache(ICaptchaCache) - 类 中的方法com.jfinal.captcha.CaptchaManager
setCaptchaCache(ICaptchaCache) - 类 中的方法com.jfinal.config.Constants
setCaptchaName(String) - 类 中的静态方法com.jfinal.captcha.CaptchaRender
设置 captchaName
setCatalog(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
支持 catalog 概念的数据库可以设定该参数
setCharSet(String) - 类 中的静态方法com.jfinal.kit.HttpKit
setCheckParaAssigned(boolean) - 类 中的静态方法com.jfinal.plugin.activerecord.sql.ParaDirective
setChineseExpression(boolean) - 类 中的静态方法com.jfinal.template.Engine
设置为 true 支持表达式、变量名、方法名、模板函数名使用中文
setChineseExpression(boolean) - 类 中的静态方法com.jfinal.template.stat.CharTable
设置为 true 支持表达式、变量名、方法名、模板函数名使用中文
setClazz(Class<?>) - 类 中的方法com.jfinal.proxy.ProxyClass
setClearAfterMapping(boolean) - 类 中的方法com.jfinal.config.Routes
配置是否在路由映射完成之后清除内部数据,以回收内存,默认值为 false.
setColumns(Map<String, Object>) - 类 中的方法com.jfinal.plugin.activerecord.Record
Set columns value with map.
setColumns(Record) - 类 中的方法com.jfinal.plugin.activerecord.Record
Set columns value with Record.
setColumns(Model<?>) - 类 中的方法com.jfinal.plugin.activerecord.Record
Set columns value with Model object.
setColumnsMap(Record, Map<String, Object>) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
Return the columns map of the record
setColumnType(String, Class<?>) - 类 中的方法com.jfinal.plugin.activerecord.Table
setColumnTypeMap(Map<String, Class<?>>) - 类 中的方法com.jfinal.plugin.activerecord.Table
setCompileOptions(List<String>) - 类 中的方法com.jfinal.proxy.ProxyCompiler
setCompressor(Compressor) - 类 中的方法com.jfinal.template.Engine
配置 Compressor 可对模板中的静态内容进行压缩
可通过该方法配置自定义的 Compressor 来代替系统默认实现,例如:
engine.setCompressor(new MyCompressor());
setCompressor(Compressor) - 类 中的方法com.jfinal.template.EngineConfig
setCompressorOn(char) - 类 中的方法com.jfinal.template.Engine
设置开启压缩功能
setCompressorOn() - 类 中的方法com.jfinal.template.Engine
设置开启压缩功能。
setConfigPluginOrder(int) - 类 中的方法com.jfinal.config.Constants
配置 configPlugin(Plugins me) 在 JFinalConfig 中被调用的次序.
setConnectionInitSql(String) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
添加连接时的初始化sql。
setConnectionInitSql(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
新连接生成后,添加到连接池前执行的初始化sql
setConnectionProperties(String) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setConnectionTestQuery(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
JDBC4以下版本数据库驱动需要设定此参数
setConnectionTimeout(long) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
setConnectTimeout(int) - 类 中的静态方法com.jfinal.kit.HttpKit
setContainerFactory(IContainerFactory) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
setContainerFactoryByConfigName(String) - 类 中的方法com.jfinal.plugin.activerecord.Record
Set the containerFactory by configName.
setContext(HttpServletRequest, HttpServletResponse) - 类 中的方法com.jfinal.render.Render
setContext(HttpServletRequest, HttpServletResponse, String) - 类 中的方法com.jfinal.render.Render
setContinue() - 类 中的方法com.jfinal.template.stat.Ctrl
setControllerFactory(ControllerFactory) - 类 中的方法com.jfinal.config.Constants
设置自定义的 ControllerFactory 用于创建 Controller 对象
setConvertDepth(int) - 类 中的方法com.jfinal.json.JFinalJson
setConvertFunc(Func.F21<Class<?>, String, Object>) - 类 中的方法com.jfinal.core.converter.TypeConverter
setCookie(String, String, int, boolean) - 类 中的方法com.jfinal.core.Controller
Set Cookie.
setCookie(String, String, int) - 类 中的方法com.jfinal.core.Controller
Set Cookie.
setCookie(Cookie) - 类 中的方法com.jfinal.core.Controller
Set Cookie to response.
setCookie(String, String, int, String, boolean) - 类 中的方法com.jfinal.core.Controller
Set Cookie to response.
setCookie(String, String, int, String) - 类 中的方法com.jfinal.core.Controller
Set Cookie to response.
setCookie(String, String, int, String, String, boolean) - 类 中的方法com.jfinal.core.Controller
Set Cookie to response.
setCreateSession(boolean) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
在使用 request.getSession(createSession) 时传入
用来指示 session 不存在时是否立即创建
setData(Map) - 类 中的方法com.jfinal.template.stat.Scope
设置/替换本层作用域 data,通常用于在扩展指令中使用现成可用的 Map 来存放数据,
从而避免 Scope 内部创建 data,节省时空
注意:本方法会替换掉已经存在的 data 对象
setDataDictionaryFileName(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
setDataDictionaryFileName(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置数据字典 DataDictionary 文件输出目录,默认值为 "_DataDictionary.txt"
setDataDictionaryGenerator(DataDictionaryGenerator) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置 DataDictionaryGenerator,便于扩展自定义 DataDictionaryGenerator
setDataDictionaryOutputDir(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
setDataDictionaryOutputDir(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置数据字典 DataDictionary 文件输出目录,默认与 modelOutputDir 相同
setDatePattern(String) - 类 中的静态方法com.jfinal.ext.kit.DateKit
setDatePattern(String) - 类 中的方法com.jfinal.json.Json
setDatePattern(String) - 类 中的方法com.jfinal.template.Engine
setDatePattern(String) - 类 中的方法com.jfinal.template.EngineConfig
setDatePattern(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
设置 #date(...)
setDatePattern(String) - 类 中的方法com.jfinal.validate.Validator
setDbProFactory(IDbProFactory) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
setDefault(Default, Location) - 类 中的方法com.jfinal.template.stat.ast.Switch
setDefaultBaseName(String) - 类 中的静态方法com.jfinal.i18n.I18n
setDefaultConvertDepth(int) - 类 中的静态方法com.jfinal.json.JFinalJson
设置全局性默认转换深度
setDefaultDatePattern(String) - 类 中的方法com.jfinal.json.JsonManager
setDefaultGenerateNullValue(boolean) - 类 中的静态方法com.jfinal.json.Jackson
setDefaultJsonFactory(IJsonFactory) - 类 中的方法com.jfinal.json.JsonManager
setDefaultLocale(String) - 类 中的静态方法com.jfinal.i18n.I18n
setDefaultLogFactory(ILogFactory) - 类 中的方法com.jfinal.log.LogManager
setDefaultTransactionIsolation(int) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setDenyAccessJsp(boolean) - 类 中的方法com.jfinal.config.Constants
setDevMode(boolean) - 类 中的方法com.jfinal.config.Constants
Set development mode.
setDevMode(boolean) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
setDevMode(boolean) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
setDevMode(boolean) - 类 中的方法com.jfinal.template.Engine
设置 true 为开发模式,支持模板文件热加载
设置 false 为生产模式,不支持模板文件热加载,以达到更高的性能
setDevMode(boolean) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
设置开发模式,值为 true 时支持模板文件热加载
setDialect(Dialect) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
setDialect(Dialect) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置数据库方言,默认为 MysqlDialect
setDialect(Dialect) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
setDriverClass(String) - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
setDriverClass(String) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setDriverClass(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
驱动类名
setEncoderFactory(EncoderFactory) - 类 中的方法com.jfinal.template.Engine
Enjoy 模板引擎对 UTF-8 的 encoding 做过性能优化,某些罕见字符
无法被编码,可以配置为 JdkEncoderFactory 解决问题:
engine.setEncoderFactory(new JdkEncoderFactory());
setEncoderFactory(EncoderFactory) - 类 中的方法com.jfinal.template.EngineConfig
setEncoderFactory(EncoderFactory) - 类 中的方法com.jfinal.template.io.WriterBuffer
setEncoding(String) - 类 中的方法com.jfinal.config.Constants
Set encoding.
setEncoding(String) - 类 中的方法com.jfinal.template.Engine
setEncoding(String) - 类 中的方法com.jfinal.template.EngineConfig
setEncoding(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
设置 encoding
setEncoding(String) - 类 中的方法com.jfinal.template.io.WriterBuffer
setEnvForDevMode(Env) - 类 中的方法com.jfinal.template.stat.ast.Define
setError401View(String) - 类 中的方法com.jfinal.config.Constants
Set error 401 view.
setError403View(String) - 类 中的方法com.jfinal.config.Constants
Set error 403 view.
setError404View(String) - 类 中的方法com.jfinal.config.Constants
Set error 404 view.
setError500View(String) - 类 中的方法com.jfinal.config.Constants
Set error 500 view.
setErrorView(int, String) - 类 中的方法com.jfinal.config.Constants
setex(Object, long, Object) - 类 中的方法com.jfinal.plugin.redis.Cache
存放 key value 对到 redis,并将 key 的生存时间设为 seconds (以秒为单位)。
setExpireAt(long) - 类 中的方法com.jfinal.captcha.Captcha
setExprList(ExprList) - 类 中的方法com.jfinal.plugin.activerecord.sql.NameSpaceDirective
setExprList(ExprList) - 类 中的方法com.jfinal.plugin.activerecord.sql.ParaDirective
setExprList(ExprList) - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlDirective
setExprList(ExprList) - 类 中的方法com.jfinal.template.Directive
指令被解析时注入指令参数表达式列表,继承类可以通过覆盖此方法对参数长度和参数类型进行校验
setExprList(ExprList) - 类 中的方法com.jfinal.template.ext.directive.CallDirective
setExprList(ExprList) - 类 中的方法com.jfinal.template.ext.directive.DateDirective
setExprList(ExprList) - 类 中的方法com.jfinal.template.ext.directive.NowDirective
setExprList(ExprList) - 类 中的方法com.jfinal.template.ext.directive.NumberDirective
setExprList(ExprList) - 类 中的方法com.jfinal.template.ext.directive.RenderDirective
setExprList(ExprList) - 类 中的方法com.jfinal.template.ext.directive.StringDirective
setExprList(ExprList) - 类 中的方法com.jfinal.template.stat.ast.Stat
setFail() - 类 中的方法com.jfinal.kit.Ret
setFastFieldKeyBuilder(boolean) - 类 中的静态方法com.jfinal.template.Engine
setFastFieldKeyBuilder(boolean) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKeyBuilder
开启 FastFieldKeyBuilder,性能更高
setFastMode(boolean) - 类 中的静态方法com.jfinal.template.Engine
设置极速模式
极速模式将生成代理对象来消除 java.lang.reflect.Method.invoke(...)
setFastMode(boolean) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKit
设置极速模式
极速模式将生成代理对象来消除 java.lang.reflect.Method.invoke(...)
setFieldKeyBuilder(FieldKeyBuilder) - 类 中的静态方法com.jfinal.template.expr.ast.FieldKeyBuilder
设置为自定义 FieldKeyBuilder
setFileRenamePolicy(FileRenamePolicy) - 类 中的静态方法com.jfinal.upload.OreillyCos
setFilters(String) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
设置过滤器,如果要开启监控统计需要使用此方法或在构造方法中进行设置
监控统计:"stat"
防SQL注入:"wall"
组合使用: "stat,wall"
setFreeMarkerTemplateUpdateDelay(int) - 类 中的方法com.jfinal.config.Constants
FreeMarker template update delay for not devMode.
setGenerateChainSetter(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.BaseModelGenerator
setGenerateChainSetter(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置 BaseModel 是否生成链式 setter 方法
setGenerateDaoInModel(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置是否在 Model 中生成 dao 对象,默认生成
setGenerateDaoInModel(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.ModelGenerator
setGenerateDataDictionary(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置是否生成数据字典 Dictionary 文件,默认不生成
setGenerateNullValue(boolean) - 类 中的方法com.jfinal.json.Jackson
setGenerateRemarks(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
配置是否生成字段备注,生成的备注会体现在 Base Model 之中
默认值为 false
setGenerateRemarks(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
setGenerateView(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
配置是否生成 view。
setGenerateView(boolean) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
SetGlobal - com.jfinal.template.stat.ast 中的类
SetGlobal 设置全局变量,全局作用域是指本次请求的整个 template
适用于极少数的在内层作用域中希望直接操作顶层作用域的场景
SetGlobal(ExprList, Location) - 类 的构造器com.jfinal.template.stat.ast.SetGlobal
setGlobal(Object, Object) - 类 中的方法com.jfinal.template.stat.Scope
设置全局变量
全局作用域是指本次请求的整个 template
setGlobalAssignment() - 类 中的方法com.jfinal.template.stat.Ctrl
setHttpServletRequest(HttpServletRequest) - 类 中的方法com.jfinal.core.Controller
setHttpServletResponse(HttpServletResponse) - 类 中的方法com.jfinal.core.Controller
setI18nDefaultBaseName(String) - 类 中的方法com.jfinal.config.Constants
Set default base name to load Resource bundle.
setI18nDefaultLocale(String) - 类 中的方法com.jfinal.config.Constants
Set default locale to load Resource bundle.
setIdleTimeout(long) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
空闲超时时间(单位:毫秒),默认600000 (10 分钟)
setIfNotBlank(Object, String) - 类 中的方法com.jfinal.kit.Kv
setIfNotBlank(Object, String) - 类 中的方法com.jfinal.kit.Okv
setIfNotBlank(Object, String) - 类 中的方法com.jfinal.kit.Ret
setIfNotNull(Object, Object) - 类 中的方法com.jfinal.kit.Kv
setIfNotNull(Object, Object) - 类 中的方法com.jfinal.kit.Okv
setIfNotNull(Object, Object) - 类 中的方法com.jfinal.kit.Ret
setInitialPoolSize(int) - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
setInitialSize(int) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setInjectDependency(boolean) - 类 中的方法com.jfinal.aop.AopManager
设置对 Controller、Interceptor、Validator 进行依赖注入,默认值为 false
被注入对象默认为 singleton,可以通过 AopManager.me().setSingleton(boolean) 配置
该默认值。
setInjectDependency(boolean) - 类 中的方法com.jfinal.config.Constants
设置对 Controller、Interceptor、Validator 进行依赖注入,默认值为 false
被注入对象默认为 singleton,可以通过 AopManager.me().setSingleton(boolean) 配置
该默认值。
setInjectDependency(boolean) - 类 中的方法com.jfinal.core.ControllerFactory
setInjectSuperClass(boolean) - 类 中的方法com.jfinal.aop.AopFactory
设置是否对超类进行注入
setInjectSuperClass(boolean) - 类 中的方法com.jfinal.aop.AopManager
设置是否对超类进行注入
setInjectSuperClass(boolean) - 类 中的方法com.jfinal.config.Constants
设置是否对超类进行注入
setJavaType(JavaType) - 类 中的方法com.jfinal.plugin.activerecord.TableBuilder
setJdbcUrl(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
jdbc连接url
setJsonDatePattern(String) - 类 中的方法com.jfinal.config.Constants
设置json转换时日期格式,常用格式有:"yyyy-MM-dd HH:mm:ss"、 "yyyy-MM-dd"
setJsonFactory(IJsonFactory) - 类 中的方法com.jfinal.config.Constants
设置 Json 转换工厂实现类,目前支持:JFinalJsonFactory(默认)、JacksonFactory、FastJsonFactory
分别支持 JFinalJson、Jackson、FastJson
setJumpNone() - 类 中的方法com.jfinal.template.stat.Ctrl
setKeepAlive(boolean) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setKeepByteAndShort(boolean) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
指示 Generator、ModelBuilder、RecordBuilder 是否保持住 Byte、Short 类型
setKeepLineBlank(String, boolean) - 类 中的方法com.jfinal.template.EngineConfig
setKey(String) - 类 中的方法com.jfinal.captcha.Captcha
setKey(long) - 类 中的方法com.jfinal.proxy.ProxyMethod
setKeyNamingPolicy(IKeyNamingPolicy) - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
setLeakDetectionThreshold(long) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
内存泄露侦测周期,最小为2000(2秒)
setList(List<T>) - 类 中的方法com.jfinal.plugin.activerecord.Page
SetLocal - com.jfinal.template.stat.ast 中的类
SetLocal 设置局部变量
通常用于 #define #include 指令内部需要与外层作用域区分,以便于定义重用型模块的场景
也常用于 #for 循环内部的临时变量
SetLocal(ExprList, Location) - 类 的构造器com.jfinal.template.stat.ast.SetLocal
setLocal(Object, Object) - 类 中的方法com.jfinal.template.stat.Scope
设置局部变量
setLocalAssignment() - 类 中的方法com.jfinal.template.stat.Ctrl
setLocation(Location) - 类 中的方法com.jfinal.template.stat.ast.Stat
setLog(boolean) - 类 中的静态方法com.jfinal.plugin.activerecord.SqlReporter
setLogAbandoned(boolean) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setLogFactory(ILogFactory) - 类 中的方法com.jfinal.config.Constants
setMainCache(String) - 类 中的静态方法com.jfinal.plugin.redis.Redis
提供一个设置设置主缓存 mainCache 的机会,否则第一个被初始化的 Cache 将成为 mainCache
setMainEngine(Engine) - 类 中的静态方法com.jfinal.template.Engine
Set main engine
setMappingKitClassName(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置 MappingKit 类名,默认值为: "_MappingKit"
setMappingKitClassName(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
setMappingKitGenerator(MappingKitGenerator) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置 MappingKitGenerator,便于扩展自定义 MappingKitGenerator
setMappingKitOutputDir(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置 MappingKit 文件输出目录,默认与 modelOutputDir 相同,
在设置此变量的同时需要设置 mappingKitPackageName
setMappingKitOutputDir(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
setMappingKitPackageName(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置 MappingKit 文件包名,默认与 modelPackageName 相同,
在设置此变的同时需要设置 mappingKitOutputDir
setMappingKitPackageName(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
setMappingKitTemplate(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置用于生成 MappingKit 的模板文件,模板引擎将在 class path 与 jar 包内寻找模板文件
默认模板为:"/com/jfinal/plugin/activerecord/generator/mapping_kit_template.jf"
setMappingSuperClass(boolean) - 类 中的方法com.jfinal.config.Routes
设置是否映射超类中的方法为路由,默认值为 false
以免 BaseController extends Controller 用法中的 BaseController 中的方法被映射成 action
setMaxActive(int) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setMaxBufferSize(int) - 类 中的静态方法com.jfinal.json.JFinalJson
setMaxBufferSize(int) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
setMaxBufferSize(int) - 类 中的静态方法com.jfinal.template.io.FastStringWriter
setMaxIdleTime(int) - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
setMaximumPoolSize(int) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
连接池最大连接数 默认10
setMaxInactiveInterval(int) - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
setMaxInactiveInterval(int) - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
setMaxLifetime(long) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
最大生命周期/最大存活时间(单位:毫秒) ,默认1800000 (30 分钟)
setMaxOutputLengthOfParaValue(int) - 类 中的静态方法com.jfinal.core.ActionReporter
setMaxPoolPreparedStatementPerConnectionSize(int) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setMaxPoolSize(int) - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
setMaxPostSize(long) - 类 中的方法com.jfinal.config.Constants
Set max size of http post.
setMaxWait(long) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setMetaBuilder(MetaBuilder) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置 MetaBuilder,便于扩展自定义 MetaBuilder
setMethod(Method) - 类 中的方法com.jfinal.proxy.ProxyMethod
setMethodKeyBuilder(MethodKeyBuilder) - 类 中的静态方法com.jfinal.template.expr.ast.MethodKeyBuilder
切换到用户自定义 MethodKeyBuilder
setMinEvictableIdleTimeMillis(long) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setMinEvictableIdleTimeMillis(int) - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
setMinIdle(int) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setMinPoolSize(int) - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
setModelAndRecordFieldNameConverter(Function<String, String>) - 类 中的静态方法com.jfinal.json.JFinalJson
配置 Model、Record 字段名的转换函数
例子:
JFinalJson.setModelAndRecordFieldNameConverter(fieldName -> {
return StrKit.toCamelCase(fieldName, true);
});
以上例子中的方法 StrKit.toCamelCase(...)
setModelAndRecordFieldNameConverter(Function<String, String>) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
配置 Model、Record 字段名的转换函数
例子:
JFinalJson.setModelAndRecordFieldNameConverter(fieldName -> {
return StrKit.toCamelCase(fieldName, true);
});
以上例子中的方法 StrKit.toCamelCase(...)
setModelAndRecordFieldNameToCamelCase(boolean) - 类 中的静态方法com.jfinal.json.JFinalJson
配置将 Model、Record 字段名转换为驼峰格式
toLowerCaseAnyway 参数的含义:
1:true 值无条件将字段先转换成小写字母。
setModelAndRecordFieldNameToCamelCase() - 类 中的静态方法com.jfinal.json.JFinalJson
配置将 Model、Record 字段名转换为驼峰格式
先将字段名无条件转换成小写字母,然后再转成驼峰格式,适用于 oracle 这类字段名是大写字母的数据库
如果是 mysql 数据库,建议使用: setModelAndRecordFieldNameToCamelCase(false);
setModelAndRecordFieldNameToCamelCase(boolean) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
配置将 Model、Record 字段名转换为驼峰格式
toLowerCaseAnyway 参数的含义:
1:true 值无条件将字段先转换成小写字母。
setModelAndRecordFieldNameToCamelCase() - 类 中的静态方法com.jfinal.json.JFinalJsonKit
配置将 Model、Record 字段名转换为驼峰格式
先将字段名无条件转换成小写字母,然后再转成驼峰格式,适用于 oracle 这类字段名是大写字母的数据库
如果是 mysql 数据库,建议使用: setModelAndRecordFieldNameToCamelCase(false);
setModelBuilder(ModelBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
配置自定义 ModelBuilder
通过继承扩展 ModelBuilder 可以对 JDBC 到 java 数据类型进行定制化转换
不同数据库从 JDBC 到 java 数据类型的映射关系有所不同
此外,还可以通过改变 ModelBuilder.buildLabelNamesAndTypes()
方法逻辑,实现下划线字段名转驼峰变量名的功能
setModelTemplate(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置用于生成 Model 的模板文件,模板引擎将在 class path 与 jar 包内寻找模板文件
默认模板为:"/com/jfinal/plugin/activerecord/generator/model_template.jf"
setName(String) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
连接池名称
setNextCase(Case) - 类 中的方法com.jfinal.template.stat.ast.Case
setNextCase(Case) - 接口 中的方法com.jfinal.template.stat.ast.CaseSetter
setNextCase(Case) - 类 中的方法com.jfinal.template.stat.ast.Switch
setNormalRenderOnly(boolean) - 类 中的静态方法com.jfinal.render.FileRender
设置为 true 时,客户端只能单线程下载,用于减轻服务器压力
默认值为 false
setNullSafe(boolean) - 类 中的方法com.jfinal.template.stat.Ctrl
setNumTestsPerEvictionRun(int) - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
setnx(Object, Object) - 类 中的方法com.jfinal.plugin.redis.Cache
setnx 的工作原理与 set 完全相同,唯一的区别是,如果 key 已经存在,则不执行任何操作
setOk() - 类 中的方法com.jfinal.kit.Ret
setOrPut(String, Object) - 类 中的方法com.jfinal.plugin.activerecord.Model
如果 attrOrNot 是表中的字段则调用 set(...)
setOutputCompileError(boolean) - 类 中的静态方法com.jfinal.template.expr.ast.FastFieldGetter
setOutputDirectiveFactory(OutputDirectiveFactory) - 类 中的方法com.jfinal.template.Engine
Set output directive factory
setOutputDirectiveFactory(OutputDirectiveFactory) - 类 中的方法com.jfinal.template.EngineConfig
Set output directive factory
setPageNumber(int) - 类 中的方法com.jfinal.plugin.activerecord.Page
setPageSize(int) - 类 中的方法com.jfinal.plugin.activerecord.Page
setPassword(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
数据库密码
setPoolName(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
用户指定的连接池名
setPrimaryKey(String, String) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
当使用 create table 语句创建用于开发使用的数据表副本时,假如create table 中使用的
复合主键次序不同,那么MappingKitGeneretor 反射生成的复合主键次序也会不同。
setPrintGeneratedClassToConsole(boolean) - 类 中的方法com.jfinal.proxy.ProxyGenerator
配置打印生成类到控制台
setPrintGeneratedClassToConsole(boolean) - 类 中的方法com.jfinal.proxy.ProxyManager
setProperties(Properties) - 类 中的静态方法com.jfinal.render.FreeMarkerRender
setProperties(Properties) - 类 中的静态方法com.jfinal.render.VelocityRender
setProperty(String, String) - 类 中的静态方法com.jfinal.render.FreeMarkerRender
Set freemarker's property.
setProxyClass(Class<?>) - 类 中的方法com.jfinal.proxy.ProxyMethod
代理类在 ProxyFactory 中才被 loadClass,所以本方法在 ProxyFactory 中被调用
setProxyClassLoader(ProxyClassLoader) - 类 中的方法com.jfinal.proxy.ProxyFactory
setProxyClassTemplate(String) - 类 中的方法com.jfinal.proxy.ProxyGenerator
setProxyCompiler(ProxyCompiler) - 类 中的方法com.jfinal.proxy.ProxyFactory
setProxyFactory(ProxyFactory) - 类 中的方法com.jfinal.config.Constants
配置 ProxyFactory 用于切换代理实现
例如:
me.setProxyFactory(new CglibProxyFactory());
setProxyFactory(ProxyFactory) - 类 中的方法com.jfinal.proxy.ProxyManager
setProxyGenerator(ProxyGenerator) - 类 中的方法com.jfinal.proxy.ProxyFactory
setPublicKey(String) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setReadOnly(boolean) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
是否是只读连接 ,是否有效取决于相应的数据库是否支持
setReadTimeout(int) - 类 中的静态方法com.jfinal.kit.HttpKit
setRecordBuilder(RecordBuilder) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
配置自定义 RecordBuilder
通过继承扩展 RecordBuilder 可以对 JDBC 到 java 数据类型进行定制化转换
不同数据库从 JDBC 到 java 数据类型的映射关系有所不同
此外,还可以通过改变 RecordBuilder.buildLabelNamesAndTypes()
方法逻辑,实现下划线字段名转驼峰变量名的功能
setReentrantBufferSize(int) - 类 中的方法com.jfinal.template.Engine
setReentrantBufferSize(int) - 类 中的方法com.jfinal.template.EngineConfig
setReentrantBufferSize(int) - 类 中的方法com.jfinal.template.io.WriterBuffer
setReloadModifiedSharedFunctionInDevMode(boolean) - 类 中的方法com.jfinal.template.Engine
Engine 独立设置为 devMode 可以方便模板文件在修改后立即生效,
但如果在 devMode 之下并不希望对 addSharedFunction(...),
添加的模板进行是否被修改的检测可以通过此方法设置 false 参进去
注意:Engine 在生产环境下(devMode 为 false),该参数无效
setReloadModifiedSharedFunctionInDevMode(boolean) - 类 中的方法com.jfinal.template.EngineConfig
setRemoveAbandoned(boolean) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setRemoveAbandonedTimeoutMillis(long) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setRemovedTableNamePrefixes(String...) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
设置需要被移除的表名前缀,仅用于生成 modelName 与 baseModelName
例如表名 "osc_account",移除前缀 "osc_" 后变为 "account"
setRemovedTableNamePrefixes(String...) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
设置需要被移除的表名前缀,仅用于生成 modelName 与 baseModelName
例如表名 "osc_account",移除前缀 "osc_" 后变为 "account"
setRenderFactory(IRenderFactory) - 类 中的方法com.jfinal.config.Constants
Set the renderFactory
setRenderFactory(IRenderFactory) - 类 中的方法com.jfinal.render.RenderManager
setReportAfterInvocation(boolean) - 类 中的方法com.jfinal.config.Constants
设置 devMode 之下的 action report 是否在 invocation 之后,默认值为 true
setReportAfterInvocation(boolean) - 类 中的静态方法com.jfinal.core.ActionReporter
setResolveBeanAsModel(boolean) - 类 中的静态方法com.jfinal.plugin.activerecord.ModelRecordElResolver
设置为 true 时,使用生成器生成的实现了 IBean 接口的 Class 将被当成 Model 来处理,
getter 不被 jsp/jstl 用来输出数据,仍然使用 model.get(String attr) 来输出数据。
setRet(Ret) - 类 中的方法com.jfinal.validate.Validator
注入 Ret 对象,验证结果将被存放在其中,以便在 handleError 中使用 getRet():
controller.renderJson(getRet());
用法:
validate(Controller c) 中调用 setRet(Ret.fail());
handleError(Controller c) 中调用 c.renderJson(getRet());
setRetMsg(String) - 类 中的静态方法com.jfinal.kit.CPI
配置 Ret 的消息名,默认值为:"msg"
例子:
CPI.setRetMsg("message")
将 Ret 的消息字段名由 "msg" 改为 "message"
setRetState(String, Object, Object) - 类 中的静态方法com.jfinal.kit.CPI
配置 Ret 的状态名、成功状态值、失败状态值,默认值分别为:"state"、"ok"、"fail"
例子:
CPI.setRetState("success", true, false);
将 Ret 的状态字段名由 "state" 改为 "success",将状态值 "ok" 改为 true、"fail" 改为 false
CPI.setRetState("code", 200, 500);
将 Ret 的状态字段名由 "state" 改为 "code",将状态值 "ok" 改为 200、"fail" 改为 500
setReturn() - 类 中的方法com.jfinal.template.stat.Ctrl
setReturnValue(Object) - 类 中的方法com.jfinal.aop.Invocation
Set the return value of the target method
setRootClassPath(String) - 类 中的静态方法com.jfinal.kit.PathKit
setRootData(Map) - 类 中的方法com.jfinal.template.stat.Scope
设置/替换顶层作用域 data,可以在扩展指令之中通过此方法切换掉顶层作用域
实现作用域完全隔离的功能
注意:本方法会替换掉顶层已经存在的 data 对象
setRoundingMode(RoundingMode) - 类 中的方法com.jfinal.template.Engine
设置 #number 指令与 Arith 中浮点数的舍入规则,默认为 RoundingMode.HALF_UP "四舍五入"
setRoundingMode(RoundingMode) - 类 中的方法com.jfinal.template.EngineConfig
设置 #number 指令与 Arith 中浮点数的舍入规则,默认为 RoundingMode.HALF_UP "四舍五入"
setSafeMode(boolean) - 类 中的静态方法com.jfinal.json.FastJson
setSerializer(ISerializer) - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
setSessionAttr(String, Object) - 类 中的方法com.jfinal.core.Controller
Store Object to session.
setSessionInView(boolean) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
设置为 true 时支持在模板中使用 #(session.value) 形式访问 session 中的数据
setSharedFunction(String) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
设置 shared function 文件,多个文件用逗号分隔
主要用于 Spring MVC 的 xml 配置方式
Spring Boot 的代码配置方式可使用 addSharedFunction(...)
setSharedFunctionList(List<String>) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
通过 List 配置多个 shared function file
配置示例:
_layout.html
_paginate.html
setSharedVariable(String, Object) - 类 中的静态方法com.jfinal.render.FreeMarkerRender
注入对象到 FreeMarker 页面供调用,通常注入一些辅助内容输出的工具类,相当于是 freemarker 的一种扩展方式
setShortCircuit(boolean) - 类 中的方法com.jfinal.validate.Validator
设置短路验证.
setShowSql(boolean) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
setSingleton(boolean) - 类 中的方法com.jfinal.aop.AopFactory
设置被注入的对象是否为单例,可使用 @Singleton(boolean) 覆盖此默认值
setSingleton(boolean) - 类 中的方法com.jfinal.aop.AopManager
设置被注入的对象是否为单例,可在目标类上使用 @Singleton(boolean) 覆盖此默认值
setSkipNullValueField(boolean) - 类 中的静态方法com.jfinal.json.JFinalJson
是否跳过 null 值的字段,配置为 true 值将跳过,默认值为 false
本配置作用于 Model、Record、Map、java bean(getter 方法对应的属性) 这四种类型
setSkipNullValueField(boolean) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
setSourceCode(String) - 类 中的方法com.jfinal.proxy.ProxyClass
setSourceFactory(ISourceFactory) - 类 中的方法com.jfinal.template.Engine
设置 ISourceFactory 用于为 engine 切换不同的 ISource 实现类
ISource 用于从不同的来源加载模板内容
配置为 ClassPathSourceFactory 时特别注意:
由于 JFinal 会在 configEngine(Engine me) 方法调用 “之前”,会默认调用一次如下方法:
me.setBaseTemplatePath(PathKit.getWebRootPath())
而 ClassPathSourceFactory 在以上默认值下不能工作,所以需要通过如下方式清掉该值:
me.setBaseTemplatePath(null)
或者配置具体要用的 baseTemplatePath 值,例如:
me.setBaseTemplatePath("view");
setSourceFactory(ISourceFactory) - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
设置 ISourceFactory 用于为 engine 切换不同的 ISource 实现类
配置为 ClassPathSourceFactory 时特别注意:
由于在 initServletContext() 通过如下方法中已设置了 baseTemplatePath 值:
setBaseTemplatePath(servletContext.getRealPath("/"))
而 ClassPathSourceFactory 在 initServletContext() 方法中设置的
值之下不能工作,所以在本方法中通过如下方法清掉了该值:
setBaseTemplatePath(null)
这种处理方式适用于绝大部分场景,如果在使用 ClassPathSourceFactory 的同时
仍然需要设置 baseTemplatePath,则在调用该方法 “之后” 通过如下代码再次配置:
setBaseTemplatePath(value)
setSql(String) - 类 中的方法com.jfinal.plugin.activerecord.SqlPara
setStat(Stat) - 类 中的方法com.jfinal.template.Directive
指令被解析时注入指令 body 内容,仅对于具有 #end 结束符的指令有效
setStat(Stat) - 类 中的方法com.jfinal.template.stat.ast.ElseIf
take over setStat(...) method of super class
setStat(Stat) - 类 中的方法com.jfinal.template.stat.ast.If
take over setStat(...) method of super class
setStat(Stat) - 类 中的方法com.jfinal.template.stat.ast.Stat
setSupportActiveRecord(boolean) - 类 中的静态方法com.jfinal.render.JspRender
已过时。
setTableBuilder(TableBuilder) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
可用于切换 TableBuilder 实现类
setTablePrimaryKey(Table, String) - 类 中的静态方法com.jfinal.plugin.activerecord.CPI
setTargetClass(Class<?>) - 类 中的方法com.jfinal.proxy.ProxyMethod
setTemplate(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.BaseModelGenerator
使用自定义模板生成 base model
setTemplate(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.MappingKitGenerator
使用自定义模板生成 MappingKit
setTemplate(String) - 类 中的方法com.jfinal.plugin.activerecord.generator.ModelGenerator
使用自定义模板生成 model
setTemplateLoadingPath(String) - 类 中的静态方法com.jfinal.render.FreeMarkerRender
Create public void afterJFinalStart() in YourJFinalConfig and
use this method in MyJFinalConfig.afterJFinalStart() to set
ServletContext for template loading
setTestOnBorrow(boolean) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setTestOnReturn(boolean) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setTestWhileIdle(boolean) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setTestWhileIdle(boolean) - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
setThreadLocalConnection(Connection) - 类 中的方法com.jfinal.plugin.activerecord.Config
Support transaction with Transaction interceptor
setThreadLocalJedis(Jedis) - 类 中的方法com.jfinal.plugin.redis.Cache
setTimeBetweenConnectErrorMillis(long) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setTimeBetweenEvictionRunsMillis(long) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setTimeBetweenEvictionRunsMillis(int) - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
setTimeBetweenLogStatsMillis(int) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setTimeStampPattern(String) - 类 中的静态方法com.jfinal.ext.kit.DateKit
setTimestampPattern(String) - 类 中的方法com.jfinal.json.JFinalJson
setToCglibProxyFactory() - 类 中的方法com.jfinal.config.Constants
proxy 模块需要 JDK 环境,如果运行环境为 JRE,可以调用本配置方法支持
该配置需要引入 cglib-nodep 依赖:
cglib
cglib-nodep
3.2.5
setToClassPathSourceFactory() - 类 中的方法com.jfinal.template.Engine
设置为 ClassPathSourceFactory 的快捷方法
setToClassPathSourceFactory() - 类 中的方法com.jfinal.template.ext.spring.JFinalViewResolver
设置为 ClassPathSourceFactory 的快捷方法
ClassPathSourceFactory 将从 CLASSPATH 与 jar 包中读取模板
setToJavaAwtHeadless() - 类 中的方法com.jfinal.config.Constants
设置为 Headless Mode,否则在缺少显示设备时验证码功能不能使用,并抛出异常
java.awt.HeadlessException
Headless 模式是系统的一种配置模式。
setToJdkEncoderFactory() - 类 中的方法com.jfinal.template.Engine
配置为 JdkEncoderFactory,支持 utf8mb4,支持 emoji 表情字符,
支持各种罕见字符编码
setToJsonFactory(Function<Object, JFinalJsonKit.ToJson<?>>) - 类 中的静态方法com.jfinal.json.JFinalJson
配置 ToJsonFactory,便于接管 ToJson 对象的创建
例子:
JFinalJson.setToJsonFactory(value -> {
if (value instanceof Model) {
// 返回 MyModelToJson 接管对于 Model 类型的转换
return new MyModelToJson();
} else {
// 返回 null 时将使用系统默认的转换类
return null;
}
});
setToJsonFactory(Function<Object, JFinalJsonKit.ToJson<?>>) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
setTokenCache(ITokenCache) - 类 中的方法com.jfinal.config.Constants
Set ITokenCache implementation otherwise JFinal will use the HttpSesion to hold the token.
setToSlf4jLogFactory() - 类 中的方法com.jfinal.config.Constants
切换到 slf4j 日志框架,需要引入 slf4j 相关依赖
切换过去以后的用法参考 slf4j 文档
setToSlf4jLogFactory() - 类 中的方法com.jfinal.log.LogManager
切换到 slf4j 日志框架,需要引入 slf4j 相关依赖
切换过去以后的用法参考 slf4j 文档
setToStrictMethodKeyBuilder() - 类 中的静态方法com.jfinal.template.expr.ast.MethodKeyBuilder
切换到 StrictMethodKeyBuilder
特别注意:
如果希望将 configEngine(Engine me) 中的 Engine 切换到 StrictMethodKeyBuilder,
需要在 YourJFinalConfig extends JFinalConfig 中利用如下代码块才能生效:
static {
MethodKeyBuilder.setToStrictMethodKeyBuilder();
}
原因是在 com.jfinal.core.Config 中 new Engine() 时 setToStrictMethodKeyBuilder()
方法并未生效,所以 extension method 生成 method key 时仍然使用的是 FastMethodKeyBuilder
以至于在运行时,使用 StrictMethodKeyBuilder 生成的 key 找不到 extension method
后续版本考虑在调用 setToStrictMethodKeyBuilder() 以后重新初始化一下 MethodKit 中的变量
原先的 static 初始化方式重构出 synchronized void init() 方法来方便调用
setTotalPage(int) - 类 中的方法com.jfinal.plugin.activerecord.Page
setTotalRow(int) - 类 中的方法com.jfinal.plugin.activerecord.Page
setTransactionIsolation(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
事物等级
setTransactionLevel(int) - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
Set transaction level define in java.sql.Connection
setTreatModelAsBean(boolean) - 类 中的静态方法com.jfinal.json.JFinalJson
将 Model 当成 Bean 只对 getter 方法进行转换
默认值为 false,将使用 Model 内的 Map attrs 属性进行转换,不对 getter 方法进行转换
优点是可以转换 sql 关联查询产生的动态字段,还可以转换 Model.put(...)
setTreatModelAsBean(boolean) - 类 中的静态方法com.jfinal.json.JFinalJsonKit
将 Model 当成 Bean 只对 getter 方法进行转换
默认值为 false,将使用 Model 内的 Map attrs 属性进行转换,不对 getter 方法进行转换
优点是可以转换 sql 关联查询产生的动态字段,还可以转换 Model.put(...)
setTypeMapping(TypeMapping) - 类 中的方法com.jfinal.plugin.activerecord.generator.Generator
切换 TypeMapping
jfinal 4.9.08 版本新增了 addTypeMapping(...)
setTypeMapping(TypeMapping) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
setUrlPara(String) - 类 中的方法com.jfinal.core.Controller
setUrlParaSeparator(String) - 类 中的方法com.jfinal.config.Constants
Set urlPara separator.
setUsername(String) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
数据库类型
setValidationQuery(String) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
hsqldb - "select 1 from INFORMATION_SCHEMA.SYSTEM_USERS"
Oracle - "select 1 from dual"
DB2 - "select 1 from sysibm.sysdummy1"
mysql - "select 1"
setValidationQueryTimeout(int) - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
setValidationTimeout(long) - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
连接是否存活测试周期,默认5000(5秒)
setValue(String) - 类 中的方法com.jfinal.captcha.Captcha
setValue(ELContext, Object, Object, Object) - 类 中的方法com.jfinal.plugin.activerecord.ModelRecordElResolver
setValue(Object) - 类 中的方法com.jfinal.template.stat.ast.ForEntry
setView(String) - 类 中的方法com.jfinal.render.Render
setViewExtension(String) - 类 中的方法com.jfinal.config.Constants
Set view extension for the IRenderFactory.getDefaultRender(...)
setViewType(ViewType) - 类 中的方法com.jfinal.config.Constants
Set view type.
setWebRootPath(String) - 类 中的静态方法com.jfinal.kit.PathKit
setWisdomAssignment() - 类 中的方法com.jfinal.template.stat.Ctrl
setWorking(boolean) - 类 中的静态方法com.jfinal.plugin.activerecord.ModelRecordElResolver
setWriter(Writer) - 类 中的静态方法com.jfinal.core.ActionReporter
setWriterBuffer(WriterBuffer) - 类 中的方法com.jfinal.template.EngineConfig
配置自己的 WriterBuffer 实现,配置方法:
engine.getEngineConfig().setWriterBuffer(
sha1(String) - 类 中的静态方法com.jfinal.kit.HashKit
sha256(String) - 类 中的静态方法com.jfinal.kit.HashKit
sha384(String) - 类 中的静态方法com.jfinal.kit.HashKit
sha512(String) - 类 中的静态方法com.jfinal.kit.HashKit
SharedMethod - com.jfinal.template.expr.ast 中的类
SharedMethod
用法:
engine.addSharedMethod(new StrKit());
engine.addSharedStaticMethod(MyKit.class);
#if (notBlank(para))
....
SharedMethod(SharedMethodKit, String, ExprList, Location) - 类 的构造器com.jfinal.template.expr.ast.SharedMethod
SharedMethodKit - com.jfinal.template.expr.ast 中的类
SharedMethodKit
SharedMethodKit() - 类 的构造器com.jfinal.template.expr.ast.SharedMethodKit
SharedMethodLib - com.jfinal.template.ext.sharedmethod 中的类
SharedMethodLib 共享方法库,逐步添加一些最常用的共享方法
3.3 版本之前的 Logic.isTrue(Object) 方法不再对 Collection、
Map、数组、Iterator、Iterable 进行为空的判断,这部分逻辑已转移至
SharedMethodLib.isEmpty(Object)
SharedMethodLib() - 类 的构造器com.jfinal.template.ext.sharedmethod.SharedMethodLib
shortCircuit - 类 中的变量com.jfinal.validate.Validator
ShortConverter() - 类 的构造器com.jfinal.core.converter.Converters.ShortConverter
ShortExt - com.jfinal.template.ext.extensionmethod 中的类
针对 java.lang.Short 的扩展方法
用法:
#if(value.toInt() == 123)
ShortExt() - 类 的构造器com.jfinal.template.ext.extensionmethod.ShortExt
ShortGetter - com.jfinal.core.paragetter 中的类
ShortGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.ShortGetter
shutdown() - 类 中的静态方法com.jfinal.kit.ScheduledKit
等待正在执行的线程执行完毕以后,关闭线程池
shutdown() - 类 中的静态方法com.jfinal.kit.ThreadPoolKit
等待正在执行的线程执行完毕以后,关闭线程池
shutdownNow() - 类 中的静态方法com.jfinal.kit.ScheduledKit
停掉正在执行的线程,关闭线程池
shutdownNow() - 类 中的静态方法com.jfinal.kit.ThreadPoolKit
停掉正在执行的线程,关闭线程池
singleton - 类 中的变量com.jfinal.aop.AopFactory
Singleton - com.jfinal.aop 中的注释类型
Singleton 用于配置被注入对象是否为单例
singletonCache - 类 中的变量com.jfinal.aop.AopFactory
singletonTl - 类 中的变量com.jfinal.aop.AopFactory
sinter(Object...) - 类 中的方法com.jfinal.plugin.redis.Cache
返回多个集合的交集,多个集合由 keys 指定
sismember(Object, Object) - 类 中的方法com.jfinal.plugin.redis.Cache
判断 member 元素是否集合 key 的成员。
size() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
size() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
size() - 类 中的方法com.jfinal.template.expr.ast.RangeArray.RangeList
skip(Predicate<String>) - 类 中的方法com.jfinal.plugin.activerecord.generator.MetaBuilder
跳过不需要生成器处理的 table
由于 setMetaBuilder 将置换掉 MetaBuilder,所以 Generator.addExcludedTable(...)
skipNullValueField - 类 中的静态变量com.jfinal.json.JFinalJsonKit
SLASH - 类 中的静态变量com.jfinal.core.ActionMapping
Slf4jLog - com.jfinal.log 中的类
Slf4jLog
Slf4jLogFactory - com.jfinal.log 中的类
Slf4jLogFactory
Slf4jLogFactory() - 类 的构造器com.jfinal.log.Slf4jLogFactory
Slf4jLogFactory.Slf4jSimpleLog - com.jfinal.log 中的类
Slf4jSimpleLog 支持 slf4j-simple
slowEquals(byte[], byte[]) - 类 中的静态方法com.jfinal.kit.HashKit
slowEquals(String, String) - 类 中的静态方法com.jfinal.kit.StrKit
smembers(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
返回集合 key 中的所有成员。
source - 类 中的变量com.jfinal.template.ext.directive.RenderDirective.SubStat
sourceList - 类 中的变量com.jfinal.template.Env
spop(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
移除并返回集合中的一个随机元素。
SqlDateConverter() - 类 的构造器com.jfinal.core.converter.Converters.SqlDateConverter
SqlDateGetter - com.jfinal.core.paragetter 中的类
SqlDateGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.SqlDateGetter
SqlDirective - com.jfinal.plugin.activerecord.sql 中的类
SqlDirective
SqlDirective() - 类 的构造器com.jfinal.plugin.activerecord.sql.SqlDirective
Sqlite3Dialect - com.jfinal.plugin.activerecord.dialect 中的类
SqliteDialect.
Sqlite3Dialect() - 类 的构造器com.jfinal.plugin.activerecord.dialect.Sqlite3Dialect
SqlKit - com.jfinal.plugin.activerecord.sql 中的类
SqlKit
SqlKit(String, boolean) - 类 的构造器com.jfinal.plugin.activerecord.sql.SqlKit
SqlKit(String) - 类 的构造器com.jfinal.plugin.activerecord.sql.SqlKit
sqlPara - 类 中的变量com.jfinal.plugin.activerecord.DaoTemplate
sqlPara - 类 中的变量com.jfinal.plugin.activerecord.DbTemplate
SqlPara - com.jfinal.plugin.activerecord 中的类
SqlPara
封装查询使用的 sql 与参数,主要用于 getSqlPara(...)
SqlPara() - 类 的构造器com.jfinal.plugin.activerecord.SqlPara
SqlReporter - com.jfinal.plugin.activerecord 中的类
SqlReporter.
SqlReporter(Connection) - 类 的构造器com.jfinal.plugin.activerecord.SqlReporter
SqlServerDialect - com.jfinal.plugin.activerecord.dialect 中的类
SqlServerDialect 为OSC 网友战五渣贡献代码:http://www.oschina.net/question/2333909_234198
SqlServerDialect() - 类 的构造器com.jfinal.plugin.activerecord.dialect.SqlServerDialect
srandmember(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
返回集合中的一个随机元素。
srandmember(Object, int) - 类 中的方法com.jfinal.plugin.redis.Cache
返回集合中的 count 个随机元素。
srem(Object, Object...) - 类 中的方法com.jfinal.plugin.redis.Cache
移除集合 key 中的一个或多个 member 元素,不存在的 member 元素会被忽略。
start() - 类 中的静态方法com.jfinal.core.JFinal
start(String, int, String, int) - 类 中的静态方法com.jfinal.core.JFinal
用于在 Eclipse 中,通过创建 main 方法的方式启动项目,支持热加载
start(String, int, String) - 类 中的静态方法com.jfinal.core.JFinal
已过时。
start() - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
start() - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
start() - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
start() - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
start() - 类 中的方法com.jfinal.plugin.ehcache.EhCachePlugin
start() - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
start() - 接口 中的方法com.jfinal.plugin.IPlugin
start() - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
start() - 接口 中的方法com.jfinal.server.IServer
stat - 类 中的变量com.jfinal.template.Directive
具有 #end 结束符的指令内部嵌套的所有内容,调用 stat.exec(env, scope, writer)
即可执行指令内部嵌入所有指令与表达式,如果指令没有 #end 结束符,该属性无效
stat - 类 中的变量com.jfinal.template.ext.directive.RenderDirective.SubStat
Stat - com.jfinal.template.stat.ast 中的类
Stat
Stat() - 类 的构造器com.jfinal.template.stat.ast.Stat
StaticField - com.jfinal.template.expr.ast 中的类
StaticField : ID_list '::' ID
动态获取静态变量值,变量值改变时仍可正确获取
用法:com.jfinal.core.Const::JFINAL_VERSION
StaticField(String, String, Location) - 类 的构造器com.jfinal.template.expr.ast.StaticField
StaticHtmlRender - com.jfinal.ext.render 中的类
生成静态 html
StaticHtmlRender() - 类 的构造器com.jfinal.ext.render.StaticHtmlRender
StaticMethod - com.jfinal.template.expr.ast 中的类
StaticMethod : ID_list : '::' ID '(' exprList?
StaticMethod(String, String, Location) - 类 的构造器com.jfinal.template.expr.ast.StaticMethod
StaticMethod(String, String, ExprList, Location) - 类 的构造器com.jfinal.template.expr.ast.StaticMethod
StatList - com.jfinal.template.stat.ast 中的类
StatList
StatList(List<Stat>) - 类 的构造器com.jfinal.template.stat.ast.StatList
stop() - 类 中的静态方法com.jfinal.core.JFinal
stop() - 类 中的方法com.jfinal.plugin.activerecord.ActiveRecordPlugin
stop() - 类 中的方法com.jfinal.plugin.c3p0.C3p0Plugin
stop() - 类 中的方法com.jfinal.plugin.cron4j.Cron4jPlugin
stop() - 接口 中的方法com.jfinal.plugin.cron4j.ITask
stop() - 类 中的方法com.jfinal.plugin.druid.DruidPlugin
stop() - 类 中的方法com.jfinal.plugin.ehcache.EhCachePlugin
stop() - 类 中的方法com.jfinal.plugin.hikaricp.HikariCpPlugin
stop() - 接口 中的方法com.jfinal.plugin.IPlugin
stop() - 类 中的方法com.jfinal.plugin.redis.RedisPlugin
stop() - 接口 中的方法com.jfinal.server.IServer
StrictFieldKeyBuilder() - 类 的构造器com.jfinal.template.expr.ast.FieldKeyBuilder.StrictFieldKeyBuilder
StrictMethodKeyBuilder() - 类 的构造器com.jfinal.template.expr.ast.MethodKeyBuilder.StrictMethodKeyBuilder
StringArrayGetter - com.jfinal.core.paragetter 中的类
StringArrayGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.StringArrayGetter
StringDirective - com.jfinal.template.ext.directive 中的类
#string 指令方便定义大量的多行文本变量,这个是 java 语言中极为需要的功能
定义:
#string(name)
在此是大量的字符串
#end
使用:
#(name)
StringDirective() - 类 的构造器com.jfinal.template.ext.directive.StringDirective
StringExt - com.jfinal.template.ext.extensionmethod 中的类
针对 java.lang.String 的扩展方法
重要用途:
Controller.keepPara() 方法会将所有类型的数据当成 String 并传回到
到模板中,所以模板中的如下代码将无法工作:
#if(age > 18)
....
StringExt() - 类 的构造器com.jfinal.template.ext.extensionmethod.StringExt
StringGetter - com.jfinal.core.paragetter 中的类
StringGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.StringGetter
StringSource - com.jfinal.template.source 中的类
StringSource 用于从 String 变量中加载模板内容
StringSource(String, boolean) - 类 的构造器com.jfinal.template.source.StringSource
构造 StringSource
StringSource(String, String) - 类 的构造器com.jfinal.template.source.StringSource
构造 StringSource
StringSource(StringBuilder, boolean) - 类 的构造器com.jfinal.template.source.StringSource
StringSource(StringBuilder, String) - 类 的构造器com.jfinal.template.source.StringSource
StrKit - com.jfinal.kit 中的类
StrKit.
StrKit() - 类 的构造器com.jfinal.kit.StrKit
SubEnv(Env) - 类 的构造器com.jfinal.template.ext.directive.RenderDirective.SubEnv
submit(Runnable) - 类 中的静态方法com.jfinal.kit.ThreadPoolKit
提交一个 Runnable 任务到线程池任务队列,等待执行
调用返回值 Future 对象的 get() 方法,始终返回 null,除非有异常抛出
下面的代码可以得到线程执行过程中抛出的异常,但会立即阻塞当前线程:
try {
submit(task).get();
} catch(Exception e){
...
}
submit(Runnable, T) - 类 中的静态方法com.jfinal.kit.ThreadPoolKit
提交一个 Runnable 任务到线程池任务队列,等待执行
调用返回值 Future 对象的 get() 方法,始终返回 submit 方法的 result 参数值,除非有异常抛出
T result 参数无法在 Runnable 中被获取并使用,除非使用如下方式:
Ret result = Ret.create();
Future future = ThreadPoolKit.submit(() -> {
result.set("key", "value");
}, result);
try {
Ret ret = future.get();
System.out.println(ret.get("key"));
} catch (InterruptedException | ExecutionException e) {
// 处理异常
}
注意:submit(task, result).get(); 会阻塞当前线程直到 task 运行完毕
submit(Callable<T>) - 类 中的静态方法com.jfinal.kit.ThreadPoolKit
提交一个 Callable 任务到线程池任务队列,等待执行
调用返回值 Future 对象的 get() 方法,可获取到 Callable.call() 方法的返回值,除非有异常抛出
所以,该方法非常适用于需要得到 task 执行结果的场景
注意:submit(task).get(); 会阻塞当前线程直到 task 运行完毕
subscribe(JedisPubSub, String...) - 类 中的方法com.jfinal.plugin.redis.Cache
subscribe channel [channel …] 订阅一个或多个频道
PS:
取消订阅在 jedisPubSub 中的 unsubscribe 方法。
subscribeThread(JedisPubSub, String...) - 类 中的方法com.jfinal.plugin.redis.Cache
subscribe channel [channel …] 订阅一个或多个频道
PS:
取消订阅在 jedisPubSub 中的 unsubscribe 方法。
SubStat(RenderDirective.SubEnv, Stat, ISource) - 类 的构造器com.jfinal.template.ext.directive.RenderDirective.SubStat
sunion(Object...) - 类 中的方法com.jfinal.plugin.redis.Cache
返回多个集合的并集,多个集合由 keys 指定
不存在的 key 被视为空集。
supportHtml5DateTimePattern(String) - 类 中的静态方法com.jfinal.core.converter.Converters
Switch - com.jfinal.template.stat.ast 中的类
Switch
#switch 指令与 Java 12 switch 新特性的设计相似: http://openjdk.java.net/jeps/325
在与 java 老版本指令基本用法相同的基础上,主要变化与特性有:
1: 移除 java 语法中的 fall-through semantics,即不需要 break 关键字进行断开
2: 不引入 #break 指令,代码更少、更优雅
3: #case 参数可使用多个用逗号分隔的表达式,每个表达式求值后与 #switch 参数求值后比较,
从根本上消除了 #break 指令的必要性
4: #case 支持任意类型数据与表达式(java 语言只支持少数常量类型)
示例:
#switch (month)
#case (1, 3, 5, 7, 8, 10, 12)
#(month) 月有 31 天
#case (2)
#(month) 月平年有28天,闰年有29天
#default
月份错误: #(month ??
Switch(ExprList, Location) - 类 的构造器com.jfinal.template.stat.ast.Switch
switchView(String, Controller) - 类 中的方法com.jfinal.i18n.I18nInterceptor
在有些 web 系统中,页面需要国际化的文本过多,并且 css 以及 html 也因为际化而大不相同,
对于这种应用场景先直接制做多套同名称的国际化视图,并将这些视图以 locale 为子目录分类存放,
最后使用本拦截器根据 locale 动态切换视图,而不必对视图中的文本逐个进行国际化切换,省时省力。
Sym - com.jfinal.template.expr 中的枚举
Sym
synchronizeLog() - 类 中的静态方法com.jfinal.kit.LogKit
当通过 Constants.setLogFactory(...)
SyncWriteMap <K ,V > - com.jfinal.kit 中的类
SyncWriteMap 同步写 HashMap
创建原因是 HashMap扩容时,遇到并发修改可能造成 100% CPU 占用
SyncWriteMap 拥有 HashMap 的性能,但不保障并发访问的线程安全
只用于读多写少且不用保障线程安全的场景
例如 MethodKit 中用于缓存 MethodInfo 的 cache,被写入的数据
不用保障是单例,读取之后会做 null 值判断
ActionMapping 中的 HashMap 是系统启动时在独立线程内初始化的,
不存在并发写,只存在并发读的情况,所以仍然可以使用 HashMap
SyncWriteMap() - 类 的构造器com.jfinal.kit.SyncWriteMap
SyncWriteMap(int) - 类 的构造器com.jfinal.kit.SyncWriteMap
SyncWriteMap(int, float) - 类 的构造器com.jfinal.kit.SyncWriteMap
SyncWriteMap(Map<? extends K, ? extends V>) - 类 的构造器com.jfinal.kit.SyncWriteMap
Table - com.jfinal.plugin.activerecord 中的类
Table save the table meta info like column name and column type.
Table(String, Class<? extends Model<?>>) - 类 的构造器com.jfinal.plugin.activerecord.Table
Table(String, String, Class<? extends Model<?>>) - 类 的构造器com.jfinal.plugin.activerecord.Table
tableBuilder - 类 中的变量com.jfinal.plugin.activerecord.ActiveRecordPlugin
TableBuilder - com.jfinal.plugin.activerecord 中的类
TableBuilder build the mapping of model between class and table.
TableBuilder() - 类 的构造器com.jfinal.plugin.activerecord.TableBuilder
tableList - 类 中的变量com.jfinal.plugin.activerecord.ActiveRecordPlugin
TableMapping - com.jfinal.plugin.activerecord 中的类
TableMapping save the mapping between model class and table.
TableMeta - com.jfinal.plugin.activerecord.generator 中的类
TableMeta
TableMeta() - 类 的构造器com.jfinal.plugin.activerecord.generator.TableMeta
tableSkip - 类 中的变量com.jfinal.plugin.activerecord.generator.MetaBuilder
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FastFieldGetter
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetter
接管 target.fieldName 表达式,如果可以接管则返回接管对象,否则返回 null
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.ArrayLengthGetter
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.GetterMethodFieldGetter
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.IsMethodFieldGetter
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.MapFieldGetter
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.ModelFieldGetter
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.NullFieldGetter
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.RealFieldGetter
takeOver(Class<?>, String) - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.RecordFieldGetter
takeOverDbPaginate(Connection, int, int, Boolean, String, StringBuilder, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
takeOverDbPaginate(Connection, int, int, Boolean, String, StringBuilder, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
takeOverModelPaginate(Connection, Class<? extends Model>, int, int, Boolean, String, StringBuilder, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
takeOverModelPaginate(Connection, Class<? extends Model>, int, int, Boolean, String, StringBuilder, Object...) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
template(String, Map) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
使用 sql 模板进行查询,可以省去 Db.getSqlPara(...)
template(String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
使用 sql 模板进行查询,可以省去 Db.getSqlPara(...)
template(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
template(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
template - 类 中的变量com.jfinal.plugin.activerecord.generator.BaseModelGenerator
template - 类 中的变量com.jfinal.plugin.activerecord.generator.MappingKitGenerator
template - 类 中的变量com.jfinal.plugin.activerecord.generator.ModelGenerator
template(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.Model
使用 sql 模板进行查询,可以省去 getSqlPara(...)
template(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
使用 sql 模板进行查询,可以省去 getSqlPara(...)
template(String, Model) - 类 中的方法com.jfinal.plugin.activerecord.Model
template - 类 中的变量com.jfinal.proxy.ProxyGenerator
Template - com.jfinal.template 中的类
Template
用法:
Template template = Engine.use().getTemplate(...);
template.render(data, writer);
template.renderToString(data);
Template(Env, Stat) - 类 的构造器com.jfinal.template.Template
Template.Func <T > - com.jfinal.template 中的接口
Func 接口用于接管内部的 Stat ast、Env env、Scope scope 变量
实现更加灵活、强大的功能
TEMPLATE_RENDER - 类 中的静态变量com.jfinal.plugin.ehcache.RenderType
templateByString(String, Map) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
使用字符串变量作为 sql 模板进行查询,可省去外部 sql 文件来使用
sql 模板功能
例子:
String sql = "select * from blog where id = #para(id)";
Db.templateByString(sql, Kv.by("id", 123).find();
templateByString(String, Object...) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
使用字符串变量作为 sql 模板进行查询,可省去外部 sql 文件来使用
sql 模板功能
例子:
String sql = "select * from blog where id = #para(0)";
Db.templateByString(sql, 123).find();
templateByString(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
templateByString(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
templateByString(String, Map) - 类 中的方法com.jfinal.plugin.activerecord.Model
使用字符串变量作为 sql 模板进行查询,可省去外部 sql 文件来使用
sql 模板功能
例子:
String sql = "select * from blog where id = #para(id)";
dao.templateByString(sql, Kv.by("id", 123)).find();
templateByString(String, Object...) - 类 中的方法com.jfinal.plugin.activerecord.Model
使用字符串变量作为 sql 模板进行查询,可省去外部 sql 文件来使用
sql 模板功能
例子:
String sql = "select * from blog where id = #para(0)";
dao.templateByString(sql, 123).find();
templateByString(String, Model) - 类 中的方法com.jfinal.plugin.activerecord.Model
TemplateException - com.jfinal.template 中的异常错误
Template runtime exception
TemplateException(String, Location) - 异常错误 的构造器com.jfinal.template.TemplateException
TemplateException(String, Location, Throwable) - 异常错误 的构造器com.jfinal.template.TemplateException
TemplateRender - com.jfinal.render 中的类
TemplateRender
TemplateRender(String) - 类 的构造器com.jfinal.render.TemplateRender
Ternary - com.jfinal.template.expr.ast 中的类
Ternary
Ternary(Expr, Expr, Expr, Location) - 类 的构造器com.jfinal.template.expr.ast.Ternary
cond ?
testOnBorrow - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
testOnReturn - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
testWhileIdle - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
text - 类 中的变量com.jfinal.render.TextRender
Text - com.jfinal.template.stat.ast 中的类
Text 输出纯文本块以及使用 "#[[" 与 "]]#" 定义的原样输出块
Text(StringBuilder, EngineConfig) - 类 的构造器com.jfinal.template.stat.ast.Text
TextRender - com.jfinal.render 中的类
TextRender.
TextRender(String) - 类 的构造器com.jfinal.render.TextRender
TextRender(String, String) - 类 的构造器com.jfinal.render.TextRender
TextRender(String, ContentType) - 类 的构造器com.jfinal.render.TextRender
threadLocalJedis - 类 中的变量com.jfinal.plugin.redis.Cache
ThreadPoolKit - com.jfinal.kit 中的类
ThreadPoolKit
execute 与 submit(核心区别:前者提交不需要返回值的任务,后者提交需要返回值的任务)
0: submit 会吃掉 task 中的异常,所以需要在 task 的 run/call 方法中使用 try catch
对异常做日志
确切地说 submit 方式是将 task 中的异常暂存起来,如果后续调用其返回值的 Future.get() 方法,
暂存的异常会被抛出来,可以通过 try catch 得到异常
execute 方式会直接向外层抛出 task 中的异常,并且会丢掉原有线程,新建线程用于后续调度,
所以也要用 try catch 来保障不对上层抛出异常
总的来说,都要使用 try catch 管理异常,做好日志
1:submit 方法仅仅是对 Callable、Runnable 参数进行包装,最终仍然是转调了 execute 方法提交线程,
从而会有轻微的性能损耗。
throwable - 类 中的变量com.jfinal.log.LogInfo
timeBetweenConnectErrorMillis - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
timeBetweenEvictionRunsMillis - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
timeBetweenLogStatsMillis - 类 中的变量com.jfinal.plugin.druid.DruidPlugin
TimeConverter() - 类 的构造器com.jfinal.core.converter.Converters.TimeConverter
TimeGetter - com.jfinal.core.paragetter 中的类
TimeGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.TimeGetter
TimeKit - com.jfinal.kit 中的类
TimeKit 用于简化 JDK 8 新增的时间 API
新旧日期转换通过桥梁 Instant 进行,转成 LocalDate、LocalTime 需要先转成 LocalDateTime:
新转旧:LocalDateTime.atZone(ZoneId).toInstant() -> Instant -> Date.from(Instant)
旧转新:Date.toInstant() -> Instant -> LocalDateTime.ofInstant(Instant, ZoneId)
经测试,SimpleDateFormat 比 DateTimeFormatter 对 pattern 的支持更好
对于同样的 pattern 值 "yyyy-MM-dd HH:mm:ss",前者可以转换 "2020-06-9 12:13:19"
后者却不支持,原因是 pattern 的 dd 位置只有数字 9,必须要是两位数字才能支持
所以:建议优先使用转换结果为 Date 的 parse 方法,使用 SimpleDateFormat 来转换
TimeKit() - 类 的构造器com.jfinal.kit.TimeKit
timeout - 类 中的变量com.jfinal.plugin.redis.RedisPlugin
TimestampConverter() - 类 的构造器com.jfinal.core.converter.Converters.TimestampConverter
TimestampGetter - com.jfinal.core.paragetter 中的类
TimestampGetter(String, String) - 类 的构造器com.jfinal.core.paragetter.TimestampGetter
timeStampPattern - 类 中的静态变量com.jfinal.ext.kit.DateKit
timestampPattern - 类 中的变量com.jfinal.json.JFinalJson
TimestampProcessedModelBuilder - com.jfinal.plugin.activerecord.builder 中的类
TimestampProcessedModelBuilder
时间戳被处理过的 ModelBuilder
oracle 从 Connection 中取值时需要调用具体的 getTimestamp(int) 来取值
TimestampProcessedModelBuilder() - 类 的构造器com.jfinal.plugin.activerecord.builder.TimestampProcessedModelBuilder
TimestampProcessedRecordBuilder - com.jfinal.plugin.activerecord.builder 中的类
TimestampProcessedRecordBuilder
时间戳被处理过的 RecordBuilder
oracle 从 Connection 中取值时需要调用具体的 getTimestamp(int) 来取值
TimestampProcessedRecordBuilder() - 类 的构造器com.jfinal.plugin.activerecord.builder.TimestampProcessedRecordBuilder
title - 类 中的静态变量com.jfinal.core.ActionReporter
TL - 类 中的静态变量com.jfinal.json.JFinalJson
to(String) - 类 中的方法com.jfinal.core.paragetter.BeanGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.BigDecimalGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.BigIntegerGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.BooleanGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.DateGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.DoubleGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.EnumGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.FileGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.FloatGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.IntegerArrayGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.IntegerGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.LongArrayGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.LongGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.ModelGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.NullGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.ParaGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.RawDataGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.ShortGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.SqlDateGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.StringArrayGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.StringGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.TimeGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.TimestampGetter
to(String) - 类 中的方法com.jfinal.core.paragetter.UploadFileGetter
toArray() - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
toArray(T[]) - 类 中的方法com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
toBoolean(Byte) - 类 中的方法com.jfinal.template.ext.extensionmethod.ByteExt
toBoolean(Double) - 类 中的方法com.jfinal.template.ext.extensionmethod.DoubleExt
toBoolean(Float) - 类 中的方法com.jfinal.template.ext.extensionmethod.FloatExt
toBoolean(Integer) - 类 中的方法com.jfinal.template.ext.extensionmethod.IntegerExt
toBoolean(Long) - 类 中的方法com.jfinal.template.ext.extensionmethod.LongExt
toBoolean(Short) - 类 中的方法com.jfinal.template.ext.extensionmethod.ShortExt
toBoolean(String) - 类 中的方法com.jfinal.template.ext.extensionmethod.StringExt
StringExt.toBoolean() 是数据类型转换,所以与 Logic.isTrue(String)
中的逻辑不同,后者只要 String 值非 null 并且 length() > 0 即返回 true
toByte(Byte) - 类 中的方法com.jfinal.template.ext.extensionmethod.ByteExt
toByte(Double) - 类 中的方法com.jfinal.template.ext.extensionmethod.DoubleExt
toByte(Float) - 类 中的方法com.jfinal.template.ext.extensionmethod.FloatExt
toByte(Integer) - 类 中的方法com.jfinal.template.ext.extensionmethod.IntegerExt
toByte(Long) - 类 中的方法com.jfinal.template.ext.extensionmethod.LongExt
toByte(Short) - 类 中的方法com.jfinal.template.ext.extensionmethod.ShortExt
toByte(String) - 类 中的方法com.jfinal.template.ext.extensionmethod.StringExt
toCamelCase(String) - 类 中的静态方法com.jfinal.kit.StrKit
将包含下划线字符 '_' 的字符串转换成驼峰格式,不包含下划线则原样返回
toCamelCase(String, boolean) - 类 中的静态方法com.jfinal.kit.StrKit
字符串转换成驼峰格式
toLowerCaseAnyway 参数的作用如下:
1:当待转换字符串中包含下划线字符 '_' 时,无需关心 toLowerCaseAnyway 参数的值,转换结果始终一样
2:当待转换字符串中不包含下划线字符 '_' 时,toLowerCaseAnyway 参数规则如下:
true 值: 将待转换字符串全部转换成小与字母,适用于 oralce 数据库字段转换的场景
因为 oracle 字段全是大写字母
false 值: 则原样返回待转换字符串,适用于待转换字符串可能原本就是驼峰格式的场景
如果原本就是驼峰,全部转成小写字母显然不合理
toConstIfPossible() - 类 中的方法com.jfinal.template.expr.ast.Unary
如果可能的话,将 Unary 表达式转化成 Const 表达式,类似于 ExprParser.buildMapEntry() 需要这种转化来简化实现
除了可简化程序外,还起到一定的性能优化作用
Number : +123 -456 +3.14 -0.12
Boolean : !
toDate(String) - 类 中的静态方法com.jfinal.ext.kit.DateKit
toDate(LocalDateTime) - 类 中的静态方法com.jfinal.kit.TimeKit
java.time.LocalDateTime --> java.util.Date
toDate(LocalDate) - 类 中的静态方法com.jfinal.kit.TimeKit
java.time.LocalDate --> java.util.Date
toDate(LocalTime) - 类 中的静态方法com.jfinal.kit.TimeKit
java.time.LocalTime --> java.util.Date
toDate(LocalDate, LocalTime) - 类 中的静态方法com.jfinal.kit.TimeKit
java.time.LocalTime --> java.util.Date
toDouble(Byte) - 类 中的方法com.jfinal.template.ext.extensionmethod.ByteExt
toDouble(Double) - 类 中的方法com.jfinal.template.ext.extensionmethod.DoubleExt
toDouble(Float) - 类 中的方法com.jfinal.template.ext.extensionmethod.FloatExt
toDouble(Integer) - 类 中的方法com.jfinal.template.ext.extensionmethod.IntegerExt
toDouble(Long) - 类 中的方法com.jfinal.template.ext.extensionmethod.LongExt
toDouble(Short) - 类 中的方法com.jfinal.template.ext.extensionmethod.ShortExt
toDouble(String) - 类 中的方法com.jfinal.template.ext.extensionmethod.StringExt
toFloat(Byte) - 类 中的方法com.jfinal.template.ext.extensionmethod.ByteExt
toFloat(Double) - 类 中的方法com.jfinal.template.ext.extensionmethod.DoubleExt
toFloat(Float) - 类 中的方法com.jfinal.template.ext.extensionmethod.FloatExt
toFloat(Integer) - 类 中的方法com.jfinal.template.ext.extensionmethod.IntegerExt
toFloat(Long) - 类 中的方法com.jfinal.template.ext.extensionmethod.LongExt
toFloat(Short) - 类 中的方法com.jfinal.template.ext.extensionmethod.ShortExt
toFloat(String) - 类 中的方法com.jfinal.template.ext.extensionmethod.StringExt
toHex(byte[]) - 类 中的静态方法com.jfinal.kit.HashKit
toInt(Byte) - 类 中的方法com.jfinal.template.ext.extensionmethod.ByteExt
toInt(Double) - 类 中的方法com.jfinal.template.ext.extensionmethod.DoubleExt
toInt(Float) - 类 中的方法com.jfinal.template.ext.extensionmethod.FloatExt
toInt(Integer) - 类 中的方法com.jfinal.template.ext.extensionmethod.IntegerExt
toInt(Long) - 类 中的方法com.jfinal.template.ext.extensionmethod.LongExt
toInt(Short) - 类 中的方法com.jfinal.template.ext.extensionmethod.ShortExt
toInt(String) - 类 中的方法com.jfinal.template.ext.extensionmethod.StringExt
toJavaFormatString() - 类 中的方法com.jfinal.template.io.FloatingDecimal
toJson(Object) - 类 中的方法com.jfinal.json.FastJson
toJson(Object, SerializerFeature...) - 类 中的方法com.jfinal.json.FastJson
支持传入更多 SerializerFeature
例如:
SerializerFeature.WriteMapNullValue 支持对 null 值字段的转换
toJson(Object) - 类 中的方法com.jfinal.json.Jackson
toJson(Object) - 类 中的方法com.jfinal.json.JFinalJson
toJson(T, int, JFinalJsonKit.JsonResult) - 接口 中的方法com.jfinal.json.JFinalJsonKit.ToJson
toJson(Object) - 类 中的方法com.jfinal.json.Json
toJson(Object) - 类 中的方法com.jfinal.json.MixedJson
toJson(Object) - 类 中的静态方法com.jfinal.kit.JsonKit
toJson(Object, int) - 类 中的静态方法com.jfinal.kit.JsonKit
已过时。
toJson() - 类 中的方法com.jfinal.kit.Kv
toJson() - 类 中的方法com.jfinal.kit.Okv
toJson() - 类 中的方法com.jfinal.kit.Ret
toJson() - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Convert to json string.
toJson() - 类 中的方法com.jfinal.plugin.activerecord.Model
Return json string of this model.
toJson() - 类 中的方法com.jfinal.plugin.activerecord.Record
Return json string of this record.
toJsonFactory - 类 中的静态变量com.jfinal.json.JFinalJsonKit
Token - com.jfinal.token 中的类
Token.
Token(String, long) - 类 的构造器com.jfinal.token.Token
Token(String) - 类 的构造器com.jfinal.token.Token
TokenManager - com.jfinal.token 中的类
TokenManager.
toLocalDate(Date) - 类 中的静态方法com.jfinal.kit.TimeKit
java.util.Date --> java.time.LocalDate
toLocalDateTime(Date) - 类 中的静态方法com.jfinal.kit.TimeKit
java.util.Date --> java.time.LocalDateTime
toLocale(String) - 类 中的静态方法com.jfinal.i18n.I18n
toLocale(Locale) - 类 中的静态方法com.jfinal.i18n.I18n
toLocalTime(Date) - 类 中的静态方法com.jfinal.kit.TimeKit
java.util.Date --> java.time.LocalTime
toLong(Byte) - 类 中的方法com.jfinal.template.ext.extensionmethod.ByteExt
toLong(Double) - 类 中的方法com.jfinal.template.ext.extensionmethod.DoubleExt
toLong(Float) - 类 中的方法com.jfinal.template.ext.extensionmethod.FloatExt
toLong(Integer) - 类 中的方法com.jfinal.template.ext.extensionmethod.IntegerExt
toLong(Long) - 类 中的方法com.jfinal.template.ext.extensionmethod.LongExt
toLong(Short) - 类 中的方法com.jfinal.template.ext.extensionmethod.ShortExt
toLong(String) - 类 中的方法com.jfinal.template.ext.extensionmethod.StringExt
toMap() - 接口 中的方法com.jfinal.plugin.activerecord.IRow
Convert Model or Record to a Map.
toMap() - 类 中的方法com.jfinal.plugin.activerecord.Model
toMap() - 类 中的方法com.jfinal.plugin.activerecord.Record
toRecord() - 类 中的方法com.jfinal.plugin.activerecord.Model
Convert model to record.
toShort(Byte) - 类 中的方法com.jfinal.template.ext.extensionmethod.ByteExt
toShort(Double) - 类 中的方法com.jfinal.template.ext.extensionmethod.DoubleExt
toShort(Float) - 类 中的方法com.jfinal.template.ext.extensionmethod.FloatExt
toShort(Integer) - 类 中的方法com.jfinal.template.ext.extensionmethod.IntegerExt
toShort(Long) - 类 中的方法com.jfinal.template.ext.extensionmethod.LongExt
toShort(Short) - 类 中的方法com.jfinal.template.ext.extensionmethod.ShortExt
toShort(String) - 类 中的方法com.jfinal.template.ext.extensionmethod.StringExt
toStr(Date) - 类 中的静态方法com.jfinal.ext.kit.DateKit
toStr(Date, String) - 类 中的静态方法com.jfinal.ext.kit.DateKit
toString() - 类 中的方法com.jfinal.captcha.Captcha
toString() - 类 中的方法com.jfinal.core.Action
toString() - 类 中的方法com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
toString() - 类 中的方法com.jfinal.json.JFinalJsonKit.JsonResult
toString() - 类 中的方法com.jfinal.plugin.activerecord.Model
toString() - 类 中的方法com.jfinal.plugin.activerecord.Page
toString() - 类 中的方法com.jfinal.plugin.activerecord.Record
toString() - 类 中的方法com.jfinal.plugin.activerecord.sql.SqlKit
toString() - 类 中的方法com.jfinal.plugin.activerecord.SqlPara
toString() - 枚举 中的方法com.jfinal.render.ContentType
toString() - 类 中的方法com.jfinal.render.TemplateRender
toString() - 类 中的方法com.jfinal.template.Engine
toString() - 类 中的方法com.jfinal.template.expr.ast.Const
toString() - 类 中的方法com.jfinal.template.expr.ast.FastFieldGetter
toString() - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.GetterMethodFieldGetter
toString() - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.IsMethodFieldGetter
toString() - 类 中的方法com.jfinal.template.expr.ast.FieldGetters.RealFieldGetter
toString() - 类 中的方法com.jfinal.template.expr.ast.FieldKeyBuilder.FieldKey
toString() - 类 中的方法com.jfinal.template.expr.ast.Id
Id.toString() 后续版本不能变动,已有部分第三方依赖此方法
toString() - 类 中的方法com.jfinal.template.expr.ast.MethodInfo
toString() - 类 中的方法com.jfinal.template.expr.ast.StaticField
toString() - 类 中的方法com.jfinal.template.expr.ast.Unary
toString() - 类 中的方法com.jfinal.template.expr.NumTok
toString() - 枚举 中的方法com.jfinal.template.expr.Sym
toString() - 类 中的方法com.jfinal.template.ext.spring.JFinalView.InnerSession
toString() - 类 中的方法com.jfinal.template.io.FastStringWriter
toString() - 类 中的方法com.jfinal.template.io.FloatingDecimal
toString() - 类 中的方法com.jfinal.template.source.ClassPathSource
toString() - 类 中的方法com.jfinal.template.source.FileSource
toString() - 类 中的方法com.jfinal.template.source.StringSource
toString() - 类 中的方法com.jfinal.template.stat.ast.Define
toString() - 类 中的方法com.jfinal.template.stat.ast.Text
toString() - 类 中的方法com.jfinal.template.stat.Location
toString() - 类 中的方法com.jfinal.template.stat.ParaToken
toStringBuilder() - 类 中的方法com.jfinal.template.io.FastStringWriter
trace(String) - 类 中的静态方法com.jfinal.kit.LogKit
trace(String, Throwable) - 类 中的静态方法com.jfinal.kit.LogKit
trace(String, Object...) - 类 中的静态方法com.jfinal.kit.LogKit
trace(String) - 类 中的方法com.jfinal.log.JdkLog
trace(String, Throwable) - 类 中的方法com.jfinal.log.JdkLog
trace(String, Object...) - 类 中的方法com.jfinal.log.JdkLog
trace(String) - 类 中的方法com.jfinal.log.Log
trace(String, Throwable) - 类 中的方法com.jfinal.log.Log
trace(String, Object...) - 类 中的方法com.jfinal.log.Log
trace(String) - 类 中的方法com.jfinal.log.Log4jLog
trace(String, Throwable) - 类 中的方法com.jfinal.log.Log4jLog
trace(String, Object...) - 类 中的方法com.jfinal.log.Log4jLog
trace(String) - 类 中的方法com.jfinal.log.Slf4jLog
trace(String, Throwable) - 类 中的方法com.jfinal.log.Slf4jLog
trace(String, Object...) - 类 中的方法com.jfinal.log.Slf4jLog
trace(String) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
trace(String, Throwable) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
trace(String, Object...) - 类 中的方法com.jfinal.log.Slf4jLogFactory.Slf4jSimpleLog
Transaction - com.jfinal.plugin.activerecord.tx 中的类
ActiveRecord declare transaction.
Transaction() - 类 的构造器com.jfinal.plugin.activerecord.tx.Transaction
treatModelAsBean - 类 中的静态变量com.jfinal.json.JFinalJsonKit
trimPrimaryKeys(String[]) - 类 中的方法com.jfinal.plugin.activerecord.dialect.Dialect
一、forDbXxx 系列方法中若有如下两种情况之一,则需要调用此方法对 pKeys 数组进行 trim():
1:方法中调用了 isPrimaryKey(...)
TRUE - 类 中的静态变量com.jfinal.template.expr.ast.Const
ttl(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
以秒为单位,返回给定 key 的剩余生存时间(TTL, time to live)。
tx(IAtom) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
Execute transaction with default transaction level.
tx(int, IAtom) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
tx(Config, int, IAtom) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Execute transaction.
tx(IAtom) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Execute transaction with default transaction level.
tx(int, IAtom) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
Tx - com.jfinal.plugin.activerecord.tx 中的类
ActiveRecord declare transaction.
Tx() - 类 的构造器com.jfinal.plugin.activerecord.tx.Tx
TxByActionKeyRegex - com.jfinal.plugin.activerecord.tx 中的类
TxByActionKeyRegex.
TxByActionKeyRegex(String) - 类 的构造器com.jfinal.plugin.activerecord.tx.TxByActionKeyRegex
TxByActionKeyRegex(String, boolean) - 类 的构造器com.jfinal.plugin.activerecord.tx.TxByActionKeyRegex
TxByActionKeys - com.jfinal.plugin.activerecord.tx 中的类
TxByActionKeys
TxByActionKeys(String...) - 类 的构造器com.jfinal.plugin.activerecord.tx.TxByActionKeys
TxByMethodRegex - com.jfinal.plugin.activerecord.tx 中的类
TxByMethodRegex.
TxByMethodRegex(String) - 类 的构造器com.jfinal.plugin.activerecord.tx.TxByMethodRegex
TxByMethodRegex(String, boolean) - 类 的构造器com.jfinal.plugin.activerecord.tx.TxByMethodRegex
TxByMethods - com.jfinal.plugin.activerecord.tx 中的类
TxByMethods
TxByMethods(String...) - 类 的构造器com.jfinal.plugin.activerecord.tx.TxByMethods
TxConfig - com.jfinal.plugin.activerecord.tx 中的注释类型
TxConfig is used to configure configName for Tx interceptor
txInNewThread(IAtom) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
主要用于嵌套事务场景
实例:https://jfinal.com/feedback/4008
默认情况下嵌套事务会被合并成为一个事务,那么内层与外层任何地方回滚事务
所有嵌套层都将回滚事务,也就是说嵌套事务无法独立提交与回滚
使用 txInNewThread(...)
txInNewThread(int, IAtom) - 类 中的静态方法com.jfinal.plugin.activerecord.Db
txInNewThread(IAtom) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
主要用于嵌套事务场景
实例:https://jfinal.com/feedback/4008
默认情况下嵌套事务会被合并成为一个事务,那么内层与外层任何地方回滚事务
所有嵌套层都将回滚事务,也就是说嵌套事务无法独立提交与回滚
使用 txInNewThread(...)
txInNewThread(int, IAtom) - 类 中的方法com.jfinal.plugin.activerecord.DbPro
TxReadCommitted - com.jfinal.plugin.activerecord.tx 中的类
TxReadCommitted.
TxReadCommitted() - 类 的构造器com.jfinal.plugin.activerecord.tx.TxReadCommitted
TxReadUncommitted - com.jfinal.plugin.activerecord.tx 中的类
TxReadUncommitted.
TxReadUncommitted() - 类 的构造器com.jfinal.plugin.activerecord.tx.TxReadUncommitted
TxRepeatableRead - com.jfinal.plugin.activerecord.tx 中的类
TxRepeatableRead.
TxRepeatableRead() - 类 的构造器com.jfinal.plugin.activerecord.tx.TxRepeatableRead
TxSerializable - com.jfinal.plugin.activerecord.tx 中的类
TxSerializable.
TxSerializable() - 类 的构造器com.jfinal.plugin.activerecord.tx.TxSerializable
type - 类 中的变量com.jfinal.plugin.activerecord.generator.ColumnMeta
type(Object) - 类 中的方法com.jfinal.plugin.redis.Cache
返回 key 所储存的值的类型。
TypeConverter - com.jfinal.core.converter 中的类
TypeConverter 用于将客户端请求的 String 类型数据转换成指定的数据类型
可以通过实现 IConverter 定制自己的类型转换规则:
1:实现 IConverter 接口,如 MyDateConverter
2:注册:TypeConverter.me().regist(Date.class, new MyDateConverter());
注意:后注册的 Converter 会直接覆盖掉先注册的,因此可以通过覆盖的方式取代 jfinal
官方的 Converter 实现类,达成定制化的需求
test for all types of mysql
表单提交测试结果:
1: 表单中的域,就算不输入任何内容,也会传过来 "", 也即永远不可能为 null.
2: 如果输入空格也会提交上来
3: 需要考 model中的 string属性,在传过来 "" 时是该转成 null还是不该转换,
因为用户没有输入那么肯定是 null, 而不该是 ""
4: 返回 null 还可以在数据表字段约束为不允许 null 值时,避免失误清除数据,
"" 值对于数据表字段来说是合法的,容易失误清掉原有内容
注意: 1:当type参数不为String.class, 且参数s为空串blank的情况,
此情况下转换结果为 null, 而不应该抛出异常
2:调用者需要对被转换数据做 null 判断,参见 Injector 的两处调用
typeMapping - 类 中的变量com.jfinal.plugin.activerecord.generator.MetaBuilder
TypeMapping - com.jfinal.plugin.activerecord.generator 中的类
TypeMapping 建立起 ResultSetMetaData.getColumnClassName(i)到 java类型的映射关系
特别注意时间型类型映射为了 java.util.Date(java.sql.Time 除外),可通过继承扩展该类来调整映射满足特殊需求
与 com.jfinal.plugin.activerecord.JavaType.java 类型映射不同之处在于
将时间型类型对应到 java.util.Date(java.sql.Time 除外)
TypeMapping() - 类 的构造器com.jfinal.plugin.activerecord.generator.TypeMapping