congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RenderContext.configuration
Code IndexAdd Tabnine to your IDE (free)

How to use
configuration
method
in
org.jooq.RenderContext

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

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

/**
 * Internal convenience method
 */
protected final DSLContext create(RenderContext ctx) {
  return DSL.using(ctx.configuration());
}
origin: org.jooq/jooq

@Deprecated
private final String getInlineConstructor(RenderContext ctx) {
  switch (ctx.family()) {
    case POSTGRES:
      return "ROW";
    // Assume default behaviour if dialect is not available
    default:
      return Tools.getMappedUDTName(ctx.configuration(), value);
  }
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext ctx) {
  delegate(ctx.configuration()).toSQL(ctx);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

static void toSQLAs(RenderContext context) {
  if (asList(DERBY, HSQLDB, MARIADB, MYSQL, POSTGRES).contains(context.configuration().dialect())) {
    context.sql(" ").keyword("as");
  }
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext ctx) {
  ctx.visit(table(ctx.configuration()));
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext context) {
  context.visit(condition(context.configuration()));
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext context) {
  context.visit(pivot(context.configuration()));
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext ctx) {
  ctx.visit(delegate(ctx.configuration()));
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext ctx) {
  delegate(ctx.configuration()).toSQL(ctx);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext ctx) {
  ctx.visit(table(ctx.configuration()));
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext ctx) {
  delegate(ctx.configuration(), ctx).toSQL(ctx);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

private final void toSQLAssign(RenderContext context) {
  switch (context.configuration().dialect().family()) {
    /* [pro] xx
    xxxx xxxxxxx
      xxxxxxxxxxxxxx xx xxx
      xxxxxx
    xx [/pro] */
    default:
      context.sql("? = ");
      break;
  }
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public final void toSQL(RenderContext context) {
  switch (context.configuration().dialect()) {
    case HSQLDB: {
      context.keyword("table(").visit(function).sql(")");
      break;
    }
    default:
      throw new SQLDialectNotSupportedException("FUNCTION TABLE is not supported for " + context.configuration().dialect());
  }
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

private final void toSQLCall(RenderContext context) {
  switch (context.configuration().dialect().family()) {
    /* [pro] xx
    xxxx xxxxxxx
      xxxxxx
    xx [/pro] */
    default:
      context.sql("call ");
      break;
  }
  toSQLQualifiedName(context);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

private final Select<Record> insertSelect(RenderContext context) {
  Select<Record> select = null;
  for (FieldMapForInsert map : insertMaps) {
    if (map != null) {
      Select<Record> iteration = DSL.using(context.configuration()).select(map.values());
      if (select == null) {
        select = iteration;
      }
      else {
        select = select.unionAll(iteration);
      }
    }
  }
  return select;
}
origin: org.jooq/jooq

private final void toSQLQualifiedName(RenderContext ctx) {
  if (ctx.qualify()) {
    Schema mapped = Tools.getMappedSchema(ctx.configuration(), getSchema());
    if (mapped != null && !"".equals(mapped.getName()))
      ctx.visit(mapped)
        .sql('.');
  }
  ctx.literal(getName());
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

private final void toSQLFunctionName(RenderContext ctx) {
  if (name != null) {
    ctx.visit(name);
  }
  else if (term != null) {
    ctx.sql(term.translate(ctx.configuration().dialect()));
  }
  else {
    ctx.sql(getName());
  }
}
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 void toSQLCast(RenderContext context, DataType<?> type, int length, int precision, int scale) {
  context.keyword("cast").sql("(");
  toSQL(context, value, getType());
  context.sql(" ").keyword("as").sql(" ")
      .sql(type.length(length).precision(precision, scale).getCastTypeName(context.configuration()))
      .sql(")");
}
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();
}
org.jooqRenderContextconfiguration

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().
  • data
  • 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

  • Start an intent from android
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JTextField (javax.swing)
  • CodeWhisperer alternatives
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