Uses of Class
org.datanucleus.store.rdbms.sql.SelectStatement
-
Packages that use SelectStatement Package Description org.datanucleus.store.rdbms.adapter Provides mappings of all supported databases to aspects of the database that determines the SQL generation.org.datanucleus.store.rdbms.query Package providing the querying mechanism for DataNucleus for RDBMS datastores.org.datanucleus.store.rdbms.request Provides the mechanism of communicating with the database using JDBC.org.datanucleus.store.rdbms.scostore This package provides classes defining the (SCO) backing store for various container classes (Collections/Maps/arrays) within DataNucleus.org.datanucleus.store.rdbms.sql 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 SelectStatement Modifier and Type Method Description boolean
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
OracleAdapter. 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 SelectStatement Modifier and Type Method Description static 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 SelectStatement Modifier and Type Method Description protected 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 SelectStatement Modifier and Type Method Description protected 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 fetchCallbacks, org.datanucleus.ClassLoaderResolver clr, List<Integer> memberNumbersToStore)
Method to process the supplied members of the class, adding to the SQLStatement as required. -
Uses of SelectStatement in org.datanucleus.store.rdbms.scostore
Methods in org.datanucleus.store.rdbms.scostore that return SelectStatement Modifier and Type Method Description SelectStatement
IteratorStatement. 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.Constructors in org.datanucleus.store.rdbms.scostore with parameters of type SelectStatement Constructor Description ElementIteratorStatement(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 with type parameters of type SelectStatement Modifier and Type Field Description protected List<SelectStatement>
SelectStatement. unions
List of unioned SelectStatements (if any).Methods in org.datanucleus.store.rdbms.sql that return SelectStatement Modifier and Type Method Description SelectStatement
InsertStatement. 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.SelectStatement
DiscriminatorStatementGenerator. getStatement(org.datanucleus.ExecutionContext ec)
Accessor for the SelectStatement.SelectStatement
SelectStatementGenerator. getStatement(org.datanucleus.ExecutionContext ec)
Accessor for the statement.SelectStatement
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 SelectStatement Modifier and Type Method Description List<SelectStatement>
SelectStatement. getUnions()
Accessor for the unioned statements.Methods in org.datanucleus.store.rdbms.sql with parameters of type SelectStatement Modifier and Type Method Description 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.
-