当前位置: 首页>>代码示例>>Java>>正文


Java CreateView类代码示例

本文整理汇总了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);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:17,代码来源:CreateViewDeParser.java

示例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定義をパース出来ませんでした");
	}
}
 
开发者ID:coastland,项目名称:gsp-dba-maven-plugin,代码行数:18,代码来源:ViewAnalyzer.java

示例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;
}
 
开发者ID:PinaeOS,项目名称:timon,代码行数:16,代码来源:CreateViewParser.java

示例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");
  }
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:82,代码来源:CCJSqlParser.java

示例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);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:6,代码来源:StatementDeParser.java

示例6: visit

import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) {
    throw new UnsupportedOperationException(NOT_SUPPORTED_YET);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:TablesNamesFinder.java

示例7: visit

import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
public void visit(CreateView createView) {
    throw new UnsupportedSQLFeatureException("Feature CreateView not supported");
}
 
开发者ID:adamkewley,项目名称:jobson,代码行数:4,代码来源:AllColumnRefsFinder.java

示例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.
}
 
开发者ID:justice-code,项目名称:QiuQiu,代码行数:5,代码来源:ReplaceTablesNamesFinder.java

示例9: visit

import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView)
{
    throw new UnsupportedOperationException("Not supported yet."); 
}
 
开发者ID:sogou-biztech,项目名称:compass,代码行数:6,代码来源:TableRenameVisitor.java

示例10: visit

import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) {
    //Implementation goes here
}
 
开发者ID:mulesoft-labs,项目名称:mongo-sql-console,代码行数:5,代码来源:SQLStatementVisitor.java

示例11: visit

import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) {

}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:StatementVisitorAdapter.java

示例12: visit

import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
@Override
public void visit(CreateView createView) throws Exception {

}
 
开发者ID:ddf-project,项目名称:DDF,代码行数:5,代码来源:TableVisitor.java

示例13: visit

import net.sf.jsqlparser.statement.create.view.CreateView; //导入依赖的package包/类
void visit(CreateView createView); 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:2,代码来源:StatementVisitor.java


注:本文中的net.sf.jsqlparser.statement.create.view.CreateView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。