|
||||||||||
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 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. |
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 . |
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 ClassLoader getCurrentLoader() throws SQLException
SQLException
public static ClassLoader getSchemaLoader(String schemaName) throws SQLException
schemaName
. Class paths are defined using the
SQL procedure sqlj.set_classpath
.
schemaName
- The name of the schema.
SQLException
public static Map getTypeMap(String schema) throws 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
.
SQLException
protected Class findClass(String name) throws ClassNotFoundException
findClass
in class ClassLoader
ClassNotFoundException
protected URL findResource(String name)
findResource
in class ClassLoader
protected Enumeration findResources(String name) throws IOException
findResources
in class ClassLoader
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |