org.apache.openjpa.jdbc.sql
Class SQLBuffer

Buffer for SQL statements that can be used to create
java.sql.PreparedStatements.
This buffer holds the SQL statement parameters and their corresponding
columns. The parameters introduced by the runtime system are distinguished
from the parameters set by the user.

appendValue

appendValue

Append a user parameter value for a specific column. User parameters
are marked as opposed to the parameters inserted by the internal runtime
system. This helps to reuse the buffer by reparmeterizing it with new
set of user parameters while the 'internal' parameters remain unchanged.

Parameters:

userParam - if non-null, designates a 'user' parameter.

getParameters

getUserParameters

Get the user parameter positions in the list of parameters. The odd
element of the returned list contains an integer index that refers
to the position in the getParameters() list. The even element
of the returned list refers to the user parameter key.
This structure is preferred over a normal map because a user parameter
may occur more than one in the parameters.