congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
RenderContext.data
Code IndexAdd Tabnine to your IDE (free)

How to use
data
method
in
org.jooq.RenderContext

Best Java code snippets using org.jooq.RenderContext.data (Showing top 8 results out of 315)

origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext context) {
  context.data(DATA_OMIT_CLAUSE_EVENT_EMISSION, true);
  if (context.qualify()) {
    context.visit(table);
    context.sql(".");
  }
  context.literal(getName());
  context.data(DATA_OMIT_CLAUSE_EVENT_EMISSION, null);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext context) {
  // Some databases need extra parentheses around the RHS
  boolean extraParentheses = asList().contains(context.configuration().dialect().family());
  boolean subquery = context.subquery();
  context.visit(left)
      .sql(" ")
      .keyword(comparator.toSQL())
      .sql(" (")
      .sql(extraParentheses ? "(" : "");
  context.data(DATA_ROW_VALUE_EXPRESSION_PREDICATE_SUBQUERY, true);
  context.subquery(true)
      .visit(right)
      .subquery(subquery);
  context.data(DATA_ROW_VALUE_EXPRESSION_PREDICATE_SUBQUERY, null);
  context.sql(extraParentheses ? ")" : "")
      .sql(")");
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

DefaultRenderContext(RenderContext context) {
  this(context.configuration());
  paramType(context.paramType());
  qualify(context.qualify());
  castMode(context.castMode());
  declareFields(context.declareFields());
  declareTables(context.declareTables());
  data().putAll(context.data());
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

private final String getSQL0(ExecuteContext ctx) {
  if (executePreparedStatements(configuration().settings())) {
    try {
      RenderContext render = new DefaultRenderContext(configuration);
      render.data(DATA_COUNT_BIND_VALUES, true);
      return render.render(this);
    }
    catch (DefaultRenderContext.ForceInlineSignal e) {
      ctx.data(DATA_FORCE_STATIC_STATEMENT, true);
      return getSQL(INLINED);
    }
  }
  else {
    return getSQL(INLINED);
  }
}
origin: org.jooq/jooq

DefaultRenderContext(RenderContext context) {
  this(context.configuration());
  paramType(context.paramType());
  qualifyCatalog(context.qualifyCatalog());
  qualifySchema(context.qualifySchema());
  quote(context.quote());
  castMode(context.castMode());
  data().putAll(context.data());
  declareCTE = context.declareCTE();
  declareWindows = context.declareWindows();
  declareFields = context.declareFields();
  declareTables = context.declareTables();
  declareAliases = context.declareAliases();
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

pushWindow(context);
Boolean wrapDerivedTables = (Boolean) context.data(DATA_WRAP_DERIVED_TABLES_IN_PARENTHESES);
if (TRUE.equals(wrapDerivedTables)) {
  context.sql("(")
      .data(DATA_WRAP_DERIVED_TABLES_IN_PARENTHESES, null);
      .data(DATA_WRAP_DERIVED_TABLES_IN_PARENTHESES, true);
origin: com.ning.billing/killbill-osgi-bundles-analytics

if (context.subquery() && dialect == H2 && context.data(DATA_ROW_VALUE_EXPRESSION_PREDICATE_SUBQUERY) != null) {
  Object data = context.data(DATA_ROW_VALUE_EXPRESSION_PREDICATE_SUBQUERY);
    context.data(DATA_ROW_VALUE_EXPRESSION_PREDICATE_SUBQUERY, null);
    context.sql("(")
        .visit(getSelect1())
    context.data(DATA_ROW_VALUE_EXPRESSION_PREDICATE_SUBQUERY, data);
boolean hasFrom = (context.data(DATA_RENDERING_DB2_FINAL_TABLE_CLAUSE) != null);
origin: com.ning.billing/killbill-osgi-bundles-analytics

    .formatIndentStart()
    .formatNewLine();
context.data(DATA_WRAP_DERIVED_TABLES_IN_PARENTHESES, true);
context.visit(using);
context.data(DATA_WRAP_DERIVED_TABLES_IN_PARENTHESES, null);
context.formatIndentEnd()
    .declareTables(false);
org.jooqRenderContextdata

Popular methods of RenderContext

  • sql
    Recurse rendering.
  • visit
  • render
    Render a query part in a new context derived from this one. The rendered SQL will not be appended to
  • declareTables
  • paramType
    Set the new context value for #paramType().
  • castMode
    Set the new cast mode for #castMode().
  • configuration
  • declareFields
  • declareWindows
  • end
  • formatIndentEnd
    Stop indenting subsequent SQL by a number of characters, if Settings#isRenderFormatted() is set to t
  • formatIndentLockEnd
    Stop indenting subsequent SQL at the same level as the current line, if Settings#isRenderFormatted()
  • formatIndentEnd,
  • formatIndentLockEnd,
  • formatIndentLockStart,
  • formatIndentStart,
  • formatNewLine,
  • formatSeparator,
  • keyword,
  • literal,
  • nextAlias

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JButton (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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