public final class SqlDatabaseFunctions
extends java.lang.Object
Function instances.| Modifier and Type | Method and Description |
|---|---|
static com.google.android.agera.Function<SqlDeleteRequest,com.google.android.agera.Result<java.lang.Integer>> |
databaseDeleteFunction(com.google.android.agera.Supplier<com.google.android.agera.Result<android.database.sqlite.SQLiteDatabase>> database)
Creates a sql delete
Function. |
static com.google.android.agera.Function<SqlInsertRequest,com.google.android.agera.Result<java.lang.Long>> |
databaseInsertFunction(com.google.android.agera.Supplier<com.google.android.agera.Result<android.database.sqlite.SQLiteDatabase>> database)
Creates a sql insert
Function. |
static <T> com.google.android.agera.Function<SqlRequest,com.google.android.agera.Result<java.util.List<T>>> |
databaseQueryFunction(com.google.android.agera.Supplier<com.google.android.agera.Result<android.database.sqlite.SQLiteDatabase>> database,
com.google.android.agera.Function<android.database.Cursor,T> rowMap)
Creates a sql query
Function. |
static com.google.android.agera.Function<SqlUpdateRequest,com.google.android.agera.Result<java.lang.Integer>> |
databaseUpdateFunction(com.google.android.agera.Supplier<com.google.android.agera.Result<android.database.sqlite.SQLiteDatabase>> database)
Creates a sql update
Function. |
@NonNull public static <T> com.google.android.agera.Function<SqlRequest,com.google.android.agera.Result<java.util.List<T>>> databaseQueryFunction(@NonNull com.google.android.agera.Supplier<com.google.android.agera.Result<android.database.sqlite.SQLiteDatabase>> database, @NonNull com.google.android.agera.Function<android.database.Cursor,T> rowMap)
Function.@NonNull public static com.google.android.agera.Function<SqlInsertRequest,com.google.android.agera.Result<java.lang.Long>> databaseInsertFunction(@NonNull com.google.android.agera.Supplier<com.google.android.agera.Result<android.database.sqlite.SQLiteDatabase>> database)
Function.@NonNull public static com.google.android.agera.Function<SqlUpdateRequest,com.google.android.agera.Result<java.lang.Integer>> databaseUpdateFunction(@NonNull com.google.android.agera.Supplier<com.google.android.agera.Result<android.database.sqlite.SQLiteDatabase>> database)
Function.@NonNull public static com.google.android.agera.Function<SqlDeleteRequest,com.google.android.agera.Result<java.lang.Integer>> databaseDeleteFunction(@NonNull com.google.android.agera.Supplier<com.google.android.agera.Result<android.database.sqlite.SQLiteDatabase>> database)
Function.