public abstract class DBRecordData extends DBObject implements RecordData
Constructor and Description |
---|
DBRecordData() |
Modifier and Type | Method and Description |
---|---|
abstract int |
addColumnDesc(Element parent) |
abstract int |
addRowValues(Element parent) |
abstract void |
close() |
int |
getBeanProperties(Object bean)
Injects the current field values into a java bean.
|
int |
getBeanProperties(Object bean,
Collection<ColumnExpr> ignoreList)
Injects the current field values into a java bean.
|
protected void |
getBeanProperty(Object bean,
String property,
Object value)
Set a single property value of a java bean object used by readProperties.
|
boolean |
getBoolean(ColumnExpr column)
Returns a data value for the desired column.
|
boolean |
getBoolean(int index)
Returns a data value identified by the column index.
|
abstract ColumnExpr |
getColumnExpr(int i)
returns the column expression for a given column
This is the reverse operation of getFieldIndex()
|
Date |
getDateTime(ColumnExpr column)
Returns a data value for the desired column.
|
Date |
getDateTime(int index)
Returns a data value identified by the column index.
|
BigDecimal |
getDecimal(ColumnExpr column)
Returns a data value for the desired column.
|
BigDecimal |
getDecimal(int index)
Returns a data value identified by the column index.
|
double |
getDouble(ColumnExpr column)
Returns a data value for the desired column.
|
double |
getDouble(int index)
Returns a data value identified by the column index.
|
abstract int |
getFieldCount()
returns the number of field available
|
abstract int |
getFieldIndex(ColumnExpr column)
returns the index of the given column expression
Indexed operations provide better performance for bulk processing
|
abstract int |
getFieldIndex(String column)
returns the index of the column expression with the given name
|
int |
getInt(ColumnExpr column)
Returns a data value for the desired column.
|
int |
getInt(int index)
Returns a data value identified by the column index.
|
long |
getLong(ColumnExpr column)
Returns a data value for the desired column.
|
long |
getLong(int index)
Returns a data value identified by the column index.
|
String |
getString(ColumnExpr column)
Returns a data value for the desired column.
|
String |
getString(int index)
Returns a data value identified by the column index.
|
Object |
getValue(ColumnExpr column)
Returns a data value for the desired column .
|
abstract Object |
getValue(int index)
Returns a value based on an index.
|
abstract Document |
getXmlDocument() |
boolean |
isNull(ColumnExpr column)
Checks whether or not the value for the given column is null.
|
boolean |
isNull(int index)
Checks whether or not the value for the given column is null.
|
getDatabase
public abstract int getFieldCount()
RecordData
getFieldCount
in interface RecordData
public abstract int getFieldIndex(ColumnExpr column)
RecordData
getFieldIndex
in interface RecordData
column
- the column for which to return the indexpublic abstract int getFieldIndex(String column)
RecordData
getFieldIndex
in interface RecordData
column
- the name of the column for which to return the indexpublic abstract ColumnExpr getColumnExpr(int i)
RecordData
getColumnExpr
in interface RecordData
i
- field index of the column expressionpublic abstract int addColumnDesc(Element parent)
public abstract int addRowValues(Element parent)
public abstract Document getXmlDocument()
public abstract void close()
public abstract Object getValue(int index)
getValue
in interface RecordData
index
- the field index for which to return the valuepublic final Object getValue(ColumnExpr column)
getValue
in interface RecordData
column
- the column for which to obtain the valuepublic int getInt(int index)
index
- index of the columnpublic final int getInt(ColumnExpr column)
column
- identifying the columnpublic long getLong(int index)
index
- index of the columnpublic final long getLong(ColumnExpr column)
column
- identifying the columnpublic double getDouble(int index)
index
- index of the columnpublic final double getDouble(ColumnExpr column)
column
- identifying the columnpublic BigDecimal getDecimal(int index)
index
- index of the columnpublic final BigDecimal getDecimal(ColumnExpr column)
column
- identifying the columnpublic boolean getBoolean(int index)
index
- index of the columnpublic final boolean getBoolean(ColumnExpr column)
column
- identifying the columnpublic String getString(int index)
index
- index of the columnpublic final String getString(ColumnExpr column)
column
- identifying the columnpublic Date getDateTime(int index)
index
- index of the columnpublic final Date getDateTime(ColumnExpr column)
column
- identifying the columnpublic boolean isNull(int index)
isNull
in interface RecordData
index
- index of the columnpublic final boolean isNull(ColumnExpr column)
isNull
in interface RecordData
column
- identifying the columnprotected void getBeanProperty(Object bean, String property, Object value)
public int getBeanProperties(Object bean, Collection<ColumnExpr> ignoreList)
getBeanProperties
in interface RecordData
bean
- the Java Bean for which to set the propertiesignoreList
- list of columns to skip (optional)public final int getBeanProperties(Object bean)
getBeanProperties
in interface RecordData
bean
- the Java Bean for which to set the propertiesCopyright © 2008–2015 Apache Software Foundation. All rights reserved.