public class JavaStoredProcEngine extends Object implements StoredProcEngine
StoredProcEngine
implementation specific to Java stored procedures.Modifier and Type | Field and Description |
---|---|
static String |
STORED_PROC_LANG_ID |
Constructor and Description |
---|
JavaStoredProcEngine() |
Modifier and Type | Method and Description |
---|---|
String |
getSPLangId()
Returns the unique identifier of the supported stored procedure language.
|
Object |
invokeProcedure(CoreSession session,
String fullSPName,
Object[] spArgs)
Invokes the stored procedure handled by the engine.
|
void |
setSPUnitEntry(org.apache.directory.shared.ldap.entry.ServerEntry spUnit)
Registers an entry found to be contaning a stored procedure unit which this engine can operate on.
|
public static final String STORED_PROC_LANG_ID
public Object invokeProcedure(CoreSession session, String fullSPName, Object[] spArgs) throws Exception
StoredProcEngine
invokeProcedure
in interface StoredProcEngine
fullSPName
- A fully qualified name of the stored procedure including its unit name.spArgs
- A list or arguments to be passed to the stored procedure. It should be an empty array if there aren't any parameters defined.Exception
public String getSPLangId()
StoredProcEngine
getSPLangId
in interface StoredProcEngine
public void setSPUnitEntry(org.apache.directory.shared.ldap.entry.ServerEntry spUnit)
StoredProcEngine
This method should be called before an attempt to invoke a stored procedure via this Engine.
setSPUnitEntry
in interface StoredProcEngine
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.