当前位置: 首页>>代码示例>>Java>>正文


Java DatabaseStatement.bindDouble方法代码示例

本文整理汇总了Java中org.greenrobot.greendao.database.DatabaseStatement.bindDouble方法的典型用法代码示例。如果您正苦于以下问题:Java DatabaseStatement.bindDouble方法的具体用法?Java DatabaseStatement.bindDouble怎么用?Java DatabaseStatement.bindDouble使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.greenrobot.greendao.database.DatabaseStatement的用法示例。


在下文中一共展示了DatabaseStatement.bindDouble方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, UsedProduct entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindDouble(2, entity.getQuantity());
    stmt.bindLong(3, entity.getUnit() ? 1L: 0L);
    stmt.bindLong(4, entity.getIsPurchased() ? 1L: 0L);
    stmt.bindLong(5, entity.getDate());
 
    Long productId = entity.getProductId();
    if (productId != null) {
        stmt.bindLong(6, productId);
    }
    stmt.bindLong(7, entity.getShoppingListId());
}
 
开发者ID:Lidchanin,项目名称:Shopping_List,代码行数:20,代码来源:UsedProductDao.java

示例2: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, SMS entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    String time = entity.getTime();
    if (time != null) {
        stmt.bindString(2, time);
    }
 
    String address = entity.getAddress();
    if (address != null) {
        stmt.bindString(3, address);
    }
 
    String content = entity.getContent();
    if (content != null) {
        stmt.bindString(4, content);
    }
    stmt.bindDouble(5, entity.getProbability());
}
 
开发者ID:InnoFang,项目名称:FamilyBond,代码行数:26,代码来源:SMSDao.java

示例3: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, DbLoudnessSensor entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindDouble(2, entity.getLoudness());
    stmt.bindString(3, entity.getCreated());
 
    Long deviceId = entity.getDeviceId();
    if (deviceId != null) {
        stmt.bindLong(4, deviceId);
    }
}
 
开发者ID:Telecooperation,项目名称:assistance-platform-client-sdk-android,代码行数:17,代码来源:DbLoudnessSensorDao.java

示例4: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, DbPowerLevelSensor entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    Float percent = entity.getPercent();
    if (percent != null) {
        stmt.bindDouble(2, percent);
    }
    stmt.bindString(3, entity.getCreated());
 
    Long deviceId = entity.getDeviceId();
    if (deviceId != null) {
        stmt.bindLong(4, deviceId);
    }
}
 
开发者ID:Telecooperation,项目名称:assistance-platform-client-sdk-android,代码行数:21,代码来源:DbPowerLevelSensorDao.java

示例5: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, DbLightSensor entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    Integer accuracy = entity.getAccuracy();
    if (accuracy != null) {
        stmt.bindLong(2, accuracy);
    }
 
    Float value = entity.getValue();
    if (value != null) {
        stmt.bindDouble(3, value);
    }
    stmt.bindString(4, entity.getCreated());
 
    Long deviceId = entity.getDeviceId();
    if (deviceId != null) {
        stmt.bindLong(5, deviceId);
    }
}
 
开发者ID:Telecooperation,项目名称:assistance-platform-client-sdk-android,代码行数:26,代码来源:DbLightSensorDao.java

示例6: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, Message entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    String content = entity.getContent();
    if (content != null) {
        stmt.bindString(2, content);
    }
    stmt.bindLong(3, entity.getClient_id());
    stmt.bindLong(4, entity.getCreated_at());
    stmt.bindDouble(5, entity.getSorted_by());
    stmt.bindLong(6, entity.getCommand_id());
    stmt.bindLong(7, entity.getSender_id());
    stmt.bindLong(8, entity.getChannel_id());
}
 
开发者ID:touchlab,项目名称:android-orm-benchmark-updated,代码行数:21,代码来源:MessageDao.java

示例7: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, SimpleEntityNotNull entity) {
    stmt.clearBindings();
    stmt.bindLong(1, entity.getId());
    stmt.bindLong(2, entity.getSimpleBoolean() ? 1L: 0L);
    stmt.bindLong(3, entity.getSimpleByte());
    stmt.bindLong(4, entity.getSimpleShort());
    stmt.bindLong(5, entity.getSimpleInt());
    stmt.bindLong(6, entity.getSimpleLong());
    stmt.bindDouble(7, entity.getSimpleFloat());
    stmt.bindDouble(8, entity.getSimpleDouble());
    stmt.bindString(9, entity.getSimpleString());
    stmt.bindBlob(10, entity.getSimpleByteArray());
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:15,代码来源:SimpleEntityNotNullDao.java

示例8: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, Statistic entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindString(2, entity.getName());
    stmt.bindDouble(3, entity.getQuantity());
    stmt.bindDouble(4, entity.getTotalCost());
    stmt.bindLong(5, entity.getUnit() ? 1L: 0L);
    stmt.bindLong(6, entity.getDate());
}
 
开发者ID:Lidchanin,项目名称:Shopping_List,代码行数:15,代码来源:StatisticDao.java

示例9: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, Product entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindString(2, entity.getName());
    stmt.bindDouble(3, entity.getCost());
}
 
开发者ID:Lidchanin,项目名称:Shopping_List,代码行数:12,代码来源:ProductDao.java

示例10: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, DbPowerStateSensor entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    Boolean isCharging = entity.getIsCharging();
    if (isCharging != null) {
        stmt.bindLong(2, isCharging ? 1L: 0L);
    }
 
    Float percent = entity.getPercent();
    if (percent != null) {
        stmt.bindDouble(3, percent);
    }
    stmt.bindString(4, entity.getCreated());
 
    Integer chargingState = entity.getChargingState();
    if (chargingState != null) {
        stmt.bindLong(5, chargingState);
    }
 
    Integer chargingMode = entity.getChargingMode();
    if (chargingMode != null) {
        stmt.bindLong(6, chargingMode);
    }
 
    Boolean powerSaveMode = entity.getPowerSaveMode();
    if (powerSaveMode != null) {
        stmt.bindLong(7, powerSaveMode ? 1L: 0L);
    }
 
    Long deviceId = entity.getDeviceId();
    if (deviceId != null) {
        stmt.bindLong(8, deviceId);
    }
}
 
开发者ID:Telecooperation,项目名称:assistance-platform-client-sdk-android,代码行数:41,代码来源:DbPowerStateSensorDao.java

示例11: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, DbModuleCapability entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindString(2, entity.getType());
 
    Double collectionInterval = entity.getCollectionInterval();
    if (collectionInterval != null) {
        stmt.bindDouble(3, collectionInterval);
    }
 
    Double updateInterval = entity.getUpdateInterval();
    if (updateInterval != null) {
        stmt.bindDouble(4, updateInterval);
    }
 
    Integer accuracy = entity.getAccuracy();
    if (accuracy != null) {
        stmt.bindLong(5, accuracy);
    }
 
    String permissions = entity.getPermissions();
    if (permissions != null) {
        stmt.bindString(6, permissions);
    }
    stmt.bindLong(7, entity.getRequired() ? 1L: 0L);
    stmt.bindLong(8, entity.getActive() ? 1L: 0L);
    stmt.bindString(9, entity.getCreated());
 
    Long moduleId = entity.getModuleId();
    if (moduleId != null) {
        stmt.bindLong(10, moduleId);
    }
}
 
开发者ID:Telecooperation,项目名称:assistance-platform-client-sdk-android,代码行数:39,代码来源:DbModuleCapabilityDao.java

示例12: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, DbAccelerometerSensor entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    Double x = entity.getX();
    if (x != null) {
        stmt.bindDouble(2, x);
    }
 
    Double y = entity.getY();
    if (y != null) {
        stmt.bindDouble(3, y);
    }
 
    Double z = entity.getZ();
    if (z != null) {
        stmt.bindDouble(4, z);
    }
    stmt.bindString(5, entity.getCreated());
 
    Integer accuracy = entity.getAccuracy();
    if (accuracy != null) {
        stmt.bindLong(6, accuracy);
    }
 
    Long deviceId = entity.getDeviceId();
    if (deviceId != null) {
        stmt.bindLong(7, deviceId);
    }
}
 
开发者ID:Telecooperation,项目名称:assistance-platform-client-sdk-android,代码行数:36,代码来源:DbAccelerometerSensorDao.java

示例13: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, PgeG11Bill entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    Integer readingFrom = entity.getReadingFrom();
    if (readingFrom != null) {
        stmt.bindLong(2, readingFrom);
    }
 
    Integer readingTo = entity.getReadingTo();
    if (readingTo != null) {
        stmt.bindLong(3, readingTo);
    }
 
    java.util.Date dateFrom = entity.getDateFrom();
    if (dateFrom != null) {
        stmt.bindLong(4, dateFrom.getTime());
    }
 
    java.util.Date dateTo = entity.getDateTo();
    if (dateTo != null) {
        stmt.bindLong(5, dateTo.getTime());
    }
 
    Double amountToPay = entity.getAmountToPay();
    if (amountToPay != null) {
        stmt.bindDouble(6, amountToPay);
    }
 
    Long pricesId = entity.getPricesId();
    if (pricesId != null) {
        stmt.bindLong(7, pricesId);
    }
}
 
开发者ID:sewerk,项目名称:Bill-Calculator,代码行数:40,代码来源:PgeG11BillDao.java

示例14: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, TauronG11Bill entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    Integer readingFrom = entity.getReadingFrom();
    if (readingFrom != null) {
        stmt.bindLong(2, readingFrom);
    }
 
    Integer readingTo = entity.getReadingTo();
    if (readingTo != null) {
        stmt.bindLong(3, readingTo);
    }
 
    java.util.Date dateFrom = entity.getDateFrom();
    if (dateFrom != null) {
        stmt.bindLong(4, dateFrom.getTime());
    }
 
    java.util.Date dateTo = entity.getDateTo();
    if (dateTo != null) {
        stmt.bindLong(5, dateTo.getTime());
    }
 
    Double amountToPay = entity.getAmountToPay();
    if (amountToPay != null) {
        stmt.bindDouble(6, amountToPay);
    }
 
    Long pricesId = entity.getPricesId();
    if (pricesId != null) {
        stmt.bindLong(7, pricesId);
    }
}
 
开发者ID:sewerk,项目名称:Bill-Calculator,代码行数:40,代码来源:TauronG11BillDao.java

示例15: bindValues

import org.greenrobot.greendao.database.DatabaseStatement; //导入方法依赖的package包/类
@Override
protected final void bindValues(DatabaseStatement stmt, PgnigBill entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    Integer readingFrom = entity.getReadingFrom();
    if (readingFrom != null) {
        stmt.bindLong(2, readingFrom);
    }
 
    Integer readingTo = entity.getReadingTo();
    if (readingTo != null) {
        stmt.bindLong(3, readingTo);
    }
 
    java.util.Date dateFrom = entity.getDateFrom();
    if (dateFrom != null) {
        stmt.bindLong(4, dateFrom.getTime());
    }
 
    java.util.Date dateTo = entity.getDateTo();
    if (dateTo != null) {
        stmt.bindLong(5, dateTo.getTime());
    }
 
    Double amountToPay = entity.getAmountToPay();
    if (amountToPay != null) {
        stmt.bindDouble(6, amountToPay);
    }
 
    Long pricesId = entity.getPricesId();
    if (pricesId != null) {
        stmt.bindLong(7, pricesId);
    }
}
 
开发者ID:sewerk,项目名称:Bill-Calculator,代码行数:40,代码来源:PgnigBillDao.java


注:本文中的org.greenrobot.greendao.database.DatabaseStatement.bindDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。