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
AGGREGATE, 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, isHidden
getChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, rename, setComment, setModified, setObjectName, setTemporary, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren, getComment, getDatabase, getId, getName, isTemporary, rename, setComment, setTemporary
public 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)
DbObject
table
- the new tablequotedName
- the quoted namepublic String getDropSQL()
DbObjectBase
getDropSQL
in interface DbObject
getDropSQL
in class DbObjectBase
public String getSQL()
DbObject
getSQL
in interface DbObject
getSQL
in class SchemaObjectBase
public String getCreateSQL()
DbObjectBase
getCreateSQL
in interface DbObject
getCreateSQL
in class DbObjectBase
public int getType()
DbObject
public void removeChildrenAndResources(Session session)
DbObjectBase
removeChildrenAndResources
in interface DbObject
removeChildrenAndResources
in class DbObjectBase
session
- the sessionpublic void checkRename()
DbObjectBase
checkRename
in interface DbObject
checkRename
in class DbObjectBase
public 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.