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

167 lines
5.9 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.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.AppStatsPropertyType;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/* loaded from: classes3.dex */
public class PropertyChangeEventDao extends AppStatsDao implements Cloneable {
private static final String TAG = "PropertyChangeEventDao";
private static final String ro = "PropertyChangeEvent";
private static Integer rr;
private static Integer rs = 0;
private static final List<AppStatsDao.FieldTemplate> rt;
private String id;
private AppStatsPropertyType sc;
private String rG = new String();
private long rK = 0;
private String sd = "";
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("PropertyType", AppStatsDsFieldType.DS_FIELD_TYPE_STRING, AppStatsDbFieldType.DB_FIELD_TYPE_TEXT, AppStatsDbFieldKeyType.DB_FIELD_NO_KEY));
arrayList.add(new AppStatsDao.FieldTemplate("PropertyValue", 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));
}
public PropertyChangeEventDao() {
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 PropertyChangeEventDao mo279clone() {
return (PropertyChangeEventDao) 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.sc);
arrayList.add(this.sd);
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() {
PropertyChangeEventDao propertyChangeEventDao = new PropertyChangeEventDao();
propertyChangeEventDao.id = UUID.randomUUID().toString();
propertyChangeEventDao.rG = UUID.randomUUID().toString();
propertyChangeEventDao.rK = this.rK;
propertyChangeEventDao.sc = this.sc;
propertyChangeEventDao.sd = this.sd;
return propertyChangeEventDao;
}
public void setSessionKey(String str) {
this.oA = str;
}
public void setPropertyValue(String str) {
this.sd = str;
}
public void setPropertyType(AppStatsPropertyType appStatsPropertyType) {
this.sc = appStatsPropertyType;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public void setInstanceId(String str) {
this.rG = str;
}
public void setId(String str) {
this.id = str;
}
public void setEventTime(long j) {
this.rK = j;
}
public String getSessionKey() {
return this.oA;
}
public String getPropertyValue() {
return this.sd;
}
public AppStatsPropertyType getPropertyType() {
return this.sc;
}
@Override // com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao
public String getInstanceId() {
return this.rG;
}
public String getId() {
return this.id;
}
public long getEventTime() {
return this.rK;
}
}