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

166 lines
6.1 KiB
Java
Raw Permalink 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.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 com.kofax.kmc.kut.utilities.appstats.type.AppStatsInstanceType;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/* loaded from: classes3.dex */
public class EventInstanceDao extends AppStatsDao implements Cloneable {
private static final String TAG = "EventInstanceDao";
private static final String ro = "Instance";
private static Integer rr;
private static Integer rs = 0;
private static final List<AppStatsDao.FieldTemplate> rt;
private String rG = new String();
private String rp = new String();
private long rH = 0;
private long rI = 0;
private AppStatsInstanceType rJ = AppStatsInstanceType.INST_TYPE_UNUSED;
private String oA = null;
static {
ArrayList arrayList = new ArrayList();
rt = arrayList;
arrayList.add(new AppStatsDao.FieldTemplate("InstanceID", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_GUID, AppStatsDbFieldKeyType.DB_FIELD_PRIMARY_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("EnvironmentID", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_GUID, AppStatsDbFieldKeyType.DB_FIELD_FOREIGN_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("CreationTime", AppStatsDsFieldType.DS_FIELD_TYPE_DATE, AppStatsDbFieldType.DB_FIELD_TYPE_DATETIME, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("DismissalTime", AppStatsDsFieldType.DS_FIELD_TYPE_DATE, AppStatsDbFieldType.DB_FIELD_TYPE_DATETIME, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("InstanceType", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("SessionKey", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
}
@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;
}
}
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
/* renamed from: clone */
public EventInstanceDao mo279clone() {
EventInstanceDao eventInstanceDao = (EventInstanceDao) super.mo279clone();
eventInstanceDao.rJ = this.rJ;
return eventInstanceDao;
}
@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.rG);
arrayList2.add(this.rp);
arrayList2.add(dateStringFromEventTime(this.rH));
arrayList2.add(dateStringFromEventTime(this.rI));
arrayList2.add(this.rJ.toString());
arrayList2.add(this.oA);
arrayList.add(createInsertStatement(ro, rt, arrayList2, sQLiteDatabase));
return arrayList;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected AppStatsDao createDaoSampleSizingObj() {
EventInstanceDao eventInstanceDao = new EventInstanceDao();
eventInstanceDao.rG = UUID.randomUUID().toString();
eventInstanceDao.rp = UUID.randomUUID().toString();
eventInstanceDao.rH = this.rH;
eventInstanceDao.rI = this.rI;
eventInstanceDao.rJ = this.rJ;
return eventInstanceDao;
}
public void setSessionKey(String str) {
this.oA = str;
}
public void setInstanceType(AppStatsInstanceType appStatsInstanceType) {
this.rJ = appStatsInstanceType;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public void setInstanceId(String str) {
this.rG = str;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public void setEnvironmentId(String str) {
this.rp = str;
}
public void setDismissalTime(long j) {
this.rI = j;
}
public void setCreationTime(long j) {
this.rH = j;
}
public String getSessionKey() {
return this.oA;
}
public AppStatsInstanceType getInstanceType() {
return this.rJ;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public String getInstanceId() {
return this.rG;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public String getEnvironmentId() {
return this.rp;
}
public long getDismissalTime() {
return this.rI;
}
public long getCreationTime() {
return this.rH;
}
}