private class CompoundQuery.SnapshotParameterFilter extends java.lang.Object implements ParameterFilter
Modifier and Type | Field and Description |
---|---|
(package private) int |
bufferIndex
Index of target buffer in the set of buffers belonging to this compound query.
|
Constructor and Description |
---|
SnapshotParameterFilter(int bufferIndex)
Create filter that handles parameters passed to the component's subquery which handles
the target buffer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
filterParameters(java.lang.Object[] parameters)
Handles parameters passed to the component's subquery which handles the target buffer:
according to the state kept in
CompoundQuery.useSnapshot it returns original parameters or
may substitute some of them with snapshot values for specific outer components. |
final int bufferIndex
public SnapshotParameterFilter(int bufferIndex)
bufferIndex
- Index of target buffer in the set of buffers belonging to this compound query.public java.lang.Object[] filterParameters(java.lang.Object[] parameters)
CompoundQuery.useSnapshot
it returns original parameters or
may substitute some of them with snapshot values for specific outer components.filterParameters
in interface ParameterFilter
parameters
- Component's subquery parameters.