Package 

Class BaseStore

  • All Implemented Interfaces:
    com.brightcove.player.store.MediaStore

    
    public class BaseStore
     implements MediaStore
                        

    A base wrapper for io.requery.EntityStore.

    • Method Detail

      • getFileSize

         long getFileSize()

        Gets the size of the backing database file.

      • compact

         boolean compact()

        Compacts the physical database file size by running the SQLiteVACUUM statement.

      • refreshEntity

        @Nullable() <E extends IdentifiableEntity> E refreshEntity(@Nullable() E entity)

        Refresh the given entity. This refreshes the already loaded properties in the entity.If no properties are loaded then the default properties will be loaded.

        Parameters:
        entity - reference to the entity to be refreshed.
      • onCreated

         void onCreated(int version)

        Called when new EntityDataStore has been created. Override this method to setupthe default state of the entity store.

        Parameters:
        version - schema version of the store.
      • onUpgraded

         void onUpgraded(int oldVersion, int newVersion)

        Called when the EntityDataStore has been upgraded from an previous versionto a new version.

        Parameters:
        oldVersion - the old schema version
        newVersion - the new schema version
      • saveOfflineVideo

        @NonNull() <T extends IdentifiableEntity> T saveOfflineVideo(Video video)

        Updates the entity with given unique video identifier to save the video metadata object,while retaining the previously saved license information.

        Parameters:
        video - the video to be saved.
      • deleteOfflineVideo

         boolean deleteOfflineVideo(@NonNull() String videoId)

        Deletes the first offline video entity with the given video identifier.

        Parameters:
        videoId - the unique video identifier.