org.eclipse.persistence.logging
public class SessionLogEntry extends Object implements Serializable
SessionLog
,
DefaultSessionLog
,
Serialized FormConstructor and Description |
---|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session)
PUBLIC:
Create a new session log entry for a session
|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
int level,
String category,
Throwable throwable)
PUBLIC:
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)
PUBLIC:
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)
PUBLIC:
Create a new session log entry for a session, a message and an accessor
|
SessionLogEntry(org.eclipse.persistence.internal.sessions.AbstractSession session,
Throwable throwable)
PUBLIC:
Create a new session log entry for a session and an exception
|
SessionLogEntry(int level,
org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
Object[] params,
org.eclipse.persistence.internal.databaseaccess.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,
String category,
org.eclipse.persistence.internal.sessions.AbstractSession session,
String message,
Object[] params,
org.eclipse.persistence.internal.databaseaccess.Accessor connection,
boolean shouldTranslate)
PUBLIC:
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()
PUBLIC:
Return the connection that generated the log entry.
|
Date |
getDate()
PUBLIC:
Return the date of the log entry.
|
Throwable |
getException()
PUBLIC:
Return the exception that caused the log entry.
|
int |
getLevel()
PUBLIC:
Return the request level of the log entry.
|
String |
getMessage()
PUBLIC:
Return the log entry's message.
|
String |
getNameSpace()
PUBLIC:
Return the name space of the log entry.
|
Object[] |
getParameters()
PUBLIC:
Return the array of parameters to the message.
|
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession()
PUBLIC:
Return the session that generated the log entry.
|
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(org.eclipse.persistence.internal.databaseaccess.Accessor connection)
PUBLIC:
Set the connection that generated the log entry.
|
void |
setDate(Date date)
PUBLIC:
Set the date of the log entry.
|
void |
setException(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(String message)
PUBLIC:
Set the entry's message.
|
void |
setNameSpace(String nameSpace)
PUBLIC:
Set the name space of the log entry.
|
void |
setParameters(Object[] params)
PUBLIC:
Set the array of parameters to the message.
|
void |
setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
PUBLIC:
Set the session that generated the log entry.
|
void |
setShouldTranslate(boolean shouldTranslate)
PUBLIC:
Set if the message should be translated.
|
void |
setThread(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.
|
String |
toString()
PUBLIC:
Print message.
|
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 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)