|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ChartColumn.DataType>
ca.sqlpower.wabit.report.chart.ChartColumn.DataType
public static enum ChartColumn.DataType
Enumeration of the data types a chart column can have.
Names are chosen for compatibility with DataType,
with which this enum will eventually be merged.
| Enum Constant Summary | |
|---|---|
DATE
|
|
NUMERIC
|
|
TEXT
|
|
| Method Summary | |
|---|---|
static ChartColumn.DataType |
forJDBCType(int jdbcType)
Returns the appropriate data type based on the given JDBC type. |
static ChartColumn.DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ChartColumn.DataType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ChartColumn.DataType TEXT
public static final ChartColumn.DataType NUMERIC
public static final ChartColumn.DataType DATE
| Method Detail |
|---|
public static ChartColumn.DataType[] values()
for (ChartColumn.DataType c : ChartColumn.DataType.values()) System.out.println(c);
public static ChartColumn.DataType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static ChartColumn.DataType forJDBCType(int jdbcType)
FIXME because of variability of database platforms, it would be far better if we had the help of the DataSourceType object for the platform the type code came from. It could be passed in as a parameter to this method.
XXX we do this in enough places in all our products (and in fact
elsewhere in Wabit that it
would make sense to create a common SimplifiedSQLType enum in
ca.sqlpower.sql and use it everywhere. Such a type would be written
to get the help of the DataSourceType in question.
jdbcType - the type code from java.sql.Types.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||