# Uses of Class
org.apache.cayenne.query.SelectById

Packages that use SelectById
Package
Description
org.apache.cayenne.query
Defines standard queries supported by Cayenne and extension mechanism to create custom queries.

- ## Uses of SelectById in org.apache.cayenne.query

  Methods in org.apache.cayenne.query that return SelectById
  Modifier and Type
  Method
  Description
  `SelectById<T>`
  SelectById.`cacheGroup(String cacheGroup)`
  `SelectById<T>`
  SelectById.`cacheStrategy(QueryCacheStrategy strategy)`
  `SelectById<T>`
  SelectById.`cacheStrategy(QueryCacheStrategy strategy, String cacheGroup)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQuery(Class<?> entityType, Object id)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.dataRowQueryId(Class, Object)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQuery(Class<?> entityType, Object firstId, Object... otherIds)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.dataRowQueryIds(Class, Object...)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQuery(Class<?> entityType, Map<String,?> id)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.dataRowQueryMap(Class, Map)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQuery(Class<?> entityType, Map<String,?> firstId, Map<String,?>... otherIds)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.dataRowQueryMaps(Class, Map[])`
  `static SelectById<DataRow>`
  SelectById.`dataRowQuery(ObjectId id)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.dataRowQueryObjectId(ObjectId)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQuery(ObjectId firstId, ObjectId... otherIds)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.dataRowQueryObjectIds(ObjectId...)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryId(Class<?> entityType, Object id)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryIds(Class<?> entityType, Object... ids)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryIdsCollection(Class<?> entityType, Collection<Object> ids)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryMap(Class<?> entityType, Map<String,?> id)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryMaps(Class<?> entityType, Map<String,?>... ids)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryMapsCollection(Class<?> entityType, Collection<Map<String,?>> ids)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryObjectId(ObjectId id)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryObjectIds(ObjectId... ids)`
  `static SelectById<DataRow>`
  SelectById.`dataRowQueryObjectIdsCollection(Collection<ObjectId> ids)`
  `SelectById<T>`
  SelectById.`localCache()`
  Instructs Cayenne to look for query results in the "local" cache when running the query.
  `SelectById<T>`
  SelectById.`localCache(String cacheGroup)`
  Instructs Cayenne to look for query results in the "local" cache when running the query.
  `SelectById<T>`
  SelectById.`prefetch(String path, int semantics)`
  Merges a prefetch path with specified semantics into the query prefetch tree.
  `SelectById<T>`
  SelectById.`prefetch(PrefetchTreeNode prefetch)`
  Merges prefetch into the query prefetch tree.
  `static <T> SelectById<T>`
  SelectById.`query(Class<T> entityType, Object id)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.queryId(Class, Object)`
  `static <T> SelectById<T>`
  SelectById.`query(Class<T> entityType, Object firstId, Object... otherIds)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.queryIds(Class, Object...)`
  `static <T> SelectById<T>`
  SelectById.`query(Class<T> entityType, Collection<Object> ids)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.queryIdsCollection(Class, Collection)`
  `static <T> SelectById<T>`
  SelectById.`query(Class<T> entityType, Map<String,?> id)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.queryMap(Class, Map)`
  `static <T> SelectById<T>`
  SelectById.`query(Class<T> entityType, Map<String,?> firstId, Map<String,?>... otherIds)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.queryMaps(Class, Map[])`
  `static <T> SelectById<T>`
  SelectById.`query(Class<T> entityType, ObjectId id)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.queryObjectId(Class, ObjectId)`
  `static <T> SelectById<T>`
  SelectById.`query(Class<T> entityType, ObjectId firstId, ObjectId... otherIds)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `SelectById.queryObjectIds(Class, ObjectId...)`
  `static <T> SelectById<T>`
  SelectById.`queryId(Class<T> entityType, Object id)`
  `static <T> SelectById<T>`
  SelectById.`queryIds(Class<T> entityType, Object... ids)`
  `static <T> SelectById<T>`
  SelectById.`queryIdsCollection(Class<T> entityType, Collection<Object> ids)`
  `static <T> SelectById<T>`
  SelectById.`queryMap(Class<T> entityType, Map<String,?> id)`
  `static <T> SelectById<T>`
  SelectById.`queryMaps(Class<T> entityType, Map<String,?>... ids)`
  `static <T> SelectById<T>`
  SelectById.`queryMapsCollection(Class<T> entityType, Collection<Map<String,?>> ids)`
  `static <T> SelectById<T>`
  SelectById.`queryObjectId(Class<T> entityType, ObjectId id)`
  `static <T> SelectById<T>`
  SelectById.`queryObjectIds(Class<T> entityType, ObjectId... ids)`
  `static <T> SelectById<T>`
  SelectById.`queryObjectIdsCollection(Class<T> entityType, Collection<ObjectId> ids)`
  `SelectById<T>`
  SelectById.`sharedCache()`
  Instructs Cayenne to look for query results in the "shared" cache when running the query.
  `SelectById<T>`
  SelectById.`sharedCache(String cacheGroup)`
  Instructs Cayenne to look for query results in the "shared" cache when running the query.