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() |
Object |
invokeProcedure(CoreSession session,
String fullSPName,
Object[] spArgs)
Invokes the stored procedure handled by the engine.
|
void |
setSPUnitEntry(org.apache.directory.api.ldap.model.entry.Entry spUnit)
Registers an entry found to be containing a stored procedure unit which this engine can operate on.
|
public static final String STORED_PROC_LANG_ID
public JavaStoredProcEngine()
public Object invokeProcedure(CoreSession session, String fullSPName, Object[] spArgs) throws org.apache.directory.api.ldap.model.exception.LdapException
StoredProcEngine
invokeProcedure
in interface StoredProcEngine
session
- The CoreSession it's acting onfullSPName
- 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.org.apache.directory.api.ldap.model.exception.LdapException
- If an error occurs during invocation.public String getSPLangId()
getSPLangId
in interface StoredProcEngine
public void setSPUnitEntry(org.apache.directory.api.ldap.model.entry.Entry spUnit)
StoredProcEngine
setSPUnitEntry
in interface StoredProcEngine
spUnit
- The Stored Procedure unit to setCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.