org.postgresql.pljava.internal
Class Backend
java.lang.Object
org.postgresql.pljava.internal.Backend
public class Backend
extends java.lang.Object
Provides access to some useful routines in the PostgreSQL server.
static Object | THREADLOCK - All native calls synchronize on this object.
|
THREADLOCK
public static final Object THREADLOCK
All native calls synchronize on this object.
addClassImages
public static void addClassImages(int jarId,
String urlString)
throws SQLException
clearFunctionCache
public static void clearFunctionCache()
getConfigOption
public static String getConfigOption(String key)
Returns the configuration option as read from the Global
Unified Config package (GUC).
key
- The name of the option.
getSession
public static Session getSession()
getStatementCacheSize
public static int getStatementCacheSize()
Returns the size of the statement cache.
- the size of the statement cache.
isCallingJava
public static boolean isCallingJava()
Returns true
if the backend is awaiting a return from a
call into the JVM. This method will only return false
when called from a thread other then the main thread and the main
thread has returned from the call into the JVM.
isReleaseLingeringSavepoints
public static boolean isReleaseLingeringSavepoints()
Returns the value of the GUC custom variable
pljava.release_lingering_savepoints
.
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT