當前位置: 首頁>>代碼示例>>Java>>正文


Java DatabaseStatement.bindString方法代碼示例

本文整理匯總了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());
}
 
開發者ID:weixianshishen,項目名稱:LookWeather,代碼行數:21,代碼來源:CountyDao.java

示例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);
    }
}
 
開發者ID:guxiaonian,項目名稱:MeiLa_GNN,代碼行數:20,代碼來源:UserDao.java

示例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());
    }
}
 
開發者ID:ThirtyDegreesRay,項目名稱:OpenHub,代碼行數:22,代碼來源:BookmarkDao.java

示例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);
    }
}
 
開發者ID:elimu-ai,項目名稱:authentication,代碼行數:18,代碼來源:StudentImageCollectionEventDao.java

示例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);
    }
}
 
開發者ID:CooLoongWu,項目名稱:CoolChat,代碼行數:26,代碼來源:GroupDao.java

示例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());
    }
}
 
開發者ID:byhieg,項目名稱:easyweather,代碼行數:25,代碼來源:WeatherEntityDao.java

示例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()));
}
 
開發者ID:elimu-ai,項目名稱:appstore,代碼行數:23,代碼來源:ApplicationDao.java

示例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);
    }
}
 
開發者ID:elimu-ai,項目名稱:authentication,代碼行數:24,代碼來源:NumberDao.java

示例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());
}
 
開發者ID:starmelon,項目名稱:lovelife,代碼行數:21,代碼來源:CollectionDao.java

示例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);
    }
}
 
開發者ID:byhieg,項目名稱:easyweather,代碼行數:20,代碼來源:CityEntityDao.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);
    }
}
 
開發者ID:touchlab,項目名稱:android-orm-benchmark-updated,代碼行數:20,代碼來源:UserDao.java

示例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());
}
 
開發者ID:touchlab,項目名稱:android-orm-benchmark-updated,代碼行數:21,代碼來源:MessageDao.java

示例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);
    }
}
 
開發者ID:frc2052,項目名稱:FRC-Krawler,代碼行數:25,代碼來源:TeamDao.java

示例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);
    }
}
 
開發者ID:frc2052,項目名稱:FRC-Krawler,代碼行數:25,代碼來源:MatchDatumDao.java


注:本文中的org.greenrobot.greendao.database.DatabaseStatement.bindString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。