public final class JavaStoredProcUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
callStoredProcedure(LdapContext ctx,
String procedureName,
Object[] arguments)
Invoke a Stored Procedure
|
static byte[] |
getClassFileAsStream(Class<?> clazz)
Returns the stream data of a Java class.
|
static void |
loadStoredProcedureClass(LdapContext ctx,
Class<?> clazz)
Loads a Java class's stream data as a subcontext of an LdapContext given.
|
public static byte[] getClassFileAsStream(Class<?> clazz) throws NamingException
clazz
- The class whose stream data will be retrieved.NamingException
- If an IO error occurs during reading the class file.public static void loadStoredProcedureClass(LdapContext ctx, Class<?> clazz) throws NamingException
ctx
- The parent context of the Java class entry to be loaded.clazz
- Class to be loaded.NamingException
- If an error occurs during creating the subcontext.public static Object callStoredProcedure(LdapContext ctx, String procedureName, Object[] arguments) throws NamingException
ctx
- The execution contextprocedureName
- The procedure to executearguments
- The procedure's argumentsNamingException
- If we have had an error whil executing the stored procedureCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.