本文整理匯總了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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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);
}
}
示例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);
}
}
示例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);
}
}