|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.castor.tools.log4j.LogEntry
org.castor.tools.log4j.LogReferenceExtension
A LogReferenceExtension for saving a reference to another object. Use in
that way e.g.: LOG.warn(object).
To write your own extension, the following requirements has to be fulfilled:
1. The customized class must extend the LogEntry class.
2. A table in the database must be created.
3. The castor mapping file must be customized for the new class. As base the existing
one can be used.
| Constructor Summary | |
LogReferenceExtension()
Default constructor. |
|
LogReferenceExtension(java.lang.String message,
java.lang.String type,
java.lang.String value)
Construct a new LogReferenceExtension with the given message, type
and value. |
|
| Method Summary | |
java.lang.String |
getType()
Get the type this object references to. |
java.lang.String |
getValue()
Get the value this object references to. |
void |
setType(java.lang.String type)
Set the type this object references to. |
void |
setValue(java.lang.String value)
Set the value this object references to. |
| Methods inherited from class org.castor.tools.log4j.LogEntry |
getClassName, getCount, getException, getId, getLevel, getMessage, getThread, getTimestamp, setClassName, setCount, setException, setId, setLevel, setMessage, setThread, setTimestamp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LogReferenceExtension()
public LogReferenceExtension(java.lang.String message,
java.lang.String type,
java.lang.String value)
LogReferenceExtension with the given message, type
and value.
message - The message to set for this object.type - The type this oject references to.value - The value this object references to.| Method Detail |
public java.lang.String getType()
public void setType(java.lang.String type)
type - The type this object references to.public java.lang.String getValue()
public void setValue(java.lang.String value)
value - The value this object references to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||