org.apache.directory.server.core.sp.java
Class JavaStoredProcEngine
java.lang.Object
org.apache.directory.server.core.sp.java.JavaStoredProcEngine
- All Implemented Interfaces:
- StoredProcEngine
public class JavaStoredProcEngine
- extends java.lang.Object
- implements StoredProcEngine
A StoredProcEngine
implementation specific to Java stored procedures.
- Version:
- $Rev$ $Date$
- Author:
- Apache Directory Project
Method Summary |
java.lang.String |
getSPLangId()
Returns the unique identifier of the supported stored procedure language. |
java.lang.Object |
invokeProcedure(CoreSession session,
java.lang.String fullSPName,
java.lang.Object[] spArgs)
Invokes the stored procedure handled by the engine. |
void |
setSPUnitEntry(ServerEntry spUnit)
Registers an entry found to be contaning a stored procedure unit which this engine can operate on. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STORED_PROC_LANG_ID
public static final java.lang.String STORED_PROC_LANG_ID
- See Also:
- Constant Field Values
JavaStoredProcEngine
public JavaStoredProcEngine()
invokeProcedure
public java.lang.Object invokeProcedure(CoreSession session,
java.lang.String fullSPName,
java.lang.Object[] spArgs)
throws java.lang.Exception
- Description copied from interface:
StoredProcEngine
- Invokes the stored procedure handled by the engine.
- Specified by:
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.
- Returns:
- The value obtained from invoked procedure. The client should know what will return exactly so that it can downcast to the appropriate type.
- Throws:
java.lang.Exception
getSPLangId
public java.lang.String getSPLangId()
- Description copied from interface:
StoredProcEngine
- Returns the unique identifier of the supported stored procedure language.
- Specified by:
getSPLangId
in interface StoredProcEngine
setSPUnitEntry
public void setSPUnitEntry(ServerEntry spUnit)
- Description copied from interface:
StoredProcEngine
- Registers an entry found to be contaning a stored procedure unit which this engine can operate on.
This method should be called before an attempt to invoke a stored procedure via this Engine.
- Specified by:
setSPUnitEntry
in interface StoredProcEngine
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.