public class FunctionAlias extends SchemaObjectBase
| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionAlias.JavaMethod
There may be multiple Java methods that match a function name.
|
comment, database, trace| Modifier and Type | Method and Description |
|---|---|
void |
checkRename()
Check if this object can be renamed.
|
FunctionAlias.JavaMethod |
findJavaMethod(Expression[] args)
Find the Java method that matches the arguments.
|
java.lang.String |
getCreateSQL()
Build a SQL statement to re-create this object.
|
java.lang.String |
getCreateSQLForCopy(Table table,
java.lang.String quotedName)
Build a SQL statement to re-create the object, or to create a copy of the
object with a different name or referencing a different table
|
java.lang.String |
getDropSQL()
Build a SQL statement to drop this object.
|
java.lang.String |
getJavaClassName() |
java.lang.String |
getJavaMethodName() |
FunctionAlias.JavaMethod[] |
getJavaMethods()
Get the Java methods mapped by this function.
|
java.lang.String |
getSource() |
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder)
Appends the SQL name of this object (may be quoted) to the specified
builder.
|
int |
getType()
Get the object type.
|
boolean |
isBufferResultSetToLocalTemp()
Should the return value ResultSet be buffered in a local temporary file?
|
boolean |
isDeterministic() |
static FunctionAlias |
newInstance(Schema schema,
int id,
java.lang.String name,
java.lang.String javaClassMethod,
boolean force,
boolean bufferResultSetToLocalTemp)
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,
boolean bufferResultSetToLocalTemp)
Create a new alias based on source code.
|
void |
removeChildrenAndResources(Session session)
Remove all dependent objects and free all resources (files, blocks in
files) of this object.
|
void |
setDeterministic(boolean deterministic) |
getSchema, getSQL, isHiddengetChildren, getComment, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildren, getComment, getDatabase, getId, getName, isTemporary, rename, setComment, setTemporarypublic static FunctionAlias newInstance(Schema schema, int id, java.lang.String name, java.lang.String javaClassMethod, boolean force, boolean bufferResultSetToLocalTemp)
schema - the schemaid - the idname - the namejavaClassMethod - the class and method nameforce - create the object even if the class or method does not existbufferResultSetToLocalTemp - whether the result should be bufferedpublic static FunctionAlias newInstanceFromSource(Schema schema, int id, java.lang.String name, java.lang.String source, boolean force, boolean bufferResultSetToLocalTemp)
schema - the schemaid - the idname - the namesource - the source codeforce - create the object even if the class or method does not existbufferResultSetToLocalTemp - whether the result should be bufferedpublic java.lang.String getCreateSQLForCopy(Table table, java.lang.String quotedName)
DbObjecttable - the new tablequotedName - the quoted namepublic java.lang.String getDropSQL()
DbObjectBasegetDropSQL in interface DbObjectgetDropSQL in class DbObjectBasepublic java.lang.StringBuilder getSQL(java.lang.StringBuilder builder)
DbObjectgetSQL in interface DbObjectgetSQL in class SchemaObjectBasebuilder - string builderpublic java.lang.String getCreateSQL()
DbObjectBasegetCreateSQL in interface DbObjectgetCreateSQL in class DbObjectBasepublic int getType()
DbObjectpublic void removeChildrenAndResources(Session session)
DbObjectBaseremoveChildrenAndResources in interface DbObjectremoveChildrenAndResources in class DbObjectBasesession - the sessionpublic void checkRename()
DbObjectBasecheckRename in interface DbObjectcheckRename in class DbObjectBasepublic FunctionAlias.JavaMethod findJavaMethod(Expression[] args)
args - the argument listDbException - if no matching method could be foundpublic java.lang.String getJavaClassName()
public java.lang.String getJavaMethodName()
public FunctionAlias.JavaMethod[] getJavaMethods()
public void setDeterministic(boolean deterministic)
public boolean isDeterministic()
public java.lang.String getSource()
public boolean isBufferResultSetToLocalTemp()