/** * Create an instance of {@link RenderFormatting } * */ public RenderFormatting createRenderFormatting() { return new RenderFormatting(); }
DefaultRenderContext(Configuration configuration) { super(configuration, null); Settings settings = configuration.settings(); this.sql = new StringBuilder(); this.bindValues = new QueryPartList<Param<?>>(); this.cachedRenderKeywordStyle = settings.getRenderKeywordStyle(); this.cachedRenderFormatted = Boolean.TRUE.equals(settings.isRenderFormatted()); this.cachedRenderNameStyle = settings.getRenderNameStyle(); RenderFormatting formatting = settings.getRenderFormatting(); if (formatting == null) formatting = new RenderFormatting(); this.cachedNewline = formatting.getNewline() == null ? "\n" : formatting.getNewline(); this.cachedIndentation = formatting.getIndentation() == null ? " " : formatting.getIndentation(); this.cachedIndentWidth = cachedIndentation.length(); this.cachedPrintMargin = formatting.getPrintMargin() == null ? 80 : formatting.getPrintMargin(); }