public abstract class AbstractFeature extends Object implements StatementFeature, Comparable<AbstractFeature>
StatementFeature.| Modifier and Type | Field and Description |
|---|---|
protected static int |
SORT_INDEX_AND_FROM
|
protected static int |
SORT_INDEX_FETCHPLAN
Sort index for FeatureFetchplanImpl. |
protected static int |
SORT_INDEX_GROUP_BY
|
protected static int |
SORT_INDEX_HAVING
|
protected static int |
SORT_INDEX_LET
Sort index for FeatureLetImpl. |
protected static int |
SORT_INDEX_LOCK
Sort index for FeatureLockImpl. |
protected static int |
SORT_INDEX_NOCACHE
Sort index for FeatureNoCacheImpl. |
protected static int |
SORT_INDEX_ORDER_BY
|
protected static int |
SORT_INDEX_PAGING
|
protected static int |
SORT_INDEX_PARALLEL
Sort index for FeatureParallelImpl. |
protected static int |
SORT_INDEX_SET
Sort index for FeatureSetImpl. |
protected static int |
SORT_INDEX_TIMEOUT
Sort index for FeatureTimeoutImpl. |
protected static int |
SORT_INDEX_UNWIND
Sort index for FeatureUnwindImpl. |
protected static int |
SORT_INDEX_UPSERT
|
protected static int |
SORT_INDEX_WHERE
|
private int |
sortIndex |
private AbstractStatement<?,?> |
statement |
| Constructor and Description |
|---|
AbstractFeature(int sortIndex)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected <V> Argument<V> |
asArg(PropertyPath<V> path) |
protected <V> Path<V> |
asPath(PropertyPath<V> path) |
abstract void |
build(SqlBuilder builder) |
protected Expression |
combine(Expression expression,
Conjunction conjunction,
Expression... newExpressions)
|
int |
compareTo(AbstractFeature o) |
static <F extends AbstractFeature> |
create(Class<F> featureClass) |
protected SqlDialect |
getDialect() |
int |
getSortIndex() |
AbstractStatement<?,?> |
getStatement() |
void |
setStatement(AbstractStatement<?,?> statement) |
protected static final int SORT_INDEX_AND_FROM
protected static final int SORT_INDEX_SET
Sort index for FeatureSetImpl.protected static final int SORT_INDEX_UPSERT
protected static final int SORT_INDEX_WHERE
protected static final int SORT_INDEX_LET
Sort index for FeatureLetImpl.protected static final int SORT_INDEX_GROUP_BY
protected static final int SORT_INDEX_HAVING
protected static final int SORT_INDEX_ORDER_BY
protected static final int SORT_INDEX_UNWIND
Sort index for FeatureUnwindImpl.protected static final int SORT_INDEX_PAGING
protected static final int SORT_INDEX_FETCHPLAN
Sort index for FeatureFetchplanImpl.protected static final int SORT_INDEX_TIMEOUT
Sort index for FeatureTimeoutImpl.protected static final int SORT_INDEX_LOCK
Sort index for FeatureLockImpl.protected static final int SORT_INDEX_PARALLEL
Sort index for FeatureParallelImpl.protected static final int SORT_INDEX_NOCACHE
Sort index for FeatureNoCacheImpl.private final int sortIndex
private AbstractStatement<?,?> statement
public AbstractFeature(int sortIndex)
sortIndex - the sort index.public int getSortIndex()
public AbstractStatement<?,?> getStatement()
Statement.protected SqlDialect getDialect()
SqlDialect.public void setStatement(AbstractStatement<?,?> statement)
statement - is the Statement to set.protected <V> Argument<V> asArg(PropertyPath<V> path)
V - the generic type of the property value identified by path.path - the PropertyPath.path as Argument.protected <V> Path<V> asPath(PropertyPath<V> path)
V - the generic type of the property value identified by path.path - the PropertyPath.path as Argument.public abstract void build(SqlBuilder builder)
builder - the SqlBuilder with the query context to build the SQL and bind variables.protected Expression combine(Expression expression, Conjunction conjunction, Expression... newExpressions)
expression - the current Expression or null.conjunction - the Conjunction used to combine.newExpressions - the array with the new Expressions to combine.Expression.public int compareTo(AbstractFeature o)
compareTo in interface Comparable<AbstractFeature>Copyright © 2001–2016 mmm-Team. All rights reserved.