Enum RDBJdbcType
- java.lang.Object
-
- java.lang.Enum<RDBJdbcType>
-
- org.openforis.collect.relational.sql.RDBJdbcType
-
- All Implemented Interfaces:
Serializable,Comparable<RDBJdbcType>
public enum RDBJdbcType extends Enum<RDBJdbcType>
- Author:
- S. Ricci
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RDBJdbcTypefromCompositeAttributeDefinition(AttributeDefinition defn)static RDBJdbcTypefromType(Class<?> type)intgetCode()Class<?>getJavaType()StringgetName()static RDBJdbcTypevalueOf(String name)Returns the enum constant of this type with the specified name.static RDBJdbcType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final RDBJdbcType INTEGER
-
FLOAT
public static final RDBJdbcType FLOAT
-
BIGINT
public static final RDBJdbcType BIGINT
-
BOOLEAN
public static final RDBJdbcType BOOLEAN
-
VARCHAR
public static final RDBJdbcType VARCHAR
-
DATE
public static final RDBJdbcType DATE
-
TIME
public static final RDBJdbcType TIME
-
-
Method Detail
-
values
public static RDBJdbcType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RDBJdbcType c : RDBJdbcType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RDBJdbcType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromType
public static RDBJdbcType fromType(Class<?> type)
-
fromCompositeAttributeDefinition
public static RDBJdbcType fromCompositeAttributeDefinition(AttributeDefinition defn)
-
getCode
public int getCode()
-
getName
public String getName()
-
getJavaType
public Class<?> getJavaType()
-
-