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


Java DatabaseStatement.clearBindings方法代碼示例

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

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

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

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

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

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

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

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

示例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);
    }
}
 
開發者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.clearBindings方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。