Package org.jooq.RenderContext

Examples of org.jooq.RenderContext.CastMode


        @SuppressWarnings("unchecked")
        @Override
        public final void accept(Context<?> ctx) {

            // Avoid casting bind values inside an explicit cast...
            CastMode castMode = ctx.castMode();

            // [#857] Interestingly, Derby does not allow for casting numeric
            // types directly to VARCHAR. An intermediary cast to CHAR is needed
            if (field.getDataType().isNumeric() &&
                VARCHAR.equals(getSQLDataType())) {
View Full Code Here


        @Override
        public void accept(Context<?> ctx) {

            // Avoid casting bind values inside an explicit cast...
            CastMode castMode = ctx.castMode();

            // Default rendering, if no special case has applied yet
            ctx.keyword("cast").sql("(")
               .castMode(CastMode.NEVER)
               .visit(field)
View Full Code Here

    private boolean           rendersParams;

    @Override
    public final void accept(Context<?> context) {
        ParamType paramType = context.paramType();
        CastMode castMode = context.castMode();

        switch (context.configuration().dialect()) {

            // True LIMIT / OFFSET support provided by the following dialects
            // -----------------------------------------------------------------
View Full Code Here

    @SuppressWarnings("unchecked")
    @Override
    public final void toSQL(RenderContext context) {
      // Avoid casting bind values inside an explicit cast...
        CastMode castMode = context.castMode();

        if (context.getDialect() == SQLDialect.DERBY) {

            // [#857] Interestingly, Derby does not allow for casting numeric
            // types directly to VARCHAR. An intermediary cast to CHAR is needed
View Full Code Here

    }

    @Override
    public final void toSQL(RenderContext context) {
        boolean inline = context.inline();
        CastMode castMode = context.castMode();

        switch (context.getDialect()) {

            // True LIMIT / OFFSET support provided by the following dialects
            // -----------------------------------------------------------------
View Full Code Here

TOP

Related Classes of org.jooq.RenderContext.CastMode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.