Package org.eigenbase.sql.util

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


    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

    }

    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

    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

Related Classes of org.eigenbase.sql.util.SqlString

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.