本文整理匯總了Java中org.greenrobot.greendao.database.DatabaseStatement.bindString方法的典型用法代碼示例。如果您正苦於以下問題:Java DatabaseStatement.bindString方法的具體用法?Java DatabaseStatement.bindString怎麽用?Java DatabaseStatement.bindString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.greenrobot.greendao.database.DatabaseStatement
的用法示例。
在下文中一共展示了DatabaseStatement.bindString方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, County entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String countyName = entity.getCountyName();
if (countyName != null) {
stmt.bindString(2, countyName);
}
String weatherId = entity.getWeatherId();
if (weatherId != null) {
stmt.bindString(3, weatherId);
}
stmt.bindLong(4, entity.getCityId());
}
示例2: 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);
}
}
示例3: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@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());
}
}
示例4: 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);
}
}
示例5: 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
示例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, WeatherEntity 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);
}
byte[] weather = entity.getWeather();
if (weather != null) {
stmt.bindBlob(3, weather);
}
java.util.Date updateTime = entity.getUpdateTime();
if (updateTime != null) {
stmt.bindLong(4, updateTime.getTime());
}
}
示例8: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, Application entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
stmt.bindString(2, localeConverter.convertToDatabaseValue(entity.getLocale()));
stmt.bindString(3, entity.getPackageName());
Set literacySkills = entity.getLiteracySkills();
if (literacySkills != null) {
stmt.bindString(4, literacySkillsConverter.convertToDatabaseValue(literacySkills));
}
Set numeracySkills = entity.getNumeracySkills();
if (numeracySkills != null) {
stmt.bindString(5, numeracySkillsConverter.convertToDatabaseValue(numeracySkills));
}
stmt.bindString(6, applicationStatusConverter.convertToDatabaseValue(entity.getApplicationStatus()));
}
示例9: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, Number 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.bindLong(6, entity.getValue());
String symbol = entity.getSymbol();
if (symbol != null) {
stmt.bindString(7, symbol);
}
}
示例10: bindValues
import org.greenrobot.greendao.database.DatabaseStatement; //導入方法依賴的package包/類
@Override
protected final void bindValues(DatabaseStatement stmt, Collection entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
String newsid = entity.getNewsid();
if (newsid != null) {
stmt.bindString(2, newsid);
}
String title = entity.getTitle();
if (title != null) {
stmt.bindString(3, title);
}
stmt.bindLong(4, entity.getTime());
}
示例11: 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);
}
}
示例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);
}
}