Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.sessions
Class SessionLogEntry

java.lang.Object
  extended byoracle.toplink.sessions.SessionLogEntry

All Implemented Interfaces:
java.io.Serializable

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.publicinterface.Session session)
PUBLIC: Create a new session log entry for a session
SessionLogEntry(oracle.toplink.publicinterface.Session session, java.lang.Exception exception)
PUBLIC: Create a new session log entry for a session and an exception
SessionLogEntry(oracle.toplink.publicinterface.Session session, java.lang.String message)
PUBLIC: Create a new session log entry for a session and a message
SessionLogEntry(oracle.toplink.publicinterface.Session session, java.lang.String message, oracle.toplink.internal.databaseaccess.Accessor connection)
PUBLIC: Create a new session log entry for a session, a message and an accessor
SessionLogEntry(oracle.toplink.publicinterface.Session session, java.lang.String message, boolean isDebug)
PUBLIC: Create a new session log entry for a session, a message and isDebug flag
SessionLogEntry(oracle.toplink.publicinterface.Session session, java.lang.String message, boolean isDebug, oracle.toplink.internal.databaseaccess.Accessor connection)
PUBLIC: Create a new session log entry for a session, a message, isDebug flag and an accessor

Method Summary
oracle.toplink.internal.databaseaccess.Accessor getConnection()
PUBLIC: Return the connection that generated the log entry.
java.util.Date getDate()
PUBLIC: Return the date of the log entry.
java.lang.Exception getException()
PUBLIC: Return the exception that caused the log entry.
java.lang.String getMessage()
PUBLIC: Return the log entry's message.
oracle.toplink.publicinterface.Session getSession()
PUBLIC: Return the session that generated the log entry.
java.lang.Thread getThread()
PUBLIC: Return the thread that was active when the log entry was generated.
boolean hasException()
PUBLIC: Return if the log entry was for an exception.
boolean isDebug()
PUBLIC: Return if the log entry was for debugging purposes.
void setConnection(oracle.toplink.internal.databaseaccess.Accessor connection)
PUBLIC: Set the connection that generated the log entry.
void setDate(java.util.Date date)
PUBLIC: Set the date of the log entry.
void setException(java.lang.Exception exception)
PUBLIC: Set the exception that caused the log entry.
void setIsDebug(boolean isDebug)
PUBLIC: Set if the log entry was for debugging purposes.
void setMessage(java.lang.String message)
PUBLIC: Set the entry's message.
void setSession(oracle.toplink.publicinterface.Session session)
PUBLIC: Set the session that generated the log entry.
void setThread(java.lang.Thread thread)
PUBLIC: Set the thread that was active when the log entry was generated.
java.lang.String toString()
PUBLIC: Print message.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

SessionLogEntry

public SessionLogEntry(oracle.toplink.publicinterface.Session session)
PUBLIC: Create a new session log entry for a session

SessionLogEntry

public SessionLogEntry(oracle.toplink.publicinterface.Session session,
                       java.lang.Exception exception)
PUBLIC: Create a new session log entry for a session and an exception

SessionLogEntry

public SessionLogEntry(oracle.toplink.publicinterface.Session session,
                       java.lang.String message)
PUBLIC: Create a new session log entry for a session and a message

SessionLogEntry

public SessionLogEntry(oracle.toplink.publicinterface.Session session,
                       java.lang.String message,
                       oracle.toplink.internal.databaseaccess.Accessor connection)
PUBLIC: Create a new session log entry for a session, a message and an accessor

SessionLogEntry

public SessionLogEntry(oracle.toplink.publicinterface.Session session,
                       java.lang.String message,
                       boolean isDebug,
                       oracle.toplink.internal.databaseaccess.Accessor connection)
PUBLIC: Create a new session log entry for a session, a message, isDebug flag and an accessor

SessionLogEntry

public SessionLogEntry(oracle.toplink.publicinterface.Session session,
                       java.lang.String message,
                       boolean isDebug)
PUBLIC: Create a new session log entry for a session, a message and isDebug flag

Method Detail

getConnection

public oracle.toplink.internal.databaseaccess.Accessor getConnection()
PUBLIC: Return the connection that generated the log entry.

getDate

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

getException

public java.lang.Exception getException()
PUBLIC: Return the exception that caused the log entry.

getMessage

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

getSession

public oracle.toplink.publicinterface.Session getSession()
PUBLIC: Return the session that generated the log entry.

getThread

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

hasException

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

isDebug

public boolean isDebug()
PUBLIC: Return if the log entry was for debugging purposes.

setConnection

public void setConnection(oracle.toplink.internal.databaseaccess.Accessor connection)
PUBLIC: Set the connection that generated the log entry.

setDate

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

setException

public void setException(java.lang.Exception exception)
PUBLIC: Set the exception that caused the log entry.

setIsDebug

public void setIsDebug(boolean isDebug)
PUBLIC: Set if the log entry was for debugging purposes.

setMessage

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

setSession

public void setSession(oracle.toplink.publicinterface.Session session)
PUBLIC: Set the session that generated the log entry.

setThread

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

toString

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

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.