Tabnine Logo
SqlString.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.calcite.sql.util.SqlString
constructor

Best Java code snippets using org.apache.calcite.sql.util.SqlString.<init> (Showing top 6 results out of 315)

origin: org.apache.calcite/calcite-core

/**
 * Returns the contents of this SQL buffer as a 'certified kocher' SQL
 * string.
 *
 * <p>Use this method in preference to {@link #toString()}. It indicates
 * that the SQL string has been constructed using good hygiene, and is
 * therefore less likely to contain SQL injection or badly quoted
 * identifiers or strings.
 *
 * @return Contents of this builder as a SQL string.
 */
public SqlString toSqlString() {
 return new SqlString(dialect, buf.toString());
}
origin: Qihoo360/Quicksql

/**
 * Returns the contents of this SQL buffer as a 'certified kocher' SQL
 * string.
 *
 * <p>Use this method in preference to {@link #toString()}. It indicates
 * that the SQL string has been constructed using good hygiene, and is
 * therefore less likely to contain SQL injection or badly quoted
 * identifiers or strings.
 *
 * @return Contents of this builder as a SQL string.
 */
public SqlString toSqlString() {
 return new SqlString(dialect, buf.toString());
}
origin: org.apache.calcite/calcite-core

public SqlString toSqlString() {
 ImmutableList<Integer> dynamicParameters =
   this.dynamicParameters == null ? null : this.dynamicParameters.build();
 return new SqlString(dialect, toString(), dynamicParameters);
}
origin: Qihoo360/Quicksql

protected void generateTypeString(StringBuilder sb, boolean withDetail) {
 sb.append("INTERVAL ");
 final SqlDialect dialect = AnsiSqlDialect.DEFAULT;
 final SqlPrettyWriter writer = new SqlPrettyWriter(dialect);
 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());
}
origin: org.apache.calcite/calcite-core

protected void generateTypeString(StringBuilder sb, boolean withDetail) {
 sb.append("INTERVAL ");
 final SqlDialect dialect = AnsiSqlDialect.DEFAULT;
 final SqlPrettyWriter writer = new SqlPrettyWriter(dialect);
 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());
}
origin: Qihoo360/Quicksql

/**
 * Returns the SQL text of the tree of which this <code>SqlNode</code> is
 * the root.
 *
 * @param dialect     Dialect
 * @param forceParens wraps all expressions in parentheses; good for parse
 *                    test, but false by default.
 *
 *                    <p>Typical return values are:</p>
 *                    <ul>
 *                    <li>'It''s a bird!'</li>
 *                    <li>NULL</li>
 *                    <li>12.3</li>
 *                    <li>DATE '1969-04-29'</li>
 *                    </ul>
 */
public SqlString toSqlString(SqlDialect dialect, boolean forceParens) {
 if (dialect == null) {
  dialect = AnsiSqlDialect.DEFAULT;
 }
 SqlPrettyWriter writer = new SqlPrettyWriter(dialect);
 writer.setAlwaysUseParentheses(forceParens);
 writer.setSelectListItemsOnSeparateLines(false);
 writer.setIndentation(0);
 unparse(writer, 0, 0);
 final String sql = writer.toString();
 return new SqlString(dialect, sql);
}
org.apache.calcite.sql.utilSqlString<init>

Javadoc

Creates a SqlString.

Popular methods of SqlString

  • getSql
    Returns the SQL string.
  • toString
    Returns the SQL string.
  • getDialect
    Returns the dialect.
  • getDynamicParameters
    Returns indices of dynamic parameters.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • findViewById (Activity)
  • startActivity (Activity)
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now