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

141 lines
5.0 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 java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/* loaded from: classes3.dex */
public class ImgClassificationEventAltDao extends AppStatsDao implements Cloneable {
private static final String TAG = "ImgClassificationEventAltDao";
private static final String ro = "ClassificationEventAlternative";
private static Integer rr;
private static Integer rs = 0;
private static final List<AppStatsDao.FieldTemplate> rt;
private String id;
private String rW = "";
private String rX = "";
private float rY = -5000.0f;
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("ClassificationEventID", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_GUID, AppStatsDbFieldKeyType.DB_FIELD_FOREIGN_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("AlternativeResult", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("AlternativeConfidence", AppStatsDsFieldType.DS_FIELD_TYPE_FLOAT, AppStatsDbFieldType.DB_FIELD_TYPE_FLOAT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
}
public ImgClassificationEventAltDao() {
this.id = "";
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 ImgClassificationEventAltDao mo279clone() {
return (ImgClassificationEventAltDao) 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.rW);
arrayList.add(this.rX);
arrayList.add(Float.valueOf(this.rY));
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() {
ImgClassificationEventAltDao imgClassificationEventAltDao = new ImgClassificationEventAltDao();
imgClassificationEventAltDao.id = UUID.randomUUID().toString();
imgClassificationEventAltDao.rW = UUID.randomUUID().toString();
imgClassificationEventAltDao.rX = new String(this.rX.getBytes());
imgClassificationEventAltDao.rY = this.rY;
return imgClassificationEventAltDao;
}
public void setID(String str) {
this.id = str;
}
public void setClassificationEventID(String str) {
this.rW = str;
}
public void setAltClassificationResult(String str) {
this.rX = str;
}
public void setAltClassificationConfidence(float f) {
this.rY = f;
}
public String getID() {
return this.id;
}
public String getClassificationEventID() {
return this.rW;
}
public String getAltClassificationResult() {
return this.rX;
}
public float getAltClassificationConfidence() {
return this.rY;
}
}