|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.ProcedureManager
public class ProcedureManager
A DatabaseConnection procedure manager. This controls adding, updating, deleting and querying/calling stored procedures.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |