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(java.lang.String fieldName)
Retrieves the value of the designated field in the current element of the
DBStruct object as a com.ibm.ims.dli.DBArray. |
java.lang.Object[] |
getAttributes()
Retrieves and converts the ordered values of the attributes of the
structured type that this
DBStruct object represents. |
java.math.BigDecimal |
getBigDecimal(java.lang.String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a java.math.BigDecimal. |
boolean |
getBoolean(java.lang.String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a boolean. |
byte |
getByte(java.lang.String fieldName)
Retrieves the value of the designated field in the segment of this
DBStruct object as a byte. |
byte[] |
getBytes(java.lang.String fieldName)
Gets the value of the designated field in the
DBStruct
object as a byte array. |
java.sql.Date |
getDate(java.lang.String fieldName)
Sets the value of the designated field in the
DBStruct
object as a java.sql.Date. |
double |
getDouble(java.lang.String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a double. |
float |
getFloat(java.lang.String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a float. |
int |
getInt(java.lang.String fieldName)
Retrieves the value of the designated field in the segment of this
DBStruct object as an int. |
long |
getLong(java.lang.String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a long. |
java.lang.Object |
getObject(java.lang.String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as an Object in the Java Programming Language. |
short |
getShort(java.lang.String fieldName)
Retrieves the value of the designated field in the
DBStruct
object as a short. |
java.lang.String |
getString(java.lang.String fieldName)
Gets the value of the designated field in the
DBStruct
object as a java.lang.String. |
java.sql.Time |
getTime(java.lang.String fieldName)
Sets the value of the designated field in the
DBStruct
object as a java.sql.Time. |
java.sql.Timestamp |
getTimestamp(java.lang.String fieldName)
Sets the value of the designated field in the
DBStruct
object as a java.sql.TimeStamp. |
java.lang.String |
getTypeName()
Retrieves the type name of the structured type that this
DBStruct object represents. |
void |
setArray(java.lang.String fieldName,
DBArray value)
Sets the value of the designated field in the
DBStruct
object as a com.ibm.ims.dli.DBArray. |
void |
setBigDecimal(java.lang.String fieldName,
java.math.BigDecimal value)
Sets the value of the field in the
DBStruct object as a
java.math.BigDecimal. |
void |
setBoolean(java.lang.String fieldName,
boolean value)
Sets the value of the designated field in the
DBStruct
object as a boolean. |
void |
setByte(java.lang.String fieldName,
byte value)
Sets the value of the designated field in the segment of this
DBStruct object as a byte. |
void |
setBytes(java.lang.String fieldName,
byte[] value)
Sets the value of the designated field in the
DBStruct
object as a byte array. |
void |
setDate(java.lang.String fieldName,
java.sql.Date value)
Sets the value of the designated field in the
DBStruct
object as a java.sql.Date. |
void |
setDouble(java.lang.String fieldName,
double value)
Sets the value of the designated field in the
DBStruct
object as a double. |
void |
setFloat(java.lang.String fieldName,
float value)
Sets the value of the designated field in the
DBStruct
object as a float. |
void |
setInt(java.lang.String fieldName,
int value)
Sets the value of the designated field in the
DBStruct
object as an int. |
void |
setLong(java.lang.String fieldName,
long value)
Sets the value of the designated field in the
DBStruct
object as a long. |
void |
setObject(java.lang.String fieldName,
java.lang.Object value)
Sets the value of the designated field in the
DBStruct
object with the Object value. |
void |
setShort(java.lang.String fieldName,
short value)
Sets the value of the designated field in the s
DBStruct
object as a short. |
void |
setString(java.lang.String fieldName,
java.lang.String value)
Sets the value of the designated field in the
DBStruct
object as a java.lang.String. |
void |
setTime(java.lang.String fieldName,
java.sql.Time value)
Sets the value of the designated field in the
DBStruct
object as a java.sql.Time. |
void |
setTimestamp(java.lang.String fieldName,
java.sql.Timestamp value)
Sets the value of the designated field in the
DBStruct
object as a java.sql.TimeStamp. |
java.lang.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 attributesjava.lang.String getTypeName()
DBStruct object represents.pcbName.segmentName.structNameDBArray getArray(java.lang.String fieldName) throws DLIException
DBStruct object as a com.ibm.ims.dli.DBArray.fieldName - name of the fieldDLIException - if an error occursDBArrayvoid setArray(java.lang.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(java.lang.String fieldName)
throws DLIException
DBStruct
object as a boolean.fieldName - name of the fieldDLIException - if an error occursvoid setBoolean(java.lang.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(java.lang.String fieldName)
throws DLIException
DBStruct object as a byte.fieldName - name of the fieldDLIException - if an error occursvoid setByte(java.lang.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(java.lang.String fieldName)
throws DLIException
DBStruct object as an int.fieldName - name of the fieldDLIException - if an error occursvoid setInt(java.lang.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(java.lang.String fieldName)
throws DLIException
DBStruct
object as a short.fieldName - name of the fieldDLIException - if an error occursvoid setShort(java.lang.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(java.lang.String fieldName)
throws DLIException
DBStruct
object as a long.fieldName - name of the fieldDLIException - if an error occursvoid setLong(java.lang.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(java.lang.String fieldName)
throws DLIException
DBStruct
object as a float.fieldName - name of the fieldDLIException - if an error occursvoid setFloat(java.lang.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(java.lang.String fieldName)
throws DLIException
DBStruct
object as a double.fieldName - name of the fieldDLIException - if an error occursvoid setDouble(java.lang.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(java.lang.String fieldName)
throws DLIException
DBStruct
object as a byte array.fieldName - name of the fieldDLIException - if an error occursvoid setBytes(java.lang.String fieldName,
byte[] value)
throws DLIException
DBStruct
object as a byte array.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursjava.lang.String getString(java.lang.String fieldName)
throws DLIException
DBStruct
object as a java.lang.String.fieldName - name of the fieldDLIException - if an error occursvoid setString(java.lang.String fieldName,
java.lang.String value)
throws DLIException
DBStruct
object as a java.lang.String.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursjava.math.BigDecimal getBigDecimal(java.lang.String fieldName)
throws DLIException
DBStruct
object as a java.math.BigDecimal.fieldName - name of the fieldDLIException - if an error occursvoid setBigDecimal(java.lang.String fieldName,
java.math.BigDecimal value)
throws DLIException
DBStruct object as a
java.math.BigDecimal.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursjava.sql.Date getDate(java.lang.String fieldName)
throws DLIException
DBStruct
object as a java.sql.Date.fieldName - name of the fieldDLIException - if an error occursvoid setDate(java.lang.String fieldName,
java.sql.Date value)
throws DLIException
DBStruct
object as a java.sql.Date.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursjava.sql.Time getTime(java.lang.String fieldName)
throws DLIException
DBStruct
object as a java.sql.Time.fieldName - name of the fieldDLIException - if an error occursvoid setTime(java.lang.String fieldName,
java.sql.Time value)
throws DLIException
DBStruct
object as a java.sql.Time.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursjava.sql.Timestamp getTimestamp(java.lang.String fieldName)
throws DLIException
DBStruct
object as a java.sql.TimeStamp.fieldName - name of the fieldDLIException - if an error occursvoid setTimestamp(java.lang.String fieldName,
java.sql.Timestamp value)
throws DLIException
DBStruct
object as a java.sql.TimeStamp.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occursjava.lang.Object getObject(java.lang.String fieldName)
throws DLIException
DBStruct
object as an Object in the Java Programming Language. fieldName - name of the fieldDLIException - if an error occursvoid setObject(java.lang.String fieldName,
java.lang.Object value)
throws DLIException
DBStruct
object with the Object value.fieldName - name of the fieldvalue - value of the fieldDLIException - if an error occurs