Package | Description |
---|---|
org.datanucleus.store.rdbms.query |
Package providing the querying mechanism for DataNucleus for RDBMS datastores.
|
org.datanucleus.store.rdbms.sql |
Series of classes used to generate SQL statements.
|
org.datanucleus.store.rdbms.sql.expression |
Series of expressions representing conditions in SQL statements.
|
org.datanucleus.store.rdbms.sql.method |
Support for invocation of Java methods, typically using SQL functions.
|
Modifier and Type | Method and Description |
---|---|
SQLStatement |
RDBMSQueryCompilation.StatementCompilation.getStatement() |
Modifier and Type | Method and Description |
---|---|
void |
RDBMSQueryCompilation.addStatement(SQLStatement stmt,
String sql,
boolean useInCount) |
static void |
BulkFetchHandler.applyParametersToStatement(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
RDBMSQueryCompilation datastoreCompilation,
SQLStatement sqlStmt,
Map parameters)
Convenience method to apply the passed parameters to the provided bulk-fetch statement.
|
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.
|
Constructor and Description |
---|
QueryToSQLMapper(SQLStatement stmt,
org.datanucleus.query.compiler.QueryCompilation compilation,
Map parameters,
StatementClassMapping resultDefForClass,
StatementResultMapping resultDef,
org.datanucleus.metadata.AbstractClassMetaData cmd,
boolean subclasses,
org.datanucleus.FetchPlan fetchPlan,
org.datanucleus.ExecutionContext ec,
org.datanucleus.util.Imports importsDefinition,
Set<String> options,
Map<String,Object> extensions)
Constructor.
|
StatementCompilation(SQLStatement stmt,
String sql,
boolean useInCount) |
Modifier and Type | Class and Description |
---|---|
class |
DeleteStatement
SQL DELETE Statement representation.
|
class |
InsertStatement
SQL INSERT Statement representation.
|
class |
SelectStatement
SQL SELECT Statement representation.
|
class |
UpdateStatement
SQL UPDATE Statement representation.
|
Modifier and Type | Field and Description |
---|---|
protected SQLStatement |
SQLStatement.parent
Parent statement, if this is a subquery SELECT.
|
protected SQLStatement |
AbstractSelectStatementGenerator.parentStmt
Parent statement.
|
protected SQLStatement |
SQLTable.stmt |
Modifier and Type | Method and Description |
---|---|
SQLStatement |
SQLStatement.getParentStatement() |
SQLStatement |
SQLTable.getSQLStatement() |
Modifier and Type | Method and Description |
---|---|
static SQLTable |
SQLStatementHelper.addJoinForOneToOneRelation(SQLStatement stmt,
JavaTypeMapping sourceMapping,
SQLTable sourceSqlTbl,
JavaTypeMapping targetMapping,
Table targetTable,
String targetAlias,
Object[] discrimValues,
String targetTablegroupName,
SQLJoin.JoinType joinType)
Convenience method to add a join across a 1-1 relation to the provided SQLStatement.
|
SQLText |
SQLText.append(SQLStatement stmt)
Append an SQLStatement.
|
String |
SQLTableNamer.getAliasForTable(SQLStatement stmt,
Table table,
String groupName)
Method to return the alias to use for the specified table.
|
String |
SQLTableTNamer.getAliasForTable(SQLStatement stmt,
Table table,
String groupName) |
String |
SQLTableAlphaNamer.getAliasForTable(SQLStatement stmt,
Table table,
String groupName) |
String |
SQLTableNameNamer.getAliasForTable(SQLStatement stmt,
Table table,
String groupName) |
static BooleanExpression |
SQLStatementHelper.getExpressionForDiscriminatorForClass(SQLStatement stmt,
String className,
org.datanucleus.metadata.DiscriminatorMetaData dismd,
JavaTypeMapping discriminatorMapping,
SQLTable discrimSqlTbl,
org.datanucleus.ClassLoaderResolver clr)
Convenience method to generate a BooleanExpression for the associated discriminator value for
the specified class.
|
static PreparedStatement |
SQLStatementHelper.getPreparedStatementForSQLStatement(SQLStatement sqlStmt,
org.datanucleus.ExecutionContext ec,
org.datanucleus.store.connection.ManagedConnection mconn,
String resultSetType,
String resultSetConcurrency)
Convenience method to return a PreparedStatement for an SQLStatement.
|
static SQLTable |
SQLStatementHelper.getSQLTableForMappingOfTable(SQLStatement stmt,
SQLTable sqlTbl,
JavaTypeMapping mapping)
Method to return the SQLTable where the specified mapping (in the same table group as the provided
SQLTable) is defined.
|
boolean |
SQLStatement.isChildStatementOf(SQLStatement stmt)
Convenience method to return if this statement is a child (inner) statement of the supplied
statement.
|
void |
DiscriminatorStatementGenerator.setParentStatement(SQLStatement stmt) |
void |
SelectStatementGenerator.setParentStatement(SQLStatement stmt)
Method to set the parent statement.
|
void |
UnionStatementGenerator.setParentStatement(SQLStatement stmt) |
Constructor and Description |
---|
SelectStatement(SQLStatement parentStmt,
RDBMSStoreManager rdbmsMgr,
Table table,
DatastoreIdentifier alias,
String tableGroupName)
Constructor for a SELECT statement, maybe as a subquery.
|
SelectStatement(SQLStatement parentStmt,
RDBMSStoreManager rdbmsMgr,
Table table,
DatastoreIdentifier alias,
String tableGroupName,
Map<String,Object> extensions)
Constructor for a SELECT statement, maybe as a subquery.
|
SQLStatement(SQLStatement parentStmt,
RDBMSStoreManager rdbmsMgr,
Table table,
DatastoreIdentifier alias,
String tableGroupName,
Map<String,Object> extensions)
Constructor for an SQL statement that is a subquery of another statement.
|
Modifier and Type | Field and Description |
---|---|
protected SQLStatement |
SQLExpression.stmt
The SQL statement that this is part of.
|
Modifier and Type | Method and Description |
---|---|
SQLStatement |
SQLExpression.getSQLStatement() |
SQLStatement |
SubqueryExpressionComponent.getSubqueryStatement()
Accessor for the subquery.
|
SQLStatement |
TemporalSubqueryExpression.getSubqueryStatement() |
SQLStatement |
StringSubqueryExpression.getSubqueryStatement() |
SQLStatement |
NumericSubqueryExpression.getSubqueryStatement() |
SQLStatement |
SubqueryExpression.getSubqueryStatement() |
Modifier and Type | Method and Description |
---|---|
static SQLExpression |
ExpressionUtils.getLiteralForOne(SQLStatement stmt)
Convenience accessor for a literal for the number 1.
|
SQLExpression |
SQLExpressionFactory.invokeMethod(SQLStatement stmt,
String className,
String methodName,
SQLExpression expr,
List args)
Accessor for the result of an SQLMethod call on the supplied expression with the supplied args.
|
SQLExpression |
SQLExpressionFactory.newExpression(SQLStatement stmt,
SQLTable sqlTbl,
JavaTypeMapping mapping)
Factory for an expression representing a mapping on a table.
|
SQLExpression |
SQLExpressionFactory.newExpression(SQLStatement stmt,
SQLTable sqlTbl,
JavaTypeMapping mapping,
JavaTypeMapping parentMapping)
Factory for an expression representing a mapping on a table.
|
SQLExpression |
SQLExpressionFactory.newLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value)
Factory for a literal representing a value.
|
SQLExpression |
SQLExpressionFactory.newLiteralParameter(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String paramName)
Factory for a literal as an input parameter.
|
Constructor and Description |
---|
AggregateNumericExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String sql) |
AggregateNumericExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args) |
AggregateStringExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args) |
AggregateTemporalExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args) |
ArrayExpression(SQLStatement stmt,
JavaTypeMapping mapping,
SQLExpression[] exprs)
Constructor for an SQL expression for an array expression specified in the query.
|
ArrayExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
ArrayLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for an array literal with a value.
|
BinaryExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List<SQLExpression> args,
List types) |
BinaryExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
BooleanExpression(SQLStatement stmt,
JavaTypeMapping mapping)
Constructor for a boolean expression for the specified mapping of the table.
|
BooleanExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String sql)
Constructor for a boolean expression for the specified mapping using the specified SQL text.
|
BooleanExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for a boolean expression for the specified mapping of the table.
|
BooleanLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Boolean value)
Creates a boolean literal with the specified value, using the provided mapping.
|
BooleanLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Creates a boolean literal with the specified value, using the provided mapping.
|
BooleanSubqueryExpression(SQLStatement stmt,
String keyword,
SQLStatement subStmt) |
ByteExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
ByteLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Creates a byte literal.
|
CharacterExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args)
Generates statement as e.g.
|
CharacterExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args,
List types)
Generates statement as e.g.
|
CharacterExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
CharacterLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a character literal with a value.
|
CollectionExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
CollectionLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a collection literal with a value.
|
ColumnExpression(SQLStatement stmt,
Object value)
Constructor for an SQL expression for a literal value.
|
ColumnExpression(SQLStatement stmt,
SQLTable table,
Column col)
Constructor for an SQL expression for a column.
|
ColumnExpression(SQLStatement stmt,
String parameterName,
JavaTypeMapping mapping,
Object value,
int colNumber)
Constructor for an SQL expression for a parameter.
|
DelegatedExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping) |
EnumExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an expression for an enum field/property.
|
EnumLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for an Enum literal with a value.
|
FloatingPointLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a floating point literal with a value.
|
IntegerLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for an integer literal with a value.
|
MapExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor.
|
MapKeyLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value)
Constructor.
|
MapLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a map literal with a value.
|
MapValueLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value)
Constructor.
|
NewObjectExpression(SQLStatement stmt,
Class cls,
List<SQLExpression> args) |
NullLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a null literal with a value (i.e null!).
|
NumericExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String sql)
Constructor for a numeric expression for the specified mapping using the specified SQL text.
|
NumericExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args)
Generates statement as "FUNCTION_NAME(arg [,argN])".
|
NumericExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args,
List types)
Generates statement as "FUNCTION_NAME(arg [AS type] [,argN [AS typeN]])".
|
NumericExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for a numeric expression for the mapping in the specified table.
|
NumericSubqueryExpression(SQLStatement stmt,
SQLStatement subStmt) |
ObjectExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args)
Generates statement as "FUNCTION_NAME(arg [,argN])".
|
ObjectExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args,
List types)
Generates statement as "FUNCTION_NAME(arg [AS type] [,argN [AS typeN]])".
|
ObjectExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
ObjectLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for an Object literal with a value.
|
OptionalExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping) |
OptionalLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName) |
ParameterLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for an integer literal with a value.
|
ResultAliasExpression(SQLStatement stmt,
String aliasName) |
SingleCollectionExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping) |
SingleCollectionLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName) |
SQLExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List<SQLExpression> args,
List types)
Generates statement as "FUNCTION_NAME(arg [AS type] [,argN [AS typeN]])".
|
SQLExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
StringExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args)
Generates statement as e.g.
|
StringExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args,
List types)
Generates statement as e.g.
|
StringExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
StringLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a String literal with a value.
|
StringNumericExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an expression for a field/property that can be represented as String or numeric.
|
StringSubqueryExpression(SQLStatement stmt,
SQLStatement subStmt) |
StringTemporalExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an expression for a field/property represented as String/Temporal.
|
SubqueryExpression(SQLStatement stmt,
SQLStatement subStmt) |
TemporalExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args)
Generates statement as "FUNCTION_NAME(arg [,argN])".
|
TemporalExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List args,
List types)
Generates statement as "FUNCTION_NAME(arg [AS type] [,argN [AS typeN]])".
|
TemporalExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
TemporalLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a temporal literal with a value.
|
TemporalSubqueryExpression(SQLStatement stmt,
SQLStatement subStmt) |
TypeConverterExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping) |
TypeConverterLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName) |
TypeConverterMultiExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping) |
TypeConverterMultiLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName) |
UnboundExpression(SQLStatement stmt,
String variableName)
Constructor for an SQL expression for an unbound variable.
|
Copyright © 2019. All rights reserved.