Search in sources :

Example 1 with RenderQuotedNames

use of org.jooq.conf.RenderQuotedNames in project jOOQ by jOOQ.

the class UnqualifiedName method accept.

@Override
public final void accept(Context<?> ctx) {
    RenderQuotedNames q = SettingsTools.getRenderQuotedNames(ctx.settings());
    boolean previous = ctx.quote();
    boolean current = quoted != SYSTEM && (q == RenderQuotedNames.ALWAYS || q == RenderQuotedNames.EXPLICIT_DEFAULT_QUOTED && (quoted == DEFAULT || quoted == QUOTED) || q == RenderQuotedNames.EXPLICIT_DEFAULT_UNQUOTED && quoted == QUOTED);
    ctx.quote(current);
    ctx.literal(name);
    ctx.quote(previous);
}
Also used : RenderQuotedNames(org.jooq.conf.RenderQuotedNames)

Aggregations

RenderQuotedNames (org.jooq.conf.RenderQuotedNames)1