Class ReportItem

java.lang.Object
mc.core.model.base.EntityText
mc.core.model.system.ReportItem
All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity

@Entity public class ReportItem extends EntityText implements IBaseEntity
A line in a report. The ReportItem has a level telling its type, default is ReportItemLevel INFO. The text is coded as resource bundle key to allow language dependent display of the report item. The bundle key may come with a variable number of arguments reflected in the non-standard constructors of ReportItem. The length of all arguments together with separating semicolons must not surpass 1000 charactes, otherwise the arguments are truncated.
field: transient, IEntityField mapping the ReportItem to a property of an entity, currently not implemented.
See Also:
  • Constructor Details

  • Method Details

    • getId

      public long getId()
      Specified by:
      getId in interface IBaseEntity
    • setId

      public void setId(long id)
      Specified by:
      setId in interface IBaseEntity
    • getArgString

      public String getArgString()
    • setArgString

      public void setArgString(String arguments)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getReportLevel

      public ReportItem.ReportItemLevel getReportLevel()
    • setReportLevel

      public void setReportLevel(ReportItem.ReportItemLevel level)
    • getTimestamp

      public Calendar getTimestamp()
    • setTimestamp

      public void setTimestamp(Calendar timestamp)
    • getReport

      public Report getReport()
    • setReport

      public void setReport(Report report)
    • getValueOld

      public String getValueOld()
    • setValueOld

      public void setValueOld(String valueOld)
    • getValueNew

      public String getValueNew()
    • setValueNew

      public void setValueNew(String valueNew)
    • getArguments

      public String[] getArguments()
      Returns:
      array with additional arguments. also adds the valueOld and valueNew properties to end of argument array, if they are not null.
    • setArguments

      public void setArguments(String[] args)
    • addToArguments

      public static Object[] addToArguments(Object[] args, Exception ex)
      arguments helper: add ex class and message as last argument
    • concat

      public static Object[] concat(Object[] first, Object... second)
      arguments helper
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object