public interface RecordData
The Record interface is implemented by the classes DBReader
and DBRecordData.
| Modifier and Type | Method and Description |
|---|---|
Object |
get(ColumnExpr column)
returns the record value for a particular column
|
<V> V |
get(ColumnExpr column,
Class<V> valueType)
returns the record value for a particular column
|
ColumnExpr |
getColumn(int i)
returns the column expression for a given column
This is the reverse operation of getFieldIndex()
|
int |
getFieldCount()
returns the number of field available
|
int |
getFieldIndex(ColumnExpr column)
returns the index of the given column expression
Indexed operations provide better performance for bulk processing
|
int |
getFieldIndex(String column)
returns the index of the column expression with the given name
|
Object |
getValue(int index)
Returns the raw field value based on the field index.
|
<V> V |
getValue(int index,
Class<V> valueType)
returns the record value for a particular column
|
boolean |
isNull(ColumnExpr column)
checks if the record contains no value (null) for the given column
|
boolean |
isNull(int index)
checks if the field at the given index position contains no value (null)
Indexed operations provide better performance for bulk processing compared to isNull(ColumnExpr)
|
int |
setBeanProperties(Object bean,
Collection<? extends ColumnExpr> ignoreList)
copies all field values into a static Java Bean.
|
int getFieldCount()
int getFieldIndex(ColumnExpr column)
column - the column for which to return the indexint getFieldIndex(String column)
column - the name of the column for which to return the indexColumnExpr getColumn(int i)
i - field index of the column expressionObject getValue(int index)
index - the field index<V> V getValue(int index,
Class<V> valueType)
V - the desired return type for the valueindex - the field index for which to return the valuevalueType - the desired value typeObject get(ColumnExpr column)
column - the column for which to return the value<V> V get(ColumnExpr column, Class<V> valueType)
column - the column for which to return the valuevalueType - the desired value typeboolean isNull(int index)
index - the field indexboolean isNull(ColumnExpr column)
column - the columnint setBeanProperties(Object bean, Collection<? extends ColumnExpr> ignoreList)
bean - the Java Bean for which to set the propertiesignoreList - list of columns to skip (optional)Copyright © 2008–2023 Apache Software Foundation. All rights reserved.