com.j256.ormlite.stmt
Interface PreparedQuery<T>

All Superinterfaces:
GenericRowMapper<T>

public interface PreparedQuery<T>
extends GenericRowMapper<T>

Interface returned by the QueryBuilder.prepareQuery() which supports custom queries. This should be in turn passed to the Dao.query(PreparedQuery) or Dao.iterator(PreparedQuery) methods.

Author:
graywatson

Method Summary
 String getStatement()
          Return the associated SQL statement string for logging purposes.
 PreparedStmt prepareSqlStatement(DatabaseAccess jdbcTemplate)
          Create and return the associated SQL prepared statement for the SQL JdbcTemplate.
 
Methods inherited from interface com.j256.ormlite.stmt.GenericRowMapper
mapRow
 

Method Detail

prepareSqlStatement

PreparedStmt prepareSqlStatement(DatabaseAccess jdbcTemplate)
                                 throws SQLException
Create and return the associated SQL prepared statement for the SQL JdbcTemplate.

Throws:
SQLException

getStatement

String getStatement()
                    throws SQLException
Return the associated SQL statement string for logging purposes.

Throws:
SQLException


Copyright © 2010. All Rights Reserved.