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

public Class StringBuilderSqlAppender

extends Object
implements SqlAppender
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.ast.spi.SqlAppender, java.lang.Appendable
Known Direct Subclasses
org.hibernate.dialect.AbstractPostgreSQLStructJdbcType.PostgreSQLAppender

Access to appending SQL fragments to a StringBuilder

Field Summary

Modifier and TypeField and Description
protected final StringBuilder

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

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

Overrides default org.hibernate.sql.ast.spi.SqlAppender.append.

Appends the specified character sequence to this Appendable.
public 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
)

Overrides default org.hibernate.sql.ast.spi.SqlAppender.append.

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

Overrides default org.hibernate.sql.ast.spi.SqlAppender.append.

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

Implements org.hibernate.sql.ast.spi.SqlAppender.appendSql.

Add the passed fragment into the in-flight buffer
public void
public void
public void
public void
public StringBuilder
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

sbback to summary
protected final StringBuilder sb

Constructor Detail

StringBuilderSqlAppenderback to summary
public StringBuilderSqlAppender()
StringBuilderSqlAppenderback to summary
public StringBuilderSqlAppender(StringBuilder sb)

Method Detail

appendback to summary
public Appendable append(CharSequence csq)

Overrides default org.hibernate.sql.ast.spi.SqlAppender.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

Annotations
@Override
appendback to summary
public Appendable append(CharSequence csq, int start, int end)

Overrides default org.hibernate.sql.ast.spi.SqlAppender.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

Annotations
@Override
appendback to summary
public Appendable append(char c)

Overrides default org.hibernate.sql.ast.spi.SqlAppender.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

Annotations
@Override
appendSqlback to summary
public void appendSql(String fragment)

Implements org.hibernate.sql.ast.spi.SqlAppender.appendSql.

Doc from org.hibernate.sql.ast.spi.SqlAppender.appendSql.

Add the passed fragment into the in-flight buffer

Annotations
@Override
appendSqlback to summary
public void appendSql(char fragment)

Overrides default org.hibernate.sql.ast.spi.SqlAppender.appendSql.

Annotations
@Override
appendSqlback to summary
public void appendSql(int value)

Overrides default org.hibernate.sql.ast.spi.SqlAppender.appendSql.

Annotations
@Override
appendSqlback to summary
public void appendSql(long value)

Overrides default org.hibernate.sql.ast.spi.SqlAppender.appendSql.

Annotations
@Override
appendSqlback to summary
public void appendSql(boolean value)

Overrides default org.hibernate.sql.ast.spi.SqlAppender.appendSql.

Annotations
@Override
getStringBuilderback to summary
public StringBuilder getStringBuilder()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override