Some Javadoc clarification

This commit is contained in:
Lukas Eder 2012-02-24 17:24:31 +00:00
parent b2f027a2dc
commit d1a99bc3f8
2 changed files with 4 additions and 3 deletions

View File

@ -554,7 +554,7 @@ public interface FactoryOperations extends Configuration {
* Statement s = connection.createStatement();
*
* for (Query query : queries) {
* s.addBatch(renderInlined(query));
* s.addBatch(query.getSQL(true));
* }
*
* s.execute();
@ -576,7 +576,7 @@ public interface FactoryOperations extends Configuration {
* </pre></code>
* <p>
* This essentially runs the following logic: <code><pre>
* Statement s = connection.prepareStatement(render(query));
* Statement s = connection.prepareStatement(query.getSQL(false));
*
* for (Object[] bindValues : allBindValues) {
* for (Object bindValue : bindValues) {

View File

@ -119,7 +119,8 @@ public interface Query extends QueryPart {
* <p>
* See {@link #getSQL()} for more details
*
* @param inline Whether to inline bind variables
* @param inline Whether to inline bind variables. This overrides values in
* {@link Settings#getStatementType()}
* @return The generated SQL
*/
String getSQL(boolean inline);