Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.logging
Class SessionLogEntry

java.lang.Object
  extended by oracle.toplink.sessions.SessionLogEntry
      extended by oracle.toplink.logging.SessionLogEntry
All Implemented Interfaces:
java.io.Serializable

public class SessionLogEntry
extends SessionLogEntry

SessionLogEntry is a simple container object that holds all the information pertinent to a TopLink logging event. It has a date/time stamp indicating when the event took place. It holds the session, thread, and accessor responsible for the event. And it holds whatever message was passed through to be logged.

Since:
TOPLink/Java 3.0
See Also:
SessionLog, DefaultSessionLog, Serialized Form

Constructor Summary
SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session)
          Create a new session log entry for a session
SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session, int level, java.lang.String category, java.lang.Throwable throwable)
          Create a new session log entry for a session, a level, a category and an exception
SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session, java.lang.String message)
          Create a new session log entry for a session and a message
SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session, java.lang.String message, Accessor connection)
          Create a new session log entry for a session, a message and an accessor
SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session, java.lang.String message, boolean isDebug)
          Deprecated. replaced by SessionLogEntry(int level, Session session, String message, Object[] params, Accessor connection, boolean shouldTranslate)
SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session, java.lang.String message, boolean isDebug, Accessor connection)
          Deprecated. replaced by SessionLogEntry(int level, Session session, String message, Object[] params, Accessor connection, boolean shouldTranslate)
SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session, java.lang.Throwable throwable)
          Create a new session log entry for a session and an exception
SessionLogEntry(int level, oracle.toplink.internal.sessions.AbstractSession session, java.lang.String message, java.lang.Object[] params, Accessor connection, boolean shouldTranslate)
          Create a new session log entry for a request level, a session, a message and an accessor
SessionLogEntry(int level, java.lang.String category, oracle.toplink.internal.sessions.AbstractSession session, java.lang.String message, java.lang.Object[] params, Accessor connection, boolean shouldTranslate)
          Create a new session log entry for a request level, a session, a message and an accessor
 
Method Summary
 Accessor getConnection()
          Return the connection that generated the log entry.
 java.util.Date getDate()
          Return the date of the log entry.
 java.lang.Throwable getException()
          Return the exception that caused the log entry.
 int getLevel()
          Return the request level of the log entry.
 java.lang.String getMessage()
          Return the log entry's message.
 java.lang.String getNameSpace()
          Return the name space of the log entry.
 java.lang.Object[] getParameters()
          Return the array of parameters to the message.
 oracle.toplink.internal.sessions.AbstractSession getSession()
          Return the session that generated the log entry.
 java.lang.Thread getThread()
          Return the thread that was active when the log entry was generated.
 boolean hasException()
          Return if the log entry was for an exception.
 void setConnection(Accessor connection)
          Set the connection that generated the log entry.
 void setDate(java.util.Date date)
          Set the date of the log entry.
 void setException(java.lang.Throwable throwable)
          Set the exception that caused the log entry.
 void setLevel(int level)
          Set the request level of the log entry.
 void setMessage(java.lang.String message)
          Set the entry's message.
 void setNameSpace(java.lang.String nameSpace)
          Set the name space of the log entry.
 void setParameters(java.lang.Object[] params)
          Set the array of parameters to the message.
 void setSession(oracle.toplink.internal.sessions.AbstractSession session)
          Set the session that generated the log entry.
 void setShouldTranslate(boolean shouldTranslate)
          Set if the message should be translated.
 void setThread(java.lang.Thread thread)
          Set the thread that was active when the log entry was generated.
 boolean shouldTranslate()
          Return if the message should be translated.
 java.lang.String toString()
          Print message.
 
Methods inherited from class oracle.toplink.sessions.SessionLogEntry
isDebug, setIsDebug
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionLogEntry

public SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session)
Create a new session log entry for a session


SessionLogEntry

public SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session,
                       java.lang.Throwable throwable)
Create a new session log entry for a session and an exception


SessionLogEntry

public SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session,
                       java.lang.String message)
Create a new session log entry for a session and a message


SessionLogEntry

public SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session,
                       java.lang.String message,
                       Accessor connection)
Create a new session log entry for a session, a message and an accessor


SessionLogEntry

public SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session,
                       java.lang.String message,
                       boolean isDebug,
                       Accessor connection)
Deprecated. replaced by SessionLogEntry(int level, Session session, String message, Object[] params, Accessor connection, boolean shouldTranslate)

OBSOLETE:


SessionLogEntry

public SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session,
                       java.lang.String message,
                       boolean isDebug)
Deprecated. replaced by SessionLogEntry(int level, Session session, String message, Object[] params, Accessor connection, boolean shouldTranslate)

OBSOLETE:


SessionLogEntry

public SessionLogEntry(int level,
                       oracle.toplink.internal.sessions.AbstractSession session,
                       java.lang.String message,
                       java.lang.Object[] params,
                       Accessor connection,
                       boolean shouldTranslate)
Create a new session log entry for a request level, a session, a message and an accessor


SessionLogEntry

public SessionLogEntry(int level,
                       java.lang.String category,
                       oracle.toplink.internal.sessions.AbstractSession session,
                       java.lang.String message,
                       java.lang.Object[] params,
                       Accessor connection,
                       boolean shouldTranslate)
Create a new session log entry for a request level, a session, a message and an accessor


SessionLogEntry

public SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session,
                       int level,
                       java.lang.String category,
                       java.lang.Throwable throwable)
Create a new session log entry for a session, a level, a category and an exception

Method Detail

getConnection

public Accessor getConnection()
Return the connection that generated the log entry.

Overrides:
getConnection in class SessionLogEntry

getDate

public java.util.Date getDate()
Return the date of the log entry.

Overrides:
getDate in class SessionLogEntry

getException

public java.lang.Throwable getException()
Return the exception that caused the log entry.

Overrides:
getException in class SessionLogEntry

getMessage

public java.lang.String getMessage()
Return the log entry's message.

Overrides:
getMessage in class SessionLogEntry

getSession

public oracle.toplink.internal.sessions.AbstractSession getSession()
Return the session that generated the log entry.

Overrides:
getSession in class SessionLogEntry

getThread

public java.lang.Thread getThread()
Return the thread that was active when the log entry was generated.

Overrides:
getThread in class SessionLogEntry

getLevel

public int getLevel()
Return the request level of the log entry.

Overrides:
getLevel in class SessionLogEntry
See Also:
SessionLog

getNameSpace

public java.lang.String getNameSpace()
Return the name space of the log entry.

Overrides:
getNameSpace in class SessionLogEntry
See Also:
SessionLog

getParameters

public java.lang.Object[] getParameters()
Return the array of parameters to the message.

Overrides:
getParameters in class SessionLogEntry

shouldTranslate

public boolean shouldTranslate()
Return if the message should be translated.

Overrides:
shouldTranslate in class SessionLogEntry

hasException

public boolean hasException()
Return if the log entry was for an exception.

Overrides:
hasException in class SessionLogEntry

setConnection

public void setConnection(Accessor connection)
Set the connection that generated the log entry.

Overrides:
setConnection in class SessionLogEntry

setDate

public void setDate(java.util.Date date)
Set the date of the log entry.

Overrides:
setDate in class SessionLogEntry

setException

public void setException(java.lang.Throwable throwable)
Set the exception that caused the log entry.

Overrides:
setException in class SessionLogEntry

setMessage

public void setMessage(java.lang.String message)
Set the entry's message.

Overrides:
setMessage in class SessionLogEntry

setSession

public void setSession(oracle.toplink.internal.sessions.AbstractSession session)
Set the session that generated the log entry.

Overrides:
setSession in class SessionLogEntry

setThread

public void setThread(java.lang.Thread thread)
Set the thread that was active when the log entry was generated.

Overrides:
setThread in class SessionLogEntry

setLevel

public void setLevel(int level)
Set the request level of the log entry.

Overrides:
setLevel in class SessionLogEntry
See Also:
SessionLog

setNameSpace

public void setNameSpace(java.lang.String nameSpace)
Set the name space of the log entry.

Overrides:
setNameSpace in class SessionLogEntry
See Also:
SessionLog

setParameters

public void setParameters(java.lang.Object[] params)
Set the array of parameters to the message.

Overrides:
setParameters in class SessionLogEntry

setShouldTranslate

public void setShouldTranslate(boolean shouldTranslate)
Set if the message should be translated.

Overrides:
setShouldTranslate in class SessionLogEntry

toString

public java.lang.String toString()
Print message.

Overrides:
toString in class SessionLogEntry

Copyright © 1998, 2010, Oracle. All Rights Reserved.