public class SessionLogEntry extends Object implements Serializable
SessionLog,
DefaultSessionLog,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.persistence.internal.databaseaccess.Accessor |
connection |
protected Date |
date |
protected int |
level |
protected String |
message |
protected String |
nameSpace |
protected Object[] |
parameters |
protected org.eclipse.persistence.internal.sessions.AbstractSession |
session |
protected boolean |
shouldTranslate |
protected String |
sourceClassName |
protected String |
sourceMethodName |
protected Thread |
thread |
protected Throwable |
throwable |
| Constructor and Description |
|---|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session)
Create a new session log entry for a session.
|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
int level,
String category,
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,
String message)
Create a new session log entry for a session and a message.
|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
org.eclipse.persistence.internal.databaseaccess.Accessor connection)
Create a new session log entry for a session, a message and an accessor.
|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
Throwable throwable)
Create a new session log entry for a session and a throwable.
|
SessionLogEntry(int level,
org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
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,
parameters and an accessor.
|
SessionLogEntry(int level,
String category,
org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
Object[] params,
org.eclipse.persistence.internal.databaseaccess.Accessor connection,
boolean shouldTranslate)
Create a new session log entry for a request level, a category, a session,
a message, parameters and an accessor.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.persistence.internal.databaseaccess.Accessor |
getConnection()
Return the connection that generated the log entry.
|
Date |
getDate()
Return the date of the log entry.
|
Throwable |
getException()
Return the exception that caused the log entry.
|
int |
getLevel()
Return the request level of the log entry.
|
String |
getMessage()
Return the log entry's message.
|
String |
getNameSpace()
Return the name space of the log entry.
|
Object[] |
getParameters() |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession()
Return the session that generated the log entry.
|
String |
getSourceClassName() |
String |
getSourceMethodName() |
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(Date date)
Set the date of the log entry.
|
void |
setException(Throwable throwable)
Set the exception that caused the log entry.
|
void |
setLevel(int level)
Set the request level of the log entry.
|
void |
setMessage(String message)
Set the entry's message.
|
void |
setNameSpace(String nameSpace)
Set the name space of the log entry.
|
void |
setParameters(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 |
setSourceClassName(String sourceClassName)
Set the source class name to the message.
|
void |
setSourceMethodName(String sourceMethodName)
Set the source method name to the message.
|
void |
setThread(Thread thread)
Set the thread that was active when the log entry was generated.
|
boolean |
shouldTranslate() |
String |
toString() |
protected Date date
protected transient org.eclipse.persistence.internal.sessions.AbstractSession session
protected transient Thread thread
protected transient org.eclipse.persistence.internal.databaseaccess.Accessor connection
protected String message
protected Throwable throwable
protected int level
protected String nameSpace
protected Object[] parameters
protected boolean shouldTranslate
protected String sourceClassName
protected String sourceMethodName
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session)
session - the sessionpublic SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
Throwable throwable)
session - the sessionthrowable - the throwablepublic SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
String message)
session - the sessionmessage - the messagepublic SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
org.eclipse.persistence.internal.databaseaccess.Accessor connection)
session - the sessionmessage - the messageconnection - the accessorpublic SessionLogEntry(int level,
org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
Object[] params,
org.eclipse.persistence.internal.databaseaccess.Accessor connection,
boolean shouldTranslate)
level - the log levelsession - the sessionmessage - the messageparams - array of parametersconnection - the accessorshouldTranslate - true if the entry should be translatedSessionLogpublic SessionLogEntry(int level,
String category,
org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
Object[] params,
org.eclipse.persistence.internal.databaseaccess.Accessor connection,
boolean shouldTranslate)
level - the log levelcategory - the categorysession - the sessionmessage - the messageparams - array of parametersconnection - the accessorshouldTranslate - true if the entry should be translatedSessionLogpublic SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
int level,
String category,
Throwable throwable)
session - the sessionlevel - the log levelcategory - the categorythrowable - the exceptionSessionLogpublic org.eclipse.persistence.internal.databaseaccess.Accessor getConnection()
public Date getDate()
public Throwable getException()
public String getMessage()
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
public Thread getThread()
public int getLevel()
SessionLogpublic String getNameSpace()
SessionLogpublic Object[] getParameters()
public String getSourceClassName()
public String getSourceMethodName()
public boolean shouldTranslate()
public boolean hasException()
public boolean hasMessage()
public void setConnection(org.eclipse.persistence.internal.databaseaccess.Accessor connection)
connection - the connectionpublic void setDate(Date date)
date - the datepublic void setException(Throwable throwable)
throwable - the exceptionpublic void setMessage(String message)
message - the messagepublic void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
session - the sessionpublic void setThread(Thread thread)
thread - the threadpublic void setLevel(int level)
level - the log levelSessionLogpublic void setNameSpace(String nameSpace)
nameSpace - the log categorySessionLogpublic void setParameters(Object[] params)
params - array of parameterspublic void setShouldTranslate(boolean shouldTranslate)
shouldTranslate - true if the message should be translated, false otherwisepublic void setSourceClassName(String sourceClassName)
sourceClassName - source class namepublic void setSourceMethodName(String sourceMethodName)
sourceMethodName - source method nameCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.