|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.StatementText
Representation of a statement.
Constructor Summary | |
StatementText()
Constructor |
|
StatementText(java.lang.String initialStatementText)
Constructor |
Method Summary | |
StatementText |
append(char c)
Append a char |
StatementText |
append(QueryExpression qsc)
Append a QueryExpression |
StatementText |
append(ScalarExpression expr)
Append a ScalarExpression |
StatementText |
append(StatementText st,
int mode)
Append a StatementText |
StatementText |
append(java.lang.String s)
Append a char |
java.lang.String |
appendParameter(JavaTypeMapping mapping,
java.lang.Object value)
Append a parameter |
void |
clearStatement()
Convenience method to reset the SQL for the statement. |
void |
encloseWithInParentheses()
Whether to enclose this statement within parentheses |
StatementText |
postpend(java.lang.String s)
Set a String to the end of the statement. |
java.sql.PreparedStatement |
prepareStatement(PersistenceManager pm,
java.sql.Connection conn)
Generate a PreparedStatement with the default result set. |
java.sql.PreparedStatement |
prepareStatement(PersistenceManager pm,
java.sql.Connection conn,
java.lang.String resultSetType,
java.lang.String resultSetConcurrency)
Generate a PreparedStatement with the specified result set characteristics. |
java.lang.String |
toStatementString(int mode)
Accessor for the SQL of the statement. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StatementText()
public StatementText(java.lang.String initialStatementText)
initialStatementText
- Method Detail |
public void clearStatement()
public void encloseWithInParentheses()
public StatementText postpend(java.lang.String s)
s
- the string
public StatementText append(char c)
c
- the char
public StatementText append(java.lang.String s)
s
- the String
public StatementText append(QueryExpression qsc)
qsc
- the QueryExpression
public StatementText append(StatementText st, int mode)
st
- the StatementText
public StatementText append(ScalarExpression expr)
expr
- the ScalarExpression
public java.lang.String appendParameter(JavaTypeMapping mapping, java.lang.Object value)
mapping
- the mappingvalue
- the parameter value
public java.sql.PreparedStatement prepareStatement(PersistenceManager pm, java.sql.Connection conn, java.lang.String resultSetType, java.lang.String resultSetConcurrency) throws java.sql.SQLException
pm
- the PersistenceManagerconn
- the java.sql.ConnectionresultSetType
- Type of result setresultSetConcurrency
- Concurrency of result set
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(PersistenceManager pm, java.sql.Connection conn) throws java.sql.SQLException
pm
- the PersistenceManagerconn
- the java.sql.Connection
java.sql.SQLException
public java.lang.String toStatementString(int mode)
mode
- (0=PROJECTION;1=FILTER)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |