riku
2020-08-21 0328eab9276e57487eb2cfff31a945a01dd8c73a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
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.ChangeEffect;
 
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
 * DAO for table "CHANGE_EFFECT".
*/
public class ChangeEffectDao extends AbstractDao<ChangeEffect, String> {
 
    public static final String TABLENAME = "CHANGE_EFFECT";
 
    /**
     * Properties of entity ChangeEffect.<br/>
     * Can be used for QueryBuilder and for referencing column names.
     */
    public static class Properties {
        public final static Property EfGuid = new Property(0, String.class, "efGuid", true, "EF_GUID");
        public final static Property EfName = new Property(1, String.class, "efName", false, "EF_NAME");
        public final static Property EfProblemtypeguid = new Property(2, String.class, "efProblemtypeguid", false, "EF_PROBLEMTYPEGUID");
        public final static Property EfProblemtypename = new Property(3, String.class, "efProblemtypename", false, "EF_PROBLEMTYPENAME");
        public final static Property EfUserguid = new Property(4, String.class, "efUserguid", false, "EF_USERGUID");
        public final static Property EfUsername = new Property(5, String.class, "efUsername", false, "EF_USERNAME");
        public final static Property EfRealname = new Property(6, String.class, "efRealname", false, "EF_REALNAME");
        public final static Property EfCreatedate = new Property(7, java.util.Date.class, "efCreatedate", false, "EF_CREATEDATE");
        public final static Property EfUpdatedate = new Property(8, java.util.Date.class, "efUpdatedate", false, "EF_UPDATEDATE");
        public final static Property EfExtension1 = new Property(9, String.class, "efExtension1", false, "EF_EXTENSION1");
        public final static Property EfExtension2 = new Property(10, String.class, "efExtension2", false, "EF_EXTENSION2");
        public final static Property EfExtension3 = new Property(11, String.class, "efExtension3", false, "EF_EXTENSION3");
        public final static Property EfRemark = new Property(12, String.class, "efRemark", false, "EF_REMARK");
    }
 
 
    public ChangeEffectDao(DaoConfig config) {
        super(config);
    }
    
    public ChangeEffectDao(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 + "\"CHANGE_EFFECT\" (" + //
                "\"EF_GUID\" TEXT PRIMARY KEY NOT NULL ," + // 0: efGuid
                "\"EF_NAME\" TEXT," + // 1: efName
                "\"EF_PROBLEMTYPEGUID\" TEXT," + // 2: efProblemtypeguid
                "\"EF_PROBLEMTYPENAME\" TEXT," + // 3: efProblemtypename
                "\"EF_USERGUID\" TEXT," + // 4: efUserguid
                "\"EF_USERNAME\" TEXT," + // 5: efUsername
                "\"EF_REALNAME\" TEXT," + // 6: efRealname
                "\"EF_CREATEDATE\" INTEGER," + // 7: efCreatedate
                "\"EF_UPDATEDATE\" INTEGER," + // 8: efUpdatedate
                "\"EF_EXTENSION1\" TEXT," + // 9: efExtension1
                "\"EF_EXTENSION2\" TEXT," + // 10: efExtension2
                "\"EF_EXTENSION3\" TEXT," + // 11: efExtension3
                "\"EF_REMARK\" TEXT);"); // 12: efRemark
    }
 
    /** Drops the underlying database table. */
    public static void dropTable(Database db, boolean ifExists) {
        String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"CHANGE_EFFECT\"";
        db.execSQL(sql);
    }
 
    @Override
    protected final void bindValues(DatabaseStatement stmt, ChangeEffect entity) {
        stmt.clearBindings();
 
        String efGuid = entity.getEfGuid();
        if (efGuid != null) {
            stmt.bindString(1, efGuid);
        }
 
        String efName = entity.getEfName();
        if (efName != null) {
            stmt.bindString(2, efName);
        }
 
        String efProblemtypeguid = entity.getEfProblemtypeguid();
        if (efProblemtypeguid != null) {
            stmt.bindString(3, efProblemtypeguid);
        }
 
        String efProblemtypename = entity.getEfProblemtypename();
        if (efProblemtypename != null) {
            stmt.bindString(4, efProblemtypename);
        }
 
        String efUserguid = entity.getEfUserguid();
        if (efUserguid != null) {
            stmt.bindString(5, efUserguid);
        }
 
        String efUsername = entity.getEfUsername();
        if (efUsername != null) {
            stmt.bindString(6, efUsername);
        }
 
        String efRealname = entity.getEfRealname();
        if (efRealname != null) {
            stmt.bindString(7, efRealname);
        }
 
        java.util.Date efCreatedate = entity.getEfCreatedate();
        if (efCreatedate != null) {
            stmt.bindLong(8, efCreatedate.getTime());
        }
 
        java.util.Date efUpdatedate = entity.getEfUpdatedate();
        if (efUpdatedate != null) {
            stmt.bindLong(9, efUpdatedate.getTime());
        }
 
        String efExtension1 = entity.getEfExtension1();
        if (efExtension1 != null) {
            stmt.bindString(10, efExtension1);
        }
 
        String efExtension2 = entity.getEfExtension2();
        if (efExtension2 != null) {
            stmt.bindString(11, efExtension2);
        }
 
        String efExtension3 = entity.getEfExtension3();
        if (efExtension3 != null) {
            stmt.bindString(12, efExtension3);
        }
 
        String efRemark = entity.getEfRemark();
        if (efRemark != null) {
            stmt.bindString(13, efRemark);
        }
    }
 
    @Override
    protected final void bindValues(SQLiteStatement stmt, ChangeEffect entity) {
        stmt.clearBindings();
 
        String efGuid = entity.getEfGuid();
        if (efGuid != null) {
            stmt.bindString(1, efGuid);
        }
 
        String efName = entity.getEfName();
        if (efName != null) {
            stmt.bindString(2, efName);
        }
 
        String efProblemtypeguid = entity.getEfProblemtypeguid();
        if (efProblemtypeguid != null) {
            stmt.bindString(3, efProblemtypeguid);
        }
 
        String efProblemtypename = entity.getEfProblemtypename();
        if (efProblemtypename != null) {
            stmt.bindString(4, efProblemtypename);
        }
 
        String efUserguid = entity.getEfUserguid();
        if (efUserguid != null) {
            stmt.bindString(5, efUserguid);
        }
 
        String efUsername = entity.getEfUsername();
        if (efUsername != null) {
            stmt.bindString(6, efUsername);
        }
 
        String efRealname = entity.getEfRealname();
        if (efRealname != null) {
            stmt.bindString(7, efRealname);
        }
 
        java.util.Date efCreatedate = entity.getEfCreatedate();
        if (efCreatedate != null) {
            stmt.bindLong(8, efCreatedate.getTime());
        }
 
        java.util.Date efUpdatedate = entity.getEfUpdatedate();
        if (efUpdatedate != null) {
            stmt.bindLong(9, efUpdatedate.getTime());
        }
 
        String efExtension1 = entity.getEfExtension1();
        if (efExtension1 != null) {
            stmt.bindString(10, efExtension1);
        }
 
        String efExtension2 = entity.getEfExtension2();
        if (efExtension2 != null) {
            stmt.bindString(11, efExtension2);
        }
 
        String efExtension3 = entity.getEfExtension3();
        if (efExtension3 != null) {
            stmt.bindString(12, efExtension3);
        }
 
        String efRemark = entity.getEfRemark();
        if (efRemark != null) {
            stmt.bindString(13, efRemark);
        }
    }
 
    @Override
    public String readKey(Cursor cursor, int offset) {
        return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0);
    }    
 
    @Override
    public ChangeEffect readEntity(Cursor cursor, int offset) {
        ChangeEffect entity = new ChangeEffect( //
            cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // efGuid
            cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // efName
            cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // efProblemtypeguid
            cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // efProblemtypename
            cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // efUserguid
            cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // efUsername
            cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // efRealname
            cursor.isNull(offset + 7) ? null : new java.util.Date(cursor.getLong(offset + 7)), // efCreatedate
            cursor.isNull(offset + 8) ? null : new java.util.Date(cursor.getLong(offset + 8)), // efUpdatedate
            cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // efExtension1
            cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // efExtension2
            cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // efExtension3
            cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12) // efRemark
        );
        return entity;
    }
     
    @Override
    public void readEntity(Cursor cursor, ChangeEffect entity, int offset) {
        entity.setEfGuid(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0));
        entity.setEfName(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
        entity.setEfProblemtypeguid(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
        entity.setEfProblemtypename(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
        entity.setEfUserguid(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
        entity.setEfUsername(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
        entity.setEfRealname(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
        entity.setEfCreatedate(cursor.isNull(offset + 7) ? null : new java.util.Date(cursor.getLong(offset + 7)));
        entity.setEfUpdatedate(cursor.isNull(offset + 8) ? null : new java.util.Date(cursor.getLong(offset + 8)));
        entity.setEfExtension1(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
        entity.setEfExtension2(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
        entity.setEfExtension3(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
        entity.setEfRemark(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12));
     }
    
    @Override
    protected final String updateKeyAfterInsert(ChangeEffect entity, long rowId) {
        return entity.getEfGuid();
    }
    
    @Override
    public String getKey(ChangeEffect entity) {
        if(entity != null) {
            return entity.getEfGuid();
        } else {
            return null;
        }
    }
 
    @Override
    public boolean hasKey(ChangeEffect entity) {
        return entity.getEfGuid() != null;
    }
 
    @Override
    protected final boolean isEntityUpdateable() {
        return true;
    }
    
}