public class FunctionAlias extends SchemaObjectBase
| 限定符和类型 | 类和说明 |
|---|---|
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| 限定符和类型 | 方法和说明 |
|---|---|
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 |
isBufferResultSetToLocalTemp()
Should the return value ResultSet be buffered in a local temporary file?
|
boolean |
isDeterministic() |
static FunctionAlias |
newInstance(Schema schema,
int id,
String name,
String javaClassMethod,
boolean force,
boolean bufferResultSetToLocalTemp)
Create a new alias based on a method name.
|
static FunctionAlias |
newInstanceFromSource(Schema schema,
int id,
String name,
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, initSchemaObjectBase, isHiddengetChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, 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, String name, 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, String name, 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 String getCreateSQLForCopy(Table table, String quotedName)
DbObjecttable - the new tablequotedName - the quoted namepublic String getDropSQL()
DbObjectBasegetDropSQL 在接口中 DbObjectgetDropSQL 在类中 DbObjectBasepublic String getSQL()
DbObjectgetSQL 在接口中 DbObjectgetSQL 在类中 SchemaObjectBasepublic String getCreateSQL()
DbObjectBasegetCreateSQL 在接口中 DbObjectgetCreateSQL 在类中 DbObjectBasepublic int getType()
DbObjectpublic void removeChildrenAndResources(Session session)
DbObjectBaseremoveChildrenAndResources 在接口中 DbObjectremoveChildrenAndResources 在类中 DbObjectBasesession - the sessionpublic void checkRename()
DbObjectBasecheckRename 在接口中 DbObjectcheckRename 在类中 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()
public boolean isBufferResultSetToLocalTemp()
Copyright © 2017. All rights reserved.