com.j256.ormlite.stmt.mapped
Class MappedRefresh<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>
com.j256.ormlite.stmt.mapped.MappedRefresh<T,ID>
- All Implemented Interfaces:
- GenericRowMapper<T>
public class MappedRefresh<T,ID>
- extends MappedQueryForId<T,ID>
Mapped statement for refreshing the fields in an object.
- Author:
- graywatson
executeRefresh
public int executeRefresh(DatabaseConnection databaseConnection,
T data)
throws SQLException
- Execute our refresh query statement and then update all of the fields in data with the fields from the result.
- Returns:
- 1 if we found the object in the table by id or 0 if not.
- Throws:
SQLException
build
public static <T,ID> MappedRefresh<T,ID> build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo)
throws SQLException
- Throws:
SQLException
Copyright © 2011. All Rights Reserved.