Top Description Fields Methods
org.hibernate.sql.ast.spi

public Interface SqlAppender

extends Appendable
Known Direct Implementers
org.hibernate.sql.ast.spi.StringBuilderSqlAppender, org.hibernate.dialect.JsonHelper.JsonAppender, org.hibernate.dialect.XmlHelper.XMLAppender, org.hibernate.sql.ast.spi.AbstractSqlAstTranslator
Annotations
@FunctionalInterface

Access to appending SQL fragments to an in-flight buffer
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final char
public static final String
public static final char
public static final String
public static final String
public static final char
public static final char
public static final char

Method Summary

Modifier and TypeMethod and Description
public default Appendable
append(CharSequence
The character sequence to append. If csq is null, then the four characters "null" are appended to this Appendable.
csq
)

Implements java.lang.Appendable.append.

Appends the specified character sequence to this Appendable.
public default Appendable
append(CharSequence
The character sequence from which a subsequence will be appended. If csq is null, then characters will be appended as if csq contained the four characters "null".
csq
,
int
The index of the first character in the subsequence
start
,
int
The index of the character following the last character in the subsequence
end
)

Implements java.lang.Appendable.append.

Appends a subsequence of the specified character sequence to this Appendable.
public default Appendable
append(char
The character to append
c
)

Implements java.lang.Appendable.append.

Appends the specified character to this Appendable.
public void
appendSql(String fragment)

Add the passed fragment into the in-flight buffer

public default void
appendSql(char fragment)

public default void
appendSql(int value)

public default void
appendSql(long value)

public default void
appendSql(boolean value)

Field Detail

CLOSE_PARENTHESISback to summary
public static final char CLOSE_PARENTHESIS
COMMA_SEPARATORback to summary
public static final String COMMA_SEPARATOR
COMMA_SEPARATOR_CHARback to summary
public static final char COMMA_SEPARATOR_CHAR
NO_SEPARATORback to summary
public static final String NO_SEPARATOR
NULL_KEYWORDback to summary
public static final String NULL_KEYWORD
OPEN_PARENTHESISback to summary
public static final char OPEN_PARENTHESIS
PARAM_MARKERback to summary
public static final char PARAM_MARKER
WHITESPACEback to summary
public static final char WHITESPACE

Method Detail

appendback to summary
public default Appendable append(CharSequence csq)

Implements java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends the specified character sequence to this Appendable.

Depending on which class implements the character sequence csq, the entire sequence may not be appended. For instance, if csq is a java.nio.CharBuffer then the subsequence to append is defined by the buffer's position and limit.

Parameters
csq:CharSequence

The character sequence to append. If csq is null, then the four characters "null" are appended to this Appendable.

Returns:Appendable

A reference to this Appendable

appendback to summary
public default Appendable append(CharSequence csq, int start, int end)

Implements java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends a subsequence of the specified character sequence to this Appendable.

An invocation of this method of the form out.append(csq, start, end) when csq is not null, behaves in exactly the same way as the invocation

    out.append(csq.subSequence(start, end)) 
Parameters
csq:CharSequence

The character sequence from which a subsequence will be appended. If csq is null, then characters will be appended as if csq contained the four characters "null".

start:int

The index of the first character in the subsequence

end:int

The index of the character following the last character in the subsequence

Returns:Appendable

A reference to this Appendable

appendback to summary
public default Appendable append(char c)

Implements java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends the specified character to this Appendable.

Parameters
c:char

The character to append

Returns:Appendable

A reference to this Appendable

appendSqlback to summary
public void appendSql(String fragment)

Add the passed fragment into the in-flight buffer

appendSqlback to summary
public default void appendSql(char fragment)
appendSqlback to summary
public default void appendSql(int value)
appendSqlback to summary
public default void appendSql(long value)
appendSqlback to summary
public default void appendSql(boolean value)