edi.rule.extend.classes.JSRuleOracleFunctions Maven / Gradle / Ivy
package edi.rule.extend.classes;
import edi.rule.extend.classes.abstracts.JSRuleDBFunctions;
import edi.rule.work.cache.JSRuleFunctionInfo;
/**
* @author 摩拉克斯
* @date 2022年3月29日 下午2:30:42
* 自定义Oracle函数适配模型
*/
public class JSRuleOracleFunctions extends JSRuleDBFunctions{
static {
/*数字*/
functions.put("abs", new JSRuleFunctionInfo("abs",1));
/*字符串*/
functions.put("decode", new JSRuleFunctionInfo("decode"));
functions.put("initcap", new JSRuleFunctionInfo("initcap",1));
functions.put("lower", new JSRuleFunctionInfo("lower",1));
functions.put("upper", new JSRuleFunctionInfo("upper",1));
functions.put("trim", new JSRuleFunctionInfo("trim",1));
functions.put("instr", new JSRuleFunctionInfo("instr",2));
functions.put("concat", new JSRuleFunctionInfo("concat",2));
functions.put("replace", new JSRuleFunctionInfo("replace",3));
functions.put("translate", new JSRuleFunctionInfo("translate",3));
/*日期*/
functions.put("last_day", new JSRuleFunctionInfo("last_day",1));
functions.put("add_months", new JSRuleFunctionInfo("add_months",2));
functions.put("months_between", new JSRuleFunctionInfo("months_between",2));
}
}