toggle menu
DHIS2 Android SDK
1.13.0
androidJvm
switch theme
search in API
DHIS2 Android SDK
/
org.hisp.dhis.android.core.arch.db.access
/
DatabaseAdapter
Database
Adapter
interface
DatabaseAdapter
Members
Properties
is
Ready
Link copied to clipboard
abstract
val
isReady
:
Boolean
Functions
activate
Link copied to clipboard
abstract
fun
activate
(
database
:
AppDatabase
,
databaseName
:
String
)
begin
New
Transaction
Link copied to clipboard
abstract
fun
beginNewTransaction
(
)
:
Transaction
close
Link copied to clipboard
abstract
fun
close
(
)
deactivate
Link copied to clipboard
abstract
fun
deactivate
(
)
delete
Link copied to clipboard
abstract
suspend
fun
delete
(
tableName
:
String
)
:
Int
abstract
suspend
fun
delete
(
tableName
:
String
,
whereClause
:
String
)
:
Int
abstract
suspend
fun
delete
(
tableName
:
String
,
whereClause
:
String
?
,
whereArgs
:
Array
<
Any
>
?
)
:
Int
end
Transaction
Link copied to clipboard
abstract
fun
endTransaction
(
)
exec
SQL
Link copied to clipboard
abstract
suspend
fun
execSQL
(
sql
:
String
)
get
Current
Database
Link copied to clipboard
abstract
fun
getCurrentDatabase
(
)
:
AppDatabase
get
Database
Name
Link copied to clipboard
abstract
fun
getDatabaseName
(
)
:
String
get
Version
Link copied to clipboard
abstract
fun
getVersion
(
)
:
Int
raw
Query
Link copied to clipboard
abstract
suspend
fun
rawQuery
(
sqlQuery
:
String
,
queryArgs
:
Array
<
Any
>
?
=
null
)
:
List
<
Map
<
String
,
String
?
>
>
raw
Query
With
Typed
Values
Link copied to clipboard
abstract
suspend
fun
rawQueryWithTypedValues
(
sqlQuery
:
String
,
queryArgs
:
Array
<
Any
>
?
=
null
)
:
List
<
Map
<
String
,
Any
?
>
>
run
In
Transaction
Link copied to clipboard
abstract
fun
runInTransaction
(
block
:
Runnable
)
set
Foreign
Key
Constraints
Enabled
Link copied to clipboard
abstract
suspend
fun
setForeignKeyConstraintsEnabled
(
enabled
:
Boolean
)
set
Transaction
Successful
Link copied to clipboard
abstract
fun
setTransactionSuccessful
(
)
upsert
Object
Link copied to clipboard
abstract
suspend
fun
<
O
:
CoreObject
>
upsertObject
(
o
:
O
,
kclass
:
KClass
<
O
>
)
:
HandleAction
?