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,org.flowable.common.engine.api.query.CacheAwareQuery<DeviceEntity>,org.flowable.common.engine.api.query.Query<DeviceQuery,,Device> org.flowable.common.engine.impl.interceptor.Command<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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.db.ListQueryParameterObject.OrderBy, org.flowable.common.engine.impl.db.ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected StringFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, ignoreOrderBy, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionDeviceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) Query for devices for the given application.Query devices only with the given OS.longexecuteCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) getId()getToken()Query for devices for the given id.booleanQuery only for enabled devices.Query for devices within the given tenant.Query for devices for the given token.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, getSafeList, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods 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, setIgnoreOrderBy, setMaxResults, setNullHandlingColumn, setParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValueMethods inherited from interface org.flowable.common.engine.api.query.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
Field Details
-
id
-
token
-
userId
-
tenantId
-
applicationId
-
deviceOS
-
onlyEnabled
protected boolean onlyEnabled
-
-
Constructor Details
-
DeviceQueryImpl
public DeviceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
-
Method Details
-
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
Description copied from interface:DeviceQueryQuery for devices for the given token.- Specified by:
tokenin interfaceDeviceQuery- Parameters:
token- the token for which to query
-
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
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
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
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:
-
onlyEnabled
Description copied from interface:DeviceQueryQuery only for enabled devices.- Specified by:
onlyEnabledin interfaceDeviceQuery
-
executeCount
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
executeCountin classorg.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,Device>
-
executeList
public List<Device> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
executeListin classorg.flowable.common.engine.impl.query.AbstractQuery<DeviceQuery,Device>
-
getId
- Specified by:
getIdin interfaceorg.flowable.common.engine.api.query.CacheAwareQuery<DeviceEntity>
-
getToken
-
getUserId
-
getTenantId
-
getApplicationId
-
getDeviceOS
-
isOnlyEnabled
public boolean isOnlyEnabled()
-