|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.connection.TSessionState
public class TSessionState
TSesssionState is the abstraction of the state information of a Tamino session. Such a session provides setters and getters for the sessionid, sessionkey.
Constructor Summary | |
---|---|
protected |
TSessionState()
Initializes the session state. |
Method Summary | |
---|---|
java.lang.String |
getSessionId()
Gets the session id. |
java.lang.String |
getSessionKey()
Gets the session key. |
boolean |
isGiven()
Indicates if a session state (sessionId,sessionKey) is given. |
protected boolean |
isHealthy()
Indicates whether the session state is healthy or not. |
void |
reset()
Resets the current session state. |
void |
setLocale(java.util.Locale locale)
Sets the locale. |
protected void |
setSessionId(java.lang.String newSessionId)
Sets the session id. |
protected void |
setSessionKey(java.lang.String newSessionKey)
Sets the session key. |
java.lang.String |
toString()
Writes the current session state into a String. |
void |
update(java.lang.String newSessionId,
java.lang.String newSessionKey)
Updates the session state with given sessionId and sessionKey. |
protected void |
update(TStreamHeader header)
Updates the session state according to the session specific content of the stream header. |
protected void |
writeTo(TCommandStatement commandStatement)
Writes the current session state to the given commandStatement. |
protected void |
writeTo(TStreamHeader streamHeader)
Writes the current transaction state to the given stream header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TSessionState()
Method Detail |
---|
protected void writeTo(TCommandStatement commandStatement)
commandStatement
- gets the current transaction state.protected void writeTo(TStreamHeader streamHeader)
streamHeader
- get the current transaction mode within its header.protected void update(TStreamHeader header) throws TSessionStateUpdateException
header
- is the TStreamHeader of a TInputStream instance.
TSessionStateUpdateException
- in case of a failure.public void update(java.lang.String newSessionId, java.lang.String newSessionKey) throws TSessionStateUpdateException
newSessionId
- is the new newSessionId.newSessionKey
- is the new newSessionKey.
TSessionStateUpdateException
- in case of a failure.public void reset()
protected void setSessionId(java.lang.String newSessionId)
sessionId
- is the current session id.protected void setSessionKey(java.lang.String newSessionKey)
sessionKey
- is the current session key.public java.lang.String getSessionId()
public java.lang.String getSessionKey()
public boolean isGiven()
protected boolean isHealthy()
public java.lang.String toString()
toString
in class java.lang.Object
public void setLocale(java.util.Locale locale)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |