Examples of SqlString


Examples of org.eigenbase.sql.util.SqlString

    public ParseTree implement(JavaRelImplementor implementor)
    {
        Variable connectionVariable =
            new Variable(OJPreparingStmt.connectionVariable);

        SqlString sql = MedJdbcNameDirectory.normalizeQueryString(queryString);

        Expression allocExpression =
            new CastExpression(
                OJClass.forClass(FarragoStatementAllocation.class),
                new MethodCall(
                    connectionVariable,
                    "getDataServerRuntimeSupport",
                    new ExpressionList(
                        Literal.makeLiteral(
                            server.getServerMofId()),
                        Literal.makeLiteral(sql.getSql()))));
        return allocExpression;
    }
View Full Code Here

Examples of org.eigenbase.sql.util.SqlString

    protected void setDefaultExpression(
        FemAbstractAttribute attribute,
        SqlNode defaultClause)
    {
        CwmExpression defaultExpression = getRepos().newCwmExpression();
        final SqlString sqlString =
            defaultClause.toSqlString(SqlDialect.EIGENBASE);
        defaultExpression.setBody(sqlString.getSql());
        defaultExpression.setLanguage("SQL");
        attribute.setInitialValue(defaultExpression);
    }
View Full Code Here

Examples of org.eigenbase.sql.util.SqlString

    }

    public Enumerator<T> enumerator() {
      final JavaTypeFactory typeFactory =
          ((OptiqConnection) queryProvider).getTypeFactory();
      final SqlString sql = generateSql();
      //noinspection unchecked
      final Enumerable<T> enumerable = (Enumerable<T>) ResultSetEnumerable.of(
          jdbcSchema.getDataSource(),
          sql.getSql(),
          JdbcUtils.ObjectArrayRowBuilder.factory(fieldClasses(typeFactory)));
      return enumerable.enumerator();
    }
View Full Code Here

Examples of org.eigenbase.sql.util.SqlString

    writer.setAlwaysUseParentheses(false);
    writer.setSelectListItemsOnSeparateLines(false);
    writer.setIndentation(0);
    intervalQualifier.unparse(writer, 0, 0);
    final String sql = writer.toString();
    sb.append(new SqlString(dialect, sql).getSql());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.