本文整理汇总了Java中net.sf.jsqlparser.statement.create.view.CreateView类的典型用法代码示例。如果您正苦于以下问题:Java CreateView类的具体用法?Java CreateView怎么用?Java CreateView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CreateView类属于net.sf.jsqlparser.statement.create.view包,在下文中一共展示了CreateView类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deParse
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
public void deParse(CreateView createView) {
buffer.append("CREATE ");
if (createView.isOrReplace()) {
buffer.append("OR REPLACE ");
}
if (createView.isMaterialized()) {
buffer.append("MATERIALIZED ");
}
buffer.append("VIEW ").append(createView.getView().getFullyQualifiedName());
if (createView.getColumnNames() != null) {
buffer.append(PlainSelect.getStringList(createView.getColumnNames(), true, true));
}
buffer.append(" AS ");
createView.getSelectBody().accept(selectVisitor);
}
示例2: parse
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
public void parse(String sql) {
isSimple = true;
tableName = null;
try {
net.sf.jsqlparser.statement.Statement statement = pm
.parse(new StringReader(sql));
if (statement instanceof Select) {
Select selectStatement = (Select) statement;
visit(selectStatement);
} else if (statement instanceof CreateView) {
CreateView createViewStatement = (CreateView) statement;
this.parse(createViewStatement.getSelectBody().toString());
}
} catch (JSQLParserException e) {
System.err.println("VIEW定義をパース出来ませんでした");
}
}
示例3: parse
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
public Set<String> parse(CreateView createView) {
Set<String> tableSet = new HashSet<String>();
if (createView != null) {
SelectBody selectBody = createView.getSelectBody();
if (selectBody != null) {
tableSet.addAll(new SelectParser().parse(selectBody));
}
Table view = createView.getView();
if (view != null) {
tableSet.add(view.getName());
}
}
return tableSet;
}
示例4: CreateView
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
final public CreateView CreateView() throws ParseException {
/* @bgen(jjtree) CreateView */
SimpleNode jjtn000 = new SimpleNode(JJTCREATEVIEW);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
CreateView createView = new CreateView();
Table view = null;
SelectBody select = null;
List<String> columnNames = null;
try {
jj_consume_token(K_CREATE);
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
case K_OR:
jj_consume_token(K_OR);
jj_consume_token(K_REPLACE);
createView.setOrReplace(true);
break;
default:
jj_la1[312] = jj_gen;
;
}
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
case K_MATERIALIZED:
jj_consume_token(K_MATERIALIZED);
createView.setMaterialized(true);
break;
default:
jj_la1[313] = jj_gen;
;
}
jj_consume_token(K_VIEW);
view = Table();
createView.setView(view);
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
case 166:
columnNames = ColumnsNamesList();
createView.setColumnNames(columnNames);
break;
default:
jj_la1[314] = jj_gen;
;
}
jj_consume_token(K_AS);
select = SelectBody();
createView.setSelectBody(select);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
{
if (true)
return createView;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{
if (true)
throw (RuntimeException) jjte000;
}
}
if (jjte000 instanceof ParseException) {
{
if (true)
throw (ParseException) jjte000;
}
}
{
if (true)
throw (Error) jjte000;
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new Error("Missing return statement in function");
}
示例5: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) {
CreateViewDeParser createViewDeParser = new CreateViewDeParser(buffer);
createViewDeParser.deParse(createView);
}
示例6: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) {
throw new UnsupportedOperationException(NOT_SUPPORTED_YET);
}
示例7: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
public void visit(CreateView createView) {
throw new UnsupportedSQLFeatureException("Feature CreateView not supported");
}
示例8: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) {
throw new UnsupportedOperationException(NOT_SUPPORTED_YET); //To change body of generated methods, choose Tools | Templates.
}
示例9: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView)
{
throw new UnsupportedOperationException("Not supported yet.");
}
示例10: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) {
//Implementation goes here
}
示例11: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) {
}
示例12: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) throws Exception {
}
示例13: visit
import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
void visit(CreateView createView);