public class EffectiveDateRangeOperation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EffectiveDateRangeOperation.IntermediateRowAction |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RANGE_END_DATE_STR |
static java.lang.String |
RANGE_END_SEQ_STR |
static java.lang.String |
RANGE_MODE_STR |
static java.lang.String |
RANGE_OPERATION_PARAMS |
static java.lang.String |
RANGE_SPAN_STR |
static java.lang.String |
RANGE_START_DATE_STR |
static java.lang.String |
RANGE_START_SEQ_STR |
Modifier and Type | Method and Description |
---|---|
static void |
create(ViewObjectImpl vo,
EffectiveDateRangeOperationParams params,
AttributeList attrList) |
static void |
create(ViewRowImpl row,
EffectiveDateRangeOperationParams params) |
static ViewRowImpl |
findRangeStartRow(RowSet rs,
AttributeList findParams,
java.lang.String finderName,
EffectiveDateRangeOperationParams rangeParams)
Returns a date effective row using a row finder.
|
static ViewRowImpl |
findRangeStartRow(RowSet rs,
AttributeList findParams,
java.lang.String finderName,
java.util.Map<java.lang.String,java.lang.Object> rangeProps)
For internal framework use only.
|
static ViewRowImpl |
findRangeStartRow(RowSet rs,
Key surrogateKey,
java.util.Map<java.lang.String,java.lang.Object> rangeProps)
For internal framework use only.
|
static ViewRowImpl |
findRangeStartRow(ViewObjectImpl vo,
AttributeList findParams,
java.lang.String finderName,
Key surrogateKey,
EffectiveDateRangeOperationParams rangeParams) |
static java.sql.Date |
getDate(java.lang.String dateStr)
Returns a date parsed from a string formatted in ISO 8601 (yyyy-MM-dd) pattern.
|
static java.lang.String |
getEffectiveDateRangeQuery(ViewCriteria criteria)
For internal framework use only.
|
static void |
modifyRange(RowSet rs,
AttributeList findParams,
java.lang.String finderName,
EffectiveDateRangeOperationParams rangeParams,
AttributeList updateAttrList)
Modifies the rows in date range according to the range operation mode specified in
EffectiveDateRangeOperationParams.
|
static void |
modifyRange(ViewRowImpl row,
EffectiveDateRangeOperationParams params,
AttributeList updateAttrList)
Modifies the rows in date range according to the range operation mode specified in
EffectiveDateRangeOperationParams.
|
static void |
modifyRange(ViewRowImpl row,
java.util.Map<java.lang.String,java.lang.Object> rangeProps)
Modifies the rows in date range according to the range operation mode specified in
EffectiveDateRangeOperationParams.
|
public static final java.lang.String RANGE_MODE_STR
public static final java.lang.String RANGE_SPAN_STR
public static final java.lang.String RANGE_START_DATE_STR
public static final java.lang.String RANGE_END_DATE_STR
public static final java.lang.String RANGE_START_SEQ_STR
public static final java.lang.String RANGE_END_SEQ_STR
public static final java.lang.String RANGE_OPERATION_PARAMS
public static void modifyRange(RowSet rs, AttributeList findParams, java.lang.String finderName, EffectiveDateRangeOperationParams rangeParams, AttributeList updateAttrList)
findRangeStartRow(oracle.jbo.RowSet, oracle.jbo.AttributeList, java.lang.String, oracle.jbo.server.EffectiveDateRangeOperationParams)
followed by
modifyRange(ViewRowImpl,EffectiveDateRangeOperationParams,AttributeList)
.rs
- rowset the finder executes onfindParams
- name value pairs used in row finderfinderName
- row finder namerangeParams
- range operation paramsupdateAttrList
- list of attribute values to be updated; null if delete operationRowFinder
,
EffectiveDateRangeMode
,
EffectiveDateRangeOperationParams
public static void modifyRange(ViewRowImpl row, EffectiveDateRangeOperationParams params, AttributeList updateAttrList)
row
- the first row in date range.params
- range operation paramsupdateAttrList
- list of attribute values to be updated; null if delete operationEffectiveDateRangeMode
,
EffectiveDateRangeOperationParams
@Concealed public static void modifyRange(ViewRowImpl row, java.util.Map<java.lang.String,java.lang.Object> rangeProps)
Internal: This method is invoked from REST service.
row
- the first row in date range. For update operation, this row needs to be modified in order
to propagate the changes to other rows in range.rangeProps
- range operation paramsEffectiveDateRangeMode
,
EffectiveDateRangeOperationParams
public static ViewRowImpl findRangeStartRow(RowSet rs, AttributeList findParams, java.lang.String finderName, EffectiveDateRangeOperationParams rangeParams)
rs
- rowset the finder executes onfindParams
- name value pairs used in row finderfinderName
- row finder namerangeParams
- range operation propertiesRowFinder
,
EffectiveDateRangeOperationParams
@Concealed public static ViewRowImpl findRangeStartRow(RowSet rs, AttributeList findParams, java.lang.String finderName, java.util.Map<java.lang.String,java.lang.Object> rangeProps)
@Concealed public static ViewRowImpl findRangeStartRow(RowSet rs, Key surrogateKey, java.util.Map<java.lang.String,java.lang.Object> rangeProps)
public static ViewRowImpl findRangeStartRow(ViewObjectImpl vo, AttributeList findParams, java.lang.String finderName, Key surrogateKey, EffectiveDateRangeOperationParams rangeParams)
public static void create(ViewObjectImpl vo, EffectiveDateRangeOperationParams params, AttributeList attrList)
public static void create(ViewRowImpl row, EffectiveDateRangeOperationParams params)
public static java.sql.Date getDate(java.lang.String dateStr)
dateStr
- a string representation of date formatted in ISO 8601 (yyyy-MM-dd) pattern@Concealed public static java.lang.String getEffectiveDateRangeQuery(ViewCriteria criteria)