package com.ping.greendao.gen;
|
|
import android.database.Cursor;
|
import android.database.sqlite.SQLiteStatement;
|
|
import org.greenrobot.greendao.AbstractDao;
|
import org.greenrobot.greendao.Property;
|
import org.greenrobot.greendao.internal.DaoConfig;
|
import org.greenrobot.greendao.database.Database;
|
import org.greenrobot.greendao.database.DatabaseStatement;
|
|
import cn.flightfeather.thirdappmodule.bean.entity.Problemlist;
|
|
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
|
/**
|
* DAO for table "PROBLEMLIST".
|
*/
|
public class ProblemlistDao extends AbstractDao<Problemlist, String> {
|
|
public static final String TABLENAME = "PROBLEMLIST";
|
|
/**
|
* Properties of entity Problemlist.<br/>
|
* Can be used for QueryBuilder and for referencing column names.
|
*/
|
public static class Properties {
|
public final static Property Guid = new Property(0, String.class, "guid", true, "GUID");
|
public final static Property Iguid = new Property(1, String.class, "iguid", false, "IGUID");
|
public final static Property Stguid = new Property(2, String.class, "stguid", false, "STGUID");
|
public final static Property Sguid = new Property(3, String.class, "sguid", false, "SGUID");
|
public final static Property Sensename = new Property(4, String.class, "sensename", false, "SENSENAME");
|
public final static Property Senseaddress = new Property(5, String.class, "senseaddress", false, "SENSEADDRESS");
|
public final static Property Ptguid = new Property(6, String.class, "ptguid", false, "PTGUID");
|
public final static Property Problemname = new Property(7, String.class, "problemname", false, "PROBLEMNAME");
|
public final static Property Longitude = new Property(8, Double.class, "longitude", false, "LONGITUDE");
|
public final static Property Latitude = new Property(9, Double.class, "latitude", false, "LATITUDE");
|
public final static Property Locationid = new Property(10, Byte.class, "locationid", false, "LOCATIONID");
|
public final static Property Location = new Property(11, String.class, "location", false, "LOCATION");
|
public final static Property Time = new Property(12, java.util.Date.class, "time", false, "TIME");
|
public final static Property Isrechecked = new Property(13, Boolean.class, "isrechecked", false, "ISRECHECKED");
|
public final static Property Rechecktime = new Property(14, java.util.Date.class, "rechecktime", false, "RECHECKTIME");
|
public final static Property Recheckuserguid = new Property(15, String.class, "recheckuserguid", false, "RECHECKUSERGUID");
|
public final static Property Recheckusername = new Property(16, String.class, "recheckusername", false, "RECHECKUSERNAME");
|
public final static Property Recheckuserrealname = new Property(17, String.class, "recheckuserrealname", false, "RECHECKUSERREALNAME");
|
public final static Property Recheckdescription = new Property(18, String.class, "recheckdescription", false, "RECHECKDESCRIPTION");
|
public final static Property Recheckresultid = new Property(19, Boolean.class, "recheckresultid", false, "RECHECKRESULTID");
|
public final static Property Recheckresult = new Property(20, String.class, "recheckresult", false, "RECHECKRESULT");
|
public final static Property Ischanged = new Property(21, Boolean.class, "ischanged", false, "ISCHANGED");
|
public final static Property Changecatalog = new Property(22, String.class, "changecatalog", false, "CHANGECATALOG");
|
public final static Property Changedtime = new Property(23, java.util.Date.class, "changedtime", false, "CHANGEDTIME");
|
public final static Property Changedresult = new Property(24, String.class, "changedresult", false, "CHANGEDRESULT");
|
public final static Property Advise = new Property(25, String.class, "advise", false, "ADVISE");
|
public final static Property Extension1 = new Property(26, String.class, "extension1", false, "EXTENSION1");
|
public final static Property Extension2 = new Property(27, String.class, "extension2", false, "EXTENSION2");
|
public final static Property Extension3 = new Property(28, String.class, "extension3", false, "EXTENSION3");
|
public final static Property Remark = new Property(29, String.class, "remark", false, "REMARK");
|
}
|
|
|
public ProblemlistDao(DaoConfig config) {
|
super(config);
|
}
|
|
public ProblemlistDao(DaoConfig config, DaoSession daoSession) {
|
super(config, daoSession);
|
}
|
|
/** Creates the underlying database table. */
|
public static void createTable(Database db, boolean ifNotExists) {
|
String constraint = ifNotExists? "IF NOT EXISTS ": "";
|
db.execSQL("CREATE TABLE " + constraint + "\"PROBLEMLIST\" (" + //
|
"\"GUID\" TEXT PRIMARY KEY NOT NULL ," + // 0: guid
|
"\"IGUID\" TEXT," + // 1: iguid
|
"\"STGUID\" TEXT," + // 2: stguid
|
"\"SGUID\" TEXT," + // 3: sguid
|
"\"SENSENAME\" TEXT," + // 4: sensename
|
"\"SENSEADDRESS\" TEXT," + // 5: senseaddress
|
"\"PTGUID\" TEXT," + // 6: ptguid
|
"\"PROBLEMNAME\" TEXT," + // 7: problemname
|
"\"LONGITUDE\" REAL," + // 8: longitude
|
"\"LATITUDE\" REAL," + // 9: latitude
|
"\"LOCATIONID\" INTEGER," + // 10: locationid
|
"\"LOCATION\" TEXT," + // 11: location
|
"\"TIME\" INTEGER," + // 12: time
|
"\"ISRECHECKED\" INTEGER," + // 13: isrechecked
|
"\"RECHECKTIME\" INTEGER," + // 14: rechecktime
|
"\"RECHECKUSERGUID\" TEXT," + // 15: recheckuserguid
|
"\"RECHECKUSERNAME\" TEXT," + // 16: recheckusername
|
"\"RECHECKUSERREALNAME\" TEXT," + // 17: recheckuserrealname
|
"\"RECHECKDESCRIPTION\" TEXT," + // 18: recheckdescription
|
"\"RECHECKRESULTID\" INTEGER," + // 19: recheckresultid
|
"\"RECHECKRESULT\" TEXT," + // 20: recheckresult
|
"\"ISCHANGED\" INTEGER," + // 21: ischanged
|
"\"CHANGECATALOG\" TEXT," + // 22: changecatalog
|
"\"CHANGEDTIME\" INTEGER," + // 23: changedtime
|
"\"CHANGEDRESULT\" TEXT," + // 24: changedresult
|
"\"ADVISE\" TEXT," + // 25: advise
|
"\"EXTENSION1\" TEXT," + // 26: extension1
|
"\"EXTENSION2\" TEXT," + // 27: extension2
|
"\"EXTENSION3\" TEXT," + // 28: extension3
|
"\"REMARK\" TEXT);"); // 29: remark
|
}
|
|
/** Drops the underlying database table. */
|
public static void dropTable(Database db, boolean ifExists) {
|
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"PROBLEMLIST\"";
|
db.execSQL(sql);
|
}
|
|
@Override
|
protected final void bindValues(DatabaseStatement stmt, Problemlist entity) {
|
stmt.clearBindings();
|
|
String guid = entity.getGuid();
|
if (guid != null) {
|
stmt.bindString(1, guid);
|
}
|
|
String iguid = entity.getIguid();
|
if (iguid != null) {
|
stmt.bindString(2, iguid);
|
}
|
|
String stguid = entity.getStguid();
|
if (stguid != null) {
|
stmt.bindString(3, stguid);
|
}
|
|
String sguid = entity.getSguid();
|
if (sguid != null) {
|
stmt.bindString(4, sguid);
|
}
|
|
String sensename = entity.getSensename();
|
if (sensename != null) {
|
stmt.bindString(5, sensename);
|
}
|
|
String senseaddress = entity.getSenseaddress();
|
if (senseaddress != null) {
|
stmt.bindString(6, senseaddress);
|
}
|
|
String ptguid = entity.getPtguid();
|
if (ptguid != null) {
|
stmt.bindString(7, ptguid);
|
}
|
|
String problemname = entity.getProblemname();
|
if (problemname != null) {
|
stmt.bindString(8, problemname);
|
}
|
|
Double longitude = entity.getLongitude();
|
if (longitude != null) {
|
stmt.bindDouble(9, longitude);
|
}
|
|
Double latitude = entity.getLatitude();
|
if (latitude != null) {
|
stmt.bindDouble(10, latitude);
|
}
|
|
Byte locationid = entity.getLocationid();
|
if (locationid != null) {
|
stmt.bindLong(11, locationid);
|
}
|
|
String location = entity.getLocation();
|
if (location != null) {
|
stmt.bindString(12, location);
|
}
|
|
java.util.Date time = entity.getTime();
|
if (time != null) {
|
stmt.bindLong(13, time.getTime());
|
}
|
|
Boolean isrechecked = entity.getIsrechecked();
|
if (isrechecked != null) {
|
stmt.bindLong(14, isrechecked ? 1L: 0L);
|
}
|
|
java.util.Date rechecktime = entity.getRechecktime();
|
if (rechecktime != null) {
|
stmt.bindLong(15, rechecktime.getTime());
|
}
|
|
String recheckuserguid = entity.getRecheckuserguid();
|
if (recheckuserguid != null) {
|
stmt.bindString(16, recheckuserguid);
|
}
|
|
String recheckusername = entity.getRecheckusername();
|
if (recheckusername != null) {
|
stmt.bindString(17, recheckusername);
|
}
|
|
String recheckuserrealname = entity.getRecheckuserrealname();
|
if (recheckuserrealname != null) {
|
stmt.bindString(18, recheckuserrealname);
|
}
|
|
String recheckdescription = entity.getRecheckdescription();
|
if (recheckdescription != null) {
|
stmt.bindString(19, recheckdescription);
|
}
|
|
Boolean recheckresultid = entity.getRecheckresultid();
|
if (recheckresultid != null) {
|
stmt.bindLong(20, recheckresultid ? 1L: 0L);
|
}
|
|
String recheckresult = entity.getRecheckresult();
|
if (recheckresult != null) {
|
stmt.bindString(21, recheckresult);
|
}
|
|
Boolean ischanged = entity.getIschanged();
|
if (ischanged != null) {
|
stmt.bindLong(22, ischanged ? 1L: 0L);
|
}
|
|
String changecatalog = entity.getChangecatalog();
|
if (changecatalog != null) {
|
stmt.bindString(23, changecatalog);
|
}
|
|
java.util.Date changedtime = entity.getChangedtime();
|
if (changedtime != null) {
|
stmt.bindLong(24, changedtime.getTime());
|
}
|
|
String changedresult = entity.getChangedresult();
|
if (changedresult != null) {
|
stmt.bindString(25, changedresult);
|
}
|
|
String advise = entity.getAdvise();
|
if (advise != null) {
|
stmt.bindString(26, advise);
|
}
|
|
String extension1 = entity.getExtension1();
|
if (extension1 != null) {
|
stmt.bindString(27, extension1);
|
}
|
|
String extension2 = entity.getExtension2();
|
if (extension2 != null) {
|
stmt.bindString(28, extension2);
|
}
|
|
String extension3 = entity.getExtension3();
|
if (extension3 != null) {
|
stmt.bindString(29, extension3);
|
}
|
|
String remark = entity.getRemark();
|
if (remark != null) {
|
stmt.bindString(30, remark);
|
}
|
}
|
|
@Override
|
protected final void bindValues(SQLiteStatement stmt, Problemlist entity) {
|
stmt.clearBindings();
|
|
String guid = entity.getGuid();
|
if (guid != null) {
|
stmt.bindString(1, guid);
|
}
|
|
String iguid = entity.getIguid();
|
if (iguid != null) {
|
stmt.bindString(2, iguid);
|
}
|
|
String stguid = entity.getStguid();
|
if (stguid != null) {
|
stmt.bindString(3, stguid);
|
}
|
|
String sguid = entity.getSguid();
|
if (sguid != null) {
|
stmt.bindString(4, sguid);
|
}
|
|
String sensename = entity.getSensename();
|
if (sensename != null) {
|
stmt.bindString(5, sensename);
|
}
|
|
String senseaddress = entity.getSenseaddress();
|
if (senseaddress != null) {
|
stmt.bindString(6, senseaddress);
|
}
|
|
String ptguid = entity.getPtguid();
|
if (ptguid != null) {
|
stmt.bindString(7, ptguid);
|
}
|
|
String problemname = entity.getProblemname();
|
if (problemname != null) {
|
stmt.bindString(8, problemname);
|
}
|
|
Double longitude = entity.getLongitude();
|
if (longitude != null) {
|
stmt.bindDouble(9, longitude);
|
}
|
|
Double latitude = entity.getLatitude();
|
if (latitude != null) {
|
stmt.bindDouble(10, latitude);
|
}
|
|
Byte locationid = entity.getLocationid();
|
if (locationid != null) {
|
stmt.bindLong(11, locationid);
|
}
|
|
String location = entity.getLocation();
|
if (location != null) {
|
stmt.bindString(12, location);
|
}
|
|
java.util.Date time = entity.getTime();
|
if (time != null) {
|
stmt.bindLong(13, time.getTime());
|
}
|
|
Boolean isrechecked = entity.getIsrechecked();
|
if (isrechecked != null) {
|
stmt.bindLong(14, isrechecked ? 1L: 0L);
|
}
|
|
java.util.Date rechecktime = entity.getRechecktime();
|
if (rechecktime != null) {
|
stmt.bindLong(15, rechecktime.getTime());
|
}
|
|
String recheckuserguid = entity.getRecheckuserguid();
|
if (recheckuserguid != null) {
|
stmt.bindString(16, recheckuserguid);
|
}
|
|
String recheckusername = entity.getRecheckusername();
|
if (recheckusername != null) {
|
stmt.bindString(17, recheckusername);
|
}
|
|
String recheckuserrealname = entity.getRecheckuserrealname();
|
if (recheckuserrealname != null) {
|
stmt.bindString(18, recheckuserrealname);
|
}
|
|
String recheckdescription = entity.getRecheckdescription();
|
if (recheckdescription != null) {
|
stmt.bindString(19, recheckdescription);
|
}
|
|
Boolean recheckresultid = entity.getRecheckresultid();
|
if (recheckresultid != null) {
|
stmt.bindLong(20, recheckresultid ? 1L: 0L);
|
}
|
|
String recheckresult = entity.getRecheckresult();
|
if (recheckresult != null) {
|
stmt.bindString(21, recheckresult);
|
}
|
|
Boolean ischanged = entity.getIschanged();
|
if (ischanged != null) {
|
stmt.bindLong(22, ischanged ? 1L: 0L);
|
}
|
|
String changecatalog = entity.getChangecatalog();
|
if (changecatalog != null) {
|
stmt.bindString(23, changecatalog);
|
}
|
|
java.util.Date changedtime = entity.getChangedtime();
|
if (changedtime != null) {
|
stmt.bindLong(24, changedtime.getTime());
|
}
|
|
String changedresult = entity.getChangedresult();
|
if (changedresult != null) {
|
stmt.bindString(25, changedresult);
|
}
|
|
String advise = entity.getAdvise();
|
if (advise != null) {
|
stmt.bindString(26, advise);
|
}
|
|
String extension1 = entity.getExtension1();
|
if (extension1 != null) {
|
stmt.bindString(27, extension1);
|
}
|
|
String extension2 = entity.getExtension2();
|
if (extension2 != null) {
|
stmt.bindString(28, extension2);
|
}
|
|
String extension3 = entity.getExtension3();
|
if (extension3 != null) {
|
stmt.bindString(29, extension3);
|
}
|
|
String remark = entity.getRemark();
|
if (remark != null) {
|
stmt.bindString(30, remark);
|
}
|
}
|
|
@Override
|
public String readKey(Cursor cursor, int offset) {
|
return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0);
|
}
|
|
@Override
|
public Problemlist readEntity(Cursor cursor, int offset) {
|
Problemlist entity = new Problemlist( //
|
cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // guid
|
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // iguid
|
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // stguid
|
cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // sguid
|
cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // sensename
|
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // senseaddress
|
cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // ptguid
|
cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // problemname
|
cursor.isNull(offset + 8) ? null : cursor.getDouble(offset + 8), // longitude
|
cursor.isNull(offset + 9) ? null : cursor.getDouble(offset + 9), // latitude
|
cursor.isNull(offset + 10) ? null : (byte) cursor.getShort(offset + 10), // locationid
|
cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // location
|
cursor.isNull(offset + 12) ? null : new java.util.Date(cursor.getLong(offset + 12)), // time
|
cursor.isNull(offset + 13) ? null : cursor.getShort(offset + 13) != 0, // isrechecked
|
cursor.isNull(offset + 14) ? null : new java.util.Date(cursor.getLong(offset + 14)), // rechecktime
|
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // recheckuserguid
|
cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // recheckusername
|
cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // recheckuserrealname
|
cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // recheckdescription
|
cursor.isNull(offset + 19) ? null : cursor.getShort(offset + 19) != 0, // recheckresultid
|
cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // recheckresult
|
cursor.isNull(offset + 21) ? null : cursor.getShort(offset + 21) != 0, // ischanged
|
cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22), // changecatalog
|
cursor.isNull(offset + 23) ? null : new java.util.Date(cursor.getLong(offset + 23)), // changedtime
|
cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24), // changedresult
|
cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25), // advise
|
cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26), // extension1
|
cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27), // extension2
|
cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28), // extension3
|
cursor.isNull(offset + 29) ? null : cursor.getString(offset + 29) // remark
|
);
|
return entity;
|
}
|
|
@Override
|
public void readEntity(Cursor cursor, Problemlist entity, int offset) {
|
entity.setGuid(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0));
|
entity.setIguid(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
|
entity.setStguid(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
|
entity.setSguid(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
|
entity.setSensename(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
|
entity.setSenseaddress(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
|
entity.setPtguid(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
|
entity.setProblemname(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
|
entity.setLongitude(cursor.isNull(offset + 8) ? null : cursor.getDouble(offset + 8));
|
entity.setLatitude(cursor.isNull(offset + 9) ? null : cursor.getDouble(offset + 9));
|
entity.setLocationid(cursor.isNull(offset + 10) ? null : (byte) cursor.getShort(offset + 10));
|
entity.setLocation(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
|
entity.setTime(cursor.isNull(offset + 12) ? null : new java.util.Date(cursor.getLong(offset + 12)));
|
entity.setIsrechecked(cursor.isNull(offset + 13) ? null : cursor.getShort(offset + 13) != 0);
|
entity.setRechecktime(cursor.isNull(offset + 14) ? null : new java.util.Date(cursor.getLong(offset + 14)));
|
entity.setRecheckuserguid(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
|
entity.setRecheckusername(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
|
entity.setRecheckuserrealname(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
|
entity.setRecheckdescription(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18));
|
entity.setRecheckresultid(cursor.isNull(offset + 19) ? null : cursor.getShort(offset + 19) != 0);
|
entity.setRecheckresult(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
|
entity.setIschanged(cursor.isNull(offset + 21) ? null : cursor.getShort(offset + 21) != 0);
|
entity.setChangecatalog(cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22));
|
entity.setChangedtime(cursor.isNull(offset + 23) ? null : new java.util.Date(cursor.getLong(offset + 23)));
|
entity.setChangedresult(cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24));
|
entity.setAdvise(cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25));
|
entity.setExtension1(cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26));
|
entity.setExtension2(cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27));
|
entity.setExtension3(cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28));
|
entity.setRemark(cursor.isNull(offset + 29) ? null : cursor.getString(offset + 29));
|
}
|
|
@Override
|
protected final String updateKeyAfterInsert(Problemlist entity, long rowId) {
|
return entity.getGuid();
|
}
|
|
@Override
|
public String getKey(Problemlist entity) {
|
if(entity != null) {
|
return entity.getGuid();
|
} else {
|
return null;
|
}
|
}
|
|
@Override
|
public boolean hasKey(Problemlist entity) {
|
return entity.getGuid() != null;
|
}
|
|
@Override
|
protected final boolean isEntityUpdateable() {
|
return true;
|
}
|
|
}
|