public abstract class AbstractStatementGenerator extends Object implements StatementGenerator
Modifier and Type | Field and Description |
---|---|
protected DatastoreClass |
candidateTable
Table where the candidate objects are stored.
|
protected DatastoreIdentifier |
candidateTableAlias
Alias for the candidate table in the SQL statement.
|
protected String |
candidateTableGroupName
Name of the table-group to use for the candidate(s) (optional, see SQLStatement).
|
protected Class |
candidateType
Candidate type to query.
|
protected org.datanucleus.ClassLoaderResolver |
clr
ClassLoader resolver.
|
protected boolean |
includeSubclasses
Whether to include iteration through subclasses of the candidate.
|
protected SQLStatement |
parentStmt
Parent statement.
|
protected RDBMSStoreManager |
storeMgr
Manager for the datastore.
|
OPTION_ALLOW_NULLS, OPTION_RESTRICT_DISCRIM, OPTION_SELECT_NUCLEUS_TYPE
Constructor and Description |
---|
AbstractStatementGenerator(RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr,
Class candidateType,
boolean subclasses,
DatastoreIdentifier candidateTableAlias,
String candidateTableGroupName)
Constructor for the case where we select the candidate table.
|
AbstractStatementGenerator(RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr,
Class candidateType,
boolean subclasses,
DatastoreIdentifier candidateTableAlias,
String candidateTableGroupName,
Table joinTable,
DatastoreIdentifier joinTableAlias,
JavaTypeMapping joinElementMapping)
Constructor for the case where we select the join table and join to the candidate table.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasOption(String name)
Whether the generator has a particular option set.
|
StatementGenerator |
setOption(String name)
Method to set a property.
|
StatementGenerator |
unsetOption(String name)
Method to unset a property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStatement, setParentStatement
protected final RDBMSStoreManager storeMgr
protected final org.datanucleus.ClassLoaderResolver clr
protected SQLStatement parentStmt
protected Class candidateType
protected final boolean includeSubclasses
protected DatastoreClass candidateTable
protected DatastoreIdentifier candidateTableAlias
protected String candidateTableGroupName
public AbstractStatementGenerator(RDBMSStoreManager storeMgr, org.datanucleus.ClassLoaderResolver clr, Class candidateType, boolean subclasses, DatastoreIdentifier candidateTableAlias, String candidateTableGroupName)
storeMgr
- Store Managerclr
- ClassLoader resolvercandidateType
- Candidate root typesubclasses
- Whether to include subclassescandidateTableAlias
- Alias for the candidate (optional)candidateTableGroupName
- Name of the table group for the candidate(s) (optional)public AbstractStatementGenerator(RDBMSStoreManager storeMgr, org.datanucleus.ClassLoaderResolver clr, Class candidateType, boolean subclasses, DatastoreIdentifier candidateTableAlias, String candidateTableGroupName, Table joinTable, DatastoreIdentifier joinTableAlias, JavaTypeMapping joinElementMapping)
storeMgr
- Store Managerclr
- ClassLoader resolvercandidateType
- Candidate root typesubclasses
- Whether to include subclassescandidateTableAlias
- Alias for the candidate (optional)candidateTableGroupName
- Name of the table group for the candidate(s) (optional)joinTable
- Join tablejoinTableAlias
- Alias for the join tablejoinElementMapping
- Mapping to the candidate from the join tablepublic StatementGenerator setOption(String name)
StatementGenerator
setOption
in interface StatementGenerator
name
- Name of the propertypublic StatementGenerator unsetOption(String name)
StatementGenerator
unsetOption
in interface StatementGenerator
name
- Name of the propertypublic boolean hasOption(String name)
StatementGenerator
hasOption
in interface StatementGenerator
name
- Name of the optionCopyright © 2015. All rights reserved.