Class 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 Detail

      • ReportDefinition

        public ReportDefinition()
        Constructs a new ReportDefinition.
      • ReportDefinition

        public ReportDefinition​(String id,
                                String name,
                                byte[] template)
        Constructs a new ReportDefinition.
        Parameters:
        id - the ID for the report definition
        name - the name of the report definition
        template - the JasperReports template for the report definition
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        object - the reference object with which to compare
        Returns:
        true if this object is the same as the object argument otherwise false
      • 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.
        Overrides:
        hashCode in class Object
        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.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object
      • onCreate

        protected void onCreate()
      • onUpdate

        protected void onUpdate()