public enum MonetDBToJavaMapping extends Enum<MonetDBToJavaMapping>
Enum Constant and Description |
---|
Bigint |
Blob |
Boolean |
Char |
Clob |
Date |
Decimal |
Double |
Int |
MonthInterval |
Real |
SecondInterval |
Smallint |
Time |
Timestamp |
TimestampTz |
TimeTz |
Tinyint |
Varchar |
Modifier and Type | Method and Description |
---|---|
<T> Class<T> |
getJavaClass()
Gets the corresponding Java class for the enum value.
|
static MonetDBToJavaMapping |
getJavaMappingFromMonetDBString(String sqlName)
Get the corresponding MonetDBToJavaMapping from MonetDB internal data type.
|
static int |
getJavaMappingFromMonetDBStringOrdinalValue(String sqlName)
Get the corresponding MonetDBToJavaMapping from MonetDB internal data type.
|
static MonetDBToJavaMapping |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MonetDBToJavaMapping[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MonetDBToJavaMapping Boolean
public static final MonetDBToJavaMapping Char
public static final MonetDBToJavaMapping Varchar
public static final MonetDBToJavaMapping Clob
public static final MonetDBToJavaMapping Tinyint
public static final MonetDBToJavaMapping Smallint
public static final MonetDBToJavaMapping Int
public static final MonetDBToJavaMapping Bigint
public static final MonetDBToJavaMapping Decimal
public static final MonetDBToJavaMapping Real
public static final MonetDBToJavaMapping Double
public static final MonetDBToJavaMapping MonthInterval
public static final MonetDBToJavaMapping SecondInterval
public static final MonetDBToJavaMapping Time
public static final MonetDBToJavaMapping TimeTz
public static final MonetDBToJavaMapping Date
public static final MonetDBToJavaMapping Timestamp
public static final MonetDBToJavaMapping TimestampTz
public static final MonetDBToJavaMapping Blob
public static MonetDBToJavaMapping[] values()
for (MonetDBToJavaMapping c : MonetDBToJavaMapping.values()) System.out.println(c);
public static MonetDBToJavaMapping valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MonetDBToJavaMapping getJavaMappingFromMonetDBString(String sqlName) throws MonetDBEmbeddedException
sqlName
- The MonetDB's data type SQL nameMonetDBEmbeddedException
- If the sql name doesn't existpublic static int getJavaMappingFromMonetDBStringOrdinalValue(String sqlName) throws MonetDBEmbeddedException
sqlName
- The MonetDB's data type SQL nameMonetDBEmbeddedException
- If the sql name doesn't existpublic <T> Class<T> getJavaClass()
T
- The Java class of the mapped MonetDB columnCopyright © 2018. All rights reserved.