Class AbstractDownloadRequest

java.lang.Object
com.brightcove.player.store.AbstractDownloadRequest
All Implemented Interfaces:
IDownloadManager.IRequest, IdentifiableEntity<com.brightcove.player.store.DownloadRequest,Long>, io.requery.Persistable

@Entity public abstract class AbstractDownloadRequest extends Object implements IDownloadManager.IRequest, IdentifiableEntity<com.brightcove.player.store.DownloadRequest,Long>
Defines the contract of an entity that can be parceled and persisted into a local database with information related to download request.
  • Constructor Details

    • AbstractDownloadRequest

      public AbstractDownloadRequest()
  • Method Details

    • onBeforeInsert

      @PreInsert public void onBeforeInsert()
      Sets the create time before the inserting the entity into the database table.
    • getModifiedTime

      public long getModifiedTime()
      Gets the date and time when the request was modified as number of milliseconds since January 1, 1970, 00:00:00 GMT.
      Returns:
    • getIdentityCondition

      public io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,?> getIdentityCondition(Long key)
      Description copied from interface: IdentifiableEntity
      Gets a LogicalCondition that can be used to match an entity by it's unique identifier.
      Specified by:
      getIdentityCondition in interface IdentifiableEntity<com.brightcove.player.store.DownloadRequest,Long>
      Parameters:
      key - the unique identifier of the entity.
      Returns:
      the logical condition.
    • getIdentityCondition

      public io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,?> getIdentityCondition()
      Description copied from interface: IdentifiableEntity
      Gets a LogicalCondition that can be used to match this entity by it's unique identifier.
      Specified by:
      getIdentityCondition in interface IdentifiableEntity<com.brightcove.player.store.DownloadRequest,Long>
      Returns:
      the logical condition.