本文整理匯總了Java中org.greenrobot.greendao.database.DatabaseStatement.bindLong方法的典型用法代碼示例。如果您正苦於以下問題:Java DatabaseStatement.bindLong方法的具體用法?Java DatabaseStatement.bindLong怎麽用?Java DatabaseStatement.bindLong使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.greenrobot.greendao.database.DatabaseStatement
的用法示例。
在下文中一共展示了DatabaseStatement.bindLong方法的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, AuthUser entity) {
stmt.clearBindings();
stmt.bindString(1, entity.getAccessToken());
stmt.bindLong(2, entity.getAuthTime().getTime());
stmt.bindLong(3, entity.getExpireIn());
stmt.bindString(4, entity.getScope());
stmt.bindLong(5, entity.getSelected() ? 1L: 0L);
stmt.bindString(6, entity.getLoginId());
String name = entity.getName();
if (name != null) {
stmt.bindString(7, name);
}
String avatar = entity.getAvatar();
if (avatar != null) {
stmt.bindString(8, avatar);
}
}
示例3: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, VideoFile entity) {
stmt.clearBindings();
Long fileID = entity.getFileID();
if (fileID != null) {
stmt.bindLong(1, fileID);
}
String name = entity.getName();
if (name != null) {
stmt.bindString(2, name);
}
String path = entity.getPath();
if (path != null) {
stmt.bindString(3, path);
}
stmt.bindLong(4, entity.getCount());
Long lastModified = entity.getLastModified();
if (lastModified != null) {
stmt.bindLong(5, lastModified);
}
}
示例4: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, GreenTest entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String name = entity.getName();
if (name != null) {
stmt.bindString(2, name);
}
String password = entity.getPassword();
if (password != null) {
stmt.bindString(3, password);
}
String comment = entity.getComment();
if (comment != null) {
stmt.bindString(4, comment);
}
}
示例5: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, ToManyTargetEntity entity) {
stmt.clearBindings();
Long toManyId = entity.getToManyId();
if (toManyId != null) {
stmt.bindLong(1, toManyId);
}
Long toManyIdDesc = entity.getToManyIdDesc();
if (toManyIdDesc != null) {
stmt.bindLong(2, toManyIdDesc);
}
Long id = entity.getId();
if (id != null) {
stmt.bindLong(3, id);
}
String targetJoinProperty = entity.getTargetJoinProperty();
if (targetJoinProperty != null) {
stmt.bindString(4, targetJoinProperty);
}
}
示例6: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, User entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String phone = entity.getPhone();
if (phone != null) {
stmt.bindString(2, phone);
}
String psw = entity.getPsw();
if (psw != null) {
stmt.bindString(3, psw);
}
}
示例7: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, RepositoryNote entity) {
stmt.clearBindings();
stmt.bindLong(1, entity.getId());
String name = entity.getName();
if (name != null) {
stmt.bindString(2, name);
}
String username = entity.getUsername();
if (username != null) {
stmt.bindString(3, username);
}
stmt.bindLong(4, entity.getRepos());
}
示例8: 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());
}
示例9: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, LiveCategory entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String name = entity.getName();
if (name != null) {
stmt.bindString(2, name);
}
stmt.bindLong(3, entity.getIs_default());
String slug = entity.getSlug();
if (slug != null) {
stmt.bindString(4, slug);
}
stmt.bindLong(5, entity.getType());
stmt.bindLong(6, entity.getScreen());
}
示例10: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, Group entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
stmt.bindLong(2, entity.getGroupId());
String groupName = entity.getGroupName();
if (groupName != null) {
stmt.bindString(3, groupName);
}
String groupAvatar = entity.getGroupAvatar();
if (groupAvatar != null) {
stmt.bindString(4, groupAvatar);
}
String createTime = entity.getCreateTime();
if (createTime != null) {
stmt.bindString(5, createTime);
}
}
示例11: 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
示例12: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, ApplicationVersion entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
stmt.bindLong(2, entity.getApplicationId());
stmt.bindLong(3, entity.getFileSizeInKb());
stmt.bindString(4, entity.getFileUrl());
stmt.bindString(5, entity.getContentType());
stmt.bindLong(6, entity.getVersionCode());
String startCommand = entity.getStartCommand();
if (startCommand != null) {
stmt.bindString(7, startCommand);
}
stmt.bindLong(8, timeUploadedConverter.convertToDatabaseValue(entity.getTimeUploaded()));
}
示例13: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, CityEntity entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String cityName = entity.getCityName();
if (cityName != null) {
stmt.bindString(2, cityName);
}
String provinceName = entity.getProvinceName();
if (provinceName != null) {
stmt.bindString(3, provinceName);
}
}
示例14: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, Letter entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
stmt.bindString(2, localeConverter.convertToDatabaseValue(entity.getLocale()));
Calendar timeLastUpdate = entity.getTimeLastUpdate();
if (timeLastUpdate != null) {
stmt.bindLong(3, timeLastUpdateConverter.convertToDatabaseValue(timeLastUpdate));
}
stmt.bindLong(4, entity.getRevisionNumber());
stmt.bindString(5, contentStatusConverter.convertToDatabaseValue(entity.getContentStatus()));
stmt.bindString(6, entity.getText());
stmt.bindLong(7, entity.getUsageCount());
}
示例15: 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