(MetaAttributeNames.Numeric.NAMESPACE, MetaAttributeNames.Numeric.PRECISION, Number.class, context);
if (java.sql.Date.class.isAssignableFrom(type))
{
// this includes timestamp ..
final DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT, context.getLocale());
if (dateFormat instanceof SimpleDateFormat)
{
final SimpleDateFormat sdf = (SimpleDateFormat) dateFormat;
return sdf.toPattern();
}
// we cannot come up with a sensible default ..
return null;
}
else if (Time.class.isAssignableFrom(type))
{
// this includes timestamp ..
final DateFormat dateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT, context.getLocale());
if (dateFormat instanceof SimpleDateFormat)
{
final SimpleDateFormat sdf = (SimpleDateFormat) dateFormat;
return sdf.toPattern();
}
// we cannot come up with a sensible default ..
return null;
}
else if (Date.class.isAssignableFrom(type))
{
// this includes timestamp ..
final DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT,
context.getLocale());
if (dateFormat instanceof SimpleDateFormat)
{
final SimpleDateFormat sdf = (SimpleDateFormat) dateFormat;
return sdf.toPattern();