public class Select<T> extends AbstractExpression implements Dataset, Paginatable
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
fetchNext |
protected Dataset[] |
fromDatasets |
protected Expression[] |
groupByExpressions |
protected Expression |
havingExpression |
protected List<JoinExpression> |
joinExpressions |
protected int |
offset |
protected Expression[] |
orderByExpressions |
protected Map<String,Expression> |
projectionMaps |
protected List<Expression> |
projections |
protected int |
rowCount |
protected Dataset[] |
unionAllDatasets |
protected Dataset[] |
unionDatasets |
protected LogicalExpression |
whereExpression |
as, attachAlias, div, eq, ge, getAlias, gt, le, lt, minus, ne, ne2, plus, processDataset, rem, setAlias, timesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, div, div, div, div, div, div, div, minus, minus, minus, minus, minus, minus, minus, plus, plus, plus, plus, plus, plus, plus, rem, rem, rem, rem, rem, rem, rem, times, times, times, times, times, times, timesprotected List<Expression> projections
protected Map<String,Expression> projectionMaps
protected Dataset[] fromDatasets
protected LogicalExpression whereExpression
protected List<JoinExpression> joinExpressions
protected Expression[] groupByExpressions
protected Expression havingExpression
protected Expression[] orderByExpressions
protected boolean fetchNext
protected int rowCount
protected int offset
protected Dataset[] unionDatasets
protected Dataset[] unionAllDatasets
public Select()
public Select(Dataset dataset)
public Select project(Expression... projections)
public Expression col(String alias)
public Expression getProjection(String alias)
public Select where(LogicalExpression expression)
public Select leftOuterJoin(Dataset dataset, LogicalExpression onExpression)
public Select rightOuterJoin(Dataset dataset, LogicalExpression onExpression)
public Select innerJoin(Dataset dataset, LogicalExpression onExpression)
public Select fullJoin(Dataset dataset, LogicalExpression onExpression)
public Select groupBy(Expression... expressions)
public Select having(Expression expression)
public Select orderBy(Expression... expressions)
public Select rowCount(int rowCount)
public Select rowCount(int rowCount, boolean fetchNext)
public Select offset(int offset)
public String prettyFormat(DatabaseType databaseType) throws SQLSyntaxException
public List<T> execute(Class<?> clazz, Relationship... relationships) throws SQLException
SQLExceptionpublic List<T> execute(DomainModelDescriptor domainModelDescriptor, Relationship... relationships) throws SQLException
SQLExceptionpublic String getQuerySQL(DatabaseType databaseType)
getQuerySQL 在接口中 Paginatablepublic String toSql(ExpressionContext expressionContext) throws SQLSyntaxException
toSql 在接口中 SqlizableSQLSyntaxExceptionprotected void processProjections(ExpressionContext expressionContext, StringBuilder sql) throws SQLSyntaxException
protected void processFrom(ExpressionContext expressionContext, StringBuilder sql) throws SQLSyntaxException
protected void processWhere(ExpressionContext expressionContext, StringBuilder sql) throws SQLSyntaxException
protected void processJoins(ExpressionContext expressionContext, StringBuilder sql) throws SQLSyntaxException
protected void processGroupBy(ExpressionContext expressionContext, StringBuilder sql) throws SQLSyntaxException
protected void processOrderBy(ExpressionContext expressionContext, StringBuilder sql) throws SQLSyntaxException
protected void processUnion(ExpressionContext expressionContext, StringBuilder sql) throws SQLSyntaxException
Copyright © 2020 com.github.braisdom. All rights reserved.