本文整理匯總了Java中org.greenrobot.greendao.database.DatabaseStatement.clearBindings方法的典型用法代碼示例。如果您正苦於以下問題:Java DatabaseStatement.clearBindings方法的具體用法?Java DatabaseStatement.clearBindings怎麽用?Java DatabaseStatement.clearBindings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.greenrobot.greendao.database.DatabaseStatement
的用法示例。
在下文中一共展示了DatabaseStatement.clearBindings方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: 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);
}
}
示例2: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, LocalUser entity) {
stmt.clearBindings();
stmt.bindString(1, entity.getLogin());
String name = entity.getName();
if (name != null) {
stmt.bindString(2, name);
}
String avatarUrl = entity.getAvatarUrl();
if (avatarUrl != null) {
stmt.bindString(3, avatarUrl);
}
Integer followers = entity.getFollowers();
if (followers != null) {
stmt.bindLong(4, followers);
}
Integer following = entity.getFollowing();
if (following != null) {
stmt.bindLong(5, following);
}
}
示例3: 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());
}
示例4: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, DbPowerLevelSensor entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
Float percent = entity.getPercent();
if (percent != null) {
stmt.bindDouble(2, percent);
}
stmt.bindString(3, entity.getCreated());
Long deviceId = entity.getDeviceId();
if (deviceId != null) {
stmt.bindLong(4, deviceId);
}
}
開發者ID:Telecooperation,項目名稱:assistance-platform-client-sdk-android,代碼行數:21,代碼來源:DbPowerLevelSensorDao.java
示例5: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, DbRingtoneSensor entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
Integer mode = entity.getMode();
if (mode != null) {
stmt.bindLong(2, mode);
}
stmt.bindString(3, entity.getCreated());
Long deviceId = entity.getDeviceId();
if (deviceId != null) {
stmt.bindLong(4, deviceId);
}
}
開發者ID:Telecooperation,項目名稱:assistance-platform-client-sdk-android,代碼行數:21,代碼來源:DbRingtoneSensorDao.java
示例6: 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);
}
}
示例7: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, WordItem entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String word = entity.getWord();
if (word != null) {
stmt.bindString(2, word);
}
String desc = entity.getDesc();
if (desc != null) {
stmt.bindString(3, desc);
}
}
示例8: 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());
}
示例9: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@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);
}
}
示例10: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@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()));
}
示例11: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, DbAccountReaderSensor entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String types = entity.getTypes();
if (types != null) {
stmt.bindString(2, types);
}
stmt.bindString(3, entity.getCreated());
Long deviceId = entity.getDeviceId();
if (deviceId != null) {
stmt.bindLong(4, deviceId);
}
}
開發者ID:Telecooperation,項目名稱:assistance-platform-client-sdk-android,代碼行數:21,代碼來源:DbAccountReaderSensorDao.java
示例12: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, User entity) {
stmt.clearBindings();
String last_name = entity.getLast_name();
if (last_name != null) {
stmt.bindString(1, last_name);
}
String first_name = entity.getFirst_name();
if (first_name != null) {
stmt.bindString(2, first_name);
}
Long id = entity.getId();
if (id != null) {
stmt.bindLong(3, id);
}
}
示例13: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, Message entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String content = entity.getContent();
if (content != null) {
stmt.bindString(2, content);
}
stmt.bindLong(3, entity.getClient_id());
stmt.bindLong(4, entity.getCreated_at());
stmt.bindDouble(5, entity.getSorted_by());
stmt.bindLong(6, entity.getCommand_id());
stmt.bindLong(7, entity.getSender_id());
stmt.bindLong(8, entity.getChannel_id());
}
示例14: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, Team entity) {
stmt.clearBindings();
Long number = entity.getNumber();
if (number != null) {
stmt.bindLong(1, number);
}
String teamkey = entity.getTeamkey();
if (teamkey != null) {
stmt.bindString(2, teamkey);
}
String name = entity.getName();
if (name != null) {
stmt.bindString(3, name);
}
String data = entity.getData();
if (data != null) {
stmt.bindString(4, data);
}
}
示例15: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, MatchDatum entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
stmt.bindLong(2, entity.getEvent_id());
stmt.bindLong(3, entity.getRobot_id());
stmt.bindLong(4, entity.getMetric_id());
stmt.bindLong(5, entity.getMatch_type());
stmt.bindLong(6, entity.getMatch_number());
java.util.Date last_updated = entity.getLast_updated();
if (last_updated != null) {
stmt.bindLong(7, last_updated.getTime());
}
String data = entity.getData();
if (data != null) {
stmt.bindString(8, data);
}
}