org.postgresql.pljava.internal
Class Backend

java.lang.Object
  extended byorg.postgresql.pljava.internal.Backend

public class Backend
extends java.lang.Object

Provides access to some useful routines in the PostgreSQL server.


Field Summary
static java.lang.Object THREADLOCK
          All native calls synchronize on this object.
 
Constructor Summary
Backend()
           
 
Method Summary
static java.lang.String getConfigOption(java.lang.String key)
          Returns the configuration option as read from the Global Unified Config package (GUC).
static Session getSession()
           
static int getStatementCacheSize()
          Returns the configuration option as read from the Global Unified Config package (GUC).
static boolean isCallingJava()
          Returns true if the backend is awaiting a return from a call into the JVM.
static boolean isReleaseLingeringSavepoints()
          Returns the value of the GUC custom variable pljava.release_lingering_savepoints.
static void log(int logLevel, java.lang.String str)
          Log a message using the internal elog command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THREADLOCK

public static final java.lang.Object THREADLOCK
All native calls synchronize on this object.

Constructor Detail

Backend

public Backend()
Method Detail

getSession

public static Session getSession()

getConfigOption

public static java.lang.String getConfigOption(java.lang.String key)
Returns the configuration option as read from the Global Unified Config package (GUC).

Parameters:
key - The name of the option.
Returns:
The value of the option.

getStatementCacheSize

public static int getStatementCacheSize()
Returns the configuration option as read from the Global Unified Config package (GUC).

Returns:
The value of the option.

log

public static void log(int logLevel,
                       java.lang.String str)
Log a message using the internal elog command.

Parameters:
logLevel - The log level.
str - The message

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