类 SystemFunctionFactory
java.lang.Object
org.anyline.data.adapter.function.SystemFunctionFactory
系统函数工厂
维护两个查找维度:
- metas — 按 DatabaseType → META → SystemFunction,用于 META 级跨库映射
- names — 按 DatabaseType → 函数名 → SystemFunction,用于名称级查找和 ILLEGAL 检测
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static SystemFunctionfunction(DatabaseType type, String name) 按函数名查找(先查原名,再查大写,未命中回退到 type.origin())static SystemFunctionfunction(DatabaseType type, SystemFunction.META meta) 按 META 查找函数(先查 type,未命中回退到 type.origin())static void明确不支持的函数static Map<Object,Map<SystemFunction.META, SystemFunction>> metas()static Map<SystemFunction.META,SystemFunction> metas(DatabaseType type) static Map<Object,Map<String, SystemFunction>> names()static Map<String,SystemFunction> names(DatabaseType type) static voidreg(Object type, SystemFunction function) 注册函数定义(同时注册到 metas 和 names 两个 Map)
-
字段详细资料
-
metas
-
names
-
illegals
-
-
构造器详细资料
-
SystemFunctionFactory
public SystemFunctionFactory()
-
-
方法详细资料
-
reg
注册函数定义(同时注册到 metas 和 names 两个 Map)- 参数:
type- DatabaseOrigin 或 DatabaseTypefunction- 函数定义
-
illegal
明确不支持的函数- 参数:
type- DatabaseOrigin 或 DatabaseTypefunctions- 函数名称
-
function
按 META 查找函数(先查 type,未命中回退到 type.origin())- 参数:
type- 数据库类型meta- 统一函数元数据标识- 返回:
- 函数定义,未找到返回 null
-
function
按函数名查找(先查原名,再查大写,未命中回退到 type.origin())- 参数:
type- 数据库类型name- 函数名称(SQL 中使用的名称)- 返回:
- 函数定义,未找到返回 null
-
metas
-
metas
-
names
-
names
-