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.method |
Support for invocation of Java methods, typically using SQL functions.
|
Modifier and Type | Method and Description |
---|---|
SQLJoin.JoinType |
QueryToSQLMapper.getRequiredJoinTypeForAlias(String alias)
Convenience method to return the required join type for the specified alias.
|
Modifier and Type | Method and Description |
---|---|
SQLJoin.JoinType |
SQLTableGroup.getJoinType() |
static SQLJoin.JoinType |
SQLJoin.getJoinTypeForJoinExpressionType(org.datanucleus.query.expression.JoinExpression.JoinType ejt) |
static SQLJoin.JoinType |
SQLStatementHelper.getJoinTypeForOneToOneRelationJoin(JavaTypeMapping sourceMapping,
SQLTable sourceSqlTbl,
SQLJoin.JoinType joinType)
Convenience method to return the join type to use for the specified 1-1 relation.
|
SQLJoin.JoinType |
SQLStatement.getJoinTypeForTable(SQLTable sqlTbl)
Accessor for the type of join used for the specified table.
|
SQLJoin.JoinType |
SQLJoin.getType() |
static SQLJoin.JoinType |
SQLJoin.JoinType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SQLJoin.JoinType[] |
SQLJoin.JoinType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SQLStatement.addJoin(SQLJoin.JoinType joinType,
SQLTable sourceTable,
SQLTable targetTable,
BooleanExpression joinCondition,
SQLJoin parentJoin)
Internal method to form a join to the specified table using the provided mappings.
|
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.
|
static SQLJoin.JoinType |
SQLStatementHelper.getJoinTypeForOneToOneRelationJoin(JavaTypeMapping sourceMapping,
SQLTable sourceSqlTbl,
SQLJoin.JoinType joinType)
Convenience method to return the join type to use for the specified 1-1 relation.
|
SQLTable |
SelectStatement.join(SQLJoin.JoinType joinType,
SQLTable sourceTable,
JavaTypeMapping sourceMapping,
JavaTypeMapping sourceParentMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
JavaTypeMapping targetParentMapping,
Object[] discrimValues,
String tableGrpName,
boolean applyToUnions,
SQLJoin parentJoin) |
SQLTable |
SQLStatement.join(SQLJoin.JoinType joinType,
SQLTable sourceTable,
JavaTypeMapping sourceMapping,
JavaTypeMapping sourceParentMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
JavaTypeMapping targetParentMapping,
Object[] discrimValues,
String tableGrpName,
boolean applyToUnions,
SQLJoin parentJoin)
Method to form a join to the specified table using the provided mappings, with the join condition derived from the source-target mappings.
|
SQLTable |
SQLStatement.join(SQLJoin.JoinType joinType,
SQLTable sourceTable,
JavaTypeMapping sourceMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
Object[] discrimValues,
String tableGrpName)
Method to form a join to the specified table using the provided mappings, with the join also being applied to any UNIONed statements.
|
SQLTable |
SQLStatement.join(SQLJoin.JoinType joinType,
SQLTable sourceTable,
JavaTypeMapping sourceMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
Object[] discrimValues,
String tableGrpName,
boolean applyToUnions)
Method to form a join to the specified table using the provided mappings.
|
SQLTable |
SQLStatement.join(SQLJoin.JoinType joinType,
SQLTable sourceTable,
JavaTypeMapping sourceMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
Object[] discrimValues,
String tableGrpName,
boolean applyToUnions,
SQLJoin parentJoin)
Method to form a join to the specified table using the provided mappings.
|
SQLTable |
SQLStatement.join(SQLJoin.JoinType joinType,
SQLTable sourceTable,
JavaTypeMapping sourceMapping,
Table target,
String targetAlias,
JavaTypeMapping targetMapping,
Object[] discrimValues,
String tableGrpName,
SQLJoin parentJoin)
Method to form a join to the specified table using the provided mappings, with the join also being applied to any UNIONed statements.
|
SQLTable |
SelectStatement.join(SQLJoin.JoinType joinType,
SQLTable sourceTable,
Table target,
String targetAlias,
String tableGrpName,
BooleanExpression joinCondition,
boolean applyToUnions) |
SQLTable |
SQLStatement.join(SQLJoin.JoinType joinType,
SQLTable sourceTable,
Table target,
String targetAlias,
String tableGrpName,
BooleanExpression joinCondition,
boolean applyToUnions)
Method to form a join to the specified table using the provided mappings and applying the provided join condition (rather than generating one from the source/target mappings).
|
protected void |
SQLStatement.putSQLTableInGroup(SQLTable sqlTbl,
String groupName,
SQLJoin.JoinType joinType)
Convenience method to add the SQLTable to the specified group.
|
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.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 |
SQLJoin.setType(SQLJoin.JoinType type) |
Constructor and Description |
---|
SQLJoin(SQLJoin.JoinType type,
SQLTable targetTbl,
SQLTable sourceTbl,
BooleanExpression condition)
Constructor for a join.
|
Modifier and Type | Method and Description |
---|---|
protected SQLExpression |
CollectionContainsMethod.containsAsJoin(SQLStatement stmt,
CollectionExpression collExpr,
SQLExpression elemExpr,
SQLJoin.JoinType joinType)
Method to return an expression for Collection.contains using INNER JOIN to the element.
|
protected SQLExpression |
MapContainsKeyMethod.containsAsJoin(SQLStatement stmt,
MapExpression mapExpr,
SQLExpression keyExpr,
SQLJoin.JoinType joinType)
Method to return an expression for Map.containsKey using INNER JOIN to the element.
|
protected SQLExpression |
MapContainsValueMethod.containsAsJoin(SQLStatement stmt,
MapExpression mapExpr,
SQLExpression valExpr,
SQLJoin.JoinType joinType)
Method to return an expression for Map.containsValue using INNER JOIN to the element.
|
Copyright © 2020. All rights reserved.