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, traceAGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE| 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.
|
String |
getCreateSQL()
Build a SQL statement to re-create this object.
|
String |
getCreateSQLForCopy(Table table,
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
|
String |
getDropSQL()
Build a SQL statement to drop this object.
|
String |
getJavaClassName() |
String |
getJavaMethodName() |
FunctionAlias.JavaMethod[] |
getJavaMethods()
Get the Java methods mapped by this function.
|
String |
getSource() |
String |
getSQL()
Get the SQL name of this object (may be quoted).
|
int |
getType()
Get the object type.
|
boolean |
isDeterministic() |
static FunctionAlias |
newInstance(Schema schema,
int id,
String name,
String javaClassMethod,
boolean force)
Create a new alias based on a method name.
|
static FunctionAlias |
newInstanceFromSource(Schema schema,
int id,
String name,
String source,
boolean force)
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, initSchemaObjectBase, isHiddengetChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, 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, String name, 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, String name, 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 String getCreateSQLForCopy(Table table, String quotedName)
DbObjecttable - the new tablequotedName - the quoted namepublic String getDropSQL()
DbObjectBasegetDropSQL in interface DbObjectgetDropSQL in class DbObjectBasepublic String getSQL()
DbObjectgetSQL in interface DbObjectgetSQL in class SchemaObjectBasepublic 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 String getJavaClassName()
public String getJavaMethodName()
public FunctionAlias.JavaMethod[] getJavaMethods()
public void setDeterministic(boolean deterministic)
public boolean isDeterministic()
public String getSource()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.