com.j256.ormlite.stmt.mapped
Class MappedPreparedStmt<T,ID>
java.lang.Object
com.j256.ormlite.stmt.mapped.BaseMappedStatement<T,ID>
com.j256.ormlite.stmt.mapped.BaseMappedQuery<T,ID>
com.j256.ormlite.stmt.mapped.MappedPreparedStmt<T,ID>
- All Implemented Interfaces:
- GenericRowMapper<T>, PreparedDelete<T>, PreparedQuery<T>, PreparedStmt<T>, PreparedUpdate<T>
public class MappedPreparedStmt<T,ID>
- extends BaseMappedQuery<T,ID>
- implements PreparedQuery<T>, PreparedDelete<T>, PreparedUpdate<T>
Mapped statement used by the StatementBuilder.prepareStatement()
method.
- Author:
- graywatson
MappedPreparedStmt
public MappedPreparedStmt(TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes,
FieldType[] resultFieldTypes,
ArgumentHolder[] argHolders,
Integer limit,
StatementBuilder.StatementType type)
compile
public CompiledStatement compile(DatabaseConnection databaseConnection,
StatementBuilder.StatementType type)
throws SQLException
- Description copied from interface:
PreparedStmt
- Create and return the associated compiled statement.
- Specified by:
compile
in interface PreparedStmt<T>
- Throws:
SQLException
getStatement
public String getStatement()
- Description copied from interface:
PreparedStmt
- Return the associated SQL statement string for logging purposes.
- Specified by:
getStatement
in interface PreparedStmt<T>
getType
public StatementBuilder.StatementType getType()
- Description copied from interface:
PreparedStmt
- Return the type of the statement for internal consistency checking.
- Specified by:
getType
in interface PreparedStmt<T>
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.