|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.criteria.PreparedStatementPart
public class PreparedStatementPart
The rendered SQL for a part of a prepared statement.
Constructor Summary | |
---|---|
PreparedStatementPart()
Default constructor, creates an empty PreparedStatementPart. |
|
PreparedStatementPart(String sql,
Object... preparedStatementReplacements)
Constructor, creates a pre-filled PreparedStatementPart. |
Method Summary | |
---|---|
PreparedStatementPart |
append(PreparedStatementPart toAppend)
Appends another PreparedStatementPart to this part. |
PreparedStatementPart |
append(SqlEnum toAppend)
Appends a SqlEnum to this part. |
boolean |
equals(Object obj)
|
List<Object> |
getPreparedStatementReplacements()
Returns the list of prepared statement replacements. |
StringBuilder |
getSql()
Returns the SQL of the part. |
String |
getSqlAsString()
Returns the SQL of the part as String. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PreparedStatementPart()
public PreparedStatementPart(String sql, Object... preparedStatementReplacements)
sql
- The sql to fill into the sql buffer initially, or null.preparedStatementReplacements
- the prepared statement replacements
to start with, or null.Method Detail |
---|
public StringBuilder getSql()
public String getSqlAsString()
public List<Object> getPreparedStatementReplacements()
public PreparedStatementPart append(PreparedStatementPart toAppend)
toAppend
- the part to append, not null.
public PreparedStatementPart append(SqlEnum toAppend)
toAppend
- the part to append, not null.
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |