Package org.apache.openjpa.jdbc.sql
Class SelectImpl.SelectResult
java.lang.Object
org.apache.openjpa.jdbc.sql.AbstractResult
org.apache.openjpa.jdbc.sql.ResultSetResult
org.apache.openjpa.jdbc.sql.SelectImpl.SelectResult
- Enclosing class:
- SelectImpl
A 
Result implementation wrapped around this select.- 
Constructor SummaryConstructorsConstructorDescriptionSelectResult(Connection conn, Statement stmnt, ResultSet rs, DBDictionary dict) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanabsoluteInternal(int row) Throws an exception by default.protected booleancontainsAllInternal(Object[] objs, Joins joins) Return whether this result contains data for all the given ids or columns.protected booleancontainsInternal(Object obj, Joins joins) Return whether this result contains data for the given id or column.Perform a cross join on the given tables.protected intfindObject(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.Return correlated variable namegetEager(FieldMapping key) The eager result for the given key, or null if none.Select for this result.booleanisDirty()booleanisEmpty()Whether we have any joins.booleanisOuter()Whether this joins path results in outer joins.join(ForeignKey fk, boolean inverse, boolean toMany) Join the columns of the given foreign key.intjoinRelation(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.JoinSetjoins()load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) Load a pc object using the given store manager.voidMove joins that belong to subquery's parentnewJoins()Returns a no-op joins object by default.protected booleanAdvance this row.voidouterJoin(ForeignKey fk, boolean inverse, boolean toMany) Join the columns of the given foreign key.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.path()voidpushBack()Push back the last result.voidputEager(FieldMapping key, Object res) The eager result for the given key, or null if none.Set the correlated variable name being traversed into with the next join.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.PathJoinssetOuter(boolean outer) voidsetSelect(SelectImpl sel) Select for this result.setSubselect(String alias) Set the subquery alias.setVariable(String var) Set the variable name being traversed into with the next join.Methods inherited from class org.apache.openjpa.jdbc.sql.ResultSetResultclose, 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, wasNullMethods inherited from class org.apache.openjpa.jdbc.sql.AbstractResultabsolute, 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, startDataRequest
- 
Constructor Details- 
SelectResultConstructor.
 
- 
- 
Method Details- 
getSelectSelect for this result.
- 
setSelectSelect for this result.
- 
getEagerDescription copied from interface:ResultThe eager result for the given key, or null if none.- Specified by:
- getEagerin interface- Result
- Overrides:
- getEagerin class- AbstractResult
 
- 
putEagerDescription copied from interface:ResultThe eager result for the given key, or null if none.- Specified by:
- putEagerin interface- Result
- Overrides:
- putEagerin class- AbstractResult
 
- 
loadpublic Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) throws SQLException Description copied from interface:ResultLoad a pc object using the given store manager.- Specified by:
- loadin interface- Result
- Overrides:
- loadin class- AbstractResult
- Throws:
- SQLException
 
- 
newJoinsDescription copied from class:AbstractResultReturns a no-op joins object by default.- Specified by:
- newJoinsin interface- Result
- Overrides:
- newJoinsin class- AbstractResult
 
- 
containsInternalDescription copied from class:AbstractResultReturn whether this result contains data for the given id or column. The id or column has not beed passed throughAbstractResult.translate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins).- Overrides:
- containsInternalin class- ResultSetResult
 
- 
containsAllInternalDescription copied from class:AbstractResultReturn whether this result contains data for all the given ids or columns. The ids or columns have not been passed throughAbstractResult.translate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins). Delegates toAbstractResult.containsInternal(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins)by default.- Overrides:
- containsAllInternalin class- AbstractResult
- Throws:
- SQLException
 
- 
pushBackDescription copied from interface:ResultPush back the last result. In other words, just ignore the next call toResult.next(). After the first time this method is called, additional calls before a call toResult.next()orResult.absolute(int)should have no further affect.- Specified by:
- pushBackin interface- Result
- Overrides:
- pushBackin class- AbstractResult
- Throws:
- SQLException
 
- 
absoluteInternalDescription copied from class:AbstractResultThrows an exception by default.- Overrides:
- absoluteInternalin class- ResultSetResult
- Throws:
- SQLException
 
- 
nextInternalDescription copied from class:AbstractResultAdvance this row.- Overrides:
- nextInternalin class- ResultSetResult
- Throws:
- SQLException
 
- 
findObjectDescription copied from class:ResultSetResultReturn 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.- Overrides:
- findObjectin class- ResultSetResult
- Throws:
- SQLException
 
- 
isOuterpublic boolean isOuter()Description copied from interface:JoinsWhether this joins path results in outer joins.
- 
setOuterpublic org.apache.openjpa.jdbc.sql.PathJoins setOuter(boolean outer) 
- 
isDirtypublic boolean isDirty()
- 
path
- 
getPathStr
- 
joinspublic org.apache.openjpa.jdbc.sql.JoinSet joins()
- 
joinCountpublic int joinCount()
- 
nullJoinspublic void nullJoins()
- 
isEmptypublic boolean isEmpty()Description copied from interface:JoinsWhether we have any joins.
- 
crossJoinDescription copied from interface:JoinsPerform a cross join on the given tables.
- 
joinDescription copied from interface:JoinsJoin the columns of the given foreign key.
- 
outerJoinDescription copied from interface:JoinsJoin the columns of the given foreign key.
- 
joinRelationpublic Joins joinRelation(String name, ForeignKey fk, ClassMapping target, int subs, boolean inverse, boolean toMany) Description copied from interface:JoinsJoin the columns of the given foreign key, which represents a relation via the given field name.- Specified by:
- joinRelationin interface- Joins
 
- 
outerJoinRelationpublic Joins outerJoinRelation(String name, ForeignKey fk, ClassMapping target, int subs, boolean inverse, boolean toMany) Description copied from interface:JoinsJoin the columns of the given foreign key, which represents a relation via the given field name.- Specified by:
- outerJoinRelationin interface- Joins
 
- 
setVariableDescription copied from interface:JoinsSet the variable name being traversed into with the next join.- Specified by:
- setVariablein interface- Joins
 
- 
setSubselectDescription copied from interface:JoinsSet the subquery alias.- Specified by:
- setSubselectin interface- Joins
 
- 
setJoinContextDescription copied from interface:JoinsSet subquery context when traversing into the next join is in transition from parent context to subquery.- Specified by:
- setJoinContextin interface- Joins
 
- 
moveJoinsToParentpublic void moveJoinsToParent()Description copied from interface:JoinsMove joins that belong to subquery's parent- Specified by:
- moveJoinsToParentin interface- Joins
 
 
-