Java Code Examples for org.greenrobot.greendao.database.DatabaseStatement#clearBindings()

The following examples show how to use org.greenrobot.greendao.database.DatabaseStatement#clearBindings() . 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: X8AiLinePointLatlngInfoDao.java    From FimiX8-RE with MIT License 6 votes vote down vote up
public final void bindValues(DatabaseStatement stmt, X8AiLinePointLatlngInfo entity) {
    stmt.clearBindings();
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id.longValue());
    }
    stmt.bindLong(2, (long) entity.getNumber());
    stmt.bindLong(3, (long) entity.getTotalnumber());
    stmt.bindDouble(4, entity.getLongitude());
    stmt.bindDouble(5, entity.getLatitude());
    stmt.bindLong(6, (long) entity.getAltitude());
    stmt.bindDouble(7, (double) entity.getYaw());
    stmt.bindLong(8, (long) entity.getGimbalPitch());
    stmt.bindLong(9, (long) entity.getSpeed());
    stmt.bindLong(10, (long) entity.getYawMode());
    stmt.bindLong(11, (long) entity.getGimbalMode());
    stmt.bindLong(12, (long) entity.getTrajectoryMode());
    stmt.bindLong(13, (long) entity.getMissionFinishAction());
    stmt.bindLong(14, (long) entity.getRCLostAction());
    stmt.bindDouble(15, entity.getLongitudePOI());
    stmt.bindDouble(16, entity.getLatitudePOI());
    stmt.bindLong(17, (long) entity.getAltitudePOI());
    stmt.bindLong(18, entity.getLineId());
    stmt.bindLong(19, (long) entity.getPointActionCmd());
    stmt.bindLong(20, (long) entity.getRoration());
}
 
Example 2
Source File: MagicPhotoEntityDao.java    From PLDroidShortVideo with Apache License 2.0 6 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, MagicPhotoEntity entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindLong(2, entity.getWidth());
    stmt.bindLong(3, entity.getHeight());
 
    String groupPointsStr = entity.getGroupPointsStr();
    if (groupPointsStr != null) {
        stmt.bindString(4, groupPointsStr);
    }
 
    String groupTypeStr = entity.getGroupTypeStr();
    if (groupTypeStr != null) {
        stmt.bindString(5, groupTypeStr);
    }
 
    String imagePath = entity.getImagePath();
    if (imagePath != null) {
        stmt.bindString(6, imagePath);
    }
}
 
Example 3
Source File: StudentImageCollectionEventDao.java    From ml-authentication with Apache License 2.0 6 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, StudentImageCollectionEvent entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindLong(2, entity.getDeviceId());
    stmt.bindLong(3, timeConverter.convertToDatabaseValue(entity.getTime()));
    stmt.bindLong(4, entity.getStudentId());
 
    String meanFeatureVector = entity.getMeanFeatureVector();
    if (meanFeatureVector != null) {
        stmt.bindString(5, meanFeatureVector);
    }
}
 
Example 4
Source File: BookmarkDao.java    From OpenHub with GNU General Public License v3.0 6 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, Bookmark entity) {
    stmt.clearBindings();
    stmt.bindString(1, entity.getId());
    stmt.bindString(2, entity.getType());
 
    String userId = entity.getUserId();
    if (userId != null) {
        stmt.bindString(3, userId);
    }
 
    Long repoId = entity.getRepoId();
    if (repoId != null) {
        stmt.bindLong(4, repoId);
    }
 
    java.util.Date markTime = entity.getMarkTime();
    if (markTime != null) {
        stmt.bindLong(5, markTime.getTime());
    }
}
 
Example 5
Source File: ParamEntityDao.java    From Android with MIT License 6 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, ParamEntity entity) {
    stmt.clearBindings();
 
    Long _id = entity.get_id();
    if (_id != null) {
        stmt.bindLong(1, _id);
    }
 
    String key = entity.getKey();
    if (key != null) {
        stmt.bindString(2, key);
    }
 
    String value = entity.getValue();
    if (value != null) {
        stmt.bindString(3, value);
    }
 
    String ext = entity.getExt();
    if (ext != null) {
        stmt.bindString(4, ext);
    }
}
 
Example 6
Source File: SyllableDao.java    From ml-authentication with Apache License 2.0 6 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, Syllable 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 7
Source File: GroupDao.java    From CoolChat with Apache License 2.0 6 votes vote down vote up
@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);
    }
}
 
Example 8
Source File: UserDao.java    From Android-IM with Apache License 2.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, User entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
}
 
Example 9
Source File: JoinVideosWithNumbersDao.java    From ml-authentication with Apache License 2.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, JoinVideosWithNumbers entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindLong(2, entity.getVideoId());
    stmt.bindLong(3, entity.getNumberId());
}
 
Example 10
Source File: HistoryDataDao.java    From Awesome-WanAndroid with Apache License 2.0 5 votes vote down vote up
@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 11
Source File: JoinNumbersWithWordsDao.java    From ml-authentication with Apache License 2.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, JoinNumbersWithWords entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindLong(2, entity.getNumberId());
    stmt.bindLong(3, entity.getWordId());
}
 
Example 12
Source File: AuthenticationEventDao.java    From ml-authentication with Apache License 2.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, AuthenticationEvent entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindLong(2, entity.getDeviceId());
    stmt.bindLong(3, timeConverter.convertToDatabaseValue(entity.getTime()));
    stmt.bindLong(4, entity.getStudentId());
    stmt.bindLong(5, entity.getIsFallback() ? 1L: 0L);
}
 
Example 13
Source File: LikeBeanDao.java    From Ency with Apache License 2.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, LikeBean entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    String guid = entity.getGuid();
    if (guid != null) {
        stmt.bindString(2, guid);
    }
 
    String imageUrl = entity.getImageUrl();
    if (imageUrl != null) {
        stmt.bindString(3, imageUrl);
    }
 
    String title = entity.getTitle();
    if (title != null) {
        stmt.bindString(4, title);
    }
 
    String url = entity.getUrl();
    if (url != null) {
        stmt.bindString(5, url);
    }
    stmt.bindLong(6, entity.getType());
    stmt.bindLong(7, entity.getTime());
}
 
Example 14
Source File: AuthenticationEventDao.java    From ml-authentication with Apache License 2.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, AuthenticationEvent entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindLong(2, entity.getDeviceId());
    stmt.bindLong(3, timeConverter.convertToDatabaseValue(entity.getTime()));
    stmt.bindLong(4, entity.getStudentId());
    stmt.bindLong(5, entity.getIsFallback() ? 1L: 0L);
}
 
Example 15
Source File: TraceDao.java    From OpenHub with GNU General Public License v3.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, Trace entity) {
    stmt.clearBindings();
    stmt.bindString(1, entity.getId());
 
    String type = entity.getType();
    if (type != null) {
        stmt.bindString(2, type);
    }
 
    String userId = entity.getUserId();
    if (userId != null) {
        stmt.bindString(3, userId);
    }
 
    Long repoId = entity.getRepoId();
    if (repoId != null) {
        stmt.bindLong(4, repoId);
    }
 
    java.util.Date startTime = entity.getStartTime();
    if (startTime != null) {
        stmt.bindLong(5, startTime.getTime());
    }
 
    java.util.Date latestTime = entity.getLatestTime();
    if (latestTime != null) {
        stmt.bindLong(6, latestTime.getTime());
    }
 
    Integer traceNum = entity.getTraceNum();
    if (traceNum != null) {
        stmt.bindLong(7, traceNum);
    }
}
 
Example 16
Source File: JoinAudiosWithNumbersDao.java    From ml-authentication with Apache License 2.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, JoinAudiosWithNumbers entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindLong(2, entity.getAudioId());
    stmt.bindLong(3, entity.getNumberId());
}
 
Example 17
Source File: JoinVideosWithNumbersDao.java    From ml-authentication with Apache License 2.0 5 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, JoinVideosWithNumbers entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
    stmt.bindLong(2, entity.getVideoId());
    stmt.bindLong(3, entity.getNumberId());
}
 
Example 18
Source File: UserBeanDao.java    From PocketEOS-Android with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, UserBean entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    String wallet_uid = entity.getWallet_uid();
    if (wallet_uid != null) {
        stmt.bindString(2, wallet_uid);
    }
 
    String wallet_name = entity.getWallet_name();
    if (wallet_name != null) {
        stmt.bindString(3, wallet_name);
    }
 
    String wallet_img = entity.getWallet_img();
    if (wallet_img != null) {
        stmt.bindString(4, wallet_img);
    }
 
    String wallet_weixin = entity.getWallet_weixin();
    if (wallet_weixin != null) {
        stmt.bindString(5, wallet_weixin);
    }
 
    String wallet_qq = entity.getWallet_qq();
    if (wallet_qq != null) {
        stmt.bindString(6, wallet_qq);
    }
 
    String wallet_main_account = entity.getWallet_main_account();
    if (wallet_main_account != null) {
        stmt.bindString(7, wallet_main_account);
    }
 
    String wallet_main_account_img = entity.getWallet_main_account_img();
    if (wallet_main_account_img != null) {
        stmt.bindString(8, wallet_main_account_img);
    }
 
    String wallet_phone = entity.getWallet_phone();
    if (wallet_phone != null) {
        stmt.bindString(9, wallet_phone);
    }
 
    String wallet_shapwd = entity.getWallet_shapwd();
    if (wallet_shapwd != null) {
        stmt.bindString(10, wallet_shapwd);
    }
 
    String password_check = entity.getPassword_check();
    if (password_check != null) {
        stmt.bindString(11, password_check);
    }
 
    String account_info = entity.getAccount_info();
    if (account_info != null) {
        stmt.bindString(12, account_info);
    }
}
 
Example 19
Source File: LocalRepoDao.java    From OpenHub with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, LocalRepo 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);
    }
}
 
Example 20
Source File: SearchBookBeanDao.java    From HaoReader with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected final void bindValues(DatabaseStatement stmt, SearchBookBean entity) {
    stmt.clearBindings();
 
    String noteUrl = entity.getNoteUrl();
    if (noteUrl != null) {
        stmt.bindString(1, noteUrl);
    }
 
    String coverUrl = entity.getCoverUrl();
    if (coverUrl != null) {
        stmt.bindString(2, coverUrl);
    }
 
    String name = entity.getName();
    if (name != null) {
        stmt.bindString(3, name);
    }
 
    String author = entity.getAuthor();
    if (author != null) {
        stmt.bindString(4, author);
    }
 
    String tag = entity.getTag();
    if (tag != null) {
        stmt.bindString(5, tag);
    }
 
    String kind = entity.getKind();
    if (kind != null) {
        stmt.bindString(6, kind);
    }
 
    String origin = entity.getOrigin();
    if (origin != null) {
        stmt.bindString(7, origin);
    }
 
    String lastChapter = entity.getLastChapter();
    if (lastChapter != null) {
        stmt.bindString(8, lastChapter);
    }
 
    String introduce = entity.getIntroduce();
    if (introduce != null) {
        stmt.bindString(9, introduce);
    }
 
    String bookType = entity.getBookType();
    if (bookType != null) {
        stmt.bindString(10, bookType);
    }
 
    String variableString = entity.getVariableString();
    if (variableString != null) {
        stmt.bindString(11, variableString);
    }
}