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,Serializable,CacheAwareQuery<DeviceEntity>,Query<DeviceQuery,Device>,Command<Object>
public class DeviceQueryImpl extends AbstractQuery<DeviceQuery,Device> implements DeviceQuery, 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
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
-
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected StringapplicationIdprotected StringdeviceOSprotected Stringidprotected booleanonlyEnabledprotected StringtenantIdprotected Stringtokenprotected StringuserId-
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, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
-
Constructor Summary
Constructors Constructor Description DeviceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceQueryapplicationId(String applicationId)Query for devices for the given application.DeviceQuerydeviceOS(String deviceOS)Query devices only with the given OS.longexecuteCount(CommandContext commandContext)List<Device>executeList(CommandContext commandContext)StringgetApplicationId()StringgetDeviceOS()StringgetId()StringgetTenantId()StringgetToken()StringgetUserId()DeviceQueryid(String id)Query for devices for the given id.booleanisOnlyEnabled()DeviceQueryonlyEnabled()Query only for enabled devices.DeviceQuerytenantId(String tenantId)Query for devices within the given tenant.DeviceQuerytoken(String token)Query for devices for the given token.DeviceQueryuserId(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, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, 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
-
-
-
-
Constructor Detail
-
DeviceQueryImpl
public DeviceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
id
public DeviceQuery id(String id)
Description copied from interface:DeviceQueryQuery for devices for the given id.- Specified by:
idin interfaceDeviceQuery- Parameters:
id- the id for which to query
-
token
public DeviceQuery token(String token)
Description copied from interface:DeviceQueryQuery for devices for the given token.- Specified by:
tokenin interfaceDeviceQuery- Parameters:
token- the token for which to query
-
userId
public DeviceQuery userId(String userId)
Description copied from interface:DeviceQueryQuery for devices for the given user.- Specified by:
userIdin interfaceDeviceQuery- Parameters:
userId- the id of the user for which to query
-
tenantId
public DeviceQuery tenantId(String tenantId)
Description copied from interface:DeviceQueryQuery for devices within the given tenant.- Specified by:
tenantIdin interfaceDeviceQuery- Parameters:
tenantId- the tenant id for which to query
-
applicationId
public DeviceQuery applicationId(String applicationId)
Description copied from interface:DeviceQueryQuery for devices for the given application.- Specified by:
applicationIdin interfaceDeviceQuery- Parameters:
applicationId- the id of the application for which to query
-
deviceOS
public DeviceQuery deviceOS(String deviceOS)
Description copied from interface:DeviceQueryQuery devices only with the given OS.- Specified by:
deviceOSin interfaceDeviceQuery- Parameters:
deviceOS- the type of the os for which to query- See Also:
DeviceOS
-
onlyEnabled
public DeviceQuery onlyEnabled()
Description copied from interface:DeviceQueryQuery only for enabled devices.- Specified by:
onlyEnabledin interfaceDeviceQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<DeviceQuery,Device>
-
executeList
public List<Device> executeList(CommandContext commandContext)
- Specified by:
executeListin classAbstractQuery<DeviceQuery,Device>
-
getId
public String getId()
- Specified by:
getIdin interfaceCacheAwareQuery<DeviceEntity>
-
getToken
public String getToken()
-
getUserId
public String getUserId()
-
getTenantId
public String getTenantId()
-
getApplicationId
public String getApplicationId()
-
getDeviceOS
public String getDeviceOS()
-
isOnlyEnabled
public boolean isOnlyEnabled()
-
-