Class RDBMSQueryCompilation
java.lang.Object
org.datanucleus.store.rdbms.query.RDBMSQueryCompilation
Datastore-specific (RDBMS) compilation information for a java query.
Can represent a single SQL statement, or can represent multiple SQL statements all with the same results and parameters.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionMap of input parameter name keyed by its position.(package private) List
<SQLStatementParameter> Input parameter definitions, in the order used in the SQL.(package private) boolean
(package private) StatementResultMapping
Result mappings when the result is not for a candidate (can be null).(package private) StatementClassMapping
Result mappings when the result is for a candidate (can be null).(package private) Map
<String, IteratorStatement> Map of statements to get SCO containers that are in the fetch plan (bulk fetch).(package private) List
<RDBMSQueryCompilation.StatementCompilation> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStatement
(SQLStatement stmt, String sql, boolean useInCount) void
int
getSQL()
Convenience accessor for the SQL to invoke, when we only have 1 statement associated with this compilation.boolean
void
setParameterNameByPosition
(Map<Integer, String> paramNameByPos) void
setPrecompilable
(boolean precompilable) void
void
void
setSCOIteratorStatement
(String memberName, IteratorStatement iterStmt) void
-
Field Details
-
statementCompilations
List<RDBMSQueryCompilation.StatementCompilation> statementCompilations -
inputParameters
List<SQLStatementParameter> inputParametersInput parameter definitions, in the order used in the SQL. -
inputParameterNameByPosition
Map of input parameter name keyed by its position. Only for SELECT queries. -
resultsDefinitionForClass
StatementClassMapping resultsDefinitionForClassResult mappings when the result is for a candidate (can be null). Only for SELECT queries. -
resultsDefinition
StatementResultMapping resultsDefinitionResult mappings when the result is not for a candidate (can be null). Only for SELECT queries. -
scoIteratorStatementByMemberName
Map<String,IteratorStatement> scoIteratorStatementByMemberNameMap of statements to get SCO containers that are in the fetch plan (bulk fetch). Only for SELECT queries. -
precompilable
boolean precompilable
-
-
Constructor Details
-
RDBMSQueryCompilation
public RDBMSQueryCompilation()
-
-
Method Details
-
getNumberOfStatements
public int getNumberOfStatements() -
clearStatements
public void clearStatements() -
addStatement
-
getStatementCompilations
-
getSQL
Convenience accessor for the SQL to invoke, when we only have 1 statement associated with this compilation. Use getStatementCompilations to get the SQLs when we have multiple statements.- Returns:
- The SQL to be invoked
-
setPrecompilable
public void setPrecompilable(boolean precompilable) -
isPrecompilable
public boolean isPrecompilable() -
setResultDefinitionForClass
-
getResultDefinitionForClass
-
setResultDefinition
-
getResultDefinition
-
setStatementParameters
-
getStatementParameters
-
setParameterNameByPosition
-
getParameterNameByPosition
-
setSCOIteratorStatement
-
getSCOIteratorStatements
-