public abstract class MaterializedViewCursor extends BasicCursor
| Constructor and Description |
|---|
MaterializedViewCursor(CallContext context) |
MaterializedViewCursor(CallContext context,
ColumnMeta<?>... columns) |
MaterializedViewCursor(CallContext context,
Set<String> fields) |
| Modifier and Type | Method and Description |
|---|---|
static MaterializedViewCursor |
create(MaterializedView view,
CallContext callContext)
Creates a materialized view specific cursor.
|
static MaterializedViewCursor |
create(MaterializedView view,
CallContext callContext,
Set<String> fields)
Creates a materialized view specific cursor.
|
void |
getByValuesArray(Object... values)
Performs a search of a record by the key fields, throwing an exception if
the record is not found.
|
Object[] |
getCurrentKeyValues()
Returns an array of field values of the primary key.
|
MaterializedView |
meta()
Returns materialized view description (meta information).
|
boolean |
tryGetByValuesArray(Object... values)
Tries to perform a search of a record by the key fields, returning a value whether
the record was found or not.
|
boolean |
tryGetCurrent()
Retrieves a record from the database that corresponds to the fields of current
primary key.
|
asCSVLine, canDelete, canInsert, canModify, clear, clearBuffer, copyFieldsFrom, copyFiltersFrom, copyOrderFrom, count, descOrders, findSet, first, getBufferCopy, getComplexFilter, getCurrentValues, getOrderBy, getValue, isEquivalent, last, limit, navigate, navigate, next, nextInSet, orderBy, orderBy, orderBy, orderByColumnNames, position, previous, reset, setComplexFilter, setFilter, setFilter, setRange, setRange, setRange, setRange, setRange, setRange, setValue, tryFindSet, tryFirst, tryLastcanReadcallContext, close, isClosedpublic MaterializedViewCursor(CallContext context)
public MaterializedViewCursor(CallContext context, ColumnMeta<?>... columns)
public MaterializedViewCursor(CallContext context, Set<String> fields)
public static MaterializedViewCursor create(MaterializedView view, CallContext callContext)
view - Cursor related materialized viewcallContext - Call context that is used for cursor creationpublic static MaterializedViewCursor create(MaterializedView view, CallContext callContext, Set<String> fields)
view - Cursor related materialized viewcallContext - Call context that is used for cursor creationfields - Fields the cursor should operate onpublic MaterializedView meta()
meta in class BasicCursorpublic final void getByValuesArray(Object... values)
values - values of the key fieldspublic final boolean tryGetByValuesArray(Object... values)
values - values of the key fieldstrue if the record is found, otherwise - falsepublic final boolean tryGetCurrent()
true if the record is retrieved, otherwise - falsepublic Object[] getCurrentKeyValues()
Copyright © 2022 CURS. All rights reserved.