Package com.im.df.api.support
Class RowSetData.RowData
- java.lang.Object
-
- com.im.df.api.support.RowSetData.RowData
-
- Direct Known Subclasses:
RowSetData.MultiRowData
,RowSetData.SingleRowData
- Enclosing class:
- RowSetData
public abstract class RowSetData.RowData extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RowData()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RowSetData.RelatedData
addDependentRowSet(java.lang.String entityID, com.im.commons.progress.DFLock lock, java.util.Map<java.lang.String,java.lang.Object> insertOptions, java.lang.String myFieldID, java.lang.String otherFieldID, java.lang.String lookupFieldID, java.lang.String relationshipID)
Add a set of rows that are dependent on data from this row.RowSetData.RelatedData
addRequiredRowSet(java.lang.String entityID, com.im.commons.progress.DFLock lock, java.util.Map<java.lang.String,java.lang.Object> insertOptions, java.lang.String myFieldID, java.lang.String otherFieldID, java.lang.String lookupFieldID, java.lang.String relationshipID)
Add a set of rows that are required for this row.protected abstract void
dump(java.lang.String prefix, java.lang.StringBuffer buf)
abstract RowSetData.Row
getCurrentRow()
abstract java.util.List<RowSetData.Row>
getRowList()
abstract void
setValueForAllRows(java.lang.String fldId, java.lang.Object value)
void
setValueForCurrentRow(java.lang.String fldId, java.lang.Object value)
Set the value for the current row.abstract void
startRow()
-
-
-
Method Detail
-
dump
protected abstract void dump(java.lang.String prefix, java.lang.StringBuffer buf)
-
getCurrentRow
public abstract RowSetData.Row getCurrentRow()
-
getRowList
public abstract java.util.List<RowSetData.Row> getRowList()
-
setValueForAllRows
public abstract void setValueForAllRows(java.lang.String fldId, java.lang.Object value)
-
startRow
public abstract void startRow()
-
addDependentRowSet
public RowSetData.RelatedData addDependentRowSet(java.lang.String entityID, com.im.commons.progress.DFLock lock, java.util.Map<java.lang.String,java.lang.Object> insertOptions, java.lang.String myFieldID, java.lang.String otherFieldID, java.lang.String lookupFieldID, java.lang.String relationshipID)
Add a set of rows that are dependent on data from this row. Typically, the auto-generated PK value, but possible a standard field value.- Parameters:
entityID
- The ID of the entitylock
- The lock for the dependent rowsinsertOptions
- Options for insert for the dependent rowsmyFieldID
- The ID of the field from this row that is needed for the dependent rows (e.g the PK field).otherFieldID
- The ID of the field from the dependent rows that is needed to be set (e.g the FK field).lookupFieldID
- The ID of the field whose value is to be looked up to determine if that value already existsrelationshipID
- The ID of the relationship involved in this dependency- Returns:
- The dependent data object that has been created
-
addRequiredRowSet
public RowSetData.RelatedData addRequiredRowSet(java.lang.String entityID, com.im.commons.progress.DFLock lock, java.util.Map<java.lang.String,java.lang.Object> insertOptions, java.lang.String myFieldID, java.lang.String otherFieldID, java.lang.String lookupFieldID, java.lang.String relationshipID)
Add a set of rows that are required for this row. These required rows must be inserted prior to the insertion of this RowSet's rows. Typically, the auto-generated PK value, but possible a standard field value.- Parameters:
entityID
- The ID of the entitylock
- The lock for the dependant rowsinsertOptions
- Options for insert for the dependent rowsmyFieldID
- The ID of the field from this row that is needed for the dependent rows (e.g the PK field).otherFieldID
- The ID of the field form the dependent rows that is needed to be set (e.g the FK field).lookupFieldID
- The ID of the field whose value is to be looked up to determine if that value already existsrelationshipID
- The ID of the relationship involved in this dependency- Returns:
- The dependent data object that has been created
-
setValueForCurrentRow
public void setValueForCurrentRow(java.lang.String fldId, java.lang.Object value)
Set the value for the current row. No other rows will be affected- Parameters:
fldId
- The ID of the fieldvalue
- The value to set
-
-