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.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 FieldEventDao extends AppStatsDao implements Cloneable { private static final String TAG = "FieldEventDao"; private static final String ro = "FieldChangeEvent"; private static Integer rr; private static Integer rs = 0; private static final List rt; private String iL; private String iZ; private String id; private String rL; private String rM; private int rN; private String rO; private long rK = 0; private String fieldName = new String(); 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("DocumentID", 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("OriginalValue", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY)); arrayList.add(new AppStatsDao.FieldTemplate("ChangedValue", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY)); arrayList.add(new AppStatsDao.FieldTemplate("FieldName", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY)); arrayList.add(new AppStatsDao.FieldTemplate("IsValid", AppStatsDsFieldType.DS_FIELD_TYPE_INTEGER, AppStatsDbFieldType.DB_FIELD_TYPE_INTEGER, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY)); arrayList.add(new AppStatsDao.FieldTemplate("ErrorDescription", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY)); arrayList.add(new AppStatsDao.FieldTemplate("SessionEventID", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_GUID, AppStatsDbFieldKeyType.DB_FIELD_FOREIGN_KEY)); arrayList.add(new AppStatsDao.FieldTemplate(KtaJsonExactionHelper.CONFIDENCE, AppStatsDsFieldType.DS_FIELD_TYPE_FLOAT, AppStatsDbFieldType.DB_FIELD_TYPE_FLOAT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY)); arrayList.add(new AppStatsDao.FieldTemplate("FormattingFailed", AppStatsDsFieldType.DS_FIELD_TYPE_INTEGER, AppStatsDbFieldType.DB_FIELD_TYPE_INTEGER, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY)); } public FieldEventDao() { this.id = new String(); this.id = super.generateNewUniqueID(); } @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 FieldEventDao mo279clone() { return (FieldEventDao) super.mo279clone(); } @Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao public List getWriteToDbStatements(SQLiteDatabase sQLiteDatabase) { ArrayList arrayList = new ArrayList(); arrayList.add(this.id); arrayList.add(this.iL); arrayList.add(dateStringFromEventTime(this.rK)); arrayList.add(this.rL); arrayList.add(this.rM); arrayList.add(this.fieldName); arrayList.add(Integer.valueOf(this.rN)); arrayList.add(this.iZ); arrayList.add(this.rO); arrayList.add(Float.valueOf(1.0f)); arrayList.add(0); 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() { FieldEventDao fieldEventDao = new FieldEventDao(); fieldEventDao.id = UUID.randomUUID().toString(); fieldEventDao.iL = UUID.randomUUID().toString(); fieldEventDao.rK = this.rK; fieldEventDao.rL = "Here is an original value"; fieldEventDao.rM = "Here is a changed value"; fieldEventDao.fieldName = "Sample Fieldname"; fieldEventDao.rN = 1; fieldEventDao.iZ = "Sample error description"; return fieldEventDao; } public void setSessionEventID(String str) { this.rO = str; } public void setOriginalValue(String str) { this.rL = str; } public void setIsValid(int i) { this.rN = i; } public void setId(String str) { this.id = str; } public void setFieldname(String str) { this.fieldName = str; } public void setEventTime(long j) { this.rK = j; } public void setErrorDescription(String str) { this.iZ = str; } public void setDocumentID(String str) { this.iL = str; } public void setChangedValue(String str) { this.rM = str; } public String getSessionEventID() { return this.rO; } public String getOriginalValue() { return this.rL; } public String getId() { return this.id; } public String getFieldname() { return this.fieldName; } public long getEventTime() { return this.rK; } public String getErrorDescription() { return this.iZ; } public String getDocumentID() { return this.iL; } public String getChangedValue() { return this.rM; } private int bc() { return this.rN; } }