Class IndexedDBImpl

java.lang.Object
io.webfolder.cdp.command.IndexedDBImpl
All Implemented Interfaces:
IndexedDB

public class IndexedDBImpl
extends java.lang.Object
implements IndexedDB
  • Constructor Summary

    Constructors 
    Constructor Description
    IndexedDBImpl​(SessionInvocationHandler handler)  
  • Method Summary

    Modifier and Type Method Description
    void clearObjectStore​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName)
    Clears all entries from an object store.
    void deleteDatabase​(java.lang.String securityOrigin, java.lang.String databaseName)
    Deletes a database.
    void deleteObjectStoreEntries​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName, KeyRange keyRange)
    Delete a range of entries from an object store
    void disable()
    Disables events from backend.
    void enable()
    Enables events from backend.
    GetMetadataResult getMetadata​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName)
    Gets metadata of an object store
    RequestDataResult requestData​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName, java.lang.String indexName, java.lang.Integer skipCount, java.lang.Integer pageSize)
    Requests data from object store or index.
    RequestDataResult requestData​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName, java.lang.String indexName, java.lang.Integer skipCount, java.lang.Integer pageSize, KeyRange keyRange)
    Requests data from object store or index.
    DatabaseWithObjectStores requestDatabase​(java.lang.String securityOrigin, java.lang.String databaseName)
    Requests database with given name in given frame.
    java.util.List<java.lang.String> requestDatabaseNames​(java.lang.String securityOrigin)
    Requests database names for given security origin.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • clearObjectStore

      public void clearObjectStore​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName)
      Description copied from interface: IndexedDB
      Clears all entries from an object store.
      Specified by:
      clearObjectStore in interface IndexedDB
      Parameters:
      securityOrigin - Security origin.
      databaseName - Database name.
      objectStoreName - Object store name.
    • deleteDatabase

      public void deleteDatabase​(java.lang.String securityOrigin, java.lang.String databaseName)
      Description copied from interface: IndexedDB
      Deletes a database.
      Specified by:
      deleteDatabase in interface IndexedDB
      Parameters:
      securityOrigin - Security origin.
      databaseName - Database name.
    • deleteObjectStoreEntries

      public void deleteObjectStoreEntries​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName, KeyRange keyRange)
      Description copied from interface: IndexedDB
      Delete a range of entries from an object store
      Specified by:
      deleteObjectStoreEntries in interface IndexedDB
      keyRange - Range of entry keys to delete
    • disable

      public void disable()
      Description copied from interface: IndexedDB
      Disables events from backend.
      Specified by:
      disable in interface IndexedDB
    • enable

      public void enable()
      Description copied from interface: IndexedDB
      Enables events from backend.
      Specified by:
      enable in interface IndexedDB
    • requestData

      public RequestDataResult requestData​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName, java.lang.String indexName, java.lang.Integer skipCount, java.lang.Integer pageSize, KeyRange keyRange)
      Description copied from interface: IndexedDB
      Requests data from object store or index.
      Specified by:
      requestData in interface IndexedDB
      Parameters:
      securityOrigin - Security origin.
      databaseName - Database name.
      objectStoreName - Object store name.
      indexName - Index name, empty string for object store data requests.
      skipCount - Number of records to skip.
      pageSize - Number of records to fetch.
      keyRange - Key range.
      Returns:
      RequestDataResult
    • getMetadata

      public GetMetadataResult getMetadata​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName)
      Description copied from interface: IndexedDB
      Gets metadata of an object store
      Specified by:
      getMetadata in interface IndexedDB
      Parameters:
      securityOrigin - Security origin.
      databaseName - Database name.
      objectStoreName - Object store name.
      Returns:
      GetMetadataResult
    • requestDatabase

      public DatabaseWithObjectStores requestDatabase​(java.lang.String securityOrigin, java.lang.String databaseName)
      Description copied from interface: IndexedDB
      Requests database with given name in given frame.
      Specified by:
      requestDatabase in interface IndexedDB
      Parameters:
      securityOrigin - Security origin.
      databaseName - Database name.
      Returns:
      Database with an array of object stores.
    • requestDatabaseNames

      public java.util.List<java.lang.String> requestDatabaseNames​(java.lang.String securityOrigin)
      Description copied from interface: IndexedDB
      Requests database names for given security origin.
      Specified by:
      requestDatabaseNames in interface IndexedDB
      Parameters:
      securityOrigin - Security origin.
      Returns:
      Database names for origin.
    • requestData

      public RequestDataResult requestData​(java.lang.String securityOrigin, java.lang.String databaseName, java.lang.String objectStoreName, java.lang.String indexName, java.lang.Integer skipCount, java.lang.Integer pageSize)
      Description copied from interface: IndexedDB
      Requests data from object store or index.
      Specified by:
      requestData in interface IndexedDB
      Parameters:
      securityOrigin - Security origin.
      databaseName - Database name.
      objectStoreName - Object store name.
      indexName - Index name, empty string for object store data requests.
      skipCount - Number of records to skip.
      pageSize - Number of records to fetch.
      Returns:
      RequestDataResult