Package africa.absa.inception.reporting
Class ReportDefinition
- java.lang.Object
-
- africa.absa.inception.reporting.ReportDefinition
-
- All Implemented Interfaces:
Serializable
@Entity public class ReportDefinition extends Object implements Serializable
The ReportDefinition class holds the information for a report definition.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReportDefinition()Constructs a new ReportDefinition.ReportDefinition(String id, String name, byte[] template)Constructs a new ReportDefinition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether some other object is "equal to" this one.LocalDateTimegetCreated()Returns the date and time the report definition was created.StringgetId()Returns the ID for the report definition.StringgetName()Returns the name of the report definition.byte[]getTemplate()Returns the JasperReports template for the report definition.LocalDateTimegetUpdated()Returns the date and time the report definition was last updated.inthashCode()Returns a hash code value for the object.protected voidonCreate()protected voidonUpdate()voidsetId(String id)Set the ID for the report definition.voidsetName(String name)Set the name of the report definition.voidsetTemplate(byte[] template)Set the JasperReports template for the report definition.StringtoString()Returns a string representation of the object.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
getCreated
public LocalDateTime getCreated()
Returns the date and time the report definition was created.- Returns:
- the date and time the report definition was created
-
getId
public String getId()
Returns the ID for the report definition.- Returns:
- the ID for the report definition
-
getName
public String getName()
Returns the name of the report definition.- Returns:
- the name of the report definition
-
getTemplate
public byte[] getTemplate()
Returns the JasperReports template for the report definition.- Returns:
- the JasperReports template for the report definition
-
getUpdated
public LocalDateTime getUpdated()
Returns the date and time the report definition was last updated.- Returns:
- the date and time the report definition was last updated
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
setId
public void setId(String id)
Set the ID for the report definition.- Parameters:
id- the ID for the report definition
-
setName
public void setName(String name)
Set the name of the report definition.- Parameters:
name- the name of the report definition
-
setTemplate
public void setTemplate(byte[] template)
Set the JasperReports template for the report definition.- Parameters:
template- the JasperReports template for the report definition
-
toString
public String toString()
Returns a string representation of the object.
-
onCreate
protected void onCreate()
-
onUpdate
protected void onUpdate()
-
-