- C3p0Plugin - Class in com.jfinal.plugin.c3p0
-
The c3p0 datasource plugin.
- C3p0Plugin(String, String, String) - Constructor for class com.jfinal.plugin.c3p0.C3p0Plugin
-
- C3p0Plugin(String, String, String, String) - Constructor for class com.jfinal.plugin.c3p0.C3p0Plugin
-
- C3p0Plugin(String, String, String, String, Integer, Integer, Integer, Integer, Integer) - Constructor for class com.jfinal.plugin.c3p0.C3p0Plugin
-
- C3p0Plugin(File) - Constructor for class com.jfinal.plugin.c3p0.C3p0Plugin
-
- C3p0Plugin(Properties) - Constructor for class com.jfinal.plugin.c3p0.C3p0Plugin
-
- Cache - Class in com.jfinal.plugin.redis
-
Cache.
- Cache() - Constructor for class com.jfinal.plugin.redis.Cache
-
- Cache(String, JedisPool, ISerializer, IKeyNamingPolicy) - Constructor for class com.jfinal.plugin.redis.Cache
-
- cacheAction(String, String, Controller) - Method in class com.jfinal.plugin.ehcache.CacheInterceptor
-
- CacheInterceptor - Class in com.jfinal.plugin.ehcache
-
CacheInterceptor.
- CacheInterceptor() - Constructor for class com.jfinal.plugin.ehcache.CacheInterceptor
-
- CacheKit - Class in com.jfinal.plugin.ehcache
-
CacheKit.
- CacheKit() - Constructor for class com.jfinal.plugin.ehcache.CacheKit
-
- CacheName - Annotation Type in com.jfinal.plugin.ehcache
-
CacheName can configure CacheInterceptor's cache name or EvictInterceptor's evict cache name.
- cacheName - Variable in class com.jfinal.plugin.redis.RedisPlugin
-
- call(Connection) - Method in interface com.jfinal.plugin.activerecord.ICallback
-
Place codes here that need call back by active record plugin.
- call(Cache) - Method in interface com.jfinal.plugin.redis.ICallback
-
- call(ICallback) - Static method in class com.jfinal.plugin.redis.Redis
-
- call(ICallback, String) - Static method in class com.jfinal.plugin.redis.Redis
-
- Call - Class in com.jfinal.template.stat.ast
-
Call 调用模板函数,两种用法:
1:常规调用
#@funcName(p1, p2, ..., pn)
2:安全调用,函数被定义才调用,否则跳过
#@funcName?(p1, p2, ..., pn)
注意:在函数名前面引入 '@' 字符是为了区分模板函数和指令
- Call(String, ExprList, boolean) - Constructor for class com.jfinal.template.stat.ast.Call
-
- call(Env, Scope, ExprList, Writer) - Method in class com.jfinal.template.stat.ast.Define
-
真正调用模板函数
- Captcha - Class in com.jfinal.captcha
-
验证码
- Captcha(String, String, int) - Constructor for class com.jfinal.captcha.Captcha
-
验证码构造
- Captcha(String, String) - Constructor for class com.jfinal.captcha.Captcha
-
- Captcha() - Constructor for class com.jfinal.captcha.Captcha
-
redis 反序列化需要默认构造方法
- CaptchaCache - Class in com.jfinal.captcha
-
ICaptchaCache 默认实现,可用于单实例部署
集群部署需自行实现 ICaptchaCache 接口,并使用
CaptchaManager.setCaptchaCache(...) 进行配置
- CaptchaCache() - Constructor for class com.jfinal.captcha.CaptchaCache
-
- CaptchaManager - Class in com.jfinal.captcha
-
CaptchaManager
- captchaName - Static variable in class com.jfinal.captcha.CaptchaRender
-
- CaptchaRender - Class in com.jfinal.captcha
-
CaptchaRender.
- CaptchaRender() - Constructor for class com.jfinal.captcha.CaptchaRender
-
- CaptchaRender - Class in com.jfinal.ext.render
-
Deprecated.
- CaptchaRender(String) - Constructor for class com.jfinal.ext.render.CaptchaRender
-
Deprecated.
- CaseInsensitiveContainerFactory - Class in com.jfinal.plugin.activerecord
-
CaseInsensitiveContainerFactory.
- CaseInsensitiveContainerFactory() - Constructor for class com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
-
- CaseInsensitiveContainerFactory(boolean) - Constructor for class com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
-
- CaseInsensitiveContainerFactory.CaseInsensitiveMap<V> - Class in com.jfinal.plugin.activerecord
-
- CaseInsensitiveContainerFactory.CaseInsensitiveSet - Class in com.jfinal.plugin.activerecord
-
- CaseInsensitiveMap() - Constructor for class com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory.CaseInsensitiveMap
-
- CaseInsensitiveSet() - Constructor for class com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory.CaseInsensitiveSet
-
- charArray - Static variable in class com.jfinal.captcha.CaptchaRender
-
- charset - Variable in class com.jfinal.template.io.EncoderFactory
-
- CharTable - Class in com.jfinal.template.stat
-
CharTable 空间换时间优化字符判断性能
负值参数强转 char 会自动变正值,无需判断负值数组下标
isLetter(EOF) 不会下标越界
- CharWriter - Class in com.jfinal.template.io
-
CharWriter
- CharWriter(int) - Constructor for class com.jfinal.template.io.CharWriter
-
- checkUrlPara(int, int) - Method in class com.jfinal.core.Controller
-
- checkUrlPara(int) - Method in class com.jfinal.core.Controller
-
- classLoader - Variable in class com.jfinal.template.source.ClassPathSource
-
- ClassPathSource - Class in com.jfinal.template.source
-
ClassPathSource 用于从 class path 以及 jar 包之中加载模板内容
- ClassPathSource(String) - Constructor for class com.jfinal.template.source.ClassPathSource
-
- ClassPathSource(String, String) - Constructor for class com.jfinal.template.source.ClassPathSource
-
- ClassPathSource(String, String, String) - Constructor for class com.jfinal.template.source.ClassPathSource
-
- ClassPathSourceFactory - Class in com.jfinal.template.source
-
ClassPathSourceFactory 用于配置 Engine 使用 ClassPathSource 加载模板文件
配置示例:
engine.baseTemplatePath(null); // 清掉 base path
engine.setSourceFactory(new ClassPathSourceFactory());
- ClassPathSourceFactory() - Constructor for class com.jfinal.template.source.ClassPathSourceFactory
-
- clazz - Variable in class com.jfinal.template.expr.ast.MethodInfo
-
- Clear - Annotation Type in 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() - Method in class com.jfinal.config.Routes
-
- clear(Controller) - Static method in class com.jfinal.core.CPI
-
- clear() - Static method in class com.jfinal.kit.PropKit
-
- clear() - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
-
- clear() - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
-
- clear() - Method in class com.jfinal.plugin.activerecord.Model
-
Remove all attributes of this model.
- clear() - Method in class com.jfinal.plugin.activerecord.Record
-
Remove all columns of this record.
- clear() - Method in class com.jfinal.plugin.activerecord.SqlPara
-
- clear() - Static method in class com.jfinal.plugin.activerecord.Sqls
-
Deprecated.
- clearExcludedAttrs() - Static method in class com.jfinal.render.JsonRender
-
- clientName - Variable in class com.jfinal.plugin.redis.RedisPlugin
-
- close(ResultSet, Statement, Connection) - Method in class com.jfinal.plugin.activerecord.Config
-
Close ResultSet、Statement、Connection
ThreadLocal support declare transaction.
- close(Statement, Connection) - Method in class com.jfinal.plugin.activerecord.Config
-
- close(Connection) - Method in class com.jfinal.plugin.activerecord.Config
-
- close(Jedis) - Method in class com.jfinal.plugin.redis.Cache
-
- close() - Method in class com.jfinal.template.io.ByteWriter
-
- close() - Method in class com.jfinal.template.io.CharWriter
-
- close() - Method in class com.jfinal.template.io.FastStringWriter
-
由 StringWriter.close() 改造而来,原先该方法中无任何代码 ,改造如下:
1:去掉 throws IOException
2:添加 buf 空间释放处理逻辑
3:添加 buf.setLength(0),以便于配合 ThreadLocal 回收利用
- close() - Method in class com.jfinal.template.io.Writer
-
- colDefaultValueMaxLen - Variable in class com.jfinal.plugin.activerecord.generator.TableMeta
-
- colNameMaxLen - Variable in class com.jfinal.plugin.activerecord.generator.TableMeta
-
- colTypeMaxLen - Variable in class com.jfinal.plugin.activerecord.generator.TableMeta
-
- ColumnMeta - Class in com.jfinal.plugin.activerecord.generator
-
ColumnMeta
- ColumnMeta() - Constructor for class com.jfinal.plugin.activerecord.generator.ColumnMeta
-
- columnMetas - Variable in class com.jfinal.plugin.activerecord.generator.TableMeta
-
- com.jfinal.aop - package com.jfinal.aop
-
- com.jfinal.captcha - package com.jfinal.captcha
-
- com.jfinal.config - package com.jfinal.config
-
- com.jfinal.core - package com.jfinal.core
-
- com.jfinal.core.converter - package com.jfinal.core.converter
-
- com.jfinal.ext.handler - package com.jfinal.ext.handler
-
- com.jfinal.ext.interceptor - package com.jfinal.ext.interceptor
-
- com.jfinal.ext.kit - package com.jfinal.ext.kit
-
- com.jfinal.ext.render - package com.jfinal.ext.render
-
- com.jfinal.handler - package com.jfinal.handler
-
- com.jfinal.i18n - package com.jfinal.i18n
-
- com.jfinal.json - package com.jfinal.json
-
- com.jfinal.kit - package com.jfinal.kit
-
- com.jfinal.log - package com.jfinal.log
-
- com.jfinal.plugin - package com.jfinal.plugin
-
- com.jfinal.plugin.activerecord - package com.jfinal.plugin.activerecord
-
- com.jfinal.plugin.activerecord.builder - package com.jfinal.plugin.activerecord.builder
-
- com.jfinal.plugin.activerecord.cache - package com.jfinal.plugin.activerecord.cache
-
- com.jfinal.plugin.activerecord.dialect - package com.jfinal.plugin.activerecord.dialect
-
- com.jfinal.plugin.activerecord.generator - package com.jfinal.plugin.activerecord.generator
-
- com.jfinal.plugin.activerecord.sql - package com.jfinal.plugin.activerecord.sql
-
- com.jfinal.plugin.activerecord.tx - package com.jfinal.plugin.activerecord.tx
-
- com.jfinal.plugin.auth - package com.jfinal.plugin.auth
-
- com.jfinal.plugin.c3p0 - package com.jfinal.plugin.c3p0
-
- com.jfinal.plugin.cron4j - package com.jfinal.plugin.cron4j
-
- com.jfinal.plugin.druid - package com.jfinal.plugin.druid
-
- com.jfinal.plugin.ehcache - package com.jfinal.plugin.ehcache
-
- com.jfinal.plugin.hikaricp - package com.jfinal.plugin.hikaricp
-
- com.jfinal.plugin.redis - package com.jfinal.plugin.redis
-
- com.jfinal.plugin.redis.serializer - package com.jfinal.plugin.redis.serializer
-
- com.jfinal.render - package com.jfinal.render
-
- com.jfinal.server - package com.jfinal.server
-
- com.jfinal.template - package com.jfinal.template
-
- com.jfinal.template.expr - package com.jfinal.template.expr
-
- com.jfinal.template.expr.ast - package com.jfinal.template.expr.ast
-
- com.jfinal.template.ext.directive - package com.jfinal.template.ext.directive
-
- com.jfinal.template.ext.extensionmethod - package com.jfinal.template.ext.extensionmethod
-
- com.jfinal.template.ext.sharedmethod - package com.jfinal.template.ext.sharedmethod
-
- com.jfinal.template.ext.spring - package com.jfinal.template.ext.spring
-
- com.jfinal.template.io - package com.jfinal.template.io
-
- com.jfinal.template.source - package com.jfinal.template.source
-
- com.jfinal.template.stat - package com.jfinal.template.stat
-
- com.jfinal.template.stat.ast - package com.jfinal.template.stat.ast
-
- com.jfinal.token - package com.jfinal.token
-
- com.jfinal.upload - package com.jfinal.upload
-
- com.jfinal.validate - package com.jfinal.validate
-
- Compare - Class in com.jfinal.template.expr.ast
-
Compare
1:支持 byte short int long float double BigDecimal 的 == != > >= < <= 操作
2:== != 作用于 string,调用其 equals 方法进行比较
3:> >= < <= 可以比较实现了 Comparable 接口的对象
注意:float double 浮点型数据在比较操作时,具有精度上的局限性,不建议对浮点数进行比较
- Compare(Sym, Expr, Expr, Location) - Constructor for class com.jfinal.template.expr.ast.Compare
-
- config() - Method in class com.jfinal.aop.InterceptorStack
-
- config() - Method in class com.jfinal.config.Routes
-
Implement this method to add route, add interceptor and set baseViewPath
- config() - Method in class com.jfinal.json.Jackson
-
- Config - Class in com.jfinal.plugin.activerecord
-
- Config(String, DataSource, Dialect, boolean, boolean, int, IContainerFactory, ICache) - Constructor for class com.jfinal.plugin.activerecord.Config
-
Constructor with full parameters
- Config(String, DataSource) - Constructor for class com.jfinal.plugin.activerecord.Config
-
Constructor with name and dataSource
- Config(String, DataSource, Dialect) - Constructor for class com.jfinal.plugin.activerecord.Config
-
Constructor with name, dataSource and dialect
- config - Variable in class com.jfinal.plugin.activerecord.DbPro
-
- configConstant(Constants) - Method in class com.jfinal.config.JFinalConfig
-
Config constant
- configEngine(Engine) - Method in class com.jfinal.config.JFinalConfig
-
Config engine
- configHandler(Handlers) - Method in class com.jfinal.config.JFinalConfig
-
Config handler
- configInterceptor(Interceptors) - Method in class com.jfinal.config.JFinalConfig
-
Config interceptor applied to all actions.
- configPlugin(Plugins) - Method in class com.jfinal.config.JFinalConfig
-
Config plugin
- configRoute(Routes) - Method in class com.jfinal.config.JFinalConfig
-
Config route
- conn - Variable in class com.jfinal.plugin.activerecord.generator.MetaBuilder
-
- Const - Interface in com.jfinal.core
-
Global constants definition
- Const - Class in com.jfinal.template.expr.ast
-
STR INT LONG FLOAT DOUBLE TRUE FALSE NULL
- Const(Sym, Object) - Constructor for class com.jfinal.template.expr.ast.Const
-
INT LONG FLOAT DOUBLE 常量已在 NumTok 中转换成了确切的类型,无需再次转换
- Constants - Class in com.jfinal.config
-
The constant for JFinal runtime.
- Constants() - Constructor for class com.jfinal.config.Constants
-
- constants - Variable in class com.jfinal.render.RenderFactory
-
- contains(String) - Method in class com.jfinal.captcha.CaptchaCache
-
- contains(String) - Method in class com.jfinal.kit.JavaKeyword
-
- contains(Object) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
-
- contains(Token) - Method in interface com.jfinal.token.ITokenCache
-
- containsAll(Collection<?>) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
-
- containsKey(String) - Method in class com.jfinal.kit.Prop
-
- containsKey(String) - Static method in class com.jfinal.kit.PropKit
-
- containsKey(Object) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
-
- containsValue(Object) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
-
- ContentType - Enum in com.jfinal.render
-
ContentType
TOMCAT-HOME/conf/web.xml
http://tool.oschina.net/commons
- contentType - Static variable in class com.jfinal.render.ErrorRender
-
- contextDestroyed(ServletContextEvent) - Method in class com.jfinal.ext.kit.ElResolverListener
-
- contextInitialized(ServletContextEvent) - Method in class com.jfinal.ext.kit.ElResolverListener
-
- ContextPathHandler - Class in com.jfinal.ext.handler
-
Provide a context path to view if you need.
- ContextPathHandler() - Constructor for class com.jfinal.ext.handler.ContextPathHandler
-
- ContextPathHandler(String) - Constructor for class com.jfinal.ext.handler.ContextPathHandler
-
- Continue - Class in com.jfinal.template.stat.ast
-
Continue
- Controller - Class in com.jfinal.core
-
Controller
昨夜西风凋碧树。独上高楼,望尽天涯路。
衣带渐宽终不悔,为伊消得人憔悴。
众里寻她千百度,蓦然回首,那人却在灯火阑珊处。
- Controller() - Constructor for class com.jfinal.core.Controller
-
- controller - Variable in class com.jfinal.validate.Validator
-
- controllerFactory - Variable in class com.jfinal.core.ActionHandler
-
- ControllerFactory - Class in com.jfinal.core
-
ControllerFactory
- ControllerFactory() - Constructor for class com.jfinal.core.ControllerFactory
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.BigDecimalConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.BigIntegerConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.BooleanConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.ByteArrayConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.ByteConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.DateConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.DoubleConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.FloatConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.IntegerConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.LongConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.ShortConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.SqlDateConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.TimeConverter
-
- convert(String) - Method in class com.jfinal.core.converter.Converters.TimestampConverter
-
- convert(String) - Method in interface com.jfinal.core.converter.IConverter
-
- convert(Class<?>, String) - Method in class com.jfinal.core.converter.TypeConverter
-
将 String 数据转换为指定的类型
- convertDepth - Variable in class com.jfinal.json.JFinalJson
-
- Converters - Class in com.jfinal.core.converter
-
针对 Integer、Long、Date 等类型实现 IConverter 接口
- Converters.BigDecimalConverter - Class in com.jfinal.core.converter
-
- Converters.BigIntegerConverter - Class in com.jfinal.core.converter
-
- Converters.BooleanConverter - Class in com.jfinal.core.converter
-
- Converters.ByteArrayConverter - Class in com.jfinal.core.converter
-
- Converters.ByteConverter - Class in com.jfinal.core.converter
-
- Converters.DateConverter - Class in com.jfinal.core.converter
-
- Converters.DoubleConverter - Class in com.jfinal.core.converter
-
- Converters.FloatConverter - Class in com.jfinal.core.converter
-
- Converters.IntegerConverter - Class in com.jfinal.core.converter
-
- Converters.LongConverter - Class in com.jfinal.core.converter
-
- Converters.ShortConverter - Class in com.jfinal.core.converter
-
- Converters.SqlDateConverter - Class in com.jfinal.core.converter
-
- Converters.TimeConverter - Class in com.jfinal.core.converter
-
- Converters.TimestampConverter - Class in com.jfinal.core.converter
-
- CPI - Class in com.jfinal.core
-
Cross Package Invoking pattern for package core.
- CPI() - Constructor for class com.jfinal.core.CPI
-
- CPI - Class in com.jfinal.plugin.activerecord
-
Cross Package Invoking pattern for package activerecord.
- CPI() - Constructor for class com.jfinal.plugin.activerecord.CPI
-
- create(Object, Object) - Static method in class com.jfinal.kit.JMap
-
Deprecated.
- create() - Static method in class com.jfinal.kit.JMap
-
Deprecated.
- create() - Static method in class com.jfinal.kit.Kv
-
- create() - Static method in class com.jfinal.kit.Okv
-
- create(Object, Object) - Static method in class com.jfinal.kit.Ret
-
- create() - Static method in class com.jfinal.kit.Ret
-
- create(String) - Static method in class com.jfinal.template.Engine
-
Create engine with engine name managed by JFinal
- createCaptcha() - Method in class com.jfinal.captcha.CaptchaRender
-
- createControllerInterceptor(Class<? extends Controller>) - Method in class com.jfinal.aop.InterceptorManager
-
- createInterceptor(Before) - Method in class com.jfinal.aop.InterceptorManager
-
- createInterceptor(Class<? extends Interceptor>[]) - Method in class com.jfinal.aop.InterceptorManager
-
- createJFinalConfig(String) - Method in class com.jfinal.core.JFinalFilter
-
- createRender() - Method in class com.jfinal.plugin.ehcache.RenderInfo
-
- createRenderInfo(Render) - Method in class com.jfinal.plugin.ehcache.CacheInterceptor
-
通过继承 CacheInterceptor 并覆盖此方法支持更多类型的 Render
- createServiceInterceptor(Class<?>) - Method in class com.jfinal.aop.InterceptorManager
-
- createToken(String, int) - Method in class com.jfinal.core.Controller
-
Create a token.
- createToken() - Method in class com.jfinal.core.Controller
-
Create a token with default token name and with default seconds of time out.
- createToken(String) - Method in class com.jfinal.core.Controller
-
Create a token with default seconds of time out.
- createToken(Controller, String, int) - Static method in class com.jfinal.token.TokenManager
-
Create Token.
- Cron4jPlugin - Class in 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 分这三个时间点执行
星号 *:表示每一个时间点,例如 * * * * * 表示每分钟执行
除号 /:表示指定一个值的增加幅度。例如 n/m表示从 n 开始,每次增加 m 的时间点执行
一、配置文件用法
cp = new Cron4jPlugin("cron4j.txt");
me.add(cp);
配置文件:
cron4j=task1, task2
task1.cron=* * * * *
task1.class=com.xxx.TaskAaa
task1.daemon=true
task1.enable=true
task2.cron=* * * * *
task2.class=com.xxx.TaskBbb
task2.daemon=true
task2.enable=false
cron4j 是所有配置的入口,用来配置有哪些 task 需要被调度,多个任务名称可用逗号分隔,例如上例中的 task1、task2
后面的配置项均以 task1、task2 为前缀进行配置,具体意义如下
task1.cron 表示 task1 使用 cron 表达式调试任务
task1.class 表示 执行任务的类文件
task1.daemon 表示调试线程是否设置为守护线程,默认值为 true,守护线程会在 tomcat 关闭时自动关闭
task1.enable 表示该任务是否有效,默认值为 true,为 false 时该任务无效,不会被调用
task2 的配置与 task1 类似,不在赘述
此外:cron4j 这个配置项入口可以在 new Cron4jPlugin(...) 时指定,例如下面的代码将指定配置项入口为 "myCron4jConfig"
Cron4jPlugin("config.txt", "myCron4jConfig"),当指定配置入口为 "myCron4jConfig" 以后,配置就变成了如下的形式:
myCron4jConfig=task1, task2
后面的配置完全不变
二、java 代码用法
cp = new Cron4jPlugin();
cp.addTask("* * * * *", new MyTask());
me.add(cp);
还需要添加:schedule(Task task) 功能
官方的例子证明可以调用系统的脚本,这个对于调用数据库备份来说很方便:
三、ProcessTask 调用系统程序的用法(How to schedule a system process)
System processes can be easily scheduled using the ProcessTask class:
ProcessTask task = new ProcessTask("C:\\Windows\\System32\\notepad.exe");
Scheduler scheduler = new Scheduler();
scheduler.schedule("* * * * *", task);
scheduler.start();
Arguments for the process can be supplied by using a string array instead of a single command string:
String[] command = { "C:\\Windows\\System32\\notepad.exe", "C:\\File.txt" };
ProcessTask task = new ProcessTask(command);
Environment variables for the process can be supplied using a second string array, whose elements have to be in the NAME=VALUE form:
String[] command = { "C:\\tomcat\\bin\\catalina.bat", "start" };
String[] envs = { "CATALINA_HOME=C:\\tomcat", "JAVA_HOME=C:\\jdks\\jdk5" };
ProcessTask task = new ProcessTask(command, envs);
The default working directory for the process can be changed using a third parameter in the constructor:
String[] command = { "C:\\tomcat\\bin\\catalina.bat", "start" };
String[] envs = { "CATALINA_HOME=C:\\tomcat", "JAVA_HOME=C:\\jdks\\jdk5" };
File directory = "C:\\MyDirectory";
ProcessTask task = new ProcessTask(command, envs, directory);
If you want to change the default working directory but you have not any environment variable, the envs parameter of the constructor can be set to null:
ProcessTask task = new ProcessTask(command, null, directory);
- Cron4jPlugin() - Constructor for class com.jfinal.plugin.cron4j.Cron4jPlugin
-
- Cron4jPlugin(String) - Constructor for class com.jfinal.plugin.cron4j.Cron4jPlugin
-
- Cron4jPlugin(Prop) - Constructor for class com.jfinal.plugin.cron4j.Cron4jPlugin
-
- Cron4jPlugin(String, String) - Constructor for class com.jfinal.plugin.cron4j.Cron4jPlugin
-
- Cron4jPlugin(Prop, String) - Constructor for class com.jfinal.plugin.cron4j.Cron4jPlugin
-
- Ctrl - Class in com.jfinal.template.stat
-
Ctrl
封装 AST 执行过程中的控制状态,避免使用 Scope.data 保存控制状态
从而污染用户空间数据,目前仅用于 nullSafe、break、continue、return 控制
未来可根据需求引入更多控制状态
- Ctrl() - Constructor for class com.jfinal.template.stat.Ctrl
-
- genAesKey() - Static method in class com.jfinal.kit.AesKit
-
- genBaseModelContent(TableMeta) - Method in class com.jfinal.plugin.activerecord.generator.BaseModelGenerator
-
- genCell(int, String, String, String, String, StringBuilder) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- genColumn(TableMeta, ColumnMeta, StringBuilder) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- generate(HttpServletRequest) - Method in class com.jfinal.ext.kit.SessionIdKit
-
- generate(List<TableMeta>) - Method in class com.jfinal.plugin.activerecord.generator.BaseModelGenerator
-
- generate(List<TableMeta>) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- generate() - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
- generate(List<TableMeta>) - Method in class com.jfinal.plugin.activerecord.generator.MappingKitGenerator
-
- generate(List<TableMeta>) - Method in class com.jfinal.plugin.activerecord.generator.ModelGenerator
-
- generateChainSetter - Variable in class com.jfinal.plugin.activerecord.generator.BaseModelGenerator
-
- generateDaoInModel - Variable in class com.jfinal.plugin.activerecord.generator.ModelGenerator
-
- generateDataDictionary - Variable in class com.jfinal.plugin.activerecord.generator.Generator
-
- generateNullValue - Variable in class com.jfinal.json.Jackson
-
- generateSalt(int) - Static method in class com.jfinal.kit.HashKit
-
md5 128bit 16bytes
sha1 160bit 20bytes
sha256 256bit 32bytes
sha384 384bit 48bytes
sha512 512bit 64bytes
- generateSaltForSha256() - Static method in class com.jfinal.kit.HashKit
-
- generateSaltForSha512() - Static method in class com.jfinal.kit.HashKit
-
- generateTable(TableMeta, StringBuilder) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- Generator - Class in com.jfinal.plugin.activerecord.generator
-
生成器
1:生成时会强制覆盖 Base model、MappingKit、DataDictionary,建议不要修改三类文件,在数据库有变化重新生成一次便可
2:生成 Model 不会覆盖已经存在的文件,Model 通常会被人为修改和维护
3:MappingKit 文件默认会在生成 Model 文件的同时生成
4:DataDictionary 文件默认不会生成。只有在设置 setGenerateDataDictionary(true)后,会在生成 Model文件的同时生成
5:可以通过继承 BaseModelGenerator、ModelGenerator、MappingKitGenerator、DataDictionaryGenerator
来创建自定义生成器,然后使用 Generator 的 setter 方法指定自定义生成器来生成
6:生成模板文字属性全部为 protected 可见性,方便自定义 Generator 生成符合。。。。
- Generator(DataSource, String, String, String, String) - Constructor for class com.jfinal.plugin.activerecord.generator.Generator
-
构造 Generator,生成 BaseModel、Model、MappingKit 三类文件,其中 MappingKit 输出目录与包名与 Model相同
- Generator(DataSource, String, String) - Constructor for class com.jfinal.plugin.activerecord.generator.Generator
-
构造 Generator,只生成 baseModel
- Generator(DataSource, BaseModelGenerator) - Constructor for class com.jfinal.plugin.activerecord.generator.Generator
-
- Generator(DataSource, BaseModelGenerator, ModelGenerator) - Constructor for class com.jfinal.plugin.activerecord.generator.Generator
-
使用指定 BaseModelGenerator、ModelGenerator 构造 Generator
生成 BaseModel、Model、MappingKit 三类文件,其中 MappingKit 输出目录与包名与 Model相同
- genModelContent(TableMeta) - Method in class com.jfinal.plugin.activerecord.generator.ModelGenerator
-
- genSeparateLine(TableMeta) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- genTableHead(TableMeta, StringBuilder) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- get(String) - Method in class com.jfinal.captcha.CaptchaCache
-
- get(String) - Method in interface com.jfinal.captcha.ICaptchaCache
-
- GET - Class in com.jfinal.ext.interceptor
-
Accept GET method only.
- GET() - Constructor for class com.jfinal.ext.interceptor.GET
-
- get(String) - Method in class com.jfinal.i18n.Res
-
Get the message value from ResourceBundle of the related Locale.
- get(String, Map<String, String>, Map<String, String>) - Static method in class com.jfinal.kit.HttpKit
-
Send GET request
- get(String, Map<String, String>) - Static method in class com.jfinal.kit.HttpKit
-
- get(String) - Static method in class com.jfinal.kit.HttpKit
-
- get(String) - Method in class com.jfinal.kit.Prop
-
- get(String, String) - Method in class com.jfinal.kit.Prop
-
- get(String) - Static method in class com.jfinal.kit.PropKit
-
- get(String, String) - Static method in class com.jfinal.kit.PropKit
-
- get(String, Object) - Method in class com.jfinal.plugin.activerecord.cache.EhCache
-
- get(String, Object) - Method in interface com.jfinal.plugin.activerecord.cache.ICache
-
- get(Object) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
-
- get(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of any mysql type
- get(String, Object) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of any mysql type.
- get(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of any mysql type
- get(String, Object) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of any mysql type.
- get(String) - Static method in class com.jfinal.plugin.activerecord.Sqls
-
Deprecated.
- get(String, String) - Static method in class com.jfinal.plugin.activerecord.Sqls
-
Deprecated.
- get(String, Object) - Static method in class com.jfinal.plugin.ehcache.CacheKit
-
- get(String, Object, IDataLoader) - Static method in class com.jfinal.plugin.ehcache.CacheKit
-
- get(String, Object, Class<? extends IDataLoader>) - Static method in class com.jfinal.plugin.ehcache.CacheKit
-
- get(Object) - Method in class com.jfinal.plugin.redis.Cache
-
返回 key 所关联的 value 值
如果 key 不存在那么返回特殊值 nil 。
- get(int) - Method in class com.jfinal.template.expr.ast.RangeArray.RangeList
-
- get(Object) - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
覆盖 HashMap 的 get
- get(Object) - Method in class com.jfinal.template.stat.Scope
-
获取变量
自内向外在作用域栈中查找变量,返回最先找到的变量
- getAccessToken(HttpServletRequest) - Static method in class com.jfinal.plugin.auth.AccessTokenBuilder
-
- getAction(String, String[]) - Method in class com.jfinal.core.ActionMapping
-
Support four types of url
1: http://abc.com/controllerKey ---> 00
2: http://abc.com/controllerKey/para ---> 01
3: http://abc.com/controllerKey/method ---> 10
4: http://abc.com/controllerKey/method/para ---> 11
The controllerKey can also contains "/"
Example: http://abc.com/uvw/xyz/method/para
- getAction(String, String[]) - Method in class com.jfinal.core.JFinal
-
- getActionHandler() - Method in class com.jfinal.config.Handlers
-
- getActionKey() - Method in class com.jfinal.aop.Invocation
-
Return the action key.
- getActionKey() - Method in class com.jfinal.core.Action
-
- getActionKey() - Method in class com.jfinal.validate.Validator
-
Return the action key of this action.
- getActionMethod() - Method in class com.jfinal.validate.Validator
-
Return the method of this action.
- getActionMethodName() - Method in class com.jfinal.validate.Validator
-
Return the method name of this action.
- getActionUrl() - Method in class com.jfinal.core.ForwardActionRender
-
- getActualExpr() - Method in class com.jfinal.template.expr.ast.ExprList
-
持有 ExprList 的指令可以通过此方法提升 AST 执行性能
1:当 exprArray.length == 1 时返回 exprArray[0]
2:当 exprArray.length == 0 时返回 NullExpr
3:其它情况返回 ExprList 自身
意义在于,当满足前面两个条件时,避免掉了 ExprList.eval(...) 方法中的判断与循环
- getActualStat() - Method in class com.jfinal.template.stat.ast.StatList
-
持有 StatList 的指令可以通过此方法提升 AST 执行性能
1:当 statArray.length > 1 时返回 StatList 自身
2:当 statArray.length == 1 时返回 statArray[0]
3:其它情况返回 NullStat
意义在于,当满足前面两个条件时,避免掉了 StatList.exec(...) 方法中的判断与循环
- getAll() - Method in interface com.jfinal.token.ITokenCache
-
- getAllActionKeys() - Method in class com.jfinal.core.ActionMapping
-
- getAllActionKeys() - Method in class com.jfinal.core.JFinal
-
- getArg(int) - Method in class com.jfinal.aop.Invocation
-
- getArgs() - Method in class com.jfinal.aop.Invocation
-
- getAs(Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
- getAs(Object) - Method in class com.jfinal.kit.Kv
-
- getAs(Object) - Method in class com.jfinal.kit.Okv
-
- getAs(Object) - Method in class com.jfinal.kit.Ret
-
- getAttr(String) - Method in class 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) - Method in class com.jfinal.core.Controller
-
- getAttr(String) - Method in interface com.jfinal.plugin.auth.ISession
-
- getAttrForInt(String) - Method in class 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) - Method in class 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) - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getAttribute(String) - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getAttributeNames() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getAttributeNames() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getAttrNames() - Method in class com.jfinal.core.Controller
-
Returns an Enumeration containing the names of the attributes available to this request.
- getAttrNames() - Method in interface com.jfinal.plugin.auth.ISession
-
- getAttrs(Model) - Static method in class com.jfinal.plugin.activerecord.CPI
-
Return the attributes map of the model
- getAttrs() - Method in class com.jfinal.render.JsonRender
-
- getAttrsMap() - Method in class com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
-
- getAttrsMap() - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory
-
- getAttrsMap() - Method in interface com.jfinal.plugin.activerecord.IContainerFactory
-
- getAttrsMap() - Method in class com.jfinal.plugin.activerecord.OrderedFieldContainerFactory
-
- getBaseDownloadPath() - Method in class com.jfinal.config.Constants
-
- getBaseName() - Method in class com.jfinal.i18n.I18nInterceptor
-
Return the baseName, which is used as base name of the i18n resource file.
- getBaseTemplatePath() - Method in class com.jfinal.template.Engine
-
- getBaseTemplatePath() - Method in class com.jfinal.template.EngineConfig
-
- getBaseUploadPath() - Method in class com.jfinal.config.Constants
-
- getBaseViewPath() - Method in class com.jfinal.config.Routes
-
- getBean(Class<T>) - Method in class com.jfinal.core.Controller
-
- getBean(Class<T>, boolean) - Method in class com.jfinal.core.Controller
-
- getBean(Class<T>, String) - Method in class com.jfinal.core.Controller
-
- getBean(Class<T>, String, boolean) - Method in class com.jfinal.core.Controller
-
- getBigDecimal(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: decimal, numeric
- getBigDecimal(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: decimal, numeric
- getBigInteger(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: unsigned bigint
- getBigInteger(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: unsigned bigint
- getBoolean(Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
- getBoolean(Object) - Method in class com.jfinal.kit.Kv
-
- getBoolean(Object) - Method in class com.jfinal.kit.Okv
-
- getBoolean(String) - Method in class com.jfinal.kit.Prop
-
- getBoolean(String, Boolean) - Method in class com.jfinal.kit.Prop
-
- getBoolean(String) - Static method in class com.jfinal.kit.PropKit
-
- getBoolean(String, Boolean) - Static method in class com.jfinal.kit.PropKit
-
- getBoolean(Object) - Method in class com.jfinal.kit.Ret
-
- getBoolean(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: bit, tinyint(1)
- getBoolean(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: bit, tinyint(1)
- getBoolean() - Method in class com.jfinal.template.expr.ast.Const
-
- getBuffer() - Method in class com.jfinal.template.io.FastStringWriter
-
- getByte(String) - Method in class com.jfinal.plugin.activerecord.Model
-
- getByte(String) - Method in class com.jfinal.plugin.activerecord.Record
-
- getBytes(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: binary, varbinary, tinyblob, blob, mediumblob, longblob
- getBytes(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: binary, varbinary, tinyblob, blob, mediumblob, longblob
I have not finished the test.
- getBytes() - Method in interface com.jfinal.template.io.IWritable
-
供 OutputStream 模式下的 ByteWrite 使用
- getBytes() - Method in class com.jfinal.template.stat.ast.Text
-
- getByteWriter(OutputStream) - Method in class com.jfinal.template.io.WriterBuffer
-
- getCache() - Method in class com.jfinal.plugin.activerecord.Config
-
- getCache() - Method in class com.jfinal.plugin.redis.RedisInterceptor
-
通过继承 RedisInterceptor 类并覆盖此方法,可以指定
当前线程所使用的 cache
- getCacheManager() - Static method in class com.jfinal.plugin.ehcache.CacheKit
-
- getCaptchaCache() - Method in class com.jfinal.captcha.CaptchaManager
-
- getCaptchaKeyFromCookie() - Method in class com.jfinal.captcha.CaptchaRender
-
- getCaptchaRender() - Method in interface com.jfinal.render.IRenderFactory
-
- getCaptchaRender() - Method in class com.jfinal.render.RenderFactory
-
- getChars(char[]) - Method in class com.jfinal.template.io.FloatingDecimal
-
- getChars() - Method in interface com.jfinal.template.io.IWritable
-
供 Writer 模式下的 CharWrite 使用
- getChars() - Method in class com.jfinal.template.stat.ast.Text
-
- getCharWriter(Writer) - Method in class com.jfinal.template.io.WriterBuffer
-
- getClassLoader() - Method in class com.jfinal.template.source.ClassPathSource
-
- getColumnNames() - Method in class com.jfinal.plugin.activerecord.Record
-
Return column names of this record.
- getColumnNameSet() - Method in class com.jfinal.plugin.activerecord.Table
-
- getColumns() - Method in class com.jfinal.plugin.activerecord.Record
-
Return columns map.
- getColumnsMap() - Method in class com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
-
- getColumnsMap() - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory
-
- getColumnsMap() - Method in interface com.jfinal.plugin.activerecord.IContainerFactory
-
- getColumnsMap() - Method in class com.jfinal.plugin.activerecord.OrderedFieldContainerFactory
-
- getColumnType(String) - Method in class com.jfinal.plugin.activerecord.Table
-
- getColumnTypeMap() - Method in class com.jfinal.plugin.activerecord.Table
-
- getColumnTypeMapEntrySet() - Method in class com.jfinal.plugin.activerecord.Table
-
- getColumnValues() - Method in class com.jfinal.plugin.activerecord.Record
-
Return column values of this record.
- getComboPooledDataSource() - Method in class com.jfinal.plugin.c3p0.C3p0Plugin
-
- getCommonPropertyType(ELContext, Object) - Method in class com.jfinal.plugin.activerecord.ModelRecordElResolver
-
- getCond() - Method in class com.jfinal.template.expr.ast.ForCtrl
-
- getConfig() - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- getConfig() - Static method in class com.jfinal.plugin.activerecord.DbKit
-
- getConfig(String) - Static method in class com.jfinal.plugin.activerecord.DbKit
-
- getConfig(Class<? extends Model>) - Static method in class com.jfinal.plugin.activerecord.DbKit
-
- getConfig() - Method in class com.jfinal.plugin.activerecord.DbPro
-
- getConfigPluginOrder() - Method in class com.jfinal.config.Constants
-
- getConfigSet() - Static method in class com.jfinal.plugin.activerecord.DbKit
-
- getConfiguration() - Static method in class com.jfinal.render.FreeMarkerRender
-
freemarker can not load freemarker.properies automatically
- getConfigWithTxConfig(Invocation) - Static method in class com.jfinal.plugin.activerecord.tx.Tx
-
- getConnection() - Method in class com.jfinal.plugin.activerecord.Config
-
Get Connection.
- getConstants() - Method in class com.jfinal.core.JFinal
-
- getConstants() - Method in class com.jfinal.render.RenderManager
-
- getContainerFactory() - Method in class com.jfinal.plugin.activerecord.Config
-
- getContent() - Method in class com.jfinal.template.source.ClassPathSource
-
- getContent() - Method in class com.jfinal.template.source.FileSource
-
- getContent() - Method in interface com.jfinal.template.source.ISource
-
content of ISource
- getContent() - Method in class com.jfinal.template.source.StringSource
-
- getContent() - Method in class com.jfinal.template.stat.ParaToken
-
- getContentType() - Method in class com.jfinal.render.FreeMarkerRender
-
继承类可通过覆盖此方法改变 contentType,从而重用 freemarker 模板功能
例如利用 freemarker 实现 FreeMarkerXmlRender 生成 Xml 内容
- getContentType() - Method in class com.jfinal.render.TemplateRender
-
- getContentType() - Method in class com.jfinal.render.TextRender
-
- getContentType() - Method in class com.jfinal.render.VelocityRender
-
继承类可通过覆盖此方法改变 contentType,从而重用 velocity 模板功能
例如利用 velocity 实现 VelocityXmlRender
- getContentType() - Method in class com.jfinal.render.XmlRender
-
- getContentType() - Method in class com.jfinal.upload.UploadFile
-
- getContextPath() - Method in class com.jfinal.core.JFinal
-
- getController() - Method in class com.jfinal.aop.Invocation
-
Return the controller of this action.
- getController(Class<? extends Controller>) - Method in class com.jfinal.core.ControllerFactory
-
- getController(Class<? extends Controller>) - Method in class com.jfinal.core.FastControllerFactory
-
- getController() - Method in class com.jfinal.validate.Validator
-
Return the controller of this action.
- getControllerClass() - Method in class com.jfinal.config.Routes.Route
-
- getControllerClass() - Method in class com.jfinal.core.Action
-
- getControllerFactory() - Method in class com.jfinal.config.Constants
-
- getControllerKey() - Method in class com.jfinal.aop.Invocation
-
Return the controller key.
- getControllerKey() - Method in class com.jfinal.config.Routes.Route
-
- getControllerKey() - Method in class com.jfinal.core.Action
-
- getControllerKey() - Method in class com.jfinal.core.Controller
-
- getControllerKey() - Method in class com.jfinal.validate.Validator
-
Return the controller key of this action.
- getCookie(String, String) - Method in class com.jfinal.core.Controller
-
Get cookie value by cookie name.
- getCookie(String) - Method in class com.jfinal.core.Controller
-
Get cookie value by cookie name.
- getCookieObject(String) - Method in class com.jfinal.core.Controller
-
Get cookie object by cookie name.
- getCookieObjects() - Method in class com.jfinal.core.Controller
-
Get all cookie objects.
- getCookieToInt(String) - Method in class com.jfinal.core.Controller
-
Get cookie value by cookie name and convert to Integer.
- getCookieToInt(String, Integer) - Method in class com.jfinal.core.Controller
-
Get cookie value by cookie name and convert to Integer.
- getCookieToLong(String) - Method in class com.jfinal.core.Controller
-
Get cookie value by cookie name and convert to Long.
- getCookieToLong(String, Long) - Method in class com.jfinal.core.Controller
-
Get cookie value by cookie name and convert to Long.
- getCount() - Method in class com.jfinal.template.stat.ast.ForIteratorStatus
-
- getCount() - Method in class com.jfinal.template.stat.ast.ForLoopStatus
-
- getCounter(Object) - Method in class com.jfinal.plugin.redis.Cache
-
获取记数器的值
- getCreationTime() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getCreationTime() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getCtrl() - Method in class com.jfinal.template.stat.Scope
-
- getData() - Method in class com.jfinal.template.stat.Scope
-
获取本层作用域 data,可能为 null 值
- getDataSource() - Method in class com.jfinal.plugin.activerecord.Config
-
- getDataSource() - Method in interface com.jfinal.plugin.activerecord.IDataSourceProvider
-
- getDataSource() - Method in class com.jfinal.plugin.c3p0.C3p0Plugin
-
- getDataSource() - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- getDataSource() - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
- getDate(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: date, year
- getDate(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: date, year
- getDateFormat(String) - Method in class com.jfinal.template.io.DateFormats
-
- getDatePattern() - Method in class com.jfinal.json.Json
-
- getDatePattern() - Method in class com.jfinal.template.Engine
-
- getDatePattern() - Method in class com.jfinal.template.EngineConfig
-
- getDatePattern() - Method in class com.jfinal.validate.Validator
-
- getDbPro(String) - Method in interface com.jfinal.plugin.activerecord.IDbProFactory
-
- getDbProFactory() - Method in class com.jfinal.plugin.activerecord.Config
-
- getDefaultDatePattern() - Method in class com.jfinal.json.Json
-
- getDefaultPrimaryKey() - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
- getDefaultPrimaryKey() - Method in class com.jfinal.plugin.activerecord.dialect.OracleDialect
-
- getDefaultRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getDefaultRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getDevMode() - Method in class com.jfinal.config.Constants
-
- getDevMode() - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- getDevMode() - Static method in class com.jfinal.render.Render
-
- getDevMode() - Method in class com.jfinal.template.Engine
-
- getDialect() - Method in class com.jfinal.plugin.activerecord.Config
-
- getDirective(String) - Method in class com.jfinal.template.EngineConfig
-
- getDouble(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: real, double
- getDouble(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: real, double
- getDouble() - Method in class com.jfinal.template.expr.ast.Const
-
- getEncoder() - Method in class com.jfinal.template.io.EncoderFactory
-
- getEncoding() - Method in class com.jfinal.config.Constants
-
- getEncoding() - Static method in class com.jfinal.render.Render
-
- getEncoding() - Method in class com.jfinal.template.Engine
-
- getEncoding() - Method in class com.jfinal.template.EngineConfig
-
- getEncoding() - Method in class com.jfinal.template.source.ClassPathSource
-
- getEncoding() - Method in class com.jfinal.template.source.FileSource
-
- getEncoding() - Method in interface com.jfinal.template.source.ISource
-
encoding of content
- getEncoding() - Method in class com.jfinal.template.source.StringSource
-
- getEngine() - Static method in class com.jfinal.kit.ElKit
-
- getEngine() - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- getEngine() - Method in class com.jfinal.plugin.activerecord.sql.SqlKit
-
- getEngine() - Method in class com.jfinal.render.RenderManager
-
- getEngine() - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
- getEngineConfig() - Method in class com.jfinal.template.Engine
-
- getEngineConfig() - Method in class com.jfinal.template.Env
-
- getErrorCode() - Method in exception com.jfinal.core.ActionException
-
- getErrorCode() - Method in class com.jfinal.render.ErrorRender
-
- getErrorHtml() - Method in class com.jfinal.render.ErrorRender
-
- getErrorRender() - Method in exception com.jfinal.core.ActionException
-
- getErrorRender(int, String) - Method in interface com.jfinal.render.IRenderFactory
-
- getErrorRender(int) - Method in interface com.jfinal.render.IRenderFactory
-
- getErrorRender(int, String) - Method in class com.jfinal.render.RenderFactory
-
- getErrorRender(int) - Method in class com.jfinal.render.RenderFactory
-
- getErrorView(int) - Method in class com.jfinal.config.Constants
-
- getEven() - Method in class com.jfinal.template.stat.ast.ForIteratorStatus
-
- getEven() - Method in class com.jfinal.template.stat.ast.ForLoopStatus
-
- getExpirationTime() - Method in class com.jfinal.token.Token
-
- getExpireAt() - Method in class com.jfinal.captcha.Captcha
-
- getExpr(int) - Method in class com.jfinal.template.expr.ast.ExprList
-
- getExpr() - Method in class com.jfinal.template.expr.ast.ForCtrl
-
- getExprArray() - Method in class com.jfinal.template.expr.ast.ExprList
-
- getFastStringWriter() - Method in class com.jfinal.template.io.WriterBuffer
-
- getFeatureDescriptors(ELContext, Object) - Method in class com.jfinal.plugin.activerecord.ModelRecordElResolver
-
- getField(Long, Class<?>, String) - Static method in class com.jfinal.template.expr.ast.FieldKit
-
- getFile(String, String, Integer, String) - Method in class com.jfinal.core.Controller
-
- getFile(String, String, int) - Method in class com.jfinal.core.Controller
-
- getFile(String, String) - Method in class com.jfinal.core.Controller
-
- getFile() - Method in class com.jfinal.core.Controller
-
- getFile(String) - Method in class com.jfinal.core.Controller
-
- getFile() - Method in class com.jfinal.upload.UploadFile
-
- getFileExtension(String) - Static method in class com.jfinal.kit.FileKit
-
- getFileExtension(File) - Static method in class com.jfinal.kit.FileKit
-
- getFileFromJar(String) - Static method in class com.jfinal.kit.PathKit
-
- getFileName() - Method in class com.jfinal.template.source.FileSource
-
- getFileName() - Method in class com.jfinal.upload.UploadFile
-
- getFileRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getFileRender(String, String) - Method in interface com.jfinal.render.IRenderFactory
-
- getFileRender(File) - Method in interface com.jfinal.render.IRenderFactory
-
- getFileRender(File, String) - Method in interface com.jfinal.render.IRenderFactory
-
- getFileRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getFileRender(String, String) - Method in class com.jfinal.render.RenderFactory
-
- getFileRender(File) - Method in class com.jfinal.render.RenderFactory
-
- getFileRender(File, String) - Method in class com.jfinal.render.RenderFactory
-
- getFiles(String, Integer, String) - Method in class com.jfinal.core.Controller
-
Get upload file from multipart request.
- getFiles(String, int) - Method in class com.jfinal.core.Controller
-
- getFiles(String) - Method in class com.jfinal.core.Controller
-
- getFiles() - Method in class com.jfinal.core.Controller
-
- getFiles() - Method in class com.jfinal.upload.MultipartRequest
-
- getFinalFileName() - Method in class com.jfinal.template.source.FileSource
-
- getFinalViewPath(String) - Method in class com.jfinal.config.Routes.Route
-
- getFirst() - Method in class com.jfinal.template.stat.ast.ForIteratorStatus
-
- getFirst() - Method in class com.jfinal.template.stat.ast.ForLoopStatus
-
- getFirstExpr() - Method in class com.jfinal.template.expr.ast.ExprList
-
- getFloat(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: float
- getFloat(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: float
- getFloat() - Method in class com.jfinal.template.expr.ast.Const
-
- getForIE() - Method in class com.jfinal.render.JsonRender
-
- getFreeMarkerRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getFreeMarkerRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getFreeMarkerTemplateUpdateDelay() - Method in class com.jfinal.config.Constants
-
- getFunction(String) - Method in class com.jfinal.template.Env
-
Get function of current template first, getting shared function if null before
- getFunctionName() - Method in class com.jfinal.template.stat.ast.Define
-
- getGetterMethod(Long, Class<?>, String) - Static method in class com.jfinal.template.expr.ast.MethodKit
-
获取 getter 方法
使用与 Field 相同的 key,避免生成两次 key值
- getGlobal(Object) - Method in class com.jfinal.template.stat.Scope
-
获取全局变量
全局作用域是指本次请求的整个 template
- getHandler(List<Handler>, Handler) - Static method in class com.jfinal.handler.HandlerFactory
-
Build handler chain
- getHandlerList() - Method in class com.jfinal.config.Handlers
-
- getHeader(String) - Method in class com.jfinal.core.Controller
-
Returns the value of the specified request header as a String.
- getHtmlRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getHtmlRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getId() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getId() - Method in interface com.jfinal.plugin.auth.ISession
-
- getId() - Method in class com.jfinal.template.expr.ast.Assign
-
获取 assign 表达式左侧标识符 id
在自定义指令中得到 id 值,可以得知该赋值表达式是针对哪个变量在操作,有助于扩展
需求来源:http://www.jfinal.com/share/379
- getId() - Method in class com.jfinal.template.expr.ast.ForCtrl
-
- getId() - Method in class com.jfinal.template.expr.ast.Id
-
- getId() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getId() - Method in class com.jfinal.token.Token
-
Returns a string containing the unique identifier assigned to this token.
- getIndex() - Method in class com.jfinal.template.expr.ast.Assign
-
- getIndex() - Method in class com.jfinal.template.stat.ast.ForIteratorStatus
-
- getIndex() - Method in class com.jfinal.template.stat.ast.ForLoopStatus
-
- getInit() - Method in class com.jfinal.template.expr.ast.ForCtrl
-
- getInstance() - Static method in class com.jfinal.template.expr.ast.MethodKeyBuilder
-
- getInt(Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
- getInt(Object) - Method in class com.jfinal.kit.Kv
-
- getInt(Object) - Method in class com.jfinal.kit.Okv
-
- getInt(String) - Method in class com.jfinal.kit.Prop
-
- getInt(String, Integer) - Method in class com.jfinal.kit.Prop
-
- getInt(String) - Static method in class com.jfinal.kit.PropKit
-
- getInt(String, Integer) - Static method in class com.jfinal.kit.PropKit
-
- getInt(Object) - Method in class com.jfinal.kit.Ret
-
- getInt(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumint
- getInt(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumint
- getInt() - Method in class com.jfinal.template.expr.ast.Const
-
- getInterceptors() - Method in class com.jfinal.config.Routes
-
- getInterceptors() - Method in class com.jfinal.core.Action
-
- getJavascriptRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getJavascriptRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getJedis() - Method in class com.jfinal.plugin.redis.Cache
-
- getJedisPoolConfig() - Method in class com.jfinal.plugin.redis.RedisPlugin
-
当RedisPlugin 提供的设置属性仍然无法满足需求时,通过此方法获取到
JedisPoolConfig 对象,可对 redis 进行更加细致的配置
- getJson() - Static method in class com.jfinal.json.FastJson
-
- getJson() - Method in class com.jfinal.json.FastJsonFactory
-
- getJson() - Method in interface com.jfinal.json.IJsonFactory
-
- getJson() - Static method in class com.jfinal.json.Jackson
-
- getJson() - Method in class com.jfinal.json.JacksonFactory
-
- getJson() - Static method in class com.jfinal.json.JFinalJson
-
- getJson() - Method in class com.jfinal.json.JFinalJsonFactory
-
- getJson() - Static method in class com.jfinal.json.Json
-
- getJson() - Method in class com.jfinal.json.MixedJsonFactory
-
- getJsonRender() - Method in interface com.jfinal.render.IRenderFactory
-
- getJsonRender(String, Object) - Method in interface com.jfinal.render.IRenderFactory
-
- getJsonRender(String[]) - Method in interface com.jfinal.render.IRenderFactory
-
- getJsonRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getJsonRender(Object) - Method in interface com.jfinal.render.IRenderFactory
-
- getJsonRender() - Method in class com.jfinal.render.RenderFactory
-
- getJsonRender(String, Object) - Method in class com.jfinal.render.RenderFactory
-
- getJsonRender(String[]) - Method in class com.jfinal.render.RenderFactory
-
- getJsonRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getJsonRender(Object) - Method in class com.jfinal.render.RenderFactory
-
- getJsonText() - Method in class com.jfinal.render.JsonRender
-
- getJspRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getJspRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getKey() - Method in class com.jfinal.captcha.Captcha
-
- getKey() - Method in class com.jfinal.template.expr.ast.MethodInfo
-
- getKey() - Method in class com.jfinal.template.source.ClassPathSource
-
- getKey() - Method in class com.jfinal.template.source.FileSource
-
- getKey() - Method in interface com.jfinal.template.source.ISource
-
key used to cache, return null if do not cache the template
注意:如果不希望缓存从该 ISource 解析出来的 Template 对象
让 getKey() 返回 null 值即可
- getKey() - Method in class com.jfinal.template.source.StringSource
-
- getKey() - Method in class com.jfinal.template.stat.ast.ForEntry
-
- getKeyName(Object) - Method in interface com.jfinal.plugin.redis.IKeyNamingPolicy
-
- getKeyNamingPolicy() - Method in class com.jfinal.plugin.redis.Cache
-
- getKeys(String) - Static method in class com.jfinal.plugin.ehcache.CacheKit
-
- getLast() - Method in class com.jfinal.template.stat.ast.ForIteratorStatus
-
- getLastAccessedTime() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getLastAccessedTime() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getLastExpr() - Method in class com.jfinal.template.expr.ast.ExprList
-
- getLastModified() - Method in class com.jfinal.template.source.ClassPathSource
-
- getLength() - Method in class com.jfinal.template.expr.ast.Array.ArrayListExt
-
- getList() - Method in class com.jfinal.plugin.activerecord.Page
-
Return list of this page.
- getLocal(Object) - Method in class com.jfinal.template.stat.Scope
-
获取局部变量
- getLocaleParaName() - Method in class com.jfinal.i18n.I18nInterceptor
-
Return the localeParaName, which is used as para name to get locale from the request para and the cookie.
- getLocation() - Method in class com.jfinal.template.stat.ast.Stat
-
- getLog(Class<?>) - Method in interface com.jfinal.log.ILogFactory
-
- getLog(String) - Method in interface com.jfinal.log.ILogFactory
-
- getLog(Class<?>) - Static method in class com.jfinal.log.JdkLog
-
- getLog(String) - Static method in class com.jfinal.log.JdkLog
-
- getLog(Class<?>) - Method in class com.jfinal.log.JdkLogFactory
-
- getLog(String) - Method in class com.jfinal.log.JdkLogFactory
-
- getLog(Class<?>) - Static method in class com.jfinal.log.Log
-
- getLog(String) - Static method in class com.jfinal.log.Log
-
- getLog(Class<?>) - Static method in class com.jfinal.log.Log4jLog
-
- getLog(String) - Static method in class com.jfinal.log.Log4jLog
-
- getLog(Class<?>) - Method in class com.jfinal.log.Log4jLogFactory
-
- getLog(String) - Method in class com.jfinal.log.Log4jLogFactory
-
- getLong(Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
- getLong(Object) - Method in class com.jfinal.kit.Kv
-
- getLong(Object) - Method in class com.jfinal.kit.Okv
-
- getLong(String) - Method in class com.jfinal.kit.Prop
-
- getLong(String, Long) - Method in class com.jfinal.kit.Prop
-
- getLong(String) - Static method in class com.jfinal.kit.PropKit
-
- getLong(String, Long) - Static method in class com.jfinal.kit.PropKit
-
- getLong(Object) - Method in class com.jfinal.kit.Ret
-
- getLong(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: bigint, unsign int
- getLong(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: bigint
- getLong() - Method in class com.jfinal.template.expr.ast.Const
-
- getMapOfValue(Object) - Method in class com.jfinal.template.stat.Scope
-
自内向外在作用域栈中查找变量,获取变量所在的 Map,主要用于 IncDec
- getMaxInactiveInterval() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getMaxInactiveInterval() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getMaxPostSize() - Method in class com.jfinal.config.Constants
-
- getMethod() - Method in class com.jfinal.aop.Invocation
-
Return the method of this action.
- getMethod() - Method in class com.jfinal.core.Action
-
- getMethod(Class<?>, String, Object[]) - Static method in class com.jfinal.template.expr.ast.MethodKit
-
- getMethodKey(Class<?>, String, Class<?>[]) - Method in class com.jfinal.template.expr.ast.MethodKeyBuilder.FastMethodKeyBuilder
-
- getMethodKey(Class<?>, String, Class<?>[]) - Method in class com.jfinal.template.expr.ast.MethodKeyBuilder
-
生成指定 class、指定方法名、指定方法形参类型的 key 值,用于缓存
- getMethodKey(Class<?>, String, Class<?>[]) - Method in class com.jfinal.template.expr.ast.MethodKeyBuilder.StrictMethodKeyBuilder
-
- getMethodName() - Method in class com.jfinal.aop.Invocation
-
Return the method name of this action's method.
- getMethodName() - Method in class com.jfinal.core.Action
-
- getModel(Class<T>) - Method in class com.jfinal.core.Controller
-
Get model from http request.
- getModel(Class<T>, boolean) - Method in class com.jfinal.core.Controller
-
- getModel(Class<T>, String) - Method in class com.jfinal.core.Controller
-
Get model from http request.
- getModel(Class<T>, String, boolean) - Method in class com.jfinal.core.Controller
-
- getModelClass() - Method in class com.jfinal.plugin.activerecord.Table
-
- getModelGeneratedKey(Model<?>, PreparedStatement, Table) - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
用于获取 Model.save() 以后自动生成的主键值,可通过覆盖此方法实现更精细的控制
目前只有 PostgreSqlDialect,覆盖过此方法
- getModelGeneratedKey(Model<?>, PreparedStatement, Table) - Method in class 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)
- getModifyFlag(Model) - Static method in class com.jfinal.plugin.activerecord.CPI
-
- getModifyFlagSet() - Method in class com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory
-
- getModifyFlagSet() - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory
-
- getModifyFlagSet() - Method in interface com.jfinal.plugin.activerecord.IContainerFactory
-
- getModifyFlagSet() - Method in class com.jfinal.plugin.activerecord.OrderedFieldContainerFactory
-
- getName() - Method in class com.jfinal.plugin.activerecord.Config
-
- getName() - Method in class com.jfinal.plugin.activerecord.Table
-
- getName() - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- getName() - Method in class com.jfinal.plugin.redis.Cache
-
- getName() - Method in class com.jfinal.template.Engine
-
- getName() - Method in class com.jfinal.template.expr.ast.MethodInfo
-
- getNullRender() - Method in interface com.jfinal.render.IRenderFactory
-
- getNullRender() - Method in class com.jfinal.render.RenderFactory
-
- getNumber(Object) - Method in class com.jfinal.kit.Kv
-
- getNumber(Object) - Method in class com.jfinal.kit.Okv
-
- getNumber(Object) - Method in class com.jfinal.kit.Ret
-
- getNumber(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of any type that extends from Number
- getNumber(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of any type that extends from Number
- getNumber() - Method in class com.jfinal.template.expr.ast.Const
-
- getNumberValue() - Method in class com.jfinal.template.expr.NumTok
-
- getObjectMapper() - Method in class com.jfinal.json.Jackson
-
通过获取 ObjectMapper 进行更个性化设置,满足少数特殊情况
- getOdd() - Method in class com.jfinal.template.stat.ast.ForIteratorStatus
-
- getOdd() - Method in class com.jfinal.template.stat.ast.ForLoopStatus
-
- getOriginalFileName() - Method in class com.jfinal.upload.UploadFile
-
- getOuter() - Method in class com.jfinal.template.stat.ast.ForIteratorStatus
-
- getOuter() - Method in class com.jfinal.template.stat.ast.ForLoopStatus
-
- getOutputDirective(ExprList, Location) - Method in class com.jfinal.template.EngineConfig
-
- getOutputDirective(ExprList, Location) - Method in interface com.jfinal.template.IOutputDirectiveFactory
-
- getOutputDirective(ExprList, Location) - Method in class com.jfinal.template.OutputDirectiveFactory
-
- getPackagePath(Object) - Static method in class com.jfinal.kit.PathKit
-
- getPageNumber() - Method in class com.jfinal.plugin.activerecord.Page
-
Return page number.
- getPageSize() - Method in class com.jfinal.plugin.activerecord.Page
-
Return page size.
- getPara(String) - Method in class 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) - Method in class com.jfinal.core.Controller
-
Returns the value of a request parameter as a String, or default value if the parameter does not exist.
- getPara() - Method in class com.jfinal.core.Controller
-
Get all para with separator char from url
- getPara(int) - Method in class com.jfinal.core.Controller
-
Get para from url.
- getPara(int, String) - Method in class com.jfinal.core.Controller
-
Get para from url with default value if it is null or "".
- getPara() - Method in class com.jfinal.plugin.activerecord.SqlPara
-
- getParaMap() - Method in class com.jfinal.core.Controller
-
Returns the values of the request parameters as a Map.
- getParameter(String) - Method in class com.jfinal.upload.MultipartRequest
-
- getParameterMap() - Method in class com.jfinal.upload.MultipartRequest
-
- getParameterName() - Method in class com.jfinal.upload.UploadFile
-
- getParameterNames() - Method in class com.jfinal.template.stat.ast.Define
-
- getParameterNames() - Method in class com.jfinal.upload.MultipartRequest
-
Methods to replace HttpServletRequest methods
- getParameterTypes() - Method in class com.jfinal.template.expr.ast.MethodInfo
-
- getParameterValues(String) - Method in class com.jfinal.upload.MultipartRequest
-
- getParaNames() - Method in class com.jfinal.core.Controller
-
Returns an Enumeration of String objects containing the names of the parameters
contained in this request.
- getParaToBoolean(String) - Method in class com.jfinal.core.Controller
-
Returns the value of a request parameter and convert to Boolean.
- getParaToBoolean(String, Boolean) - Method in class com.jfinal.core.Controller
-
Returns the value of a request parameter and convert to Boolean with a default value if it is null.
- getParaToBoolean() - Method in class com.jfinal.core.Controller
-
Get all para from url and convert to Boolean
- getParaToBoolean(int) - Method in class com.jfinal.core.Controller
-
Get para from url and conver to Boolean.
- getParaToBoolean(int, Boolean) - Method in class com.jfinal.core.Controller
-
Get para from url and conver to Boolean with default value if it is null.
- getParaToDate(String) - Method in class com.jfinal.core.Controller
-
Returns the value of a request parameter and convert to Date.
- getParaToDate(String, Date) - Method in class com.jfinal.core.Controller
-
Returns the value of a request parameter and convert to Date with a default value if it is null.
- getParaToDate() - Method in class com.jfinal.core.Controller
-
Get all para from url and convert to Date
- getParaToInt(String) - Method in class com.jfinal.core.Controller
-
Returns the value of a request parameter and convert to Integer.
- getParaToInt(String, Integer) - Method in class 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) - Method in class com.jfinal.core.Controller
-
Get para from url and conver to Integer.
- getParaToInt(int, Integer) - Method in class com.jfinal.core.Controller
-
Get para from url and conver to Integer with default value if it is null.
- getParaToInt() - Method in class com.jfinal.core.Controller
-
Get all para from url and convert to Integer
- getParaToLong(String) - Method in class com.jfinal.core.Controller
-
Returns the value of a request parameter and convert to Long.
- getParaToLong(String, Long) - Method in class 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) - Method in class com.jfinal.core.Controller
-
Get para from url and conver to Long.
- getParaToLong(int, Long) - Method in class com.jfinal.core.Controller
-
Get para from url and conver to Long with default value if it is null.
- getParaToLong() - Method in class com.jfinal.core.Controller
-
Get all para from url and convert to Long
- getParaValues(String) - Method in class 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) - Method in class 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) - Method in class com.jfinal.core.Controller
-
- getPath(Class) - Static method in class com.jfinal.kit.PathKit
-
- getPath(Object) - Static method in class com.jfinal.kit.PathKit
-
- getPluginList() - Method in class com.jfinal.config.Plugins
-
- getPrimaryKey() - Method in class com.jfinal.plugin.activerecord.Table
-
update() and delete() need this method.
- getProp() - Static method in class com.jfinal.kit.PropKit
-
- getProp(String) - Static method in class com.jfinal.kit.PropKit
-
- getProperties() - Method in class com.jfinal.kit.Prop
-
- getProperty(String) - Method in class com.jfinal.config.JFinalConfig
-
- getProperty(String, String) - Method in class com.jfinal.config.JFinalConfig
-
- getPropertyToBoolean(String) - Method in class com.jfinal.config.JFinalConfig
-
- getPropertyToBoolean(String, Boolean) - Method in class com.jfinal.config.JFinalConfig
-
- getPropertyToInt(String) - Method in class com.jfinal.config.JFinalConfig
-
- getPropertyToInt(String, Integer) - Method in class com.jfinal.config.JFinalConfig
-
- getPropertyToLong(String) - Method in class com.jfinal.config.JFinalConfig
-
- getPropertyToLong(String, Long) - Method in class com.jfinal.config.JFinalConfig
-
- getQrCodeRender(String, int, int) - Method in interface com.jfinal.render.IRenderFactory
-
- getQrCodeRender(String, int, int, char) - Method in interface com.jfinal.render.IRenderFactory
-
- getQrCodeRender(String, int, int) - Method in class com.jfinal.render.RenderFactory
-
- getQrCodeRender(String, int, int, char) - Method in class com.jfinal.render.RenderFactory
-
- getRandColor(int, int) - Method in class com.jfinal.captcha.CaptchaRender
-
- getRandomString() - Method in class com.jfinal.captcha.CaptchaRender
-
- getRandomUUID() - Static method in class com.jfinal.kit.StrKit
-
- getRecordGeneratedKey(PreparedStatement, Record, String[]) - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
用于获取 Db.save(tableName, record) 以后自动生成的主键值,可通过覆盖此方法实现更精细的控制
目前只有 PostgreSqlDialect,覆盖过此方法
- getRecordGeneratedKey(PreparedStatement, Record, String[]) - Method in class 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) - Method in interface com.jfinal.render.IRenderFactory
-
- getRedirect301Render(String, boolean) - Method in interface com.jfinal.render.IRenderFactory
-
- getRedirect301Render(String) - Method in class com.jfinal.render.RenderFactory
-
- getRedirect301Render(String, boolean) - Method in class com.jfinal.render.RenderFactory
-
- getRedirectRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getRedirectRender(String, boolean) - Method in interface com.jfinal.render.IRenderFactory
-
- getRedirectRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getRedirectRender(String, boolean) - Method in class com.jfinal.render.RenderFactory
-
- getRender() - Method in class com.jfinal.core.Controller
-
- getRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
Create Render for Controller.render(String view)
- getRender(String) - Method in class com.jfinal.render.RenderFactory
-
Return Render by default ViewType which config in JFinalConfig
- getRenderFactory() - Method in class com.jfinal.render.RenderManager
-
- getRequest() - Method in class com.jfinal.core.Controller
-
Return HttpServletRequest.
- getResName() - Method in class com.jfinal.i18n.I18nInterceptor
-
Return the resName, which is used as attribute name to pass the Res object to the view.
- getResourceBundle() - Method in class com.jfinal.i18n.Res
-
- getResponse() - Method in class com.jfinal.core.Controller
-
Return HttpServletResponse.
- getReturnValue() - Method in class com.jfinal.aop.Invocation
-
Get the return value of the target method
- getRight() - Method in class com.jfinal.template.expr.ast.Assign
-
- getRootClassPath() - Static method in class com.jfinal.kit.PathKit
-
- getRootData() - Method in class com.jfinal.template.stat.Scope
-
获取顶层作用域 data,可能为 null 值
- getRouteItemList() - Method in class com.jfinal.config.Routes
-
- getRoutesList() - Static method in class com.jfinal.config.Routes
-
- getRoutesList() - Method in class com.jfinal.core.ActionMapping
-
- getRow() - Method in class com.jfinal.template.stat.Location
-
- getSerializer() - Method in class com.jfinal.plugin.redis.Cache
-
- getServer(String, int, String, int) - Static method in class com.jfinal.server.ServerFactory
-
Return web server.
- getServer(String, int, String) - Static method in class com.jfinal.server.ServerFactory
-
- getServer(int, String, int) - Static method in class com.jfinal.server.ServerFactory
-
- getServer(int, String) - Static method in class com.jfinal.server.ServerFactory
-
- getServer(int) - Static method in class com.jfinal.server.ServerFactory
-
- getServer() - Static method in class com.jfinal.server.ServerFactory
-
- getServletContext() - Method in class com.jfinal.core.JFinal
-
- getServletContext() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getServletContext() - Method in class com.jfinal.render.RenderManager
-
- getServletContext() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getSession() - Method in class com.jfinal.core.Controller
-
Return HttpSession.
- getSession(boolean) - Method in class com.jfinal.core.Controller
-
Return HttpSession.
- getSession(String, boolean) - Method in class com.jfinal.plugin.auth.SessionKit
-
- getSession(String) - Method in class com.jfinal.plugin.auth.SessionKit
-
- getSessionAttr(String) - Method in class com.jfinal.core.Controller
-
Return a Object from session.
- getSessionAttr(String, T) - Method in class com.jfinal.core.Controller
-
- getSessionContext() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getSessionContext() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getSet(Object, Object) - Method in class com.jfinal.plugin.redis.Cache
-
将给定 key 的值设为 value ,并返回 key 的旧值(old value)。
当 key 存在但不是字符串类型时,返回一个错误。
- getSharedMethodInfo(String, Object[]) - Method in class com.jfinal.template.expr.ast.SharedMethodKit
-
- getSharedMethodKit() - Method in class com.jfinal.template.EngineConfig
-
- getShort(String) - Method in class com.jfinal.plugin.activerecord.Model
-
- getShort(String) - Method in class com.jfinal.plugin.activerecord.Record
-
- getSize() - Method in class com.jfinal.template.stat.ast.ForIteratorStatus
-
- getSource(String, String, String) - Method in class com.jfinal.template.source.ClassPathSourceFactory
-
- getSource(String, String, String) - Method in class com.jfinal.template.source.FileSourceFactory
-
- getSource(String, String, String) - Method in interface com.jfinal.template.source.ISourceFactory
-
- getSourceFactory() - Method in class com.jfinal.template.Engine
-
- getSourceFactory() - Method in class com.jfinal.template.EngineConfig
-
- getSql(String) - Static method in class com.jfinal.plugin.activerecord.Db
-
- getSql(String) - Method in class com.jfinal.plugin.activerecord.DbPro
-
- getSql(String) - Method in class com.jfinal.plugin.activerecord.Model
-
- getSql(String) - Method in class com.jfinal.plugin.activerecord.sql.SqlKit
-
- getSql() - Method in class com.jfinal.plugin.activerecord.SqlPara
-
- getSqlKit() - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- getSqlKit() - Method in class com.jfinal.plugin.activerecord.Config
-
- getSqlMapEntrySet() - Method in class com.jfinal.plugin.activerecord.sql.SqlKit
-
- getSqlPara(String, Record) - Static method in class com.jfinal.plugin.activerecord.Db
-
- getSqlPara(String, Model) - Static method in class com.jfinal.plugin.activerecord.Db
-
- getSqlPara(String, Map) - Static method in class com.jfinal.plugin.activerecord.Db
-
- getSqlPara(String, Object...) - Static method in class com.jfinal.plugin.activerecord.Db
-
- getSqlPara(String, Record) - Method in class com.jfinal.plugin.activerecord.DbPro
-
- getSqlPara(String, Model) - Method in class com.jfinal.plugin.activerecord.DbPro
-
- getSqlPara(String, Map) - Method in class com.jfinal.plugin.activerecord.DbPro
-
- getSqlPara(String, Object...) - Method in class com.jfinal.plugin.activerecord.DbPro
-
- getSqlPara(String, Model) - Method in class com.jfinal.plugin.activerecord.Model
-
可以在模板中利用 Model 自身的属性参与动态生成 sql,例如:
select * from user where nickName = #(nickName)
new Account().setNickName("James").getSqlPara(...)
注意:由于 dao 对象上的 attrs 不允许读写,不要调用其 getSqlPara(String) 方法
public SqlPara getSqlPara(String key) {
return getSqlPara(key, this.attrs);
}
- getSqlPara(String, Map) - Method in class com.jfinal.plugin.activerecord.Model
-
- getSqlPara(String, Object...) - Method in class com.jfinal.plugin.activerecord.Model
-
- getSqlPara(String, Map) - Method in class 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...) - Method in class 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);
- getStat(int) - Method in class com.jfinal.template.stat.ast.StatList
-
- getStr(Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
- getStr(Object) - Method in class com.jfinal.kit.Kv
-
- getStr(Object) - Method in class com.jfinal.kit.Okv
-
- getStr(Object) - Method in class com.jfinal.kit.Ret
-
- getStr(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: varchar, char, enum, set, text, tinytext, mediumtext, longtext
- getStr(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: varchar, char, enum, set, text, tinytext, mediumtext, longtext
- getStr() - Method in class com.jfinal.template.expr.ast.Const
-
- getSubFileName(String, String) - Static method in class com.jfinal.template.stat.ast.Include
-
获取在父模板之下子模板的最终文件名,子模板目录相对于父模板文件目录来确定
以 "/" 打头则以 baseTemplatePath 为根,否则以父文件所在路径为根
- getTable(Class<? extends Model>) - Method in class com.jfinal.plugin.activerecord.TableMapping
-
- getTablesResultSet() - Method in class com.jfinal.plugin.activerecord.generator.MetaBuilder
-
不同数据库 dbMeta.getTables(...) 的 schemaPattern 参数意义不同
1:oracle 数据库这个参数代表 dbMeta.getUserName()
2:postgresql 数据库中需要在 jdbcUrl中配置 schemaPatter,例如:
jdbc:postgresql://localhost:15432/djpt?currentSchema=public,sys,app
最后的参数就是搜索schema的顺序,DruidPlugin 下测试成功
3:开发者若在其它库中发现工作不正常,可通过继承 MetaBuilder并覆盖此方法来实现功能
- getTarget(String) - Static method in class com.jfinal.aop.Duang
-
- getTarget(String) - Static method in class com.jfinal.aop.Enhancer
-
- getTarget() - Method in class com.jfinal.aop.Invocation
-
Get the target object which be intercepted
- getTemplate(String) - Method in class com.jfinal.template.Engine
-
Get template with file name
- getTemplate(ISource) - Method in class com.jfinal.template.Engine
-
Get template with implementation of ISource
- getTemplateByString(String) - Method in class com.jfinal.template.Engine
-
Get template by string content and do not cache the template
- getTemplateByString(String, boolean) - Method in class com.jfinal.template.Engine
-
Get template by string content
重要:StringSource 中的 key = HashKit.md5(content),也即 key
与 content 有紧密的对应关系,当 content 发生变化时 key 值也相应变化
因此,原先 key 所对应的 Template 缓存对象已无法被获取,当 getTemplateByString(String)
的 String 参数的数量不确定时会引发内存泄漏
当 getTemplateByString(String, boolean) 中的 String 参数的
数量可控并且确定时,才可对其使用缓存
- getTemplateCacheSize() - Method in class com.jfinal.template.Engine
-
- getTemplateFile() - Method in class com.jfinal.template.stat.Location
-
- getTemplateRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getTemplateRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getterTypeMap - Variable in class com.jfinal.plugin.activerecord.generator.BaseModelGenerator
-
针对 Model 中七种可以自动转换类型的 getter 方法,调用其具有确定类型返回值的 getter 方法
享用自动类型转换的便利性,例如 getInt(String)、getStr(String)
其它方法使用泛型返回值方法: get(String)
注意:jfinal 3.2 及以上版本 Model 中的六种 getter 方法才具有类型转换功能
- getText() - Method in class com.jfinal.render.TextRender
-
- getTextRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getTextRender(String, String) - Method in interface com.jfinal.render.IRenderFactory
-
- getTextRender(String, ContentType) - Method in interface com.jfinal.render.IRenderFactory
-
- getTextRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getTextRender(String, String) - Method in class com.jfinal.render.RenderFactory
-
- getTextRender(String, ContentType) - Method in class com.jfinal.render.RenderFactory
-
- getThreadLocalConnection() - Method in class com.jfinal.plugin.activerecord.Config
-
Helps to implement nested transaction.
- getThreadLocalJedis() - Method in class com.jfinal.plugin.redis.Cache
-
- getTime(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: time
- getTime(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: time
- getTimestamp(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Get attribute of mysql type: timestamp, datetime
- getTimestamp(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Get column of mysql type: timestamp, datetime
- getTokenCache() - Method in class com.jfinal.config.Constants
-
- getTotalPage() - Method in class com.jfinal.plugin.activerecord.Page
-
Return total page.
- getTotalRow() - Method in class com.jfinal.plugin.activerecord.Page
-
Return total row.
- getTransactionLevel() - Method in class com.jfinal.plugin.activerecord.Config
-
- getTransactionLevel(Config) - Method in class com.jfinal.plugin.activerecord.tx.Tx
-
- getTransactionLevel(Config) - Method in class com.jfinal.plugin.activerecord.tx.TxReadCommitted
-
- getTransactionLevel(Config) - Method in class com.jfinal.plugin.activerecord.tx.TxReadUncommitted
-
- getTransactionLevel(Config) - Method in class com.jfinal.plugin.activerecord.tx.TxRepeatableRead
-
- getTransactionLevel(Config) - Method in class com.jfinal.plugin.activerecord.tx.TxSerializable
-
- getType(String) - Method in class com.jfinal.plugin.activerecord.generator.TypeMapping
-
- getType(String) - Method in class com.jfinal.plugin.activerecord.JavaType
-
- getType(ELContext, Object, Object) - Method in class com.jfinal.plugin.activerecord.ModelRecordElResolver
-
- getUpdate() - Method in class com.jfinal.template.expr.ast.ForCtrl
-
- getUploadPath() - Method in class com.jfinal.upload.UploadFile
-
- getUrlParaSeparator() - Method in class com.jfinal.config.Constants
-
- getUsefulClass(Class<? extends Model>) - Static method in class com.jfinal.plugin.activerecord.DbKit
-
- getValue() - Method in class com.jfinal.captcha.Captcha
-
- getValue(String) - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getValue(ELContext, Object, Object) - Method in class com.jfinal.plugin.activerecord.ModelRecordElResolver
-
- getValue() - Method in class com.jfinal.template.expr.ast.Const
-
- getValue(String) - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getValue() - Method in class com.jfinal.template.stat.ast.ForEntry
-
- getValueNames() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- getValueNames() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- getVelocityRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getVelocityRender(String) - Method in class com.jfinal.render.RenderFactory
-
- getView() - Method in class com.jfinal.render.Render
-
- getViewExtension() - Method in class com.jfinal.config.Constants
-
- getViewPath() - Method in class com.jfinal.aop.Invocation
-
Return view path of this controller.
- getViewPath() - Method in class com.jfinal.core.Action
-
- getViewPath() - Method in class com.jfinal.core.Controller
-
- getViewPath() - Method in class com.jfinal.validate.Validator
-
Return view path of this controller.
- getViewType() - Method in class com.jfinal.config.Constants
-
- getWebRootPath() - Static method in class com.jfinal.kit.PathKit
-
- getXmlRender(String) - Method in interface com.jfinal.render.IRenderFactory
-
- getXmlRender(String) - Method in class com.jfinal.render.RenderFactory
-
- I18n - Class in com.jfinal.i18n
-
I18N support.
- I18nInterceptor - Class in 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() - Constructor for class com.jfinal.i18n.I18nInterceptor
-
- I18nInterceptor(String, String) - Constructor for class com.jfinal.i18n.I18nInterceptor
-
- I18nInterceptor(String, String, boolean) - Constructor for class com.jfinal.i18n.I18nInterceptor
-
- I18nInterceptor(boolean) - Constructor for class com.jfinal.i18n.I18nInterceptor
-
- IAtom - Interface in com.jfinal.plugin.activerecord
-
IAtom support transaction of database.
- IBean - Interface in com.jfinal.plugin.activerecord
-
IBean 标记型接口.
- ICache - Interface in com.jfinal.plugin.activerecord.cache
-
ICache.
- ICallback - Interface in com.jfinal.plugin.activerecord
-
ICallback provide a JDBC Connection if you need it or the active record plugin can not satisfy you requirement.
- ICallback - Interface in com.jfinal.plugin.redis
-
ICallback.
- ICaptchaCache - Interface in com.jfinal.captcha
-
ICaptchaCache
- IContainerFactory - Interface in com.jfinal.plugin.activerecord
-
- IConverter<T> - Interface in com.jfinal.core.converter
-
将一个字符串转换成特定类型
- Id - Class in com.jfinal.template.expr.ast
-
Id
- Id(String) - Constructor for class com.jfinal.template.expr.ast.Id
-
- IDataLoader - Interface in com.jfinal.plugin.ehcache
-
IDataLoader.
- IDataSourceProvider - Interface in com.jfinal.plugin.activerecord
-
IDataSourceProvider
- IDbProFactory - Interface in 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 - Interface in com.jfinal.plugin.druid
-
授权
- If - Class in com.jfinal.template.stat.ast
-
If
- If(ExprList, StatList, Location) - Constructor for class com.jfinal.template.stat.ast.If
-
- IJsonFactory - Interface in com.jfinal.json
-
IJsonFactory.
- IKeyNamingPolicy - Interface in com.jfinal.plugin.redis
-
IKeyNamingPolicy.
- ILogFactory - Interface in com.jfinal.log
-
ILogFactory.
- ImageKit - Class in com.jfinal.kit
-
- IncDec - Class in com.jfinal.template.expr.ast
-
自增与自减
- IncDec(Sym, boolean, Expr, Location) - Constructor for class com.jfinal.template.expr.ast.IncDec
-
- Include - Class in com.jfinal.template.stat.ast
-
Include
1:父模板被缓存时,被 include 的模板会被间接缓存,无需关心缓存问题
2:同一个模板文件被多个父模板 include,所处的背景环境不同,例如各父模板中定义的模板函数不同
各父模板所处的相对路径不同,所以多个父模板不能共用一次 parse 出来的结果,而是在每个被include
的地方重新 parse
- Include(Env, ExprList, String, Location) - Constructor for class com.jfinal.template.stat.ast.Include
-
- incr(Object) - Method in class com.jfinal.plugin.redis.Cache
-
将 key 中储存的数字值增一。
如果 key 不存在,那么 key 的值会先被初始化为 0 ,然后再执行 INCR 操作。
如果值包含错误的类型,或字符串类型的值不能表示为数字,那么返回一个错误。
本操作的值限制在 64 位(bit)有符号数字表示之内。
- incrBy(Object, long) - Method in class com.jfinal.plugin.redis.Cache
-
将 key 所储存的值加上增量 increment 。
如果 key 不存在,那么 key 的值会先被初始化为 0 ,然后再执行 INCRBY 命令。
如果值包含错误的类型,或字符串类型的值不能表示为数字,那么返回一个错误。
本操作的值限制在 64 位(bit)有符号数字表示之内。
关于递增(increment) / 递减(decrement)操作的更多信息,参见 INCR 命令。
- Index - Class in com.jfinal.template.expr.ast
-
index : expr '[' expr ']'
支持 a[i]、 a[b[i]]、a[i][j]、a[i][j]...[n]
- Index(Expr, Expr, Location) - Constructor for class com.jfinal.template.expr.ast.Index
-
- info(String) - Static method in class com.jfinal.kit.LogKit
-
- info(String, Throwable) - Static method in class com.jfinal.kit.LogKit
-
- info(String) - Method in class com.jfinal.log.JdkLog
-
- info(String, Throwable) - Method in class com.jfinal.log.JdkLog
-
- info(String) - Method in class com.jfinal.log.Log
-
- info(String, Throwable) - Method in class com.jfinal.log.Log
-
- info(String) - Method in class com.jfinal.log.Log4jLog
-
- info(String, Throwable) - Method in class com.jfinal.log.Log4jLog
-
- init(ActionMapping, Constants) - Method in class com.jfinal.core.ActionHandler
-
- init(Controller, Action, HttpServletRequest, HttpServletResponse, String) - Static method in class com.jfinal.core.CPI
-
- init(FilterConfig) - Method in class com.jfinal.core.JFinalFilter
-
- init() - Method in class com.jfinal.log.LogManager
-
- init(ServletContext) - Static method in class com.jfinal.plugin.activerecord.ModelRecordElResolver
-
- init() - Static method in class com.jfinal.plugin.activerecord.ModelRecordElResolver
-
- init(Engine, Constants, ServletContext) - Method in interface com.jfinal.render.IRenderFactory
-
- init(Engine, Constants, ServletContext) - Method in class com.jfinal.render.RenderFactory
-
- init(Engine, Constants, ServletContext) - Method in class com.jfinal.render.RenderManager
-
- init(OutputStream) - Method in class com.jfinal.template.io.ByteWriter
-
- init(Writer) - Method in class com.jfinal.template.io.CharWriter
-
- init(Map.Entry<Object, Object>) - Method in class com.jfinal.template.stat.ast.ForEntry
-
- init(ITokenCache) - Static method in class com.jfinal.token.TokenManager
-
- init(String, int, String) - Static method in class com.jfinal.upload.OreillyCos
-
- initEngine() - Method in class com.jfinal.plugin.activerecord.generator.BaseModelGenerator
-
- initEngine() - Method in class com.jfinal.plugin.activerecord.generator.MappingKitGenerator
-
- initEngine() - Method in class com.jfinal.plugin.activerecord.generator.ModelGenerator
-
- initServletContext(ServletContext) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
spring 回调,利用 ServletContext 做必要的初始化工作
- injectBean(Class<T>, HttpServletRequest, boolean) - Static method in class com.jfinal.core.Injector
-
- injectBean(Class<T>, String, HttpServletRequest, boolean) - Static method in class com.jfinal.core.Injector
-
- injectModel(Class<T>, HttpServletRequest, boolean) - Static method in class com.jfinal.core.Injector
-
- injectModel(Class<T>, String, HttpServletRequest, boolean) - Static method in class com.jfinal.core.Injector
-
- Injector - Class in com.jfinal.core
-
Injector.
- Injector() - Constructor for class com.jfinal.core.Injector
-
- InnerEvalDirective() - Constructor for class com.jfinal.kit.ElKit.InnerEvalDirective
-
- InnerSession(HttpSession) - Constructor for class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- INT - Static variable in class com.jfinal.template.expr.ast.Arith
-
- IntegerConverter() - Constructor for class com.jfinal.core.converter.Converters.IntegerConverter
-
- IntegerExt - Class in com.jfinal.template.ext.extensionmethod
-
针对 java.lang.Integer 的扩展方法
重要用途:
Controller.keepPara() 方法会将所有类型的数据当成 String 并传回到
到模板中,所以模板中的如下代码将无法工作:
#if(age > 18)
....
- IntegerExt() - Constructor for class com.jfinal.template.ext.extensionmethod.IntegerExt
-
- IntegerWriter - Class in com.jfinal.template.io
-
- IntegerWriter() - Constructor for class com.jfinal.template.io.IntegerWriter
-
- intercept(Invocation) - Method in interface com.jfinal.aop.Interceptor
-
- intercept(Invocation) - Method in class com.jfinal.aop.InterceptorStack
-
- intercept(Invocation) - Method in class com.jfinal.aop.PrototypeInterceptor
-
- intercept(Invocation) - Method in class com.jfinal.ext.interceptor.GET
-
- intercept(Invocation) - Method in class com.jfinal.ext.interceptor.LogInterceptor
-
- intercept(Invocation) - Method in class com.jfinal.ext.interceptor.NotAction
-
- intercept(Invocation) - Method in class com.jfinal.ext.interceptor.NoUrlPara
-
- intercept(Invocation) - Method in class com.jfinal.ext.interceptor.POST
-
- intercept(Invocation) - Method in class com.jfinal.ext.interceptor.Restful
-
add edit 无需处理
GET /user ---> index
GET /user/id ---> show
POST /user ---> save
PUT /user/id ---> update
DELECT /user/id ---> delete
- intercept(Invocation) - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor
-
- intercept(Invocation) - Method in class com.jfinal.i18n.I18nInterceptor
-
1: use the locale from request para if exists.
- intercept(Invocation) - Method in class com.jfinal.plugin.activerecord.OneConnectionPerThread
-
- intercept(Invocation) - Method in class com.jfinal.plugin.activerecord.tx.Tx
-
- intercept(Invocation) - Method in class com.jfinal.plugin.activerecord.tx.TxByActionKeyRegex
-
- intercept(Invocation) - Method in class com.jfinal.plugin.activerecord.tx.TxByActionKeys
-
- intercept(Invocation) - Method in class com.jfinal.plugin.activerecord.tx.TxByMethodRegex
-
- intercept(Invocation) - Method in class com.jfinal.plugin.activerecord.tx.TxByMethods
-
- intercept(Invocation) - Method in class com.jfinal.plugin.ehcache.CacheInterceptor
-
- intercept(Invocation) - Method in class com.jfinal.plugin.ehcache.EvictInterceptor
-
- intercept(Invocation) - Method in class com.jfinal.plugin.redis.RedisInterceptor
-
- intercept(Invocation) - Method in class com.jfinal.validate.Validator
-
- Interceptor - Interface in com.jfinal.aop
-
Interceptor.
- InterceptorManager - Class in com.jfinal.aop
-
InterceptorManager.
- Interceptors - Class in com.jfinal.config
-
The Interceptors is used to config global action interceptors and global service interceptors.
- Interceptors() - Constructor for class com.jfinal.config.Interceptors
-
- InterceptorStack - Class in com.jfinal.aop
-
InterceptorStack.
- InterceptorStack() - Constructor for class com.jfinal.aop.InterceptorStack
-
- invalid - Variable in class com.jfinal.validate.Validator
-
- invalidate() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- invalidate(String) - Method in interface com.jfinal.plugin.auth.ISession
-
- invalidate() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- Invocation - Class in com.jfinal.aop
-
Invocation is used to invoke the interceptors and the target method
- Invocation() - Constructor for class com.jfinal.aop.Invocation
-
- Invocation(Action, Controller) - Constructor for class com.jfinal.aop.Invocation
-
- Invocation(Object, Method, Object[], MethodProxy, Interceptor[]) - Constructor for class com.jfinal.aop.Invocation
-
- invocation - Variable in class com.jfinal.validate.Validator
-
- invoke() - Method in class com.jfinal.aop.Invocation
-
- invoke(Object, Method, Object[]) - Method in class com.jfinal.plugin.activerecord.SqlReporter
-
- invoke(Object, Object...) - Method in class com.jfinal.template.expr.ast.MethodInfo
-
- invoke(Object, Object...) - Method in class com.jfinal.template.expr.ast.MethodInfoExt
-
- invokeVarArgsMethod(Object, Object[]) - Method in class com.jfinal.template.expr.ast.MethodInfo
-
- IOutputDirectiveFactory - Interface in com.jfinal.template
-
IOutputDirectiveFactory
用于定制自定义输出指令,替换系统默认输出指令,满足个性化需求
用法:
1:定义 MyOutput
public class MyOutput extends Output {
public MyOutput(ExprList exprList) {
super(exprList);
}
public void exec(Env env, Scope scope, Writer writer) {
write(writer, exprList.eval(scope));
}
}
2:定义 MyOutputDirectiveFactory
public class MyOutputDirectiveFactory implements IOutputDirectiveFactory {
public Output getOutputDirective(ExprList exprList) {
return new MyOutput(exprList);
}
}
3:配置
engine.setOutputDirectiveFactory(new MyOutputDirectiveFactory())
- IPlugin - Interface in com.jfinal.plugin
-
IPlugin
- IRenderFactory - Interface in com.jfinal.render
-
IRenderFactory.
- isAbsolutePath(String) - Static method in class com.jfinal.kit.PathKit
-
- isActionInvocation() - Method in class com.jfinal.aop.Invocation
-
return true if it is action invocation.
- isBlank(String) - Static method in class com.jfinal.kit.StrKit
-
字符串为 null 或者内部字符全部为 ' ' '\t' '\n' '\r' 这四类字符时返回 true
- isBlank(char) - Static method in class com.jfinal.template.stat.CharTable
-
- isBlankOrLineFeed(char) - Static method in class com.jfinal.template.stat.CharTable
-
- isBoolean() - Method in class com.jfinal.template.expr.ast.Const
-
- isBreak() - Method in class com.jfinal.template.stat.Ctrl
-
- isContinue() - Method in class com.jfinal.template.stat.Ctrl
-
- isDebugEnabled() - Static method in class com.jfinal.kit.LogKit
-
- isDebugEnabled() - Method in class com.jfinal.log.JdkLog
-
- isDebugEnabled() - Method in class com.jfinal.log.Log
-
- isDebugEnabled() - Method in class com.jfinal.log.Log4jLog
-
- isDevMode() - Method in class com.jfinal.plugin.activerecord.Config
-
- isDevMode() - Method in class com.jfinal.template.EngineConfig
-
- isDevMode() - Method in class com.jfinal.template.Env
-
- isDigit(char) - Static method in class com.jfinal.template.stat.CharTable
-
- isDouble() - Method in class com.jfinal.template.expr.ast.Const
-
- isEmpty() - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
-
- isEmpty() - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
-
- isEmpty(Object) - Method in class 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 返回 ! hasNext()
6:Iterable 返回 ! iterator().hasNext()
注意:原先 Logic.isTrue(Object) 中对集合与数组类型为空的判断转移到此方法中
- isEmpty() - Method in class com.jfinal.template.stat.ast.Text
-
- ISerializer - Interface in com.jfinal.plugin.redis.serializer
-
ISerializer.
- isErrorEnabled() - Static method in class com.jfinal.kit.LogKit
-
- isErrorEnabled() - Method in class com.jfinal.log.JdkLog
-
- isErrorEnabled() - Method in class com.jfinal.log.Log
-
- isErrorEnabled() - Method in class com.jfinal.log.Log4jLog
-
- IServer - Interface in com.jfinal.server
-
- ISession - Interface in com.jfinal.plugin.auth
-
- isExpired() - Method in class com.jfinal.captcha.Captcha
-
- isExprChar(char) - Static method in class com.jfinal.template.stat.CharTable
-
- isFail() - Method in class com.jfinal.kit.JMap
-
Deprecated.
- isFail() - Method in class com.jfinal.kit.Kv
-
Deprecated.
- isFail() - Method in class com.jfinal.kit.Ret
-
- isFalse(Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
key 存在,并且 value 为 false,则返回 true
- isFalse(Object) - Method in class com.jfinal.kit.Kv
-
key 存在,并且 value 为 false,则返回 true
- isFalse(Object) - Method in class com.jfinal.kit.Okv
-
key 存在,并且 value 为 false,则返回 true
- isFalse(Object) - Method in class com.jfinal.kit.Ret
-
key 存在,并且 value 为 false,则返回 true
- isFalse() - Method in class com.jfinal.template.expr.ast.Const
-
- isFalse(Object) - Static method in class com.jfinal.template.expr.ast.Logic
-
- isFatalEnabled() - Static method in class com.jfinal.kit.LogKit
-
- isFatalEnabled() - Method in class com.jfinal.log.JdkLog
-
- isFatalEnabled() - Method in class com.jfinal.log.Log
-
- isFatalEnabled() - Method in class com.jfinal.log.Log4jLog
-
- isFirstPage() - Method in class com.jfinal.plugin.activerecord.Page
-
- isFloat() - Method in class com.jfinal.template.expr.ast.Const
-
- isForbiddenClass(Class<?>) - Static method in class com.jfinal.template.expr.ast.MethodKit
-
- isForbiddenMethod(String) - Static method in class com.jfinal.template.expr.ast.MethodKit
-
- isGlobalAssignment() - Method in class com.jfinal.template.stat.Ctrl
-
- isHexadecimalDigit(char) - Static method in class com.jfinal.template.stat.CharTable
-
- isInfoEnabled() - Static method in class com.jfinal.kit.LogKit
-
- isInfoEnabled() - Method in class com.jfinal.log.JdkLog
-
- isInfoEnabled() - Method in class com.jfinal.log.Log
-
- isInfoEnabled() - Method in class com.jfinal.log.Log4jLog
-
- isInJar - Variable in class com.jfinal.template.source.ClassPathSource
-
- isInt() - Method in class com.jfinal.template.expr.ast.Const
-
- isInTransaction() - Method in class com.jfinal.plugin.activerecord.Config
-
Return true if current thread in transaction.
- isIterator() - Method in class com.jfinal.template.expr.ast.ForCtrl
-
- isJump() - Method in class com.jfinal.template.stat.Ctrl
-
- isKeepByteAndShort() - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
指示 MetaBuilder 生成的 ColumnMeta.javaType 是否保持住 Byte、Short 类型
进而 BaseModelBuilder 生成针对 Byte、Short 类型的获取方法:
getByte(String)、getShort(String)
- isLastPage() - Method in class com.jfinal.plugin.activerecord.Page
-
- isLetter(char) - Static method in class com.jfinal.template.stat.CharTable
-
- isLetterOrDigit(char) - Static method in class com.jfinal.template.stat.CharTable
-
- isLocalAssignment() - Method in class com.jfinal.template.stat.Ctrl
-
- isLong() - Method in class com.jfinal.template.expr.ast.Const
-
- isModified() - Method in class com.jfinal.template.source.ClassPathSource
-
模板文件在 jar 包文件之内则不支持热加载
- isModified() - Method in class com.jfinal.template.source.FileSource
-
- isModified() - Method in interface com.jfinal.template.source.ISource
-
reload template if modified on devMode
- isModified() - Method in class com.jfinal.template.source.StringSource
-
- isModified() - Method in class com.jfinal.template.Template
-
- isNew() - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- isNew() - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- isNull(Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
key 不存在,或者 key 存在但 value 为null
- isNull(Object) - Method in class com.jfinal.kit.Kv
-
key 不存在,或者 key 存在但 value 为null
- isNull(Object) - Method in class com.jfinal.kit.Okv
-
key 不存在,或者 key 存在但 value 为null
- isNull(Object) - Method in class com.jfinal.kit.Ret
-
key 不存在,或者 key 存在但 value 为null
- isNull() - Method in class com.jfinal.template.expr.ast.Const
-
- isNullable - Variable in class com.jfinal.plugin.activerecord.generator.ColumnMeta
-
- isNullSafe() - Method in class com.jfinal.template.stat.Ctrl
-
- isNumber() - Method in class com.jfinal.template.expr.ast.Const
-
- isOctalDigit(char) - Static method in class com.jfinal.template.stat.CharTable
-
- isOk() - Method in class com.jfinal.kit.JMap
-
Deprecated.
- isOk() - Method in class com.jfinal.kit.Kv
-
Deprecated.
- isOk() - Method in class com.jfinal.kit.Ret
-
- isOracle() - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
- isOracle() - Method in class com.jfinal.plugin.activerecord.dialect.OracleDialect
-
- ISource - Interface in com.jfinal.template.source
-
ISource 用于表示模板内容的来源
- ISourceFactory - Interface in com.jfinal.template.source
-
ISourceFactory 用于为 engine 切换不同的 ISource 实现类
FileSourceFactory 用于从指定的目录中加载模板文件
ClassPathSourceFactory 用于从 class path 以及 jar 文件中加载模板文件
配置示例:
engine.setSourceFactory(new ClassPathSourceFactory());
- isParaBlank(String) - Method in class com.jfinal.core.Controller
-
Return true if the para value is blank otherwise return false
- isParaBlank(int) - Method in class com.jfinal.core.Controller
-
Return true if the urlPara value is blank otherwise return false
- isParaExists(String) - Method in class com.jfinal.core.Controller
-
Return true if the para exists otherwise return false
- isParaExists(int) - Method in class com.jfinal.core.Controller
-
Return true if the urlPara exists otherwise return false
- isPermitted(HttpServletRequest) - Method in interface com.jfinal.plugin.druid.IDruidStatViewAuth
-
- isPrimaryKey(String, String[]) - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
- isPrimaryKey - Variable in class com.jfinal.plugin.activerecord.generator.ColumnMeta
-
- isReadOnly(ELContext, Object, Object) - Method in class com.jfinal.plugin.activerecord.ModelRecordElResolver
-
- isReportAfterInvocation(HttpServletRequest) - Static method in class com.jfinal.core.ActionReporter
-
- isReturn() - Method in class com.jfinal.template.stat.Ctrl
-
- isShowSql() - Method in class com.jfinal.plugin.activerecord.Config
-
- isSkipTable(String) - Method in class com.jfinal.plugin.activerecord.generator.MetaBuilder
-
通过继承并覆盖此方法,跳过一些不希望处理的 table,定制更加灵活的 table 过滤规则
- isSourceListModified() - Method in class com.jfinal.template.Env
-
本方法用于在 devMode 之下,判断当前 Template 以及其下 #include 指令
所涉及的所有 ISource 对象是否被修改,以便于在 devMode 下重新加载
sourceList 属性用于存放主模板以及 #include 进来的模板所对应的
ISource 对象
- isSourceModifiedForDevMode() - Method in class com.jfinal.template.stat.ast.Define
-
- isStatic() - Method in class com.jfinal.template.expr.ast.MethodInfo
-
- isStr() - Method in class com.jfinal.template.expr.ast.Const
-
- isTakeOverDbPaginate() - Method in class com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
-
- isTakeOverDbPaginate() - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
- isTakeOverModelPaginate() - Method in class com.jfinal.plugin.activerecord.dialect.AnsiSqlDialect
-
- isTakeOverModelPaginate() - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
- isTrue(Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
key 存在,并且 value 为 true,则返回 true
- isTrue(Object) - Method in class com.jfinal.kit.Kv
-
key 存在,并且 value 为 true,则返回 true
- isTrue(Object) - Method in class com.jfinal.kit.Okv
-
key 存在,并且 value 为 true,则返回 true
- isTrue(Object) - Method in class com.jfinal.kit.Ret
-
key 存在,并且 value 为 true,则返回 true
- isTrue() - Method in class com.jfinal.template.expr.ast.Const
-
- isTrue(Object) - Static method in class com.jfinal.template.expr.ast.Logic
-
规则:
1:null 返回 false
2:boolean 类型,原值返回
3:String、StringBuilder 等一切继承自 CharSequence 类的对象,返回 length > 0
4:其它返回 true
通过 Logic.setToOldWorkMode() 设置,可支持老版本中的以下四个规则:
1:Number 类型,返回 value != 0
2:Map、Collection(List被包括在内) 返回 size() > 0
3:数组,返回 length > 0
4:Iterator 返回 hasNext() 值
- isVarArgs - Variable in class com.jfinal.template.expr.ast.MethodInfo
-
- isVarArgs() - Method in class com.jfinal.template.expr.ast.MethodInfo
-
- isWarnEnabled() - Static method in class com.jfinal.kit.LogKit
-
- isWarnEnabled() - Method in class com.jfinal.log.JdkLog
-
- isWarnEnabled() - Method in class com.jfinal.log.Log
-
- isWarnEnabled() - Method in class com.jfinal.log.Log4jLog
-
- isWisdomAssignment() - Method in class com.jfinal.template.stat.Ctrl
-
- ITask - Interface in com.jfinal.plugin.cron4j
-
实现 ITask 接口的 Task,多了一个 stop 方法,插件在停止时会进行回调
- iterator() - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
-
- iteratorToJson(Iterator, int) - Method in class com.jfinal.json.JFinalJson
-
- ITokenCache - Interface in com.jfinal.token
-
ITokenCache.
- IWritable - Interface in com.jfinal.template.io
-
IWritable 支持 OutputStream、Writer 双模式动态切换输出
详见 com.jfinal.template.stat.ast.Text 中的用法
- random - Static variable in class com.jfinal.captcha.CaptchaRender
-
- random - Static variable in class com.jfinal.ext.kit.SessionIdKit
-
- RANDOM_FONT - Static variable in class com.jfinal.captcha.CaptchaRender
-
- RandomDirective - Class in com.jfinal.template.ext.directive
-
输出 int 型随机数
- RandomDirective() - Constructor for class com.jfinal.template.ext.directive.RandomDirective
-
- randomKey() - Method in class com.jfinal.plugin.redis.Cache
-
从当前数据库中随机返回(不删除)一个 key 。
- RangeArray - Class in com.jfinal.template.expr.ast
-
RangeArray : [expr ..
- RangeArray(Expr, Expr, Location) - Constructor for class com.jfinal.template.expr.ast.RangeArray
-
array : '[' exprList ? | range ? ']'
exprList : expr (',' expr)*
range : expr ..
- RangeArray.RangeList - Class in com.jfinal.template.expr.ast
-
- RangeList(int, int, Location) - Constructor for class com.jfinal.template.expr.ast.RangeArray.RangeList
-
- rangeRender() - Method in class com.jfinal.render.FileRender
-
- readData(HttpServletRequest) - Static method in class com.jfinal.kit.HttpKit
-
- readIncommingRequestData(HttpServletRequest) - Static method in class com.jfinal.kit.HttpKit
-
Deprecated.
- rebuildColumnMetas(List<TableMeta>) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- Record - Class in com.jfinal.plugin.activerecord
-
Record
- Record() - Constructor for class com.jfinal.plugin.activerecord.Record
-
- recordBuilder - Variable in class com.jfinal.plugin.activerecord.dialect.Dialect
-
- RecordBuilder - Class in com.jfinal.plugin.activerecord
-
RecordBuilder.
- RecordBuilder() - Constructor for class com.jfinal.plugin.activerecord.RecordBuilder
-
- redirect(String) - Method in class com.jfinal.core.Controller
-
Redirect to url
- redirect(String, boolean) - Method in class com.jfinal.core.Controller
-
Redirect to url
- redirect(String, HttpServletRequest, HttpServletResponse, boolean[]) - Static method in class com.jfinal.kit.HandlerKit
-
- redirect301(String) - Method in class com.jfinal.core.Controller
-
Render with url and 301 status
- redirect301(String, boolean) - Method in class com.jfinal.core.Controller
-
Render with url and 301 status
- redirect301(String, HttpServletRequest, HttpServletResponse, boolean[]) - Static method in class com.jfinal.kit.HandlerKit
-
- Redirect301Render - Class in com.jfinal.render
-
Redirect301Render.
- Redirect301Render(String) - Constructor for class com.jfinal.render.Redirect301Render
-
- Redirect301Render(String, boolean) - Constructor for class com.jfinal.render.Redirect301Render
-
- RedirectRender - Class in com.jfinal.render
-
RedirectRender with status: 302 Found.
- RedirectRender(String) - Constructor for class com.jfinal.render.RedirectRender
-
- RedirectRender(String, boolean) - Constructor for class com.jfinal.render.RedirectRender
-
- Redis - Class in com.jfinal.plugin.redis
-
Redis.
- Redis() - Constructor for class com.jfinal.plugin.redis.Redis
-
- RedisInterceptor - Class in com.jfinal.plugin.redis
-
RedisInterceptor 用于在同一线程中共享同一个 jedis 对象,提升性能.
- RedisInterceptor() - Constructor for class com.jfinal.plugin.redis.RedisInterceptor
-
- RedisPlugin - Class in com.jfinal.plugin.redis
-
RedisPlugin.
- RedisPlugin(String, String) - Constructor for class com.jfinal.plugin.redis.RedisPlugin
-
- RedisPlugin(String, String, int) - Constructor for class com.jfinal.plugin.redis.RedisPlugin
-
- RedisPlugin(String, String, int, int) - Constructor for class com.jfinal.plugin.redis.RedisPlugin
-
- RedisPlugin(String, String, int, int, String) - Constructor for class com.jfinal.plugin.redis.RedisPlugin
-
- RedisPlugin(String, String, int, int, String, int) - Constructor for class com.jfinal.plugin.redis.RedisPlugin
-
- RedisPlugin(String, String, int, int, String, int, String) - Constructor for class com.jfinal.plugin.redis.RedisPlugin
-
- RedisPlugin(String, String, int, String) - Constructor for class com.jfinal.plugin.redis.RedisPlugin
-
- RedisPlugin(String, String, String) - Constructor for class com.jfinal.plugin.redis.RedisPlugin
-
- ReflectKit - Class in com.jfinal.kit
-
反射工具类
- ReflectKit() - Constructor for class com.jfinal.kit.ReflectKit
-
- regist(Class<T>, IConverter<T>) - Method in class com.jfinal.core.converter.TypeConverter
-
- remarks - Variable in class com.jfinal.plugin.activerecord.generator.ColumnMeta
-
- remarks - Variable in class com.jfinal.plugin.activerecord.generator.TableMeta
-
- remove(String) - Method in class com.jfinal.captcha.CaptchaCache
-
- remove(String) - Method in interface com.jfinal.captcha.ICaptchaCache
-
- remove(String, Object) - Method in class com.jfinal.plugin.activerecord.cache.EhCache
-
- remove(String, Object) - Method in interface com.jfinal.plugin.activerecord.cache.ICache
-
- remove(Object) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoMap
-
- remove(Object) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
-
- remove(String) - Method in class com.jfinal.plugin.activerecord.Model
-
Remove attribute of this model.
- remove(String...) - Method in class com.jfinal.plugin.activerecord.Model
-
Remove attributes of this model.
- remove(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Remove attribute of this record.
- remove(String...) - Method in class com.jfinal.plugin.activerecord.Record
-
Remove columns of this record.
- remove(String, Object) - Static method in class com.jfinal.plugin.ehcache.CacheKit
-
- remove(String) - Static method in class com.jfinal.template.Engine
-
Remove engine with engine name managed by JFinal
- remove(Object) - Method in class com.jfinal.template.stat.Scope
-
移除变量
自内向外在作用域栈中查找变量,移除最先找到的变量
- remove(Token) - Method in interface com.jfinal.token.ITokenCache
-
- removeAll() - Method in class com.jfinal.captcha.CaptchaCache
-
- removeAll() - Method in interface com.jfinal.captcha.ICaptchaCache
-
- removeAll(String) - Method in class com.jfinal.plugin.activerecord.cache.EhCache
-
- removeAll(String) - Method in interface com.jfinal.plugin.activerecord.cache.ICache
-
- removeAll(Collection<?>) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
-
- removeAll(String) - Static method in class com.jfinal.plugin.ehcache.CacheKit
-
- removeAllTemplateCache() - Method in class com.jfinal.template.Engine
-
Remove all template cache
- removeAttr(String) - Method in class com.jfinal.core.Controller
-
Removes an attribute from this request
- removeAttr(String) - Method in interface com.jfinal.plugin.auth.ISession
-
- removeAttribute(String) - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- removeAttribute(String) - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- removeCache(String) - Static method in class com.jfinal.plugin.redis.Redis
-
- removeConfig(String) - Static method in class com.jfinal.plugin.activerecord.DbKit
-
- removeCookie(String) - Method in class com.jfinal.core.Controller
-
Remove Cookie.
- removeCookie(String, String) - Method in class com.jfinal.core.Controller
-
Remove Cookie.
- removeCookie(String, String, String) - Method in class com.jfinal.core.Controller
-
Remove Cookie.
- removeDirective(String) - Method in class com.jfinal.template.Engine
-
Remove directive
- removeDirective(String) - Method in class com.jfinal.template.EngineConfig
-
- removedTableNamePrefixes - Variable in class com.jfinal.plugin.activerecord.generator.MetaBuilder
-
- removeExcludedAttrs(String...) - Static method in class com.jfinal.render.JsonRender
-
- removeExtensionMethod(Class<?>, Object) - Static method in class com.jfinal.template.Engine
-
- removeExtensionMethod(Class<?>, Class<?>) - Static method in class com.jfinal.template.Engine
-
- removeExtensionMethod(Class<?>, Object) - Static method in class com.jfinal.template.expr.ast.MethodKit
-
- removeExtensionMethod(Class<?>, Class<?>) - Static method in class com.jfinal.template.expr.ast.MethodKit
-
- removeGlobal(Object) - Method in class com.jfinal.template.stat.Scope
-
移除全局变量
全局作用域是指本次请求的整个 template
- removeKeyword(String) - Method in class com.jfinal.kit.JavaKeyword
-
- removeLocal(Object) - Method in class com.jfinal.template.stat.Scope
-
移除局部变量
- removeNullValueAttrs() - Method in class com.jfinal.plugin.activerecord.Model
-
Remove attributes if it is null.
- removeNullValueColumns() - Method in class com.jfinal.plugin.activerecord.Record
-
Remove columns if it is null.
- removeRecordSerializer() - Method in class com.jfinal.json.FastJsonFactory
-
移除 FastJsonRecordSerializer
仅为了与 jfinal 3.3 版本之前版本的行为保持一致
- removeSession(String) - Method in class com.jfinal.plugin.auth.SessionKit
-
- removeSessionAttr(String) - Method in class com.jfinal.core.Controller
-
Remove Object in session.
- removeSharedMethod(String) - Method in class com.jfinal.template.Engine
-
Remove shared Method with method name
- removeSharedMethod(Class<?>) - Method in class com.jfinal.template.Engine
-
Remove shared Method of the Class
- removeSharedMethod(Method) - Method in class com.jfinal.template.Engine
-
Remove shared Method
- removeSharedMethod(String) - Method in class com.jfinal.template.EngineConfig
-
Remove shared Method with method name
- removeSharedMethod(Class<?>) - Method in class com.jfinal.template.EngineConfig
-
Remove shared Method of the Class
- removeSharedMethod(Method) - Method in class com.jfinal.template.EngineConfig
-
Remove shared Method
- removeSharedMethod(String) - Method in class com.jfinal.template.expr.ast.SharedMethodKit
-
- removeSharedMethod(Class<?>) - Method in class com.jfinal.template.expr.ast.SharedMethodKit
-
- removeSharedMethod(Method) - Method in class com.jfinal.template.expr.ast.SharedMethodKit
-
- removeTemplateCache(String) - Method in class com.jfinal.template.Engine
-
Remove template cache with template key
- removeThreadLocalConnection() - Method in class com.jfinal.plugin.activerecord.Config
-
- removeThreadLocalJedis() - Method in class com.jfinal.plugin.redis.Cache
-
- removeValue(String) - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- removeValue(String) - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- rename(Object, Object) - Method in class com.jfinal.plugin.redis.Cache
-
将 key 改名为 newkey 。
当 key 和 newkey 相同,或者 key 不存在时,返回一个错误。
当 newkey 已经存在时, RENAME 命令将覆盖旧值。
- render() - Method in class com.jfinal.captcha.CaptchaRender
-
生成验证码
- render(Render) - Method in class com.jfinal.core.Controller
-
Render with any Render which extends Render
- render(String) - Method in class com.jfinal.core.Controller
-
Render with view use default type Render configured in JFinalConfig
- render(String, int) - Method in class com.jfinal.core.Controller
-
Render with view and status use default type Render configured in JFinalConfig
- render() - Method in class com.jfinal.core.ForwardActionRender
-
- render() - Method in class com.jfinal.ext.render.CaptchaRender
-
Deprecated.
- render() - Method in class com.jfinal.ext.render.StaticHtmlRender
-
- render() - Method in class com.jfinal.render.ErrorRender
-
- render() - Method in class com.jfinal.render.FileRender
-
- render() - Method in class com.jfinal.render.FreeMarkerRender
-
- render() - Method in class com.jfinal.render.JsonRender
-
- render() - Method in class com.jfinal.render.JspRender
-
- render() - Method in class com.jfinal.render.NullRender
-
Render nothing
- render() - Method in class com.jfinal.render.QrCodeRender
-
- render() - Method in class com.jfinal.render.Redirect301Render
-
- render() - Method in class com.jfinal.render.RedirectRender
-
- Render - Class in com.jfinal.render
-
Render.
- Render() - Constructor for class com.jfinal.render.Render
-
- render() - Method in class com.jfinal.render.Render
-
Render to client
- render() - Method in class com.jfinal.render.TemplateRender
-
- render() - Method in class com.jfinal.render.TextRender
-
- render() - Method in class com.jfinal.render.VelocityRender
-
- render(Map<?, ?>, OutputStream) - Method in class com.jfinal.template.Template
-
渲染到 OutputStream 中去
- render(OutputStream) - Method in class com.jfinal.template.Template
-
支持无 data 参数,渲染到 OutputStream 中去
适用于数据在模板中通过表达式和语句直接计算得出等等应用场景
- render(Map<?, ?>, Writer) - Method in class com.jfinal.template.Template
-
渲染到 Writer 中去
- render(Writer) - Method in class com.jfinal.template.Template
-
支持无 data 参数,渲染到 Writer 中去
适用于数据在模板中通过表达式和语句直接计算得出等等应用场景
- render(Map<?, ?>, File) - Method in class com.jfinal.template.Template
-
渲染到 File 中去
适用于代码生成器类似应用场景
- render(Map<?, ?>, String) - Method in class com.jfinal.template.Template
-
渲染到 String fileName 参数所指定的文件中去
适用于代码生成器类似应用场景
- renderCaptcha() - Method in class com.jfinal.core.Controller
-
- RenderDirective - Class in com.jfinal.template.ext.directive
-
#render 指令用于动态渲染子模板,作为 include 指令的补充
- RenderDirective() - Constructor for class com.jfinal.template.ext.directive.RenderDirective
-
- renderError(int, String) - Method in class com.jfinal.core.Controller
-
Render with view and errorCode status
- renderError(int, Render) - Method in class com.jfinal.core.Controller
-
Render with render and errorCode status
- renderError(int) - Method in class com.jfinal.core.Controller
-
Render with view and errorCode status configured in JFinalConfig
- renderError404(String, HttpServletRequest, HttpServletResponse, boolean[]) - Static method in class com.jfinal.kit.HandlerKit
-
- renderError404(HttpServletRequest, HttpServletResponse, boolean[]) - Static method in class com.jfinal.kit.HandlerKit
-
- RenderException - Exception in com.jfinal.render
-
RenderException.
- RenderException() - Constructor for exception com.jfinal.render.RenderException
-
- RenderException(String) - Constructor for exception com.jfinal.render.RenderException
-
- RenderException(Throwable) - Constructor for exception com.jfinal.render.RenderException
-
- RenderException(String, Throwable) - Constructor for exception com.jfinal.render.RenderException
-
- RenderFactory - Class in com.jfinal.render
-
RenderFactory.
- RenderFactory() - Constructor for class com.jfinal.render.RenderFactory
-
- renderFile(String) - Method in class com.jfinal.core.Controller
-
Render with file
- renderFile(String, String) - Method in class com.jfinal.core.Controller
-
Render with file, using the new file name to the client
- renderFile(File) - Method in class com.jfinal.core.Controller
-
Render with file
- renderFile(File, String) - Method in class com.jfinal.core.Controller
-
Render with file, using the new file name to the client
- renderFreeMarker(String) - Method in class com.jfinal.core.Controller
-
Render with freemarker view
- renderHtml(String) - Method in class com.jfinal.core.Controller
-
Render with html text.
- RenderInfo - Class in com.jfinal.plugin.ehcache
-
RenderInfo.
- RenderInfo(Render) - Constructor for class com.jfinal.plugin.ehcache.RenderInfo
-
- renderJavascript(String) - Method in class com.jfinal.core.Controller
-
Render with javascript text.
- renderJson(String, Object) - Method in class com.jfinal.core.Controller
-
Render with json
- renderJson() - Method in class com.jfinal.core.Controller
-
Render with json
- renderJson(String[]) - Method in class com.jfinal.core.Controller
-
Render with attributes set by setAttr(...) before.
- renderJson(String) - Method in class com.jfinal.core.Controller
-
Render with json text.
- renderJson(Object) - Method in class com.jfinal.core.Controller
-
Render json with object.
- renderJsp(String) - Method in class com.jfinal.core.Controller
-
Render with jsp view
- renderManager - Static variable in class com.jfinal.core.ActionHandler
-
- RenderManager - Class in com.jfinal.render
-
RenderManager.
- renderMergedTemplateModel(Map<String, Object>, HttpServletRequest, HttpServletResponse) - Method in class com.jfinal.template.ext.spring.JFinalView
-
- renderNull() - Method in class com.jfinal.core.Controller
-
Render nothing, no response to browser
- renderQrCode(String, int, int) - Method in class com.jfinal.core.Controller
-
渲染二维码
- renderQrCode(String, int, int, char) - Method in class com.jfinal.core.Controller
-
渲染二维码,并指定纠错级别
- renderTemplate(String) - Method in class com.jfinal.core.Controller
-
Render with JFinal template
- renderText(String) - Method in class com.jfinal.core.Controller
-
Render with text.
- renderText(String, String) - Method in class com.jfinal.core.Controller
-
Render with text and content type.
- renderText(String, ContentType) - Method in class com.jfinal.core.Controller
-
Render with text and ContentType.
- renderToString(String, Map) - Method in class 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<?, ?>) - Method in class com.jfinal.template.Template
-
渲染到 String 中去
- renderToStringBuilder(Map<?, ?>) - Method in class com.jfinal.template.Template
-
渲染到 StringBuilder 中去
- renderType - Variable in class com.jfinal.plugin.ehcache.RenderInfo
-
- RenderType - Class in com.jfinal.plugin.ehcache
-
RenderType
- RenderType() - Constructor for class com.jfinal.plugin.ehcache.RenderType
-
- renderVelocity(String) - Method in class com.jfinal.core.Controller
-
Render with velocity view
- renderXml(String) - Method in class com.jfinal.core.Controller
-
Render with xml view using freemarker.
- replaceOrderBy(String) - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
- report(String, Controller, Action) - Static method in class com.jfinal.core.ActionReporter
-
Report the action
- request - Variable in class com.jfinal.render.Render
-
- requiredViewClass() - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
- Res - Class in com.jfinal.i18n
-
Res is used to get the message value from the ResourceBundle of the related Locale.
- Res(String, String) - Constructor for class com.jfinal.i18n.Res
-
- response - Variable in class com.jfinal.render.Render
-
- Restful - Class in 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() - Constructor for class com.jfinal.ext.interceptor.Restful
-
- Ret - Class in com.jfinal.kit
-
Ret 用于返回值封装,也用于服务端与客户端的 json 数据通信
- Ret() - Constructor for class com.jfinal.kit.Ret
-
- retainAll(Collection<?>) - Method in class com.jfinal.plugin.activerecord.DaoContainerFactory.DaoSet
-
- Return - Class in com.jfinal.template.stat.ast
-
Return
通常用于 #define 指令内部,不支持返回值
- Route(String, Class<? extends Controller>, String) - Constructor for class com.jfinal.config.Routes.Route
-
- Routes - Class in com.jfinal.config
-
Routes.
- Routes() - Constructor for class com.jfinal.config.Routes
-
- routes - Variable in class com.jfinal.core.ActionMapping
-
- Routes.Route - Class in com.jfinal.config
-
- RoutesHandler - Class in com.jfinal.ext.handler
-
RoutesHandler.
- RoutesHandler() - Constructor for class com.jfinal.ext.handler.RoutesHandler
-
- rpop(Object) - Method in class com.jfinal.plugin.redis.Cache
-
移除并返回列表 key 的尾元素。
- rpoplpush(Object, Object) - Method in class com.jfinal.plugin.redis.Cache
-
命令 RPOPLPUSH 在一个原子时间内,执行以下两个动作:
将列表 source 中的最后一个元素(尾元素)弹出,并返回给客户端。
将 source 弹出的元素插入到列表 destination ,作为 destination 列表的的头元素。
- rpush(Object, Object...) - Method in class com.jfinal.plugin.redis.Cache
-
将一个或多个值 value 插入到列表 key 的表尾(最右边)。
如果有多个 value 值,那么各个 value 值按从左到右的顺序依次插入到表尾:比如
对一个空列表 mylist 执行 RPUSH mylist a b c ,得出的结果列表为 a b c ,
等同于执行命令 RPUSH mylist a 、 RPUSH mylist b 、 RPUSH mylist c 。
如果 key 不存在,一个空列表会被创建并执行 RPUSH 操作。
当 key 存在但不是列表类型时,返回一个错误。
- run() - Method in interface com.jfinal.plugin.activerecord.IAtom
-
Place codes here that need transaction support.
- sadd(Object, Object...) - Method in class com.jfinal.plugin.redis.Cache
-
将一个或多个 member 元素加入到集合 key 当中,已经存在于集合的 member 元素将被忽略。
假如 key 不存在,则创建一个只包含 member 元素作成员的集合。
当 key 不是集合类型时,返回一个错误。
- save(String, String, Record) - Static method in class com.jfinal.plugin.activerecord.Db
-
Save record.
- save(String, Record) - Static method in class com.jfinal.plugin.activerecord.Db
-
- save(String, String, Record) - Method in class com.jfinal.plugin.activerecord.DbPro
-
Save record.
- save(String, Record) - Method in class com.jfinal.plugin.activerecord.DbPro
-
- save() - Method in class com.jfinal.plugin.activerecord.Model
-
Save model.
- Scanner - Class in com.jfinal.server
-
Scanner.
- Scanner(String, int) - Constructor for class com.jfinal.server.Scanner
-
- scard(Object) - Method in class com.jfinal.plugin.redis.Cache
-
返回集合 key 的基数(集合中元素的数量)。
- Scope - Class in com.jfinal.template.stat
-
Scope
1:顶层 scope.parent 为 null
2:scope.set(...) 自内向外查找赋值
3:scope.get(...) 自内向外查找获取
- Scope(Map, Map<String, Object>) - Constructor for class com.jfinal.template.stat.Scope
-
构建顶层 Scope, parent 为 null 是顶层 Scope 的标志
- Scope(Scope) - Constructor for class com.jfinal.template.stat.Scope
-
构建 AST 执行过程中作用域栈
- sdiff(Object...) - Method in class com.jfinal.plugin.redis.Cache
-
返回一个集合的全部成员,该集合是所有给定集合之间的差集。
不存在的 key 被视为空集。
- select(int) - Method in class com.jfinal.plugin.redis.Cache
-
切换到指定的数据库,数据库索引号 index 用数字值指定,以 0 作为起始索引值。
默认使用 0 号数据库。
注意:在 Jedis 对象被关闭时,数据库又会重新被设置为初始值,所以本方法 select(...)
正常工作需要使用如下方式之一:
1:使用 RedisInterceptor,在本线程内共享同一个 Jedis 对象
2:使用 Redis.call(ICallback) 进行操作
3:自行获取 Jedis 对象进行操作
- serializer - Variable in class com.jfinal.plugin.redis.Cache
-
- serializer - Variable in class com.jfinal.plugin.redis.RedisPlugin
-
- ServerFactory - Class in com.jfinal.server
-
ServerFactory
- ServerNameRedirect301Handler - Class in com.jfinal.ext.handler
-
ServerNameRedirect301Handler redirect to new server name with 301 Moved Permanently.
- ServerNameRedirect301Handler(String, String) - Constructor for class com.jfinal.ext.handler.ServerNameRedirect301Handler
-
Example: new ServerNameRedirectHandler("http://abc.com", "http://www.abc.com")
- servletContext - Static variable in class com.jfinal.render.FileRender
-
- servletContext - Variable in class com.jfinal.render.RenderFactory
-
- SessionIdKit - Class in com.jfinal.ext.kit
-
SessionIdKit.
- SessionInViewInterceptor - Class in com.jfinal.ext.interceptor
-
SessionInViewInterceptor.
- SessionInViewInterceptor() - Constructor for class com.jfinal.ext.interceptor.SessionInViewInterceptor
-
- SessionInViewInterceptor(boolean) - Constructor for class com.jfinal.ext.interceptor.SessionInViewInterceptor
-
- SessionInViewInterceptor.JFinalSession - Class in com.jfinal.ext.interceptor
-
- SessionKit - Class in com.jfinal.plugin.auth
-
- SessionKit() - Constructor for class com.jfinal.plugin.auth.SessionKit
-
- set(Object, Object) - Method in class com.jfinal.kit.JMap
-
Deprecated.
- set(Map) - Method in class com.jfinal.kit.JMap
-
Deprecated.
- set(JMap) - Method in class com.jfinal.kit.JMap
-
Deprecated.
- set(Object, Object) - Method in class com.jfinal.kit.Kv
-
- set(Map) - Method in class com.jfinal.kit.Kv
-
- set(Kv) - Method in class com.jfinal.kit.Kv
-
- set(Object, Object) - Method in class com.jfinal.kit.Okv
-
- set(Map) - Method in class com.jfinal.kit.Okv
-
- set(Okv) - Method in class com.jfinal.kit.Okv
-
- set(Object, Object) - Method in class com.jfinal.kit.Ret
-
- set(Map) - Method in class com.jfinal.kit.Ret
-
- set(Ret) - Method in class com.jfinal.kit.Ret
-
- set(String, Object) - Method in class com.jfinal.plugin.activerecord.Model
-
Set attribute to model.
- set(String, Object) - Method in class com.jfinal.plugin.activerecord.Record
-
Set column to record.
- set(int, int, int) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- set(Object, Object) - Method in class com.jfinal.plugin.redis.Cache
-
存放 key value 对到 redis
如果 key 已经持有其他值, SET 就覆写旧值,无视类型。
对于某个原本带有生存时间(TTL)的键来说, 当 SET 命令成功在这个键上执行时, 这个键原有的 TTL 将被清除。
- Set - Class in 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 ? a : b)
- Set(ExprList, Location) - Constructor for class com.jfinal.template.stat.ast.Set
-
- set(Object, Object) - Method in class com.jfinal.template.stat.Scope
-
设置变量
自内向外在作用域栈中查找变量,如果找到则改写变量值,否则将变量存放到顶层 Scope
- setAcquireIncrement(int) - Method in class com.jfinal.plugin.c3p0.C3p0Plugin
-
- setActionHandler(ActionHandler) - Method in class com.jfinal.config.Handlers
-
- setArg(int, Object) - Method in class com.jfinal.aop.Invocation
-
- setAttr(String, Object) - Method in class com.jfinal.core.Controller
-
Stores an attribute in this request
- setAttr(String, Object) - Method in interface com.jfinal.plugin.auth.ISession
-
- setAttribute(String, Object) - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- setAttribute(String, Object) - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- setAttrs(Map<String, Object>) - Method in class 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) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
是否自动提交
- setBaseDownloadPath(String) - Method in class com.jfinal.config.Constants
-
Set file base download path for Controller.renderFile(...)
设置文件下载基础路径,当路径以 "/" 打头或是以 windows 磁盘盘符打头,
则将路径设置为绝对路径,否则路径将是以应用根路径为基础的相对路径
- setBaseModelTemplate(String) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置用于生成 BaseModel 的模板文件,模板引擎将在 class path 与 jar 包内寻找模板文件
默认模板为:"/com/jfinal/plugin/activerecord/generator/base_model_template.jf"
- setBaseSqlTemplatePath(String) - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- setBaseSqlTemplatePath(String) - Method in class com.jfinal.plugin.activerecord.sql.SqlKit
-
- setBaseTemplatePath(String) - Method in class com.jfinal.template.Engine
-
- setBaseTemplatePath(String) - Method in class com.jfinal.template.EngineConfig
-
- setBaseTemplatePath(String) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
设置模板基础路径
- setBaseUploadPath(String) - Method in class com.jfinal.config.Constants
-
Set file base upload path.
- setBaseViewPath(String) - Method in class com.jfinal.config.Routes
-
Set base view path for controller in this routes
- setBreak() - Method in class com.jfinal.template.stat.Ctrl
-
- setBufferSize(int) - Method in class com.jfinal.template.io.WriterBuffer
-
- setCache(ICache) - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- setCaptchaCache(ICaptchaCache) - Method in class com.jfinal.captcha.CaptchaManager
-
- setCaptchaCache(ICaptchaCache) - Method in class com.jfinal.config.Constants
-
- setCaptchaName(String) - Static method in class com.jfinal.captcha.CaptchaRender
-
设置 captchaName
- setCatalog(String) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
支持 catalog 概念的数据库可以设定该参数
- setCharSet(String) - Static method in class com.jfinal.kit.HttpKit
-
- setCheckParaAssigned(boolean) - Static method in class com.jfinal.plugin.activerecord.sql.ParaDirective
-
- setClearAfterMapping(boolean) - Method in class com.jfinal.config.Routes
-
配置是否在路由映射完成之后清除内部数据,以回收内存,默认值为 true.
- setColumns(Map<String, Object>) - Method in class com.jfinal.plugin.activerecord.Record
-
Set columns value with map.
- setColumns(Record) - Method in class com.jfinal.plugin.activerecord.Record
-
Set columns value with Record.
- setColumns(Model<?>) - Method in class com.jfinal.plugin.activerecord.Record
-
Set columns value with Model object.
- setColumnsMap(Record, Map<String, Object>) - Static method in class com.jfinal.plugin.activerecord.CPI
-
Return the columns map of the record
- setConfigPluginOrder(int) - Method in class com.jfinal.config.Constants
-
配置 configPlugin(Plugins me) 在 JFinalConfig 中被调用的次序.
- setConnectionInitSql(String) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
添加连接时的初始化sql。可以添加多次,在初次连接时使用,比如指定编码或者默认scheme等
- setConnectionInitSql(String) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
新连接生成后,添加到连接池前执行的初始化sql
- setConnectionProperties(String) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setConnectionTestQuery(String) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
JDBC4以下版本数据库驱动需要设定此参数
- setConnectionTimeout(long) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
- setContainerFactory(IContainerFactory) - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- setContainerFactoryByConfigName(String) - Method in class com.jfinal.plugin.activerecord.Record
-
Set the containerFactory by configName.
- setContext(HttpServletRequest, HttpServletResponse) - Method in class com.jfinal.render.Render
-
- setContext(HttpServletRequest, HttpServletResponse, String) - Method in class com.jfinal.render.Render
-
- setContinue() - Method in class com.jfinal.template.stat.Ctrl
-
- setControllerFactory(ControllerFactory) - Method in class com.jfinal.config.Constants
-
- setConvertDepth(int) - Method in class com.jfinal.json.JFinalJson
-
- setCookie(String, String, int, boolean) - Method in class com.jfinal.core.Controller
-
Set Cookie.
- setCookie(String, String, int) - Method in class com.jfinal.core.Controller
-
Set Cookie.
- setCookie(Cookie) - Method in class com.jfinal.core.Controller
-
Set Cookie to response.
- setCookie(String, String, int, String, boolean) - Method in class com.jfinal.core.Controller
-
Set Cookie to response.
- setCookie(String, String, int, String) - Method in class com.jfinal.core.Controller
-
Set Cookie to response.
- setCookie(String, String, int, String, String, boolean) - Method in class com.jfinal.core.Controller
-
Set Cookie to response.
- setCreateSession(boolean) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
在使用 request.getSession(createSession) 时传入
用来指示 session 不存在时是否立即创建
- setData(Map) - Method in class com.jfinal.template.stat.Scope
-
设置/替换本层作用域 data,通常用于在扩展指令中使用现成可用的 Map 来存放数据,
从而避免 Scope 内部创建 data,节省时空
注意:本方法会替换掉已经存在的 data 对象
- setDataDictionaryFileName(String) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- setDataDictionaryFileName(String) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置数据字典 DataDictionary 文件输出目录,默认值为 "_DataDictionary.txt"
- setDataDictionaryGenerator(DataDictionaryGenerator) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置 DataDictionaryGenerator,便于扩展自定义 DataDictionaryGenerator
- setDataDictionaryOutputDir(String) - Method in class com.jfinal.plugin.activerecord.generator.DataDictionaryGenerator
-
- setDataDictionaryOutputDir(String) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置数据字典 DataDictionary 文件输出目录,默认与 modelOutputDir 相同
- setDatePattern(String) - Static method in class com.jfinal.ext.kit.DateKit
-
- setDatePattern(String) - Method in class com.jfinal.json.JFinalJson
-
- setDatePattern(String) - Method in class com.jfinal.json.Json
-
- setDatePattern(String) - Method in class com.jfinal.template.Engine
-
- setDatePattern(String) - Method in class com.jfinal.template.EngineConfig
-
- setDatePattern(String) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
设置 #date(...) 指令,对于 Date、Timestamp、Time 的输出格式
- setDatePattern(String) - Method in class com.jfinal.validate.Validator
-
- setDbProFactory(IDbProFactory) - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- setDefaultBaseName(String) - Static method in class com.jfinal.i18n.I18n
-
- setDefaultConvertDepth(int) - Static method in class com.jfinal.json.JFinalJson
-
设置全局性默认转换深度
- setDefaultDatePattern(String) - Method in class com.jfinal.json.JsonManager
-
- setDefaultGenerateNullValue(boolean) - Static method in class com.jfinal.json.Jackson
-
- setDefaultJsonFactory(IJsonFactory) - Method in class com.jfinal.json.JsonManager
-
- setDefaultLocale(String) - Static method in class com.jfinal.i18n.I18n
-
- setDefaultLogFactory(ILogFactory) - Method in class com.jfinal.log.LogManager
-
- setDevMode(boolean) - Method in class com.jfinal.config.Constants
-
Set development mode.
- setDevMode(boolean) - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- setDevMode(boolean) - Method in class com.jfinal.plugin.activerecord.sql.SqlKit
-
- setDevMode(boolean) - Method in class com.jfinal.template.Engine
-
设置 true 为开发模式,支持模板文件热加载
设置 false 为生产模式,不支持模板文件热加载,以达到更高的性能
- setDevMode(boolean) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
设置开发模式,值为 true 时支持模板文件热加载
- setDialect(Dialect) - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- setDialect(Dialect) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置数据库方言,默认为 MysqlDialect
- setDialect(Dialect) - Method in class com.jfinal.plugin.activerecord.generator.MetaBuilder
-
- setDriverClass(String) - Method in class com.jfinal.plugin.c3p0.C3p0Plugin
-
- setDriverClass(String) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setDriverClass(String) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
驱动类名
- setEncoderFactory(EncoderFactory) - Method in class com.jfinal.template.EngineConfig
-
- setEncoderFactory(EncoderFactory) - Method in class com.jfinal.template.io.WriterBuffer
-
- setEncoding(String) - Method in class com.jfinal.config.Constants
-
Set encoding.
- setEncoding(String) - Method in class com.jfinal.template.Engine
-
- setEncoding(String) - Method in class com.jfinal.template.EngineConfig
-
- setEncoding(String) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
设置 encoding
- setEncoding(String) - Method in class com.jfinal.template.io.WriterBuffer
-
- setEnvForDevMode(Env) - Method in class com.jfinal.template.stat.ast.Define
-
- setError401View(String) - Method in class com.jfinal.config.Constants
-
Set error 401 view.
- setError403View(String) - Method in class com.jfinal.config.Constants
-
Set error 403 view.
- setError404View(String) - Method in class com.jfinal.config.Constants
-
Set error 404 view.
- setError500View(String) - Method in class com.jfinal.config.Constants
-
Set error 500 view.
- setErrorView(int, String) - Method in class com.jfinal.config.Constants
-
- setex(Object, int, Object) - Method in class com.jfinal.plugin.redis.Cache
-
存放 key value 对到 redis,并将 key 的生存时间设为 seconds (以秒为单位)。
如果 key 已经存在, SETEX 命令将覆写旧值。
- setExprList(ExprList) - Method in class com.jfinal.plugin.activerecord.sql.NameSpaceDirective
-
- setExprList(ExprList) - Method in class com.jfinal.plugin.activerecord.sql.ParaDirective
-
- setExprList(ExprList) - Method in class com.jfinal.plugin.activerecord.sql.SqlDirective
-
- setExprList(ExprList) - Method in class com.jfinal.template.Directive
-
指令被解析时注入指令参数表达式列表,继承类可以通过覆盖此方法对参数长度和参数类型进行校验
- setExprList(ExprList) - Method in class com.jfinal.template.ext.directive.DateDirective
-
- setExprList(ExprList) - Method in class com.jfinal.template.ext.directive.NowDirective
-
- setExprList(ExprList) - Method in class com.jfinal.template.ext.directive.NumberDirective
-
- setExprList(ExprList) - Method in class com.jfinal.template.ext.directive.RenderDirective
-
- setExprList(ExprList) - Method in class com.jfinal.template.ext.directive.StringDirective
-
- setExprList(ExprList) - Method in class com.jfinal.template.stat.ast.Stat
-
- setFail() - Method in class com.jfinal.kit.JMap
-
Deprecated.
- setFail() - Method in class com.jfinal.kit.Kv
-
Deprecated.
- setFail() - Method in class com.jfinal.kit.Ret
-
- setFileRenamePolicy(FileRenamePolicy) - Static method in class com.jfinal.upload.OreillyCos
-
- setFilters(String) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
设置过滤器,如果要开启监控统计需要使用此方法或在构造方法中进行设置
- setFreeMarkerTemplateUpdateDelay(int) - Method in class com.jfinal.config.Constants
-
FreeMarker template update delay for not devMode.
- setGenerateChainSetter(boolean) - Method in class com.jfinal.plugin.activerecord.generator.BaseModelGenerator
-
- setGenerateChainSetter(boolean) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置 BaseModel 是否生成链式 setter 方法
- setGenerateDaoInModel(boolean) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置是否在 Model 中生成 dao 对象,默认生成
- setGenerateDaoInModel(boolean) - Method in class com.jfinal.plugin.activerecord.generator.ModelGenerator
-
- setGenerateDataDictionary(boolean) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置是否生成数据字典 Dictionary 文件,默认不生成
- setGenerateNullValue(boolean) - Method in class com.jfinal.json.Jackson
-
- SetGlobal - Class in com.jfinal.template.stat.ast
-
SetLocal 设置全局变量,全局作用域是指本次请求的整个 template
适用于极少数的在内层作用域中希望直接操作顶层作用域的场景
- SetGlobal(ExprList, Location) - Constructor for class com.jfinal.template.stat.ast.SetGlobal
-
- setGlobal(Object, Object) - Method in class com.jfinal.template.stat.Scope
-
设置全局变量
全局作用域是指本次请求的整个 template
- setGlobalAssignment() - Method in class com.jfinal.template.stat.Ctrl
-
- setHttpServletRequest(HttpServletRequest) - Method in class com.jfinal.core.Controller
-
- setHttpServletResponse(HttpServletResponse) - Method in class com.jfinal.core.Controller
-
- setI18nDefaultBaseName(String) - Method in class com.jfinal.config.Constants
-
Set default base name to load Resource bundle.
- setI18nDefaultLocale(String) - Method in class com.jfinal.config.Constants
-
Set default locale to load Resource bundle.
- setIdleTimeout(long) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
空闲超时时间(单位:毫秒),默认600000 (10 分钟)
- setInitialPoolSize(int) - Method in class com.jfinal.plugin.c3p0.C3p0Plugin
-
- setInitialSize(int) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setJdbcUrl(String) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
jdbc连接url
- setJsonDatePattern(String) - Method in class com.jfinal.config.Constants
-
设置json转换时日期格式,常用格式有:"yyyy-MM-dd HH:mm:ss"、 "yyyy-MM-dd"
- setJsonFactory(IJsonFactory) - Method in class com.jfinal.config.Constants
-
设置 Json 转换工厂实现类,目前支持:JFinalJsonFactory(默认)、JacksonFactory、FastJsonFactory
分别支持 JFinalJson、Jackson、FastJson
- setJumpNone() - Method in class com.jfinal.template.stat.Ctrl
-
- setKeepByteAndShort(boolean) - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
指示 Generator、ModelBuilder、RecordBuilder 是否保持住 Byte、Short 类型
- setKeyNamingPolicy(IKeyNamingPolicy) - Method in class com.jfinal.plugin.redis.RedisPlugin
-
- setLeakDetectionThreshold(long) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
内存泄露侦测周期,最小为2000(2秒)
- SetLocal - Class in com.jfinal.template.stat.ast
-
SetLocal 设置局部变量
通常用于 #define #include 指令内部需要与外层作用域区分,以便于定义重用型模块的场景
也常用于 #for 循环内部的临时变量
- SetLocal(ExprList, Location) - Constructor for class com.jfinal.template.stat.ast.SetLocal
-
- setLocal(Object, Object) - Method in class com.jfinal.template.stat.Scope
-
设置局部变量
- setLocalAssignment() - Method in class com.jfinal.template.stat.Ctrl
-
- setLocation(Location) - Method in class com.jfinal.template.stat.ast.Stat
-
- setLog(boolean) - Static method in class com.jfinal.plugin.activerecord.SqlReporter
-
- setLogAbandoned(boolean) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setLogFactory(ILogFactory) - Method in class com.jfinal.config.Constants
-
- setMainCache(String) - Static method in class com.jfinal.plugin.redis.Redis
-
提供一个设置设置主缓存 mainCache 的机会,否则第一个被初始化的 Cache 将成为 mainCache
- setMainEngine(Engine) - Static method in class com.jfinal.template.Engine
-
Set main engine
- setMappingKitClassName(String) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置 MappingKit 类名,默认值为: "_MappingKit"
- setMappingKitClassName(String) - Method in class com.jfinal.plugin.activerecord.generator.MappingKitGenerator
-
- setMappingKitGenerator(MappingKitGenerator) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置 MappingKitGenerator,便于扩展自定义 MappingKitGenerator
- setMappingKitOutputDir(String) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置 MappingKit 文件输出目录,默认与 modelOutputDir 相同,
在设置此变量的同时需要设置 mappingKitPackageName
- setMappingKitOutputDir(String) - Method in class com.jfinal.plugin.activerecord.generator.MappingKitGenerator
-
- setMappingKitPackageName(String) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置 MappingKit 文件包名,默认与 modelPackageName 相同,
在设置此变的同时需要设置 mappingKitOutputDir
- setMappingKitPackageName(String) - Method in class com.jfinal.plugin.activerecord.generator.MappingKitGenerator
-
- setMappingKitTemplate(String) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置用于生成 MappingKit 的模板文件,模板引擎将在 class path 与 jar 包内寻找模板文件
默认模板为:"/com/jfinal/plugin/activerecord/generator/mapping_kit_template.jf"
- setMaxActive(int) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setMaxIdleTime(int) - Method in class com.jfinal.plugin.c3p0.C3p0Plugin
-
- setMaximumPoolSize(int) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
连接池最大连接数 默认10
- setMaxInactiveInterval(int) - Method in class com.jfinal.ext.interceptor.SessionInViewInterceptor.JFinalSession
-
- setMaxInactiveInterval(int) - Method in class com.jfinal.template.ext.spring.JFinalView.InnerSession
-
- setMaxLifetime(long) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
最大生命周期/最大存活时间(单位:毫秒) ,默认1800000 (30 分钟)
- setMaxOutputLengthOfParaValue(int) - Static method in class com.jfinal.core.ActionReporter
-
- setMaxPoolPreparedStatementPerConnectionSize(int) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setMaxPoolSize(int) - Method in class com.jfinal.plugin.c3p0.C3p0Plugin
-
- setMaxPostSize(int) - Method in class com.jfinal.config.Constants
-
Set max size of http post.
- setMaxWait(long) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setMetaBuilder(MetaBuilder) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置 MetaBuilder,便于扩展自定义 MetaBuilder
- setMethodKeyBuilder(MethodKeyBuilder) - Static method in class com.jfinal.template.expr.ast.MethodKeyBuilder
-
切换到用户自定义 MethodKeyBuilder
- setMinEvictableIdleTimeMillis(long) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setMinEvictableIdleTimeMillis(int) - Method in class com.jfinal.plugin.redis.RedisPlugin
-
- setMinIdle(int) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setMinPoolSize(int) - Method in class com.jfinal.plugin.c3p0.C3p0Plugin
-
- setModelBuilder(ModelBuilder) - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
配置自定义 ModelBuilder
通过继承扩展 ModelBuilder 可以对 JDBC 到 java 数据类型进行定制化转换
不同数据库从 JDBC 到 java 数据类型的映射关系有所不同
此外,还可以通过改变 ModelBuilder.buildLabelNamesAndTypes()
方法逻辑,实现下划线字段名转驼峰变量名的功能
- setModelTemplate(String) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置用于生成 Model 的模板文件,模板引擎将在 class path 与 jar 包内寻找模板文件
默认模板为:"/com/jfinal/plugin/activerecord/generator/model_template.jf"
- setName(String) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
连接池名称
- setNullSafe(boolean) - Method in class com.jfinal.template.stat.Ctrl
-
- setNumTestsPerEvictionRun(int) - Method in class com.jfinal.plugin.redis.RedisPlugin
-
- setOk() - Method in class com.jfinal.kit.JMap
-
Deprecated.
- setOk() - Method in class com.jfinal.kit.Kv
-
Deprecated.
- setOk() - Method in class com.jfinal.kit.Ret
-
- setOutputDirectiveFactory(IOutputDirectiveFactory) - Method in class com.jfinal.template.Engine
-
Set output directive factory
- setOutputDirectiveFactory(IOutputDirectiveFactory) - Method in class com.jfinal.template.EngineConfig
-
Set output directive factory
- setPassword(String) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
数据库密码
- setPoolName(String) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
用户指定的连接池名
- setPrimaryKey(String, String) - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
当使用 create table 语句创建用于开发使用的数据表副本时,假如create table 中使用的
复合主键次序不同,那么MappingKitGeneretor 反射生成的复合主键次序也会不同。
而程序中类似于 model.deleteById(id1, id2) 方法中复合主键次序与需要与映射时的次序
保持一致,可以在MappingKit 映射完成以后通过调用此方法再次强制指定复合主键次序
- setProperties(Properties) - Static method in class com.jfinal.render.FreeMarkerRender
-
- setProperties(Properties) - Static method in class com.jfinal.render.VelocityRender
-
- setProperty(String, String) - Static method in class com.jfinal.render.FreeMarkerRender
-
Set freemarker's property.
- setPublicKey(String) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setReadOnly(boolean) - Method in class com.jfinal.plugin.hikaricp.HikariCpPlugin
-
是否是只读连接 ,是否有效取决于相应的数据库是否支持
- setRecordBuilder(RecordBuilder) - Method in class com.jfinal.plugin.activerecord.dialect.Dialect
-
配置自定义 RecordBuilder
通过继承扩展 RecordBuilder 可以对 JDBC 到 java 数据类型进行定制化转换
不同数据库从 JDBC 到 java 数据类型的映射关系有所不同
此外,还可以通过改变 RecordBuilder.buildLabelNamesAndTypes()
方法逻辑,实现下划线字段名转驼峰变量名的功能
- setReloadModifiedSharedFunctionInDevMode(boolean) - Method in class com.jfinal.template.Engine
-
Engine 独立设置为 devMode 可以方便模板文件在修改后立即生效,
但如果在 devMode 之下并不希望对 addSharedFunction(...),
添加的模板进行是否被修改的检测可以通过此方法设置 false 参进去
注意:Engine 在生产环境下(devMode 为 false),该参数无效
- setReloadModifiedSharedFunctionInDevMode(boolean) - Method in class com.jfinal.template.EngineConfig
-
- setRemoveAbandoned(boolean) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setRemoveAbandonedTimeoutMillis(long) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setRemovedTableNamePrefixes(String...) - Method in class com.jfinal.plugin.activerecord.generator.Generator
-
设置需要被移除的表名前缀,仅用于生成 modelName 与 baseModelName
例如表名 "osc_account",移除前缀 "osc_" 后变为 "account"
- setRemovedTableNamePrefixes(String...) - Method in class com.jfinal.plugin.activerecord.generator.MetaBuilder
-
设置需要被移除的表名前缀,仅用于生成 modelName 与 baseModelName
例如表名 "osc_account",移除前缀 "osc_" 后变为 "account"
- setRenderFactory(IRenderFactory) - Method in class com.jfinal.config.Constants
-
Set the renderFactory
- setRenderFactory(IRenderFactory) - Method in class com.jfinal.render.RenderManager
-
- setReportAfterInvocation(boolean) - Method in class com.jfinal.config.Constants
-
设置 devMode 之下的 action report 是否在 invocation 之后,默认值为 true
- setReportAfterInvocation(boolean) - Static method in class com.jfinal.core.ActionReporter
-
- setResolveBeanAsModel(boolean) - Static method in class com.jfinal.plugin.activerecord.ModelRecordElResolver
-
设置为 true 时,使用生成器生成的实现了 IBean 接口的 Class 将被当成 Model 来处理,
getter 不被 jsp/jstl 用来输出数据,仍然使用 model.get(String attr) 来输出数据。
有利于在关联查询时输出无 getter 方法的字段值。建议mysql数据表中的字段采用驼峰命名,
表名仍然用下划线方式命名。 resolveBeanAsModel 默认值为 false。
注意:这里所指的 Bean 仅仅指用 BaseModelGenerator 生成的实现了 IBean接口后的类文件
- setReturn() - Method in class com.jfinal.template.stat.Ctrl
-
- setReturnValue(Object) - Method in class com.jfinal.aop.Invocation
-
Set the return value of the target method
- setRootClassPath(String) - Static method in class com.jfinal.kit.PathKit
-
- setRootData(Map) - Method in class com.jfinal.template.stat.Scope
-
设置/替换顶层作用域 data,可以在扩展指令之中通过此方法切换掉顶层作用域
实现作用域完全隔离的功能
注意:本方法会替换掉顶层已经存在的 data 对象
- setSerializer(ISerializer) - Method in class com.jfinal.plugin.redis.RedisPlugin
-
- setSessionAttr(String, Object) - Method in class com.jfinal.core.Controller
-
Store Object to session.
- setSessionInView(boolean) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
设置为 true 时支持在模板中使用 #(session.value) 形式访问 session 中的数据
- setSharedFunction(String) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
设置 shared function 文件,多个文件用逗号分隔
主要用于 Spring MVC 的 xml 配置方式
Spring Boot 的代码配置方式可使用 addSharedFunction(...) 进行配置
- setSharedFunctionList(List<String>) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
通过 List 配置多个 shared function file
- setSharedVariable(String, Object) - Static method in class com.jfinal.render.FreeMarkerRender
-
注入对象到 FreeMarker 页面供调用,通常注入一些辅助内容输出的工具类,相当于是 freemarker 的一种扩展方式
- setShortCircuit(boolean) - Method in class com.jfinal.validate.Validator
-
设置短路验证.
- setShowSql(boolean) - Method in class com.jfinal.plugin.activerecord.ActiveRecordPlugin
-
- setSourceFactory(ISourceFactory) - Method in class com.jfinal.template.Engine
-
设置 ISourceFactory 用于为 engine 切换不同的 ISource 实现类
ISource 用于从不同的来源加载模板内容
- setSourceFactory(ISourceFactory) - Method in class com.jfinal.template.ext.spring.JFinalViewResolver
-
设置 ISourceFactory 用于为 engine 切换不同的 ISource 实现类
- setSql(String) - Method in class com.jfinal.plugin.activerecord.SqlPara
-
- setStat(Stat) - Method in class com.jfinal.template.Directive
-
指令被解析时注入指令 body 内容,仅对于具有 #end 结束符的指令有效
- setStat(Stat) - Method in class com.jfinal.template.stat.ast.ElseIf
-
take over setStat(...) method of super class
- setStat(Stat) - Method in class com.jfinal.template.stat.ast.If
-
take over setStat(...) method of super class
- setStat(Stat) - Method in class com.jfinal.template.stat.ast.Stat
-
- setSupportActiveRecord(boolean) - Static method in class com.jfinal.render.JspRender
-
Deprecated.
- setTablePrimaryKey(Table, String) - Static method in class com.jfinal.plugin.activerecord.CPI
-
- setTemplate(String) - Method in class com.jfinal.plugin.activerecord.generator.BaseModelGenerator
-
使用自定义模板生成 base model
- setTemplate(String) - Method in class com.jfinal.plugin.activerecord.generator.MappingKitGenerator
-
使用自定义模板生成 MappingKit
- setTemplate(String) - Method in class com.jfinal.plugin.activerecord.generator.ModelGenerator
-
使用自定义模板生成 model
- setTemplateLoadingPath(String) - Static method in class 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) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setTestOnReturn(boolean) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setTestWhileIdle(boolean) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setTestWhileIdle(boolean) - Method in class com.jfinal.plugin.redis.RedisPlugin
-
- setThreadLocalConnection(Connection) - Method in class com.jfinal.plugin.activerecord.Config
-
Support transaction with Transaction interceptor
- setThreadLocalJedis(Jedis) - Method in class com.jfinal.plugin.redis.Cache
-
- setTimeBetweenConnectErrorMillis(long) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setTimeBetweenEvictionRunsMillis(long) - Method in class com.jfinal.plugin.druid.DruidPlugin
-
- setTimeBetweenEvictionRunsMillis(int) - Method in class com.jfinal.plugin.redis.RedisPlugin
-
- setTimeStampPattern(String) - Static method in class com.jfinal.ext.kit.DateKit
-
- setTimestampPattern(String) - Method in class com.jfinal.json.JFinalJson
-
- setToClassPathSourceFactory() - Method in class com.jfinal.template.Engine
-
设置为 ClassPathSourceFactory 的快捷方法
- setTokenCache(IT