org.josql.functions
Class FormattingFunctions
java.lang.Object
org.josql.functions.AbstractFunctionHandler
org.josql.functions.FormattingFunctions
- All Implemented Interfaces:
- FunctionHandler
public class FormattingFunctions
- extends AbstractFunctionHandler
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FormattingFunctions
public FormattingFunctions()
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.