gsdsdk / com.gsd.software.sdk.netconnector.sync.dfobject.repository / DfObjectRepository
class DfObjectRepository :
DfObjectDataSource
Created by jmielczarek on 27.11.2019.
Name | Summary |
---|---|
<init> | DfObjectRepository(dfObjectTableQuery: DfObjectTableQuery , dfObjectModifyQuery: DfObjectModifyQuery , observersManager: ObserversManager ) Created by jmielczarek on 27.11.2019. |
Name | Summary |
---|---|
createTables | fun createTables(syncSchemas: List < SyncSchema >): Unit |
delete | fun delete(tableName: String , objectIds: List < String >): Unit |
dropTables | fun dropTables(syncSchemas: List < SyncSchema >): Unit |
getAllLiveData | fun getAllLiveData(schemaTable: SchemaTable ): LiveData< List < DfObject >> |
getById | fun getById(syncSchema: SyncSchema , objectId: String ): DfObject |
getByIdLiveData | fun getByIdLiveData(syncSchema: SyncSchema , objectId: String ): LiveData< DfObject > |
getDfObjects | fun getDfObjects(syncSchema: SyncSchema ): List < DfObject > |
insertOrUpdate | fun insertOrUpdate(schemaName: String , objectMap: DfObject ): Unit fun insertOrUpdate(schemaName: String , objectMaps: List < DfObject >): Unit |
markToDelete | fun markToDelete(tableName: String , objectIds: List < String >): Unit |
unmarkToDelete | fun unmarkToDelete(tableName: String , objectIds: List < String >): Unit |