Uses of Class
org.datanucleus.store.rdbms.sql.SelectStatement
Packages that use SelectStatement
Package
Description
Provides mappings of all supported databases to aspects of the database that determines the SQL generation.
Package providing the querying mechanism for DataNucleus for RDBMS datastores.
Provides the mechanism of communicating with the database using JDBC.
This package provides classes defining the (SCO) backing store for various container classes (Collections/Maps/arrays) within DataNucleus.
Series of classes used to generate SQL statements.
-
Uses of SelectStatement in org.datanucleus.store.rdbms.adapter
Methods in org.datanucleus.store.rdbms.adapter with parameters of type SelectStatementModifier and TypeMethodDescriptionboolean
BaseDatastoreAdapter.validToSelectMappingInStatement
(SelectStatement stmt, JavaTypeMapping m) Method to return if it is valid to select the specified mapping for the specified statement for this datastore adapter.boolean
DatastoreAdapter.validToSelectMappingInStatement
(SelectStatement stmt, JavaTypeMapping m) Method to return if it is valid to select the specified mapping for the specified statement for this datastore adapter.boolean
DerbyAdapter.validToSelectMappingInStatement
(SelectStatement stmt, JavaTypeMapping m) Method to return if it is valid to select the specified mapping for the specified statement for this datastore adapter.boolean
SQLServerAdapter.validToSelectMappingInStatement
(SelectStatement stmt, JavaTypeMapping m) Method to return if it is valid to select the specified mapping for the specified statement for this datastore adapter. -
Uses of SelectStatement in org.datanucleus.store.rdbms.query
Methods in org.datanucleus.store.rdbms.query that return SelectStatementModifier and TypeMethodDescriptionstatic SelectStatement
RDBMSQueryUtils.getStatementForCandidates
(RDBMSStoreManager storeMgr, SQLStatement parentStmt, org.datanucleus.metadata.AbstractClassMetaData cmd, StatementClassMapping clsMapping, org.datanucleus.ExecutionContext ec, Class candidateCls, boolean subclasses, String result, String candidateAlias, String candidateTableGroupName, Set<String> options) Method to return a statement selecting the candidate table(s) required to cover all possible types for this candidates inheritance strategy.Methods in org.datanucleus.store.rdbms.query with parameters of type SelectStatementModifier and TypeMethodDescriptionprotected void
QueryToSQLMapper.compileGrouping
(SelectStatement stmt) Method to compile the grouping clause of the query into the SQLStatement.protected void
QueryToSQLMapper.compileHaving
(SelectStatement stmt) Method to compile the having clause of the query into the SQLStatement.protected void
QueryToSQLMapper.compileOrdering
(SelectStatement stmt) Method to compile the ordering clause of the query into the SQLStatement.protected void
QueryToSQLMapper.compileResult
(SelectStatement stmt) Method to compile the result clause of the query into the SQLStatement.protected StatementNewObjectMapping
QueryToSQLMapper.getStatementMappingForNewObjectExpression
(NewObjectExpression expr, SelectStatement stmt) Convenience method to convert a NewObjectExpression into a StatementNewObjectMapping.protected void
QueryToSQLMapper.selectFetchPlanForCandidate
(SelectStatement stmt, StatementClassMapping resultClassMapping, int maxFetchDepth) -
Uses of SelectStatement in org.datanucleus.store.rdbms.request
Methods in org.datanucleus.store.rdbms.request with parameters of type SelectStatementModifier and TypeMethodDescriptionprotected int
FetchRequest.processMembersOfClass
(SelectStatement sqlStatement, org.datanucleus.FetchPlanForClass fpClass, org.datanucleus.metadata.AbstractMemberMetaData[] mmds, org.datanucleus.metadata.AbstractMemberMetaData[] mmdsToStore, DatastoreClass table, SQLTable sqlTbl, StatementClassMapping mappingDef, Collection<MappingCallbacks> fetchCallbacks, org.datanucleus.ClassLoaderResolver clr, List<Integer> memberNumbersToStore) Method to process the supplied members of the class, adding to the SQLStatement as required.(package private) boolean
FetchRequest.processMemberToFetch
(org.datanucleus.metadata.AbstractMemberMetaData mmd, org.datanucleus.FetchPlanForClass fpClass, org.datanucleus.ClassLoaderResolver clr, Collection<MappingCallbacks> fetchCallbacks, SelectStatement sqlStmt, SQLTable sqlTbl, StatementClassMapping mappingDef, List<Integer> memberNumbersToStore) Method to process the specified member.(package private) boolean
FetchRequest.processMemberToStore
(org.datanucleus.metadata.AbstractMemberMetaData mmd, org.datanucleus.FetchPlanForClass fpClass, org.datanucleus.ClassLoaderResolver clr, Collection<MappingCallbacks> fetchCallbacks, SelectStatement sqlStmt, SQLTable sqlTbl, StatementClassMapping mappingDef, List<Integer> memberNumbersToStore) Method to process the specified member. -
Uses of SelectStatement in org.datanucleus.store.rdbms.scostore
Fields in org.datanucleus.store.rdbms.scostore declared as SelectStatementModifier and TypeFieldDescription(package private) SelectStatement
IteratorStatement.sqlStmt
The SQL Statement for the iterator.Methods in org.datanucleus.store.rdbms.scostore that return SelectStatementModifier and TypeMethodDescriptionIteratorStatement.getSelectStatement()
protected SelectStatement
FKMapStore.getSQLStatementForGet
(org.datanucleus.state.DNStateManager ownerSM) Method to return an SQLStatement for retrieving the value for a key.protected SelectStatement
JoinMapStore.getSQLStatementForGet
(org.datanucleus.state.DNStateManager ownerSM) Method to return an SQLStatement for retrieving the value for a key.protected SelectStatement
MapEntrySetStore.getSQLStatementForIterator
(org.datanucleus.state.DNStateManager ownerSM, org.datanucleus.FetchPlan fp, boolean addRestrictionOnOwner) Method to generate a SelectStatement for iterating through entries of the map.protected SelectStatement
MapKeySetStore.getSQLStatementForIterator
(org.datanucleus.state.DNStateManager ownerSM) Method to generate an SQLStatement for iterating through keys of the map.protected SelectStatement
MapValueCollectionStore.getSQLStatementForIterator
(org.datanucleus.state.DNStateManager ownerSM) Method to generate an SQLStatement for iterating through values of the map.Constructors in org.datanucleus.store.rdbms.scostore with parameters of type SelectStatementModifierConstructorDescriptionElementIteratorStatement
(org.datanucleus.store.types.scostore.Store store, SelectStatement stmt, StatementClassMapping elemClsMapping) IteratorStatement
(org.datanucleus.store.types.scostore.Store store, SelectStatement stmt) KeyValueIteratorStatement
(org.datanucleus.store.types.scostore.Store store, SelectStatement stmt, StatementClassMapping keyClsMapping, StatementClassMapping valueClsMapping) -
Uses of SelectStatement in org.datanucleus.store.rdbms.sql
Fields in org.datanucleus.store.rdbms.sql declared as SelectStatementFields in org.datanucleus.store.rdbms.sql with type parameters of type SelectStatementModifier and TypeFieldDescriptionprotected List
<SelectStatement> SelectStatement.unions
List of unioned SelectStatements (if any).Methods in org.datanucleus.store.rdbms.sql that return SelectStatementModifier and TypeMethodDescriptionInsertStatement.getSelectStatement()
protected SelectStatement
UnionStatementGenerator.getSelectStatementForCandidate
(String className, org.datanucleus.ExecutionContext ec) Convenience method to return the SelectStatement for a particular class.protected SelectStatement
UnionStatementGenerator.getSQLStatementForCandidateViaJoin
(String className) Convenience method to return the SQLStatement for a particular class selecting a join table.DiscriminatorStatementGenerator.getStatement
(org.datanucleus.ExecutionContext ec) Accessor for the SelectStatement.SelectStatementGenerator.getStatement
(org.datanucleus.ExecutionContext ec) Accessor for the statement.UnionStatementGenerator.getStatement
(org.datanucleus.ExecutionContext ec) Accessor for the SelectStatement for the candidate [+ subclasses].Methods in org.datanucleus.store.rdbms.sql that return types with arguments of type SelectStatementModifier and TypeMethodDescriptionSelectStatement.getUnions()
Accessor for the unioned statements.Methods in org.datanucleus.store.rdbms.sql with parameters of type SelectStatementModifier and TypeMethodDescriptionprivate void
UnionStatementGenerator.addTypeSelectForClass
(SelectStatement stmt, String className) Convenience method to add a SELECT of a dummy column accessible as "DN_TYPE" storing the class name.private static boolean
SQLStatementHelper.selectFetchPlanFieldsOfFKRelatedObject
(SelectStatement stmt, StatementClassMapping mappingDefinition, org.datanucleus.FetchPlan fetchPlan, SQLTable sourceSqlTbl, org.datanucleus.metadata.AbstractMemberMetaData mmd, org.datanucleus.ClassLoaderResolver clr, int maxFetchPlanLimit, JavaTypeMapping m, String tableGroupName, StatementMappingIndex stmtMapping, SQLTable sqlTbl, SQLJoin.JoinType inputJoinType) Convenience method to join to and select all required FP fields of a related object where linked via an FK at this side.static void
SQLStatementHelper.selectFetchPlanOfCandidateInStatement
(SelectStatement stmt, StatementClassMapping mappingDefinition, org.datanucleus.metadata.AbstractClassMetaData candidateCmd, org.datanucleus.FetchPlan fetchPlan, int maxFetchDepth) Method to select all fetch plan members for the candidate class.static void
SQLStatementHelper.selectFetchPlanOfSourceClassInStatement
(SelectStatement stmt, StatementClassMapping mappingDefinition, org.datanucleus.FetchPlan fetchPlan, SQLTable sourceSqlTbl, org.datanucleus.metadata.AbstractClassMetaData sourceCmd, int maxFetchDepth) Method to select all fetch plan members for the "source" class.static void
SQLStatementHelper.selectFetchPlanOfSourceClassInStatement
(SelectStatement stmt, StatementClassMapping mappingDefinition, org.datanucleus.FetchPlan fetchPlan, SQLTable sourceSqlTbl, org.datanucleus.metadata.AbstractClassMetaData sourceCmd, int maxFetchDepth, SQLJoin.JoinType inputJoinType) Method to select all fetch plan members for the "source" class.static void
SQLStatementHelper.selectIdentityOfCandidateInStatement
(SelectStatement stmt, StatementClassMapping mappingDefinition, org.datanucleus.metadata.AbstractClassMetaData candidateCmd) Method to select the identity for the candidate class.static void
SQLStatementHelper.selectMemberOfSourceInStatement
(SelectStatement stmt, StatementClassMapping mappingDefinition, org.datanucleus.FetchPlan fetchPlan, SQLTable sourceSqlTbl, org.datanucleus.metadata.AbstractMemberMetaData mmd, org.datanucleus.ClassLoaderResolver clr, int maxFetchPlanLimit, SQLJoin.JoinType inputJoinType) Method to select the specified member (field/property) of the source table in the passed SQL statement.void
InsertStatement.setSelectStatement
(SelectStatement selectStmt) void
SelectStatement.union
(SelectStatement stmt) Method to union this SQL statement with another SQL statement.