Package org.hibernate.sql.ast.spi
Class StringBuilderSqlAppender
- java.lang.Object
-
- org.hibernate.sql.ast.spi.StringBuilderSqlAppender
-
- All Implemented Interfaces:
Appendable
,SqlAppender
public class StringBuilderSqlAppender extends Object implements SqlAppender
Access to appending SQL fragments to a StringBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBuilder
sb
-
Fields inherited from interface org.hibernate.sql.ast.spi.SqlAppender
CLOSE_PARENTHESIS, COMMA_SEPARATOR, COMMA_SEPARATOR_CHAR, NO_SEPARATOR, NULL_KEYWORD, OPEN_PARENTHESIS, PARAM_MARKER, WHITESPACE
-
-
Constructor Summary
Constructors Constructor Description StringBuilderSqlAppender()
StringBuilderSqlAppender(StringBuilder sb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Appendable
append(char c)
Appendable
append(CharSequence csq)
Appendable
append(CharSequence csq, int start, int end)
void
appendSql(boolean value)
void
appendSql(char fragment)
void
appendSql(int value)
void
appendSql(long value)
void
appendSql(String fragment)
Add the passed fragment into the in-flight bufferStringBuilder
getStringBuilder()
String
toString()
-
-
-
Field Detail
-
sb
protected final StringBuilder sb
-
-
Constructor Detail
-
StringBuilderSqlAppender
public StringBuilderSqlAppender()
-
StringBuilderSqlAppender
public StringBuilderSqlAppender(StringBuilder sb)
-
-
Method Detail
-
getStringBuilder
public StringBuilder getStringBuilder()
-
appendSql
public void appendSql(String fragment)
Description copied from interface:SqlAppender
Add the passed fragment into the in-flight buffer- Specified by:
appendSql
in interfaceSqlAppender
-
appendSql
public void appendSql(char fragment)
- Specified by:
appendSql
in interfaceSqlAppender
-
appendSql
public void appendSql(int value)
- Specified by:
appendSql
in interfaceSqlAppender
-
appendSql
public void appendSql(long value)
- Specified by:
appendSql
in interfaceSqlAppender
-
appendSql
public void appendSql(boolean value)
- Specified by:
appendSql
in interfaceSqlAppender
-
append
public Appendable append(CharSequence csq)
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfaceSqlAppender
-
append
public Appendable append(CharSequence csq, int start, int end)
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfaceSqlAppender
-
append
public Appendable append(char c)
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfaceSqlAppender
-
-