Package org.apache.cayenne.access.jdbc
Class SQLStatement
java.lang.Object
org.apache.cayenne.access.jdbc.SQLStatement
A PreparedStatement descriptor containing a String of SQL and an array of parameters.
SQLStatement is essentially a "compiled" version of any single query.
- Since:
- 1.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected ParameterBinding[]
protected ColumnDescriptor[]
protected String
-
Constructor Summary
ConstructorDescriptionSQLStatement
(String sql, ColumnDescriptor[] resultColumns, ParameterBinding[] bindings) SQLStatement
(String sql, ParameterBinding[] bindings) -
Method Summary
Modifier and TypeMethodDescriptiongetSql()
void
setBindings
(ParameterBinding[] bindings) void
setResultColumns
(ColumnDescriptor[] descriptors) void
-
Field Details
-
sql
-
bindings
-
resultColumns
-
-
Constructor Details
-
SQLStatement
public SQLStatement() -
SQLStatement
-
SQLStatement
- Since:
- 1.2
-
-
Method Details
-
getResultColumns
- Since:
- 1.2
-
setResultColumns
- Since:
- 1.2
-
getBindings
-
getSql
-
setBindings
-
setSql
-