mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 09:27:16 +01:00
61 lines
3.5 KiB
Java
61 lines
3.5 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.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Dao
|
|
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\bg\u0018\u00002\u00020\u0001J\u0012\u0010\u0002\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0016J\u001a\u0010\u0002\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH'J\u000e\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00070\u000bH'J\u0010\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u0003H'J\u0010\u0010\u000f\u001a\u00020\r2\u0006\u0010\u0004\u001a\u00020\u0005H\u0016J\u0010\u0010\u000f\u001a\u00020\r2\u0006\u0010\u0006\u001a\u00020\u0007H'J\u0018\u0010\u000f\u001a\u00020\r2\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH'ø\u0001\u0000\u0082\u0002\u0006\n\u0004\b!0\u0001¨\u0006\u0010À\u0006\u0003"}, d2 = {"Landroidx/work/impl/model/SystemIdInfoDao;", "", "getSystemIdInfo", "Landroidx/work/impl/model/SystemIdInfo;", "id", "Landroidx/work/impl/model/WorkGenerationalId;", "workSpecId", "", "generation", "", "getWorkSpecIds", "", "insertSystemIdInfo", "", "systemIdInfo", "removeSystemIdInfo", "work-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes14.dex */
|
|
public interface SystemIdInfoDao {
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
|
public static final class DefaultImpls {
|
|
@Deprecated
|
|
@Nullable
|
|
public static SystemIdInfo getSystemIdInfo(@NotNull SystemIdInfoDao systemIdInfoDao, @NotNull WorkGenerationalId workGenerationalId) {
|
|
workGenerationalId.getClass();
|
|
return SystemIdInfoDao.super.getSystemIdInfo(workGenerationalId);
|
|
}
|
|
|
|
@Deprecated
|
|
public static void removeSystemIdInfo(@NotNull SystemIdInfoDao systemIdInfoDao, @NotNull WorkGenerationalId workGenerationalId) {
|
|
workGenerationalId.getClass();
|
|
SystemIdInfoDao.super.removeSystemIdInfo(workGenerationalId);
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
default SystemIdInfo getSystemIdInfo(@NotNull WorkGenerationalId id) {
|
|
id.getClass();
|
|
return getSystemIdInfo(id.getWorkSpecId(), id.getGeneration());
|
|
}
|
|
|
|
@Query("SELECT * FROM SystemIdInfo WHERE work_spec_id=:workSpecId AND generation=:generation")
|
|
@Nullable
|
|
SystemIdInfo getSystemIdInfo(@NotNull String workSpecId, int generation);
|
|
|
|
@Query("SELECT DISTINCT work_spec_id FROM SystemIdInfo")
|
|
@NotNull
|
|
List<String> getWorkSpecIds();
|
|
|
|
@Insert(onConflict = 1)
|
|
void insertSystemIdInfo(@NotNull SystemIdInfo systemIdInfo);
|
|
|
|
default void removeSystemIdInfo(@NotNull WorkGenerationalId id) {
|
|
id.getClass();
|
|
removeSystemIdInfo(id.getWorkSpecId(), id.getGeneration());
|
|
}
|
|
|
|
@Query("DELETE FROM SystemIdInfo where work_spec_id=:workSpecId")
|
|
void removeSystemIdInfo(@NotNull String workSpecId);
|
|
|
|
@Query("DELETE FROM SystemIdInfo where work_spec_id=:workSpecId AND generation=:generation")
|
|
void removeSystemIdInfo(@NotNull String workSpecId, int generation);
|
|
}
|