public interface SelectStatementGenerator
Modifier and Type | Field and Description |
---|---|
static String |
OPTION_ALLOW_NULLS
Option to allow null values as elements of an array or collection.
|
static String |
OPTION_INCLUDE_SOFT_DELETES
Option to omit a WHERE clause restricting to non-soft-deleted objects (only relevant if the candidate has soft-delete enabled.
|
static String |
OPTION_RESTRICT_DISCRIM
Option to add a WHERE clause to restrict to the discriminator value.
|
static String |
OPTION_SELECT_DN_TYPE
Option to add "DN_TYPE" to the SELECT clause as kind of discriminator.
|
Modifier and Type | Method and Description |
---|---|
SelectStatement |
getStatement(org.datanucleus.ExecutionContext ec)
Accessor for the statement.
|
boolean |
hasOption(String name)
Whether the generator has a particular option set.
|
SelectStatementGenerator |
setOption(String name)
Method to set a property.
|
void |
setParentStatement(SQLStatement stmt)
Method to set the parent statement.
|
SelectStatementGenerator |
unsetOption(String name)
Method to unset a property.
|
static final String OPTION_ALLOW_NULLS
static final String OPTION_SELECT_DN_TYPE
static final String OPTION_RESTRICT_DISCRIM
static final String OPTION_INCLUDE_SOFT_DELETES
SelectStatement getStatement(org.datanucleus.ExecutionContext ec)
ec
- ExecutionContextvoid setParentStatement(SQLStatement stmt)
stmt
- The parent statementSelectStatementGenerator setOption(String name)
name
- Name of the propertySelectStatementGenerator unsetOption(String name)
name
- Name of the propertyboolean hasOption(String name)
name
- Name of the optionCopyright © 2019. All rights reserved.