- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
51 lines
1.7 KiB
Java
51 lines
1.7 KiB
Java
package androidx.work.impl.model;
|
|
|
|
import androidx.room.Dao;
|
|
import androidx.room.Insert;
|
|
import androidx.room.Query;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@Dao
|
|
/* loaded from: classes.dex */
|
|
public interface SystemIdInfoDao {
|
|
@Query("SELECT * FROM SystemIdInfo WHERE work_spec_id=:workSpecId AND generation=:generation")
|
|
SystemIdInfo getSystemIdInfo(String str, int i);
|
|
|
|
@Query("SELECT DISTINCT work_spec_id FROM SystemIdInfo")
|
|
List<String> getWorkSpecIds();
|
|
|
|
@Insert(onConflict = 1)
|
|
void insertSystemIdInfo(SystemIdInfo systemIdInfo);
|
|
|
|
@Query("DELETE FROM SystemIdInfo where work_spec_id=:workSpecId")
|
|
void removeSystemIdInfo(String str);
|
|
|
|
@Query("DELETE FROM SystemIdInfo where work_spec_id=:workSpecId AND generation=:generation")
|
|
void removeSystemIdInfo(String str, int i);
|
|
|
|
public static final class DefaultImpls {
|
|
@Deprecated
|
|
public static SystemIdInfo getSystemIdInfo(SystemIdInfoDao systemIdInfoDao, WorkGenerationalId id) {
|
|
Intrinsics.checkNotNullParameter(id, "id");
|
|
return SystemIdInfoDao.super.getSystemIdInfo(id);
|
|
}
|
|
|
|
@Deprecated
|
|
public static void removeSystemIdInfo(SystemIdInfoDao systemIdInfoDao, WorkGenerationalId id) {
|
|
Intrinsics.checkNotNullParameter(id, "id");
|
|
SystemIdInfoDao.super.removeSystemIdInfo(id);
|
|
}
|
|
}
|
|
|
|
default SystemIdInfo getSystemIdInfo(WorkGenerationalId id) {
|
|
Intrinsics.checkNotNullParameter(id, "id");
|
|
return getSystemIdInfo(id.getWorkSpecId(), id.getGeneration());
|
|
}
|
|
|
|
default void removeSystemIdInfo(WorkGenerationalId id) {
|
|
Intrinsics.checkNotNullParameter(id, "id");
|
|
removeSystemIdInfo(id.getWorkSpecId(), id.getGeneration());
|
|
}
|
|
}
|