|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecordData
The RecordData interface provides methods for accessing data and context specific metadata.
The Record interface is implmented by the classes DBReader
and DBRecord
.
Method Summary | |
---|---|
boolean |
getBeanProperties(java.lang.Object bean)
writes all field values into a static Java Bean. |
boolean |
getBeanProperties(java.lang.Object bean,
java.util.Collection<ColumnExpr> ignoreList)
writes all field values into a static Java Bean. |
ColumnExpr |
getColumnExpr(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 performace for bulk processing |
int |
getFieldIndex(java.lang.String column)
returns the index of the column expression with the given name |
java.lang.Object |
getValue(ColumnExpr column)
returns the record value for a particular column |
java.lang.Object |
getValue(int index)
returns the value of the field at the given index position Indexed operations provide better performace for bulk processing compared to getValue(ColumnExpr) |
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 performace for bulk processing compared to isNull(ColumnExpr) |
Method Detail |
---|
int getFieldCount()
int getFieldIndex(ColumnExpr column)
column
- the column for which to return the index
int getFieldIndex(java.lang.String column)
column
- the name of the column for which to return the index
ColumnExpr getColumnExpr(int i)
i
- field index of the column expression
java.lang.Object getValue(int index)
index
- the field index for which to return the value
java.lang.Object getValue(ColumnExpr column)
column
- the column for which to return the value
boolean isNull(int index)
index
- the field index
boolean isNull(ColumnExpr column)
column
- the column
boolean getBeanProperties(java.lang.Object bean, java.util.Collection<ColumnExpr> ignoreList)
In order to map column names to property names the property name is detected by ColumnExpr.getBeanPropertyName()
bean
- the Java Bean for which to set the propertiesignoreList
- list of columns to skip (optional)
boolean getBeanProperties(java.lang.Object bean)
In order to map column names to property names the property name is detected by ColumnExpr.getBeanPropertyName()
bean
- the Java Bean for which to set the properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |