public final class FunctionAlias extends UserDefinedFunction
Modifier and Type | Class and Description |
---|---|
static class |
FunctionAlias.JavaMethod
There may be multiple Java methods that match a function name.
|
AGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USER
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
Modifier and Type | Method and Description |
---|---|
FunctionAlias.JavaMethod |
findJavaMethod(Expression[] args)
Find the Java method that matches the arguments.
|
java.lang.String |
getCreateSQL()
Construct the CREATE ...
|
java.lang.String |
getDropSQL()
Construct a DROP ...
|
java.lang.String |
getJavaMethodName() |
FunctionAlias.JavaMethod[] |
getJavaMethods()
Get the Java methods mapped by this function.
|
java.lang.String |
getSource() |
int |
getType()
Get the object type.
|
boolean |
isDeterministic() |
static FunctionAlias |
newInstance(Schema schema,
int id,
java.lang.String name,
java.lang.String javaClassMethod,
boolean force)
Create a new alias based on a method name.
|
static FunctionAlias |
newInstanceFromSource(Schema schema,
int id,
java.lang.String name,
java.lang.String source,
boolean force)
Create a new alias based on source code.
|
void |
removeChildrenAndResources(SessionLocal session)
Delete all dependent children objects and resources of this object.
|
void |
setDeterministic(boolean deterministic) |
checkRename, getJavaClassName
getSchema, getSQL, getSQL, isHidden
getChildren, getComment, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTraceSQL
public static FunctionAlias newInstance(Schema schema, int id, java.lang.String name, java.lang.String javaClassMethod, boolean force)
schema
- the schemaid
- the idname
- the namejavaClassMethod
- the class and method nameforce
- create the object even if the class or method does not existpublic static FunctionAlias newInstanceFromSource(Schema schema, int id, java.lang.String name, java.lang.String source, boolean force)
schema
- the schemaid
- the idname
- the namesource
- the source codeforce
- create the object even if the class or method does not existpublic java.lang.String getDropSQL()
DbObject
getDropSQL
in class DbObject
public java.lang.String getCreateSQL()
DbObject
getCreateSQL
in class DbObject
public int getType()
DbObject
public void removeChildrenAndResources(SessionLocal session)
DbObject
removeChildrenAndResources
in class DbObject
session
- the sessionpublic FunctionAlias.JavaMethod findJavaMethod(Expression[] args)
args
- the argument listDbException
- if no matching method could be foundpublic java.lang.String getJavaMethodName()
public FunctionAlias.JavaMethod[] getJavaMethods()
public void setDeterministic(boolean deterministic)
public boolean isDeterministic()
public java.lang.String getSource()