com.j256.ormlite.stmt.mapped
Class MappedQueryForId<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.MappedQueryForId<T,ID>
- All Implemented Interfaces:
- GenericRowMapper<T>
- Direct Known Subclasses:
- MappedRefresh
public class MappedQueryForId<T,ID>
- extends BaseMappedQuery<T,ID>
Mapped statement for querying for an object by its ID.
- Author:
- graywatson
MappedQueryForId
protected MappedQueryForId(TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes,
FieldType[] resultsFieldTypes,
String label)
execute
public T execute(DatabaseConnection databaseConnection,
ID id,
ObjectCache objectCache)
throws SQLException
- Query for an object in the database which matches the id argument.
- Throws:
SQLException
build
public static <T,ID> MappedQueryForId<T,ID> build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo)
throws SQLException
- Throws:
SQLException
buildStatement
protected static <T,ID> String buildStatement(DatabaseType databaseType,
TableInfo<T,ID> tableInfo)
throws SQLException
- Throws:
SQLException
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.