public class PackedDateConverter extends BaseTypeConverter
properties
Constructor and Description |
---|
PackedDateConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
readObject(byte[] ioArea,
int start,
int length,
Class objectType,
Collection<String> warningStrings)
Reads a PackedDecimal value from the database and interprets it as a date
value.
|
void |
writeObject(byte[] ioArea,
int start,
int length,
Object object,
Collection<String> warningStrings)
Writes a new PackedDecimal value to an IMS database as a numeric
representation of a date pattern.
|
getUnconvertedBytes, isNull, setNull, setProperties, setUnconvertedBytes
public Object readObject(byte[] ioArea, int start, int length, Class objectType, Collection<String> warningStrings) throws com.ibm.ims.dli.types.ConversionException
com.ibm.ims.dli.types.ConversionException
- if an error occurs during processingpublic void writeObject(byte[] ioArea, int start, int length, Object object, Collection<String> warningStrings) throws com.ibm.ims.dli.types.ConversionException, com.ibm.ims.dli.types.UnsupportedTypeConversion
pattern
property
to specify the date pattern. Use the isSigned
property to
specify whether the input value is signed or unsigned.com.ibm.ims.dli.types.UnsupportedTypeConversion
com.ibm.ims.dli.types.ConversionException
(c) Copyright IBM Corporation 2008, 2017.