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.
|
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
protected int |
FetchRequest.processMembersOfClass(SelectStatement sqlStatement,
org.datanucleus.metadata.AbstractMemberMetaData[] mmds,
DatastoreClass table,
SQLTable sqlTbl,
StatementClassMapping mappingDef,
Collection fetchCallbacks,
org.datanucleus.ClassLoaderResolver clr)
Method to process the supplied members of the class, adding to the SQLStatement as required.
|
Modifier and Type | Method and Description |
---|---|
SelectStatement |
IteratorStatement.getSelectStatement() |
protected SelectStatement |
JoinMapStore.getSQLStatementForGet(org.datanucleus.state.ObjectProvider ownerOP)
Method to return an SQLStatement for retrieving the value for a key.
|
protected SelectStatement |
FKMapStore.getSQLStatementForGet(org.datanucleus.state.ObjectProvider ownerOP)
Method to return an SQLStatement for retrieving the value for a key.
|
Constructor and 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) |
Modifier and Type | Field and Description |
---|---|
protected List<SelectStatement> |
SelectStatement.unions
List of unioned SelectStatements (if any).
|
Modifier and Type | Method and 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].
|
Modifier and Type | Method and Description |
---|---|
List<SelectStatement> |
SelectStatement.getUnions()
Accessor for the unioned statements.
|
Modifier and Type | Method and 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.
|
Copyright © 2019. All rights reserved.