|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.postgresql.pljava.Session
An instance of this interface reflects the current session. The attribute store is transactional.
| Constructor Summary | |
Session()
|
|
| Method Summary | |
void |
addTransactionListener(TransactionListener listener)
Adds the specified listener to the list of listeners that will receive transactional events. |
static Session |
current()
Returns the current session. |
java.lang.Object |
getAttribute(java.lang.String attributeName)
|
static java.lang.String |
getSessionUserName()
Return the session user. |
TransactionListener[] |
getTransactionListeners()
Returns the list of listeners that will receive transactional events. |
java.lang.String |
getUserName()
Return the current user. |
void |
onEOXact(boolean isCommit)
Callback received from the backend when a transaction has ended. |
void |
removeAttribute(java.lang.String attributeName)
|
void |
removeTransactionListener(TransactionListener listener)
Removes the specified listener from the list of listeners that will receive transactional events. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Session()
| Method Detail |
public void addTransactionListener(TransactionListener listener)
public java.lang.Object getAttribute(java.lang.String attributeName)
public static Session current()
public TransactionListener[] getTransactionListeners()
public java.lang.String getUserName()
public static java.lang.String getSessionUserName()
public void onEOXact(boolean isCommit)
EOXactListener
onEOXact in interface EOXactListenerisCommit - Set to true if the commit was a success
and false if the transaction aborted.public void removeAttribute(java.lang.String attributeName)
public void setAttribute(java.lang.String attributeName,
java.lang.Object value)
public void removeTransactionListener(TransactionListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||