org.dbforms.servlets.reports
Class ReportParameter

java.lang.Object
  extended by org.dbforms.servlets.reports.ReportParameter

public class ReportParameter
extends Object

DOCUMENT ME!

Version:
$Revision: 1.20 $
Author:
$author$

Constructor Summary
ReportParameter(ServletContext context, HttpServletRequest request, Map attributes, Connection connection, String reportPath)
          Creates a new ReportParameter object.
 
Method Summary
 Object getAttribute(String key)
          Returns a request parameter
 String getBaseURL()
           
 Connection getConnection()
          Returns the connection.
 String getContextPath()
          DOCUMENT ME!
 String getMessage(String msg)
          Returns a message
 String getParameter(String param)
          Returns a request parameter
 String getReportPath()
          Returns the reportPath.
 String getStringValue(Object obj)
          Returns a formatted string with the same formatting as used inside dbforms
 String getStringValue(Object obj, String pattern)
          Returns a formatted string with the same formatting as used inside dbforms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportParameter

public ReportParameter(ServletContext context,
                       HttpServletRequest request,
                       Map attributes,
                       Connection connection,
                       String reportPath)
Creates a new ReportParameter object.

Parameters:
context - DOCUMENT ME!
request - DOCUMENT ME!
connection - DOCUMENT ME!
reportPath - DOCUMENT ME!
Method Detail

getConnection

public Connection getConnection()
Returns the connection.

Returns:
Connection

getContextPath

public String getContextPath()
DOCUMENT ME!

Returns:

getBaseURL

public String getBaseURL()

getMessage

public String getMessage(String msg)
Returns a message

Parameters:
msg - DOCUMENT ME!
Returns:
String

getParameter

public String getParameter(String param)
Returns a request parameter

Parameters:
param - DOCUMENT ME!
Returns:
String

getAttribute

public Object getAttribute(String key)
Returns a request parameter

Parameters:
param - DOCUMENT ME!
Returns:
String

getReportPath

public String getReportPath()
Returns the reportPath.

Returns:
String

getStringValue

public String getStringValue(Object obj,
                             String pattern)
Returns a formatted string with the same formatting as used inside dbforms

Parameters:
obj - The object to format
pattern - to use as pattern for numeric and date fields
Returns:
The string representation

getStringValue

public String getStringValue(Object obj)
Returns a formatted string with the same formatting as used inside dbforms

Parameters:
obj - The object to format
Returns:
The string representation


Copyright © 2002-2006 DbForms. All Rights Reserved.