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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
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.Subtask;
 
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
 * DAO for table "SUBTASK".
*/
public class SubtaskDao extends AbstractDao<Subtask, String> {
 
    public static final String TABLENAME = "SUBTASK";
 
    /**
     * Properties of entity Subtask.<br/>
     * Can be used for QueryBuilder and for referencing column names.
     */
    public static class Properties {
        public final static Property Stguid = new Property(0, String.class, "stguid", true, "STGUID");
        public final static Property Tguid = new Property(1, String.class, "tguid", false, "TGUID");
        public final static Property Tsguid = new Property(2, String.class, "tsguid", false, "TSGUID");
        public final static Property Name = new Property(3, String.class, "name", false, "NAME");
        public final static Property Priority = new Property(4, Boolean.class, "priority", false, "PRIORITY");
        public final static Property Typeno = new Property(5, Byte.class, "typeno", false, "TYPENO");
        public final static Property Type = new Property(6, String.class, "type", false, "TYPE");
        public final static Property Provincecode = new Property(7, String.class, "provincecode", false, "PROVINCECODE");
        public final static Property Provincename = new Property(8, String.class, "provincename", false, "PROVINCENAME");
        public final static Property Citycode = new Property(9, String.class, "citycode", false, "CITYCODE");
        public final static Property Cityname = new Property(10, String.class, "cityname", false, "CITYNAME");
        public final static Property Districtcode = new Property(11, String.class, "districtcode", false, "DISTRICTCODE");
        public final static Property Districtname = new Property(12, String.class, "districtname", false, "DISTRICTNAME");
        public final static Property Towncode = new Property(13, String.class, "towncode", false, "TOWNCODE");
        public final static Property Townname = new Property(14, String.class, "townname", false, "TOWNNAME");
        public final static Property Scensename = new Property(15, String.class, "scensename", false, "SCENSENAME");
        public final static Property Scenseid = new Property(16, String.class, "scenseid", false, "SCENSEID");
        public final static Property Scenseaddress = new Property(17, String.class, "scenseaddress", false, "SCENSEADDRESS");
        public final static Property Deadlinetype = new Property(18, String.class, "deadlinetype", false, "DEADLINETYPE");
        public final static Property Planstarttime = new Property(19, java.util.Date.class, "planstarttime", false, "PLANSTARTTIME");
        public final static Property Planendtime = new Property(20, java.util.Date.class, "planendtime", false, "PLANENDTIME");
        public final static Property Deployerguid = new Property(21, String.class, "deployerguid", false, "DEPLOYERGUID");
        public final static Property Deployerusername = new Property(22, String.class, "deployerusername", false, "DEPLOYERUSERNAME");
        public final static Property Deployerrealname = new Property(23, String.class, "deployerrealname", false, "DEPLOYERREALNAME");
        public final static Property Deploytime = new Property(24, java.util.Date.class, "deploytime", false, "DEPLOYTIME");
        public final static Property Executionstarttime = new Property(25, java.util.Date.class, "executionstarttime", false, "EXECUTIONSTARTTIME");
        public final static Property Executionendtime = new Property(26, java.util.Date.class, "executionendtime", false, "EXECUTIONENDTIME");
        public final static Property Executorguids = new Property(27, String.class, "executorguids", false, "EXECUTORGUIDS");
        public final static Property Executorusernames = new Property(28, String.class, "executorusernames", false, "EXECUTORUSERNAMES");
        public final static Property Executorrealtimes = new Property(29, String.class, "executorrealtimes", false, "EXECUTORREALTIMES");
        public final static Property Status = new Property(30, String.class, "status", false, "STATUS");
        public final static Property Notifedcount = new Property(31, Integer.class, "notifedcount", false, "NOTIFEDCOUNT");
        public final static Property Rulelist = new Property(32, String.class, "rulelist", false, "RULELIST");
        public final static Property StAssessorguid = new Property(33, String.class, "stAssessorguid", false, "ST_ASSESSORGUID");
        public final static Property Assessorusername = new Property(34, String.class, "assessorusername", false, "ASSESSORUSERNAME");
        public final static Property Assessorrealname = new Property(35, String.class, "assessorrealname", false, "ASSESSORREALNAME");
        public final static Property Assesstime = new Property(36, java.util.Date.class, "assesstime", false, "ASSESSTIME");
        public final static Property Assessresult = new Property(37, String.class, "assessresult", false, "ASSESSRESULT");
        public final static Property Thirdassessorguid = new Property(38, String.class, "thirdassessorguid", false, "THIRDASSESSORGUID");
        public final static Property Thirdassessorusername = new Property(39, String.class, "thirdassessorusername", false, "THIRDASSESSORUSERNAME");
        public final static Property Thirdassessorrealname = new Property(40, String.class, "thirdassessorrealname", false, "THIRDASSESSORREALNAME");
        public final static Property Thirdassesstime = new Property(41, java.util.Date.class, "thirdassesstime", false, "THIRDASSESSTIME");
        public final static Property Thirdassessresult = new Property(42, String.class, "thirdassessresult", false, "THIRDASSESSRESULT");
        public final static Property Extension1 = new Property(43, String.class, "extension1", false, "EXTENSION1");
        public final static Property Extension2 = new Property(44, String.class, "extension2", false, "EXTENSION2");
        public final static Property Extension3 = new Property(45, String.class, "extension3", false, "EXTENSION3");
        public final static Property Remark = new Property(46, String.class, "remark", false, "REMARK");
    }
 
 
    public SubtaskDao(DaoConfig config) {
        super(config);
    }
    
    public SubtaskDao(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 + "\"SUBTASK\" (" + //
                "\"STGUID\" TEXT PRIMARY KEY NOT NULL ," + // 0: stguid
                "\"TGUID\" TEXT," + // 1: tguid
                "\"TSGUID\" TEXT," + // 2: tsguid
                "\"NAME\" TEXT," + // 3: name
                "\"PRIORITY\" INTEGER," + // 4: priority
                "\"TYPENO\" INTEGER," + // 5: typeno
                "\"TYPE\" TEXT," + // 6: type
                "\"PROVINCECODE\" TEXT," + // 7: provincecode
                "\"PROVINCENAME\" TEXT," + // 8: provincename
                "\"CITYCODE\" TEXT," + // 9: citycode
                "\"CITYNAME\" TEXT," + // 10: cityname
                "\"DISTRICTCODE\" TEXT," + // 11: districtcode
                "\"DISTRICTNAME\" TEXT," + // 12: districtname
                "\"TOWNCODE\" TEXT," + // 13: towncode
                "\"TOWNNAME\" TEXT," + // 14: townname
                "\"SCENSENAME\" TEXT," + // 15: scensename
                "\"SCENSEID\" TEXT," + // 16: scenseid
                "\"SCENSEADDRESS\" TEXT," + // 17: scenseaddress
                "\"DEADLINETYPE\" TEXT," + // 18: deadlinetype
                "\"PLANSTARTTIME\" INTEGER," + // 19: planstarttime
                "\"PLANENDTIME\" INTEGER," + // 20: planendtime
                "\"DEPLOYERGUID\" TEXT," + // 21: deployerguid
                "\"DEPLOYERUSERNAME\" TEXT," + // 22: deployerusername
                "\"DEPLOYERREALNAME\" TEXT," + // 23: deployerrealname
                "\"DEPLOYTIME\" INTEGER," + // 24: deploytime
                "\"EXECUTIONSTARTTIME\" INTEGER," + // 25: executionstarttime
                "\"EXECUTIONENDTIME\" INTEGER," + // 26: executionendtime
                "\"EXECUTORGUIDS\" TEXT," + // 27: executorguids
                "\"EXECUTORUSERNAMES\" TEXT," + // 28: executorusernames
                "\"EXECUTORREALTIMES\" TEXT," + // 29: executorrealtimes
                "\"STATUS\" TEXT," + // 30: status
                "\"NOTIFEDCOUNT\" INTEGER," + // 31: notifedcount
                "\"RULELIST\" TEXT," + // 32: rulelist
                "\"ST_ASSESSORGUID\" TEXT," + // 33: stAssessorguid
                "\"ASSESSORUSERNAME\" TEXT," + // 34: assessorusername
                "\"ASSESSORREALNAME\" TEXT," + // 35: assessorrealname
                "\"ASSESSTIME\" INTEGER," + // 36: assesstime
                "\"ASSESSRESULT\" TEXT," + // 37: assessresult
                "\"THIRDASSESSORGUID\" TEXT," + // 38: thirdassessorguid
                "\"THIRDASSESSORUSERNAME\" TEXT," + // 39: thirdassessorusername
                "\"THIRDASSESSORREALNAME\" TEXT," + // 40: thirdassessorrealname
                "\"THIRDASSESSTIME\" INTEGER," + // 41: thirdassesstime
                "\"THIRDASSESSRESULT\" TEXT," + // 42: thirdassessresult
                "\"EXTENSION1\" TEXT," + // 43: extension1
                "\"EXTENSION2\" TEXT," + // 44: extension2
                "\"EXTENSION3\" TEXT," + // 45: extension3
                "\"REMARK\" TEXT);"); // 46: remark
    }
 
    /** Drops the underlying database table. */
    public static void dropTable(Database db, boolean ifExists) {
        String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"SUBTASK\"";
        db.execSQL(sql);
    }
 
    @Override
    protected final void bindValues(DatabaseStatement stmt, Subtask entity) {
        stmt.clearBindings();
 
        String stguid = entity.getStguid();
        if (stguid != null) {
            stmt.bindString(1, stguid);
        }
 
        String tguid = entity.getTguid();
        if (tguid != null) {
            stmt.bindString(2, tguid);
        }
 
        String tsguid = entity.getTsguid();
        if (tsguid != null) {
            stmt.bindString(3, tsguid);
        }
 
        String name = entity.getName();
        if (name != null) {
            stmt.bindString(4, name);
        }
 
        Boolean priority = entity.getPriority();
        if (priority != null) {
            stmt.bindLong(5, priority ? 1L: 0L);
        }
 
        Byte typeno = entity.getTypeno();
        if (typeno != null) {
            stmt.bindLong(6, typeno);
        }
 
        String type = entity.getType();
        if (type != null) {
            stmt.bindString(7, type);
        }
 
        String provincecode = entity.getProvincecode();
        if (provincecode != null) {
            stmt.bindString(8, provincecode);
        }
 
        String provincename = entity.getProvincename();
        if (provincename != null) {
            stmt.bindString(9, provincename);
        }
 
        String citycode = entity.getCitycode();
        if (citycode != null) {
            stmt.bindString(10, citycode);
        }
 
        String cityname = entity.getCityname();
        if (cityname != null) {
            stmt.bindString(11, cityname);
        }
 
        String districtcode = entity.getDistrictcode();
        if (districtcode != null) {
            stmt.bindString(12, districtcode);
        }
 
        String districtname = entity.getDistrictname();
        if (districtname != null) {
            stmt.bindString(13, districtname);
        }
 
        String towncode = entity.getTowncode();
        if (towncode != null) {
            stmt.bindString(14, towncode);
        }
 
        String townname = entity.getTownname();
        if (townname != null) {
            stmt.bindString(15, townname);
        }
 
        String scensename = entity.getScensename();
        if (scensename != null) {
            stmt.bindString(16, scensename);
        }
 
        String scenseid = entity.getScenseid();
        if (scenseid != null) {
            stmt.bindString(17, scenseid);
        }
 
        String scenseaddress = entity.getScenseaddress();
        if (scenseaddress != null) {
            stmt.bindString(18, scenseaddress);
        }
 
        String deadlinetype = entity.getDeadlinetype();
        if (deadlinetype != null) {
            stmt.bindString(19, deadlinetype);
        }
 
        java.util.Date planstarttime = entity.getPlanstarttime();
        if (planstarttime != null) {
            stmt.bindLong(20, planstarttime.getTime());
        }
 
        java.util.Date planendtime = entity.getPlanendtime();
        if (planendtime != null) {
            stmt.bindLong(21, planendtime.getTime());
        }
 
        String deployerguid = entity.getDeployerguid();
        if (deployerguid != null) {
            stmt.bindString(22, deployerguid);
        }
 
        String deployerusername = entity.getDeployerusername();
        if (deployerusername != null) {
            stmt.bindString(23, deployerusername);
        }
 
        String deployerrealname = entity.getDeployerrealname();
        if (deployerrealname != null) {
            stmt.bindString(24, deployerrealname);
        }
 
        java.util.Date deploytime = entity.getDeploytime();
        if (deploytime != null) {
            stmt.bindLong(25, deploytime.getTime());
        }
 
        java.util.Date executionstarttime = entity.getExecutionstarttime();
        if (executionstarttime != null) {
            stmt.bindLong(26, executionstarttime.getTime());
        }
 
        java.util.Date executionendtime = entity.getExecutionendtime();
        if (executionendtime != null) {
            stmt.bindLong(27, executionendtime.getTime());
        }
 
        String executorguids = entity.getExecutorguids();
        if (executorguids != null) {
            stmt.bindString(28, executorguids);
        }
 
        String executorusernames = entity.getExecutorusernames();
        if (executorusernames != null) {
            stmt.bindString(29, executorusernames);
        }
 
        String executorrealtimes = entity.getExecutorrealtimes();
        if (executorrealtimes != null) {
            stmt.bindString(30, executorrealtimes);
        }
 
        String status = entity.getStatus();
        if (status != null) {
            stmt.bindString(31, status);
        }
 
        Integer notifedcount = entity.getNotifedcount();
        if (notifedcount != null) {
            stmt.bindLong(32, notifedcount);
        }
 
        String rulelist = entity.getRulelist();
        if (rulelist != null) {
            stmt.bindString(33, rulelist);
        }
 
        String stAssessorguid = entity.getStAssessorguid();
        if (stAssessorguid != null) {
            stmt.bindString(34, stAssessorguid);
        }
 
        String assessorusername = entity.getAssessorusername();
        if (assessorusername != null) {
            stmt.bindString(35, assessorusername);
        }
 
        String assessorrealname = entity.getAssessorrealname();
        if (assessorrealname != null) {
            stmt.bindString(36, assessorrealname);
        }
 
        java.util.Date assesstime = entity.getAssesstime();
        if (assesstime != null) {
            stmt.bindLong(37, assesstime.getTime());
        }
 
        String assessresult = entity.getAssessresult();
        if (assessresult != null) {
            stmt.bindString(38, assessresult);
        }
 
        String thirdassessorguid = entity.getThirdassessorguid();
        if (thirdassessorguid != null) {
            stmt.bindString(39, thirdassessorguid);
        }
 
        String thirdassessorusername = entity.getThirdassessorusername();
        if (thirdassessorusername != null) {
            stmt.bindString(40, thirdassessorusername);
        }
 
        String thirdassessorrealname = entity.getThirdassessorrealname();
        if (thirdassessorrealname != null) {
            stmt.bindString(41, thirdassessorrealname);
        }
 
        java.util.Date thirdassesstime = entity.getThirdassesstime();
        if (thirdassesstime != null) {
            stmt.bindLong(42, thirdassesstime.getTime());
        }
 
        String thirdassessresult = entity.getThirdassessresult();
        if (thirdassessresult != null) {
            stmt.bindString(43, thirdassessresult);
        }
 
        String extension1 = entity.getExtension1();
        if (extension1 != null) {
            stmt.bindString(44, extension1);
        }
 
        String extension2 = entity.getExtension2();
        if (extension2 != null) {
            stmt.bindString(45, extension2);
        }
 
        String extension3 = entity.getExtension3();
        if (extension3 != null) {
            stmt.bindString(46, extension3);
        }
 
        String remark = entity.getRemark();
        if (remark != null) {
            stmt.bindString(47, remark);
        }
    }
 
    @Override
    protected final void bindValues(SQLiteStatement stmt, Subtask entity) {
        stmt.clearBindings();
 
        String stguid = entity.getStguid();
        if (stguid != null) {
            stmt.bindString(1, stguid);
        }
 
        String tguid = entity.getTguid();
        if (tguid != null) {
            stmt.bindString(2, tguid);
        }
 
        String tsguid = entity.getTsguid();
        if (tsguid != null) {
            stmt.bindString(3, tsguid);
        }
 
        String name = entity.getName();
        if (name != null) {
            stmt.bindString(4, name);
        }
 
        Boolean priority = entity.getPriority();
        if (priority != null) {
            stmt.bindLong(5, priority ? 1L: 0L);
        }
 
        Byte typeno = entity.getTypeno();
        if (typeno != null) {
            stmt.bindLong(6, typeno);
        }
 
        String type = entity.getType();
        if (type != null) {
            stmt.bindString(7, type);
        }
 
        String provincecode = entity.getProvincecode();
        if (provincecode != null) {
            stmt.bindString(8, provincecode);
        }
 
        String provincename = entity.getProvincename();
        if (provincename != null) {
            stmt.bindString(9, provincename);
        }
 
        String citycode = entity.getCitycode();
        if (citycode != null) {
            stmt.bindString(10, citycode);
        }
 
        String cityname = entity.getCityname();
        if (cityname != null) {
            stmt.bindString(11, cityname);
        }
 
        String districtcode = entity.getDistrictcode();
        if (districtcode != null) {
            stmt.bindString(12, districtcode);
        }
 
        String districtname = entity.getDistrictname();
        if (districtname != null) {
            stmt.bindString(13, districtname);
        }
 
        String towncode = entity.getTowncode();
        if (towncode != null) {
            stmt.bindString(14, towncode);
        }
 
        String townname = entity.getTownname();
        if (townname != null) {
            stmt.bindString(15, townname);
        }
 
        String scensename = entity.getScensename();
        if (scensename != null) {
            stmt.bindString(16, scensename);
        }
 
        String scenseid = entity.getScenseid();
        if (scenseid != null) {
            stmt.bindString(17, scenseid);
        }
 
        String scenseaddress = entity.getScenseaddress();
        if (scenseaddress != null) {
            stmt.bindString(18, scenseaddress);
        }
 
        String deadlinetype = entity.getDeadlinetype();
        if (deadlinetype != null) {
            stmt.bindString(19, deadlinetype);
        }
 
        java.util.Date planstarttime = entity.getPlanstarttime();
        if (planstarttime != null) {
            stmt.bindLong(20, planstarttime.getTime());
        }
 
        java.util.Date planendtime = entity.getPlanendtime();
        if (planendtime != null) {
            stmt.bindLong(21, planendtime.getTime());
        }
 
        String deployerguid = entity.getDeployerguid();
        if (deployerguid != null) {
            stmt.bindString(22, deployerguid);
        }
 
        String deployerusername = entity.getDeployerusername();
        if (deployerusername != null) {
            stmt.bindString(23, deployerusername);
        }
 
        String deployerrealname = entity.getDeployerrealname();
        if (deployerrealname != null) {
            stmt.bindString(24, deployerrealname);
        }
 
        java.util.Date deploytime = entity.getDeploytime();
        if (deploytime != null) {
            stmt.bindLong(25, deploytime.getTime());
        }
 
        java.util.Date executionstarttime = entity.getExecutionstarttime();
        if (executionstarttime != null) {
            stmt.bindLong(26, executionstarttime.getTime());
        }
 
        java.util.Date executionendtime = entity.getExecutionendtime();
        if (executionendtime != null) {
            stmt.bindLong(27, executionendtime.getTime());
        }
 
        String executorguids = entity.getExecutorguids();
        if (executorguids != null) {
            stmt.bindString(28, executorguids);
        }
 
        String executorusernames = entity.getExecutorusernames();
        if (executorusernames != null) {
            stmt.bindString(29, executorusernames);
        }
 
        String executorrealtimes = entity.getExecutorrealtimes();
        if (executorrealtimes != null) {
            stmt.bindString(30, executorrealtimes);
        }
 
        String status = entity.getStatus();
        if (status != null) {
            stmt.bindString(31, status);
        }
 
        Integer notifedcount = entity.getNotifedcount();
        if (notifedcount != null) {
            stmt.bindLong(32, notifedcount);
        }
 
        String rulelist = entity.getRulelist();
        if (rulelist != null) {
            stmt.bindString(33, rulelist);
        }
 
        String stAssessorguid = entity.getStAssessorguid();
        if (stAssessorguid != null) {
            stmt.bindString(34, stAssessorguid);
        }
 
        String assessorusername = entity.getAssessorusername();
        if (assessorusername != null) {
            stmt.bindString(35, assessorusername);
        }
 
        String assessorrealname = entity.getAssessorrealname();
        if (assessorrealname != null) {
            stmt.bindString(36, assessorrealname);
        }
 
        java.util.Date assesstime = entity.getAssesstime();
        if (assesstime != null) {
            stmt.bindLong(37, assesstime.getTime());
        }
 
        String assessresult = entity.getAssessresult();
        if (assessresult != null) {
            stmt.bindString(38, assessresult);
        }
 
        String thirdassessorguid = entity.getThirdassessorguid();
        if (thirdassessorguid != null) {
            stmt.bindString(39, thirdassessorguid);
        }
 
        String thirdassessorusername = entity.getThirdassessorusername();
        if (thirdassessorusername != null) {
            stmt.bindString(40, thirdassessorusername);
        }
 
        String thirdassessorrealname = entity.getThirdassessorrealname();
        if (thirdassessorrealname != null) {
            stmt.bindString(41, thirdassessorrealname);
        }
 
        java.util.Date thirdassesstime = entity.getThirdassesstime();
        if (thirdassesstime != null) {
            stmt.bindLong(42, thirdassesstime.getTime());
        }
 
        String thirdassessresult = entity.getThirdassessresult();
        if (thirdassessresult != null) {
            stmt.bindString(43, thirdassessresult);
        }
 
        String extension1 = entity.getExtension1();
        if (extension1 != null) {
            stmt.bindString(44, extension1);
        }
 
        String extension2 = entity.getExtension2();
        if (extension2 != null) {
            stmt.bindString(45, extension2);
        }
 
        String extension3 = entity.getExtension3();
        if (extension3 != null) {
            stmt.bindString(46, extension3);
        }
 
        String remark = entity.getRemark();
        if (remark != null) {
            stmt.bindString(47, remark);
        }
    }
 
    @Override
    public String readKey(Cursor cursor, int offset) {
        return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0);
    }    
 
    @Override
    public Subtask readEntity(Cursor cursor, int offset) {
        Subtask entity = new Subtask( //
            cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // stguid
            cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // tguid
            cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // tsguid
            cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // name
            cursor.isNull(offset + 4) ? null : cursor.getShort(offset + 4) != 0, // priority
            cursor.isNull(offset + 5) ? null : (byte) cursor.getShort(offset + 5), // typeno
            cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // type
            cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // provincecode
            cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8), // provincename
            cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // citycode
            cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // cityname
            cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // districtcode
            cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12), // districtname
            cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13), // towncode
            cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // townname
            cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // scensename
            cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // scenseid
            cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // scenseaddress
            cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // deadlinetype
            cursor.isNull(offset + 19) ? null : new java.util.Date(cursor.getLong(offset + 19)), // planstarttime
            cursor.isNull(offset + 20) ? null : new java.util.Date(cursor.getLong(offset + 20)), // planendtime
            cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21), // deployerguid
            cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22), // deployerusername
            cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23), // deployerrealname
            cursor.isNull(offset + 24) ? null : new java.util.Date(cursor.getLong(offset + 24)), // deploytime
            cursor.isNull(offset + 25) ? null : new java.util.Date(cursor.getLong(offset + 25)), // executionstarttime
            cursor.isNull(offset + 26) ? null : new java.util.Date(cursor.getLong(offset + 26)), // executionendtime
            cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27), // executorguids
            cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28), // executorusernames
            cursor.isNull(offset + 29) ? null : cursor.getString(offset + 29), // executorrealtimes
            cursor.isNull(offset + 30) ? null : cursor.getString(offset + 30), // status
            cursor.isNull(offset + 31) ? null : cursor.getInt(offset + 31), // notifedcount
            cursor.isNull(offset + 32) ? null : cursor.getString(offset + 32), // rulelist
            cursor.isNull(offset + 33) ? null : cursor.getString(offset + 33), // stAssessorguid
            cursor.isNull(offset + 34) ? null : cursor.getString(offset + 34), // assessorusername
            cursor.isNull(offset + 35) ? null : cursor.getString(offset + 35), // assessorrealname
            cursor.isNull(offset + 36) ? null : new java.util.Date(cursor.getLong(offset + 36)), // assesstime
            cursor.isNull(offset + 37) ? null : cursor.getString(offset + 37), // assessresult
            cursor.isNull(offset + 38) ? null : cursor.getString(offset + 38), // thirdassessorguid
            cursor.isNull(offset + 39) ? null : cursor.getString(offset + 39), // thirdassessorusername
            cursor.isNull(offset + 40) ? null : cursor.getString(offset + 40), // thirdassessorrealname
            cursor.isNull(offset + 41) ? null : new java.util.Date(cursor.getLong(offset + 41)), // thirdassesstime
            cursor.isNull(offset + 42) ? null : cursor.getString(offset + 42), // thirdassessresult
            cursor.isNull(offset + 43) ? null : cursor.getString(offset + 43), // extension1
            cursor.isNull(offset + 44) ? null : cursor.getString(offset + 44), // extension2
            cursor.isNull(offset + 45) ? null : cursor.getString(offset + 45), // extension3
            cursor.isNull(offset + 46) ? null : cursor.getString(offset + 46) // remark
        );
        return entity;
    }
     
    @Override
    public void readEntity(Cursor cursor, Subtask entity, int offset) {
        entity.setStguid(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0));
        entity.setTguid(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
        entity.setTsguid(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
        entity.setName(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
        entity.setPriority(cursor.isNull(offset + 4) ? null : cursor.getShort(offset + 4) != 0);
        entity.setTypeno(cursor.isNull(offset + 5) ? null : (byte) cursor.getShort(offset + 5));
        entity.setType(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
        entity.setProvincecode(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
        entity.setProvincename(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
        entity.setCitycode(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
        entity.setCityname(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
        entity.setDistrictcode(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
        entity.setDistrictname(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12));
        entity.setTowncode(cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13));
        entity.setTownname(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
        entity.setScensename(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
        entity.setScenseid(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
        entity.setScenseaddress(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
        entity.setDeadlinetype(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18));
        entity.setPlanstarttime(cursor.isNull(offset + 19) ? null : new java.util.Date(cursor.getLong(offset + 19)));
        entity.setPlanendtime(cursor.isNull(offset + 20) ? null : new java.util.Date(cursor.getLong(offset + 20)));
        entity.setDeployerguid(cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21));
        entity.setDeployerusername(cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22));
        entity.setDeployerrealname(cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23));
        entity.setDeploytime(cursor.isNull(offset + 24) ? null : new java.util.Date(cursor.getLong(offset + 24)));
        entity.setExecutionstarttime(cursor.isNull(offset + 25) ? null : new java.util.Date(cursor.getLong(offset + 25)));
        entity.setExecutionendtime(cursor.isNull(offset + 26) ? null : new java.util.Date(cursor.getLong(offset + 26)));
        entity.setExecutorguids(cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27));
        entity.setExecutorusernames(cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28));
        entity.setExecutorrealtimes(cursor.isNull(offset + 29) ? null : cursor.getString(offset + 29));
        entity.setStatus(cursor.isNull(offset + 30) ? null : cursor.getString(offset + 30));
        entity.setNotifedcount(cursor.isNull(offset + 31) ? null : cursor.getInt(offset + 31));
        entity.setRulelist(cursor.isNull(offset + 32) ? null : cursor.getString(offset + 32));
        entity.setStAssessorguid(cursor.isNull(offset + 33) ? null : cursor.getString(offset + 33));
        entity.setAssessorusername(cursor.isNull(offset + 34) ? null : cursor.getString(offset + 34));
        entity.setAssessorrealname(cursor.isNull(offset + 35) ? null : cursor.getString(offset + 35));
        entity.setAssesstime(cursor.isNull(offset + 36) ? null : new java.util.Date(cursor.getLong(offset + 36)));
        entity.setAssessresult(cursor.isNull(offset + 37) ? null : cursor.getString(offset + 37));
        entity.setThirdassessorguid(cursor.isNull(offset + 38) ? null : cursor.getString(offset + 38));
        entity.setThirdassessorusername(cursor.isNull(offset + 39) ? null : cursor.getString(offset + 39));
        entity.setThirdassessorrealname(cursor.isNull(offset + 40) ? null : cursor.getString(offset + 40));
        entity.setThirdassesstime(cursor.isNull(offset + 41) ? null : new java.util.Date(cursor.getLong(offset + 41)));
        entity.setThirdassessresult(cursor.isNull(offset + 42) ? null : cursor.getString(offset + 42));
        entity.setExtension1(cursor.isNull(offset + 43) ? null : cursor.getString(offset + 43));
        entity.setExtension2(cursor.isNull(offset + 44) ? null : cursor.getString(offset + 44));
        entity.setExtension3(cursor.isNull(offset + 45) ? null : cursor.getString(offset + 45));
        entity.setRemark(cursor.isNull(offset + 46) ? null : cursor.getString(offset + 46));
     }
    
    @Override
    protected final String updateKeyAfterInsert(Subtask entity, long rowId) {
        return entity.getStguid();
    }
    
    @Override
    public String getKey(Subtask entity) {
        if(entity != null) {
            return entity.getStguid();
        } else {
            return null;
        }
    }
 
    @Override
    public boolean hasKey(Subtask entity) {
        return entity.getStguid() != null;
    }
 
    @Override
    protected final boolean isEntityUpdateable() {
        return true;
    }
    
}