Java Code Examples for org.greenrobot.greendao.database.DatabaseStatement#bindLong()
The following examples show how to use
org.greenrobot.greendao.database.DatabaseStatement#bindLong() .
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: 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 2
Source File: LetterDao.java From ml-authentication with Apache License 2.0 | 6 votes |
@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()); }
Example 3
Source File: X8AiLinePointInfoDao.java From FimiX8-RE with MIT License | 6 votes |
public final void bindValues(DatabaseStatement stmt, X8AiLinePointInfo entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id.longValue()); } stmt.bindLong(2, entity.getTime()); String name = entity.getName(); if (name != null) { stmt.bindString(3, name); } stmt.bindLong(4, (long) entity.getType()); stmt.bindLong(5, (long) entity.getSpeed()); stmt.bindLong(6, (long) entity.getSaveFlag()); stmt.bindDouble(7, (double) entity.getDistance()); stmt.bindLong(8, (long) entity.getIsCurve()); stmt.bindLong(9, (long) entity.getMapType()); stmt.bindLong(10, (long) entity.getRunByMapOrVedio()); stmt.bindLong(11, (long) entity.getDisconnectType()); stmt.bindLong(12, (long) entity.getExcuteEnd()); stmt.bindLong(13, (long) entity.getAutoRecord()); String locality = entity.getLocality(); if (locality != null) { stmt.bindString(14, locality); } }
Example 4
Source File: JoinAudiosWithLettersDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, JoinAudiosWithLetters entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getAudioId()); stmt.bindLong(3, entity.getLetterId()); }
Example 5
Source File: UserDao.java From KUtils with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, User 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.getAge()); }
Example 6
Source File: JoinAudiosWithLettersDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, JoinAudiosWithLetters entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getAudioId()); stmt.bindLong(3, entity.getLetterId()); }
Example 7
Source File: GroupMemberEntityDao.java From Android with MIT License | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, GroupMemberEntity entity) { stmt.clearBindings(); Long _id = entity.get_id(); if (_id != null) { stmt.bindLong(1, _id); } stmt.bindString(2, entity.getIdentifier()); stmt.bindString(3, entity.getUsername()); stmt.bindString(4, entity.getAvatar()); stmt.bindString(5, entity.getAddress()); Integer role = entity.getRole(); if (role != null) { stmt.bindLong(6, role); } String nick = entity.getNick(); if (nick != null) { stmt.bindString(7, nick); } String pub_key = entity.getPub_key(); if (pub_key != null) { stmt.bindString(8, pub_key); } }
Example 8
Source File: JoinAudiosWithWordsDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, JoinAudiosWithWords entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getAudioId()); stmt.bindLong(3, entity.getWordId()); }
Example 9
Source File: ChapterDao.java From MissZzzReader with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Chapter entity) { stmt.clearBindings(); String id = entity.getId(); if (id != null) { stmt.bindString(1, id); } String bookId = entity.getBookId(); if (bookId != null) { stmt.bindString(2, bookId); } stmt.bindLong(3, entity.getNumber()); String title = entity.getTitle(); if (title != null) { stmt.bindString(4, title); } String url = entity.getUrl(); if (url != null) { stmt.bindString(5, url); } String content = entity.getContent(); if (content != null) { stmt.bindString(6, content); } }
Example 10
Source File: JoinImagesWithLettersDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, JoinImagesWithLetters entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getImageId()); stmt.bindLong(3, entity.getLetterId()); }
Example 11
Source File: UserDao.java From KUtils-master with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, User 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.getAge()); }
Example 12
Source File: UserDao.java From Android-IM with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, User entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } }
Example 13
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 14
Source File: VideoDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, Video 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, videoFormatConverter.convertToDatabaseValue(entity.getVideoFormat())); }
Example 15
Source File: JoinVideosWithLettersDao.java From ml-authentication with Apache License 2.0 | 5 votes |
@Override protected final void bindValues(DatabaseStatement stmt, JoinVideosWithLetters entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getVideoId()); stmt.bindLong(3, entity.getLetterId()); }
Example 16
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 17
Source File: BookShelfBeanDao.java From HaoReader with GNU General Public License v3.0 | 4 votes |
@Override protected final void bindValues(DatabaseStatement stmt, BookShelfBean entity) { stmt.clearBindings(); String noteUrl = entity.getNoteUrl(); if (noteUrl != null) { stmt.bindString(1, noteUrl); } Integer durChapter = entity.getDurChapter(); if (durChapter != null) { stmt.bindLong(2, durChapter); } Integer durChapterPage = entity.getDurChapterPage(); if (durChapterPage != null) { stmt.bindLong(3, durChapterPage); } Long finalDate = entity.getFinalDate(); if (finalDate != null) { stmt.bindLong(4, finalDate); } Boolean hasUpdate = entity.getHasUpdate(); if (hasUpdate != null) { stmt.bindLong(5, hasUpdate ? 1L: 0L); } Integer newChapters = entity.getNewChapters(); if (newChapters != null) { stmt.bindLong(6, newChapters); } String tag = entity.getTag(); if (tag != null) { stmt.bindString(7, tag); } Integer serialNumber = entity.getSerialNumber(); if (serialNumber != null) { stmt.bindLong(8, serialNumber); } Long finalRefreshData = entity.getFinalRefreshData(); if (finalRefreshData != null) { stmt.bindLong(9, finalRefreshData); } Integer group = entity.getGroup(); if (group != null) { stmt.bindLong(10, group); } String durChapterName = entity.getDurChapterName(); if (durChapterName != null) { stmt.bindString(11, durChapterName); } String lastChapterName = entity.getLastChapterName(); if (lastChapterName != null) { stmt.bindString(12, lastChapterName); } Integer chapterListSize = entity.getChapterListSize(); if (chapterListSize != null) { stmt.bindLong(13, chapterListSize); } Boolean updateOff = entity.getUpdateOff(); if (updateOff != null) { stmt.bindLong(14, updateOff ? 1L: 0L); } String variableString = entity.getVariableString(); if (variableString != null) { stmt.bindString(15, variableString); } }
Example 18
Source File: BookMarkRepoDao.java From OpenHub with GNU General Public License v3.0 | 4 votes |
@Override protected final void bindValues(DatabaseStatement stmt, BookMarkRepo entity) { stmt.clearBindings(); stmt.bindLong(1, entity.getId()); stmt.bindString(2, entity.getName()); String description = entity.getDescription(); if (description != null) { stmt.bindString(3, description); } String language = entity.getLanguage(); if (language != null) { stmt.bindString(4, language); } Integer stargazersCount = entity.getStargazersCount(); if (stargazersCount != null) { stmt.bindLong(5, stargazersCount); } Integer watchersCount = entity.getWatchersCount(); if (watchersCount != null) { stmt.bindLong(6, watchersCount); } Integer forksCount = entity.getForksCount(); if (forksCount != null) { stmt.bindLong(7, forksCount); } Boolean fork = entity.getFork(); if (fork != null) { stmt.bindLong(8, fork ? 1L: 0L); } String ownerLogin = entity.getOwnerLogin(); if (ownerLogin != null) { stmt.bindString(9, ownerLogin); } String ownerAvatarUrl = entity.getOwnerAvatarUrl(); if (ownerAvatarUrl != null) { stmt.bindString(10, ownerAvatarUrl); } java.util.Date markTime = entity.getMarkTime(); if (markTime != null) { stmt.bindLong(11, markTime.getTime()); } }
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: 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); } }