Package com.brightcove.player.store
Class AbstractDownloadRequest
- java.lang.Object
-
- com.brightcove.player.store.AbstractDownloadRequest
-
- All Implemented Interfaces:
IDownloadManager.IRequest
,IdentifiableEntity<com.brightcove.player.store.DownloadRequest,java.lang.Long>
,io.requery.Persistable
@Entity public abstract class AbstractDownloadRequest extends java.lang.Object implements IDownloadManager.IRequest, IdentifiableEntity<com.brightcove.player.store.DownloadRequest,java.lang.Long>
Defines the contract of an entity that can be parceled and persisted into a local database with information related to download request.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.brightcove.player.network.IDownloadManager.IRequest
IDownloadManager.IRequest.Visibility
-
-
Constructor Summary
Constructors Constructor Description AbstractDownloadRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.requery.query.LogicalCondition<? extends io.requery.query.Expression<java.lang.Long>,?>
getIdentityCondition()
Gets aLogicalCondition
that can be used to match this entity by it's unique identifier.io.requery.query.LogicalCondition<? extends io.requery.query.Expression<java.lang.Long>,?>
getIdentityCondition(java.lang.Long key)
Gets aLogicalCondition
that can be used to match an entity by it's unique identifier.long
getModifiedTime()
Gets the date and time when the request was modified as number of milliseconds since January 1, 1970, 00:00:00 GMT.void
onBeforeInsert()
Sets the create time before the inserting the entity into the database table.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.brightcove.player.store.IdentifiableEntity
getKey
-
Methods inherited from interface com.brightcove.player.network.IDownloadManager.IRequest
getDescription, getEstimatedSize, getHeaders, getLocalUri, getMimeType, getNotificationVisibility, getRemoteUri, getTitle, isAllowedOverBluetooth, isAllowedOverMetered, isAllowedOverMobile, isAllowedOverRoaming, isAllowedOverWifi, isAllowScanningByMediaScanner, isVisibleInDownloadsUi
-
-
-
-
Method Detail
-
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<java.lang.Long>,?> getIdentityCondition(java.lang.Long key)
Description copied from interface:IdentifiableEntity
Gets aLogicalCondition
that can be used to match an entity by it's unique identifier.- Specified by:
getIdentityCondition
in interfaceIdentifiableEntity<com.brightcove.player.store.DownloadRequest,java.lang.Long>
- Parameters:
key
- the unique identifier of the entity.- Returns:
- the logical condition.
-
getIdentityCondition
public io.requery.query.LogicalCondition<? extends io.requery.query.Expression<java.lang.Long>,?> getIdentityCondition()
Description copied from interface:IdentifiableEntity
Gets aLogicalCondition
that can be used to match this entity by it's unique identifier.- Specified by:
getIdentityCondition
in interfaceIdentifiableEntity<com.brightcove.player.store.DownloadRequest,java.lang.Long>
- Returns:
- the logical condition.
-
-