本文整理了Java中net.sf.jsqlparser.statement.select.Select.<init>()
方法的一些代码示例,展示了Select.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Select.<init>()
方法的具体详情如下:
包路径:net.sf.jsqlparser.statement.select.Select
类名称:Select
方法名:<init>
暂无
代码示例来源:origin: JSQLParser/JSqlParser
public static Select buildSelectFromTableAndSelectItems(Table table, SelectItem... selectItems) {
Select select = new Select();
PlainSelect body = new PlainSelect();
body.addSelectItems(selectItems);
body.setFromItem(table);
select.setSelectBody(body);
return select;
}
代码示例来源:origin: JSQLParser/JSqlParser
final public Select Select() throws ParseException {Select select = new Select();
SelectBody selectBody = null;
List<WithItem> with = null;
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_WITH:{
with = WithList();
break;
}
default:
jj_la1[93] = jj_gen;
;
}
selectBody = SelectBody();
select.setWithItemsList(with);
select.setSelectBody(selectBody);
return select;
}
代码示例来源:origin: alibaba/mdrill
final public Select Select() throws ParseException {
Select select = new Select();
SelectBody selectBody = null;
List with = null;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case K_WITH:
with = WithList();
select.setWithItemsList(with);
break;
default:
jj_la1[22] = jj_gen;
;
}
selectBody = SelectBody();
select.setSelectBody(selectBody);
{if (true) return select;}
throw new Error("Missing return statement in function");
}
代码示例来源:origin: pagehelper/Mybatis-PageHelper
Select newSelect = new Select();
PlainSelect newSelectBody = new PlainSelect();
代码示例来源:origin: com.github.jsqlparser/jsqlparser
public static Select buildSelectFromTableAndSelectItems(Table table, SelectItem... selectItems) {
Select select = new Select();
PlainSelect body = new PlainSelect();
body.addSelectItems(selectItems);
body.setFromItem(table);
select.setSelectBody(body);
return select;
}
代码示例来源:origin: com.eas.platypus/platypus-js-sql-parser
final public Select Select() throws ParseException {Select select = new Select();
SelectBody selectBody = null;
List with = null;
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_WITH:{
with = WithList(select);
select.setWithItemsList(with);
break;
}
default:
jj_la1[24] = jj_gen;
;
}
selectBody = SelectBody();
select.setSelectBody(selectBody);
{if ("" != null) return select;}
throw new Error("Missing return statement in function");
}
代码示例来源:origin: org.opencadc/cadc-jsqlparser-compat
final public Select Select() throws ParseException {Select select = new Select();
SelectBody selectBody = null;
List with = null;
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_WITH:{
with = WithList();
select.setWithItemsList(with);
break;
}
default:
jj_la1[22] = jj_gen;
;
}
selectBody = SelectBody();
select.setSelectBody(selectBody);
{if ("" != null) return select;}
throw new Error("Missing return statement in function");
}
代码示例来源:origin: it.unibz.inf.ontop/ontop-obdalib-core
/**
* creates a query of the form SELECT * FROM viewName
*/
static ParsedSQLQuery createParsedSqlForGeneratedView(QuotedIDFactory idfac, RelationID viewId) {
PlainSelect body = new PlainSelect();
List<SelectItem> list = new ArrayList<>(1);
list.add(new AllColumns());
body.setSelectItems(list); // create SELECT *
Table viewTable = new Table(viewId.getSchemaSQLRendering(), viewId.getTableNameSQLRendering());
body.setFromItem(viewTable); // create FROM viewTable
Select select = new Select();
select.setSelectBody(body);
ParsedSQLQuery queryParsed = null;
try {
queryParsed = new ParsedSQLQuery(select, false, idfac);
}
catch (JSQLParserException e) {
if (e.getCause() instanceof ParseException)
log.warn("Parse exception, check no SQL reserved keywords have been used "+ e.getCause().getMessage());
}
return queryParsed;
}
代码示例来源:origin: com.github.jsqlparser/jsqlparser
final public Select Select() throws ParseException {Select select = new Select();
SelectBody selectBody = null;
List<WithItem> with = null;
switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {
case K_WITH:{
with = WithList();
break;
}
default:
jj_la1[93] = jj_gen;
;
}
selectBody = SelectBody();
select.setWithItemsList(with);
select.setSelectBody(selectBody);
return select;
}
代码示例来源:origin: com.hand.hap.cloud/hap-mybatis-mapper-starter
Select newSelect = new Select();
PlainSelect newSelectBody = new PlainSelect();
代码示例来源:origin: com.github.pagehelper/pagehelper
Select newSelect = new Select();
PlainSelect newSelectBody = new PlainSelect();
内容来源于网络,如有侵权,请联系作者删除!