Opened 12 years ago

Closed 12 years ago

Last modified 12 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 by olle, 12 years ago

Status: newassigned

Ticket accepted.

comment:2 by olle, 12 years ago

Design update.

  • Common table report utilities in class/file SampleReportServlet.java in reggie/src/net/sf/basedb/reggie/servlet/ should be moved to its own class/file ReportTableUtilServlet.java, also in reggie/src/net/sf/basedb/reggie/servlet/.
Version 0, edited 12 years ago by olle (next)

comment:3 by olle, 12 years ago

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 by olle, 12 years ago

(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.