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

173 lines
6.3 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.AppStatsEventIDType;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/* loaded from: classes3.dex */
public class ImgCaptureEventDao extends AppStatsDao implements Cloneable {
private static final String TAG = "ImgCaptureEventDao";
private static final String ro = "CaptureEvent";
private static Integer rr;
private static Integer rs = 0;
private static final List<AppStatsDao.FieldTemplate> rt;
private String id;
private int value;
private String rG = new String();
private long rK = 0;
private AppStatsEventIDType rV = AppStatsEventIDType.APP_STATS_UNKNOWN_EVENT;
private String imageID = null;
private String oA = null;
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("InstanceID", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_GUID, AppStatsDbFieldKeyType.DB_FIELD_FOREIGN_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("EventTime", AppStatsDsFieldType.DS_FIELD_TYPE_DATE, AppStatsDbFieldType.DB_FIELD_TYPE_DATETIME, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("EventType", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate(KtaJsonExactionHelper.VALUE, AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("ImageID", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_GUID, AppStatsDbFieldKeyType.DB_FIELD_FOREIGN_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("SessionKey", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
}
public ImgCaptureEventDao() {
this.id = new String();
this.id = super.generateNewUniqueID();
}
@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 ImgCaptureEventDao mo279clone() {
return (ImgCaptureEventDao) super.mo279clone();
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public List<SQLiteStatement> getWriteToDbStatements(SQLiteDatabase sQLiteDatabase) {
ArrayList arrayList = new ArrayList();
arrayList.add(this.id);
arrayList.add(this.rG);
arrayList.add(dateStringFromEventTime(this.rK));
arrayList.add(this.rV.getEventTypeDescription());
arrayList.add(Integer.valueOf(getValue()));
arrayList.add(this.imageID);
arrayList.add(this.oA);
ArrayList arrayList2 = new ArrayList();
arrayList2.add(createInsertStatement(ro, rt, arrayList, sQLiteDatabase));
return arrayList2;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected AppStatsDao createDaoSampleSizingObj() {
ImgCaptureEventDao imgCaptureEventDao = new ImgCaptureEventDao();
imgCaptureEventDao.id = UUID.randomUUID().toString();
imgCaptureEventDao.rG = UUID.randomUUID().toString();
imgCaptureEventDao.rK = this.rK;
imgCaptureEventDao.rV = this.rV;
imgCaptureEventDao.imageID = UUID.randomUUID().toString();
return imgCaptureEventDao;
}
public void setValue(int i) {
this.value = i;
}
public void setSessionKey(String str) {
this.oA = str;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public void setInstanceId(String str) {
this.rG = str;
}
public void setImageID(String str) {
this.imageID = str;
}
public void setId(String str) {
this.id = str;
}
public void setEventType(AppStatsEventIDType appStatsEventIDType) {
this.rV = appStatsEventIDType;
}
public void setEventTime(long j) {
this.rK = j;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected void setAppStatsDaoObjSize(Integer num) {
rr = num;
}
public int getValue() {
return this.value;
}
public String getSessionKey() {
return this.oA;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public String getInstanceId() {
return this.rG;
}
public String getImageID() {
return this.imageID;
}
public String getId() {
return this.id;
}
public AppStatsEventIDType getEventType() {
return this.rV;
}
public long getEventTime() {
return this.rK;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
protected Integer getAppStatsDaoObjSize() {
return rr;
}
}