|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.commons.ErrorObject
org.apache.empire.db.DBObject
org.apache.empire.db.DBRecordData
public abstract class DBRecordData
This interface defines for the classes DDRecordSet and DBRecord.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.empire.commons.ErrorObject |
---|
ErrorObject.ObjectErrorInfo |
Field Summary | |
---|---|
protected static org.slf4j.Logger |
log
|
Constructor Summary | |
---|---|
DBRecordData()
|
Method Summary | |
---|---|
abstract boolean |
addColumnDesc(org.w3c.dom.Element parent)
|
abstract boolean |
addRowValues(org.w3c.dom.Element parent)
|
abstract void |
close()
|
boolean |
getBeanProperties(java.lang.Object bean)
Injects the current field values into a java bean. |
boolean |
getBeanProperties(java.lang.Object bean,
java.util.Collection<ColumnExpr> ignoreList)
Injects the current field values into a java bean. |
protected boolean |
getBeanProperty(java.lang.Object bean,
java.lang.String property,
java.lang.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() |
java.util.Date |
getDateTime(ColumnExpr column)
Returns a data value for the desired column. |
java.util.Date |
getDateTime(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 performace for bulk processing |
abstract int |
getFieldIndex(java.lang.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. |
java.lang.String |
getString(ColumnExpr column)
Returns a data value for the desired column. |
java.lang.String |
getString(int index)
Returns a data value identified by the column index. |
java.lang.Object |
getValue(ColumnExpr column)
Returns a data value for the desired column . |
abstract java.lang.Object |
getValue(int index)
Returns a value based on an index. |
abstract org.w3c.dom.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. |
Methods inherited from class org.apache.empire.db.DBObject |
---|
error, error, getDatabase |
Methods inherited from class org.apache.empire.commons.ErrorObject |
---|
clearError, clearErrorInfo, error, error, error, error, error, getErrorInfo, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, internalSetError, isExceptionsEnabled, setExceptionsEnabled, success |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.slf4j.Logger log
Constructor Detail |
---|
public DBRecordData()
Method Detail |
---|
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 index
public abstract int getFieldIndex(java.lang.String column)
RecordData
getFieldIndex
in interface RecordData
column
- the name of the column for which to return the index
public abstract ColumnExpr getColumnExpr(int i)
RecordData
getColumnExpr
in interface RecordData
i
- field index of the column expression
public abstract boolean addColumnDesc(org.w3c.dom.Element parent)
public abstract boolean addRowValues(org.w3c.dom.Element parent)
public abstract org.w3c.dom.Document getXmlDocument()
public abstract void close()
public abstract java.lang.Object getValue(int index)
getValue
in interface RecordData
index
- the field index for which to return the value
public final java.lang.Object getValue(ColumnExpr column)
getValue
in interface RecordData
column
- the column for which to obtain the value
public int getInt(int index)
index
- index of the column
public final int getInt(ColumnExpr column)
column
- identifing the column
public long getLong(int index)
index
- index of the column
public final long getLong(ColumnExpr column)
column
- identifing the column
public double getDouble(int index)
index
- index of the column
public final double getDouble(ColumnExpr column)
column
- identifing the column
public boolean getBoolean(int index)
index
- index of the column
public final boolean getBoolean(ColumnExpr column)
column
- identifing the column
public java.lang.String getString(int index)
index
- index of the column
public final java.lang.String getString(ColumnExpr column)
column
- identifing the column
public java.util.Date getDateTime(int index)
index
- index of the column
public final java.util.Date getDateTime(ColumnExpr column)
column
- identifing the column
public boolean isNull(int index)
isNull
in interface RecordData
index
- index of the column
public final boolean isNull(ColumnExpr column)
isNull
in interface RecordData
column
- identifing the column
protected boolean getBeanProperty(java.lang.Object bean, java.lang.String property, java.lang.Object value)
public boolean getBeanProperties(java.lang.Object bean, java.util.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 boolean getBeanProperties(java.lang.Object bean)
getBeanProperties
in interface RecordData
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 |