public final class JavaStoredProcUtils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
JavaStoredProcUtils()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
callStoredProcedure(javax.naming.ldap.LdapContext ctx,
java.lang.String procedureName,
java.lang.Object[] arguments) |
static byte[] |
getClassFileAsStream(java.lang.Class<?> clazz)
Returns the stream data of a Java class.
|
static void |
loadStoredProcedureClass(javax.naming.ldap.LdapContext ctx,
java.lang.Class<?> clazz)
Loads a Java class's stream data as a subcontext of an LdapContext given.
|
public static byte[] getClassFileAsStream(java.lang.Class<?> clazz)
throws javax.naming.NamingException
clazz - The class whose stream data will be retrieved.javax.naming.NamingException - If an IO error occurs during reading the class file.public static void loadStoredProcedureClass(javax.naming.ldap.LdapContext ctx,
java.lang.Class<?> clazz)
throws javax.naming.NamingException
ctx - The parent context of the Java class entry to be loaded.clazz - Class to be loaded.javax.naming.NamingException - If an error occurs during creating the subcontext.public static java.lang.Object callStoredProcedure(javax.naming.ldap.LdapContext ctx,
java.lang.String procedureName,
java.lang.Object[] arguments)
throws javax.naming.NamingException
javax.naming.NamingException