|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.services.util.logging.beans.LogMessage
public class LogMessage
Java Bean representing a log message.
LogMessage bean generated by the Toolbox Bean Generator.
This bean implements the DaoBeanEx interface that allows it to be persisted by sub-class instances of the toolbox.services.dao.DaoService class. In addition DaoBeanEx implementations provide metadata on the mapping and property types.
Constructor Summary | |
---|---|
LogMessage()
Default constructor to initialise the internal Maps for storing bean properties, mappings and types. |
Method Summary | |
---|---|
static LogMessage |
create(java.util.Map map)
Create a new LogMessage bean instance using the properties in the given Map as the values of the bean properties. |
java.lang.String |
getDetail1()
Return the detail1 property. |
java.lang.String |
getDetail2()
Return the detail2 property. |
java.lang.String |
getDetail3()
Return the detail3 property. |
java.lang.String |
getDetail4()
Return the detail4 property. |
java.lang.String |
getDetail5()
Return the detail5 property. |
java.lang.String |
getExceptionDetail()
Return the exceptionDetail property. |
java.lang.String |
getLogger()
Return the logger property. |
java.lang.String |
getLogLevel()
Return the logLevel property. |
java.util.Map |
getMap()
Return the Map containing the bean properties. |
java.lang.String |
getMapping(java.lang.String prop)
Return the mapped value for the provided property name. |
java.util.Map |
getMappings()
Return the Map containing the property mappings. |
java.lang.Class |
getMappingType(java.lang.String mapping)
Return the type of the provided mapping. |
java.util.Map |
getMappingTypes()
Return the mapping types. |
java.lang.Class |
getPropertyType(java.lang.String prop)
Return the type of the provided property. |
java.util.Map |
getPropertyTypes()
Return the property types. |
java.lang.String |
getSourceComponent()
Return the sourceComponent property. |
java.lang.String |
getSourceOperation()
Return the sourceOperation property. |
java.lang.String |
getThread()
Return the thread property. |
java.lang.Long |
getTimeStamp()
Return the timeStamp property. |
void |
setDetail1(java.lang.String detail1)
Set the detail1 property. |
void |
setDetail2(java.lang.String detail2)
Set the detail2 property. |
void |
setDetail3(java.lang.String detail3)
Set the detail3 property. |
void |
setDetail4(java.lang.String detail4)
Set the detail4 property. |
void |
setDetail5(java.lang.String detail5)
Set the detail5 property. |
void |
setExceptionDetail(java.lang.String exceptionDetail)
Set the exceptionDetail property. |
void |
setLogger(java.lang.String logger)
Set the logger property. |
void |
setLogLevel(java.lang.String logLevel)
Set the logLevel property. |
void |
setMap(java.util.Map map)
Set the Map containing the bean properties. |
void |
setSourceComponent(java.lang.String sourceComponent)
Set the sourceComponent property. |
void |
setSourceOperation(java.lang.String sourceOperation)
Set the sourceOperation property. |
void |
setThread(java.lang.String thread)
Set the thread property. |
void |
setTimeStamp(java.lang.Long timeStamp)
Set the timeStamp property. |
java.lang.String |
toString()
Return a String representation of this DaoBean instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LogMessage()
Method Detail |
---|
public void setLogLevel(java.lang.String logLevel)
logLevel
- New value of the
logLevel property.public java.lang.String getLogLevel()
public void setLogger(java.lang.String logger)
logger
- New value of the
logger property.public java.lang.String getLogger()
public void setTimeStamp(java.lang.Long timeStamp)
timeStamp
- New value of the
timeStamp property.public java.lang.Long getTimeStamp()
public void setThread(java.lang.String thread)
thread
- New value of the
thread property.public java.lang.String getThread()
public void setSourceComponent(java.lang.String sourceComponent)
sourceComponent
- New value of the
sourceComponent property.public java.lang.String getSourceComponent()
public void setSourceOperation(java.lang.String sourceOperation)
sourceOperation
- New value of the
sourceOperation property.public java.lang.String getSourceOperation()
public void setDetail1(java.lang.String detail1)
detail1
- New value of the
detail1 property.public java.lang.String getDetail1()
public void setDetail2(java.lang.String detail2)
detail2
- New value of the
detail2 property.public java.lang.String getDetail2()
public void setDetail3(java.lang.String detail3)
detail3
- New value of the
detail3 property.public java.lang.String getDetail3()
public void setDetail4(java.lang.String detail4)
detail4
- New value of the
detail4 property.public java.lang.String getDetail4()
public void setDetail5(java.lang.String detail5)
detail5
- New value of the
detail5 property.public java.lang.String getDetail5()
public void setExceptionDetail(java.lang.String exceptionDetail)
exceptionDetail
- New value of the
exceptionDetail property.public java.lang.String getExceptionDetail()
public void setMap(java.util.Map map)
setMap
in interface DaoBean
map
- Map containing bean properties.public java.util.Map getMap()
getMap
in interface DaoBean
public java.lang.String getMapping(java.lang.String prop)
getMapping
in interface DaoBean
prop
- Return the mapping for this property.
public java.util.Map getMappings()
getMappings
in interface DaoBean
public java.lang.Class getMappingType(java.lang.String mapping)
getMappingType
in interface DaoBeanEx
mapping
- String containing the mapping value.
public java.lang.Class getPropertyType(java.lang.String prop)
getPropertyType
in interface DaoBeanEx
prop
- String containing the property name.
public java.util.Map getMappingTypes()
getMappingTypes
in interface DaoBeanEx
public java.util.Map getPropertyTypes()
getPropertyTypes
in interface DaoBeanEx
public static LogMessage create(java.util.Map map) throws java.lang.Exception
Property mappings are done using Java Reflection and is performed as follows:
The keys in the Map are used as the names of the bean properties. If the Map contains a key with the value name it will be translated into a method call that will invoke the setName(...) method on the target bean using the value associated with the key in the Map.
map
- Map containing bean properties.
java.lang.Exception
- if the bean cannot be created.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |