Package com.brightcove.player.store
Class AbstractDownloadRequestSet
java.lang.Object
com.brightcove.player.store.AbstractDownloadRequestSet
- All Implemented Interfaces:
IdentifiableEntity<com.brightcove.player.store.DownloadRequestSet,
,Long> io.requery.Persistable
@Entity
public abstract class AbstractDownloadRequestSet
extends Object
implements IdentifiableEntity<com.brightcove.player.store.DownloadRequestSet,Long>
Defines the contract of an entity that can be parceled and persisted into a local database with
information related to set of download requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtracts the list of download request identifiers in the set.io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,
?> Gets aLogicalCondition
that can be used to match this entity by it's unique identifier.io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,
?> getIdentityCondition
(Long key) Gets aLogicalCondition
that can be used to match an entity by it's unique identifier.long
Gets the date and time when the request was modified as number of milliseconds since January 1, 1970, 00:00:00 GMT.boolean
Checks if the status indicates the download is currently marked for deletion.void
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
-
Constructor Details
-
AbstractDownloadRequestSet
public AbstractDownloadRequestSet()
-
-
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:
-
getDownloadRequestIds
Extracts the list of download request identifiers in the set.- Returns:
- a list of download request identifiers
-
isMarkedForDeletion
public boolean isMarkedForDeletion()Checks if the status indicates the download is currently marked for deletion.- Returns:
- true if the downloads is marked of deletion, otherwise false.
-
getIdentityCondition
public io.requery.query.LogicalCondition<? extends io.requery.query.Expression<Long>,?> getIdentityCondition(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.DownloadRequestSet,
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 aLogicalCondition
that can be used to match this entity by it's unique identifier.- Specified by:
getIdentityCondition
in interfaceIdentifiableEntity<com.brightcove.player.store.DownloadRequestSet,
Long> - Returns:
- the logical condition.
-