Class DeviceQueryImpl

java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,​Device>
com.flowable.engage.engine.impl.notification.push.DeviceQueryImpl
All Implemented Interfaces:
DeviceQuery, java.io.Serializable, org.flowable.common.engine.api.query.CacheAwareQuery<DeviceEntity>, org.flowable.common.engine.api.query.Query<DeviceQuery,​Device>, org.flowable.common.engine.impl.interceptor.Command<java.lang.Object>

public class DeviceQueryImpl
extends org.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,​Device>
implements DeviceQuery, org.flowable.common.engine.api.query.CacheAwareQuery<DeviceEntity>
Author:
Filip Hrisafov
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject

    org.flowable.common.engine.impl.db.ListQueryParameterObject.ResultType

    Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query

    org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String applicationId  
    protected java.lang.String deviceOS  
    protected java.lang.String id  
    protected boolean onlyEnabled  
    protected java.lang.String tenantId  
    protected java.lang.String token  
    protected java.lang.String userId  

    Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery

    commandContext, commandExecutor

    Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject

    databaseType, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByColumnMap, orderByColumns, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
  • Constructor Summary

    Constructors 
    Constructor Description
    DeviceQueryImpl​(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)  
  • Method Summary

    Modifier and Type Method Description
    DeviceQuery applicationId​(java.lang.String applicationId)
    Query for devices for the given application.
    DeviceQuery deviceOS​(java.lang.String deviceOS)
    Query devices only with the given OS.
    long executeCount​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    java.util.List<Device> executeList​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    java.lang.String getApplicationId()  
    java.lang.String getDeviceOS()  
    java.lang.String getId()  
    java.lang.String getTenantId()  
    java.lang.String getToken()  
    java.lang.String getUserId()  
    DeviceQuery id​(java.lang.String id)
    Query for devices for the given id.
    boolean isOnlyEnabled()  
    DeviceQuery onlyEnabled()
    Query only for enabled devices.
    DeviceQuery tenantId​(java.lang.String tenantId)
    Query for devices within the given tenant.
    DeviceQuery token​(java.lang.String token)
    Query for devices for the given token.
    DeviceQuery userId​(java.lang.String userId)
    Query for devices for the given user.

    Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery

    asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult

    Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject

    addOrder, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByColumnMap, getOrderByColumns, getParameter, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setOrderByColumns, setParameter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery

    enhanceCachedValue

    Methods inherited from interface org.flowable.common.engine.api.query.Query

    asc, count, desc, list, listPage, orderBy, orderBy, singleResult
  • Field Details

    • id

      protected java.lang.String id
    • token

      protected java.lang.String token
    • userId

      protected java.lang.String userId
    • tenantId

      protected java.lang.String tenantId
    • applicationId

      protected java.lang.String applicationId
    • deviceOS

      protected java.lang.String deviceOS
    • onlyEnabled

      protected boolean onlyEnabled
  • Constructor Details

    • DeviceQueryImpl

      public DeviceQueryImpl​(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
  • Method Details

    • id

      public DeviceQuery id​(java.lang.String id)
      Description copied from interface: DeviceQuery
      Query for devices for the given id.
      Specified by:
      id in interface DeviceQuery
      Parameters:
      id - the id for which to query
    • token

      public DeviceQuery token​(java.lang.String token)
      Description copied from interface: DeviceQuery
      Query for devices for the given token.
      Specified by:
      token in interface DeviceQuery
      Parameters:
      token - the token for which to query
    • userId

      public DeviceQuery userId​(java.lang.String userId)
      Description copied from interface: DeviceQuery
      Query for devices for the given user.
      Specified by:
      userId in interface DeviceQuery
      Parameters:
      userId - the id of the user for which to query
    • tenantId

      public DeviceQuery tenantId​(java.lang.String tenantId)
      Description copied from interface: DeviceQuery
      Query for devices within the given tenant.
      Specified by:
      tenantId in interface DeviceQuery
      Parameters:
      tenantId - the tenant id for which to query
    • applicationId

      public DeviceQuery applicationId​(java.lang.String applicationId)
      Description copied from interface: DeviceQuery
      Query for devices for the given application.
      Specified by:
      applicationId in interface DeviceQuery
      Parameters:
      applicationId - the id of the application for which to query
    • deviceOS

      public DeviceQuery deviceOS​(java.lang.String deviceOS)
      Description copied from interface: DeviceQuery
      Query devices only with the given OS.
      Specified by:
      deviceOS in interface DeviceQuery
      Parameters:
      deviceOS - the type of the os for which to query
      See Also:
      DeviceOS
    • onlyEnabled

      public DeviceQuery onlyEnabled()
      Description copied from interface: DeviceQuery
      Query only for enabled devices.
      Specified by:
      onlyEnabled in interface DeviceQuery
    • executeCount

      public long executeCount​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      executeCount in class org.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,​Device>
    • executeList

      public java.util.List<Device> executeList​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      executeList in class org.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,​Device>
    • getId

      public java.lang.String getId()
      Specified by:
      getId in interface org.flowable.common.engine.api.query.CacheAwareQuery<DeviceEntity>
    • getToken

      public java.lang.String getToken()
    • getUserId

      public java.lang.String getUserId()
    • getTenantId

      public java.lang.String getTenantId()
    • getApplicationId

      public java.lang.String getApplicationId()
    • getDeviceOS

      public java.lang.String getDeviceOS()
    • isOnlyEnabled

      public boolean isOnlyEnabled()