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 ARRAYSpecifies the SQL data typeARRAY.BIGINTSpecifies the SQL data typeBIGINT.BINARYSpecifies the SQL data typeBINARY.BITSpecifies the SQL data typeBIT.BLOBSpecifies the SQL data typeBLOB.BOOLEANSpecifies the SQL data typeBOOLEAN.CHARSpecifies the SQL data typeCHAR.CLOBSpecifies the SQL data typeCLOB.DATESpecifies the SQL data typeDATE.DECIMALSpecifies the SQL data typeDECIMAL.DOUBLESpecifies the SQL data typeDOUBLE.FLOATSpecifies the SQL data typeFLOAT.INTEGERSpecifies the SQL data typeINTEGER.LONGNVARCHARSpecifies the SQL data typeLONGNVARCHAR.LONGVARBINARYSpecifies the SQL data typeLONGVARBINARY.LONGVARCHARSpecifies the SQL data typeLONGVARCHAR.NCHARSpecifies the SQL data typeNCHAR.NCLOBSpecifies the SQL data typeNCLOB.NUMERICSpecifies the SQL data typeNUMERIC.NVARCHARSpecifies the SQL data typeNVARCHAR.REALSpecifies the SQL data typeREAL.ROWIDSpecifies the SQL data typeROWID.SMALLINTSpecifies the SQL data typeSMALLINT.SQLXMLSpecifies the SQL data typeSQLXML.TIMESpecifies the SQL data typeTIME.TIMESTAMPSpecifies the SQL data typeTIMESTAMP.TINYINTSpecifies the SQL data typeTINYINT.UNKNOWNSpecifies the SQL data typeUNKNOWN.VARBINARYSpecifies the SQL data typeVARBINARY.VARCHARSpecifies the SQL data typeVARCHAR.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SQLDataTypeparse(int type)static SQLDataTypeparse(int type, java.lang.String name)static SQLDataTypeparse(java.lang.String typeName)static SQLDataTypevalueOf(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)
-
-