public final class JavaStoredProcUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
callStoredProcedure(LdapContext ctx,
String procedureName,
Object[] arguments) |
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
NamingException
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.