|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.toplink.sessions.SessionLogEntry
oracle.toplink.logging.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.
SessionLog, DefaultSessionLog, Serialized Form| Constructor Summary | |
SessionLogEntry(int level, Session session, java.lang.String message, java.lang.Object[] params, Accessor connection, boolean shouldTranslate)PUBLIC: Create a new session log entry for a request level, a session, a message and an accessor |
|
SessionLogEntry(int level, java.lang.String category, Session session, java.lang.String message, java.lang.Object[] params, Accessor connection, boolean shouldTranslate)PUBLIC: Create a new session log entry for a request level, a session, a message and an accessor |
|
SessionLogEntry(Session session)PUBLIC: Create a new session log entry for a session |
|
SessionLogEntry(Session session, int level, java.lang.String category, java.lang.Throwable throwable)PUBLIC: Create a new session log entry for a session, a level, a category and an exception |
|
SessionLogEntry(Session session, java.lang.String message)PUBLIC: Create a new session log entry for a session and a message |
|
SessionLogEntry(Session session, java.lang.String message, Accessor connection)PUBLIC: Create a new session log entry for a session, a message and an accessor |
|
SessionLogEntry(Session 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(Session session, java.lang.Throwable throwable)PUBLIC: Create a new session log entry for a session and an exception |
|
| Method Summary | |
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.Throwable |
getException()PUBLIC: Return the exception that caused the log entry. |
int |
getLevel()PUBLIC: Return the request level of the log entry. |
java.lang.String |
getMessage()PUBLIC: Return the log entry's message. |
java.lang.String |
getNameSpace()PUBLIC: Return the name space of the log entry. |
java.lang.Object[] |
getParameters()PUBLIC: Return the array of parameters to the message. |
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. |
void |
setConnection(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.Throwable throwable)PUBLIC: Set the exception that caused the log entry. |
void |
setLevel(int level)PUBLIC: Set the request level of the log entry. |
void |
setMessage(java.lang.String message)PUBLIC: Set the entry's message. |
void |
setNameSpace(java.lang.String nameSpace)PUBLIC: Set the name space of the log entry. |
void |
setParameters(java.lang.Object[] params)PUBLIC: Set the array of parameters to the message. |
void |
setSession(Session session)PUBLIC: Set the session that generated the log entry. |
void |
setShouldTranslate(boolean shouldTranslate)PUBLIC: Set if the message should be translated. |
void |
setThread(java.lang.Thread thread)PUBLIC: Set the thread that was active when the log entry was generated. |
boolean |
shouldTranslate()PUBLIC: Return if the message should be translated. |
java.lang.String |
toString()PUBLIC: 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 |
public SessionLogEntry(Session session)
public SessionLogEntry(Session session,
java.lang.Throwable throwable)
public SessionLogEntry(Session session,
java.lang.String message)
public SessionLogEntry(Session session,
java.lang.String message,
Accessor connection)
public SessionLogEntry(Session session,
java.lang.String message,
boolean isDebug,
Accessor connection)
public SessionLogEntry(int level,
Session session,
java.lang.String message,
java.lang.Object[] params,
Accessor connection,
boolean shouldTranslate)
public SessionLogEntry(int level,
java.lang.String category,
Session session,
java.lang.String message,
java.lang.Object[] params,
Accessor connection,
boolean shouldTranslate)
public SessionLogEntry(Session session,
int level,
java.lang.String category,
java.lang.Throwable throwable)
| Method Detail |
public Accessor getConnection()
getConnection in class SessionLogEntrypublic java.util.Date getDate()
getDate in class SessionLogEntrypublic java.lang.Throwable getException()
getException in class SessionLogEntrypublic java.lang.String getMessage()
getMessage in class SessionLogEntrypublic Session getSession()
getSession in class SessionLogEntrypublic java.lang.Thread getThread()
getThread in class SessionLogEntrypublic int getLevel()
getLevel in class SessionLogEntrypublic java.lang.String getNameSpace()
getNameSpace in class SessionLogEntrypublic java.lang.Object[] getParameters()
getParameters in class SessionLogEntrypublic boolean shouldTranslate()
shouldTranslate in class SessionLogEntrypublic boolean hasException()
hasException in class SessionLogEntrypublic void setConnection(Accessor connection)
setConnection in class SessionLogEntrypublic void setDate(java.util.Date date)
setDate in class SessionLogEntrypublic void setException(java.lang.Throwable throwable)
setException in class SessionLogEntrypublic void setMessage(java.lang.String message)
setMessage in class SessionLogEntrypublic void setSession(Session session)
setSession in class SessionLogEntrypublic void setThread(java.lang.Thread thread)
setThread in class SessionLogEntrypublic void setLevel(int level)
setLevel in class SessionLogEntrypublic void setNameSpace(java.lang.String nameSpace)
setNameSpace in class SessionLogEntrypublic void setParameters(java.lang.Object[] params)
setParameters in class SessionLogEntrypublic void setShouldTranslate(boolean shouldTranslate)
setShouldTranslate in class SessionLogEntrypublic java.lang.String toString()
toString in class SessionLogEntry
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||