public class ProxyConnection
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addCursor(java.lang.String cursorId,
ProxyCursor cursor)
Adds an open cursor to this proxy session.
|
boolean |
closeCursor(java.lang.String cursorId)
Closes a cursor identified by specified cursor ID.
|
void |
commit()
Commits the transaction on this connection.
|
void |
executeOnClose(java.lang.String plsql)
Registers PLSQL block to be executed before closing this connection.
|
java.sql.Connection |
getConnection()
Gets the wrapped Connection.
|
ProxyCursor |
getCursor(java.lang.String cursorId)
Gets an open cursor identified by specified cursor ID.
|
long |
getDedicatedConnectionTimestamp()
Gets the last-access timestamp for this dedicated connection.
|
java.lang.String |
getEndUser()
Gets the end user for this proxy session.
|
java.lang.String |
getFndUser()
Gets FND user for this proxy session.
|
java.lang.String |
getLanguage()
Gets the language for this proxy session.
|
java.lang.String |
getSessionId()
Gets the session ID for this proxy session.
|
boolean |
inCleanupQueue()
Checks if this connection is on the cleanup queue.
|
boolean |
isDedicated()
Indicate if this connection is a dedicated connection.
|
void |
rollback()
Rolls back the transaction on this connection.
|
void |
setDedicated(boolean flag)
Mark this connection as a dedicated connection.
|
void |
setEndUser(java.lang.String endUser)
Sets the end user for this proxy session.
|
void |
setFndUser(java.lang.String fndUser)
Sets FND user for this proxy session.
|
void |
setInCleanupQueue(boolean flag)
Sets inCleanupQueue-status of this connection.
|
void |
setSessionId(java.lang.String sessionId)
Sets the session ID for this proxy session.
|
void |
setUsedByRequest(boolean flag)
Sets usedByRequest-status of this connection.
|
java.lang.String |
toString()
Returns string describing this proxy connection.
|
void |
touchCursor(java.lang.String cursorId)
Mark the cursor as being accessed by the current request.
|
void |
touchDedicatedConnection()
Update the last-access timestamp for this dedicated connection.
|
boolean |
usedByRequest()
Checks if this connection is used by a request thread.
|
public void touchCursor(java.lang.String cursorId)
cursorId - client-specific ID for a cursorpublic void setDedicated(boolean flag)
flag - true to mark this connection as dedicated, false to clear this flagpublic boolean isDedicated()
public void touchDedicatedConnection()
public long getDedicatedConnectionTimestamp()
public void setUsedByRequest(boolean flag)
flag - true, to mark the connection as being in use by a request thread, false otherwisepublic boolean usedByRequest()
public void setInCleanupQueue(boolean flag)
flag - true, to mark the connection as waiting for cleanup on the cleanup queue, false otherwisepublic boolean inCleanupQueue()
public void setFndUser(java.lang.String fndUser)
fndUser - FND user running this proxy sessionpublic java.lang.String getFndUser()
public java.sql.Connection getConnection()
public void setEndUser(java.lang.String endUser)
endUser - end user running this proxy sessionpublic java.lang.String getEndUser()
public java.lang.String getLanguage()
public java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId - session IDpublic void addCursor(java.lang.String cursorId,
ProxyCursor cursor)
throws java.sql.SQLException
cursorId - string identifying the cursorcursor - an instance representing an open cursorjava.sql.SQLException - if a JDBC error occurspublic ProxyCursor getCursor(java.lang.String cursorId)
cursorId - string identifying the cursorpublic boolean closeCursor(java.lang.String cursorId)
throws java.sql.SQLException
cursorId - string identifying the cursor to closejava.sql.SQLException - if a JDBC error occurspublic void commit()
throws java.sql.SQLException
java.sql.SQLException - if a JDBC error occurspublic void rollback()
throws java.sql.SQLException
java.sql.SQLException - if a JDBC error occurspublic java.lang.String toString()
toString in class java.lang.Objectpublic void executeOnClose(java.lang.String plsql)
plsql - PLSQL block