public class StoredProcExecutionManager
extends java.lang.Object
StoredProcEngineConfigs. A container reference
as the base for Stored Procedure storage on the DIT is also handled by this class.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
storedProcContainer |
private java.util.List<StoredProcEngineConfig> |
storedProcEngineConfigs |
| Constructor and Description |
|---|
StoredProcExecutionManager(java.lang.String storedProcContainer,
java.util.List<StoredProcEngineConfig> storedProcEngineConfigs)
Creates a
StoredProcExecutionManager instance. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.api.ldap.model.entry.Entry |
findStoredProcUnit(CoreSession session,
java.lang.String fullSPName)
Finds and returns a stored procedure unit entry whose identifier name
is extracted from fullSPName.
|
StoredProcEngine |
getStoredProcEngineInstance(org.apache.directory.api.ldap.model.entry.Entry spUnitEntry)
Initializes and returns a
StoredProcEngine instance which can operate on spUnitEntry
considering its specific stored procedure language. |
private final java.lang.String storedProcContainer
private final java.util.List<StoredProcEngineConfig> storedProcEngineConfigs
public StoredProcExecutionManager(java.lang.String storedProcContainer,
java.util.List<StoredProcEngineConfig> storedProcEngineConfigs)
StoredProcExecutionManager instance.storedProcContainer - The base of the DIT subtree used for storing stored procedure units.storedProcEngineConfigs - A list of StoredProcEngineConfigs to register different StoredProcEngines with this manager.public org.apache.directory.api.ldap.model.entry.Entry findStoredProcUnit(CoreSession session, java.lang.String fullSPName) throws java.lang.Exception
session - the session with a core directory servicefullSPName - Full name of the Stored Procedure including the unit name.java.lang.Exception - If the unit cannot be located or any other error occurs.public StoredProcEngine getStoredProcEngineInstance(org.apache.directory.api.ldap.model.entry.Entry spUnitEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
StoredProcEngine instance which can operate on spUnitEntry
considering its specific stored procedure language.spUnitEntry - The entry which a StoredProcEngine type will be mathched with respect to the language identifier.StoredProcEngine associated with spUnitEntry.org.apache.directory.api.ldap.model.exception.LdapException - If no StoredProcEngine that can be associated with the language identifier in spUnitEntry can be found.