public class ProcedureManager extends Object
Modifier and Type | Method and Description |
---|---|
void |
defineJavaProcedure(ProcedureName procedure_name,
String java_specification,
TType return_type,
TType[] param_types,
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 Method |
javaProcedureMethod(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 String[] |
parseJavaLocationString(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 String[] parseJavaLocationString(String str)
public boolean procedureExists(ProcedureName procedure_name)
public boolean procedureExists(TableName procedure_name)
public void defineJavaProcedure(ProcedureName procedure_name, String java_specification, TType return_type, TType[] param_types, 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 Method javaProcedureMethod(String location_str, TType[] param_types)
Returns null if the invokation method could not be found.
Copyright © 2015. All rights reserved.