StorageDomain.Database


public final class StorageDomain.Database extends StorageDomain


Targets structured SQLite/Room database records.

Summary

Public constructors

Database(
    @NonNull String dbName,
    @NonNull String table,
    @NonNull String primaryKeyCol,
    @NonNull Object primaryKeyVal,
    @NonNull Map<@NonNull StringObject> columnValues
)

Public methods

boolean
equals(Object other)
final @NonNull Map<@NonNull StringObject>

A Map of column names to their values to populate or verify.

final @NonNull String

The name of the SQLite database file on the device.

final @NonNull String

The column name of the primary key used to identify the target record.

final @NonNull Object

The value of the primary key used to identify the target record.

final @NonNull String

The target table name to insert into or query from.

int
@NonNull String

Public constructors

Database

public Database(
    @NonNull String dbName,
    @NonNull String table,
    @NonNull String primaryKeyCol,
    @NonNull Object primaryKeyVal,
    @NonNull Map<@NonNull StringObject> columnValues
)

Public methods

equals

public boolean equals(Object other)

getColumnValues

Added in 1.0.0-alpha01
public final @NonNull Map<@NonNull StringObjectgetColumnValues()

A Map of column names to their values to populate or verify. Supported types are: String, Int, Long, Float, Double, Boolean, or null.

getDbName

Added in 1.0.0-alpha01
public final @NonNull String getDbName()

The name of the SQLite database file on the device.

getPrimaryKeyCol

Added in 1.0.0-alpha01
public final @NonNull String getPrimaryKeyCol()

The column name of the primary key used to identify the target record.

getPrimaryKeyVal

Added in 1.0.0-alpha01
public final @NonNull Object getPrimaryKeyVal()

The value of the primary key used to identify the target record. Supported types are: String, Int, Long, Float, Double, Boolean.

getTable

Added in 1.0.0-alpha01
public final @NonNull String getTable()

The target table name to insert into or query from.

hashCode

public int hashCode()

toString

public @NonNull String toString()