198 lines
6.3 KiB
Java
198 lines
6.3 KiB
Java
package com.kofax.kmc.kut.utilities.appstats;
|
|
|
|
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.text.SimpleDateFormat;
|
|
import java.util.Date;
|
|
import java.util.Locale;
|
|
import java.util.TimeZone;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class AppStatsDaoField {
|
|
private static final String TAG = "AppStatsDataStore";
|
|
private String oJ;
|
|
private AppStatsDsFieldType oK;
|
|
private AppStatsDbFieldType oL;
|
|
private AppStatsDbFieldKeyType oM;
|
|
private String oN;
|
|
private Integer oO;
|
|
private Date oP;
|
|
private Long oQ;
|
|
private Float oR;
|
|
|
|
public AppStatsDaoField() {
|
|
this.oJ = "";
|
|
this.oK = AppStatsDsFieldType.DS_FIELD_TYPE_NONE;
|
|
this.oL = AppStatsDbFieldType.DB_FIELD_TYPE_NONE;
|
|
this.oM = AppStatsDbFieldKeyType.DB_FIELD_NO_KEY;
|
|
this.oN = "";
|
|
this.oO = null;
|
|
this.oP = null;
|
|
this.oQ = null;
|
|
this.oR = null;
|
|
}
|
|
|
|
public AppStatsDaoField(String str, AppStatsDsFieldType appStatsDsFieldType, AppStatsDbFieldType appStatsDbFieldType, AppStatsDbFieldKeyType appStatsDbFieldKeyType, String str2) {
|
|
this.oJ = "";
|
|
this.oK = AppStatsDsFieldType.DS_FIELD_TYPE_NONE;
|
|
this.oL = AppStatsDbFieldType.DB_FIELD_TYPE_NONE;
|
|
AppStatsDbFieldKeyType appStatsDbFieldKeyType2 = AppStatsDbFieldKeyType.DB_FIELD_NO_KEY;
|
|
this.oO = null;
|
|
this.oP = null;
|
|
this.oQ = null;
|
|
this.oR = null;
|
|
this.oJ = str;
|
|
this.oK = appStatsDsFieldType;
|
|
this.oL = appStatsDbFieldType;
|
|
this.oM = appStatsDbFieldKeyType;
|
|
this.oN = str2;
|
|
}
|
|
|
|
public AppStatsDaoField(String str, AppStatsDsFieldType appStatsDsFieldType, AppStatsDbFieldType appStatsDbFieldType, AppStatsDbFieldKeyType appStatsDbFieldKeyType, Integer num) {
|
|
this.oJ = "";
|
|
this.oK = AppStatsDsFieldType.DS_FIELD_TYPE_NONE;
|
|
this.oL = AppStatsDbFieldType.DB_FIELD_TYPE_NONE;
|
|
AppStatsDbFieldKeyType appStatsDbFieldKeyType2 = AppStatsDbFieldKeyType.DB_FIELD_NO_KEY;
|
|
this.oN = "";
|
|
this.oP = null;
|
|
this.oQ = null;
|
|
this.oR = null;
|
|
this.oJ = str;
|
|
this.oK = appStatsDsFieldType;
|
|
this.oL = appStatsDbFieldType;
|
|
this.oM = appStatsDbFieldKeyType;
|
|
this.oO = num;
|
|
this.oN = num != null ? Integer.toString(num.intValue()) : null;
|
|
}
|
|
|
|
public AppStatsDaoField(String str, AppStatsDsFieldType appStatsDsFieldType, AppStatsDbFieldType appStatsDbFieldType, AppStatsDbFieldKeyType appStatsDbFieldKeyType, Date date) {
|
|
this.oJ = "";
|
|
this.oK = AppStatsDsFieldType.DS_FIELD_TYPE_NONE;
|
|
this.oL = AppStatsDbFieldType.DB_FIELD_TYPE_NONE;
|
|
AppStatsDbFieldKeyType appStatsDbFieldKeyType2 = AppStatsDbFieldKeyType.DB_FIELD_NO_KEY;
|
|
this.oN = "";
|
|
this.oO = null;
|
|
this.oQ = null;
|
|
this.oR = null;
|
|
this.oJ = str;
|
|
this.oK = appStatsDsFieldType;
|
|
this.oL = appStatsDbFieldType;
|
|
this.oM = appStatsDbFieldKeyType;
|
|
this.oP = date;
|
|
if (date == null) {
|
|
this.oN = null;
|
|
return;
|
|
}
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.US);
|
|
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
|
|
this.oN = simpleDateFormat.format(date);
|
|
}
|
|
|
|
public AppStatsDaoField(String str, AppStatsDsFieldType appStatsDsFieldType, AppStatsDbFieldType appStatsDbFieldType, AppStatsDbFieldKeyType appStatsDbFieldKeyType, Float f) {
|
|
this.oJ = "";
|
|
this.oK = AppStatsDsFieldType.DS_FIELD_TYPE_NONE;
|
|
this.oL = AppStatsDbFieldType.DB_FIELD_TYPE_NONE;
|
|
AppStatsDbFieldKeyType appStatsDbFieldKeyType2 = AppStatsDbFieldKeyType.DB_FIELD_NO_KEY;
|
|
this.oN = "";
|
|
this.oO = null;
|
|
this.oP = null;
|
|
this.oQ = null;
|
|
this.oJ = str;
|
|
this.oK = appStatsDsFieldType;
|
|
this.oL = appStatsDbFieldType;
|
|
this.oM = appStatsDbFieldKeyType;
|
|
this.oR = f;
|
|
this.oN = f != null ? Float.toString(f.floatValue()) : null;
|
|
}
|
|
|
|
public AppStatsDaoField(String str, AppStatsDsFieldType appStatsDsFieldType, AppStatsDbFieldType appStatsDbFieldType, AppStatsDbFieldKeyType appStatsDbFieldKeyType, Long l) {
|
|
this.oJ = "";
|
|
this.oK = AppStatsDsFieldType.DS_FIELD_TYPE_NONE;
|
|
this.oL = AppStatsDbFieldType.DB_FIELD_TYPE_NONE;
|
|
AppStatsDbFieldKeyType appStatsDbFieldKeyType2 = AppStatsDbFieldKeyType.DB_FIELD_NO_KEY;
|
|
this.oN = "";
|
|
this.oO = null;
|
|
this.oP = null;
|
|
this.oR = null;
|
|
this.oJ = str;
|
|
this.oK = appStatsDsFieldType;
|
|
this.oL = appStatsDbFieldType;
|
|
this.oM = appStatsDbFieldKeyType;
|
|
this.oQ = l;
|
|
this.oN = l != null ? Long.toString(l.longValue()) : null;
|
|
}
|
|
|
|
public void setDsValueString(String str) {
|
|
this.oN = str;
|
|
}
|
|
|
|
public void setDsValueLong(Long l) {
|
|
this.oQ = l;
|
|
}
|
|
|
|
public void setDsValueInt(Integer num) {
|
|
this.oO = num;
|
|
}
|
|
|
|
public void setDsValueFloat(Float f) {
|
|
this.oR = f;
|
|
}
|
|
|
|
public void setDsValueDate(Date date) {
|
|
this.oP = date;
|
|
}
|
|
|
|
public void setDsFieldType(AppStatsDsFieldType appStatsDsFieldType) {
|
|
this.oK = appStatsDsFieldType;
|
|
}
|
|
|
|
public void setDsFieldName(String str) {
|
|
this.oJ = str;
|
|
}
|
|
|
|
public void setDbFieldType(AppStatsDbFieldType appStatsDbFieldType) {
|
|
this.oL = appStatsDbFieldType;
|
|
}
|
|
|
|
public void setDbFieldKeyType(AppStatsDbFieldKeyType appStatsDbFieldKeyType) {
|
|
this.oM = appStatsDbFieldKeyType;
|
|
}
|
|
|
|
public String getDsValueString() {
|
|
return this.oN;
|
|
}
|
|
|
|
public Long getDsValueLong() {
|
|
return this.oQ;
|
|
}
|
|
|
|
public Integer getDsValueInt() {
|
|
return this.oO;
|
|
}
|
|
|
|
public Float getDsValueFloat() {
|
|
return this.oR;
|
|
}
|
|
|
|
public Date getDsValueDate() {
|
|
return this.oP;
|
|
}
|
|
|
|
public AppStatsDsFieldType getDsFieldType() {
|
|
return this.oK;
|
|
}
|
|
|
|
public String getDsFieldName() {
|
|
return this.oJ;
|
|
}
|
|
|
|
public AppStatsDbFieldType getDbFieldType() {
|
|
return this.oL;
|
|
}
|
|
|
|
public AppStatsDbFieldKeyType getDbFieldKeyType() {
|
|
return this.oM;
|
|
}
|
|
}
|