Class MaterializedViewCursor

    • Constructor Detail

      • MaterializedViewCursor

        public MaterializedViewCursor​(CallContext context)
      • MaterializedViewCursor

        public MaterializedViewCursor​(CallContext context,
                                      ColumnMeta<?>... columns)
      • MaterializedViewCursor

        public MaterializedViewCursor​(CallContext context,
                                      Set<String> fields)
    • Method Detail

      • create

        public static MaterializedViewCursor create​(MaterializedView view,
                                                    CallContext callContext)
        Creates a materialized view specific cursor.
        Parameters:
        view - Cursor related materialized view
        callContext - Call context that is used for cursor creation
        Returns:
      • create

        public static MaterializedViewCursor create​(MaterializedView view,
                                                    CallContext callContext,
                                                    Set<String> fields)
        Creates a materialized view specific cursor.
        Parameters:
        view - Cursor related materialized view
        callContext - Call context that is used for cursor creation
        fields - Fields the cursor should operate on
        Returns:
      • getByValuesArray

        public final void getByValuesArray​(Object... values)
        Performs a search of a record by the key fields, throwing an exception if the record is not found.
        Parameters:
        values - values of the key fields
      • tryGetByValuesArray

        public final 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.
        Parameters:
        values - values of the key fields
        Returns:
        true if the record is found, otherwise - false
      • tryGetCurrent

        public final boolean tryGetCurrent()
        Retrieves a record from the database that corresponds to the fields of current primary key.
        Returns:
        true if the record is retrieved, otherwise - false
      • getCurrentKeyValues

        public Object[] getCurrentKeyValues()
        Returns an array of field values of the primary key.
        Returns: