org.josql.functions
Class FormattingFunctions

java.lang.Object
  extended by org.josql.functions.AbstractFunctionHandler
      extended by org.josql.functions.FormattingFunctions
All Implemented Interfaces:
FunctionHandler

public class FormattingFunctions
extends AbstractFunctionHandler


Field Summary
static String DEFAULT_DATE_FORMAT_SPEC
           
static String DEFAULT_DATE_TIME_FORMAT_SPEC
           
static String DEFAULT_DECIMAL_FORMAT_SPEC
           
static String HANDLER_ID
           
 
Fields inherited from class org.josql.functions.AbstractFunctionHandler
q
 
Constructor Summary
FormattingFunctions()
           
 
Method Summary
 String formatDate(Object o)
           
 String formatDate(Query q, Object o, com.gentlyweb.utils.Getter g, String spec, String saveValueName)
           
 String formatDateTime(Object o)
           
 String formatNumber(Object n)
           
 String formatNumber(Query q, Object o, com.gentlyweb.utils.Getter g, String spec, String saveValueName)
           
 String formatNumber(Query q, Object o, String spec, String saveValueName)
           
 String formatTimeDuration(Object o)
           
 void setDefaultDateFormatSpec(String spec)
           
 
Methods inherited from class org.josql.functions.AbstractFunctionHandler
setQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDLER_ID

public static final String HANDLER_ID
See Also:
Constant Field Values

DEFAULT_DATE_FORMAT_SPEC

public static String DEFAULT_DATE_FORMAT_SPEC

DEFAULT_DATE_TIME_FORMAT_SPEC

public static String DEFAULT_DATE_TIME_FORMAT_SPEC

DEFAULT_DECIMAL_FORMAT_SPEC

public static String DEFAULT_DECIMAL_FORMAT_SPEC
Constructor Detail

FormattingFunctions

public FormattingFunctions()
Method Detail

formatTimeDuration

public String formatTimeDuration(Object o)
                          throws QueryExecutionException
Throws:
QueryExecutionException

setDefaultDateFormatSpec

public void setDefaultDateFormatSpec(String spec)

formatDate

public String formatDate(Object o)
                  throws QueryExecutionException
Throws:
QueryExecutionException

formatDateTime

public String formatDateTime(Object o)
                      throws QueryExecutionException
Throws:
QueryExecutionException

formatDate

public String formatDate(Query q,
                         Object o,
                         com.gentlyweb.utils.Getter g,
                         String spec,
                         String saveValueName)
                  throws QueryExecutionException
Throws:
QueryExecutionException

formatNumber

public String formatNumber(Object n)
                    throws QueryExecutionException
Throws:
QueryExecutionException

formatNumber

public String formatNumber(Query q,
                           Object o,
                           String spec,
                           String saveValueName)
                    throws QueryExecutionException
Throws:
QueryExecutionException

formatNumber

public String formatNumber(Query q,
                           Object o,
                           com.gentlyweb.utils.Getter g,
                           String spec,
                           String saveValueName)
                    throws QueryExecutionException
Throws:
QueryExecutionException


  Copyright © 2008 Gary Bentley. All Rights Reserved.