public interface DBStruct
DBStruct object contains a value for each attribute of the
structured type that it represents. Use a DBStruct when a database
description (DBD) contains a field with DATATYPE=STRUCT.
Your application must be written with an understanding of the Struct as it is defined in the target database, including the type mapping for each element of the Struct.
| Modifier and Type | Method and Description |
|---|---|
DBArray |
getArray(String fieldName)
Retrieves the value of the designated field in the current element of the
DBStruct object as a com.ibm.ims.dli.DBArray. |
Object[] |
getAttributes()
Retrieves and converts the ordered values of the attributes of the
structured type that this
DBStruct object represents. |
BigDecimal |
getBigDecimal(String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a java.math.BigDecimal. |
boolean |
getBoolean(String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a boolean. |
byte |
getByte(String fieldName)
Retrieves the value of the designated field in the segment of this
DBStruct object as a byte. |
byte[] |
getBytes(String fieldName)
Gets the value of the designated field in the
DBStruct
object as a byte array. |
Date |
getDate(String fieldName)
Sets the value of the designated field in the
DBStruct
object as a java.sql.Date. |
double |
getDouble(String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a double. |
float |
getFloat(String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a float. |
int |
getInt(String fieldName)
Retrieves the value of the designated field in the segment of this
DBStruct object as an int. |
long |
getLong(String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a long. |
Object |
getObject(String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as an Object in the Java Programming Language. |
short |
getShort(String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a short. |
String |
getString(String fieldName)
Gets the value of the designated field in the
DBStruct
object as a java.lang.String. |
Time |
getTime(String fieldName)
Sets the value of the designated field in the
DBStruct
object as a java.sql.Time. |
Timestamp |
getTimestamp(String fieldName)
Sets the value of the designated field in the
DBStruct
object as a java.sql.TimeStamp. |
String |
getTypeName()
Retrieves the type name of the structured type that this
DBStruct object represents. |
void |
setArray(String fieldName,
DBArray value)
Sets the value of the designated field in the
DBStruct
object as a com.ibm.ims.dli.DBArray. |
void |
setBigDecimal(String fieldName,
BigDecimal value)
Sets the value of the field in the
DBStruct object as a
java.math.BigDecimal. |
void |
setBoolean(String fieldName,
boolean value)
Sets the value of the designated field in the
DBStruct
object as a boolean. |
void |
setByte(String fieldName,
byte value)
Sets the value of the designated field in the segment of this
DBStruct object as a byte. |
void |
setBytes(String fieldName,
byte[] value)
Sets the value of the designated field in the
DBStruct
object as a byte array. |
void |
setDate(String fieldName,
Date value)
Sets the value of the designated field in the
DBStruct
object as a java.sql.Date. |
void |
setDouble(String fieldName,
double value)
Sets the value of the designated field in the
DBStruct
object as a double. |
void |
setFloat(String fieldName,
float value)
Sets the value of the designated field in the
DBStruct
object as a float. |
void |
setInt(String fieldName,
int value)
Sets the value of the designated field in the
DBStruct
object as an int. |
void |
setLong(String fieldName,
long value)
Sets the value of the designated field in the
DBStruct
object as a long. |
void |
setObject(String fieldName,
Object value)
Sets the value of the designated field in the
DBStruct
object with the Object value. |
void |
setShort(String fieldName,
short value)
Sets the value of the designated field in the s
DBStruct
object as a short. |
void |
setString(String fieldName,
String value)
Sets the value of the designated field in the
DBStruct
object as a java.lang.String. |
void |
setTime(String fieldName,
Time value)
Sets the value of the designated field in the
DBStruct
object as a java.sql.Time. |
void |
setTimestamp(String fieldName,
Timestamp value)
Sets the value of the designated field in the
DBStruct
object as a java.sql.TimeStamp. |
Object[] getAttributes() throws DLIException
DBStruct object represents. The
driver processes and converts each attribute individually, based on the
defined mapping for that attribute.DLIException - if an error occurs converting the attributesString getTypeName()
DBStruct object represents.pcbName.segmentName.structNameDBArray getArray(String fieldName) throws DLIException
DBStruct object as a com.ibm.ims.dli.DBArray.fieldName - name of the fieldDLIException - if an error occursDBArrayvoid setArray(String fieldName, DBArray value) throws DLIException
DBStruct
object as a com.ibm.ims.dli.DBArray.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursDBArrayboolean getBoolean(String fieldName) throws DLIException
DBStruct
object as a boolean.fieldName - name of the fieldDLIException - if an error occursvoid setBoolean(String fieldName, boolean value) throws DLIException
DBStruct
object as a boolean.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursbyte getByte(String fieldName) throws DLIException
DBStruct object as a byte.fieldName - name of the fieldDLIException - if an error occursvoid setByte(String fieldName, byte value) throws DLIException
DBStruct object as a byte.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursint getInt(String fieldName) throws DLIException
DBStruct object as an int.fieldName - name of the fieldDLIException - if an error occursvoid setInt(String fieldName, int value) throws DLIException
DBStruct
object as an int.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursshort getShort(String fieldName) throws DLIException
DBStruct
object as a short.fieldName - name of the fieldDLIException - if an error occursvoid setShort(String fieldName, short value) throws DLIException
DBStruct
object as a short.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occurslong getLong(String fieldName) throws DLIException
DBStruct
object as a long.fieldName - name of the fieldDLIException - if an error occursvoid setLong(String fieldName, long value) throws DLIException
DBStruct
object as a long.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursfloat getFloat(String fieldName) throws DLIException
DBStruct
object as a float.fieldName - name of the fieldDLIException - if an error occursvoid setFloat(String fieldName, float value) throws DLIException
DBStruct
object as a float.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursdouble getDouble(String fieldName) throws DLIException
DBStruct
object as a double.fieldName - name of the fieldDLIException - if an error occursvoid setDouble(String fieldName, double value) throws DLIException
DBStruct
object as a double.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursbyte[] getBytes(String fieldName) throws DLIException
DBStruct
object as a byte array.fieldName - name of the fieldDLIException - if an error occursvoid setBytes(String fieldName, byte[] value) throws DLIException
DBStruct
object as a byte array.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursString getString(String fieldName) throws DLIException
DBStruct
object as a java.lang.String.fieldName - name of the fieldDLIException - if an error occursvoid setString(String fieldName, String value) throws DLIException
DBStruct
object as a java.lang.String.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursBigDecimal getBigDecimal(String fieldName) throws DLIException
DBStruct
object as a java.math.BigDecimal.fieldName - name of the fieldDLIException - if an error occursvoid setBigDecimal(String fieldName, BigDecimal value) throws DLIException
DBStruct object as a
java.math.BigDecimal.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursDate getDate(String fieldName) throws DLIException
DBStruct
object as a java.sql.Date.fieldName - name of the fieldDLIException - if an error occursvoid setDate(String fieldName, Date value) throws DLIException
DBStruct
object as a java.sql.Date.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursTime getTime(String fieldName) throws DLIException
DBStruct
object as a java.sql.Time.fieldName - name of the fieldDLIException - if an error occursvoid setTime(String fieldName, Time value) throws DLIException
DBStruct
object as a java.sql.Time.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursTimestamp getTimestamp(String fieldName) throws DLIException
DBStruct
object as a java.sql.TimeStamp.fieldName - name of the fieldDLIException - if an error occursvoid setTimestamp(String fieldName, Timestamp value) throws DLIException
DBStruct
object as a java.sql.TimeStamp.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursObject getObject(String fieldName) throws DLIException
DBStruct
object as an Object in the Java Programming Language. fieldName - name of the fieldDLIException - if an error occursvoid setObject(String fieldName, Object value) throws DLIException
DBStruct
object with the Object value.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occurs(c) Copyright IBM Corporation 2008, 2017.