public class DeviceQueryImpl extends AbstractQuery<DeviceQuery,Device> implements DeviceQuery, CacheAwareQuery<DeviceEntity>
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeQuery.NullHandlingOnOrder| Modifier and Type | Field and Description |
|---|---|
protected String |
applicationId |
protected String |
deviceOS |
protected String |
id |
protected boolean |
onlyEnabled |
protected String |
tenantId |
protected String |
token |
protected String |
userId |
commandContext, commandExecutordatabaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC| Constructor and Description |
|---|
DeviceQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
DeviceQuery |
applicationId(String applicationId)
Query for devices for the given application.
|
DeviceQuery |
deviceOS(String deviceOS)
Query devices only with the given OS.
|
long |
executeCount(CommandContext commandContext) |
List<Device> |
executeList(CommandContext commandContext) |
String |
getApplicationId() |
String |
getDeviceOS() |
String |
getId() |
String |
getTenantId() |
String |
getToken() |
String |
getUserId() |
DeviceQuery |
id(String id)
Query for devices for the given id.
|
boolean |
isOnlyEnabled() |
DeviceQuery |
onlyEnabled()
Query only for enabled devices.
|
DeviceQuery |
tenantId(String tenantId)
Query for devices within the given tenant.
|
DeviceQuery |
token(String token)
Query for devices for the given token.
|
DeviceQuery |
userId(String userId)
Query for devices for the given user.
|
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultaddOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasc, count, desc, list, listPage, orderBy, orderBy, singleResultenhanceCachedValueprotected String id
protected String token
protected String userId
protected String tenantId
protected String applicationId
protected String deviceOS
protected boolean onlyEnabled
public DeviceQueryImpl(CommandExecutor commandExecutor)
public DeviceQuery id(String id)
DeviceQueryid in interface DeviceQueryid - the id for which to querypublic DeviceQuery token(String token)
DeviceQuerytoken in interface DeviceQuerytoken - the token for which to querypublic DeviceQuery userId(String userId)
DeviceQueryuserId in interface DeviceQueryuserId - the id of the user for which to querypublic DeviceQuery tenantId(String tenantId)
DeviceQuerytenantId in interface DeviceQuerytenantId - the tenant id for which to querypublic DeviceQuery applicationId(String applicationId)
DeviceQueryapplicationId in interface DeviceQueryapplicationId - the id of the application for which to querypublic DeviceQuery deviceOS(String deviceOS)
DeviceQuerydeviceOS in interface DeviceQuerydeviceOS - the type of the os for which to queryDeviceOSpublic DeviceQuery onlyEnabled()
DeviceQueryonlyEnabled in interface DeviceQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<DeviceQuery,Device>public List<Device> executeList(CommandContext commandContext)
executeList in class AbstractQuery<DeviceQuery,Device>public String getId()
getId in interface CacheAwareQuery<DeviceEntity>public String getToken()
public String getUserId()
public String getTenantId()
public String getApplicationId()
public String getDeviceOS()
public boolean isOnlyEnabled()