public class FormattingFunctions extends AbstractFunctionHandler
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATE_FORMAT_SPEC |
static String |
DEFAULT_DATE_TIME_FORMAT_SPEC |
static String |
DEFAULT_DECIMAL_FORMAT_SPEC |
static String |
HANDLER_ID |
q
Constructor and Description |
---|
FormattingFunctions() |
Modifier and Type | Method and Description |
---|---|
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) |
setQuery
public static final String HANDLER_ID
public static String DEFAULT_DATE_FORMAT_SPEC
public static String DEFAULT_DATE_TIME_FORMAT_SPEC
public static String DEFAULT_DECIMAL_FORMAT_SPEC
public String formatTimeDuration(Object o) throws QueryExecutionException
QueryExecutionException
public void setDefaultDateFormatSpec(String spec)
public String formatDate(Object o) throws QueryExecutionException
QueryExecutionException
public String formatDateTime(Object o) throws QueryExecutionException
QueryExecutionException
public String formatDate(Query q, Object o, com.gentlyweb.utils.Getter g, String spec, String saveValueName) throws QueryExecutionException
QueryExecutionException
public String formatNumber(Object n) throws QueryExecutionException
QueryExecutionException
public String formatNumber(Query q, Object o, String spec, String saveValueName) throws QueryExecutionException
QueryExecutionException
public String formatNumber(Query q, Object o, com.gentlyweb.utils.Getter g, String spec, String saveValueName) throws QueryExecutionException
QueryExecutionException