package com.casic.electric.detector.greendao;

import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;

import com.casic.electric.detector.bean.LabelBean;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import org.greenrobot.greendao.internal.DaoConfig;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
 * DAO for table "LABEL_BEAN".
*/
public class LabelBeanDao extends AbstractDao<LabelBean, Long> {

    public static final String TABLENAME = "LABEL_BEAN";

    /**
     * Properties of entity LabelBean.<br/>
     * Can be used for QueryBuilder and for referencing column names.
     */
    public static class Properties {
        public final static Property Id = new Property(0, Long.class, "id", true, "_id");
        public final static Property MarkerObjType = new Property(1, String.class, "markerObjType", false, "MARKER_OBJ_TYPE");
        public final static Property MarkerNumber = new Property(2, String.class, "markerNumber", false, "MARKER_NUMBER");
        public final static Property ObjectName = new Property(3, String.class, "objectName", false, "OBJECT_NAME");
        public final static Property VoltageLevel = new Property(4, String.class, "voltageLevel", false, "VOLTAGE_LEVEL");
        public final static Property TransformerModel = new Property(5, String.class, "transformerModel", false, "TRANSFORMER_MODEL");
        public final static Property HoleCount = new Property(6, String.class, "holeCount", false, "HOLE_COUNT");
        public final static Property Capacity = new Property(7, String.class, "capacity", false, "CAPACITY");
        public final static Property WellCoverMaterial = new Property(8, String.class, "wellCoverMaterial", false, "WELL_COVER_MATERIAL");
        public final static Property CoverDepth = new Property(9, String.class, "coverDepth", false, "COVER_DEPTH");
        public final static Property TransformerSpec = new Property(10, String.class, "transformerSpec", false, "TRANSFORMER_SPEC");
        public final static Property InlineName = new Property(11, String.class, "inlineName", false, "INLINE_NAME");
        public final static Property Size = new Property(12, String.class, "size", false, "SIZE");
        public final static Property BottomDepth = new Property(13, String.class, "bottomDepth", false, "BOTTOM_DEPTH");
        public final static Property Height = new Property(14, String.class, "height", false, "HEIGHT");
        public final static Property CrossPipeLine = new Property(15, String.class, "crossPipeLine", false, "CROSS_PIPE_LINE");
        public final static Property InlineCount = new Property(16, String.class, "inlineCount", false, "INLINE_COUNT");
        public final static Property LineNumber = new Property(17, String.class, "lineNumber", false, "LINE_NUMBER");
        public final static Property JointCount = new Property(18, String.class, "jointCount", false, "JOINT_COUNT");
        public final static Property OutlineCount = new Property(19, String.class, "outlineCount", false, "OUTLINE_COUNT");
        public final static Property RemainingChannels = new Property(20, String.class, "remainingChannels", false, "REMAINING_CHANNELS");
        public final static Property CabinetType = new Property(21, String.class, "cabinetType", false, "CABINET_TYPE");
        public final static Property TieCable1 = new Property(22, String.class, "tieCable1", false, "TIE_CABLE1");
        public final static Property TieCable2 = new Property(23, String.class, "tieCable2", false, "TIE_CABLE2");
        public final static Property CasingMaterial = new Property(24, String.class, "casingMaterial", false, "CASING_MATERIAL");
        public final static Property CasingSpec = new Property(25, String.class, "casingSpec", false, "CASING_SPEC");
        public final static Property ConstructTime = new Property(26, String.class, "constructTime", false, "CONSTRUCT_TIME");
        public final static Property InspectionUnit = new Property(27, String.class, "inspectionUnit", false, "INSPECTION_UNIT");
        public final static Property Area = new Property(28, String.class, "area", false, "AREA");
        public final static Property Road = new Property(29, String.class, "road", false, "ROAD");
        public final static Property Memo1 = new Property(30, String.class, "memo1", false, "MEMO1");
        public final static Property Memo2 = new Property(31, String.class, "memo2", false, "MEMO2");
        public final static Property Memo3 = new Property(32, String.class, "memo3", false, "MEMO3");
        public final static Property MarkerId = new Property(33, String.class, "markerId", false, "MARKER_ID");
        public final static Property MarkerType = new Property(34, String.class, "markerType", false, "MARKER_TYPE");
        public final static Property Owner = new Property(35, String.class, "owner", false, "OWNER");
        public final static Property MarkerDepth = new Property(36, String.class, "markerDepth", false, "MARKER_DEPTH");
        public final static Property ElectricTagCount = new Property(37, String.class, "electricTagCount", false, "ELECTRIC_TAG_COUNT");
        public final static Property InstalledTime = new Property(38, String.class, "installedTime", false, "INSTALLED_TIME");
        public final static Property Longitude = new Property(39, String.class, "longitude", false, "LONGITUDE");
        public final static Property Latitude = new Property(40, String.class, "latitude", false, "LATITUDE");
        public final static Property MarkerMemo1 = new Property(41, String.class, "markerMemo1", false, "MARKER_MEMO1");
        public final static Property MarkerMemo2 = new Property(42, String.class, "markerMemo2", false, "MARKER_MEMO2");
        public final static Property MarkerMemo3 = new Property(43, String.class, "markerMemo3", false, "MARKER_MEMO3");
        public final static Property ImagePath = new Property(44, String.class, "imagePath", false, "IMAGE_PATH");
    }


    public LabelBeanDao(DaoConfig config) {
        super(config);
    }
    
    public LabelBeanDao(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 + "\"LABEL_BEAN\" (" + //
                "\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: id
                "\"MARKER_OBJ_TYPE\" TEXT," + // 1: markerObjType
                "\"MARKER_NUMBER\" TEXT," + // 2: markerNumber
                "\"OBJECT_NAME\" TEXT," + // 3: objectName
                "\"VOLTAGE_LEVEL\" TEXT," + // 4: voltageLevel
                "\"TRANSFORMER_MODEL\" TEXT," + // 5: transformerModel
                "\"HOLE_COUNT\" TEXT," + // 6: holeCount
                "\"CAPACITY\" TEXT," + // 7: capacity
                "\"WELL_COVER_MATERIAL\" TEXT," + // 8: wellCoverMaterial
                "\"COVER_DEPTH\" TEXT," + // 9: coverDepth
                "\"TRANSFORMER_SPEC\" TEXT," + // 10: transformerSpec
                "\"INLINE_NAME\" TEXT," + // 11: inlineName
                "\"SIZE\" TEXT," + // 12: size
                "\"BOTTOM_DEPTH\" TEXT," + // 13: bottomDepth
                "\"HEIGHT\" TEXT," + // 14: height
                "\"CROSS_PIPE_LINE\" TEXT," + // 15: crossPipeLine
                "\"INLINE_COUNT\" TEXT," + // 16: inlineCount
                "\"LINE_NUMBER\" TEXT," + // 17: lineNumber
                "\"JOINT_COUNT\" TEXT," + // 18: jointCount
                "\"OUTLINE_COUNT\" TEXT," + // 19: outlineCount
                "\"REMAINING_CHANNELS\" TEXT," + // 20: remainingChannels
                "\"CABINET_TYPE\" TEXT," + // 21: cabinetType
                "\"TIE_CABLE1\" TEXT," + // 22: tieCable1
                "\"TIE_CABLE2\" TEXT," + // 23: tieCable2
                "\"CASING_MATERIAL\" TEXT," + // 24: casingMaterial
                "\"CASING_SPEC\" TEXT," + // 25: casingSpec
                "\"CONSTRUCT_TIME\" TEXT," + // 26: constructTime
                "\"INSPECTION_UNIT\" TEXT," + // 27: inspectionUnit
                "\"AREA\" TEXT," + // 28: area
                "\"ROAD\" TEXT," + // 29: road
                "\"MEMO1\" TEXT," + // 30: memo1
                "\"MEMO2\" TEXT," + // 31: memo2
                "\"MEMO3\" TEXT," + // 32: memo3
                "\"MARKER_ID\" TEXT," + // 33: markerId
                "\"MARKER_TYPE\" TEXT," + // 34: markerType
                "\"OWNER\" TEXT," + // 35: owner
                "\"MARKER_DEPTH\" TEXT," + // 36: markerDepth
                "\"ELECTRIC_TAG_COUNT\" TEXT," + // 37: electricTagCount
                "\"INSTALLED_TIME\" TEXT," + // 38: installedTime
                "\"LONGITUDE\" TEXT," + // 39: longitude
                "\"LATITUDE\" TEXT," + // 40: latitude
                "\"MARKER_MEMO1\" TEXT," + // 41: markerMemo1
                "\"MARKER_MEMO2\" TEXT," + // 42: markerMemo2
                "\"MARKER_MEMO3\" TEXT," + // 43: markerMemo3
                "\"IMAGE_PATH\" TEXT);"); // 44: imagePath
    }

    /** Drops the underlying database table. */
    public static void dropTable(Database db, boolean ifExists) {
        String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"LABEL_BEAN\"";
        db.execSQL(sql);
    }

    @Override
    protected final void bindValues(DatabaseStatement stmt, LabelBean entity) {
        stmt.clearBindings();
 
        Long id = entity.getId();
        if (id != null) {
            stmt.bindLong(1, id);
        }
 
        String markerObjType = entity.getMarkerObjType();
        if (markerObjType != null) {
            stmt.bindString(2, markerObjType);
        }
 
        String markerNumber = entity.getMarkerNumber();
        if (markerNumber != null) {
            stmt.bindString(3, markerNumber);
        }
 
        String objectName = entity.getObjectName();
        if (objectName != null) {
            stmt.bindString(4, objectName);
        }
 
        String voltageLevel = entity.getVoltageLevel();
        if (voltageLevel != null) {
            stmt.bindString(5, voltageLevel);
        }
 
        String transformerModel = entity.getTransformerModel();
        if (transformerModel != null) {
            stmt.bindString(6, transformerModel);
        }
 
        String holeCount = entity.getHoleCount();
        if (holeCount != null) {
            stmt.bindString(7, holeCount);
        }
 
        String capacity = entity.getCapacity();
        if (capacity != null) {
            stmt.bindString(8, capacity);
        }
 
        String wellCoverMaterial = entity.getWellCoverMaterial();
        if (wellCoverMaterial != null) {
            stmt.bindString(9, wellCoverMaterial);
        }
 
        String coverDepth = entity.getCoverDepth();
        if (coverDepth != null) {
            stmt.bindString(10, coverDepth);
        }
 
        String transformerSpec = entity.getTransformerSpec();
        if (transformerSpec != null) {
            stmt.bindString(11, transformerSpec);
        }
 
        String inlineName = entity.getInlineName();
        if (inlineName != null) {
            stmt.bindString(12, inlineName);
        }
 
        String size = entity.getSize();
        if (size != null) {
            stmt.bindString(13, size);
        }
 
        String bottomDepth = entity.getBottomDepth();
        if (bottomDepth != null) {
            stmt.bindString(14, bottomDepth);
        }
 
        String height = entity.getHeight();
        if (height != null) {
            stmt.bindString(15, height);
        }
 
        String crossPipeLine = entity.getCrossPipeLine();
        if (crossPipeLine != null) {
            stmt.bindString(16, crossPipeLine);
        }
 
        String inlineCount = entity.getInlineCount();
        if (inlineCount != null) {
            stmt.bindString(17, inlineCount);
        }
 
        String lineNumber = entity.getLineNumber();
        if (lineNumber != null) {
            stmt.bindString(18, lineNumber);
        }
 
        String jointCount = entity.getJointCount();
        if (jointCount != null) {
            stmt.bindString(19, jointCount);
        }
 
        String outlineCount = entity.getOutlineCount();
        if (outlineCount != null) {
            stmt.bindString(20, outlineCount);
        }
 
        String remainingChannels = entity.getRemainingChannels();
        if (remainingChannels != null) {
            stmt.bindString(21, remainingChannels);
        }
 
        String cabinetType = entity.getCabinetType();
        if (cabinetType != null) {
            stmt.bindString(22, cabinetType);
        }
 
        String tieCable1 = entity.getTieCable1();
        if (tieCable1 != null) {
            stmt.bindString(23, tieCable1);
        }
 
        String tieCable2 = entity.getTieCable2();
        if (tieCable2 != null) {
            stmt.bindString(24, tieCable2);
        }
 
        String casingMaterial = entity.getCasingMaterial();
        if (casingMaterial != null) {
            stmt.bindString(25, casingMaterial);
        }
 
        String casingSpec = entity.getCasingSpec();
        if (casingSpec != null) {
            stmt.bindString(26, casingSpec);
        }
 
        String constructTime = entity.getConstructTime();
        if (constructTime != null) {
            stmt.bindString(27, constructTime);
        }
 
        String inspectionUnit = entity.getInspectionUnit();
        if (inspectionUnit != null) {
            stmt.bindString(28, inspectionUnit);
        }
 
        String area = entity.getArea();
        if (area != null) {
            stmt.bindString(29, area);
        }
 
        String road = entity.getRoad();
        if (road != null) {
            stmt.bindString(30, road);
        }
 
        String memo1 = entity.getMemo1();
        if (memo1 != null) {
            stmt.bindString(31, memo1);
        }
 
        String memo2 = entity.getMemo2();
        if (memo2 != null) {
            stmt.bindString(32, memo2);
        }
 
        String memo3 = entity.getMemo3();
        if (memo3 != null) {
            stmt.bindString(33, memo3);
        }
 
        String markerId = entity.getMarkerId();
        if (markerId != null) {
            stmt.bindString(34, markerId);
        }
 
        String markerType = entity.getMarkerType();
        if (markerType != null) {
            stmt.bindString(35, markerType);
        }
 
        String owner = entity.getOwner();
        if (owner != null) {
            stmt.bindString(36, owner);
        }
 
        String markerDepth = entity.getMarkerDepth();
        if (markerDepth != null) {
            stmt.bindString(37, markerDepth);
        }
 
        String electricTagCount = entity.getElectricTagCount();
        if (electricTagCount != null) {
            stmt.bindString(38, electricTagCount);
        }
 
        String installedTime = entity.getInstalledTime();
        if (installedTime != null) {
            stmt.bindString(39, installedTime);
        }
 
        String longitude = entity.getLongitude();
        if (longitude != null) {
            stmt.bindString(40, longitude);
        }
 
        String latitude = entity.getLatitude();
        if (latitude != null) {
            stmt.bindString(41, latitude);
        }
 
        String markerMemo1 = entity.getMarkerMemo1();
        if (markerMemo1 != null) {
            stmt.bindString(42, markerMemo1);
        }
 
        String markerMemo2 = entity.getMarkerMemo2();
        if (markerMemo2 != null) {
            stmt.bindString(43, markerMemo2);
        }
 
        String markerMemo3 = entity.getMarkerMemo3();
        if (markerMemo3 != null) {
            stmt.bindString(44, markerMemo3);
        }
 
        String imagePath = entity.getImagePath();
        if (imagePath != null) {
            stmt.bindString(45, imagePath);
        }
    }

    @Override
    protected final void bindValues(SQLiteStatement stmt, LabelBean entity) {
        stmt.clearBindings();
 
        Long id = entity.getId();
        if (id != null) {
            stmt.bindLong(1, id);
        }
 
        String markerObjType = entity.getMarkerObjType();
        if (markerObjType != null) {
            stmt.bindString(2, markerObjType);
        }
 
        String markerNumber = entity.getMarkerNumber();
        if (markerNumber != null) {
            stmt.bindString(3, markerNumber);
        }
 
        String objectName = entity.getObjectName();
        if (objectName != null) {
            stmt.bindString(4, objectName);
        }
 
        String voltageLevel = entity.getVoltageLevel();
        if (voltageLevel != null) {
            stmt.bindString(5, voltageLevel);
        }
 
        String transformerModel = entity.getTransformerModel();
        if (transformerModel != null) {
            stmt.bindString(6, transformerModel);
        }
 
        String holeCount = entity.getHoleCount();
        if (holeCount != null) {
            stmt.bindString(7, holeCount);
        }
 
        String capacity = entity.getCapacity();
        if (capacity != null) {
            stmt.bindString(8, capacity);
        }
 
        String wellCoverMaterial = entity.getWellCoverMaterial();
        if (wellCoverMaterial != null) {
            stmt.bindString(9, wellCoverMaterial);
        }
 
        String coverDepth = entity.getCoverDepth();
        if (coverDepth != null) {
            stmt.bindString(10, coverDepth);
        }
 
        String transformerSpec = entity.getTransformerSpec();
        if (transformerSpec != null) {
            stmt.bindString(11, transformerSpec);
        }
 
        String inlineName = entity.getInlineName();
        if (inlineName != null) {
            stmt.bindString(12, inlineName);
        }
 
        String size = entity.getSize();
        if (size != null) {
            stmt.bindString(13, size);
        }
 
        String bottomDepth = entity.getBottomDepth();
        if (bottomDepth != null) {
            stmt.bindString(14, bottomDepth);
        }
 
        String height = entity.getHeight();
        if (height != null) {
            stmt.bindString(15, height);
        }
 
        String crossPipeLine = entity.getCrossPipeLine();
        if (crossPipeLine != null) {
            stmt.bindString(16, crossPipeLine);
        }
 
        String inlineCount = entity.getInlineCount();
        if (inlineCount != null) {
            stmt.bindString(17, inlineCount);
        }
 
        String lineNumber = entity.getLineNumber();
        if (lineNumber != null) {
            stmt.bindString(18, lineNumber);
        }
 
        String jointCount = entity.getJointCount();
        if (jointCount != null) {
            stmt.bindString(19, jointCount);
        }
 
        String outlineCount = entity.getOutlineCount();
        if (outlineCount != null) {
            stmt.bindString(20, outlineCount);
        }
 
        String remainingChannels = entity.getRemainingChannels();
        if (remainingChannels != null) {
            stmt.bindString(21, remainingChannels);
        }
 
        String cabinetType = entity.getCabinetType();
        if (cabinetType != null) {
            stmt.bindString(22, cabinetType);
        }
 
        String tieCable1 = entity.getTieCable1();
        if (tieCable1 != null) {
            stmt.bindString(23, tieCable1);
        }
 
        String tieCable2 = entity.getTieCable2();
        if (tieCable2 != null) {
            stmt.bindString(24, tieCable2);
        }
 
        String casingMaterial = entity.getCasingMaterial();
        if (casingMaterial != null) {
            stmt.bindString(25, casingMaterial);
        }
 
        String casingSpec = entity.getCasingSpec();
        if (casingSpec != null) {
            stmt.bindString(26, casingSpec);
        }
 
        String constructTime = entity.getConstructTime();
        if (constructTime != null) {
            stmt.bindString(27, constructTime);
        }
 
        String inspectionUnit = entity.getInspectionUnit();
        if (inspectionUnit != null) {
            stmt.bindString(28, inspectionUnit);
        }
 
        String area = entity.getArea();
        if (area != null) {
            stmt.bindString(29, area);
        }
 
        String road = entity.getRoad();
        if (road != null) {
            stmt.bindString(30, road);
        }
 
        String memo1 = entity.getMemo1();
        if (memo1 != null) {
            stmt.bindString(31, memo1);
        }
 
        String memo2 = entity.getMemo2();
        if (memo2 != null) {
            stmt.bindString(32, memo2);
        }
 
        String memo3 = entity.getMemo3();
        if (memo3 != null) {
            stmt.bindString(33, memo3);
        }
 
        String markerId = entity.getMarkerId();
        if (markerId != null) {
            stmt.bindString(34, markerId);
        }
 
        String markerType = entity.getMarkerType();
        if (markerType != null) {
            stmt.bindString(35, markerType);
        }
 
        String owner = entity.getOwner();
        if (owner != null) {
            stmt.bindString(36, owner);
        }
 
        String markerDepth = entity.getMarkerDepth();
        if (markerDepth != null) {
            stmt.bindString(37, markerDepth);
        }
 
        String electricTagCount = entity.getElectricTagCount();
        if (electricTagCount != null) {
            stmt.bindString(38, electricTagCount);
        }
 
        String installedTime = entity.getInstalledTime();
        if (installedTime != null) {
            stmt.bindString(39, installedTime);
        }
 
        String longitude = entity.getLongitude();
        if (longitude != null) {
            stmt.bindString(40, longitude);
        }
 
        String latitude = entity.getLatitude();
        if (latitude != null) {
            stmt.bindString(41, latitude);
        }
 
        String markerMemo1 = entity.getMarkerMemo1();
        if (markerMemo1 != null) {
            stmt.bindString(42, markerMemo1);
        }
 
        String markerMemo2 = entity.getMarkerMemo2();
        if (markerMemo2 != null) {
            stmt.bindString(43, markerMemo2);
        }
 
        String markerMemo3 = entity.getMarkerMemo3();
        if (markerMemo3 != null) {
            stmt.bindString(44, markerMemo3);
        }
 
        String imagePath = entity.getImagePath();
        if (imagePath != null) {
            stmt.bindString(45, imagePath);
        }
    }

    @Override
    public Long readKey(Cursor cursor, int offset) {
        return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
    }    

    @Override
    public LabelBean readEntity(Cursor cursor, int offset) {
        LabelBean entity = new LabelBean( //
            cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // id
            cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // markerObjType
            cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // markerNumber
            cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // objectName
            cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // voltageLevel
            cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // transformerModel
            cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // holeCount
            cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // capacity
            cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8), // wellCoverMaterial
            cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // coverDepth
            cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // transformerSpec
            cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11), // inlineName
            cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12), // size
            cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13), // bottomDepth
            cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // height
            cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // crossPipeLine
            cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // inlineCount
            cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // lineNumber
            cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18), // jointCount
            cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19), // outlineCount
            cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20), // remainingChannels
            cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21), // cabinetType
            cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22), // tieCable1
            cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23), // tieCable2
            cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24), // casingMaterial
            cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25), // casingSpec
            cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26), // constructTime
            cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27), // inspectionUnit
            cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28), // area
            cursor.isNull(offset + 29) ? null : cursor.getString(offset + 29), // road
            cursor.isNull(offset + 30) ? null : cursor.getString(offset + 30), // memo1
            cursor.isNull(offset + 31) ? null : cursor.getString(offset + 31), // memo2
            cursor.isNull(offset + 32) ? null : cursor.getString(offset + 32), // memo3
            cursor.isNull(offset + 33) ? null : cursor.getString(offset + 33), // markerId
            cursor.isNull(offset + 34) ? null : cursor.getString(offset + 34), // markerType
            cursor.isNull(offset + 35) ? null : cursor.getString(offset + 35), // owner
            cursor.isNull(offset + 36) ? null : cursor.getString(offset + 36), // markerDepth
            cursor.isNull(offset + 37) ? null : cursor.getString(offset + 37), // electricTagCount
            cursor.isNull(offset + 38) ? null : cursor.getString(offset + 38), // installedTime
            cursor.isNull(offset + 39) ? null : cursor.getString(offset + 39), // longitude
            cursor.isNull(offset + 40) ? null : cursor.getString(offset + 40), // latitude
            cursor.isNull(offset + 41) ? null : cursor.getString(offset + 41), // markerMemo1
            cursor.isNull(offset + 42) ? null : cursor.getString(offset + 42), // markerMemo2
            cursor.isNull(offset + 43) ? null : cursor.getString(offset + 43), // markerMemo3
            cursor.isNull(offset + 44) ? null : cursor.getString(offset + 44) // imagePath
        );
        return entity;
    }
     
    @Override
    public void readEntity(Cursor cursor, LabelBean entity, int offset) {
        entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
        entity.setMarkerObjType(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
        entity.setMarkerNumber(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
        entity.setObjectName(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
        entity.setVoltageLevel(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
        entity.setTransformerModel(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
        entity.setHoleCount(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
        entity.setCapacity(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
        entity.setWellCoverMaterial(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
        entity.setCoverDepth(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
        entity.setTransformerSpec(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
        entity.setInlineName(cursor.isNull(offset + 11) ? null : cursor.getString(offset + 11));
        entity.setSize(cursor.isNull(offset + 12) ? null : cursor.getString(offset + 12));
        entity.setBottomDepth(cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13));
        entity.setHeight(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
        entity.setCrossPipeLine(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
        entity.setInlineCount(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
        entity.setLineNumber(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
        entity.setJointCount(cursor.isNull(offset + 18) ? null : cursor.getString(offset + 18));
        entity.setOutlineCount(cursor.isNull(offset + 19) ? null : cursor.getString(offset + 19));
        entity.setRemainingChannels(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
        entity.setCabinetType(cursor.isNull(offset + 21) ? null : cursor.getString(offset + 21));
        entity.setTieCable1(cursor.isNull(offset + 22) ? null : cursor.getString(offset + 22));
        entity.setTieCable2(cursor.isNull(offset + 23) ? null : cursor.getString(offset + 23));
        entity.setCasingMaterial(cursor.isNull(offset + 24) ? null : cursor.getString(offset + 24));
        entity.setCasingSpec(cursor.isNull(offset + 25) ? null : cursor.getString(offset + 25));
        entity.setConstructTime(cursor.isNull(offset + 26) ? null : cursor.getString(offset + 26));
        entity.setInspectionUnit(cursor.isNull(offset + 27) ? null : cursor.getString(offset + 27));
        entity.setArea(cursor.isNull(offset + 28) ? null : cursor.getString(offset + 28));
        entity.setRoad(cursor.isNull(offset + 29) ? null : cursor.getString(offset + 29));
        entity.setMemo1(cursor.isNull(offset + 30) ? null : cursor.getString(offset + 30));
        entity.setMemo2(cursor.isNull(offset + 31) ? null : cursor.getString(offset + 31));
        entity.setMemo3(cursor.isNull(offset + 32) ? null : cursor.getString(offset + 32));
        entity.setMarkerId(cursor.isNull(offset + 33) ? null : cursor.getString(offset + 33));
        entity.setMarkerType(cursor.isNull(offset + 34) ? null : cursor.getString(offset + 34));
        entity.setOwner(cursor.isNull(offset + 35) ? null : cursor.getString(offset + 35));
        entity.setMarkerDepth(cursor.isNull(offset + 36) ? null : cursor.getString(offset + 36));
        entity.setElectricTagCount(cursor.isNull(offset + 37) ? null : cursor.getString(offset + 37));
        entity.setInstalledTime(cursor.isNull(offset + 38) ? null : cursor.getString(offset + 38));
        entity.setLongitude(cursor.isNull(offset + 39) ? null : cursor.getString(offset + 39));
        entity.setLatitude(cursor.isNull(offset + 40) ? null : cursor.getString(offset + 40));
        entity.setMarkerMemo1(cursor.isNull(offset + 41) ? null : cursor.getString(offset + 41));
        entity.setMarkerMemo2(cursor.isNull(offset + 42) ? null : cursor.getString(offset + 42));
        entity.setMarkerMemo3(cursor.isNull(offset + 43) ? null : cursor.getString(offset + 43));
        entity.setImagePath(cursor.isNull(offset + 44) ? null : cursor.getString(offset + 44));
     }
    
    @Override
    protected final Long updateKeyAfterInsert(LabelBean entity, long rowId) {
        entity.setId(rowId);
        return rowId;
    }
    
    @Override
    public Long getKey(LabelBean entity) {
        if(entity != null) {
            return entity.getId();
        } else {
            return null;
        }
    }

    @Override
    public boolean hasKey(LabelBean entity) {
        return entity.getId() != null;
    }

    @Override
    protected final boolean isEntityUpdateable() {
        return true;
    }
    
}
