|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ims.rds.ClientSegment
Constructor Summary | |
ClientSegment(byte[] ioArea,
ClientTypeInfo[] clientTypeInfo,
java.io.PrintWriter logWriter,
int traceLevel)
|
Method Summary | |
protected void |
clearWarnings()
Insert the method's description here. |
java.math.BigDecimal |
getBigDecimal(int index)
Returns the field indicated by the index as a BigDecimal. |
java.math.BigDecimal |
getBigDecimal(int index,
int scale)
Returns the field indicated by the index as a BigDecimal. |
java.math.BigDecimal |
getBigDecimal(java.lang.String fieldName)
Returns the field specified by the parameter as a BigDecimal. |
java.math.BigDecimal |
getBigDecimal(java.lang.String fieldName,
int scale)
Returns the field specified by the parameter as a BigDecimal. |
boolean |
getBoolean(int index)
Returns the field indicated by the index as a boolean. |
boolean |
getBoolean(java.lang.String fieldName)
Returns the field specified by the parameter as a boolean. |
byte |
getByte(int index)
Returns the field indicated by the index as a byte. |
byte |
getByte(java.lang.String fieldName)
Returns the field specified by the parameter as a byte. |
byte[] |
getBytes()
Return the raw byte array that represents this segment. |
byte[] |
getBytes(int index)
Returns the field indicated by the index "as is" (ie; the raw bytes of the field). |
byte[] |
getBytes(java.lang.String fieldName)
Returns the field specified by the parameter "as is" (ie; the raw bytes of the field). |
java.sql.Date |
getDate(int index)
Returns the field indicated by the index as a java.sql.Date object. |
java.sql.Date |
getDate(java.lang.String fieldName)
Returns the field specified by the parameter as a java.sql.Date object. |
java.lang.String |
getDefaultEncoding()
Returns the default character encoding for this segment. |
double |
getDouble(int index)
Returns the field indicated by the index as a double. |
double |
getDouble(java.lang.String fieldName)
Returns the field specified by the parameter as a double. |
float |
getFloat(int index)
Returns the field indicated by the index as a float. |
float |
getFloat(java.lang.String fieldName)
Returns the field specified by the parameter as a float. |
int |
getInt(int index)
Returns the field indicated by the index as an int. |
int |
getInt(java.lang.String fieldName)
Returns the field specified by the parameter as an int. |
long |
getLong(int index)
Returns the field indicated by the index as a long. |
long |
getLong(java.lang.String fieldName)
Returns the field specified by the parameter as a long. |
short |
getShort(int index)
Returns the field indicated by the index as a short. |
short |
getShort(java.lang.String fieldName)
Returns the field specified by the parameter as a short. |
java.lang.String |
getString(int index)
Returns the field indicated by the index as a String. |
java.lang.String |
getString(java.lang.String fieldName)
Returns the field specified by the parameter as a String. |
java.sql.Time |
getTime(int index)
Returns the field indicated by the index as a java.sql.Time object. |
java.sql.Time |
getTime(java.lang.String fieldName)
Returns the field specified by the parameter as a java.sql.Time object. |
java.sql.Timestamp |
getTimestamp(int index)
Returns the field indicated by the index as a java.sql.Timestamp object. |
java.sql.Timestamp |
getTimestamp(java.lang.String fieldName)
Returns the field specified by the parameter as a java.sql.Timestamp object. |
ClientTypeInfo[] |
getTypeInfo()
Returns an array of the ClientTypeInfo instances for this segment. |
ClientTypeInfo |
getTypeInfo(int index)
Returns the ClientTypeInfo of the field specified by the index parameter. |
ClientTypeInfo |
getTypeInfo(java.lang.String fieldName)
Returns the ClientTypeInfo of the field specified by the fieldName parameter. |
protected RDSWarning |
getWarnings()
Insert the method's description here. |
void |
setDefaultEncoding(java.lang.String encoding)
Sets the character encoding that all character data in the segment adheres to. |
void |
setIOArea(byte[] ioArea)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientSegment(byte[] ioArea, ClientTypeInfo[] clientTypeInfo, java.io.PrintWriter logWriter, int traceLevel)
Method Detail |
protected void clearWarnings()
public java.math.BigDecimal getBigDecimal(int index) throws RDSException
index
- the one-based index of the desired field in the DLITypeInfo arrayRDSException
- if the conversion cannot be donepublic java.math.BigDecimal getBigDecimal(int index, int scale) throws RDSException
index
- the one-based index of the desired field in the DLITypeInfo arrayscale
- the number of digits to the right of the decimalRDSException
- if the conversion cannot be donepublic java.math.BigDecimal getBigDecimal(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic java.math.BigDecimal getBigDecimal(java.lang.String fieldName, int scale) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayscale
- the number of digits to the right of the decimalRDSException
- if the field name is not found in the segmentpublic boolean getBoolean(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic boolean getBoolean(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic byte getByte(int index) throws RDSException
index
- the one-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic byte getByte(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic byte[] getBytes()
public byte[] getBytes(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic byte[] getBytes(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic java.sql.Date getDate(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic java.sql.Date getDate(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic java.lang.String getDefaultEncoding()
public double getDouble(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic double getDouble(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic float getFloat(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic float getFloat(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic int getInt(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic int getInt(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic long getLong(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic long getLong(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic short getShort(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic short getShort(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic java.lang.String getString(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic java.lang.String getString(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic java.sql.Time getTime(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic java.sql.Time getTime(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic java.sql.Timestamp getTimestamp(int index) throws RDSException
index
- the 1-based index of the desired field in the ClientTypeInfo arrayRDSException
- if the conversion cannot be donepublic java.sql.Timestamp getTimestamp(java.lang.String fieldName) throws RDSException
fieldName
- the name of the field as registered in the ClientTypeInfo arrayRDSException
- if the field name is not found in the segmentpublic ClientTypeInfo[] getTypeInfo()
public ClientTypeInfo getTypeInfo(int index)
index
- the 1-based index of the desired fieldpublic ClientTypeInfo getTypeInfo(java.lang.String fieldName) throws RDSException
index
- the zero-based index of the desired fieldRDSException
- if the field does not existprotected RDSWarning getWarnings()
public void setDefaultEncoding(java.lang.String encoding)
encoding
- the character encodingClientTypeInfo
public void setIOArea(byte[] ioArea)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |