Class MahoeAccountStatement

java.lang.Object
de.frankmuenster.mahoe.statements.MahoeAccountStatement

public class MahoeAccountStatement extends Object
An account statement bean with needed fields
Author:
Frank Münster
  • Constructor Details

    • MahoeAccountStatement

      public MahoeAccountStatement()
      Creates a new empty statement object
    • MahoeAccountStatement

      public MahoeAccountStatement(Date createDate)
      Creates a new filled statement object
      Parameters:
      createDate -
    • MahoeAccountStatement

      public MahoeAccountStatement(Date createDate, String name1)
      Creates a new partially filled statement object
      Parameters:
      createDate -
      name1 -
    • MahoeAccountStatement

      public MahoeAccountStatement(Date createDate, String name1, String name2)
      Creates a new partially filled statement object
      Parameters:
      createDate -
      name1 -
      name2 -
    • MahoeAccountStatement

      public MahoeAccountStatement(Date createDate, String name1, String name2, String name3)
      Creates a new partially filled statement object
      Parameters:
      createDate -
      name1 -
      name2 -
      name3 -
    • MahoeAccountStatement

      public MahoeAccountStatement(Date createDate, String name1, String name2, String name3, String comment)
      Creates a new filled statement object
      Parameters:
      createDate -
      name1 -
      name2 -
      name3 -
      comment -
  • Method Details

    • getComment

      public String getComment()
      Returns:
      the comment
    • getCreateDate

      public Date getCreateDate()
      Returns:
      the createDate
    • getName1

      public String getName1()
      Returns:
      the name1
    • getName2

      public String getName2()
      Returns:
      the name2
    • getName3

      public String getName3()
      Returns:
      the name3
    • getNumber

      public Integer getNumber()
      Returns the number of the account statement. If not set explicitly the month of the creation date is used
      Returns:
      the number of the account statement
    • getYear

      public Integer getYear()
      Returns the year of the account statement. If not set explicitly the year of the creation date is used
      Returns:
      the year of the account statement
    • isComplete

      public boolean isComplete()
      Checks is all mandatory fields are set. This is actually only the createDate
      Returns:
      true if all mandatory fields are set, false else.
    • setComment

      public void setComment(String comment)
      Parameters:
      comment - the comment to set
    • setCreateDate

      public void setCreateDate(Date createDate)
      Parameters:
      createDate - the createDate to set
    • setName1

      public void setName1(String name1)
      Parameters:
      name1 - the name1 to set
    • setName2

      public void setName2(String name2)
      Parameters:
      name2 - the name2 to set
    • setName3

      public void setName3(String name3)
      Parameters:
      name3 - the name3 to set
    • setNumber

      public void setNumber(Integer number)
      Sets the number of the account statement.
      Parameters:
      number -
    • setYear

      public void setYear(Integer year)
      Sets the year of the account statement.
      Parameters:
      year -