Package net.sf.jsqlparser.schema

Examples of net.sf.jsqlparser.schema.Column


        return _ic;
    }

    // non special cases
    final List<Column> columns = ParserUtil.getJSQLColumns(expr);
    final Column column = columns.get(0);
    return _schema.getType(ParserUtil.getFullSchemaColumnName(column, _tan));
  }
View Full Code Here


  final public Update Update() throws ParseException {
        Update update = new Update();
        Table table = null;
        Expression where = null;
        Column tableColumn = null;
        List expList = new ArrayList();
        List columns = new ArrayList();
        Expression value = null;
    jj_consume_token(K_UPDATE);
    table = TableWithAlias();
View Full Code Here

  }

  final public Replace Replace() throws ParseException {
        Replace replace = new Replace();
        Table table = null;
        Column tableColumn = null;
        Expression value = null;

        List columns = new ArrayList();
        List expList = new ArrayList();
        ItemsList itemsList = null;
View Full Code Here

  }

  final public Insert Insert() throws ParseException {
        Insert insert = new Insert();
        Table table = null;
        Column tableColumn = null;
        List columns = new ArrayList();
        List primaryExpList = new ArrayList();
        ItemsList itemsList = null;
        Expression exp = null;
    jj_consume_token(K_INSERT);
View Full Code Here

        } else {
                table = new Table(null, null);
                colName = name1;
        }

        {if (true) return new Column(table, colName);}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

  }

  final public SelectItem SelectItem() throws ParseException {
        Function function = null;
        AllColumns allTableColumns = null;
        Column tableColumn = null;
        String alias = null;
        SelectItem selectItem = null;
        SelectExpressionItem selectExpressionItem = null;
        Expression expression = null;
        SubSelect subSelect = null;
View Full Code Here

  final public Join JoinerExpression() throws ParseException {
        Join join = new Join();
        FromItem right = null;
        Expression onExpression = null;
        Column tableColumn;
        List columns = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case K_LEFT:
    case K_FULL:
    case K_RIGHT:
View Full Code Here

    Object columnObj = invokeMethod(e, "getLeftExpression");
    if(columnObj instanceof LongValue){
      LongValue longValue = (LongValue)columnObj;
      oe.setColumnname(longValue.getStringValue());
    }else{
      Column column = (Column)invokeMethod(e, "getLeftExpression");   
      oe.setColumnname(column.getColumnName());
    }
    if (e instanceof BinaryExpression) {
      BinaryExpression be = (BinaryExpression) e;
      oe.setExp(be.getStringExpression());
      if(be.getRightExpression() instanceof Function){
View Full Code Here

      join.getOnExpression().accept(expressionVisitor);
    }
    if (join.getUsingColumns() != null) {
      buffer.append(" USING ( ");
      for (Iterator iterator = join.getUsingColumns().iterator(); iterator.hasNext();) {
        Column column = (Column) iterator.next();
        buffer.append(column.getWholeColumnName());
        if (iterator.hasNext()) {
          buffer.append(" ,");
        }
      }
      buffer.append(")");
View Full Code Here

  }

  public void deParse(Update update) {
    buffer.append("UPDATE " + update.getTable().getWholeTableName() + " SET ");
    for (int i = 0; i < update.getColumns().size(); i++) {
      Column column = (Column) update.getColumns().get(i);
      buffer.append(column.getWholeColumnName() + "=");

      Expression expression = (Expression) update.getExpressions().get(i);
      expression.accept(expressionVisitor);
      if (i < update.getColumns().size() - 1) {
        buffer.append(", ");
View Full Code Here

TOP

Related Classes of net.sf.jsqlparser.schema.Column

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.