Java Code Examples for org.greenrobot.greendao.database.DatabaseStatement#bindString()
The following examples show how to use
org.greenrobot.greendao.database.DatabaseStatement#bindString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LiveCategoryDao.java From likequanmintv with Apache License 2.0 | 6 votes |
@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()); }
Example 2
Source File: CourseGroupDao.java From ClassSchedule with Apache License 2.0 | 6 votes |
@Override protected final void bindValues(DatabaseStatement stmt, CourseGroup entity) { stmt.clearBindings(); Long cgId = entity.getCgId(); if (cgId != null) { stmt.bindLong(1, cgId); } String cgName = entity.getCgName(); if (cgName != null) { stmt.bindString(2, cgName); } String cgSchool = entity.getCgSchool(); if (cgSchool != null) { stmt.bindString(3, cgSchool); } }
Example 3
Source File: AuthUserDao.java From OpenHub with GNU General Public License v3.0 | 6 votes |
@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); } }
Example 4
Source File: PartDao.java From Dictionary with Apache License 2.0 | 6 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Part entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } Long wordId = entity.getWordId(); if (wordId != null) { stmt.bindLong(2, wordId); } String part = entity.getPart(); if (part != null) { stmt.bindString(3, part); } String means = entity.getMeans(); if (means != null) { stmt.bindString(4, means); } }
Example 5
Source File: UserDao.java From enjoyshop with Apache License 2.0 | 6 votes |
@Override protected final void bindValues(DatabaseStatement stmt, User entity) { stmt.clearBindings(); Long userId = entity.getUserId(); if (userId != null) { stmt.bindLong(1, userId); } String phone = entity.getPhone(); if (phone != null) { stmt.bindString(2, phone); } String pwd = entity.getPwd(); if (pwd != null) { stmt.bindString(3, pwd); } stmt.bindLong(4, entity.getSex()); String nickName = entity.getNickName(); if (nickName != null) { stmt.bindString(5, nickName); } stmt.bindLong(6, entity.getRegetTime()); }
Example 6
Source File: StoryBookDao.java From ml-authentication with Apache License 2.0 | 6 votes |
@Override protected final void bindValues(DatabaseStatement stmt, StoryBook 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.getTitle()); stmt.bindLong(7, entity.getCoverImageId()); stmt.bindString(8, gradeLevelConverter.convertToDatabaseValue(entity.getGradeLevel())); }
Example 7
Source File: CityEntityDao.java From easyweather with MIT License | 6 votes |
@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); } }
Example 8
Source File: StudentDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Student entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindString(2, entity.getUniqueId()); stmt.bindLong(3, timeCreatedConverter.convertToDatabaseValue(entity.getTimeCreated())); stmt.bindString(4, entity.getAvatar()); }
Example 9
Source File: AddressDao.java From enjoyshop with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Address entity) { stmt.clearBindings(); Long addressId = entity.getAddressId(); if (addressId != null) { stmt.bindLong(1, addressId); } Long userId = entity.getUserId(); if (userId != null) { stmt.bindLong(2, userId); } String name = entity.getName(); if (name != null) { stmt.bindString(3, name); } String phone = entity.getPhone(); if (phone != null) { stmt.bindString(4, phone); } stmt.bindLong(5, entity.getIsDefaultAddress() ? 1L: 0L); String bigAddress = entity.getBigAddress(); if (bigAddress != null) { stmt.bindString(6, bigAddress); } String smallAddress = entity.getSmallAddress(); if (smallAddress != null) { stmt.bindString(7, smallAddress); } String address = entity.getAddress(); if (address != null) { stmt.bindString(8, address); } }
Example 10
Source File: MyTrendingLanguageDao.java From OpenHub with GNU General Public License v3.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, MyTrendingLanguage entity) { stmt.clearBindings(); stmt.bindString(1, entity.getSlug()); stmt.bindString(2, entity.getName()); stmt.bindLong(3, entity.getOrder()); }
Example 11
Source File: QuestionDao.java From Pretty-Zhihu with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Question entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getQuestionId()); stmt.bindString(3, entity.getTitle()); stmt.bindLong(4, entity.getAnswerCount()); }
Example 12
Source File: HistoryDataDao.java From Awesome-WanAndroid with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, HistoryData entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getDate()); String data = entity.getData(); if (data != null) { stmt.bindString(3, data); } }
Example 13
Source File: ImageDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Image 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.getContentType()); Set literacySkills = entity.getLiteracySkills(); if (literacySkills != null) { stmt.bindString(7, literacySkillsConverter.convertToDatabaseValue(literacySkills)); } Set numeracySkills = entity.getNumeracySkills(); if (numeracySkills != null) { stmt.bindString(8, numeracySkillsConverter.convertToDatabaseValue(numeracySkills)); } stmt.bindString(9, entity.getTitle()); stmt.bindString(10, imageFormatConverter.convertToDatabaseValue(entity.getImageFormat())); String dominantColor = entity.getDominantColor(); if (dominantColor != null) { stmt.bindString(11, dominantColor); } }
Example 14
Source File: PictureDao.java From Pretty-Zhihu with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Picture entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getQuestionId()); stmt.bindString(3, entity.getUrl()); }
Example 15
Source File: DeviceDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Device entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindString(2, entity.getDeviceId()); }
Example 16
Source File: MediaDownloadInfoDao.java From FimiX8-RE with MIT License | 5 votes |
public final void bindValues(DatabaseStatement stmt, MediaDownloadInfo entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id.longValue()); } stmt.bindLong(2, entity.getStartPos()); stmt.bindLong(3, entity.getEndPos()); stmt.bindLong(4, entity.getCompeleteZize()); String url = entity.getUrl(); if (url != null) { stmt.bindString(5, url); } }
Example 17
Source File: ContactEntityDao.java From Android with MIT License | 4 votes |
@Override protected final void bindValues(DatabaseStatement stmt, ContactEntity entity) { stmt.clearBindings(); Long _id = entity.get_id(); if (_id != null) { stmt.bindLong(1, _id); } stmt.bindString(2, entity.getPub_key()); String address = entity.getAddress(); if (address != null) { stmt.bindString(3, address); } String username = entity.getUsername(); if (username != null) { stmt.bindString(4, username); } String avatar = entity.getAvatar(); if (avatar != null) { stmt.bindString(5, avatar); } String remark = entity.getRemark(); if (remark != null) { stmt.bindString(6, remark); } Integer common = entity.getCommon(); if (common != null) { stmt.bindLong(7, common); } Integer source = entity.getSource(); if (source != null) { stmt.bindLong(8, source); } Boolean blocked = entity.getBlocked(); if (blocked != null) { stmt.bindLong(9, blocked ? 1L: 0L); } }
Example 18
Source File: FriendRequestEntityDao.java From Android with MIT License | 4 votes |
@Override protected final void bindValues(DatabaseStatement stmt, FriendRequestEntity entity) { stmt.clearBindings(); Long _id = entity.get_id(); if (_id != null) { stmt.bindLong(1, _id); } stmt.bindString(2, entity.getPub_key()); stmt.bindString(3, entity.getAddress()); String avatar = entity.getAvatar(); if (avatar != null) { stmt.bindString(4, avatar); } String username = entity.getUsername(); if (username != null) { stmt.bindString(5, username); } String tips = entity.getTips(); if (tips != null) { stmt.bindString(6, tips); } Integer source = entity.getSource(); if (source != null) { stmt.bindLong(7, source); } Integer status = entity.getStatus(); if (status != null) { stmt.bindLong(8, status); } Integer read = entity.getRead(); if (read != null) { stmt.bindLong(9, read); } }
Example 19
Source File: ChapterBeanDao.java From HaoReader with GNU General Public License v3.0 | 4 votes |
@Override protected final void bindValues(DatabaseStatement stmt, ChapterBean entity) { stmt.clearBindings(); String durChapterUrl = entity.getDurChapterUrl(); if (durChapterUrl != null) { stmt.bindString(1, durChapterUrl); } String nextChapterUrl = entity.getNextChapterUrl(); if (nextChapterUrl != null) { stmt.bindString(2, nextChapterUrl); } String durChapterName = entity.getDurChapterName(); if (durChapterName != null) { stmt.bindString(3, durChapterName); } String durChapterPlayUrl = entity.getDurChapterPlayUrl(); if (durChapterPlayUrl != null) { stmt.bindString(4, durChapterPlayUrl); } String noteUrl = entity.getNoteUrl(); if (noteUrl != null) { stmt.bindString(5, noteUrl); } Integer durChapterIndex = entity.getDurChapterIndex(); if (durChapterIndex != null) { stmt.bindLong(6, durChapterIndex); } Integer start = entity.getStart(); if (start != null) { stmt.bindLong(7, start); } Integer end = entity.getEnd(); if (end != null) { stmt.bindLong(8, end); } }
Example 20
Source File: DataStaticInfoDao.java From FimiX8-RE with MIT License | 4 votes |
public final void bindValues(DatabaseStatement stmt, DataStaticInfo entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id.longValue()); } String currentTime = entity.getCurrentTime(); if (currentTime != null) { stmt.bindString(2, currentTime); } String flyTime = entity.getFlyTime(); if (flyTime != null) { stmt.bindString(3, flyTime); } String userId = entity.getUserId(); if (userId != null) { stmt.bindString(4, userId); } String useTime = entity.getUseTime(); if (useTime != null) { stmt.bindString(5, useTime); } stmt.bindLong(6, (long) entity.getType()); stmt.bindLong(7, (long) entity.getDeviceType()); String sysVersion = entity.getSysVersion(); if (sysVersion != null) { stmt.bindString(8, sysVersion); } String mcuVersion = entity.getMcuVersion(); if (mcuVersion != null) { stmt.bindString(9, mcuVersion); } String flyDistance = entity.getFlyDistance(); if (flyDistance != null) { stmt.bindString(10, flyDistance); } String flyHeight = entity.getFlyHeight(); if (flyHeight != null) { stmt.bindString(11, flyHeight); } String longitude = entity.getLongitude(); if (longitude != null) { stmt.bindString(12, longitude); } String latitude = entity.getLatitude(); if (latitude != null) { stmt.bindString(13, latitude); } }