Enum SQLDataType
- java.lang.Object
-
- java.lang.Enum<SQLDataType>
-
- com.orchestranetworks.addon.dataexchange.sql.SQLDataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SQLDataType>
public enum SQLDataType extends java.lang.Enum<SQLDataType>
Defines the possible SQL data types.- Since:
- 2.2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
Specifies the SQL data typeARRAY
.BIGINT
Specifies the SQL data typeBIGINT
.BINARY
Specifies the SQL data typeBINARY
.BIT
Specifies the SQL data typeBIT
.BLOB
Specifies the SQL data typeBLOB
.BOOLEAN
Specifies the SQL data typeBOOLEAN
.CHAR
Specifies the SQL data typeCHAR
.CLOB
Specifies the SQL data typeCLOB
.DATE
Specifies the SQL data typeDATE
.DECIMAL
Specifies the SQL data typeDECIMAL
.DOUBLE
Specifies the SQL data typeDOUBLE
.FLOAT
Specifies the SQL data typeFLOAT
.INTEGER
Specifies the SQL data typeINTEGER
.LONGNVARCHAR
Specifies the SQL data typeLONGNVARCHAR
.LONGVARBINARY
Specifies the SQL data typeLONGVARBINARY
.LONGVARCHAR
Specifies the SQL data typeLONGVARCHAR
.NCHAR
Specifies the SQL data typeNCHAR
.NCLOB
Specifies the SQL data typeNCLOB
.NUMERIC
Specifies the SQL data typeNUMERIC
.NVARCHAR
Specifies the SQL data typeNVARCHAR
.REAL
Specifies the SQL data typeREAL
.ROWID
Specifies the SQL data typeROWID
.SMALLINT
Specifies the SQL data typeSMALLINT
.SQLXML
Specifies the SQL data typeSQLXML
.TIME
Specifies the SQL data typeTIME
.TIMESTAMP
Specifies the SQL data typeTIMESTAMP
.TINYINT
Specifies the SQL data typeTINYINT
.UNKNOWN
Specifies the SQL data typeUNKNOWN
.VARBINARY
Specifies the SQL data typeVARBINARY
.VARCHAR
Specifies the SQL data typeVARCHAR
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SQLDataType
parse(int type)
static SQLDataType
parse(int type, java.lang.String name)
static SQLDataType
parse(java.lang.String typeName)
static SQLDataType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SQLDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final SQLDataType BOOLEAN
Specifies the SQL data typeBOOLEAN
.
-
BIT
public static final SQLDataType BIT
Specifies the SQL data typeBIT
.
-
BIGINT
public static final SQLDataType BIGINT
Specifies the SQL data typeBIGINT
.
-
INTEGER
public static final SQLDataType INTEGER
Specifies the SQL data typeINTEGER
.
-
SMALLINT
public static final SQLDataType SMALLINT
Specifies the SQL data typeSMALLINT
.
-
TINYINT
public static final SQLDataType TINYINT
Specifies the SQL data typeTINYINT
.
-
DECIMAL
public static final SQLDataType DECIMAL
Specifies the SQL data typeDECIMAL
.
-
NUMERIC
public static final SQLDataType NUMERIC
Specifies the SQL data typeNUMERIC
.
-
DOUBLE
public static final SQLDataType DOUBLE
Specifies the SQL data typeDOUBLE
.
-
REAL
public static final SQLDataType REAL
Specifies the SQL data typeREAL
.
-
FLOAT
public static final SQLDataType FLOAT
Specifies the SQL data typeFLOAT
.
-
CHAR
public static final SQLDataType CHAR
Specifies the SQL data typeCHAR
.
-
VARCHAR
public static final SQLDataType VARCHAR
Specifies the SQL data typeVARCHAR
.
-
LONGVARCHAR
public static final SQLDataType LONGVARCHAR
Specifies the SQL data typeLONGVARCHAR
.
-
NCHAR
public static final SQLDataType NCHAR
Specifies the SQL data typeNCHAR
.
-
NVARCHAR
public static final SQLDataType NVARCHAR
Specifies the SQL data typeNVARCHAR
.
-
LONGNVARCHAR
public static final SQLDataType LONGNVARCHAR
Specifies the SQL data typeLONGNVARCHAR
.
-
BINARY
public static final SQLDataType BINARY
Specifies the SQL data typeBINARY
.
-
VARBINARY
public static final SQLDataType VARBINARY
Specifies the SQL data typeVARBINARY
.
-
LONGVARBINARY
public static final SQLDataType LONGVARBINARY
Specifies the SQL data typeLONGVARBINARY
.
-
ARRAY
public static final SQLDataType ARRAY
Specifies the SQL data typeARRAY
.
-
DATE
public static final SQLDataType DATE
Specifies the SQL data typeDATE
.
-
TIME
public static final SQLDataType TIME
Specifies the SQL data typeTIME
.
-
TIMESTAMP
public static final SQLDataType TIMESTAMP
Specifies the SQL data typeTIMESTAMP
.
-
BLOB
public static final SQLDataType BLOB
Specifies the SQL data typeBLOB
.
-
CLOB
public static final SQLDataType CLOB
Specifies the SQL data typeCLOB
.
-
NCLOB
public static final SQLDataType NCLOB
Specifies the SQL data typeNCLOB
.
-
ROWID
public static final SQLDataType ROWID
Specifies the SQL data typeROWID
.
-
SQLXML
public static final SQLDataType SQLXML
Specifies the SQL data typeSQLXML
.
-
UNKNOWN
public static final SQLDataType UNKNOWN
Specifies the SQL data typeUNKNOWN
.
-
-
Method Detail
-
values
public static SQLDataType[] 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 (SQLDataType c : SQLDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SQLDataType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parse
public static SQLDataType parse(int type)
-
parse
public static SQLDataType parse(java.lang.String typeName)
-
parse
public static SQLDataType parse(int type, java.lang.String name)
-
-