|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.j256.ormlite.stmt.mapped.BaseMappedStatement<T,ID>
com.j256.ormlite.stmt.mapped.BaseMappedQuery<T,ID>
com.j256.ormlite.stmt.mapped.MappedQueryForId<T,ID>
public class MappedQueryForId<T,ID>
Mapped statement for querying for an object by its ID.
| Field Summary |
|---|
| Fields inherited from class com.j256.ormlite.stmt.mapped.BaseMappedQuery |
|---|
resultsFieldTypes |
| Fields inherited from class com.j256.ormlite.stmt.mapped.BaseMappedStatement |
|---|
argFieldTypes, clazz, idField, logger, statement, tableInfo |
| Constructor Summary | |
|---|---|
protected |
MappedQueryForId(TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes,
FieldType[] resultsFieldTypes,
String label)
|
| Method Summary | ||
|---|---|---|
static
|
build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo)
|
|
protected static
|
buildStatement(DatabaseType databaseType,
TableInfo<T,ID> tableInfo)
|
|
T |
execute(DatabaseConnection databaseConnection,
ID id,
ObjectCache objectCache)
Query for an object in the database which matches the id argument. |
|
| Methods inherited from class com.j256.ormlite.stmt.mapped.BaseMappedQuery |
|---|
mapRow, setParentObject |
| Methods inherited from class com.j256.ormlite.stmt.mapped.BaseMappedStatement |
|---|
convertIdToFieldObject, getFieldObjects, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected MappedQueryForId(TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes,
FieldType[] resultsFieldTypes,
String label)
| Method Detail |
|---|
public T execute(DatabaseConnection databaseConnection,
ID id,
ObjectCache objectCache)
throws SQLException
SQLException
public static <T,ID> MappedQueryForId<T,ID> build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo)
throws SQLException
SQLException
protected static <T,ID> String buildStatement(DatabaseType databaseType,
TableInfo<T,ID> tableInfo)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||