Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#459 closed enhancement (fixed)

Common table report utilities should be placed in its own class

Reported by: olle Owned by: olle
Priority: major Milestone: Reggie v2.11
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

Common table report utilities should be placed in its own class. Currently class/file SampleReportServlet.java in reggie/src/net/sf/basedb/reggie/servlet/ contains several methods and constants related to general report table generation. These should be placed in its own class, allowing other classes to use the common utilities for generating data for report tables.

Change History (4)

comment:1 Changed 11 years ago by olle

Status: newassigned

Ticket accepted.

comment:2 Changed 11 years ago by olle

Design update.

  • Common table report utilities in class/file SampleReportServlet.java in reggie/src/net/sf/basedb/reggie/servlet/ should be moved to their own class/file ReportTableUtilServlet.java, also in reggie/src/net/sf/basedb/reggie/servlet/.
Last edited 11 years ago by olle (previous) (diff)

comment:3 Changed 11 years ago by olle

Resolution: fixed
Status: assignedclosed

(In [1813]) Fixes #459. Common table report utilities in class/file SampleReportServlet.java in reggie/src/net/sf/basedb/reggie/servlet/ are moved to their own class/file ReportTableUtilServlet.java, also in reggie/src/net/sf/basedb/reggie/servlet/.

comment:4 Changed 11 years ago by olle

(In [1835]) Refs #459. Utility class/file ReportTableUtilServlet.java in reggie/src/net/sf/basedb/reggie/servlet/ updated with three new public convenience methods for converting a Date object to a string:

  1. New public method String fetchDateTimeString(Date date, String dateSeparator, String timeSeparator).
  2. New public method String fetchDayDateString(Date date, String separator).
  3. New public method String fetchTimeOfDayString(Date date, String separator).
Note: See TracTickets for help on using tickets.