|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
org.postgresql.pljava.sqlj.Loader
public class Loader
Method Summary | |
---|---|
static void |
clearSchemaLoaders()
Removes all cached schema loaders, functions, and type maps. |
protected java.lang.Class |
findClass(java.lang.String name)
|
protected java.net.URL |
findResource(java.lang.String name)
|
protected java.util.Enumeration<java.net.URL> |
findResources(java.lang.String name)
|
static java.lang.ClassLoader |
getCurrentLoader()
Obtains the loader that is in effect for the current schema (i.e. the schema that is first in the search path). |
static java.lang.ClassLoader |
getSchemaLoader(java.lang.String schemaName)
Obtain a loader that has been configured for the class path of the schema named schemaName . |
static java.util.Map |
getTypeMap(java.lang.String schema)
Returns the SQL type Oid to Java Class map that contains the
Java UDT mappings for the given schema . |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void clearSchemaLoaders()
public static java.lang.ClassLoader getCurrentLoader() throws java.sql.SQLException
java.sql.SQLException
public static java.lang.ClassLoader getSchemaLoader(java.lang.String schemaName) throws java.sql.SQLException
schemaName
. Class paths are defined using the
SQL procedure sqlj.set_classpath
.
schemaName
- The name of the schema.
java.sql.SQLException
public static java.util.Map getTypeMap(java.lang.String schema) throws java.sql.SQLException
Oid
to Java Class
map that contains the
Java UDT mappings for the given schema
.
This method is called by the function mapping mechanisms. Application code
should never call this method.
schema
- The schema
null
.
java.sql.SQLException
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
protected java.net.URL findResource(java.lang.String name)
findResource
in class java.lang.ClassLoader
protected java.util.Enumeration<java.net.URL> findResources(java.lang.String name) throws java.io.IOException
findResources
in class java.lang.ClassLoader
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |