public class SessionLogEntry extends Object implements Serializable
SessionLog
,
DefaultSessionLog
,
Serialized FormConstructor and Description |
---|
SessionLogEntry(AbstractSession session) |
SessionLogEntry(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(AbstractSession session,
String message) |
SessionLogEntry(AbstractSession session,
String message,
Accessor connection) |
SessionLogEntry(AbstractSession session,
Throwable throwable) |
SessionLogEntry(int level,
AbstractSession session,
String message,
Object[] params,
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,
AbstractSession session,
String message,
Object[] params,
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 |
---|---|
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() |
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(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(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(AbstractSession session)
public SessionLogEntry(AbstractSession session, Throwable throwable)
public SessionLogEntry(AbstractSession session, String message)
public SessionLogEntry(AbstractSession session, String message, Accessor connection)
public SessionLogEntry(int level, AbstractSession session, String message, Object[] params, Accessor connection, boolean shouldTranslate)
SessionLog
public SessionLogEntry(int level, String category, AbstractSession session, String message, Object[] params, Accessor connection, boolean shouldTranslate)
SessionLog
public SessionLogEntry(AbstractSession session, int level, String category, Throwable throwable)
SessionLog
public Accessor getConnection()
public Date getDate()
public Throwable getException()
public String getMessage()
public 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(Accessor connection)
public void setDate(Date date)
public void setException(Throwable throwable)
public void setMessage(String message)
public void setSession(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.5.2, "build v20140319-9ad6abd" API Reference