Interface ISqlJetBtreeDataTable

    • Method Detail

      • getDefinition

        ISqlJetTableDef getDefinition()
        Get table's schema definition.
        Returns:
      • getIndexDefinitions

        java.util.Map<java.lang.String,​ISqlJetIndexDef> getIndexDefinitions()
        Get definitions of table's indexes.
        Returns:
      • getIndexesTables

        java.util.Map<java.lang.String,​ISqlJetBtreeIndexTable> getIndexesTables()
        Get indexes which are related with table.
        Returns:
      • goToRow

        boolean goToRow​(long rowId)
                 throws SqlJetException
        Go to record with given rowID. Return boolean to indicate success.
        Parameters:
        rowId -
        Returns:
        Throws:
        SqlJetException
      • updateWithRowId

        long updateWithRowId​(SqlJetConflictAction onConflict,
                             long rowId,
                             long newRowId,
                             java.lang.Object... values)
                      throws SqlJetException
        Update the rowId and values an entry in the table by rowId.
        Parameters:
        rowId -
        values -
        Throws:
        SqlJetException
      • updateCurrentWithRowId

        long updateCurrentWithRowId​(SqlJetConflictAction onConflict,
                                    long newRowId,
                                    java.lang.Object... values)
                             throws SqlJetException
        Update the rowId and values in current entry in the table.
        Parameters:
        values -
        Throws:
        SqlJetException
      • checkIndex

        boolean checkIndex​(java.lang.String indexName,
                           java.lang.Object[] key)
                    throws SqlJetException
        Check the current record is equal to key using definition of index.
        Parameters:
        indexName -
        key -
        Returns:
        Throws:
        SqlJetException
      • getPrimaryKeyIndex

        java.lang.String getPrimaryKeyIndex()
        Get name of index which has been auto-created for primary key.
        Returns:
        the primaryKeyIndex
      • locate

        boolean locate​(java.lang.String indexName,
                       boolean next,
                       java.lang.Object... key)
                throws SqlJetException
        Locate record which using index by key. Key is values for fields which are defined in index. If record is found then returns true. If next is true then locate record by next entry in index for key.
        Parameters:
        indexName -
        next -
        key -
        Returns:
        Throws:
        SqlJetException
      • isIndexExists

        boolean isIndexExists​(java.lang.String indexName)
        Parameters:
        indexName -
        Returns: