public interface AS400DataType
extends java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
static int |
TYPE_ARRAY
Constant representing the instance of this class is an
AS400Array object. |
static int |
TYPE_BIN1
Constant representing the instance of this class is an
AS400Bin1 object. |
static int |
TYPE_BIN2
Constant representing the instance of this class is an
AS400Bin2 object. |
static int |
TYPE_BIN4
Constant representing the instance of this class is an
AS400Bin4 object. |
static int |
TYPE_BIN8
Constant representing the instance of this class is an
AS400Bin8 object. |
static int |
TYPE_BYTE_ARRAY
Constant representing the instance of this class is an
AS400ByteArray object. |
static int |
TYPE_DATE
Constant representing the instance of this class is an
AS400Date object. |
static int |
TYPE_DECFLOAT
Constant representing the instance of this class is an
AS400DecFloat object. |
static int |
TYPE_FLOAT4
Constant representing the instance of this class is an
AS400Float4 object. |
static int |
TYPE_FLOAT8
Constant representing the instance of this class is an
AS400Float8 object. |
static int |
TYPE_PACKED
Constant representing the instance of this class is an
AS400PackedDecimal object. |
static int |
TYPE_STRUCTURE
Constant representing the instance of this class is an
AS400Structure object. |
static int |
TYPE_TEXT
Constant representing the instance of this class is an
AS400Text object. |
static int |
TYPE_TIME
Constant representing the instance of this class is an
AS400Time object. |
static int |
TYPE_TIME_OF_DAY
Deprecated.
Use
TYPE_TIME instead. |
static int |
TYPE_TIMESTAMP
Constant representing the instance of this class is an
AS400Timestamp object. |
static int |
TYPE_UBIN1
Constant representing the instance of this class is an
AS400UnsignedBin1 object. |
static int |
TYPE_UBIN2
Constant representing the instance of this class is an
AS400UnsignedBin2 object. |
static int |
TYPE_UBIN4
Constant representing the instance of this class is an
AS400UnsignedBin4 object. |
static int |
TYPE_UBIN8
Constant representing the instance of this class is an
AS400UnsignedBin8 object. |
static int |
TYPE_VARCHAR
Constant representing the instance of this class is an
AS400Varchar object. |
static int |
TYPE_ZONED
Constant representing the instance of this class is an
AS400ZonedDecimal object. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a new AS400DataType object that is identical to the current instance.
|
int |
getByteLength()
Returns the byte length of the data type.
|
java.lang.Object |
getDefaultValue()
Returns a Java object representing the default value of the data type.
|
int |
getInstanceType()
Returns an integer constant representing the type of class that implements
this interface.
|
java.lang.Class |
getJavaType()
Returns the Java class that corresponds with this data type.
|
byte[] |
toBytes(java.lang.Object javaValue)
Converts the specified Java object to IBM i format.
|
int |
toBytes(java.lang.Object javaValue,
byte[] as400Value)
Converts the specified Java object into IBM i format in the specified byte array.
|
int |
toBytes(java.lang.Object javaValue,
byte[] as400Value,
int offset)
Converts the specified Java object into IBM i format in the specified byte array.
|
java.lang.Object |
toObject(byte[] as400Value)
Converts the specified IBM i data type to a Java object.
|
java.lang.Object |
toObject(byte[] as400Value,
int offset)
Converts the specified IBM i data type to a Java object.
|
static final long serialVersionUID
static final int TYPE_ARRAY
AS400Array
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_BIN2
AS400Bin2
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_BIN4
AS400Bin4
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_BIN8
AS400Bin8
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_BYTE_ARRAY
AS400ByteArray
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_FLOAT4
AS400Float4
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_FLOAT8
AS400Float8
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_PACKED
AS400PackedDecimal
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_STRUCTURE
AS400Structure
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_TEXT
AS400Text
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_UBIN2
AS400UnsignedBin2
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_UBIN4
AS400UnsignedBin4
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_ZONED
AS400ZonedDecimal
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_DECFLOAT
AS400DecFloat
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_BIN1
AS400Bin1
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_UBIN1
AS400UnsignedBin1
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_UBIN8
AS400UnsignedBin8
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_DATE
AS400Date
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_TIME
AS400Time
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_TIME_OF_DAY
TYPE_TIME
instead.static final int TYPE_TIMESTAMP
AS400Timestamp
object.getInstanceType()
,
Constant Field Valuesstatic final int TYPE_VARCHAR
AS400Varchar
object.getInstanceType()
,
Constant Field Valuesjava.lang.Object clone()
int getByteLength()
java.lang.Object getDefaultValue()
int getInstanceType()
java.lang.Class getJavaType()
byte[] toBytes(java.lang.Object javaValue)
javaValue
- The object corresponding to the data type. It must be an instance of the correct type.int toBytes(java.lang.Object javaValue, byte[] as400Value)
javaValue
- The object corresponding to the data type. It must be an instance of the correct type.as400Value
- The array to receive the data type in IBM i format. There must be enough space to hold the IBM i value.int toBytes(java.lang.Object javaValue, byte[] as400Value, int offset)
javaValue
- The object corresponding to the data type. It must be an instance of the correct type.as400Value
- The array to receive the data type in IBM i format. There must be enough space to hold the IBM i value.offset
- The offset into the byte array for the start of the IBM i value. It must be greater than or equal to zero.java.lang.Object toObject(byte[] as400Value)
as400Value
- The array containing the data type in IBM i format. The entire data type must be represented.java.lang.Object toObject(byte[] as400Value, int offset)
as400Value
- The array containing the data type in IBM i format. The entire data type must be represented.offset
- The offset into the byte array for the start of the IBM i value. It must be greater than or equal to zero.