public class IfxTypes
extends java.lang.Object
Types
Modifier and Type | Field and Description |
---|---|
static short |
IFX_BIT_COLLCLIENT
A bit mask to indicate that a particular host variable is a client
collection.
|
static short |
IFX_BIT_DBOOLEAN
A bit mask to indicate that a particular column is a distinct of a
boolean.
|
static short |
IFX_BIT_DISTINCT
A bit mask to indicate that a particular column is a distinct type.
|
static short |
IFX_BIT_NAMEDROW
A bit mask to indicate that a particular column is a named row type.
|
static short |
IFX_BIT_NOTNULLABLE
A bit mask to indicate that a particular column does not allow null
values.
|
static short |
IFX_TYPE_BIGINT |
static short |
IFX_TYPE_BIGSERIAL |
static short |
IFX_TYPE_BLOB
Informix BLOB type.
|
static short |
IFX_TYPE_BOOL
The Informix SQLBOOL type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_BYTE
The Informix SQLBYTES type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_CHAR
The Informix SQLCHAR type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_CLOB
Informix CLOB type.
|
static short |
IFX_TYPE_COLLECTION
The Informix SQLCOLLECTION type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_DATE
The Informix SQLDATE type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_DATETIME
The Informix SQLDTIME type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_DECIMAL
The Informix SQLDECIMAL type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_FLOAT
The Informix SQLFLOAT type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_IMPEXP
The Informix SQLIMPEXP type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_IMPEXPBIN
The Informix SQLIMPEXPBIN type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_INT
The Informix SQLINT type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_INT8
The Informix SQLINT8 type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_INTERVAL
The Informix SQLINTERVAL type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_LIST
The Informix SQLLIST type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_LVARCHAR
The Informix SQLLVARCHAR type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_MAX
Maximum number for Informix types.
|
static short |
IFX_TYPE_MONEY
The Informix SQLMONEY type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_MULTISET
The Informix SQLMULTISET type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_NCHAR
The Informix SQLNCHAR type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_NULL
The Informix SQLNULL type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_NVCHAR
The Informix SQLNVCHAR type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_REFSER8
The Informix SQLREFSER8 type.
|
static short |
IFX_TYPE_ROW
The Informix SQLROW type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_ROWREF
The Informix SQLROWREF type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_SENDRECV
The Informix SQLSENDRECV type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_SERIAL
The Informix SQLSERIAL type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_SERIAL8
The Informix SQLSERIAL8 type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_SET
The Informix SQLSET type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_SMALLINT
The Informix SQLSMINT type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_SMFLOAT
The Informix SQLSMFLOAT type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_SQLUDRDEFAULT
The Informix SQLUDRDEFAULT type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_TEXT
The Informix SQLTEXT type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_UDTFIXED
The Informix SQLUDTFIXED type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_UDTVAR
The Informix SQLUDTVAR type as defined in the sqltypes.h file.
|
static short |
IFX_TYPE_UNKNOWN
Unknown type.
|
static short |
IFX_TYPE_VARCHAR
The Informix SQLVCHAR type as defined in the sqltypes.h file.
|
static short |
IFX_XID_BLOB |
static short |
IFX_XID_BOOLEAN |
static short |
IFX_XID_BSON |
static short |
IFX_XID_CLIENTBINVAL |
static short |
IFX_XID_CLOB |
static short |
IFX_XID_IDSCOVERINGINFO |
static short |
IFX_XID_IDSELEMENTENC |
static short |
IFX_XID_IDSSECURITYLABEL |
static short |
IFX_XID_IFX_LO_SPEC |
static short |
IFX_XID_IFX_LO_STAT |
static short |
IFX_XID_IMPEXP |
static short |
IFX_XID_IMPEXPBIN |
static short |
IFX_XID_INDEXKEYARRAY |
static short |
IFX_XID_JSON |
static short |
IFX_XID_LLVC |
static short |
IFX_XID_LOLIST |
static short |
IFX_XID_LVARCHAR |
static short |
IFX_XID_POINTER |
static short |
IFX_XID_RTNPARAMTYPES |
static short |
IFX_XID_SELFUNCARGS |
static short |
IFX_XID_SENDRECV |
static short |
IFX_XID_STAT |
static short |
IFX_XID_STREAM |
static java.lang.String |
IFX_XNAME_BLOB
Extended type name for BLOB types.
|
static java.lang.String |
IFX_XNAME_BOOL
Extended type name for boolean types.
|
static java.lang.String |
IFX_XNAME_BSON |
static java.lang.String |
IFX_XNAME_CLOB
Extended type name for BLOB types.
|
static java.lang.String |
IFX_XNAME_JSON |
static java.lang.String |
IFX_XNAME_LVARCHAR
Extended type name for lvarchar types.
|
static short |
LAST_BUILTIN_XID_TYPE |
Modifier and Type | Method and Description |
---|---|
static int |
FromIfxNameToIfxType(java.lang.String name)
Converts Informix SQL type names to Informix types.
|
static int |
FromIfxToJDBC2Type(int ifxType)
Converts Informix types to JDBC types with JDK 1.2.
|
static int |
FromIfxToJDBCType(int ifxType)
Converts Informix types to JDBC types.
|
static java.lang.String |
FromIfxTypeToJava(int ifxType)
Converts Informix types to JDBC types.
|
static int |
FromJavaToIfxType(java.lang.String javaClassName)
Converts Java class types (host variable types) to Informix types.
|
static int |
FromJDBCToIfxType(int jdbcType)
Converts JDBC types to Informix types.
|
static int |
getIfxTypeForExtendedTypes(int extendedId) |
static java.lang.String |
IfxExTypeToName(int ifxExtType) |
static int |
IfxTypeToDecDigits(int ifxType,
int ifxExType,
int colLen)
Returns the number of Decimal Digits for an Informix type
|
static java.lang.String |
IfxTypeToName(int ifxType)
Converts Informix types to type names.
|
static int |
IfxTypeToRightDecimal(int ifxType,
int ifxExType,
int colLen)
Returns the number of Decimal Digits to the right of the decimal for an Informix type
|
static boolean |
isCollection(int ifxType)
Tests if the given type is a collection type.
|
static boolean |
isComplexType(int ifxType)
Tests if the given type is a complex type.
|
static boolean |
IsFloatTypes(int ifxType)
Tests if the given type is a float type (either
IFX_TYPE_FLOAT or IFX_TYPE_SMFLOAT).
|
static boolean |
isString(int ifxType)
Tests if the given type is a string type (IFX_TYPE_CHAR,
IFX_TYPE_VARCHAR, IFX_TYPE_NCHAR, IFX_TYPE_NVCHAR,
or IFX_TYPE_LVARCHAR.
|
static boolean |
isUDT(int ifxType)
Tests if the given type is a user-defined type, which
includes opaque types, lvarchars, and booleans.
|
static java.lang.String |
JDBCTypeToName(int jdbcType)
Converts JDBC types to type names.
|
public static final short IFX_TYPE_CHAR
public static final short IFX_TYPE_SMALLINT
public static final short IFX_TYPE_INT
public static final short IFX_TYPE_FLOAT
public static final short IFX_TYPE_SMFLOAT
public static final short IFX_TYPE_DECIMAL
public static final short IFX_TYPE_SERIAL
public static final short IFX_TYPE_DATE
public static final short IFX_TYPE_MONEY
public static final short IFX_TYPE_NULL
public static final short IFX_TYPE_DATETIME
public static final short IFX_TYPE_BYTE
public static final short IFX_TYPE_TEXT
public static final short IFX_TYPE_VARCHAR
public static final short IFX_TYPE_INTERVAL
public static final short IFX_TYPE_NCHAR
public static final short IFX_TYPE_NVCHAR
public static final short IFX_TYPE_INT8
public static final short IFX_TYPE_SERIAL8
public static final short IFX_TYPE_SET
public static final short IFX_TYPE_MULTISET
public static final short IFX_TYPE_LIST
public static final short IFX_TYPE_ROW
public static final short IFX_TYPE_COLLECTION
public static final short IFX_TYPE_ROWREF
public static final short IFX_TYPE_UDTVAR
public static final short IFX_TYPE_UDTFIXED
public static final short IFX_TYPE_REFSER8
public static final short IFX_TYPE_LVARCHAR
public static final short IFX_TYPE_SENDRECV
public static final short IFX_TYPE_BOOL
public static final short IFX_TYPE_IMPEXP
public static final short IFX_TYPE_IMPEXPBIN
public static final short IFX_TYPE_SQLUDRDEFAULT
public static final short IFX_TYPE_UNKNOWN
public static final short IFX_TYPE_MAX
public static final short IFX_TYPE_CLOB
public static final short IFX_TYPE_BLOB
public static final short IFX_BIT_NOTNULLABLE
public static final short IFX_BIT_DISTINCT
public static final short IFX_BIT_NAMEDROW
public static final short IFX_BIT_COLLCLIENT
public static final short IFX_BIT_DBOOLEAN
public static final short IFX_XID_LVARCHAR
public static final short IFX_XID_SENDRECV
public static final short IFX_XID_IMPEXP
public static final short IFX_XID_IMPEXPBIN
public static final short IFX_XID_BOOLEAN
public static final short IFX_XID_POINTER
public static final short IFX_XID_INDEXKEYARRAY
public static final short IFX_XID_RTNPARAMTYPES
public static final short IFX_XID_SELFUNCARGS
public static final short IFX_XID_BLOB
public static final short IFX_XID_CLOB
public static final short IFX_XID_LOLIST
public static final short IFX_XID_IFX_LO_SPEC
public static final short IFX_XID_IFX_LO_STAT
public static final short IFX_XID_STAT
public static final short IFX_XID_CLIENTBINVAL
public static final short IFX_XID_STREAM
public static final short IFX_XID_IDSSECURITYLABEL
public static final short IFX_XID_IDSELEMENTENC
public static final short IFX_XID_IDSCOVERINGINFO
public static final short IFX_XID_LLVC
public static final short IFX_XID_JSON
public static final short IFX_XID_BSON
public static final short LAST_BUILTIN_XID_TYPE
public static final short IFX_TYPE_BIGINT
public static final short IFX_TYPE_BIGSERIAL
public static final java.lang.String IFX_XNAME_BLOB
public static final java.lang.String IFX_XNAME_CLOB
public static final java.lang.String IFX_XNAME_BOOL
public static final java.lang.String IFX_XNAME_LVARCHAR
public static final java.lang.String IFX_XNAME_BSON
public static final java.lang.String IFX_XNAME_JSON
public static int FromIfxToJDBC2Type(int ifxType)
ifxType
- The Informix SQL type.public static int FromIfxToJDBCType(int ifxType)
ifxType
- The Informix SQL type.public static int FromJDBCToIfxType(int jdbcType)
jdbcType
- The JDBC type as defined in java.sql.Types.public static int FromJavaToIfxType(java.lang.String javaClassName)
javaClassName
- The fully qualified java object class name;
for example, java.lang.String.public static java.lang.String FromIfxTypeToJava(int ifxType)
ifxType
- The Informix SQL type.public static java.lang.String IfxTypeToName(int ifxType)
ifxType
- The Informix SQL type.public static java.lang.String IfxExTypeToName(int ifxExtType)
public static java.lang.String JDBCTypeToName(int jdbcType)
jdbcType
- The JDBC type as defined in java.sql.Types.public static int FromIfxNameToIfxType(java.lang.String name)
name
- The Informix SQL type name in a string; for example, CHAR.public static int IfxTypeToDecDigits(int ifxType, int ifxExType, int colLen)
ifxType
- The Informix SQL type.ifxExType
- The Informix Extended type.colLen
- The column length to use for variable length typespublic static int IfxTypeToRightDecimal(int ifxType, int ifxExType, int colLen)
ifxType
- The Informix SQL type.ifxExType
- The Informix Extended type.colLen
- The column length to use for variable length typespublic static boolean IsFloatTypes(int ifxType)
ifxType
- The Informix SQL type.public static boolean isString(int ifxType)
ifxType
- The Informix SQL type.public static boolean isUDT(int ifxType)
ifxType
- The Informix SQL type.public static boolean isCollection(int ifxType)
ifxType
- The Informix SQL type.public static boolean isComplexType(int ifxType)
ifxType
- The Informix SQL type.public static int getIfxTypeForExtendedTypes(int extendedId)