public class SessionLogEntry
extends java.lang.Object
implements java.io.Serializable
SessionLog
,
DefaultSessionLog
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected org.eclipse.persistence.internal.databaseaccess.Accessor |
connection |
protected java.util.Date |
date |
protected int |
level |
protected java.lang.String |
message |
protected java.lang.String |
nameSpace |
protected java.lang.Object[] |
parameters |
protected org.eclipse.persistence.internal.sessions.AbstractSession |
session |
protected boolean |
shouldTranslate |
protected java.lang.Thread |
thread |
protected java.lang.Throwable |
throwable |
Constructor and Description |
---|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session) |
SessionLogEntry(org.eclipse.persistence.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(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.String message) |
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.String message,
org.eclipse.persistence.internal.databaseaccess.Accessor connection) |
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.Throwable throwable) |
SessionLogEntry(int level,
org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.String message,
java.lang.Object[] params,
org.eclipse.persistence.internal.databaseaccess.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,
org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.String message,
java.lang.Object[] params,
org.eclipse.persistence.internal.databaseaccess.Accessor connection,
boolean shouldTranslate)
Create a new session log entry for a request level, a session, a message
and an accessor.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.persistence.internal.databaseaccess.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() |
org.eclipse.persistence.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() |
boolean |
hasMessage() |
void |
setConnection(org.eclipse.persistence.internal.databaseaccess.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(org.eclipse.persistence.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() |
java.lang.String |
toString() |
protected java.util.Date date
protected transient org.eclipse.persistence.internal.sessions.AbstractSession session
protected transient java.lang.Thread thread
protected transient org.eclipse.persistence.internal.databaseaccess.Accessor connection
protected java.lang.String message
protected java.lang.Throwable throwable
protected int level
protected java.lang.String nameSpace
protected java.lang.Object[] parameters
protected boolean shouldTranslate
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session)
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.Throwable throwable)
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.String message)
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.String message, org.eclipse.persistence.internal.databaseaccess.Accessor connection)
public SessionLogEntry(int level, org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.String message, java.lang.Object[] params, org.eclipse.persistence.internal.databaseaccess.Accessor connection, boolean shouldTranslate)
SessionLog
public SessionLogEntry(int level, java.lang.String category, org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.String message, java.lang.Object[] params, org.eclipse.persistence.internal.databaseaccess.Accessor connection, boolean shouldTranslate)
SessionLog
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session, int level, java.lang.String category, java.lang.Throwable throwable)
SessionLog
public org.eclipse.persistence.internal.databaseaccess.Accessor getConnection()
public java.util.Date getDate()
public java.lang.Throwable getException()
public java.lang.String getMessage()
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
public java.lang.Thread getThread()
public int getLevel()
SessionLog
public java.lang.String getNameSpace()
SessionLog
public java.lang.Object[] getParameters()
public boolean shouldTranslate()
public boolean hasException()
public boolean hasMessage()
public void setConnection(org.eclipse.persistence.internal.databaseaccess.Accessor connection)
public void setDate(java.util.Date date)
public void setException(java.lang.Throwable throwable)
public void setMessage(java.lang.String message)
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
public void setThread(java.lang.Thread thread)
public void setLevel(int level)
SessionLog
public void setNameSpace(java.lang.String nameSpace)
SessionLog
public void setParameters(java.lang.Object[] params)
public void setShouldTranslate(boolean shouldTranslate)
public java.lang.String toString()
toString
in class java.lang.Object