what-the-bank/sources/com/kofax/kmc/kut/utilities/appstats/dao/EnvironmentEventDao.java

268 lines
9.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.kmc.kut.utilities.appstats.dao;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import com.kofax.kmc.kut.utilities.appstats.AppStatsDsExportHandler;
import com.kofax.kmc.kut.utilities.appstats.AppStatsEnvSettings;
import com.kofax.kmc.kut.utilities.appstats.AppStatsSqLiteDs;
import com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao;
import com.kofax.kmc.kut.utilities.appstats.type.AppStatsDbFieldKeyType;
import com.kofax.kmc.kut.utilities.appstats.type.AppStatsDbFieldType;
import com.kofax.kmc.kut.utilities.appstats.type.AppStatsDsFieldType;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/* loaded from: classes3.dex */
public class EnvironmentEventDao extends AppStatsDao {
private static final String TAG = "EnvironmentEventDao";
private static final String ro = "Environment";
private static Integer rr;
private static Integer rs = 0;
private static final List<AppStatsDao.FieldTemplate> rt;
private String id;
private String oh;
private String rA;
private String rB;
private String rC;
private String rD;
private long ru;
private String rv;
private String rw;
private String rx;
private String ry;
private String rz;
static {
ArrayList arrayList = new ArrayList();
rt = arrayList;
arrayList.add(new AppStatsDao.FieldTemplate("ID", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_GUID, AppStatsDbFieldKeyType.DB_FIELD_PRIMARY_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("DeviceID", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("Manufacturer", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("Model", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("Memory", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("OSVersion", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("Language", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("SDKVersion", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("TimeZone", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("Carrier", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("OSName", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
}
public EnvironmentEventDao() {
this.id = "";
this.ru = 0L;
this.oh = "";
this.rv = "";
this.rw = "";
this.rx = "";
this.ry = "";
this.rz = "";
this.rA = "";
this.rB = "";
this.rC = "";
this.rD = "";
this.id = super.generateNewUniqueID();
}
public EnvironmentEventDao(AppStatsEnvSettings appStatsEnvSettings, long j) {
this.id = "";
this.ru = 0L;
this.oh = "";
this.rv = "";
this.rw = "";
this.rx = "";
this.ry = "";
this.rz = "";
this.rA = "";
this.rB = "";
this.rC = "";
this.rD = "";
this.id = super.generateNewUniqueID();
this.ru = j;
this.oh = appStatsEnvSettings.getEnvDeviceID(false);
this.rv = appStatsEnvSettings.getEnvManufacturer(false);
this.rw = appStatsEnvSettings.getEnvModel(false);
this.rx = appStatsEnvSettings.getEnvMemorySize(false);
this.ry = appStatsEnvSettings.getEnvOsVersion(false);
this.rz = appStatsEnvSettings.getEnvLanguage(false);
this.rA = appStatsEnvSettings.getEnvSdkVersion(false);
this.rB = appStatsEnvSettings.getEnvTimeZone(false);
this.rC = appStatsEnvSettings.getEnvCarrier(false);
this.rD = appStatsEnvSettings.getEnvOsName(false);
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected Integer getAppStatsDaoObjSize() {
Integer num;
synchronized (this) {
num = rr;
}
return num;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected void setAppStatsDaoObjSize(Integer num) {
synchronized (this) {
rr = num;
}
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected Integer getAppStatsDaoObjSizeInstCnt() {
Integer num;
synchronized (this) {
num = rs;
}
return num;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected void setAppStatsDaoObjSizeInstCnt(Integer num) {
synchronized (this) {
rs = num;
}
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public List<SQLiteStatement> getWriteToDbStatements(SQLiteDatabase sQLiteDatabase) {
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
arrayList2.add(this.id);
arrayList2.add(this.oh);
arrayList2.add(this.rv);
arrayList2.add(this.rw);
arrayList2.add(this.rx);
arrayList2.add(this.ry);
arrayList2.add(this.rz);
arrayList2.add(this.rA);
arrayList2.add(this.rB);
arrayList2.add(this.rC);
arrayList2.add(this.rD);
arrayList.add(createInsertStatement(ro, rt, arrayList2, sQLiteDatabase));
return arrayList;
}
public static long countRows() {
return AppStatsSqLiteDs.getInstance().countrows(ro);
}
public static void export(String str, AppStatsDsExportHandler appStatsDsExportHandler) {
export(str, appStatsDsExportHandler, ro, rt);
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected AppStatsDao createDaoSampleSizingObj() {
EnvironmentEventDao environmentEventDao = new EnvironmentEventDao();
environmentEventDao.id = UUID.randomUUID().toString();
environmentEventDao.ru = this.ru;
environmentEventDao.oh = UUID.randomUUID().toString();
environmentEventDao.rv = String.valueOf(this.rv);
environmentEventDao.rw = String.valueOf(this.rw);
environmentEventDao.rx = String.valueOf(this.rx);
environmentEventDao.ry = String.valueOf(this.ry);
environmentEventDao.rz = String.valueOf(this.rz);
environmentEventDao.rA = String.valueOf(this.rA);
environmentEventDao.rB = String.valueOf(this.rB);
environmentEventDao.rC = String.valueOf(this.rC);
environmentEventDao.rD = String.valueOf(this.rD);
return environmentEventDao;
}
public void setTimeZone(String str) {
this.rB = str;
}
public void setSdkVersion(String str) {
this.rA = str;
}
public void setOsVersion(String str) {
this.ry = str;
}
public void setOsName(String str) {
this.rD = str;
}
public void setModel(String str) {
this.rw = str;
}
public void setMemory(String str) {
this.rx = str;
}
public void setManufacturer(String str) {
this.rv = str;
}
public void setLanguage(String str) {
this.rz = str;
}
public void setId(String str) {
this.id = str;
}
public void setEnvTime(long j) {
this.ru = j;
}
public void setDeviceID(String str) {
this.oh = str;
}
public void setCarrier(String str) {
this.rC = str;
}
public String getTimeZone() {
return this.rB;
}
public String getSdkVersion() {
return this.rA;
}
public String getOsVersion() {
return this.ry;
}
public String getOsName() {
return this.rD;
}
public String getModel() {
return this.rw;
}
public String getMemory() {
return this.rx;
}
public String getManufacturer() {
return this.rv;
}
public String getLanguage() {
return this.rz;
}
public String getId() {
return this.id;
}
public long getEnvTime() {
return this.ru;
}
public String getDeviceID() {
return this.oh;
}
public String getCarrier() {
return this.rC;
}
}