org.postgresql.pljava.internal

Class Session

Implemented Interfaces:
Session

public class Session
extends java.lang.Object
implements Session

An instance of this interface reflects the current session. The attribute store is transactional.

Method Summary

void
addSavepointListener(SavepointListener listener)
Adds the specified listener to the list of listeners that will receive savepoint events.
void
addTransactionListener(TransactionListener listener)
Adds the specified listener to the list of listeners that will receive transactional events.
void
executeAsSessionUser(Connection conn, String statement)
Object
getAttribute(String attributeName)
ObjectPool
getObjectPool(Class cls)
String
getSessionUserName()
Return the session user.
String
getUserName()
Return the current user.
void
removeAttribute(String attributeName)
void
removeSavepointListener(SavepointListener listener)
Removes the specified listener from the list of listeners that will receive savepoint events.
void
removeTransactionListener(TransactionListener listener)
Removes the specified listener from the list of listeners that will receive transactional events.
void
setAttribute(String attributeName, Object value)

Method Details

addSavepointListener

public void addSavepointListener(SavepointListener listener)
Adds the specified listener to the list of listeners that will receive savepoint events.
Specified by:
addSavepointListener in interface Session

addTransactionListener

public void addTransactionListener(TransactionListener listener)
Adds the specified listener to the list of listeners that will receive transactional events.
Specified by:
addTransactionListener in interface Session

executeAsSessionUser

public void executeAsSessionUser(Connection conn,
                                 String statement)
            throws SQLException
Specified by:
executeAsSessionUser in interface Session

getAttribute

public Object getAttribute(String attributeName)
Specified by:
getAttribute in interface Session

getObjectPool

public ObjectPool getObjectPool(Class cls)
Specified by:
getObjectPool in interface Session

getSessionUserName

public String getSessionUserName()
Return the session user.
Specified by:
getSessionUserName in interface Session

getUserName

public String getUserName()
Return the current user.
Specified by:
getUserName in interface Session

removeAttribute

public void removeAttribute(String attributeName)
Specified by:
removeAttribute in interface Session

removeSavepointListener

public void removeSavepointListener(SavepointListener listener)
Removes the specified listener from the list of listeners that will receive savepoint events.
Specified by:
removeSavepointListener in interface Session

removeTransactionListener

public void removeTransactionListener(TransactionListener listener)
Removes the specified listener from the list of listeners that will receive transactional events.
Specified by:
removeTransactionListener in interface Session

setAttribute

public void setAttribute(String attributeName,
                         Object value)
Specified by:
setAttribute in interface Session

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT