|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataRecord
A data record represents the joint behaviour of instances of
IDataBrowserRecord and IDataTableRecord.
There are multiple getter methods for accessing record field values. The
following table shows how jACOB field types are matched to java types. If a
field value could not converted to the requested java type, the respective
getter method would throw a ClassCastException.
| To \ From | jACOB field type | |||||||||||||
| Java type(s) | Text | Boolean | Integer | Long | Decimal | Float | Double | Time | Date | Timestamp | Enumeration | Longtext | Binary | Document |
| java.lang.String | X | X | X | X | X | X | X | X | X | X | X | X | ||
| java.lang.Boolean | X | x | x | |||||||||||
| int, java.lang.Integer | X | X | x | x | x | x | ||||||||
| long, java.lang.Long | X | X | X | x | x | x | ||||||||
| java.math.BigDecimal | X | X | X | x | x | |||||||||
| float, java.lang.Float | X | X | x | X | x | |||||||||
| double, java.lang.Double | X | X | x | X | X | |||||||||
| java.sql.Time | X | x | ||||||||||||
| java.sql.Date | X | x | ||||||||||||
| java.sql.Timestamp | X | |||||||||||||
| byte[] | X | X | ||||||||||||
DataDocumentValue |
X | |||||||||||||
getValue(int)method.
A lower x indicates that the conversion is possible but at the cost of lost information.
| Field Summary | |
|---|---|
static int |
DEFAULT_STYLE
Constant for default style output. |
static int |
LONG_STYLE
Constant for long style output. |
static int |
MEDIUM_STYLE
Constant for medium style output. |
static int |
SHORT_STYLE
Constant for short style output. |
| Method Summary | |
|---|---|
IDataAccessor |
getAccessor()
Returns the related data accessor instance. |
boolean |
getbooleanValue(int fieldIndex)
Returns the specified field value as a boolean value. |
java.lang.Boolean |
getBooleanValue(int fieldIndex)
Returns the specified field value in Boolean format. |
boolean |
getbooleanValue(java.lang.String fieldName)
Returns the specified field value as a boolean value. |
java.lang.Boolean |
getBooleanValue(java.lang.String fieldName)
Returns the specified field value in Boolean format. |
byte[] |
getBytesValue(int fieldIndex)
Returns the specified field value as a byte[] array. |
byte[] |
getBytesValue(java.lang.String fieldName)
Returns the specified field value as a byte[] array. |
java.sql.Date |
getDateValue(int fieldIndex)
Returns the specified field value in Date format. |
java.sql.Date |
getDateValue(java.lang.String fieldName)
Returns the specified field value in Date format. |
java.math.BigDecimal |
getDecimalValue(int fieldIndex)
Returns the specified field value in BigDecimal format. |
java.math.BigDecimal |
getDecimalValue(java.lang.String fieldName)
Returns the specified field value in BigDecimal format. |
DataDocumentValue |
getDocumentValue(int fieldIndex)
Returns the specified field value as a DataDocumentValue value. |
DataDocumentValue |
getDocumentValue(java.lang.String fieldName)
Returns the specified field value as a DataDocumentValue value. |
double |
getdoubleValue(int fieldIndex)
Returns the specified field value as a double value. |
java.lang.Double |
getDoubleValue(int fieldIndex)
Returns the specified field value in Double format. |
double |
getdoubleValue(java.lang.String fieldName)
Returns the specified field value as a double value. |
java.lang.Double |
getDoubleValue(java.lang.String fieldName)
Returns the specified field value in Double format. |
int |
getFieldNumber()
Returns the number of fields of this record. |
float |
getfloatValue(int fieldIndex)
Returns the specified field value as a float value. |
java.lang.Float |
getFloatValue(int fieldIndex)
Returns the specified field value in Float format. |
float |
getfloatValue(java.lang.String fieldName)
Returns the specified field value as a float value. |
java.lang.Float |
getFloatValue(java.lang.String fieldName)
Returns the specified field value in Float format. |
IDataRecordId |
getId()
Returns the record id of this record, i.e. an id which unambiguously identifies a record in any table. |
java.lang.Integer |
getIntegerValue(int fieldIndex)
Returns the specified field value in Integer format. |
java.lang.Integer |
getIntegerValue(java.lang.String fieldName)
Returns the specified field value in Integer format. |
int |
getintValue(int fieldIndex)
Returns the specified field value as a int value. |
int |
getintValue(java.lang.String fieldName)
Returns the specified field value as a int value. |
long |
getlongValue(int fieldIndex)
Returns the specified field value as a long value. |
java.lang.Long |
getLongValue(int fieldIndex)
Returns the specified field value in Long format. |
long |
getlongValue(java.lang.String fieldName)
Returns the specified field value as a long value. |
java.lang.Long |
getLongValue(java.lang.String fieldName)
Returns the specified field value in Long format. |
IDataKeyValue |
getPrimaryKeyValue()
Returns the primary key value of this record. |
java.math.BigDecimal |
getSaveDecimalValue(int fieldIndex)
Similar behaviour than getDecimalValue(int) except that
0.0 is returned in case the value is null. |
java.math.BigDecimal |
getSaveDecimalValue(java.lang.String fieldName)
Similar behaviour than getDecimalValue(String) except that
0.0 is returned in case the value is null. |
java.lang.String |
getSaveStringValue(int fieldIndex)
Similar behaviour than getStringValue(int) except that an empty
string is returned in case the value is null. |
java.lang.String |
getSaveStringValue(int fieldIndex,
java.util.Locale locale)
Similar behaviour than getStringValue(int, Locale) except that an empty
string is returned in case the value is null. |
java.lang.String |
getSaveStringValue(int fieldIndex,
java.util.Locale locale,
int style)
Similar behaviour than getStringValue(int, Locale, int) except that an empty
string is returned in case the value is null. |
java.lang.String |
getSaveStringValue(java.lang.String fieldName)
Similar behaviour than getStringValue(String) except that an
empty string is returned in case the value is null. |
java.lang.String |
getSaveStringValue(java.lang.String fieldName,
java.util.Locale locale)
Similar behaviour than getStringValue(String, Locale) except that an
empty string is returned in case the value is null. |
java.lang.String |
getSaveStringValue(java.lang.String fieldName,
java.util.Locale locale,
int style)
Similar behaviour than getStringValue(String, Locale, int) except that an
empty string is returned in case the value is null. |
java.lang.String |
getStringValue(int fieldIndex)
Returns the default string representation of the specified field value. |
java.lang.String |
getStringValue(int fieldIndex,
java.util.Locale locale)
Returns the specified field value as a string by means of considering the given locale. |
java.lang.String |
getStringValue(int fieldIndex,
java.util.Locale locale,
int style)
Returns the specified field value as a string by means of considering the given locale and style. |
java.lang.String |
getStringValue(java.lang.String fieldName)
Returns the default string representation of the specified field value. |
java.lang.String |
getStringValue(java.lang.String fieldName,
java.util.Locale locale)
Returns the specified field value as a string by means of considering the given locale. |
java.lang.String |
getStringValue(java.lang.String fieldName,
java.util.Locale locale,
int style)
Returns the specified field value as a string by means of considering the given locale and style. |
ITableAlias |
getTableAlias()
Returns the table alias this record belongs to. |
java.sql.Timestamp |
getTimestampValue(int fieldIndex)
Returns the specified field value in Timestamp format. |
java.sql.Timestamp |
getTimestampValue(java.lang.String fieldName)
Returns the specified field value in Timestamp format. |
java.sql.Time |
getTimeValue(int fieldIndex)
Returns the specified field value in Time format. |
java.sql.Time |
getTimeValue(java.lang.String fieldName)
Returns the specified field value in Time format. |
java.lang.Object |
getValue(int fieldIndex)
Returns the field value specified by its index. |
java.lang.Object |
getValue(java.lang.String fieldName)
Returns the field value specified by its name. |
boolean |
hasNullValue(int fieldIndex)
Checks whether the field value specified by its index is null,
i.e. the field value has not been set. |
| Field Detail |
|---|
static final int SHORT_STYLE
getStringValue(int, Locale, int),
Constant Field Valuesstatic final int MEDIUM_STYLE
getStringValue(int, Locale, int),
Constant Field Valuesstatic final int LONG_STYLE
getStringValue(int, Locale, int),
Constant Field Valuesstatic final int DEFAULT_STYLE
getStringValue(int, Locale, int),
Constant Field Values| Method Detail |
|---|
IDataKeyValue getPrimaryKeyValue()
null if no primary key
exists for this type of record.IDataRecordId getId()
IDataAccessor getAccessor()
ITableAlias getTableAlias()
int getFieldNumber()
java.lang.Object getValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException
The java type (class) of the field value returned is determined by the
field type. Please see IDataRecord!
fieldIndex - the field index of the value
null
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.Object getValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException
The java type (class) of the field value returned is determined by the
field type. Please see IDataRecord!
fieldName - the name of the field
null
java.lang.NoSuchFieldException - if no such field name exists for this record
boolean hasNullValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException
null,
i.e. the field value has not been set.
Note: This method is equivalent to
null == , but could be much more
efficient in case of document, binary or long text values. This is because
these values need not necessarily being retrieved from data source.
getValue(int)
fieldIndex - the field index of the value
true if the field value is null,
otherwise false
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.String getSaveStringValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException
getStringValue(int) except that an empty
string is returned in case the value is null.
fieldIndex - the field index
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.String getSaveStringValue(int fieldIndex,
java.util.Locale locale)
throws java.lang.IndexOutOfBoundsException
getStringValue(int, Locale) except that an empty
string is returned in case the value is null.
fieldIndex - the field indexlocale - the locale to consider or null to use default
string presentation (see getStringValue(int)).
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.String getSaveStringValue(int fieldIndex,
java.util.Locale locale,
int style)
throws java.lang.IndexOutOfBoundsException
getStringValue(int, Locale, int) except that an empty
string is returned in case the value is null.
fieldIndex - the field indexlocale - the locale to consider or null to use default
string presentation (see getStringValue(int)).style - the style to use
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilledDEFAULT_STYLE,
SHORT_STYLE,
MEDIUM_STYLE,
LONG_STYLE
java.lang.String getSaveStringValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException
getStringValue(String) except that an
empty string is returned in case the value is null.
fieldName - the name of the field
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.String getSaveStringValue(java.lang.String fieldName,
java.util.Locale locale)
throws java.lang.NoSuchFieldException
getStringValue(String, Locale) except that an
empty string is returned in case the value is null.
fieldName - the name of the fieldlocale - the locale to consider or null to use default
string presentation (see getStringValue(int)).
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.String getSaveStringValue(java.lang.String fieldName,
java.util.Locale locale,
int style)
throws java.lang.NoSuchFieldException
getStringValue(String, Locale, int) except that an
empty string is returned in case the value is null.
fieldName - the name of the fieldlocale - the locale to consider or null to use default
string presentation (see getStringValue(int)).style - the style to use
java.lang.NoSuchFieldException - if no such field name exists for this recordDEFAULT_STYLE,
SHORT_STYLE,
MEDIUM_STYLE,
LONG_STYLE
java.lang.String getStringValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException
The following table shows the format of the defaut string presentation for the different jACOB field types:
| Field type | Format | Example |
| Text | No specific representation since text values are already strings | Hello world |
| Integer | Standard decimal format without thousands separators | 101234 |
| Long | Standard decimal format without thousands separators | -1234567890 |
| Decimal | Standard decimal format without thousands separators and a dot as decimal separator |
-123456.7890 |
| Float | as Decimal | 0.00123456 |
| Decimal | as Decimal | -123000.25 |
| Time | HH:mm without seconds | 21:15 |
| Date | yyyy-MM-dd | 2004-09-21 |
| Timestamp | Depending on the resolution as: yyyy-MM-dd HH:mm yyyy-MM-dd HH:mm:ss yyyy-MM-dd HH:mm:ss.SSS |
2004-09-21 21:15:10.320 |
| Enumeration | The enumeration value | Confirmed |
| Longtext | The complete long text | The quick brown fox jumps over the lazy dog ... |
| Binary | Throws a UnsupportedOperationException | Document | The document name, if existing | word.doc |
Note: This method is equivalent to getStringValue(int, Locale),
if the locale is set to null.
fieldIndex - the field index
null if the value does
not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.String getStringValue(int fieldIndex,
java.util.Locale locale)
throws java.lang.IndexOutOfBoundsException
For example: This method would return "04/15/2005 12:59:00 AM" for a
timestamp field, if locale is set to Locale.US.
Note: This method is equivalent to
getStringValue(int, Locale, int), if the style is set to
DEFAULT_STYLE.
fieldIndex - the field indexlocale - the locale to consider or null to use default
string presentation (see getStringValue(int)).
null if the value does
not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.String getStringValue(int fieldIndex,
java.util.Locale locale,
int style)
throws java.lang.IndexOutOfBoundsException
For example: Setting the locale to Locale.GERMAN for a
decimal field would return "12345,678" for style SHORT_STYLE and
"12.345,678" for style LONG_STYLE.
fieldIndex - the field indexlocale - the locale to consider or null to use default
string presentation (see getStringValue(int)).style - the style to use
null if the value does
not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilledDEFAULT_STYLE,
SHORT_STYLE,
MEDIUM_STYLE,
LONG_STYLE
java.lang.String getStringValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException
For further information see getStringValue(int).
fieldName - the name of the field
null if the value does
not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.String getStringValue(java.lang.String fieldName,
java.util.Locale locale)
throws java.lang.NoSuchFieldException
For example: This method would return "04/15/2005 12:59:00 AM" for a
timestamp field, if locale is set to Locale.US.
Note: This method is equivalent to
getStringValue(String, Locale, int), if the style is set to
DEFAULT_STYLE.
fieldName - the name of the fieldlocale - the locale to consider or null to use default
string presentation (see getStringValue(int)).
null if the value does
not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.String getStringValue(java.lang.String fieldName,
java.util.Locale locale,
int style)
throws java.lang.NoSuchFieldException
For example: Setting the locale to Locale.GERMAN for a
decimal field would return "12345,678" for style SHORT_STYLE and
"12.345,678" for style LONG_STYLE.
fieldName - the name of the fieldlocale - the locale to consider or null to use default
string presentation (see getStringValue(int)).style - the style to use
null if the value does
not exist.
java.lang.NoSuchFieldException - if no such field name exists for this recordDEFAULT_STYLE,
SHORT_STYLE,
MEDIUM_STYLE,
LONG_STYLE
java.sql.Time getTimeValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
Time format.
fieldIndex - the field index
Time format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.sql.Time getTimeValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
Time format.
fieldName - the name of the field
Time format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.sql.Date getDateValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
Date format.
fieldIndex - the field index
Date format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.sql.Date getDateValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
Date format.
fieldName - the name of the field
Date format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.math.BigDecimal getDecimalValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
BigDecimal format.
fieldIndex - the field index
BigDecimal format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.math.BigDecimal getDecimalValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
BigDecimal format.
fieldName - the name of the field
BigDecimal format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.math.BigDecimal getSaveDecimalValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
getDecimalValue(int) except that
0.0 is returned in case the value is null.
fieldIndex - the field index
BigDecimal format or
0.0 if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.math.BigDecimal getSaveDecimalValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
getDecimalValue(String) except that
0.0 is returned in case the value is null.
fieldName - the name of the field
BigDecimal format or
0.0 if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
double getdoubleValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
double value.
fieldIndex - the field index
double value or 0.0
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
java.lang.Double getDoubleValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
Double format.
fieldIndex - the field index
Double format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
double getdoubleValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
double value.
fieldName - the name of the field
double value or 0.0
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
java.lang.Double getDoubleValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
Double format.
fieldName - the name of the field
Double format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
float getfloatValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
float value.
fieldIndex - the field index
float value or 0.0
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
java.lang.Float getFloatValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
Float format.
fieldIndex - the field index
Float format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
float getfloatValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
float value.
fieldName - the name of the field
float value or 0.0
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
java.lang.Float getFloatValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
Float format.
fieldName - the name of the field
Float format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
boolean getbooleanValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
boolean value.
fieldIndex - the field index
boolean value or false
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
boolean getbooleanValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
boolean value.
fieldName - the name of the field
boolean value or false
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
java.lang.Boolean getBooleanValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
Boolean format.
fieldIndex - the field index
Boolean format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.lang.Boolean getBooleanValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
Boolean format.
fieldName - the name of the field
Boolean format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
int getintValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
int value.
fieldIndex - the field index
int value or 0
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
int getintValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
int value.
fieldName - the name of the field
int value or 0
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
java.lang.Integer getIntegerValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
Integer format.
fieldIndex - the field index
Integer format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.lang.Integer getIntegerValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
Integer format.
fieldName - the name of the field
Integer format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
long getlongValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
long value.
fieldIndex - the field index
long value or 0
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
java.lang.Long getLongValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
Long format.
fieldIndex - the field index
Long format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
long getlongValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
long value.
fieldName - the name of the field
long value or 0
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
java.lang.Long getLongValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
Long format.
fieldName - the name of the field
Long format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.sql.Timestamp getTimestampValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
Timestamp format.
fieldIndex - the field index
Timestamp format or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
java.sql.Timestamp getTimestampValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
Timestamp format.
fieldName - the name of the field
Timestamp format or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested format.
For valid conversions see IDataRecord.
byte[] getBytesValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
byte[] array.
Attention: This method does not return a copy. So take care when modifying the result array.
fieldIndex - the field index
byte[] array or
null if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested java
type. For valid conversions see IDataRecord.
byte[] getBytesValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
byte[] array.
Attention: This method does not return a copy. So take care when modifying the result array.
fieldName - the name of the field
byte[] array or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
DataDocumentValue getDocumentValue(int fieldIndex)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
DataDocumentValue value.
fieldIndex - the field index
DataDocumentValue or null
if the value does not exist.
java.lang.IndexOutOfBoundsException - if 0 <= fieldIndex < getFieldNumber() is
not fulfilled
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
DataDocumentValue getDocumentValue(java.lang.String fieldName)
throws java.lang.NoSuchFieldException,
java.lang.ClassCastException
DataDocumentValue value.
fieldName - the name of the field
DataDocumentValue or null
if the value does not exist.
java.lang.NoSuchFieldException - if no such field name exists for this record
java.lang.ClassCastException - if the field value can not be converted to the requested java type.
For valid conversions see IDataRecord.
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||