org.postgresql.pljava.sqlj
Class Loader
ClassLoader
org.postgresql.pljava.sqlj.Loader
public class Loader
extends ClassLoader
static void | clearSchemaLoaders() - Removes all cached schema loaders, functions, and type maps.
|
protected Class | findClass(String name)
|
protected URL | findResource(String name)
|
protected Enumeration | findResources(String name)
|
static 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 ClassLoader | getSchemaLoader(String schemaName) - Obtain a loader that has been configured for the class path of the
schema named
schemaName .
|
static Map | getTypeMap(String schema) - Returns the SQL type
Oid to Java Class map that contains the
Java UDT mappings for the given schema .
|
clearSchemaLoaders
public static void clearSchemaLoaders()
Removes all cached schema loaders, functions, and type maps. This
method is called by the utility functions that manipulate the
data that has been cached. It is not intended to be called
from user code.
findClass
protected Class findClass(String name)
throws ClassNotFoundException
findResource
protected URL findResource(String name)
findResources
protected Enumeration findResources(String name)
throws IOException
getCurrentLoader
public static ClassLoader getCurrentLoader()
throws SQLException
Obtains the loader that is in effect for the current schema (i.e. the
schema that is first in the search path).
getSchemaLoader
public static ClassLoader getSchemaLoader(String schemaName)
throws SQLException
Obtain a loader that has been configured for the class path of the
schema named schemaName
. Class paths are defined using the
SQL procedure sqlj.set_classpath
.
schemaName
- The name of the schema.
getTypeMap
public static Map getTypeMap(String schema)
throws SQLException
Returns the SQL type
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.
- The Map, possibly empty but never
null
.
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT