Purpose: Used to support cursored streams in a read query.
Responsibilities: Execute the cursored read and build the stream.
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected ValueReadQuery |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | execute()
Implements abstract org. |
| public int | |
| public ValueReadQuery | |
| public boolean | |
| public boolean | |
| public void | prepare(DatabaseQuery query, AbstractSession session)
Overrides org. |
| public Object | remoteExecute()
Implements abstract org. |
| public void | setInitialReadSize(int initialReadSize)
Specifies the number of elements to be read initially into a cursored stream |
| public void |
| initialReadSize | back to summary |
|---|---|
| protected int initialReadSize | |
| sizeQuery | back to summary |
|---|---|
| protected ValueReadQuery sizeQuery | |
| CursoredStreamPolicy | back to summary |
|---|---|
| public CursoredStreamPolicy() default constructor | |
| CursoredStreamPolicy | back to summary |
|---|---|
| public CursoredStreamPolicy(ReadQuery query, int pageSize) set the initial read size to match the page size | |
| CursoredStreamPolicy | back to summary |
|---|---|
| public CursoredStreamPolicy(ReadQuery query, int initialReadSize, int pageSize) | |
| CursoredStreamPolicy | back to summary |
|---|---|
| public CursoredStreamPolicy(ReadQuery query, int initialReadSize, int pageSize, ValueReadQuery sizeQuery) | |
| execute | back to summary |
|---|---|
| public Object execute() Implements abstract org. INTERNAL: Execute the cursored select and build the stream.
| |
| getInitialReadSize | back to summary |
|---|---|
| public int getInitialReadSize() Specifies the number of elements to be read initially into a cursored stream. | |
| getSizeQuery | back to summary |
|---|---|
| public ValueReadQuery getSizeQuery() Return the query used to read the size. This is required for SQL read queries. | |
| hasSizeQuery | back to summary |
|---|---|
| public boolean hasSizeQuery() INTERNAL: Return if a custom size query is defined. | |
| isCursoredStreamPolicy | back to summary |
|---|---|
| public boolean isCursoredStreamPolicy() Overrides org.
| |
| prepare | back to summary |
|---|---|
| public void prepare(DatabaseQuery query, AbstractSession session) throws QueryException Overrides org. INTERNAL: Prepare and validate.
| |
| remoteExecute | back to summary |
|---|---|
| public Object remoteExecute() Implements abstract org. INTERNAL: Execute the cursored select and build the stream.
| |
| setInitialReadSize | back to summary |
|---|---|
| public void setInitialReadSize(int initialReadSize) Specifies the number of elements to be read initially into a cursored stream | |
| setSizeQuery | back to summary |
|---|---|
| public void setSizeQuery(ValueReadQuery sizeQuery) Set the query used to read the size. This is required for SQL read queries. | |