Uses of Class
org.eclipse.persistence.queries.ReadQuery
-
-
Uses of ReadQuery in org.eclipse.persistence.exceptions
Methods in org.eclipse.persistence.exceptions with parameters of type ReadQuery Modifier and Type Method Description static QueryExceptionQueryException. cannotConformAndCacheQueryResults(ReadQuery query)static QueryExceptionQueryException. clearQueryResultsNotSupported(ReadQuery query) -
Uses of ReadQuery in org.eclipse.persistence.expressions
Methods in org.eclipse.persistence.expressions with parameters of type ReadQuery Modifier and Type Method Description List<DatabaseField>Expression. getSelectionFields(ReadQuery query) -
Uses of ReadQuery in org.eclipse.persistence.internal.databaseaccess
Methods in org.eclipse.persistence.internal.databaseaccess with parameters of type ReadQuery Modifier and Type Method Description booleanDatabasePlatform. shouldPrintInnerJoinInWhereClause(ReadQuery query)This allows which clause inner joins are printed into in SQL generation. -
Uses of ReadQuery in org.eclipse.persistence.internal.expressions
Fields in org.eclipse.persistence.internal.expressions declared as ReadQuery Modifier and Type Field Description protected ReadQuerySQLSelectStatement. queryQuery this statement is associated to (used for SQL query options).Methods in org.eclipse.persistence.internal.expressions that return ReadQuery Modifier and Type Method Description ReadQuerySQLSelectStatement. getQuery()INTERNAL: Query held as it may store properties needed to generate the SQLMethods in org.eclipse.persistence.internal.expressions with parameters of type ReadQuery Modifier and Type Method Description List<DatabaseField>FunctionExpression. getSelectionFields(ReadQuery query)INTERNAL:List<DatabaseField>MapEntryExpression. getSelectionFields(ReadQuery query)INTERNAL:List<DatabaseField>ObjectExpression. getSelectionFields(ReadQuery query)INTERNAL:List<DatabaseField>QueryKeyExpression. getSelectionFields(ReadQuery query)INTERNAL:voidSQLSelectStatement. setQuery(ReadQuery query)Query held as it may store properties needed to generate the SQL -
Uses of ReadQuery in org.eclipse.persistence.internal.identitymaps
Methods in org.eclipse.persistence.internal.identitymaps with parameters of type ReadQuery Modifier and Type Method Description voidIdentityMapManager. clearQueryCache(ReadQuery query)Remove the cache key related to a query.ObjectIdentityMapManager. getQueryResult(ReadQuery query, List parameters, boolean shouldCheckExpiry)Get the cached results associated with a query.voidIdentityMapManager. putQueryResult(ReadQuery query, List parameters, Object results)Set the results for a query. -
Uses of ReadQuery in org.eclipse.persistence.internal.indirection
Fields in org.eclipse.persistence.internal.indirection declared as ReadQuery Modifier and Type Field Description protected ReadQueryQueryBasedValueHolder. queryStores the query to be executed.Methods in org.eclipse.persistence.internal.indirection that return ReadQuery Modifier and Type Method Description ReadQueryQueryBasedValueHolder. getQuery()Return the query.Methods in org.eclipse.persistence.internal.indirection with parameters of type ReadQuery Modifier and Type Method Description protected voidQueryBasedValueHolder. setQuery(ReadQuery theQuery)Set the query.ObjectBasicIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)INTERNAL: Return the value to be stored in the object's attribute.ObjectContainerIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)INTERNAL: Return the value to be stored in the object's attribute.abstract ObjectIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)INTERNAL: Return the value to be stored in the object's attribute.ObjectNoIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)INTERNAL: Return the value to be stored in the object's attribute.ObjectProxyIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)INTERNAL: Return the value to be stored in the object's attribute.ObjectTransparentIndirectionPolicy. valueFromBatchQuery(ReadQuery batchQuery, AbstractRecord row, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)INTERNAL: Return the value to be stored in the object's attribute.ObjectBasicIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, Object sourceObject, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.ObjectBasicIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.ObjectContainerIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.abstract ObjectIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, Object sourceObject, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.abstract ObjectIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.ObjectNoIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, Object sourceObject, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.ObjectNoIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.ObjectProxyIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.ObjectTransparentIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, Object object, AbstractSession session)INTERNAL: A combination of valueFromQuery and valueFromRow(object).ObjectTransparentIndirectionPolicy. valueFromQuery(ReadQuery query, AbstractRecord row, AbstractSession session)INTERNAL: Return the value to be stored in the object's attribute.Constructors in org.eclipse.persistence.internal.indirection with parameters of type ReadQuery Constructor Description BatchValueHolder(ReadQuery query, AbstractRecord row, ForeignReferenceMapping mapping, ObjectLevelReadQuery originalQuery, CacheKey parentCacheKey)Initialize the query-based value holder.EISOneToManyQueryBasedValueHolder(EISOneToManyMapping mapping, ReadQuery query, AbstractRecord sourceRow, AbstractSession session)QueryBasedValueHolder(ReadQuery query, Object sourceObject, AbstractRecord row, AbstractSession session)Initialize the query-based value holder.QueryBasedValueHolder(ReadQuery query, AbstractRecord row, AbstractSession session)Initialize the query-based value holder. -
Uses of ReadQuery in org.eclipse.persistence.internal.queries
Methods in org.eclipse.persistence.internal.queries that return ReadQuery Modifier and Type Method Description ReadQueryContainerPolicy. buildSelectionQueryForDirectCollectionMapping()INTERNAL: This Certain key mappings favor different types of selection query.ReadQueryMappedKeyMapContainerPolicy. buildSelectionQueryForDirectCollectionMapping()INTERNAL: Certain key mappings favor different types of selection query.Methods in org.eclipse.persistence.internal.queries with parameters of type ReadQuery Modifier and Type Method Description voidContainerPolicy. addAdditionalFieldsToQuery(ReadQuery selectionQuery, Expression baseExpression)INTERNAL: Called when the selection query is being initialized to add any required additional fields to the query.voidMappedKeyMapContainerPolicy. addAdditionalFieldsToQuery(ReadQuery selectionQuery, Expression baseExpression)INTERNAL: Called when the selection query is being initialize to add the fields for the key to the queryvoidOrderedListContainerPolicy. addAdditionalFieldsToQuery(ReadQuery selectionQuery, Expression baseExpression)INTERNAL: Add the index field to the query.protected booleanOrderedListContainerPolicy. addAll(List elements, Object container, AbstractSession session, List<AbstractRecord> dbRows, ReadQuery query, CacheKey parentCacheKey)ContainerPolicyContainerPolicy. clone(ReadQuery query) -
Uses of ReadQuery in org.eclipse.persistence.internal.sessions
Fields in org.eclipse.persistence.internal.sessions with type parameters of type ReadQuery Modifier and Type Field Description protected Map<ReadQuery,ReadQuery>UnitOfWorkImpl. batchQueriesWhen in transaction batch read objects must use query local to the unit of work.protected Map<ReadQuery,ReadQuery>UnitOfWorkImpl. batchQueriesWhen in transaction batch read objects must use query local to the unit of work.Methods in org.eclipse.persistence.internal.sessions that return types with arguments of type ReadQuery Modifier and Type Method Description Map<ReadQuery,ReadQuery>UnitOfWorkImpl. getBatchQueries()INTERNAL: When in transaction batch read objects must use query local to the unit of work.Map<ReadQuery,ReadQuery>UnitOfWorkImpl. getBatchQueries()INTERNAL: When in transaction batch read objects must use query local to the unit of work.Methods in org.eclipse.persistence.internal.sessions with parameters of type ReadQuery Modifier and Type Method Description voidIdentityMapAccessor. clearQueryCache(ReadQuery query)ADVANCED: Clear the query class associated with the passed-in read queryvoidUnitOfWorkIdentityMapAccessor. clearQueryCache(ReadQuery query)ADVANCED: Clear the query class associated with the passed-in read queryObjectIdentityMapAccessor. getQueryResult(ReadQuery query, List parameters, boolean checkExpiry)INTERNAL: Get the cached results associated with a query.ObjectIsolatedClientSessionIdentityMapAccessor. getQueryResult(ReadQuery query, List parameters, boolean checkExpiry)INTERNAL: Get the cached results associated with a query.ObjectUnitOfWorkIdentityMapAccessor. getQueryResult(ReadQuery query, List parameters, boolean checkExpiry)INTERNAL: Get the cached results associated with a query.voidIdentityMapAccessor. putQueryResult(ReadQuery query, List parameters, Object results)INTERNAL: Set the results for a query.voidIsolatedClientSessionIdentityMapAccessor. putQueryResult(ReadQuery query, List parameters, Object results)INTERNAL: Set the results for a query.voidUnitOfWorkIdentityMapAccessor. putQueryResult(ReadQuery query, List parameters, Object results)INTERNAL: Set the results for a query.Method parameters in org.eclipse.persistence.internal.sessions with type arguments of type ReadQuery Modifier and Type Method Description voidUnitOfWorkImpl. setBatchQueries(Map<ReadQuery,ReadQuery> batchQueries)INTERNAL: When in transaction batch read objects must use query local to the unit of work.voidUnitOfWorkImpl. setBatchQueries(Map<ReadQuery,ReadQuery> batchQueries)INTERNAL: When in transaction batch read objects must use query local to the unit of work. -
Uses of ReadQuery in org.eclipse.persistence.internal.sessions.remote
Methods in org.eclipse.persistence.internal.sessions.remote with parameters of type ReadQuery Modifier and Type Method Description abstract VectorRemoteConnection. cursoredStreamNextPage(RemoteCursoredStream remoteCursoredStream, ReadQuery query, DistributedSession session, int pageSize)Retrieve next page size of objects from the remote cursored streamabstract ObjectRemoteConnection. scrollableCursorNextObject(ObjID remoteScrollableCursorOid, ReadQuery query, DistributedSession session)Retrieve next object from the remote scrollable cursorabstract ObjectRemoteConnection. scrollableCursorPreviousObject(ObjID remoteScrollableCursorOid, ReadQuery query, DistributedSession session)Retrieve previous object from the remote scrollable cursor -
Uses of ReadQuery in org.eclipse.persistence.mappings
Fields in org.eclipse.persistence.mappings declared as ReadQuery Modifier and Type Field Description protected ReadQueryRelationTableMechanism. lockRelationTableQueryprotected ReadQueryForeignReferenceMapping. selectionQueryThis query is used to read referenced objects for this mapping.Methods in org.eclipse.persistence.mappings that return ReadQuery Modifier and Type Method Description ReadQueryAggregateObjectMapping. buildSelectionQueryForDirectCollectionKeyMapping(ContainerPolicy containerPolicy)INTERNAL: Certain key mappings favor different types of selection query.ReadQueryOneToOneMapping. buildSelectionQueryForDirectCollectionKeyMapping(ContainerPolicy containerPolicy)INTERNAL: Certain key mappings favor different types of selection query.protected ReadQueryForeignReferenceMapping. getExtendPessimisticLockScopeDedicatedQuery(AbstractSession session, short lockMode)INTERNAL: Should be overridden by subclass that allows setting extendPessimisticLockScope to DEDICATED_QUERY.protected ReadQueryManyToManyMapping. getExtendPessimisticLockScopeDedicatedQuery(AbstractSession session, short lockMode)INTERNAL: Should be overridden by subclass that allows setting extendPessimisticLockScope to DEDICATED_QUERY.protected ReadQueryOneToOneMapping. getExtendPessimisticLockScopeDedicatedQuery(AbstractSession session, short lockMode)INTERNAL: Should be overridden by subclass that allows setting extendPessimisticLockScope to DEDICATED_QUERY.ReadQueryForeignReferenceMapping. getSelectionQuery()INTERNAL: Returns the read query associated with the mapping.protected ReadQueryForeignReferenceMapping. prepareHistoricalQuery(ReadQuery targetQuery, ObjectBuildingQuery sourceQuery, AbstractSession executionSession)INTERNAL: Allow for the mapping to perform any historical query additions.protected ReadQueryManyToManyMapping. prepareHistoricalQuery(ReadQuery targetQuery, ObjectBuildingQuery sourceQuery, AbstractSession executionSession)INTERNAL: Append the temporal selection to the query selection criteria.ReadQueryDirectCollectionMapping. prepareNestedBatchQuery(ObjectLevelReadQuery query)INTERNAL: Clone and prepare the selection query as a nested batch read query.ReadQueryForeignReferenceMapping. prepareNestedBatchQuery(ObjectLevelReadQuery query)INTERNAL: Clone and prepare the selection query as a nested batch read query.Methods in org.eclipse.persistence.mappings with parameters of type ReadQuery Modifier and Type Method Description voidAggregateObjectMapping. addAdditionalFieldsToQuery(ReadQuery selectionQuery, Expression baseExpression)INTERNAL: Used when initializing queries for mappings that use a Map Called when the selection query is being initialized to add the fields for the map key to the queryvoidOneToOneMapping. addAdditionalFieldsToQuery(ReadQuery selectionQuery, Expression baseExpression)INTERNAL: Used when initializing queries for mappings that use a Map.protected ObjectForeignReferenceMapping. checkCacheForBatchKey(AbstractRecord sourceRow, Object foreignKey, Map batchObjects, ReadQuery batchQuery, ObjectLevelReadQuery originalQuery, AbstractSession session)INTERNAL: Check if the target object is in the cache if possible based on the source row.protected ObjectOneToOneMapping. checkCacheForBatchKey(AbstractRecord sourceRow, Object foreignKey, Map batchObjects, ReadQuery batchQuery, ObjectLevelReadQuery originalQuery, AbstractSession session)INTERNAL: Check if the target object is in the cache if possible based on the target key value.ObjectCollectionMapping. extractResultFromBatchQuery(ReadQuery batchQuery, CacheKey parentCacheKey, AbstractRecord sourceRow, AbstractSession session, ObjectLevelReadQuery originalQuery)INTERNAL: Extract the value from the batch optimized query, this should be supported by most query types.ObjectForeignReferenceMapping. extractResultFromBatchQuery(ReadQuery batchQuery, CacheKey parentCacheKey, AbstractRecord sourceRow, AbstractSession session, ObjectLevelReadQuery originalQuery)INTERNAL: Extract the value from the batch optimized query, this should be supported by most query types.protected ExpressionCollectionMapping. getAdditionalFieldsBaseExpression(ReadQuery query)INTERNAL: Return the base expression to use for adding fields to the query.protected ExpressionDirectCollectionMapping. getAdditionalFieldsBaseExpression(ReadQuery query)INTERNAL: Return the base expression to use for adding fields to the query.protected ExpressionManyToManyMapping. getAdditionalFieldsBaseExpression(ReadQuery query)INTERNAL: Return the base expression to use for adding fields to the query.protected voidAggregateCollectionMapping. postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query)INTERNAL: Allow the mapping the do any further batch preparation.protected voidCollectionMapping. postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query)INTERNAL: Add additional fieldsprotected voidForeignReferenceMapping. postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query)INTERNAL: Allow the mapping the do any further batch preparation.protected voidManyToManyMapping. postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query)INTERNAL: Add additional fields and check for history.protected voidOneToOneMapping. postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query)INTERNAL: Allow the mapping the do any further batch preparation.voidRelationTableMechanism. postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query)INTERNAL: Add the addition join fields to the batch query.protected voidUnidirectionalOneToManyMapping. postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query)INTERNAL: Add additional fieldsprotected ReadQueryForeignReferenceMapping. prepareHistoricalQuery(ReadQuery targetQuery, ObjectBuildingQuery sourceQuery, AbstractSession executionSession)INTERNAL: Allow for the mapping to perform any historical query additions.protected ReadQueryManyToManyMapping. prepareHistoricalQuery(ReadQuery targetQuery, ObjectBuildingQuery sourceQuery, AbstractSession executionSession)INTERNAL: Append the temporal selection to the query selection criteria.voidForeignReferenceMapping. setCustomSelectionQuery(ReadQuery query)PUBLIC: Relationship mappings creates a read query to read reference objects.protected voidForeignReferenceMapping. setSelectionQuery(ReadQuery aQuery)Sets the query -
Uses of ReadQuery in org.eclipse.persistence.mappings.foundation
Methods in org.eclipse.persistence.mappings.foundation that return ReadQuery Modifier and Type Method Description ReadQueryAbstractDirectMapping. buildSelectionQueryForDirectCollectionKeyMapping(ContainerPolicy containerPolicy)INTERNAL: Certain key mappings favor different types of selection query.ReadQueryMapKeyMapping. buildSelectionQueryForDirectCollectionKeyMapping(ContainerPolicy containerPolicy)INTERNAL: Depending on the MapKeyMapping, a different selection query may be required to retrieve the map when the map is based on a DirectCollectionMappingMethods in org.eclipse.persistence.mappings.foundation with parameters of type ReadQuery Modifier and Type Method Description voidAbstractDirectMapping. addAdditionalFieldsToQuery(ReadQuery selectionQuery, Expression baseExpression)INTERNAL: Used when initializing queries for mappings that use a Map.voidMapKeyMapping. addAdditionalFieldsToQuery(ReadQuery selectionQuery, Expression baseExpression)INTERNAL: Used when initializing queries for mappings that use a Map Called when the selection query is being initialized to add the fields for the map key to the query -
Uses of ReadQuery in org.eclipse.persistence.queries
Subclasses of ReadQuery in org.eclipse.persistence.queries Modifier and Type Class Description classDataReadQueryPurpose: Concrete class to perform read using raw SQL.classDirectReadQueryPurpose: Concrete class to perform a direct read.classObjectBuildingQueryPurpose: Abstract class for all read queries that build objects and potentially manipulate the TopLink cache.classObjectLevelReadQueryPurpose: Abstract class for all read queries using objects.classReadAllQueryPurpose: Concrete class for all read queries involving a collection of objects.classReadObjectQueryPurpose: Concrete class for all read queries involving a single object.classReportQueryPurpose: Query for information about a set of objects instead of the objects themselves.classResultSetMappingQueryPurpose: Concrete class to perform read using raw SQL and the SQLResultSetMapping.classValueReadQueryPurpose: Concrete class to perform a read of a single data value.Fields in org.eclipse.persistence.queries declared as ReadQuery Modifier and Type Field Description ReadQueryCursor. queryRead query that initialize the stream.protected ReadQueryCursorPolicy. queryFields in org.eclipse.persistence.queries with type parameters of type ReadQuery Modifier and Type Field Description protected Map<DatabaseMapping,ReadQuery>BatchFetchPolicy. mappingQueriesPERF: Used internally to store the prepared mapping queries.Methods in org.eclipse.persistence.queries that return ReadQuery Modifier and Type Method Description ReadQueryCursor. getQuery()INTERNAL: Return the query associated with the stream.ReadQueryCursorPolicy. getQuery()INTERNAL: Return the query.Methods in org.eclipse.persistence.queries that return types with arguments of type ReadQuery Modifier and Type Method Description Map<DatabaseMapping,ReadQuery>BatchFetchPolicy. getMappingQueries()INTERNAL: PERF: Return the internally stored prepared mapping queries.Methods in org.eclipse.persistence.queries with parameters of type ReadQuery Modifier and Type Method Description ContainerPolicyCursorPolicy. clone(ReadQuery query)INTERNAL:voidCursorPolicy. setQuery(ReadQuery query)INTERNAL: Set the query.Method parameters in org.eclipse.persistence.queries with type arguments of type ReadQuery Modifier and Type Method Description voidBatchFetchPolicy. setMappingQueries(Map<DatabaseMapping,ReadQuery> mappingQueries)INTERNAL: PERF: Set the internally stored prepared mapping queries.Constructors in org.eclipse.persistence.queries with parameters of type ReadQuery Constructor Description CursoredStreamPolicy(ReadQuery query, int pageSize)set the initial read size to match the page sizeCursoredStreamPolicy(ReadQuery query, int initialReadSize, int pageSize)CursoredStreamPolicy(ReadQuery query, int initialReadSize, int pageSize, ValueReadQuery sizeQuery)CursorPolicy(ReadQuery query, int pageSize)INTERNAL:ScrollableCursorPolicy(ReadQuery query, int pageSize)INTERNAL: Create a cursor policy with the pagesize. -
Uses of ReadQuery in org.eclipse.persistence.sessions
Methods in org.eclipse.persistence.sessions with parameters of type ReadQuery Modifier and Type Method Description voidIdentityMapAccessor. clearQueryCache(ReadQuery query)ADVANCED: Clear the query class associated with the passed-in read query. -
Uses of ReadQuery in org.eclipse.persistence.sessions.remote.rmi
Methods in org.eclipse.persistence.sessions.remote.rmi with parameters of type ReadQuery Modifier and Type Method Description VectorRMIConnection. cursoredStreamNextPage(RemoteCursoredStream remoteCursoredStream, ReadQuery query, DistributedSession session, int pageSize)Retrieve next page size of objects from the remote cursored streamObjectRMIConnection. scrollableCursorNextObject(ObjID remoteScrollableCursorOid, ReadQuery query, DistributedSession session)Retrieve next object from the remote scrollable cursorObjectRMIConnection. scrollableCursorPreviousObject(ObjID remoteScrollableCursorOid, ReadQuery query, DistributedSession session)Retrieve previous object from the remote scrollable cursor
-