public class JavaStoredProcEngine extends java.lang.Object implements StoredProcEngine
StoredProcEngine implementation specific to Java stored procedures.| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Class<?>[] |
EMPTY_CLASS_ARRAY |
private org.apache.directory.api.ldap.model.entry.Entry |
spUnit |
static java.lang.String |
STORED_PROC_LANG_ID |
| Constructor and Description |
|---|
JavaStoredProcEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSPLangId()
Returns the unique identifier of the supported stored procedure language.
|
private java.lang.Class<?>[] |
getTypesFromValues(java.lang.Object[] values) |
java.lang.Object |
invokeProcedure(CoreSession session,
java.lang.String fullSPName,
java.lang.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 contaning a stored procedure unit which this engine can operate on.
|
public static final java.lang.String STORED_PROC_LANG_ID
private org.apache.directory.api.ldap.model.entry.Entry spUnit
private static final java.lang.Class<?>[] EMPTY_CLASS_ARRAY
public java.lang.Object invokeProcedure(CoreSession session, java.lang.String fullSPName, java.lang.Object[] spArgs) throws org.apache.directory.api.ldap.model.exception.LdapException
StoredProcEngineinvokeProcedure in interface StoredProcEnginefullSPName - 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 java.lang.String getSPLangId()
StoredProcEnginegetSPLangId in interface StoredProcEnginepublic void setSPUnitEntry(org.apache.directory.api.ldap.model.entry.Entry spUnit)
StoredProcEngineThis method should be called before an attempt to invoke a stored procedure via this Engine.
setSPUnitEntry in interface StoredProcEngineprivate java.lang.Class<?>[] getTypesFromValues(java.lang.Object[] values)