org.paneris.jammyjoes.util
Class JammyJoesUtil
java.lang.Object
org.paneris.jammyjoes.util.JammyJoesUtil
public class JammyJoesUtil
- extends java.lang.Object
BibliomaniaUtil is a place where useful Static methods can be put.
Method Summary |
static java.lang.String |
euroFormat(java.util.Locale locale,
double value)
|
static java.lang.String |
formatDateForPostgresSQL(java.util.Date date)
|
static java.lang.String |
formatDateForSQL(org.melati.poem.Database db,
java.util.Date date)
|
static java.lang.String |
getCookieValue(org.melati.Melati melati,
java.lang.String key)
|
static javax.servlet.http.Cookie |
makeCookie(java.lang.String key,
java.lang.String value,
int days)
|
static java.util.Locale |
makeLocale(java.lang.String localeString)
|
static double |
roundTo2dp(double num)
|
static java.lang.String |
shoppingTemplate(org.melati.Melati melati,
java.lang.String name)
create the full name of the template to be returned |
static boolean |
telesales(org.melati.Melati melati)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JammyJoesUtil
public JammyJoesUtil()
makeLocale
public static java.util.Locale makeLocale(java.lang.String localeString)
euroFormat
public static java.lang.String euroFormat(java.util.Locale locale,
double value)
getCookieValue
public static java.lang.String getCookieValue(org.melati.Melati melati,
java.lang.String key)
makeCookie
public static javax.servlet.http.Cookie makeCookie(java.lang.String key,
java.lang.String value,
int days)
formatDateForSQL
public static java.lang.String formatDateForSQL(org.melati.poem.Database db,
java.util.Date date)
formatDateForPostgresSQL
public static java.lang.String formatDateForPostgresSQL(java.util.Date date)
roundTo2dp
public static double roundTo2dp(double num)
telesales
public static boolean telesales(org.melati.Melati melati)
shoppingTemplate
public static java.lang.String shoppingTemplate(org.melati.Melati melati,
java.lang.String name)
- create the full name of the template to be returned
- Parameters:
melati
- - the melati for this request (not used)name
- - the name of the template
- Returns:
- - the full path to the template
Copyright © 2001-2008 PanEris. All Rights Reserved.