public class SessionLogEntry extends Object implements Serializable
SessionLog
,
DefaultSessionLog
,
Serialized FormConstructor and Description |
---|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession 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) |
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
org.eclipse.persistence.internal.databaseaccess.Accessor connection) |
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
Throwable 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
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 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.
|
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.
|
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 |
setThread(Thread thread)
Set the thread that was active when the log entry was generated.
|
boolean |
shouldTranslate() |
String |
toString() |
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session)
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session, Throwable throwable)
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session, String message)
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session, String message, org.eclipse.persistence.internal.databaseaccess.Accessor connection)
public SessionLogEntry(int level, org.eclipse.persistence.internal.sessions.AbstractSession session, String message, Object[] params, org.eclipse.persistence.internal.databaseaccess.Accessor connection, boolean shouldTranslate)
SessionLog
public 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)
SessionLog
public SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session, int level, String category, Throwable throwable)
SessionLog
public 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()
SessionLog
public String getNameSpace()
SessionLog
public Object[] getParameters()
public boolean shouldTranslate()
public boolean hasException()
public boolean hasMessage()
public void setConnection(org.eclipse.persistence.internal.databaseaccess.Accessor connection)
public void setDate(Date date)
public void setException(Throwable throwable)
public void setMessage(String message)
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
public void setThread(Thread thread)
public void setLevel(int level)
SessionLog
public void setNameSpace(String nameSpace)
SessionLog
public void setParameters(Object[] params)
public void setShouldTranslate(boolean shouldTranslate)
EclipseLink 2.3.2, "build v20111125-r10461" API Reference