Tabnine Logo
SqlDialect.quoteStringLiteralUnicode
Code IndexAdd Tabnine to your IDE (free)

How to use
quoteStringLiteralUnicode
method
in
org.apache.calcite.sql.SqlDialect

Best Java code snippets using org.apache.calcite.sql.SqlDialect.quoteStringLiteralUnicode (Showing top 2 results out of 315)

origin: Qihoo360/Quicksql

/**
 * Converts a string into a string literal. For example, <code>can't
 * run</code> becomes <code>'can''t run'</code>.
 */
public String quoteStringLiteral(String val) {
 if (containsNonAscii(val)) {
  final StringBuilder buf = new StringBuilder();
  quoteStringLiteralUnicode(buf, val);
  return buf.toString();
 } else {
  val = FakeUtil.replace(val, "'", "''");
  return "'" + val + "'";
 }
}
origin: org.apache.calcite/calcite-core

/**
 * Converts a string into a string literal. For example, <code>can't
 * run</code> becomes <code>'can''t run'</code>.
 */
public String quoteStringLiteral(String val) {
 if (containsNonAscii(val)) {
  final StringBuilder buf = new StringBuilder();
  quoteStringLiteralUnicode(buf, val);
  return buf.toString();
 } else {
  val = FakeUtil.replace(val, "'", "''");
  return "'" + val + "'";
 }
}
org.apache.calcite.sqlSqlDialectquoteStringLiteralUnicode

Javadoc

Converts a string into a unicode string literal. For example, can't{tab}run\ becomes u'can''t\0009run\\'.

Popular methods of SqlDialect

  • quoteStringLiteral
    Converts a string into a string literal. For example, can't run becomes 'can''t run'.
  • unparseCall
  • <init>
    Creates a SqlDialect.
  • quoteIdentifier
    Quotes a multi-part identifier.
  • supportsAggregateFunction
  • supportsCharSet
    Returns whether the dialect supports character set names as part of a data type, for instance VARCHA
  • allowsAs
  • containsNonAscii
    Returns whether the string contains any characters outside the comfortable 7-bit ASCII range (32 thr
  • defaultNullDirection
    Returns whether NULL values are sorted first or last, in this dialect, in an ORDER BY item of a give
  • emulateNullDirection
    Returns the SqlNode for emulating the null direction for the given field or null if no emulation ne
  • getCalendarPolicy
  • getCastSpec
  • getCalendarPolicy,
  • getCastSpec,
  • getDatabaseProduct,
  • getNullCollation,
  • hasImplicitTableAlias,
  • identifierNeedsToBeQuoted,
  • quoteTimestampLiteral,
  • rewriteSingleValueExpr,
  • supportsAliasedValues

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
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