T - type of objects to put.public abstract class DefaultPutResolver<T> extends PutResolver<T>
PutResolver.
Thread-safe.
| Constructor and Description |
|---|
DefaultPutResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract android.content.ContentValues |
mapToContentValues(T object)
Converts object of required type to
ContentValues. |
protected abstract InsertQuery |
mapToInsertQuery(T object)
Converts object of required type to
InsertQuery. |
protected abstract UpdateQuery |
mapToUpdateQuery(T object)
Converts object of required type to
UpdateQuery. |
PutResult |
performPut(StorIOSQLite storIOSQLite,
T object)
Performs put of an object.
|
@NonNull protected abstract InsertQuery mapToInsertQuery(@NonNull T object)
InsertQuery.object - non-null object that should be converted to InsertQuery.InsertQuery.@NonNull protected abstract UpdateQuery mapToUpdateQuery(@NonNull T object)
UpdateQuery.object - non-null object that should be converted to UpdateQuery.UpdateQuery.@NonNull
protected abstract android.content.ContentValues mapToContentValues(@NonNull
T object)
ContentValues.object - non-null object that should be converted to ContentValues.ContentValues.@NonNull public PutResult performPut(@NonNull StorIOSQLite storIOSQLite, @NonNull T object)
performPut in class PutResolver<T>storIOSQLite - StorIOSQLite instance to perform put into.object - non-null object that should be put into StorIOSQLite.