public class StoredProcExecutionManager extends Object
StoredProcEngineConfig
s. A container reference
as the base for Stored Procedure storage on the DIT is also handled by this class.Constructor and Description |
---|
StoredProcExecutionManager(String storedProcContainer,
List<StoredProcEngineConfig> storedProcEngineConfigs)
Creates a
StoredProcExecutionManager instance. |
Modifier and Type | Method and Description |
---|---|
org.apache.directory.api.ldap.model.entry.Entry |
findStoredProcUnit(CoreSession session,
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. |
public StoredProcExecutionManager(String storedProcContainer, List<StoredProcEngineConfig> storedProcEngineConfigs)
StoredProcExecutionManager
instance.storedProcContainer
- The base of the DIT subtree used for storing stored procedure units.storedProcEngineConfigs
- A list of StoredProcEngineConfig
s to register different StoredProcEngine
s with this manager.public org.apache.directory.api.ldap.model.entry.Entry findStoredProcUnit(CoreSession session, String fullSPName) throws Exception
session
- the session with a core directory servicefullSPName
- Full name of the Stored Procedure including the unit name.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.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.