當前位置: 首頁>>代碼示例>>Java>>正文


Java DatabaseStatement.bindLong方法代碼示例

本文整理匯總了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());
}
 
開發者ID:Lidchanin,項目名稱:Shopping_List,代碼行數:20,代碼來源:UsedProductDao.java

示例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);
    }
}
 
開發者ID:ThirtyDegreesRay,項目名稱:OpenHub,代碼行數:21,代碼來源:AuthUserDao.java

示例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);
    }
}
 
開發者ID:bigjelly,項目名稱:ShaddockVideoPlayer,代碼行數:26,代碼來源:VideoFileDao.java

示例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);
    }
}
 
開發者ID:yzzslow0,項目名稱:Ec2m,代碼行數:25,代碼來源:GreenTestDao.java

示例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);
    }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:25,代碼來源:ToManyTargetEntityDao.java

示例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);
    }
}
 
開發者ID:guxiaonian,項目名稱:MeiLa_GNN,代碼行數:20,代碼來源:UserDao.java

示例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());
}
 
開發者ID:VRLoser,項目名稱:greendao_expand,代碼行數:17,代碼來源:RepositoryNoteDao.java

示例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());
}
 
開發者ID:InnoFang,項目名稱:FamilyBond,代碼行數:26,代碼來源:SMSDao.java

示例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());
}
 
開發者ID:a371166028,項目名稱:likequanmintv,代碼行數:23,代碼來源:LiveCategoryDao.java

示例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);
    }
}
 
開發者ID:CooLoongWu,項目名稱:CoolChat,代碼行數:26,代碼來源:GroupDao.java

示例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()));
}
 
開發者ID:elimu-ai,項目名稱:appstore,代碼行數:21,代碼來源:ApplicationVersionDao.java

示例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);
    }
}
 
開發者ID:byhieg,項目名稱:easyweather,代碼行數:20,代碼來源:CityEntityDao.java

示例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());
}
 
開發者ID:elimu-ai,項目名稱:authentication,代碼行數:20,代碼來源:LetterDao.java

示例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


注:本文中的org.greenrobot.greendao.database.DatabaseStatement.bindLong方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。