public static class SelectImpl.SelectResult extends ResultSetResult
Result implementation wrapped around this select.| Constructor and Description |
|---|
SelectResult(Connection conn,
Statement stmnt,
ResultSet rs,
DBDictionary dict)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
absoluteInternal(int row)
Throws an exception by default.
|
protected boolean |
containsAllInternal(Object[] objs,
Joins joins)
Return whether this result contains data for all the given ids or
columns.
|
protected boolean |
containsInternal(Object obj,
Joins joins)
Return whether this result contains data for the given id or column.
|
Joins |
crossJoin(Table localTable,
Table foreignTable)
Perform a cross join on the given tables.
|
protected int |
findObject(Object obj,
Joins joins)
Return the 1-based result set index for the given column or id, or a
non-positive number if the column is not contained in this result.
|
String |
getCorrelatedVariable()
Return correlated variable name
|
Object |
getEager(FieldMapping key)
The eager result for the given key, or null if none.
|
String |
getPathStr() |
SelectImpl |
getSelect()
Select for this result.
|
boolean |
isDirty()
Return true if this instance has a path, any joins, or a variable.
|
boolean |
isEmpty()
Whether we have any joins.
|
boolean |
isOuter()
Whether this joins path results in outer joins.
|
Joins |
join(ForeignKey fk,
boolean inverse,
boolean toMany)
Join the columns of the given foreign key.
|
int |
joinCount()
Return the maximum number of joins contained in this instance at any
time.
|
Joins |
joinRelation(String name,
ForeignKey fk,
ClassMapping target,
int subs,
boolean inverse,
boolean toMany)
Join the columns of the given foreign key, which represents a relation
via the given field name.
|
org.apache.openjpa.jdbc.sql.JoinSet |
joins()
Return the set of
Join elements, or null if none. |
Object |
load(ClassMapping mapping,
JDBCStore store,
JDBCFetchConfiguration fetch,
Joins joins)
Load a pc object using the given store manager.
|
void |
moveJoinsToParent()
Move joins that belong to subquery's parent
|
Joins |
newJoins()
Returns a no-op joins object by default.
|
protected boolean |
nextInternal()
Advance this row.
|
void |
nullJoins()
Null the set of
Join elements. |
Joins |
outerJoin(ForeignKey fk,
boolean inverse,
boolean toMany)
Join the columns of the given foreign key.
|
Joins |
outerJoinRelation(String name,
ForeignKey fk,
ClassMapping target,
int subs,
boolean inverse,
boolean toMany)
Join the columns of the given foreign key, which represents a relation
via the given field name.
|
StringBuilder |
path()
Return the relation path traversed by these joins, or null if none.
|
void |
pushBack()
Push back the last result.
|
void |
putEager(FieldMapping key,
Object res)
The eager result for the given key, or null if none.
|
Joins |
setCorrelatedVariable(String var)
Set the correlated variable name being traversed into
with the next join.
|
Joins |
setJoinContext(Context ctx)
Set subquery context when traversing into the next join is
in transition from parent context to subquery.
|
org.apache.openjpa.jdbc.sql.PathJoins |
setOuter(boolean outer)
Mark this as an outer joins set.
|
void |
setSelect(SelectImpl sel)
Select for this result.
|
Joins |
setSubselect(String alias)
Set the subquery alias.
|
Joins |
setVariable(String var)
Set the variable name being traversed into with the next join.
|
close, getArrayInternal, getAsciiStreamInternal, getBigDecimalInternal, getBigIntegerInternal, getBinaryStreamInternal, getBlobInternal, getBooleanInternal, getByteInternal, getBytesInternal, getCalendarInternal, getCharacterStreamInternal, getCharInternal, getClobInternal, getCloseConnection, getDateInternal, getDateInternal, getDBDictionary, getDoubleInternal, getFloatInternal, getIntInternal, getLOBStreamInternal, getLocalDateInternal, getLocalDateTimeInternal, getLocaleInternal, getLocalTimeInternal, getLongInternal, getNumberInternal, getObjectInternal, getOffsetDateTimeInternal, getOffsetTimeInternal, getRefInternal, getResultSet, getShortInternal, getSQLObjectInternal, getStatement, getStore, getStreamInternal, getStringInternal, getTimeInternal, getTimestampInternal, setCloseConnection, setCloseStatement, setStore, size, supportsRandomAccess, translate, wasNullabsolute, checkNull, closeEagerMap, contains, contains, containsAll, containsAll, endDataRequest, getArray, getArray, getAsciiStream, getAsciiStream, getBaseMapping, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCalendar, getCalendar, getChar, getChar, getCharacterStream, getCharacterStream, getClob, getClob, getDate, getDate, getDate, getDate, getDouble, getDouble, getEagerMap, getFloat, getFloat, getInt, getInt, getLOBStream, getLocalDate, getLocalDateTime, getLocale, getLocale, getLocalTime, getLong, getLong, getMappedByFieldMapping, getMappedByValue, getNumber, getNumber, getObject, getObject, getOffsetDateTime, getOffsetTime, getRef, getRef, getShort, getShort, getSQLObject, getSQLObject, getString, getString, getTime, getTime, getTimestamp, getTimestamp, indexOf, isLocking, load, next, setBaseMapping, setEagerMap, setIndexOf, setLocking, setMappedByFieldMapping, setMappedByValue, startDataRequestpublic SelectResult(Connection conn, Statement stmnt, ResultSet rs, DBDictionary dict)
public SelectImpl getSelect()
public void setSelect(SelectImpl sel)
public Object getEager(FieldMapping key)
ResultgetEager in interface ResultgetEager in class AbstractResultpublic void putEager(FieldMapping key, Object res)
ResultputEager in interface ResultputEager in class AbstractResultpublic Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) throws SQLException
Resultload in interface Resultload in class AbstractResultSQLExceptionpublic Joins newJoins()
AbstractResultnewJoins in interface ResultnewJoins in class AbstractResultprotected boolean containsInternal(Object obj, Joins joins)
AbstractResultAbstractResult.translate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins).containsInternal in class ResultSetResultprotected boolean containsAllInternal(Object[] objs, Joins joins) throws SQLException
AbstractResultAbstractResult.translate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins). Delegates to AbstractResult.containsInternal(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins) by default.containsAllInternal in class AbstractResultSQLExceptionpublic void pushBack()
throws SQLException
ResultResult.next(). After the first time this method is called,
additional calls before a call to Result.next() or Result.absolute(int)
should have no further affect.pushBack in interface ResultpushBack in class AbstractResultSQLExceptionprotected boolean absoluteInternal(int row)
throws SQLException
AbstractResultabsoluteInternal in class ResultSetResultSQLExceptionprotected boolean nextInternal()
throws SQLException
AbstractResultnextInternal in class ResultSetResultSQLExceptionprotected int findObject(Object obj, Joins joins) throws SQLException
ResultSetResultfindObject in class ResultSetResultSQLExceptionpublic boolean isOuter()
Joinspublic org.apache.openjpa.jdbc.sql.PathJoins setOuter(boolean outer)
public boolean isDirty()
public StringBuilder path()
public String getPathStr()
public org.apache.openjpa.jdbc.sql.JoinSet joins()
Join elements, or null if none.public int joinCount()
public void nullJoins()
Join elements.public boolean isEmpty()
Joinspublic Joins crossJoin(Table localTable, Table foreignTable)
Joinspublic Joins join(ForeignKey fk, boolean inverse, boolean toMany)
Joinspublic Joins outerJoin(ForeignKey fk, boolean inverse, boolean toMany)
Joinspublic Joins joinRelation(String name, ForeignKey fk, ClassMapping target, int subs, boolean inverse, boolean toMany)
Joinspublic Joins outerJoinRelation(String name, ForeignKey fk, ClassMapping target, int subs, boolean inverse, boolean toMany)
Joinspublic Joins setVariable(String var)
Joinspublic Joins setSubselect(String alias)
Joinspublic Joins setCorrelatedVariable(String var)
Joinspublic Joins setJoinContext(Context ctx)
Joinspublic String getCorrelatedVariable()
Joinspublic void moveJoinsToParent()
JoinsCopyright © 2006–2022 Apache Software Foundation. All rights reserved.