Package org.hibernate.sql.ast.spi
Interface SqlAppender
-
- All Superinterfaces:
Appendable
- All Known Implementing Classes:
AbstractSqlAstTranslator
,CockroachSqlAstTranslator
,DB2iSqlAstTranslator
,DB2SqlAstTranslator
,DB2zSqlAstTranslator
,DerbySqlAstTranslator
,H2SqlAstTranslator
,HANASqlAstTranslator
,HSQLSqlAstTranslator
,MariaDBSqlAstTranslator
,MySQLSqlAstTranslator
,OracleSqlAstTranslator
,PostgreSQLSqlAstTranslator
,SpannerSqlAstTranslator
,SqlAstTranslatorWithMerge
,SqlAstTranslatorWithUpsert
,SQLServerSqlAstTranslator
,StandardSqlAstTranslator
,StringBuilderSqlAppender
,SybaseASESqlAstTranslator
,SybaseSqlAstTranslator
,TiDBSqlAstTranslator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SqlAppender extends Appendable
Access to appending SQL fragments to an in-flight buffer
-
-
Field Summary
Fields Modifier and Type Field Description static char
CLOSE_PARENTHESIS
static String
COMA_SEPARATOR
static char
COMA_SEPARATOR_CHAR
static String
NO_SEPARATOR
static String
NULL_KEYWORD
static char
OPEN_PARENTHESIS
static char
PARAM_MARKER
static char
WHITESPACE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Appendable
append(char c)
default Appendable
append(CharSequence csq)
default Appendable
append(CharSequence csq, int start, int end)
default void
appendSql(boolean value)
default void
appendSql(char fragment)
default void
appendSql(int value)
default void
appendSql(long value)
void
appendSql(String fragment)
Add the passed fragment into the in-flight buffer
-
-
-
Field Detail
-
NO_SEPARATOR
static final String NO_SEPARATOR
- See Also:
- Constant Field Values
-
COMA_SEPARATOR
static final String COMA_SEPARATOR
- See Also:
- Constant Field Values
-
COMA_SEPARATOR_CHAR
static final char COMA_SEPARATOR_CHAR
- See Also:
- Constant Field Values
-
WHITESPACE
static final char WHITESPACE
- See Also:
- Constant Field Values
-
OPEN_PARENTHESIS
static final char OPEN_PARENTHESIS
- See Also:
- Constant Field Values
-
CLOSE_PARENTHESIS
static final char CLOSE_PARENTHESIS
- See Also:
- Constant Field Values
-
PARAM_MARKER
static final char PARAM_MARKER
- See Also:
- Constant Field Values
-
NULL_KEYWORD
static final String NULL_KEYWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
appendSql
void appendSql(String fragment)
Add the passed fragment into the in-flight buffer
-
appendSql
default void appendSql(char fragment)
-
appendSql
default void appendSql(int value)
-
appendSql
default void appendSql(long value)
-
appendSql
default void appendSql(boolean value)
-
append
default Appendable append(CharSequence csq)
- Specified by:
append
in interfaceAppendable
-
append
default Appendable append(CharSequence csq, int start, int end)
- Specified by:
append
in interfaceAppendable
-
append
default Appendable append(char c)
- Specified by:
append
in interfaceAppendable
-
-