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.Itemevaluation;
|
|
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
|
/**
|
* DAO for table "ITEMEVALUATION".
|
*/
|
public class ItemevaluationDao extends AbstractDao<Itemevaluation, String> {
|
|
public static final String TABLENAME = "ITEMEVALUATION";
|
|
/**
|
* Properties of entity Itemevaluation.<br/>
|
* Can be used for QueryBuilder and for referencing column names.
|
*/
|
public static class Properties {
|
public final static Property Ieguid = new Property(0, String.class, "ieguid", true, "IEGUID");
|
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 Erguid = new Property(5, String.class, "erguid", false, "ERGUID");
|
public final static Property Rulename = new Property(6, String.class, "rulename", false, "RULENAME");
|
public final static Property Ruletype = new Property(7, Integer.class, "ruletype", false, "RULETYPE");
|
public final static Property Ertype = new Property(8, Integer.class, "ertype", false, "ERTYPE");
|
public final static Property Esrguid = new Property(9, String.class, "esrguid", false, "ESRGUID");
|
public final static Property Name = new Property(10, String.class, "name", false, "NAME");
|
public final static Property Value = new Property(11, String.class, "value", false, "VALUE");
|
public final static Property Resultafter = new Property(12, String.class, "resultafter", false, "RESULTAFTER");
|
public final static Property Vecheckvalue = new Property(13, String.class, "vecheckvalue", false, "VECHECKVALUE");
|
public final static Property Extension1 = new Property(14, String.class, "extension1", false, "EXTENSION1");
|
public final static Property Extension2 = new Property(15, String.class, "extension2", false, "EXTENSION2");
|
public final static Property Extension3 = new Property(16, String.class, "extension3", false, "EXTENSION3");
|
public final static Property Remark = new Property(17, String.class, "remark", false, "REMARK");
|
}
|
|
|
public ItemevaluationDao(DaoConfig config) {
|
super(config);
|
}
|
|
public ItemevaluationDao(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 + "\"ITEMEVALUATION\" (" + //
|
"\"IEGUID\" TEXT PRIMARY KEY NOT NULL ," + // 0: ieguid
|
"\"IGUID\" TEXT," + // 1: iguid
|
"\"STGUID\" TEXT," + // 2: stguid
|
"\"SGUID\" TEXT," + // 3: sguid
|
"\"SENSENAME\" TEXT," + // 4: sensename
|
"\"ERGUID\" TEXT," + // 5: erguid
|
"\"RULENAME\" TEXT," + // 6: rulename
|
"\"RULETYPE\" INTEGER," + // 7: ruletype
|
"\"ERTYPE\" INTEGER," + // 8: ertype
|
"\"ESRGUID\" TEXT," + // 9: esrguid
|
"\"NAME\" TEXT," + // 10: name
|
"\"VALUE\" TEXT," + // 11: value
|
"\"RESULTAFTER\" TEXT," + // 12: resultafter
|
"\"VECHECKVALUE\" TEXT," + // 13: vecheckvalue
|
"\"EXTENSION1\" TEXT," + // 14: extension1
|
"\"EXTENSION2\" TEXT," + // 15: extension2
|
"\"EXTENSION3\" TEXT," + // 16: extension3
|
"\"REMARK\" TEXT);"); // 17: remark
|
}
|
|
/** Drops the underlying database table. */
|
public static void dropTable(Database db, boolean ifExists) {
|
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"ITEMEVALUATION\"";
|
db.execSQL(sql);
|
}
|
|
@Override
|
protected final void bindValues(DatabaseStatement stmt, Itemevaluation entity) {
|
stmt.clearBindings();
|
|
String ieguid = entity.getIeguid();
|
if (ieguid != null) {
|
stmt.bindString(1, ieguid);
|
}
|
|
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 erguid = entity.getErguid();
|
if (erguid != null) {
|
stmt.bindString(6, erguid);
|
}
|
|
String rulename = entity.getRulename();
|
if (rulename != null) {
|
stmt.bindString(7, rulename);
|
}
|
|
Integer ruletype = entity.getRuletype();
|
if (ruletype != null) {
|
stmt.bindLong(8, ruletype);
|
}
|
|
Integer ertype = entity.getErtype();
|
if (ertype != null) {
|
stmt.bindLong(9, ertype);
|
}
|
|
String esrguid = entity.getEsrguid();
|
if (esrguid != null) {
|
stmt.bindString(10, esrguid);
|
}
|
|
String name = entity.getName();
|
if (name != null) {
|
stmt.bindString(11, name);
|
}
|
|
String value = entity.getValue();
|
if (value != null) {
|
stmt.bindString(12, value);
|
}
|
|
String resultafter = entity.getResultafter();
|
if (resultafter != null) {
|
stmt.bindString(13, resultafter);
|
}
|
|
String vecheckvalue = entity.getVecheckvalue();
|
if (vecheckvalue != null) {
|
stmt.bindString(14, vecheckvalue);
|
}
|
|
String extension1 = entity.getExtension1();
|
if (extension1 != null) {
|
stmt.bindString(15, extension1);
|
}
|
|
String extension2 = entity.getExtension2();
|
if (extension2 != null) {
|
stmt.bindString(16, extension2);
|
}
|
|
String extension3 = entity.getExtension3();
|
if (extension3 != null) {
|
stmt.bindString(17, extension3);
|
}
|
|
String remark = entity.getRemark();
|
if (remark != null) {
|
stmt.bindString(18, remark);
|
}
|
}
|
|
@Override
|
protected final void bindValues(SQLiteStatement stmt, Itemevaluation entity) {
|
stmt.clearBindings();
|
|
String ieguid = entity.getIeguid();
|
if (ieguid != null) {
|
stmt.bindString(1, ieguid);
|
}
|
|
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 erguid = entity.getErguid();
|
if (erguid != null) {
|
stmt.bindString(6, erguid);
|
}
|
|
String rulename = entity.getRulename();
|
if (rulename != null) {
|
stmt.bindString(7, rulename);
|
}
|
|
Integer ruletype = entity.getRuletype();
|
if (ruletype != null) {
|
stmt.bindLong(8, ruletype);
|
}
|
|
Integer ertype = entity.getErtype();
|
if (ertype != null) {
|
stmt.bindLong(9, ertype);
|
}
|
|
String esrguid = entity.getEsrguid();
|
if (esrguid != null) {
|
stmt.bindString(10, esrguid);
|
}
|
|
String name = entity.getName();
|
if (name != null) {
|
stmt.bindString(11, name);
|
}
|
|
String value = entity.getValue();
|
if (value != null) {
|
stmt.bindString(12, value);
|
}
|
|
String resultafter = entity.getResultafter();
|
if (resultafter != null) {
|
stmt.bindString(13, resultafter);
|
}
|
|
String vecheckvalue = entity.getVecheckvalue();
|
if (vecheckvalue != null) {
|
stmt.bindString(14, vecheckvalue);
|
}
|
|
String extension1 = entity.getExtension1();
|
if (extension1 != null) {
|
stmt.bindString(15, extension1);
|
}
|
|
String extension2 = entity.getExtension2();
|
if (extension2 != null) {
|
stmt.bindString(16, extension2);
|
}
|
|
String extension3 = entity.getExtension3();
|
if (extension3 != null) {
|
stmt.bindString(17, extension3);
|
}
|
|
String remark = entity.getRemark();
|
if (remark != null) {
|
stmt.bindString(18, remark);
|
}
|
}
|
|
@Override
|
public String readKey(Cursor cursor, int offset) {
|
return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0);
|
}
|
|
@Override
|
public Itemevaluation readEntity(Cursor cursor, int offset) {
|
Itemevaluation entity = new Itemevaluation( //
|
cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // ieguid
|
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), // erguid
|
cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // rulename
|
cursor.isNull(offset + 7) ? null : cursor.getInt(offset + 7), // ruletype
|
cursor.isNull(offset + 8) ? null : cursor.getInt(offset + 8), // ertype
|
cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // esrguid
|
cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // name
|
cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // value
|
cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12), // resultafter
|
cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13), // vecheckvalue
|
cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // extension1
|
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // extension2
|
cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // extension3
|
cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17) // remark
|
);
|
return entity;
|
}
|
|
@Override
|
public void readEntity(Cursor cursor, Itemevaluation entity, int offset) {
|
entity.setIeguid(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.setErguid(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
|
entity.setRulename(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
|
entity.setRuletype(cursor.isNull(offset + 7) ? null : cursor.getInt(offset + 7));
|
entity.setErtype(cursor.isNull(offset + 8) ? null : cursor.getInt(offset + 8));
|
entity.setEsrguid(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
|
entity.setName(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
|
entity.setValue(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
|
entity.setResultafter(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12));
|
entity.setVecheckvalue(cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13));
|
entity.setExtension1(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
|
entity.setExtension2(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
|
entity.setExtension3(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
|
entity.setRemark(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
|
}
|
|
@Override
|
protected final String updateKeyAfterInsert(Itemevaluation entity, long rowId) {
|
return entity.getIeguid();
|
}
|
|
@Override
|
public String getKey(Itemevaluation entity) {
|
if(entity != null) {
|
return entity.getIeguid();
|
} else {
|
return null;
|
}
|
}
|
|
@Override
|
public boolean hasKey(Itemevaluation entity) {
|
return entity.getIeguid() != null;
|
}
|
|
@Override
|
protected final boolean isEntityUpdateable() {
|
return true;
|
}
|
|
}
|