|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCoRecord
Base interface for all data containers used throughout the JCo toolkit. Implementations take care of internal bookkeeping of buffers, meta data, etc. In addition it provides a rich set of get/set methods which allow a convenient access to the individual fields that make up a record. Getters and Setters support conversion of field values which are summarized by the following table:
method/type | JCoMetaData.TYPE_CHAR | JCoMetaData.TYPE_INT1 | JCoMetaData.TYPE_INT2 | JCoMetaData.TYPE_INT | JCoMetaData.TYPE_NUM | JCoMetaData.TYPE_BCD | JCoMetaData.TYPE_FLOAT | JCoMetaData.TYPE_BYTE | JCoMetaData.TYPE_DATE | JCoMetaData.TYPE_TIME | JCoMetaData.TYPE_STRING | JCoMetaData.TYPE_XSTRING | JCoMetaData.TYPE_DECF16 | JCoMetaData.TYPE_DECF34 | JCoMetaData.TYPE_STRUCTURE | JCoMetaData.TYPE_TABLE |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Object getValue() | String | Integer | Integer | Integer | String | BigDecimal | Double | byte[] | Date | Date | String | byte[] | BigDecimal | BigDecimal | JCoStructure | JCoTable |
String getString() | String | String | String | String | String | String | String | String (hex) | String | String | String | String (hex) | String | String | String (Name) | String (Name) |
char getChar() | char | --- | --- | --- | --- | --- | --- | --- | --- | --- | char | --- | --- | --- | --- | --- |
char getCharArray() | char[] | --- | --- | --- | --- | --- | --- | --- | --- | --- | char[] | --- | --- | --- | --- | --- |
byte getByte() | byte | byte | byte | byte | byte | --- | --- | byte | --- | --- | byte | byte | --- | --- | --- | --- |
short getShort() | short | short | short | short | short | --- | --- | short | --- | --- | short | short | --- | --- | --- | --- |
int getInt() | int | int | int | int | int | --- | --- | int | --- | --- | int | int | --- | --- | --- | --- |
long getLong() | long | long | long | long | long | --- | --- | long | --- | --- | long | long | --- | --- | --- | --- |
BigInteger getBigInteger() | BigInteger | BigInteger | BigInteger | BigInteger | BigInteger | BigInteger | --- | --- | --- | --- | BigInteger | --- | --- | --- | --- | --- |
double getFloat() | float | float | float | float | float | float | float | --- | --- | --- | float | --- | --- | --- | --- | --- |
double getDouble() | double | double | double | double | double | double | double | --- | --- | --- | double | --- | --- | --- | --- | --- |
BigDecimal getBigDecimal() | BigDecimal | BigDecimal | BigDecimal | BigDecimal | BigDecimal | BigDecimal | BigDecimal | --- | --- | --- | BigDecimal | --- | BigDecimal | BigDecimal | --- | --- |
java.lang.Date getDate() | Date | --- | --- | --- | --- | --- | --- | --- | Date | Date | Date | --- | --- | --- | --- | --- |
java.lang.Date getTime() | Date | --- | --- | --- | --- | --- | --- | --- | Date | Date | Date | --- | --- | --- | --- | --- |
byte[] getByteArray() | byte[] | --- | --- | --- | --- | --- | --- | byte[] | --- | --- | byte[] | byte[] | byte[] | byte[] | --- | --- |
InputStream getBinaryStream() | InputStream | --- | --- | --- | --- | --- | --- | InputStream | --- | --- | InputStream | InputStream | --- | --- | --- | --- |
Reader getCharacterStream() | Reader | --- | --- | --- | --- | --- | --- | --- | --- | --- | Reader | --- | --- | --- | --- | --- |
JCoStructure getStructure() | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | JCoStructure | --- | --- | --- |
JCoTable getTable() | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | JCoTable | --- | --- |
Method Summary | |
---|---|
void |
clear()
Clears the record, i.e. |
Object |
clone()
Clones the record instance. |
int |
copyFrom(JCoRecord source)
Copies the matching fields from the source record into this record Data fields are considered to be equivalent if the name and type of two fields match. |
JCoAbapObject |
getAbapObject(int index)
Returns the value of the specified field as a JCoAbapObject . |
JCoAbapObject |
getAbapObject(String fieldName)
Returns the value of the specified field as a JCoAbapObject . |
BigDecimal |
getBigDecimal(int index)
Returns the value of the ith field as a BigDecimal object. |
BigDecimal |
getBigDecimal(String fieldName)
Returns the value of the ith field as a BigDecimal object. |
BigInteger |
getBigInteger(int index)
Returns the value of the ith field as a BigInteger object. |
BigInteger |
getBigInteger(String fieldName)
Returns the value of the ith field as a BigInteger object. |
InputStream |
getBinaryStream(int index)
Returns the value of the ith field as a stream of uninterpreted bytes, i.e. |
InputStream |
getBinaryStream(String fieldName)
Returns the value of the named field as a stream of uninterpreted bytes, i.e. |
byte |
getByte(int index)
Returns the value of the ith field as a byte. |
byte |
getByte(String fieldName)
Returns the value of the named field as a byte. |
byte[] |
getByteArray(int index)
Returns the value of the ith field as a byte array. |
byte[] |
getByteArray(String fieldName)
Returns the value of the ith field as a byte[] array. |
char |
getChar(int index)
Returns the value of the ith field as a char. |
char |
getChar(String fieldName)
Returns the value of the named field as a char. |
Reader |
getCharacterStream(int index)
Returns the value of the ith field as a java.io.Reader object. |
Reader |
getCharacterStream(String fieldName)
Returns the value of the named field as a stream of characters, i.e. |
char[] |
getCharArray(int index)
Returns the value of the ith field as a char array. |
char[] |
getCharArray(String fieldName)
Returns the value of the ith field as a char[] array. |
String |
getClassNameOfValue(String fieldName)
Returns the fully-qualified name of the Java class whose instances are manufactured if the methods getValue(int index) or getValue(String fieldName) are called to retrieve a calue from the field. |
Date |
getDate(int index)
Returns the value of the ith field as a date. |
Date |
getDate(String fieldName)
Returns the value of the named field as a Date object. |
double |
getDouble(int index)
Returns the value of the ith field as a double. |
double |
getDouble(String fieldName)
Returns the value of the named field as a double. |
JCoField |
getField(int index)
Returns the ith field. |
JCoField |
getField(String fieldName)
Returns the named field. |
int |
getFieldCount()
Returns the number of fields in the record. |
JCoFieldIterator |
getFieldIterator()
Returns a JCoFieldIterator. |
float |
getFloat(int index)
Returns the value of the ith field as a float. |
float |
getFloat(String fieldName)
Returns the value of the named field as a float. |
int |
getInt(int index)
Returns the value of the ith field as an integer. |
int |
getInt(String fieldName)
Returns the value of the named field as an integer. |
long |
getLong(int index)
Returns the value of the ith field as a long. |
long |
getLong(String fieldName)
Returns the value of the named field as a long. |
JCoMetaData |
getMetaData()
Returns the appropriated meta data object, that was used for creation of this record. |
short |
getShort(int index)
Returns the value of the ith field as a short. |
short |
getShort(String fieldName)
Returns the value of the named field as a short. |
String |
getString(int index)
Returns the value of the ith field as a string. |
String |
getString(String fieldName)
Returns the value of the named field as a java.lang.String object. |
JCoStructure |
getStructure(int index)
Returns the value of the ith field as a JCoStructure. |
JCoStructure |
getStructure(String fieldName)
Returns the value of the named field as a JCoStructure object. |
JCoTable |
getTable(int index)
Returns the value of the ith field as a table. |
JCoTable |
getTable(String fieldName)
Returns the value of the named field as a JCoTable object. |
Date |
getTime(int index)
Returns the value of the ith field as a date. |
Date |
getTime(String fieldName)
Returns the value of the named field as a Date object. |
Object |
getValue(int index)
Generic method that returns the value of the ith field as an object. |
Object |
getValue(String fieldName)
Returns the value of the named field as an object. |
boolean |
isInitialized(int index)
Checks whether this field has been initialized. |
boolean |
isInitialized(String fieldName)
Checks whether this field has been initialized. |
Iterator<JCoField> |
iterator()
Returns an Iterator. |
void |
setValue(int index,
BigDecimal value)
Sets the BigDecimal as the value for the ith field. |
void |
setValue(int index,
byte value)
Sets the byte as the value for the ith field. |
void |
setValue(int index,
byte[] value)
Sets the byte array as the value for the ith field. |
void |
setValue(int index,
char value)
Sets the specified character as the field's value. |
void |
setValue(int index,
char[] value)
Sets the specified character array as the field's value. |
void |
setValue(int index,
char[] value,
int from,
int length)
Sets the specified character array as the field's value. |
void |
setValue(int index,
double value)
Sets the double as the value for the ith field. |
void |
setValue(int index,
float value)
Sets the float as the value for the ith field. |
void |
setValue(int index,
int value)
Sets the int as the value for the ith field. |
void |
setValue(int index,
JCoAbapObject abapObject)
Sets the value of the specified field to be the given JCoAbapObject . |
void |
setValue(int index,
JCoStructure value)
Sets the structure as the value for the ith field. |
void |
setValue(int index,
JCoTable value)
Sets the table as the value for the ith field. |
void |
setValue(int index,
long value)
Sets the long as the value for the ith field. |
void |
setValue(int index,
Object value)
Sets the object as the value for the ith field. |
void |
setValue(int index,
short value)
Sets the short as the value for the ith field. |
void |
setValue(int index,
String value)
Sets the specified string as the field's value. |
void |
setValue(String name,
BigDecimal value)
Sets the BigDecimal as the value for the named field. |
void |
setValue(String name,
byte value)
Sets the byte as the value for the named field. |
void |
setValue(String name,
byte[] value)
Sets the byte array as the value for the named field. |
void |
setValue(String name,
char value)
Sets the character as the value for the named field. |
void |
setValue(String name,
char[] value)
Sets the specified character array as the value for the named field. |
void |
setValue(String name,
char[] value,
int from,
int length)
Sets the specified character array as the value for the named field. |
void |
setValue(String name,
double value)
Sets the double as the value for the named field. |
void |
setValue(String name,
float value)
Sets the float as the value for the named field. |
void |
setValue(String name,
int value)
Sets the int as the value for the named field. |
void |
setValue(String fieldName,
JCoAbapObject abapObject)
Sets the value of the specified field to be the given JCoAbapObject . |
void |
setValue(String name,
JCoStructure value)
Sets the structure as the value for the named field. |
void |
setValue(String name,
JCoTable value)
Sets the table as the value for the named field. |
void |
setValue(String name,
long value)
Sets the long as the value for the named field. |
void |
setValue(String name,
Object value)
Sets the object as the value for the named field. |
void |
setValue(String name,
short value)
Sets the short as the value for the named field. |
void |
setValue(String name,
String value)
Sets the string as the value for the named field. |
String |
toJSON()
Returns the whole record in a JSON representation. |
void |
toJSON(Writer writer)
Serializes the whole record in a JSON representation to a Writer. |
String |
toXML()
Returns the whole record in XML format. |
String |
toXML(int index)
Returns the value of the ith field as a XML string. |
String |
toXML(String fieldName)
Returns the value of named field as a XML string. |
Writer |
write(int index,
Writer writer)
Writes the field specified by index to writer. |
Writer |
write(String fieldName,
Writer writer)
Writes the named field to writer. |
Method Detail |
---|
JCoMetaData getMetaData()
void clear()
Object clone()
int copyFrom(JCoRecord source)
source
- the source record from which to copy the data
JCoRuntimeException
- if something went wrongint getFieldCount()
Object getValue(int index)
type | JCoMetaData.TYPE_CHAR | JCoMetaData.TYPE_INT1 | JCoMetaData.TYPE_INT2 | JCoMetaData.TYPE_INT | JCoMetaData.TYPE_NUM | JCoMetaData.TYPE_BCD | JCoMetaData.TYPE_FLOAT | JCoMetaData.TYPE_BYTE | JCoMetaData.TYPE_DATE | JCoMetaData.TYPE_TIME | JCoMetaData.TYPE_STRING | JCoMetaData.TYPE_XSTRING | JCoMetaData.TYPE_DECF16 | JCoMetaData.TYPE_DECF34 | JCoMetaData.TYPE_STRUCTURE | JCoMetaData.TYPE_TABLE |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object | String | Integer | Integer | Integer | String | BigDecimal | Double | byte[] | Date | Date | String | byte[] | BigDecimal | BigDecimal | JCoStructure | JCoTable |
index
- the field index
ConversionException
- thrown if the value could not be converted to an object
IndexOutOfBoundsException
- thrown if the index is out of rangeObject getValue(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to an Object
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existJCoField getField(int index)
index
- the index of the field
JCoField getField(String fieldName)
fieldName
- the name of the field
String getString(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a String
IndexOutOfBoundsException
- thrown if the index is out of rangechar getChar(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a char,
i.e. if the underlying field contained more than one character
IndexOutOfBoundsException
- thrown if the index is out of rangebyte getByte(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a byte
IndexOutOfBoundsException
- thrown if the index is out of rangebyte getByte(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a byte
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existfloat getFloat(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a floatfloat getFloat(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a float
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existshort getShort(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a shortint getInt(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to an intlong getLong(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to an long
IndexOutOfBoundsException
- thrown if the index is out of rangeBigInteger getBigInteger(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a BigInteger
IndexOutOfBoundsException
- thrown if the index is out of rangedouble getDouble(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a double
IndexOutOfBoundsException
- thrown if the index is out of rangeBigDecimal getBigDecimal(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a BigDecimal
IndexOutOfBoundsException
- thrown if the index is out of rangeDate getDate(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a Date
IndexOutOfBoundsException
- thrown if the index is out of rangeDate getTime(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a Date
IndexOutOfBoundsException
- thrown if the index is out of rangebyte[] getByteArray(int index)
index
- the field index
ConversionException
- thrown if the value could not be converted to a byte array
IndexOutOfBoundsException
- thrown if the index is out of rangechar[] getCharArray(int index)
:
or -
will be returned
index
- the field index
ConversionException
- thrown if the value could not be converted to a char array
IndexOutOfBoundsException
- thrown if the index is out of rangeInputStream getBinaryStream(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be
converted to an java.io.InputStream
IndexOutOfBoundsException
- thrown if the index is out of rangeReader getCharacterStream(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a java.io.Reader
IndexOutOfBoundsException
- thrown if the index is out of rangeJCoTable getTable(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a JCoTable
IndexOutOfBoundsException
- thrown if the index is out of rangeJCoTable
JCoStructure getStructure(int index)
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a JCoStructure
IndexOutOfBoundsException
- thrown if the index is out of rangeJCoStructure
String toXML(int index)
Note:All documents generated here are comply strictly to the encoding scheme as described for the method toXML().
index
- the index of the field
ConversionException
- thrown if the value could not be converted to a String
IndexOutOfBoundsException
- thrown if the index is out of rangeString toXML(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a String
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existString toXML()
Note:All documents generated here are comply strictly to the encoding scheme as described for the method toXML().
ConversionException
- thrown if the value could not be converted to a StringString toJSON()
void toJSON(Writer writer) throws IOException
writer
- a writer instance to which the document is written
IOException
Writer write(int index, Writer writer) throws IOException
Field type | output to writer |
---|---|
TYPE_CHAR | char buffer without trailing spaces |
TYPE_DATE | chars in format YYYYMMDD |
TYPE_TIME | chars in format HHMMSS |
TYPE_NUM | char buffer |
TYPE_STRING | string chars buffer |
TYPE_XSTRING | HEX representation of the xstring byte buffer |
TYPE_BYTE | HEX representation of the byte buffer |
TYPE_BCD | char based representation of the number |
TYPE_FLOAT | char based representation of the number |
TYPE_INT | char based representation of the number |
TYPE_INT2 | char based representation of the number |
TYPE_INT1 | char based representation of the number |
TYPE_DECF16 | char based representation of the number |
TYPE_DECF34 | char based representation of the number |
TYPE_STRUCTURE | not possible, exception will be thrown |
TYPE_TABLE | not possible, exception will be thrown |
TYPE_ABAPOBJECT | not possible, exception will be thrown |
index
- of the field, that should be written to outwriter
- writer instance used to write
ConversionException
- if the field is complex.
JCoRuntimeException
- with the key JCoException.JCO_ERROR_FIELD_NOT_FOUND if the field with the name is not available.
IOException
- if writer throws IOExceptionWriter write(String fieldName, Writer writer) throws IOException
fieldName
- name of the fieldwriter
- write that is used to write operation
ConversionException
- if the field is complex.
JCoRuntimeException
- with the key JCoException.JCO_ERROR_FIELD_NOT_FOUND if the field with the name is not available.
IOException
- if writer throws IOExceptionwrite(int, Writer)
void setValue(int index, String value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representationString getClassNameOfValue(String fieldName)
fieldName
- the name of the field
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existString getString(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a String
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existchar getChar(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a char
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existshort getShort(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a short
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existint getInt(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to an int
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existlong getLong(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a long
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existBigInteger getBigInteger(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a BigInteger
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existdouble getDouble(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a double
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existBigDecimal getBigDecimal(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a BigDecimal
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existDate getDate(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a Date
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existDate getTime(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a Date
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existbyte[] getByteArray(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a byte[] array
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existchar[] getCharArray(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a byte[] array
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existInputStream getBinaryStream(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a java.io.InputStream
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existReader getCharacterStream(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a java.io.Reader
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existJCoTable getTable(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a JCoTable
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existJCoStructure getStructure(String fieldName)
fieldName
- the name of the field
ConversionException
- thrown if the value could not be converted to a JCoStructure
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(int index, char value)
value
- the value to set for the fieldindex
- the index of the field
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, char[] value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, char[] value, int from, int length)
value
- the value to set for the fieldfrom
- offset in the char arraylength
- count of chars that will be set as field's valueindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, short value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, int value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, long value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, double value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, byte[] value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, JCoStructure value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, JCoTable value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(int index, Object value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(String name, String value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, char[] value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, char[] value, int from, int length)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, char value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, short value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, int value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, long value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, double value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(int index, float value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(String name, float value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(int index, BigDecimal value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(String name, BigDecimal value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(int index, byte value)
value
- the value to set for the fieldindex
- the index of the field
ConversionException
- thrown if the value could not be converted to its internal representation
IndexOutOfBoundsException
- thrown if the index is out of rangevoid setValue(String name, byte value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, byte[] value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, JCoStructure value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, JCoTable value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existvoid setValue(String name, Object value)
value
- the value to set for the fieldname
- the name of the field to set
ConversionException
- thrown if the value could not be converted to its internal representation
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existJCoAbapObject getAbapObject(String fieldName)
JCoAbapObject
.
fieldName
- the name of the field
JCoAbapObject
JCoAbapObject getAbapObject(int index)
JCoAbapObject
.
index
- the index of the field
JCoAbapObject
void setValue(String fieldName, JCoAbapObject abapObject)
JCoAbapObject
.
fieldName
- the name of the fieldabapObject
- the value, a JCoAbapObject
void setValue(int index, JCoAbapObject abapObject)
JCoAbapObject
.
index
- the index of the fieldabapObject
- the value, a JCoAbapObject
boolean isInitialized(String fieldName)
fieldName
- of field that will be checked
JCoRuntimeException
- thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not existboolean isInitialized(int index)
index
- of field that will be checked
IndexOutOfBoundsException
- thrown if the index is out of rangeIterator<JCoField> iterator()
remove
is not supported by JCoRecord
iterator
in interface Iterable<JCoField>
JCoFieldIterator getFieldIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |