Uses of Class
org.apache.cayenne.query.SQLSelect
Package
Description
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
-
Uses of SQLSelect in org.apache.cayenne.query
Modifier and TypeMethodDescriptionSQLSelect.addPrefetch
(String path, int semantics) Merges a prefetch path with specified semantics into the query prefetch tree.SQLSelect.addPrefetch
(PrefetchTreeNode node) Merges a prefetch into the query prefetch tree.Appends a piece of SQL to the previously stored SQL template.SQLSelect.cacheGroup
(String cacheGroup) SQLSelect.cacheStrategy
(QueryCacheStrategy strategy) SQLSelect.cacheStrategy
(QueryCacheStrategy strategy, String cacheGroup) SQLSelect.columnNameCaps
(CapsStrategy columnNameCaps) Sets a column name capitalization policy applied to selecting queries.SQLSelect.columnQuery
(String sql) Creates query that selects scalar values (as Object[]) and uses default routingSQLSelect.columnQuery
(String sql, Class<?>... types) Creates query that selects scalar values (as Object[]) and uses default routingSQLSelect.columnQuery
(String sql, String dataMapName) Creates query that selects scalar values (as Object[]) and uses routing based on the provided DataMap name.SQLSelect.columnQuery
(String sql, String dataMapName, Class<?>... types) Creates query that selects scalar values (as Object[]) and uses routing based on the provided DataMap name.SQLSelect.dataRowQuery
(String sql) Creates a query that selects DataRows and uses default routing.SQLSelect.dataRowQuery
(String sql, Class<?>... types) Creates a query that selects DataRows and uses default routing.SQLSelect.dataRowQuery
(String dataMapName, String sql) Creates a query that selects DataRows and uses routing based on the provided DataMap name.SQLSelect.dataRowQuery
(String dataMapName, String sql, Class<?>... types) Creates a query that selects DataRows and uses routing based on the provided DataMap name.SQLSelect.limit
(int fetchLimit) SQLSelect.localCache()
Instructs Cayenne to look for query results in the "local" cache when running the query.SQLSelect.localCache
(String cacheGroup) Instructs Cayenne to look for query results in the "local" cache when running the query.SQLSelect.lowerColumnNames()
Equivalent of settingCapsStrategy.LOWER
<E> SQLSelect
<E> Map result of this query by processing with a given function.SQLSelect.offset
(int fetchOffset) SQLSelect.pageSize
(int pageSize) Deprecated.SQLSelect.paramsArray
(Object... params) Initializes positional parameters of the query.SQLSelect.paramsList
(List<Object> params) Initializes positional parameters of the query.static <T> SQLSelect
<T> Creates a query that selects DataObjects.SQLSelect.queryTimeout
(int queryTimeout) Sets query timeoutstatic <T> SQLSelect
<T> SQLSelect.scalarQuery
(Class<T> type, String sql) Deprecated.since 4.2.static <T> SQLSelect
<T> SQLSelect.scalarQuery
(Class<T> type, String dataMapName, String sql) Deprecated.since 4.2.SQLSelect.scalarQuery
(String sql) Deprecated.since 4.2.SQLSelect.scalarQuery
(String sql, Class<?>... types) Deprecated.since 4.2.static <T> SQLSelect
<T> SQLSelect.scalarQuery
(String sql, Class<T> type) Creates query that selects scalar value and uses default routingSQLSelect.scalarQuery
(String sql, String dataMapName) Deprecated.since 4.2.SQLSelect.scalarQuery
(String sql, String dataMapName, Class<?>... types) Deprecated.since 4.2.static <T> SQLSelect
<T> SQLSelect.scalarQuery
(String sql, String dataMapName, Class<T> type) Creates query that selects scalar value and uses default routingSQLSelect.sharedCache()
Instructs Cayenne to look for query results in the "shared" cache when running the query.SQLSelect.sharedCache
(String cacheGroup) Instructs Cayenne to look for query results in the "shared" cache when running the query.SQLSelect.statementFetchSize
(int size) Sets JDBC statement's fetch size (0 for no default size)SQLSelect.upperColumnNames()
Equivalent of settingCapsStrategy.UPPER
param(String, Object)