Codota Logo
RenderContext.castMode
Code IndexAdd Codota to your IDE (free)

How to use
castMode
method
in
org.jooq.RenderContext

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

@Override
public final void toSQL(RenderContext context) {
  ParamType paramType = context.paramType();
  CastMode castMode = context.castMode();
    case POSTGRES: // No break
    case SQLITE: {
      context.castMode(NEVER)
          .formatSeparator()
          .keyword("limit")
          .sql(" ").keyword("offset")
          .sql(" ").visit(offsetOrZero)
          .castMode(castMode);
      context.castMode(NEVER)
          .formatSeparator()
          .keyword("limit")
          .sql(" ").visit(offsetOrZero)
          .sql(", ").visit(numberOfRows)
          .castMode(castMode);
      context.castMode(NEVER)
          .formatSeparator()
          .keyword("rows")
          .sql(" ").keyword("to")
          .sql(" ").visit(getUpperRownum())
          .castMode(castMode);
origin: org.jooq/jooq

@Override
public final void sql(BindingSQLContext<U> ctx) throws SQLException {
  T converted = converter().to(ctx.value());
  // Casting can be enforced or prevented
  switch (ctx.render().castMode()) {
    case NEVER:
      sql(ctx, converted);
      return;
    case ALWAYS:
      sqlCast(ctx, converted);
      return;
  }
  // See if we "should" cast, to stay on the safe side
  if (shouldCast(ctx, converted))
    sqlCast(ctx, converted);
  // Most RDBMS can infer types for bind values
  else
    sql(ctx, converted);
}
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: org.jooq/jooq

CastMode previous = render.castMode();
render.castMode(CastMode.NEVER)
   .visit(substitute)
   .castMode(previous);
origin: com.ning.billing/killbill-osgi-bundles-analytics

switch (context.castMode()) {
  case NEVER:
    toSQL(context, value, getType());
org.jooqRenderContextcastMode

Javadoc

The currently applied cast mode for bind values.

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

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getApplicationContext (Context)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BoxLayout (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now