|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.datastore.sql.StatementBuffer
public class StatementBuffer
Helper class for the creation and logging of PreparedStatement
s.
It allows to concatenate the query step by step and holds the arguments of the query as well.
Nested Class Summary | |
---|---|
class |
StatementBuffer.StatementArgument
Encapsulates an argument value and the SQL type code for the target column. |
Constructor Summary | |
---|---|
StatementBuffer()
|
Method Summary | |
---|---|
void |
addArgument(java.lang.Object o,
int typeCode)
Appends the given argument (as the replacement value for the '?' |
void |
append(char c)
Appends the given character to the statement. |
void |
append(java.lang.String s)
Appends the given string to the statement. |
void |
append(java.lang.StringBuffer sb)
Appends the given StringBuffer to the statement. |
java.util.Iterator<StatementBuffer.StatementArgument> |
getArgumentsIterator()
Returns an Iterator over the arguments of the query. |
java.lang.String |
getQueryString()
Returns the query string (without the arguments' values). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatementBuffer()
Method Detail |
---|
public void append(char c)
c
- public void append(java.lang.String s)
s
- public void append(java.lang.StringBuffer sb)
StringBuffer
to the statement.
sb
- public void addArgument(java.lang.Object o, int typeCode)
o
- typeCode
- public java.lang.String getQueryString()
public java.util.Iterator<StatementBuffer.StatementArgument> getArgumentsIterator()
Iterator
over the arguments of the query.
public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org