public class ProcedureManager
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
void |
defineJavaProcedure(ProcedureName procedure_name,
java.lang.String java_specification,
TType return_type,
TType[] param_types,
java.lang.String username) |
Defines a Java stored procedure.
|
void |
deleteProcedure(ProcedureName procedure_name) |
Deletes the procedure with the given name, or generates an error if the
procedure doesn't exist.
|
TObject |
invokeProcedure(ProcedureName procedure_name,
TObject[] params) |
Invokes the procedure with the given name and the given parameters and
returns the procedure return value.
|
static java.lang.reflect.Method |
javaProcedureMethod(java.lang.String location_str,
TType[] param_types) |
Given a Java location_str and a list of parameter types, returns an
immutable 'Method' object that can be used to invoke a Java stored
procedure.
|
static java.lang.String[] |
parseJavaLocationString(java.lang.String str) |
Given a location string as defined for a Java stored procedure, this
parses the string into the various parts.
|
boolean |
procedureExists(ProcedureName procedure_name) |
Returns true if the procedure with the given name exists.
|
boolean |
procedureExists(TableName procedure_name) |
Returns true if the procedure with the given table name exists.
|
public static java.lang.String[] parseJavaLocationString(java.lang.String str)
public boolean procedureExists(ProcedureName procedure_name)
public boolean procedureExists(TableName procedure_name)
public void defineJavaProcedure(ProcedureName procedure_name, java.lang.String java_specification, TType return_type, TType[] param_types, java.lang.String username) throws DatabaseException
If 'return_type' is null then the procedure does not return a value.
DatabaseException
public void deleteProcedure(ProcedureName procedure_name) throws DatabaseException
DatabaseException
public TObject invokeProcedure(ProcedureName procedure_name, TObject[] params)
public static java.lang.reflect.Method javaProcedureMethod(java.lang.String location_str, TType[] param_types)
Returns null if the invokation method could not be found.
Copyright © 2018. All rights reserved.