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

B32476-04

oracle.toplink.sessions
Class SessionLogEntry

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

Deprecated. Please use oracle.toplink.logging.SessionLogEntry

public class SessionLogEntry
extends java.lang.Object
implements java.io.Serializable

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


SessionLogEntry

public SessionLogEntry(oracle.toplink.internal.sessions.AbstractSession session,
                       java.lang.Throwable throwable)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
Create a new session log entry for a request level, a session, a message and an accessor.
Possible values for log level are listed in SessionLog.

See Also:
SessionLog

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)
Deprecated. 
Create a new session log entry for a request level, a session, a message and an accessor.
Possible values for log level and category are listed in SessionLog.

See Also:
SessionLog

SessionLogEntry

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

See Also:
SessionLog
Method Detail

getConnection

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


getDate

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


getException

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


getMessage

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


getSession

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


getThread

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


getLevel

public int getLevel()
Deprecated. 
Return the request level of the log entry.
Possible values for log level are listed in SessionLog.

See Also:
SessionLog

getNameSpace

public java.lang.String getNameSpace()
Deprecated. 
Return the name space of the log entry.
Possible values for log category (a String) are listed in SessionLog.

See Also:
SessionLog

getParameters

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


shouldTranslate

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


hasException

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


isDebug

public boolean isDebug()
Deprecated. replaced by level

OBSOLETE:


setConnection

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


setDate

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


setException

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


setIsDebug

public void setIsDebug(boolean isDebug)
Deprecated. replaced by level

OBSOLETE:


setMessage

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


setSession

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


setThread

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


setLevel

public void setLevel(int level)
Deprecated. 
Set the request level of the log entry.
Possible values for log level are listed in SessionLog.

See Also:
SessionLog

setNameSpace

public void setNameSpace(java.lang.String nameSpace)
Deprecated. 
Set the name space of the log entry.
Possible values for log category (a String) are listed in SessionLog.

See Also:
SessionLog

setParameters

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


setShouldTranslate

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


toString

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

Overrides:
toString in class java.lang.Object

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