-
- All Implemented Interfaces:
-
com.brightcove.player.store.IdentifiableEntity
,io.requery.Persistable
@Entity() public abstract class AbstractAnalyticsEvent extends BaseEntity implements IdentifiableEntity<AnalyticsEvent, Long>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interface
AbstractAnalyticsEvent.Priority
List of supported event priorities.
-
Method Summary
Modifier and Type Method Description LogicalCondition<out Expression<Long>, out Object>
getIdentityCondition(Long key)
Gets a LogicalCondition that can be used to match an entity by it's unique identifier. LogicalCondition<out Expression<Long>, out Object>
getIdentityCondition()
Gets a LogicalCondition that can be used to match this entity by it's unique identifier. static AnalyticsEvent
create(int priority, @NonNull() String type, @Nullable() Map<String, String> parameters)
Creates a new analytics event. static AnalyticsEvent
create(@NonNull() String type, @Nullable() Map<String, String> parameters)
Creates a new analytics event. static AnalyticsEvent
create(int priority, @NonNull() String type, @Nullable() String parameters)
-
Methods inherited from class com.brightcove.player.store.BaseEntity
getModifiedTime, onBeforeInsert, onBeforeUpdate
-
Methods inherited from class com.brightcove.player.store.IdentifiableEntity
getIdentityCondition, getIdentityCondition, getKey
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getIdentityCondition
LogicalCondition<out Expression<Long>, out Object> getIdentityCondition(Long key)
Gets a LogicalCondition that can be used to match an entity by it's unique identifier.
- Parameters:
key
- the unique identifier of the entity.
-
getIdentityCondition
LogicalCondition<out Expression<Long>, out Object> getIdentityCondition()
Gets a LogicalCondition that can be used to match this entity by it's unique identifier.
-
create
static AnalyticsEvent create(int priority, @NonNull() String type, @Nullable() Map<String, String> parameters)
Creates a new analytics event.
- Parameters:
priority
- the priority of the event.type
- the type of the analytics event.parameters
- a map of HTTP query parameter names and values to be sent to the server.
-
create
static AnalyticsEvent create(@NonNull() String type, @Nullable() Map<String, String> parameters)
Creates a new analytics event.
- Parameters:
type
- the type of the analytics event.parameters
- a map of HTTP query parameter names and values to be sent to the server.
-
-
-
-