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 StringBuildersb-
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 Appendableappend(char c)Appendableappend(CharSequence csq)Appendableappend(CharSequence csq, int start, int end)voidappendSql(boolean value)voidappendSql(char fragment)voidappendSql(int value)voidappendSql(long value)voidappendSql(String fragment)Add the passed fragment into the in-flight bufferStringBuildergetStringBuilder()StringtoString()
-
-
-
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:SqlAppenderAdd the passed fragment into the in-flight buffer- Specified by:
appendSqlin interfaceSqlAppender
-
appendSql
public void appendSql(char fragment)
- Specified by:
appendSqlin interfaceSqlAppender
-
appendSql
public void appendSql(int value)
- Specified by:
appendSqlin interfaceSqlAppender
-
appendSql
public void appendSql(long value)
- Specified by:
appendSqlin interfaceSqlAppender
-
appendSql
public void appendSql(boolean value)
- Specified by:
appendSqlin interfaceSqlAppender
-
append
public Appendable append(CharSequence csq)
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceSqlAppender
-
append
public Appendable append(CharSequence csq, int start, int end)
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceSqlAppender
-
append
public Appendable append(char c)
- Specified by:
appendin interfaceAppendable- Specified by:
appendin interfaceSqlAppender
-
-