|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={FIELD,ANNOTATION_TYPE}) public @interface SelectCascade
Used within a Cascade
annotation to define a cascade select operation.
Optional Element Summary | |
---|---|
boolean |
lazy
Marks a select cascade to be performed some later time after source row is selected. |
java.lang.Class<? extends ScalarSelectOperation> |
operation
Specifics operation to perform as a select cascade. |
boolean |
post
Specifies when the cascade is to occur. |
java.lang.String[] |
sourceParameterFieldNames
Specifies fields from source row to be used as parameters in cascade operation for target row. |
java.lang.String |
targetKeyMethodName
Method name in target class that returns row key value for adding to map results. |
java.lang.String |
targetOrderByName
Specifies the order condition to use in cascade. |
java.lang.String |
targetWhereName
Specifies the where condition to use in cascade. |
public abstract java.lang.Class<? extends ScalarSelectOperation> operation
ScalarSelectOperation
, ArrayListSelectOperation
, HashMapSelectOperation
or some subclass of those.
The default value of ArrayListSelectOperation
works correctly for source fields that
are scalar or List
. If the source field is not scalar or List
, then some other
select operation must be used.
public abstract java.lang.String[] sourceParameterFieldNames
targetWhereName()
or in same order
as primary key fields of target row if primary key is used as where condition.
public abstract java.lang.String targetWhereName
Where.name()
or "primaryKey"
for primary key. An empty string indicates no where condition (select all).
Typically is the name of the where condition that uses foreign key(s) in
target row that correspond to primary key(s) in source row.
public abstract java.lang.String targetOrderByName
OrderBy.name()
or empty string for
unordered.
public abstract boolean post
lazy()
is true.
public abstract java.lang.String targetKeyMethodName
operation()
is instance of
MapSelectOperation
; otherwise it is ignored.
public abstract boolean lazy
LazySelectable.checkLazySelects(String)
is invoked
or when ActiveRecord.checkLazySelects(String)
is invoked.
AbstractLazySelector
,
SimpleLazySelector
,
DurableLazySelector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |