|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sap.mw.jco.JCO.Field
Class to represent a data field in a record (i.e. parameter list, table, structure).
Method Summary | |
java.math.BigDecimal |
getBigDecimal()
Returns the value of the i'th field as a BigDecimal object |
java.math.BigInteger |
getBigInteger()
Returns the value of the i'th field as a BigInteger object |
java.io.InputStream |
getBinaryStream()
Returns the value of the i'th field as a stream of uninterpreted bytes, i.e. an java.io.InputStream object |
byte[] |
getByteArray()
Returns the value of the i'th field as a byte[] array |
char |
getChar()
Returns the field's value as a character |
java.io.Reader |
getCharacterStream()
Returns the value of the i'th field as a stream of characeters, i.e. an java.io.Reader object |
java.lang.String |
getClassNameOfValue()
Returns the fully-qualified name of the Java class whose instances are manufactured if the method Field.getValue() is called to retrieve a value from a field. |
java.util.Date |
getDate()
Returns the value of the i'th field as a Date object |
int |
getDecimals()
Returns the number of decimals of the field Decimals are only necessary for the data types JCO.TYPE_BCD and JCO.TYPE_FLOAT. |
java.lang.String |
getDefault()
Returns the default value of this field |
java.lang.String |
getDescription()
Returns a textual description for this field |
double |
getDouble()
Returns the field's value as a double |
com.sap.mw.jco.IExtendedFieldMetaData |
getExtendedFieldMetaData()
Returns the extended field meta data object |
int |
getInt()
Returns the field's value as an int |
int |
getLength()
Returns the length of this field |
long |
getLong()
Returns the field's value as a long |
java.lang.String |
getName()
Returns the name of this field |
int |
getOffset()
Deprecated. Only used internally. This method might be removed or changed in the next release without notice |
short |
getShort()
Returns the field's value as a short |
java.lang.String |
getString()
Returns the field's value as a string |
JCO.Structure |
getStructure()
Returns the field's value as a JCO.Structure object |
JCO.Table |
getTable()
Returns the field's value as a JCO.Table object |
java.util.Date |
getTime()
Returns the value of the i'th field as a Date object |
int |
getType()
Returns the type of this field |
java.lang.String |
getTypeAsString()
Returns the field's type as a string |
java.lang.Object |
getValue()
Returns the field's value as an object |
boolean |
isActive()
Checks whether this field is active |
boolean |
isExport()
Checks whether this field is an export parameter |
boolean |
isImport()
Checks whether this field is an import parameter |
boolean |
isInitialized()
Checks whether this field has been initialized |
boolean |
isOptional()
Checks whether this field is an optional parameter |
boolean |
isStructure()
Checks whether this field is a structure parameter |
boolean |
isTable()
Checks whether this field is a table parameter |
void |
setValue(byte[] value)
Sets the specified byte array as the field's value |
void |
setValue(char value)
Sets the specified character as the field's value. |
void |
setValue(double value)
Sets the specified double as the field's value |
void |
setValue(int value)
Sets the specified integer as the field's value |
void |
setValue(JCO.Structure value)
Sets the specified structure as the field's value |
void |
setValue(JCO.Table value)
Sets the specified table as the field's value |
void |
setValue(long value)
Sets the specified long as the field's value |
void |
setValue(java.lang.Object value)
Sets the specified object as the field's value |
void |
setValue(short value)
Sets the specified short as the field's value |
void |
setValue(java.lang.String value)
Sets the specified string as the field's value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean isActive()
public boolean isInitialized()
public boolean isOptional()
index
- the index of the fieldpublic boolean isImport()
public boolean isExport()
public boolean isStructure()
public boolean isTable()
public java.lang.String getName()
public int getType()
public int getOffset()
public int getLength()
public int getDecimals()
public java.lang.String getDefault()
public java.lang.String getDescription()
public java.lang.String getTypeAsString()
public com.sap.mw.jco.IExtendedFieldMetaData getExtendedFieldMetaData()
public final java.lang.String getClassNameOfValue()
JCO.Exception
- thrown if a field with the specified name does not existpublic java.lang.Object getValue()
JCO.ConversionException
- thrown if the value could not be converted to an Objectpublic java.lang.String getString()
JCO.ConversionException
- thrown if the value could not be converted to a Stringpublic char getChar()
JCO.ConversionException
- thrown if the value could not be converted to a charpublic short getShort()
JCO.ConversionException
- thrown if the value could not be converted to a shortpublic int getInt()
JCO.ConversionException
- thrown if the value could not be converted to a intpublic long getLong()
JCO.ConversionException
- thrown if the value could not be converted to a longpublic java.math.BigInteger getBigInteger()
JCO.ConversionException
- thrown if the value could not be converted to a BigIntegerpublic double getDouble()
JCO.ConversionException
- thrown if the value could not be converted to a doublepublic java.math.BigDecimal getBigDecimal()
JCO.ConversionException
- thrown if the value could not be converted to a BigDecimalpublic java.util.Date getDate()
JCO.ConversionException
- thrown if the value could not be converted to a Datepublic java.util.Date getTime()
JCO.ConversionException
- thrown if the value could not be converted to a Datepublic byte[] getByteArray()
JCO.ConversionException
- thrown if the value could not be converted to a byte[] arraypublic java.io.InputStream getBinaryStream()
JCO.ConversionException
- thrown if the value could not be converted to an java.io.InputStreampublic java.io.Reader getCharacterStream()
JCO.ConversionException
- thrown if the value could not be converted to an java.io.Readerpublic JCO.Table getTable()
JCO.ConversionException
- thrown if the value could not be converted to a JCO.Tablepublic JCO.Structure getStructure()
JCO.ConversionException
- thrown if the value could not be converted to a JCO.Structurepublic void setValue(java.lang.Object value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(java.lang.String value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(char value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(short value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(int value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(long value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(double value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(byte[] value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(JCO.Structure value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(JCO.Table value)
value
- the new value of this fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representation
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |