public class ExampleSQLHelp extends Object
Constructor and Description |
---|
ExampleSQLHelp() |
Modifier and Type | Method and Description |
---|---|
static String |
getColumn(Example example,
boolean useAlias) |
static String |
getCountColumn(Example example,
boolean useAlias) |
static String |
getFromClause(Example example,
DBContext context,
boolean useAlias) |
static String |
getOrderByClause(Example example,
boolean useAlias) |
static String |
getSelectClause(Example example,
SelectOpt opt,
boolean useAlias) |
static SQLContext |
getSelectSQLContext(Example example,
DBContext context,
SelectOpt opt,
boolean offsetLimit,
boolean useAlias)
获取完整的查询
|
static SQLContext |
getSQLContextWhereClause(Example example,
boolean useAlias) |
public static SQLContext getSelectSQLContext(Example example, DBContext context, SelectOpt opt, boolean offsetLimit, boolean useAlias)
example
- context
- opt
- 查询操作offsetLimit
- 是否使用offsetLimituseAlias
- 是否使用别名public static String getSelectClause(Example example, SelectOpt opt, boolean useAlias)
public static String getFromClause(Example example, DBContext context, boolean useAlias)
public static SQLContext getSQLContextWhereClause(Example example, boolean useAlias)
Copyright © 2020. All rights reserved.