BindContext implementations
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | bindInternal(QueryPartInternal internal)
Subclasses may override this method to achieve different behaviour |
| public final BindContext | bindValue(Object value, Field<?> field)
Implements org.
Deprecated
as a consequence of
Bind a value using a specific type.
Field being deprecated.
|
| protected BindContext | bindValue0(Object value, Field<?> field)
Deprecated
as a consequence of
Subclasses may override this method to achieve different behaviour
Field being deprecated.
|
| public final BindContext | format(boolean format)
Implements org. Settings#isRenderFormatted().
|
| public final boolean | |
| public final BindContext | formatIndentEnd()
Implements org. Settings#isRenderFormatted() is set to true.
|
| public final BindContext | formatIndentEnd(int indent)
Implements org. Settings#isRenderFormatted() is set to true.
|
| public final BindContext | formatIndentLockEnd()
Implements org. Settings#isRenderFormatted() is set to true.
|
| public final BindContext | formatIndentLockStart()
Implements org. Settings#isRenderFormatted() is set to true.
|
| public final BindContext | formatIndentStart()
Implements org. Settings#isRenderFormatted() is set to true.
|
| public final BindContext | formatIndentStart(int indent)
Implements org. Settings#isRenderFormatted() is set to true.
|
| public final BindContext | formatNewLine()
Implements org. Settings#isRenderFormatted()
is set to true).
|
| public final BindContext | formatNewLineAfterPrintMargin()
Implements org. Settings#isRenderFormatted()
is set to true, and the formatPrintMargin(int) has
been exceeded).
|
| public final BindContext | formatPrintMargin(int margin)
Implements org. Settings#isRenderFormatted() is set to true.
|
| public final BindContext | formatSeparator()
Implements org. Settings#isRenderFormatted()
is set to true), or a whitespace separator character
otherwise.
|
| public final BindContext | keyword(String keyword)
Implements org. StringBuilder.
|
| public final BindContext | literal(String literal)
Implements org. StringBuilder.
|
| public final String | nextAlias()
Implements org. |
| public final String | peekAlias()
Implements org. nextAlias().
|
| public final String | |
| public final String | render(QueryPart part)
Implements org. |
| public final BindContext | separatorRequired(boolean separatorRequired)
Implements org. visit(QueryPart) call, but leave the decision whether to
generate a formatSeparator() or just a whitespace to that next
QueryPart.
|
| public final boolean | separatorRequired()
Implements org. QueryPart.
|
| public final BindContext | sql(String sql)
Implements org. StringBuilder.
|
| public final BindContext | sql(String sql, boolean literal)
Implements org. StringBuilder.
|
| public final BindContext | sql(char sql)
Implements org. StringBuilder.
|
| public final BindContext | sql(int sql)
Implements org. StringBuilder.
|
| public final BindContext | sql(long sql)
Implements org. StringBuilder.
|
| public final BindContext | sql(float sql)
Implements org. StringBuilder.
|
| public final BindContext | sql(double sql)
Implements org. StringBuilder.
|
| public final BindContext | sqlIndentEnd(String sql)
Implements org. StringBuilder preceded
by the usual calls to formatIndentEnd() and
formatNewLine().
|
| public final BindContext | sqlIndentEnd()
Implements org. StringBuilder preceded
by the usual calls to formatIndentEnd() and
formatNewLine().
|
| public final BindContext | sqlIndentEnd(char sql)
Implements org. StringBuilder preceded
by the usual calls to formatIndentEnd() and
formatNewLine().
|
| public final BindContext | sqlIndentStart(String sql)
Implements org. StringBuilder,
followed by the usual calls to formatIndentStart() and
formatNewLine().
|
| public final BindContext | sqlIndentStart()
Implements org. StringBuilder,
followed by the usual calls to formatIndentStart() and
formatNewLine().
|
| public final BindContext | sqlIndentStart(char sql)
Implements org. StringBuilder,
followed by the usual calls to formatIndentStart() and
formatNewLine().
|
| public String | |
| protected void |
| AbstractBindContext | back to summary |
|---|---|
| pack-priv AbstractBindContext(Configuration configuration, ExecuteContext ctx, PreparedStatement stmt) | |
| bindInternal | back to summary |
|---|---|
| protected void bindInternal(QueryPartInternal internal) Subclasses may override this method to achieve different behaviour | |
| bindValue | back to summary |
|---|---|
| public final BindContext bindValue(Object value, Field<?> field) throws DataAccessException Implements org. Doc from org. Deprecated as a consequence of Bind a value using a specific type. This will also increment the internal counter.
| |
| bindValue0 | back to summary |
|---|---|
| protected BindContext bindValue0(Object value, Field<?> field) throws SQLException
Deprecated as a consequence of Subclasses may override this method to achieve different behaviour
| |
| format | back to summary |
|---|---|
| public final BindContext format(boolean format) Implements org. Doc from org. Override the value of
| |
| format | back to summary |
|---|---|
| public final boolean format() Implements org. Doc from org. The value of
| |
| formatIndentEnd | back to summary |
|---|---|
| public final BindContext formatIndentEnd() Implements org. Doc from org. Stop indenting subsequent SQL by one level (two characters), if
This is the same as calling
| |
| formatIndentEnd | back to summary |
|---|---|
| public final BindContext formatIndentEnd(int indent) Implements org. Doc from org. Stop indenting subsequent SQL by a number of characters, if
| |
| formatIndentLockEnd | back to summary |
|---|---|
| public final BindContext formatIndentLockEnd() Implements org. Doc from org. Stop indenting subsequent SQL at the same level as the current line, if
| |
| formatIndentLockStart | back to summary |
|---|---|
| public final BindContext formatIndentLockStart() Implements org. Doc from org. Start indenting subsequent SQL at the same level as the current line, if
| |
| formatIndentStart | back to summary |
|---|---|
| public final BindContext formatIndentStart() Implements org. Doc from org. Start indenting subsequent SQL by one level (two characters), if
This is the same as calling
| |
| formatIndentStart | back to summary |
|---|---|
| public final BindContext formatIndentStart(int indent) Implements org. Doc from org. Start indenting subsequent SQL by a number of characters, if
| |
| formatNewLine | back to summary |
|---|---|
| public final BindContext formatNewLine() Implements org. Doc from org. Render a new line character (only if
| |
| formatNewLineAfterPrintMargin | back to summary |
|---|---|
| public final BindContext formatNewLineAfterPrintMargin() Implements org. Doc from org. Render a new line character (only if
| |
| formatPrintMargin | back to summary |
|---|---|
| public final BindContext formatPrintMargin(int margin) Implements org. Doc from org. Set a print margin that will be applied to formatted SQL, if
The default print margin is
The print margin is applied to any of these
| |
| formatSeparator | back to summary |
|---|---|
| public final BindContext formatSeparator() Implements org. Doc from org. Render a new line character (only if
| |
| keyword | back to summary |
|---|---|
| public final BindContext keyword(String keyword) Implements org. Doc from org. Append a SQL keyword to the context's contained
Use this to have your SQL keyword rendered in
| |
| literal | back to summary |
|---|---|
| public final BindContext literal(String literal) Implements org. Doc from org. Append some literal to the context's contained
| |
| nextAlias | back to summary |
|---|---|
| public final String nextAlias() Implements org. Doc from org. Return a new alias that is unique for the scope of one query. These aliases are sometimes needed when unaliased projections are defined in subqueries, which can lead to syntax errors.
| |
| peekAlias | back to summary |
|---|---|
| public final String peekAlias() Implements org. Doc from org. Peek the next alias that will be generated by
| |
| render | back to summary |
|---|---|
| public final String render() Implements org. Doc from org. Render the context's underlying SQL statement.
| |
| render | back to summary |
|---|---|
| public final String render(QueryPart part) Implements org. Doc from org. Render a query part in a new context derived from this one. The rendered SQL will not be appended to this context.
| |
| separatorRequired | back to summary |
|---|---|
| public final BindContext separatorRequired(boolean separatorRequired) Implements org. Doc from org. Specify that a separator will be required before the next
| |
| separatorRequired | back to summary |
|---|---|
| public final boolean separatorRequired() Implements org. Doc from org. Whether some sort of separator is required before rendering the next
| |
| sql | back to summary |
|---|---|
| public final BindContext sql(String sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sql | back to summary |
|---|---|
| public final BindContext sql(String sql, boolean literal) Implements org. Doc from org. Append some SQL to the context's contained
Set
| |
| sql | back to summary |
|---|---|
| public final BindContext sql(char sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sql | back to summary |
|---|---|
| public final BindContext sql(int sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sql | back to summary |
|---|---|
| public final BindContext sql(long sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sql | back to summary |
|---|---|
| public final BindContext sql(float sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sql | back to summary |
|---|---|
| public final BindContext sql(double sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sqlIndentEnd | back to summary |
|---|---|
| public final BindContext sqlIndentEnd(String sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sqlIndentEnd | back to summary |
|---|---|
| public final BindContext sqlIndentEnd() Implements org. Doc from org. Append some SQL to the context's contained
| |
| sqlIndentEnd | back to summary |
|---|---|
| public final BindContext sqlIndentEnd(char sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sqlIndentStart | back to summary |
|---|---|
| public final BindContext sqlIndentStart(String sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| sqlIndentStart | back to summary |
|---|---|
| public final BindContext sqlIndentStart() Implements org. Doc from org. Append some SQL to the context's contained
| |
| sqlIndentStart | back to summary |
|---|---|
| public final BindContext sqlIndentStart(char sql) Implements org. Doc from org. Append some SQL to the context's contained
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| visit0 | back to summary |
|---|---|
| protected void visit0(QueryPartInternal internal) Implements abstract org.
| |