Class StatistikTimes

java.lang.Object
com.ubs.backend.classes.database.statistik.times.StatistikTimes

@Entity public class StatistikTimes extends Object
class where we combine all different statistik time elements (day, week, etc)
Since:
17.07.2021
Author:
Tim Irmler
  • Field Details

  • Constructor Details

    • StatistikTimes

      public StatistikTimes()
      default no args constructor
      Since:
      17.07.2021
    • StatistikTimes

      public StatistikTimes(StatistikHour hour, StatistikDay day, StatistikWeek week, StatistikMonth month, StatistikYear year)
      Parameters:
      hour -
      day -
      week -
      month -
      year -
      Since:
      17.07.2021
    • StatistikTimes

      public StatistikTimes(Date date)
      Parameters:
      date -
      Since:
      17.07.2021
  • Method Details

    • createMyCalendarWithMyDates

      public Calendar createMyCalendarWithMyDates() throws ParseException
      Returns:
      Throws:
      ParseException
      Since:
      26.08.2021
    • getDayOfWeek

      public int getDayOfWeek()
    • getDayOfWeekFormatted

      public String getDayOfWeekFormatted()
      Returns:
      Since:
      26.08.2021
    • getWeekOfMonth

      public int getWeekOfMonth()
      Returns:
      Since:
      26.08.2021
    • getWeekOfMonthFormatted

      public String getWeekOfMonthFormatted()
      Returns:
      Since:
      26.08.2021
    • getFirstDayOfWeek

      public String getFirstDayOfWeek(StatistikTimes times)
      Returns:
      Since:
      29.08.2021
    • getLastDayOfWeek

      public String getLastDayOfWeek(StatistikTimes times)
      Returns:
      Since:
      29.08.2021
    • getFirstAndLastDayOfWeek

      public String getFirstAndLastDayOfWeek(StatistikTimes times)
      Returns:
      Since:
      29.08.2021
    • getMonthOfYearFormatted

      public String getMonthOfYearFormatted()
      Returns:
      Since:
      26.08.2021
    • getFormatted

      public String getFormatted(boolean withHour, char dateSeparator)
      Parameters:
      withHour -
      dateSeparator -
      Returns:
      Since:
      26.08.2021
    • getFormatted

      public String getFormatted(boolean withHour, char dateSeparator, char hourSeperator)
      Parameters:
      withHour -
      dateSeparator -
      hourSeperator -
      Returns:
      Since:
      17.08.2021
    • getFormatted

      public String getFormatted(boolean withHour)
      get the time formatted, displaying day, month and year and if wanted hours
      Returns:
    • calculateTimeNumber

      private long calculateTimeNumber()
    • isSamePerTimeSpecial

      public boolean isSamePerTimeSpecial(TimeSearchType timeSearchType, StatistikTimes times)
      Parameters:
      timeSearchType -
      times -
      Returns:
      Since:
      01.09.2021
    • isDifferentPerTimeSpecial

      public boolean isDifferentPerTimeSpecial(TimeSearchType timeSearchType, StatistikTimes times, boolean checkSmaller)
      Parameters:
      timeSearchType -
      times -
      checkSmaller -
      Returns:
      Since:
      01.09.2021
    • setDates

      public void setDates(StatistikTimes newTimes)
      Parameters:
      newTimes -
      Since:
      17.07.2021
    • setDates

      public void setDates(Date date)
      Parameters:
      date -
      Since:
      17.07.2021
    • isSameDate

      public boolean isSameDate(StatistikTimes toCompare)
      Parameters:
      toCompare -
      Returns:
      Since:
      17.07.2021
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getStatistikID

      public long getStatistikID()
      Returns:
      Since:
      17.07.2021
    • setStatistikID

      public void setStatistikID(long statistikTimesID)
      Parameters:
      statistikTimesID -
      Since:
      17.07.2021
    • getDay

      public StatistikDay getDay()
      Returns:
      Since:
      17.07.2021
    • setDay

      public void setDay(StatistikDay day)
      Parameters:
      day -
      Since:
      17.07.2021
    • setDay

      public void setDay(Date date)
      Parameters:
      date -
      Since:
      17.07.2021
    • getWeek

      public StatistikWeek getWeek()
      Returns:
      Since:
      17.07.2021
    • setWeek

      public void setWeek(StatistikWeek week)
      Parameters:
      week -
      Since:
      17.07.2021
    • setWeek

      public void setWeek(Date date)
      Parameters:
      date -
      Since:
      17.07.2021
    • getMonth

      public StatistikMonth getMonth()
      Returns:
      Since:
      17.07.2021
    • setMonth

      public void setMonth(StatistikMonth month)
      Parameters:
      month -
      Since:
      17.07.2021
    • setMonth

      public void setMonth(Date date)
      Parameters:
      date -
      Since:
      17.07.2021
    • getYear

      public StatistikYear getYear()
      Returns:
      Since:
      17.07.2021
    • setYear

      public void setYear(StatistikYear year)
      Parameters:
      year -
      Since:
      17.07.2021
    • setYear

      public void setYear(Date date)
      Parameters:
      date -
      Since:
      17.07.2021
    • getHour

      public StatistikHour getHour()
      Returns:
      Since:
      17.07.2021
    • setHour

      public void setHour(StatistikHour hour)
      Parameters:
      hour -
      Since:
      17.07.2021
    • setHour

      public void setHour(Date date)
      Parameters:
      date -
      Since:
      17.07.2021
    • getStatistikTimeNumber

      public long getStatistikTimeNumber()
    • setStatistikTimeNumber

      public void setStatistikTimeNumber(long statistikTimeNumber)