blob: e338a52765cacd813decd8e4893d879210fbc307 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_111) on Thu Feb 23 12:34:25 MSK 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ObjectSelect (cayenne-doc: Cayenne Documentation 4.0.M5 API)</title>
<meta name="date" content="2017-02-23">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ObjectSelect (cayenne-doc: Cayenne Documentation 4.0.M5 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":9,"i3":9,"i4":10,"i5":10,"i6":10,"i7":10,"i8":9,"i9":9,"i10":9,"i11":9,"i12":10,"i13":10,"i14":10,"i15":10,"i16":9,"i17":9,"i18":9,"i19":9,"i20":10,"i21":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ObjectSelect.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/cayenne/query/ObjectIdQuery.html" title="class in org.apache.cayenne.query"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/cayenne/query/Ordering.html" title="class in org.apache.cayenne.query"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/cayenne/query/ObjectSelect.html" target="_top">Frames</a></li>
<li><a href="ObjectSelect.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.cayenne.query</div>
<h2 title="Class ObjectSelect" class="title">Class ObjectSelect&lt;T&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/cayenne/query/IndirectQuery.html" title="class in org.apache.cayenne.query">org.apache.cayenne.query.IndirectQuery</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/cayenne/query/FluentSelect.html" title="class in org.apache.cayenne.query">org.apache.cayenne.query.FluentSelect</a>&lt;T,<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;&gt;</li>
<li>
<ul class="inheritance">
<li>org.apache.cayenne.query.ObjectSelect&lt;T&gt;</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</a>, <a href="../../../../org/apache/cayenne/query/Select.html" title="interface in org.apache.cayenne.query">Select</a>&lt;T&gt;</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">ObjectSelect&lt;T&gt;</span>
extends <a href="../../../../org/apache/cayenne/query/FluentSelect.html" title="class in org.apache.cayenne.query">FluentSelect</a>&lt;T,<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;&gt;</pre>
<div class="block">A selecting query providing chainable API. This is an alternative to
<a href="../../../../org/apache/cayenne/query/SelectQuery.html" title="class in org.apache.cayenne.query"><code>SelectQuery</code></a> when you want to use a fluent API. For example, the following
is a convenient way to return a record:
<pre>
<code>
Artist a = ObjectSelect
.query(Artist.class)
.where(Artist.NAME.eq("Picasso"))
.selectOne(context);
</code>
</pre></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>4.0</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../serialized-form.html#org.apache.cayenne.query.ObjectSelect">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#fetchingDataRows">fetchingDataRows</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.cayenne.query.FluentSelect">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.cayenne.query.<a href="../../../../org/apache/cayenne/query/FluentSelect.html" title="class in org.apache.cayenne.query">FluentSelect</a></h3>
<code><a href="../../../../org/apache/cayenne/query/FluentSelect.html#cacheGroup">cacheGroup</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#cacheStrategy">cacheStrategy</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#dbEntityName">dbEntityName</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#entityName">entityName</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#entityType">entityType</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#limit">limit</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#offset">offset</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#orderings">orderings</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#pageSize">pageSize</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#prefetches">prefetches</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#statementFetchSize">statementFetchSize</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#where">where</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.cayenne.query.IndirectQuery">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.cayenne.query.<a href="../../../../org/apache/cayenne/query/IndirectQuery.html" title="class in org.apache.cayenne.query">IndirectQuery</a></h3>
<code><a href="../../../../org/apache/cayenne/query/IndirectQuery.html#dataMap">dataMap</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#lastResolver">lastResolver</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#name">name</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#replacementQuery">replacementQuery</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#ObjectSelect--">ObjectSelect</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#avg-org.apache.cayenne.exp.Property-">avg</a></span>(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</code>
<div class="block">Select average value of property</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#column-org.apache.cayenne.exp.Property-">column</a></span>(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</code>
<div class="block">Select one specific property.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected static <a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#columnQuery-java.lang.Class-org.apache.cayenne.exp.Property-org.apache.cayenne.exp.Property...-">columnQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;&nbsp;firstColumn,
<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;...&nbsp;otherColumns)</code>
<div class="block">Creates a ColumnSelect that will fetch multiple columns of a given <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a></div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>protected static &lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#columnQuery-java.lang.Class-org.apache.cayenne.exp.Property-">columnQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;column)</code>
<div class="block">Creates a ColumnSelect that will fetch single property that can be resolved
against a given <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a> class.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#columns-org.apache.cayenne.exp.Property-org.apache.cayenne.exp.Property...-">columns</a></span>(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;&nbsp;firstProperty,
<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;...&nbsp;properties)</code>
<div class="block">Select only specific properties.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#count--">count</a></span>()</code>
<div class="block">Select COUNT(*)</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#count-org.apache.cayenne.exp.Property-">count</a></span>(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;&nbsp;property)</code>
<div class="block">Select COUNT(property)</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#createReplacementQuery-org.apache.cayenne.map.EntityResolver-">createReplacementQuery</a></span>(<a href="../../../../org/apache/cayenne/map/EntityResolver.html" title="class in org.apache.cayenne.map">EntityResolver</a>&nbsp;resolver)</code>
<div class="block">Translates self to a SelectQuery.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#dataRowQuery-java.lang.Class-">dataRowQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;entityType)</code>
<div class="block">Creates a ObjectSelect that fetches data for an <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a>
determined from a provided class.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#dataRowQuery-java.lang.Class-org.apache.cayenne.exp.Expression-">dataRowQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Expression.html" title="class in org.apache.cayenne.exp">Expression</a>&nbsp;expression)</code>
<div class="block">Creates a ObjectSelect that fetches data for an <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a>
determined from a provided class and uses provided expression for its
qualifier.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#dbQuery-java.lang.String-">dbQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dbEntityName)</code>
<div class="block">Creates a ObjectSelect that fetches DataRows for a <a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map"><code>DbEntity</code></a>
determined from provided "dbEntityName".</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#dbQuery-java.lang.String-org.apache.cayenne.exp.Expression-">dbQuery</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dbEntityName,
<a href="../../../../org/apache/cayenne/exp/Expression.html" title="class in org.apache.cayenne.exp">Expression</a>&nbsp;expression)</code>
<div class="block">Creates a ObjectSelect that fetches DataRows for a <a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map"><code>DbEntity</code></a>
determined from provided "dbEntityName" and uses provided expression for
its qualifier.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#fetchDataRows--">fetchDataRows</a></span>()</code>
<div class="block">Forces query to fetch DataRows.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#isFetchingDataRows--">isFetchingDataRows</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#max-org.apache.cayenne.exp.Property-">max</a></span>(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</code>
<div class="block">Select maximum value of property</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#min-org.apache.cayenne.exp.Property-">min</a></span>(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</code>
<div class="block">Select minimum value of property</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#query-java.lang.Class-">query</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;entityType)</code>
<div class="block">Creates a ObjectSelect that selects objects of a given persistent class.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#query-java.lang.Class-org.apache.cayenne.exp.Expression-">query</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Expression.html" title="class in org.apache.cayenne.exp">Expression</a>&nbsp;expression)</code>
<div class="block">Creates a ObjectSelect that selects objects of a given persistent class
and uses provided expression for its qualifier.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#query-java.lang.Class-org.apache.cayenne.exp.Expression-java.util.List-">query</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Expression.html" title="class in org.apache.cayenne.exp">Expression</a>&nbsp;expression,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/cayenne/query/Ordering.html" title="class in org.apache.cayenne.query">Ordering</a>&gt;&nbsp;orderings)</code>
<div class="block">Creates a ObjectSelect that selects objects of a given persistent class
and uses provided expression for its qualifier.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#query-java.lang.Class-java.lang.String-">query</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;resultType,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;entityName)</code>
<div class="block">Creates a ObjectSelect that fetches data for <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a> determined
from provided "entityName", but fetches the result of a provided type.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#selectCount-org.apache.cayenne.ObjectContext-">selectCount</a></span>(<a href="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</a>&nbsp;context)</code>
<div class="block">Quick way to select count of records</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>&lt;E extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a>&gt;<br><a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#sum-org.apache.cayenne.exp.Property-">sum</a></span>(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</code>
<div class="block">Select sum of values</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.cayenne.query.FluentSelect">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.cayenne.query.<a href="../../../../org/apache/cayenne/query/FluentSelect.html" title="class in org.apache.cayenne.query">FluentSelect</a></h3>
<code><a href="../../../../org/apache/cayenne/query/FluentSelect.html#and-java.util.Collection-">and</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#and-org.apache.cayenne.exp.Expression...-">and</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#batchIterator-org.apache.cayenne.ObjectContext-int-">batchIterator</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#cacheGroup-java.lang.String-">cacheGroup</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#cacheStrategy-org.apache.cayenne.query.QueryCacheStrategy-">cacheStrategy</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#cacheStrategy-org.apache.cayenne.query.QueryCacheStrategy-java.lang.String-">cacheStrategy</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#dbEntityName-java.lang.String-">dbEntityName</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#entityName-java.lang.String-">entityName</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#entityType-java.lang.Class-">entityType</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getCacheGroup--">getCacheGroup</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getCacheStrategy--">getCacheStrategy</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getDbEntityName--">getDbEntityName</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getEntityName--">getEntityName</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getEntityType--">getEntityType</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getLimit--">getLimit</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getOffset--">getOffset</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getOrderings--">getOrderings</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getPageSize--">getPageSize</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getPrefetches--">getPrefetches</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getStatementFetchSize--">getStatementFetchSize</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#getWhere--">getWhere</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#iterate-org.apache.cayenne.ObjectContext-org.apache.cayenne.ResultIteratorCallback-">iterate</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#iterator-org.apache.cayenne.ObjectContext-">iterator</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#limit-int-">limit</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#localCache--">localCache</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#localCache-java.lang.String-">localCache</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#offset-int-">offset</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#or-java.util.Collection-">or</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#or-org.apache.cayenne.exp.Expression...-">or</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#orderBy-java.util.Collection-">orderBy</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#orderBy-org.apache.cayenne.query.Ordering...-">orderBy</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#orderBy-java.lang.String-">orderBy</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#orderBy-java.lang.String-org.apache.cayenne.query.SortOrder-">orderBy</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#pageSize-int-">pageSize</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#prefetch-org.apache.cayenne.query.PrefetchTreeNode-">prefetch</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#prefetch-java.lang.String-int-">prefetch</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#select-org.apache.cayenne.ObjectContext-">select</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#selectFirst-org.apache.cayenne.ObjectContext-">selectFirst</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#selectOne-org.apache.cayenne.ObjectContext-">selectOne</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#sharedCache--">sharedCache</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#sharedCache-java.lang.String-">sharedCache</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#statementFetchSize-int-">statementFetchSize</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#where-org.apache.cayenne.exp.Expression-">where</a>, <a href="../../../../org/apache/cayenne/query/FluentSelect.html#where-java.lang.String-java.lang.Object...-">where</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.cayenne.query.IndirectQuery">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.cayenne.query.<a href="../../../../org/apache/cayenne/query/IndirectQuery.html" title="class in org.apache.cayenne.query">IndirectQuery</a></h3>
<code><a href="../../../../org/apache/cayenne/query/IndirectQuery.html#createSQLAction-org.apache.cayenne.query.SQLActionVisitor-">createSQLAction</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#getDataMap--">getDataMap</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#getMetaData-org.apache.cayenne.map.EntityResolver-">getMetaData</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#getName--">getName</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#getReplacementQuery-org.apache.cayenne.map.EntityResolver-">getReplacementQuery</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#route-org.apache.cayenne.query.QueryRouter-org.apache.cayenne.map.EntityResolver-org.apache.cayenne.query.Query-">route</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#setDataMap-org.apache.cayenne.map.DataMap-">setDataMap</a>, <a href="../../../../org/apache/cayenne/query/IndirectQuery.html#setName-java.lang.String-">setName</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.cayenne.query.Query">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.cayenne.query.<a href="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</a></h3>
<code><a href="../../../../org/apache/cayenne/query/Query.html#createSQLAction-org.apache.cayenne.query.SQLActionVisitor-">createSQLAction</a>, <a href="../../../../org/apache/cayenne/query/Query.html#getDataMap--">getDataMap</a>, <a href="../../../../org/apache/cayenne/query/Query.html#getMetaData-org.apache.cayenne.map.EntityResolver-">getMetaData</a>, <a href="../../../../org/apache/cayenne/query/Query.html#getName--">getName</a>, <a href="../../../../org/apache/cayenne/query/Query.html#route-org.apache.cayenne.query.QueryRouter-org.apache.cayenne.map.EntityResolver-org.apache.cayenne.query.Query-">route</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="fetchingDataRows">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>fetchingDataRows</h4>
<pre>protected&nbsp;boolean fetchingDataRows</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ObjectSelect--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ObjectSelect</h4>
<pre>protected&nbsp;ObjectSelect()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="query-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>query</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;&nbsp;query(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;entityType)</pre>
<div class="block">Creates a ObjectSelect that selects objects of a given persistent class.</div>
</li>
</ul>
<a name="query-java.lang.Class-org.apache.cayenne.exp.Expression-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>query</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;&nbsp;query(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Expression.html" title="class in org.apache.cayenne.exp">Expression</a>&nbsp;expression)</pre>
<div class="block">Creates a ObjectSelect that selects objects of a given persistent class
and uses provided expression for its qualifier.</div>
</li>
</ul>
<a name="query-java.lang.Class-org.apache.cayenne.exp.Expression-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>query</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;&nbsp;query(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Expression.html" title="class in org.apache.cayenne.exp">Expression</a>&nbsp;expression,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/cayenne/query/Ordering.html" title="class in org.apache.cayenne.query">Ordering</a>&gt;&nbsp;orderings)</pre>
<div class="block">Creates a ObjectSelect that selects objects of a given persistent class
and uses provided expression for its qualifier.</div>
</li>
</ul>
<a name="dataRowQuery-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dataRowQuery</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;&nbsp;dataRowQuery(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;entityType)</pre>
<div class="block">Creates a ObjectSelect that fetches data for an <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a>
determined from a provided class.</div>
</li>
</ul>
<a name="dataRowQuery-java.lang.Class-org.apache.cayenne.exp.Expression-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dataRowQuery</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;&nbsp;dataRowQuery(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Expression.html" title="class in org.apache.cayenne.exp">Expression</a>&nbsp;expression)</pre>
<div class="block">Creates a ObjectSelect that fetches data for an <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a>
determined from a provided class and uses provided expression for its
qualifier.</div>
</li>
</ul>
<a name="query-java.lang.Class-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>query</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;T&gt;&nbsp;query(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;resultType,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;entityName)</pre>
<div class="block">Creates a ObjectSelect that fetches data for <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a> determined
from provided "entityName", but fetches the result of a provided type.
This factory method is most often used with generic classes that by
themselves are not enough to resolve the entity to fetch.</div>
</li>
</ul>
<a name="dbQuery-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dbQuery</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;&nbsp;dbQuery(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dbEntityName)</pre>
<div class="block">Creates a ObjectSelect that fetches DataRows for a <a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map"><code>DbEntity</code></a>
determined from provided "dbEntityName".</div>
</li>
</ul>
<a name="dbQuery-java.lang.String-org.apache.cayenne.exp.Expression-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dbQuery</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;&nbsp;dbQuery(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dbEntityName,
<a href="../../../../org/apache/cayenne/exp/Expression.html" title="class in org.apache.cayenne.exp">Expression</a>&nbsp;expression)</pre>
<div class="block">Creates a ObjectSelect that fetches DataRows for a <a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map"><code>DbEntity</code></a>
determined from provided "dbEntityName" and uses provided expression for
its qualifier.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="columnQuery-java.lang.Class-org.apache.cayenne.exp.Property-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>columnQuery</h4>
<pre>protected static&nbsp;&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;&nbsp;columnQuery(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;column)</pre>
<div class="block">Creates a ColumnSelect that will fetch single property that can be resolved
against a given <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a> class.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entityType</code> - base persistent class that will be used as a root for this query</dd>
<dd><code>column</code> - single column to select</dd>
</dl>
</li>
</ul>
<a name="columnQuery-java.lang.Class-org.apache.cayenne.exp.Property-org.apache.cayenne.exp.Property...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>columnQuery</h4>
<pre>protected static&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]&gt;&nbsp;columnQuery(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;entityType,
<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;&nbsp;firstColumn,
<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;...&nbsp;otherColumns)</pre>
<div class="block">Creates a ColumnSelect that will fetch multiple columns of a given <a href="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map"><code>ObjEntity</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entityType</code> - base persistent class that will be used as a root for this query</dd>
<dd><code>firstColumn</code> - column to select</dd>
<dd><code>otherColumns</code> - columns to select</dd>
</dl>
</li>
</ul>
<a name="createReplacementQuery-org.apache.cayenne.map.EntityResolver-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createReplacementQuery</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</a>&nbsp;createReplacementQuery(<a href="../../../../org/apache/cayenne/map/EntityResolver.html" title="class in org.apache.cayenne.map">EntityResolver</a>&nbsp;resolver)</pre>
<div class="block">Translates self to a SelectQuery.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../org/apache/cayenne/query/FluentSelect.html#createReplacementQuery-org.apache.cayenne.map.EntityResolver-">createReplacementQuery</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/cayenne/query/FluentSelect.html" title="class in org.apache.cayenne.query">FluentSelect</a>&lt;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="type parameter in ObjectSelect">T</a>,<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="type parameter in ObjectSelect">T</a>&gt;&gt;</code></dd>
</dl>
</li>
</ul>
<a name="fetchDataRows--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fetchDataRows</h4>
<pre>public&nbsp;<a href="../../../../org/apache/cayenne/query/ObjectSelect.html" title="class in org.apache.cayenne.query">ObjectSelect</a>&lt;<a href="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</a>&gt;&nbsp;fetchDataRows()</pre>
<div class="block">Forces query to fetch DataRows. This automatically changes whatever
result type was set previously to "DataRow".</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="columns-org.apache.cayenne.exp.Property-org.apache.cayenne.exp.Property...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>columns</h4>
<pre>public&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]&gt;&nbsp;columns(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;&nbsp;firstProperty,
<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;...&nbsp;properties)</pre>
<div class="block"><p>Select only specific properties.</p>
<p>Can be any properties that can be resolved against root entity type
(root entity's properties, function call expressions, properties of relationships, etc).</p>
<p>
<pre>
<code>
List&lt;Object[]&gt; columns = ObjectSelect.query(Artist.class)
.columns(Artist.ARTIST_NAME, Artist.DATE_OF_BIRTH)
.select(context);
</code>
</pre></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>properties</code> - array of properties to select</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#column-org.apache.cayenne.exp.Property-"><code>column(Property)</code></a></dd>
</dl>
</li>
</ul>
<a name="column-org.apache.cayenne.exp.Property-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>column</h4>
<pre>public&nbsp;&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;&nbsp;column(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</pre>
<div class="block"><p>Select one specific property.</p>
<p>Can be any property that can be resolved against root entity type
(root entity's property, function call expression, property of relationships, etc)</p>
<p>If you need several columns use <a href="../../../../org/apache/cayenne/query/ObjectSelect.html#columns-org.apache.cayenne.exp.Property-org.apache.cayenne.exp.Property...-"><code>columns(Property, Property[])</code></a> method.</p>
<p>
<pre>
<code>
List&lt;String&gt; names = ObjectSelect.query(Artist.class)
.column(Artist.ARTIST_NAME)
.select(context);
</code>
</pre>
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>property</code> - single property to select</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#columns-org.apache.cayenne.exp.Property-org.apache.cayenne.exp.Property...-"><code>columns(Property, Property[])</code></a></dd>
</dl>
</li>
</ul>
<a name="count--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>count</h4>
<pre>public&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&nbsp;count()</pre>
<div class="block">Select COUNT(*)</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#column-org.apache.cayenne.exp.Property-"><code>column(Property)</code></a></dd>
</dl>
</li>
</ul>
<a name="count-org.apache.cayenne.exp.Property-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>count</h4>
<pre>public&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&nbsp;count(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;?&gt;&nbsp;property)</pre>
<div class="block"><p>Select COUNT(property)</p>
<p>Can return different result than COUNT(*) as it will count only non null values</p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#count--"><code>count()</code></a>,
<a href="../../../../org/apache/cayenne/query/ObjectSelect.html#column-org.apache.cayenne.exp.Property-"><code>column(Property)</code></a></dd>
</dl>
</li>
</ul>
<a name="min-org.apache.cayenne.exp.Property-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>min</h4>
<pre>public&nbsp;&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;&nbsp;min(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</pre>
<div class="block"><p>Select minimum value of property</p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#column-org.apache.cayenne.exp.Property-"><code>column(Property)</code></a></dd>
</dl>
</li>
</ul>
<a name="max-org.apache.cayenne.exp.Property-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>max</h4>
<pre>public&nbsp;&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;&nbsp;max(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</pre>
<div class="block"><p>Select maximum value of property</p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#column-org.apache.cayenne.exp.Property-"><code>column(Property)</code></a></dd>
</dl>
</li>
</ul>
<a name="avg-org.apache.cayenne.exp.Property-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>avg</h4>
<pre>public&nbsp;&lt;E&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;&nbsp;avg(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</pre>
<div class="block"><p>Select average value of property</p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#column-org.apache.cayenne.exp.Property-"><code>column(Property)</code></a></dd>
</dl>
</li>
</ul>
<a name="sum-org.apache.cayenne.exp.Property-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sum</h4>
<pre>public&nbsp;&lt;E extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a>&gt;&nbsp;<a href="../../../../org/apache/cayenne/query/ColumnSelect.html" title="class in org.apache.cayenne.query">ColumnSelect</a>&lt;E&gt;&nbsp;sum(<a href="../../../../org/apache/cayenne/exp/Property.html" title="class in org.apache.cayenne.exp">Property</a>&lt;E&gt;&nbsp;property)</pre>
<div class="block"><p>Select sum of values</p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/cayenne/query/ObjectSelect.html#column-org.apache.cayenne.exp.Property-"><code>column(Property)</code></a></dd>
</dl>
</li>
</ul>
<a name="selectCount-org.apache.cayenne.ObjectContext-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>selectCount</h4>
<pre>public&nbsp;long&nbsp;selectCount(<a href="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</a>&nbsp;context)</pre>
<div class="block"><p>Quick way to select count of records</p>
<p>Usage:
<pre>
<code>
long count = ObjectSelect.query(Artist.class)
.where(Artist.ARTIST_NAME.like("a%"))
.selectCount(context);
</code>
</pre>
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>context</code> - to perform query</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>count of rows</dd>
</dl>
</li>
</ul>
<a name="isFetchingDataRows--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isFetchingDataRows</h4>
<pre>public&nbsp;boolean&nbsp;isFetchingDataRows()</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ObjectSelect.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/cayenne/query/ObjectIdQuery.html" title="class in org.apache.cayenne.query"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/cayenne/query/Ordering.html" title="class in org.apache.cayenne.query"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/cayenne/query/ObjectSelect.html" target="_top">Frames</a></li>
<li><a href="ObjectSelect.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2001&#x2013;2017 <a href="http://cayenne.apache.org/">Apache Cayenne</a>. All rights reserved.</small></p>
</body>
</html>