|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.util.FormatHelper
public final class FormatHelper
Helper class for formatting
| Constructor Summary | |
|---|---|
FormatHelper()
|
|
| Method Summary | |
|---|---|
static String |
formatSqlBoolean(ColumnType columnType,
boolean b)
|
static String |
formatSqlTime(ColumnType columnType,
Date date)
Formats a date according to a specific column type (DATE, TIME or TIMESTAMP) |
static String |
formatSqlTime(ColumnType columnType,
Date date,
boolean typeCastDeclaration)
Formats a date according to a specific column type (DATE, TIME or TIMESTAMP). |
static String |
formatSqlTime(ColumnType columnType,
Date date,
boolean typeCastDeclaration,
String beforeDateLiteral,
String afterDateLiteral)
Formats a date according to a specific column type (DATE, TIME or TIMESTAMP) |
static String |
formatSqlValue(ColumnType columnType,
Object value)
|
static NumberFormat |
getSqlNumberFormat()
|
static NumberFormat |
getUiNumberFormat()
Creates a uniform number format which is similar to that of eg. |
static Date |
parseSqlTime(ColumnType columnType,
String value)
Parses a SQL string representation of a time based value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormatHelper()
| Method Detail |
|---|
public static NumberFormat getUiNumberFormat()
public static NumberFormat getSqlNumberFormat()
public static String formatSqlBoolean(ColumnType columnType,
boolean b)
public static String formatSqlTime(ColumnType columnType,
Date date)
columnType - the column typedate - the date value
public static String formatSqlTime(ColumnType columnType,
Date date,
boolean typeCastDeclaration,
String beforeDateLiteral,
String afterDateLiteral)
columnType - the column typedate - the date valuetypeCastDeclaration - whether or not to include a type cast declarationbeforeDateLiteral - before date literalafterDateLiteral - after date literal
public static String formatSqlTime(ColumnType columnType,
Date date,
boolean typeCastDeclaration)
columnType - date - typeCastDeclaration -
public static Date parseSqlTime(ColumnType columnType,
String value)
type - value -
public static String formatSqlValue(ColumnType columnType,
Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||