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.thirdapp.bean.entity.Evaluation;
|
|
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
|
/**
|
* DAO for table "EVALUATION".
|
*/
|
public class EvaluationDao extends AbstractDao<Evaluation, String> {
|
|
public static final String TABLENAME = "EVALUATION";
|
|
/**
|
* Properties of entity Evaluation.<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 Scensetypeid = new Property(4, Byte.class, "scensetypeid", false, "SCENSETYPEID");
|
public final static Property Scensetype = new Property(5, String.class, "scensetype", false, "SCENSETYPE");
|
public final static Property Subscensetypeid = new Property(6, Byte.class, "subscensetypeid", false, "SUBSCENSETYPEID");
|
public final static Property Subscensetype = new Property(7, String.class, "subscensetype", false, "SUBSCENSETYPE");
|
public final static Property Ertype = new Property(8, Byte.class, "ertype", false, "ERTYPE");
|
public final static Property Provincecode = new Property(9, String.class, "provincecode", false, "PROVINCECODE");
|
public final static Property Provincename = new Property(10, String.class, "provincename", false, "PROVINCENAME");
|
public final static Property Citycode = new Property(11, String.class, "citycode", false, "CITYCODE");
|
public final static Property Cityname = new Property(12, String.class, "cityname", false, "CITYNAME");
|
public final static Property Districtcode = new Property(13, String.class, "districtcode", false, "DISTRICTCODE");
|
public final static Property Districtname = new Property(14, String.class, "districtname", false, "DISTRICTNAME");
|
public final static Property Towncode = new Property(15, String.class, "towncode", false, "TOWNCODE");
|
public final static Property Townname = new Property(16, String.class, "townname", false, "TOWNNAME");
|
public final static Property Scensename = new Property(17, String.class, "scensename", false, "SCENSENAME");
|
public final static Property Scenseaddress = new Property(18, String.class, "scenseaddress", false, "SCENSEADDRESS");
|
public final static Property Evaluatetime = new Property(19, java.util.Date.class, "evaluatetime", false, "EVALUATETIME");
|
public final static Property Evaluatorguid = new Property(20, String.class, "evaluatorguid", false, "EVALUATORGUID");
|
public final static Property Evaluatorusername = new Property(21, String.class, "evaluatorusername", false, "EVALUATORUSERNAME");
|
public final static Property Evaluatorrealname = new Property(22, String.class, "evaluatorrealname", false, "EVALUATORREALNAME");
|
public final static Property Resultstandardbef = new Property(23, String.class, "resultstandardbef", false, "RESULTSTANDARDBEF");
|
public final static Property Resultscorebef = new Property(24, String.class, "resultscorebef", false, "RESULTSCOREBEF");
|
public final static Property Promissednum = new Property(25, Integer.class, "promissednum", false, "PROMISSEDNUM");
|
public final static Property Changednum = new Property(26, Integer.class, "changednum", false, "CHANGEDNUM");
|
public final static Property Resultstandardaft = new Property(27, String.class, "resultstandardaft", false, "RESULTSTANDARDAFT");
|
public final static Property Resultscoreaft = new Property(28, String.class, "resultscoreaft", false, "RESULTSCOREAFT");
|
public final static Property Createdate = new Property(29, java.util.Date.class, "createdate", false, "CREATEDATE");
|
public final static Property Updatedate = new Property(30, java.util.Date.class, "updatedate", false, "UPDATEDATE");
|
public final static Property Extension1 = new Property(31, String.class, "extension1", false, "EXTENSION1");
|
public final static Property Extension2 = new Property(32, String.class, "extension2", false, "EXTENSION2");
|
public final static Property Extension3 = new Property(33, String.class, "extension3", false, "EXTENSION3");
|
public final static Property Remark = new Property(34, String.class, "remark", false, "REMARK");
|
}
|
|
|
public EvaluationDao(DaoConfig config) {
|
super(config);
|
}
|
|
public EvaluationDao(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 + "\"EVALUATION\" (" + //
|
"\"GUID\" TEXT PRIMARY KEY NOT NULL ," + // 0: guid
|
"\"IGUID\" TEXT," + // 1: iguid
|
"\"STGUID\" TEXT," + // 2: stguid
|
"\"SGUID\" TEXT," + // 3: sguid
|
"\"SCENSETYPEID\" INTEGER," + // 4: scensetypeid
|
"\"SCENSETYPE\" TEXT," + // 5: scensetype
|
"\"SUBSCENSETYPEID\" INTEGER," + // 6: subscensetypeid
|
"\"SUBSCENSETYPE\" TEXT," + // 7: subscensetype
|
"\"ERTYPE\" INTEGER," + // 8: ertype
|
"\"PROVINCECODE\" TEXT," + // 9: provincecode
|
"\"PROVINCENAME\" TEXT," + // 10: provincename
|
"\"CITYCODE\" TEXT," + // 11: citycode
|
"\"CITYNAME\" TEXT," + // 12: cityname
|
"\"DISTRICTCODE\" TEXT," + // 13: districtcode
|
"\"DISTRICTNAME\" TEXT," + // 14: districtname
|
"\"TOWNCODE\" TEXT," + // 15: towncode
|
"\"TOWNNAME\" TEXT," + // 16: townname
|
"\"SCENSENAME\" TEXT," + // 17: scensename
|
"\"SCENSEADDRESS\" TEXT," + // 18: scenseaddress
|
"\"EVALUATETIME\" INTEGER," + // 19: evaluatetime
|
"\"EVALUATORGUID\" TEXT," + // 20: evaluatorguid
|
"\"EVALUATORUSERNAME\" TEXT," + // 21: evaluatorusername
|
"\"EVALUATORREALNAME\" TEXT," + // 22: evaluatorrealname
|
"\"RESULTSTANDARDBEF\" TEXT," + // 23: resultstandardbef
|
"\"RESULTSCOREBEF\" TEXT," + // 24: resultscorebef
|
"\"PROMISSEDNUM\" INTEGER," + // 25: promissednum
|
"\"CHANGEDNUM\" INTEGER," + // 26: changednum
|
"\"RESULTSTANDARDAFT\" TEXT," + // 27: resultstandardaft
|
"\"RESULTSCOREAFT\" TEXT," + // 28: resultscoreaft
|
"\"CREATEDATE\" INTEGER," + // 29: createdate
|
"\"UPDATEDATE\" INTEGER," + // 30: updatedate
|
"\"EXTENSION1\" TEXT," + // 31: extension1
|
"\"EXTENSION2\" TEXT," + // 32: extension2
|
"\"EXTENSION3\" TEXT," + // 33: extension3
|
"\"REMARK\" TEXT);"); // 34: remark
|
}
|
|
/** Drops the underlying database table. */
|
public static void dropTable(Database db, boolean ifExists) {
|
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"EVALUATION\"";
|
db.execSQL(sql);
|
}
|
|
@Override
|
protected final void bindValues(DatabaseStatement stmt, Evaluation 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);
|
}
|
|
Byte scensetypeid = entity.getScensetypeid();
|
if (scensetypeid != null) {
|
stmt.bindLong(5, scensetypeid);
|
}
|
|
String scensetype = entity.getScensetype();
|
if (scensetype != null) {
|
stmt.bindString(6, scensetype);
|
}
|
|
Byte subscensetypeid = entity.getSubscensetypeid();
|
if (subscensetypeid != null) {
|
stmt.bindLong(7, subscensetypeid);
|
}
|
|
String subscensetype = entity.getSubscensetype();
|
if (subscensetype != null) {
|
stmt.bindString(8, subscensetype);
|
}
|
|
Byte ertype = entity.getErtype();
|
if (ertype != null) {
|
stmt.bindLong(9, ertype);
|
}
|
|
String provincecode = entity.getProvincecode();
|
if (provincecode != null) {
|
stmt.bindString(10, provincecode);
|
}
|
|
String provincename = entity.getProvincename();
|
if (provincename != null) {
|
stmt.bindString(11, provincename);
|
}
|
|
String citycode = entity.getCitycode();
|
if (citycode != null) {
|
stmt.bindString(12, citycode);
|
}
|
|
String cityname = entity.getCityname();
|
if (cityname != null) {
|
stmt.bindString(13, cityname);
|
}
|
|
String districtcode = entity.getDistrictcode();
|
if (districtcode != null) {
|
stmt.bindString(14, districtcode);
|
}
|
|
String districtname = entity.getDistrictname();
|
if (districtname != null) {
|
stmt.bindString(15, districtname);
|
}
|
|
String towncode = entity.getTowncode();
|
if (towncode != null) {
|
stmt.bindString(16, towncode);
|
}
|
|
String townname = entity.getTownname();
|
if (townname != null) {
|
stmt.bindString(17, townname);
|
}
|
|
String scensename = entity.getScensename();
|
if (scensename != null) {
|
stmt.bindString(18, scensename);
|
}
|
|
String scenseaddress = entity.getScenseaddress();
|
if (scenseaddress != null) {
|
stmt.bindString(19, scenseaddress);
|
}
|
|
java.util.Date evaluatetime = entity.getEvaluatetime();
|
if (evaluatetime != null) {
|
stmt.bindLong(20, evaluatetime.getTime());
|
}
|
|
String evaluatorguid = entity.getEvaluatorguid();
|
if (evaluatorguid != null) {
|
stmt.bindString(21, evaluatorguid);
|
}
|
|
String evaluatorusername = entity.getEvaluatorusername();
|
if (evaluatorusername != null) {
|
stmt.bindString(22, evaluatorusername);
|
}
|
|
String evaluatorrealname = entity.getEvaluatorrealname();
|
if (evaluatorrealname != null) {
|
stmt.bindString(23, evaluatorrealname);
|
}
|
|
String resultstandardbef = entity.getResultstandardbef();
|
if (resultstandardbef != null) {
|
stmt.bindString(24, resultstandardbef);
|
}
|
|
String resultscorebef = entity.getResultscorebef();
|
if (resultscorebef != null) {
|
stmt.bindString(25, resultscorebef);
|
}
|
|
Integer promissednum = entity.getPromissednum();
|
if (promissednum != null) {
|
stmt.bindLong(26, promissednum);
|
}
|
|
Integer changednum = entity.getChangednum();
|
if (changednum != null) {
|
stmt.bindLong(27, changednum);
|
}
|
|
String resultstandardaft = entity.getResultstandardaft();
|
if (resultstandardaft != null) {
|
stmt.bindString(28, resultstandardaft);
|
}
|
|
String resultscoreaft = entity.getResultscoreaft();
|
if (resultscoreaft != null) {
|
stmt.bindString(29, resultscoreaft);
|
}
|
|
java.util.Date createdate = entity.getCreatedate();
|
if (createdate != null) {
|
stmt.bindLong(30, createdate.getTime());
|
}
|
|
java.util.Date updatedate = entity.getUpdatedate();
|
if (updatedate != null) {
|
stmt.bindLong(31, updatedate.getTime());
|
}
|
|
String extension1 = entity.getExtension1();
|
if (extension1 != null) {
|
stmt.bindString(32, extension1);
|
}
|
|
String extension2 = entity.getExtension2();
|
if (extension2 != null) {
|
stmt.bindString(33, extension2);
|
}
|
|
String extension3 = entity.getExtension3();
|
if (extension3 != null) {
|
stmt.bindString(34, extension3);
|
}
|
|
String remark = entity.getRemark();
|
if (remark != null) {
|
stmt.bindString(35, remark);
|
}
|
}
|
|
@Override
|
protected final void bindValues(SQLiteStatement stmt, Evaluation 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);
|
}
|
|
Byte scensetypeid = entity.getScensetypeid();
|
if (scensetypeid != null) {
|
stmt.bindLong(5, scensetypeid);
|
}
|
|
String scensetype = entity.getScensetype();
|
if (scensetype != null) {
|
stmt.bindString(6, scensetype);
|
}
|
|
Byte subscensetypeid = entity.getSubscensetypeid();
|
if (subscensetypeid != null) {
|
stmt.bindLong(7, subscensetypeid);
|
}
|
|
String subscensetype = entity.getSubscensetype();
|
if (subscensetype != null) {
|
stmt.bindString(8, subscensetype);
|
}
|
|
Byte ertype = entity.getErtype();
|
if (ertype != null) {
|
stmt.bindLong(9, ertype);
|
}
|
|
String provincecode = entity.getProvincecode();
|
if (provincecode != null) {
|
stmt.bindString(10, provincecode);
|
}
|
|
String provincename = entity.getProvincename();
|
if (provincename != null) {
|
stmt.bindString(11, provincename);
|
}
|
|
String citycode = entity.getCitycode();
|
if (citycode != null) {
|
stmt.bindString(12, citycode);
|
}
|
|
String cityname = entity.getCityname();
|
if (cityname != null) {
|
stmt.bindString(13, cityname);
|
}
|
|
String districtcode = entity.getDistrictcode();
|
if (districtcode != null) {
|
stmt.bindString(14, districtcode);
|
}
|
|
String districtname = entity.getDistrictname();
|
if (districtname != null) {
|
stmt.bindString(15, districtname);
|
}
|
|
String towncode = entity.getTowncode();
|
if (towncode != null) {
|
stmt.bindString(16, towncode);
|
}
|
|
String townname = entity.getTownname();
|
if (townname != null) {
|
stmt.bindString(17, townname);
|
}
|
|
String scensename = entity.getScensename();
|
if (scensename != null) {
|
stmt.bindString(18, scensename);
|
}
|
|
String scenseaddress = entity.getScenseaddress();
|
if (scenseaddress != null) {
|
stmt.bindString(19, scenseaddress);
|
}
|
|
java.util.Date evaluatetime = entity.getEvaluatetime();
|
if (evaluatetime != null) {
|
stmt.bindLong(20, evaluatetime.getTime());
|
}
|
|
String evaluatorguid = entity.getEvaluatorguid();
|
if (evaluatorguid != null) {
|
stmt.bindString(21, evaluatorguid);
|
}
|
|
String evaluatorusername = entity.getEvaluatorusername();
|
if (evaluatorusername != null) {
|
stmt.bindString(22, evaluatorusername);
|
}
|
|
String evaluatorrealname = entity.getEvaluatorrealname();
|
if (evaluatorrealname != null) {
|
stmt.bindString(23, evaluatorrealname);
|
}
|
|
String resultstandardbef = entity.getResultstandardbef();
|
if (resultstandardbef != null) {
|
stmt.bindString(24, resultstandardbef);
|
}
|
|
String resultscorebef = entity.getResultscorebef();
|
if (resultscorebef != null) {
|
stmt.bindString(25, resultscorebef);
|
}
|
|
Integer promissednum = entity.getPromissednum();
|
if (promissednum != null) {
|
stmt.bindLong(26, promissednum);
|
}
|
|
Integer changednum = entity.getChangednum();
|
if (changednum != null) {
|
stmt.bindLong(27, changednum);
|
}
|
|
String resultstandardaft = entity.getResultstandardaft();
|
if (resultstandardaft != null) {
|
stmt.bindString(28, resultstandardaft);
|
}
|
|
String resultscoreaft = entity.getResultscoreaft();
|
if (resultscoreaft != null) {
|
stmt.bindString(29, resultscoreaft);
|
}
|
|
java.util.Date createdate = entity.getCreatedate();
|
if (createdate != null) {
|
stmt.bindLong(30, createdate.getTime());
|
}
|
|
java.util.Date updatedate = entity.getUpdatedate();
|
if (updatedate != null) {
|
stmt.bindLong(31, updatedate.getTime());
|
}
|
|
String extension1 = entity.getExtension1();
|
if (extension1 != null) {
|
stmt.bindString(32, extension1);
|
}
|
|
String extension2 = entity.getExtension2();
|
if (extension2 != null) {
|
stmt.bindString(33, extension2);
|
}
|
|
String extension3 = entity.getExtension3();
|
if (extension3 != null) {
|
stmt.bindString(34, extension3);
|
}
|
|
String remark = entity.getRemark();
|
if (remark != null) {
|
stmt.bindString(35, remark);
|
}
|
}
|
|
@Override
|
public String readKey(Cursor cursor, int offset) {
|
return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0);
|
}
|
|
@Override
|
public Evaluation readEntity(Cursor cursor, int offset) {
|
Evaluation entity = new Evaluation( //
|
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 : (byte) cursor.getShort(offset + 4), // scensetypeid
|
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // scensetype
|
cursor.isNull(offset + 6) ? null : (byte) cursor.getShort(offset + 6), // subscensetypeid
|
cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // subscensetype
|
cursor.isNull(offset + 8) ? null : (byte) cursor.getShort(offset + 8), // ertype
|
cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // provincecode
|
cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // provincename
|
cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // citycode
|
cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12), // cityname
|
cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13), // districtcode
|
cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // districtname
|
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // towncode
|
cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // townname
|
cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // scensename
|
cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // scenseaddress
|
cursor.isNull(offset + 19) ? null : new java.util.Date(cursor.getLong(offset + 19)), // evaluatetime
|
cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // evaluatorguid
|
cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21), // evaluatorusername
|
cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22), // evaluatorrealname
|
cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23), // resultstandardbef
|
cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24), // resultscorebef
|
cursor.isNull(offset + 25) ? null : cursor.getInt(offset + 25), // promissednum
|
cursor.isNull(offset + 26) ? null : cursor.getInt(offset + 26), // changednum
|
cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27), // resultstandardaft
|
cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28), // resultscoreaft
|
cursor.isNull(offset + 29) ? null : new java.util.Date(cursor.getLong(offset + 29)), // createdate
|
cursor.isNull(offset + 30) ? null : new java.util.Date(cursor.getLong(offset + 30)), // updatedate
|
cursor.isNull(offset + 31) ? null : cursor.getString(offset + 31), // extension1
|
cursor.isNull(offset + 32) ? null : cursor.getString(offset + 32), // extension2
|
cursor.isNull(offset + 33) ? null : cursor.getString(offset + 33), // extension3
|
cursor.isNull(offset + 34) ? null : cursor.getString(offset + 34) // remark
|
);
|
return entity;
|
}
|
|
@Override
|
public void readEntity(Cursor cursor, Evaluation 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.setScensetypeid(cursor.isNull(offset + 4) ? null : (byte) cursor.getShort(offset + 4));
|
entity.setScensetype(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
|
entity.setSubscensetypeid(cursor.isNull(offset + 6) ? null : (byte) cursor.getShort(offset + 6));
|
entity.setSubscensetype(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
|
entity.setErtype(cursor.isNull(offset + 8) ? null : (byte) cursor.getShort(offset + 8));
|
entity.setProvincecode(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
|
entity.setProvincename(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
|
entity.setCitycode(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
|
entity.setCityname(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12));
|
entity.setDistrictcode(cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13));
|
entity.setDistrictname(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
|
entity.setTowncode(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
|
entity.setTownname(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
|
entity.setScensename(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
|
entity.setScenseaddress(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18));
|
entity.setEvaluatetime(cursor.isNull(offset + 19) ? null : new java.util.Date(cursor.getLong(offset + 19)));
|
entity.setEvaluatorguid(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
|
entity.setEvaluatorusername(cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21));
|
entity.setEvaluatorrealname(cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22));
|
entity.setResultstandardbef(cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23));
|
entity.setResultscorebef(cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24));
|
entity.setPromissednum(cursor.isNull(offset + 25) ? null : cursor.getInt(offset + 25));
|
entity.setChangednum(cursor.isNull(offset + 26) ? null : cursor.getInt(offset + 26));
|
entity.setResultstandardaft(cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27));
|
entity.setResultscoreaft(cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28));
|
entity.setCreatedate(cursor.isNull(offset + 29) ? null : new java.util.Date(cursor.getLong(offset + 29)));
|
entity.setUpdatedate(cursor.isNull(offset + 30) ? null : new java.util.Date(cursor.getLong(offset + 30)));
|
entity.setExtension1(cursor.isNull(offset + 31) ? null : cursor.getString(offset + 31));
|
entity.setExtension2(cursor.isNull(offset + 32) ? null : cursor.getString(offset + 32));
|
entity.setExtension3(cursor.isNull(offset + 33) ? null : cursor.getString(offset + 33));
|
entity.setRemark(cursor.isNull(offset + 34) ? null : cursor.getString(offset + 34));
|
}
|
|
@Override
|
protected final String updateKeyAfterInsert(Evaluation entity, long rowId) {
|
return entity.getGuid();
|
}
|
|
@Override
|
public String getKey(Evaluation entity) {
|
if(entity != null) {
|
return entity.getGuid();
|
} else {
|
return null;
|
}
|
}
|
|
@Override
|
public boolean hasKey(Evaluation entity) {
|
return entity.getGuid() != null;
|
}
|
|
@Override
|
protected final boolean isEntityUpdateable() {
|
return true;
|
}
|
|
}
|