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.Evaluationsubrule; // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. /** * DAO for table "EVALUATIONSUBRULE". */ public class EvaluationsubruleDao extends AbstractDao { public static final String TABLENAME = "EVALUATIONSUBRULE"; /** * Properties of entity Evaluationsubrule.
* 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 Erguid = new Property(1, String.class, "erguid", false, "ERGUID"); public final static Property Ertype = new Property(2, Boolean.class, "ertype", false, "ERTYPE"); public final static Property Fatherid = new Property(3, String.class, "fatherid", false, "FATHERID"); public final static Property Fathername = new Property(4, String.class, "fathername", false, "FATHERNAME"); public final static Property Usedanalyse = new Property(5, Boolean.class, "usedanalyse", false, "USEDANALYSE"); public final static Property Itemname = new Property(6, String.class, "itemname", false, "ITEMNAME"); public final static Property Itemdescription = new Property(7, String.class, "itemdescription", false, "ITEMDESCRIPTION"); public final static Property Minscore = new Property(8, Integer.class, "minscore", false, "MINSCORE"); public final static Property Maxscore = new Property(9, Integer.class, "maxscore", false, "MAXSCORE"); public final static Property Displayid = new Property(10, Byte.class, "displayid", false, "DISPLAYID"); public final static Property Displaylevel = new Property(11, Byte.class, "displaylevel", false, "DISPLAYLEVEL"); public final static Property Defaultvalue = new Property(12, String.class, "defaultvalue", false, "DEFAULTVALUE"); public final static Property Problemlist = new Property(13, String.class, "problemlist", false, "PROBLEMLIST"); public final static Property Gitlist = new Property(14, String.class, "gitlist", false, "GITLIST"); public final static Property Devicelist = new Property(15, String.class, "devicelist", false, "DEVICELIST"); public final static Property Createdate = new Property(16, java.util.Date.class, "createdate", false, "CREATEDATE"); public final static Property Updatedate = new Property(17, java.util.Date.class, "updatedate", false, "UPDATEDATE"); public final static Property Extension1 = new Property(18, String.class, "extension1", false, "EXTENSION1"); public final static Property Extension2 = new Property(19, String.class, "extension2", false, "EXTENSION2"); public final static Property Extension3 = new Property(20, String.class, "extension3", false, "EXTENSION3"); public final static Property Remark = new Property(21, String.class, "remark", false, "REMARK"); } public EvaluationsubruleDao(DaoConfig config) { super(config); } public EvaluationsubruleDao(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 + "\"EVALUATIONSUBRULE\" (" + // "\"GUID\" TEXT PRIMARY KEY NOT NULL ," + // 0: guid "\"ERGUID\" TEXT," + // 1: erguid "\"ERTYPE\" INTEGER," + // 2: ertype "\"FATHERID\" TEXT," + // 3: fatherid "\"FATHERNAME\" TEXT," + // 4: fathername "\"USEDANALYSE\" INTEGER," + // 5: usedanalyse "\"ITEMNAME\" TEXT," + // 6: itemname "\"ITEMDESCRIPTION\" TEXT," + // 7: itemdescription "\"MINSCORE\" INTEGER," + // 8: minscore "\"MAXSCORE\" INTEGER," + // 9: maxscore "\"DISPLAYID\" INTEGER," + // 10: displayid "\"DISPLAYLEVEL\" INTEGER," + // 11: displaylevel "\"DEFAULTVALUE\" TEXT," + // 12: defaultvalue "\"PROBLEMLIST\" TEXT," + // 13: problemlist "\"GITLIST\" TEXT," + // 14: gitlist "\"DEVICELIST\" TEXT," + // 15: devicelist "\"CREATEDATE\" INTEGER," + // 16: createdate "\"UPDATEDATE\" INTEGER," + // 17: updatedate "\"EXTENSION1\" TEXT," + // 18: extension1 "\"EXTENSION2\" TEXT," + // 19: extension2 "\"EXTENSION3\" TEXT," + // 20: extension3 "\"REMARK\" TEXT);"); // 21: remark } /** Drops the underlying database table. */ public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"EVALUATIONSUBRULE\""; db.execSQL(sql); } @Override protected final void bindValues(DatabaseStatement stmt, Evaluationsubrule entity) { stmt.clearBindings(); String guid = entity.getGuid(); if (guid != null) { stmt.bindString(1, guid); } String erguid = entity.getErguid(); if (erguid != null) { stmt.bindString(2, erguid); } Boolean ertype = entity.getErtype(); if (ertype != null) { stmt.bindLong(3, ertype ? 1L: 0L); } String fatherid = entity.getFatherid(); if (fatherid != null) { stmt.bindString(4, fatherid); } String fathername = entity.getFathername(); if (fathername != null) { stmt.bindString(5, fathername); } Boolean usedanalyse = entity.getUsedanalyse(); if (usedanalyse != null) { stmt.bindLong(6, usedanalyse ? 1L: 0L); } String itemname = entity.getItemname(); if (itemname != null) { stmt.bindString(7, itemname); } String itemdescription = entity.getItemdescription(); if (itemdescription != null) { stmt.bindString(8, itemdescription); } Integer minscore = entity.getMinscore(); if (minscore != null) { stmt.bindLong(9, minscore); } Integer maxscore = entity.getMaxscore(); if (maxscore != null) { stmt.bindLong(10, maxscore); } Byte displayid = entity.getDisplayid(); if (displayid != null) { stmt.bindLong(11, displayid); } Byte displaylevel = entity.getDisplaylevel(); if (displaylevel != null) { stmt.bindLong(12, displaylevel); } String defaultvalue = entity.getDefaultvalue(); if (defaultvalue != null) { stmt.bindString(13, defaultvalue); } String problemlist = entity.getProblemlist(); if (problemlist != null) { stmt.bindString(14, problemlist); } String gitlist = entity.getGitlist(); if (gitlist != null) { stmt.bindString(15, gitlist); } String devicelist = entity.getDevicelist(); if (devicelist != null) { stmt.bindString(16, devicelist); } java.util.Date createdate = entity.getCreatedate(); if (createdate != null) { stmt.bindLong(17, createdate.getTime()); } java.util.Date updatedate = entity.getUpdatedate(); if (updatedate != null) { stmt.bindLong(18, updatedate.getTime()); } String extension1 = entity.getExtension1(); if (extension1 != null) { stmt.bindString(19, extension1); } String extension2 = entity.getExtension2(); if (extension2 != null) { stmt.bindString(20, extension2); } String extension3 = entity.getExtension3(); if (extension3 != null) { stmt.bindString(21, extension3); } String remark = entity.getRemark(); if (remark != null) { stmt.bindString(22, remark); } } @Override protected final void bindValues(SQLiteStatement stmt, Evaluationsubrule entity) { stmt.clearBindings(); String guid = entity.getGuid(); if (guid != null) { stmt.bindString(1, guid); } String erguid = entity.getErguid(); if (erguid != null) { stmt.bindString(2, erguid); } Boolean ertype = entity.getErtype(); if (ertype != null) { stmt.bindLong(3, ertype ? 1L: 0L); } String fatherid = entity.getFatherid(); if (fatherid != null) { stmt.bindString(4, fatherid); } String fathername = entity.getFathername(); if (fathername != null) { stmt.bindString(5, fathername); } Boolean usedanalyse = entity.getUsedanalyse(); if (usedanalyse != null) { stmt.bindLong(6, usedanalyse ? 1L: 0L); } String itemname = entity.getItemname(); if (itemname != null) { stmt.bindString(7, itemname); } String itemdescription = entity.getItemdescription(); if (itemdescription != null) { stmt.bindString(8, itemdescription); } Integer minscore = entity.getMinscore(); if (minscore != null) { stmt.bindLong(9, minscore); } Integer maxscore = entity.getMaxscore(); if (maxscore != null) { stmt.bindLong(10, maxscore); } Byte displayid = entity.getDisplayid(); if (displayid != null) { stmt.bindLong(11, displayid); } Byte displaylevel = entity.getDisplaylevel(); if (displaylevel != null) { stmt.bindLong(12, displaylevel); } String defaultvalue = entity.getDefaultvalue(); if (defaultvalue != null) { stmt.bindString(13, defaultvalue); } String problemlist = entity.getProblemlist(); if (problemlist != null) { stmt.bindString(14, problemlist); } String gitlist = entity.getGitlist(); if (gitlist != null) { stmt.bindString(15, gitlist); } String devicelist = entity.getDevicelist(); if (devicelist != null) { stmt.bindString(16, devicelist); } java.util.Date createdate = entity.getCreatedate(); if (createdate != null) { stmt.bindLong(17, createdate.getTime()); } java.util.Date updatedate = entity.getUpdatedate(); if (updatedate != null) { stmt.bindLong(18, updatedate.getTime()); } String extension1 = entity.getExtension1(); if (extension1 != null) { stmt.bindString(19, extension1); } String extension2 = entity.getExtension2(); if (extension2 != null) { stmt.bindString(20, extension2); } String extension3 = entity.getExtension3(); if (extension3 != null) { stmt.bindString(21, extension3); } String remark = entity.getRemark(); if (remark != null) { stmt.bindString(22, remark); } } @Override public String readKey(Cursor cursor, int offset) { return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0); } @Override public Evaluationsubrule readEntity(Cursor cursor, int offset) { Evaluationsubrule entity = new Evaluationsubrule( // cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // guid cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // erguid cursor.isNull(offset + 2) ? null : cursor.getShort(offset + 2) != 0, // ertype cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // fatherid cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // fathername cursor.isNull(offset + 5) ? null : cursor.getShort(offset + 5) != 0, // usedanalyse cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // itemname cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // itemdescription cursor.isNull(offset + 8) ? null : cursor.getInt(offset + 8), // minscore cursor.isNull(offset + 9) ? null : cursor.getInt(offset + 9), // maxscore cursor.isNull(offset + 10) ? null : (byte) cursor.getShort(offset + 10), // displayid cursor.isNull(offset + 11) ? null : (byte) cursor.getShort(offset + 11), // displaylevel cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12), // defaultvalue cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13), // problemlist cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // gitlist cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // devicelist cursor.isNull(offset + 16) ? null : new java.util.Date(cursor.getLong(offset + 16)), // createdate cursor.isNull(offset + 17) ? null : new java.util.Date(cursor.getLong(offset + 17)), // updatedate cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // extension1 cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19), // extension2 cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // extension3 cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21) // remark ); return entity; } @Override public void readEntity(Cursor cursor, Evaluationsubrule entity, int offset) { entity.setGuid(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0)); entity.setErguid(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setErtype(cursor.isNull(offset + 2) ? null : cursor.getShort(offset + 2) != 0); entity.setFatherid(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3)); entity.setFathername(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4)); entity.setUsedanalyse(cursor.isNull(offset + 5) ? null : cursor.getShort(offset + 5) != 0); entity.setItemname(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6)); entity.setItemdescription(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7)); entity.setMinscore(cursor.isNull(offset + 8) ? null : cursor.getInt(offset + 8)); entity.setMaxscore(cursor.isNull(offset + 9) ? null : cursor.getInt(offset + 9)); entity.setDisplayid(cursor.isNull(offset + 10) ? null : (byte) cursor.getShort(offset + 10)); entity.setDisplaylevel(cursor.isNull(offset + 11) ? null : (byte) cursor.getShort(offset + 11)); entity.setDefaultvalue(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12)); entity.setProblemlist(cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13)); entity.setGitlist(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14)); entity.setDevicelist(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15)); entity.setCreatedate(cursor.isNull(offset + 16) ? null : new java.util.Date(cursor.getLong(offset + 16))); entity.setUpdatedate(cursor.isNull(offset + 17) ? null : new java.util.Date(cursor.getLong(offset + 17))); entity.setExtension1(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18)); entity.setExtension2(cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19)); entity.setExtension3(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20)); entity.setRemark(cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21)); } @Override protected final String updateKeyAfterInsert(Evaluationsubrule entity, long rowId) { return entity.getGuid(); } @Override public String getKey(Evaluationsubrule entity) { if(entity != null) { return entity.getGuid(); } else { return null; } } @Override public boolean hasKey(Evaluationsubrule entity) { return entity.getGuid() != null; } @Override protected final boolean isEntityUpdateable() { return true; } }