|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Record
The record interface provides methods used for updating data.
A object implementing the record interface is essentially a so called "dynamic bean".
This interface inherits from RecordData which provides further data access methods.
The Record interface is implemented by the class DBRecord
Method Summary | |
---|---|
Column |
getColumn(int index)
returns the column at the specified index. |
Options |
getFieldOptions(Column column)
returns the Options list for the given record field. |
Column[] |
getKeyColumns()
returns an array of key columns which uniquely identify the record. |
boolean |
isFieldReadOnly(Column column)
returns true if the field is read-only. |
boolean |
isFieldVisible(Column column)
returns true if the field is visible to the client. |
boolean |
isModified()
returns true if the record has been modified. |
boolean |
isNew()
returns true if this record is a new record. |
boolean |
isReadOnly()
returns true if this record is readOnly. |
boolean |
isValid()
returns true if the record is valid. |
int |
setBeanValues(Object bean)
sets all record values from a particular bean. |
int |
setBeanValues(Object bean,
Collection<Column> ignoreList)
sets all record values from a particular bean. |
void |
setValue(Column column,
Object value)
sets a record value based on a column. |
void |
setValue(int i,
Object value)
sets a record value based on the field index. |
boolean |
wasModified(Column column)
checks whether or not the field for the given column has been modified since it has been loaded. |
Methods inherited from interface org.apache.empire.data.RecordData |
---|
getBeanProperties, getBeanProperties, getColumnExpr, getFieldCount, getFieldIndex, getFieldIndex, getValue, getValue, isNull, isNull |
Method Detail |
---|
boolean isValid()
boolean isReadOnly()
boolean isModified()
boolean isNew()
Column getColumn(int index)
index
- index of a requested column
Column[] getKeyColumns()
boolean isFieldReadOnly(Column column)
column
- the requested column
boolean isFieldVisible(Column column)
column
- the column to check for visibility
Options getFieldOptions(Column column)
column
- the column to check for visibility
void setValue(int i, Object value)
i
- index of the field for which to set the valuevalue
- the new field valuevoid setValue(Column column, Object value)
column
- the requested columnvalue
- the new record value for the given columnboolean wasModified(Column column)
column
- the requested column
int setBeanValues(Object bean, Collection<Column> ignoreList)
The bean must provide corresponding getter functions for all desired column.
In order to map column names to property names the property name is detected by ColumnExpr.getBeanPropertyName()
bean
- the Java Bean from which to read the value fromignoreList
- list of column to ignore
int setBeanValues(Object bean)
The bean must provide corresponding getter functions for all desired column.
bean
- the Java Bean from which to read the value from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |