当前位置: 首页>>代码示例>>Java>>正文


Java Query.setParameter方法代码示例

本文整理汇总了Java中de.greenrobot.dao.query.Query.setParameter方法的典型用法代码示例。如果您正苦于以下问题:Java Query.setParameter方法的具体用法?Java Query.setParameter怎么用?Java Query.setParameter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在de.greenrobot.dao.query.Query的用法示例。


在下文中一共展示了Query.setParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: _queryBThread_Messages

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "messages" to-many relationship of BThread. */
public List<BMessage> _queryBThread_Messages(Long threadDaoId) {
    synchronized (this) {
        if (bThread_MessagesQuery == null) {
            QueryBuilder<BMessage> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.ThreadDaoId.eq(null));
            bThread_MessagesQuery = queryBuilder.build();
        }
    }
    Query<BMessage> query = bThread_MessagesQuery.forCurrentThread();
    query.setParameter(0, threadDaoId);
    return query.list();
}
 
开发者ID:MobileDev418,项目名称:AndroidBackendlessChat,代码行数:14,代码来源:BMessageDao.java

示例2: _queryBUser_BLinkedAccounts

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "BLinkedAccounts" to-many relationship of BUser. */
public List<BLinkedAccount> _queryBUser_BLinkedAccounts(Long BUserDaoId) {
    synchronized (this) {
        if (bUser_BLinkedAccountsQuery == null) {
            QueryBuilder<BLinkedAccount> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.BUserDaoId.eq(null));
            bUser_BLinkedAccountsQuery = queryBuilder.build();
        }
    }
    Query<BLinkedAccount> query = bUser_BLinkedAccountsQuery.forCurrentThread();
    query.setParameter(0, BUserDaoId);
    return query.list();
}
 
开发者ID:MobileDev418,项目名称:AndroidBackendlessChat,代码行数:14,代码来源:BLinkedAccountDao.java

示例3: _queryBUser_ContactLinks

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "contactLinks" to-many relationship of BUser. */
public List<ContactLink> _queryBUser_ContactLinks(Long BUserDaoId) {
    synchronized (this) {
        if (bUser_ContactLinksQuery == null) {
            QueryBuilder<ContactLink> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.BUserDaoId.eq(null));
            bUser_ContactLinksQuery = queryBuilder.build();
        }
    }
    Query<ContactLink> query = bUser_ContactLinksQuery.forCurrentThread();
    query.setParameter(0, BUserDaoId);
    return query.list();
}
 
开发者ID:MobileDev418,项目名称:AndroidBackendlessChat,代码行数:14,代码来源:ContactLinkDao.java

示例4: _queryBUser_UserThreadLinks

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "userThreadLinks" to-many relationship of BUser. */
public List<UserThreadLink> _queryBUser_UserThreadLinks(Long BUserDaoId) {
    synchronized (this) {
        if (bUser_UserThreadLinksQuery == null) {
            QueryBuilder<UserThreadLink> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.BUserDaoId.eq(null));
            bUser_UserThreadLinksQuery = queryBuilder.build();
        }
    }
    Query<UserThreadLink> query = bUser_UserThreadLinksQuery.forCurrentThread();
    query.setParameter(0, BUserDaoId);
    return query.list();
}
 
开发者ID:MobileDev418,项目名称:AndroidBackendlessChat,代码行数:14,代码来源:UserThreadLinkDao.java

示例5: _queryBThread_UserThreadLinks

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "userThreadLinks" to-many relationship of BThread. */
public List<UserThreadLink> _queryBThread_UserThreadLinks(Long BThreadDaoId) {
    synchronized (this) {
        if (bThread_UserThreadLinksQuery == null) {
            QueryBuilder<UserThreadLink> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.BThreadDaoId.eq(null));
            bThread_UserThreadLinksQuery = queryBuilder.build();
        }
    }
    Query<UserThreadLink> query = bThread_UserThreadLinksQuery.forCurrentThread();
    query.setParameter(0, BThreadDaoId);
    return query.list();
}
 
开发者ID:MobileDev418,项目名称:AndroidBackendlessChat,代码行数:14,代码来源:UserThreadLinkDao.java

示例6: _queryBUser_FollowerLinks

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "followerLinks" to-many relationship of BUser. */
public List<FollowerLink> _queryBUser_FollowerLinks(Long BUserDaoId) {
    synchronized (this) {
        if (bUser_FollowerLinksQuery == null) {
            QueryBuilder<FollowerLink> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.BUserDaoId.eq(null));
            bUser_FollowerLinksQuery = queryBuilder.build();
        }
    }
    Query<FollowerLink> query = bUser_FollowerLinksQuery.forCurrentThread();
    query.setParameter(0, BUserDaoId);
    return query.list();
}
 
开发者ID:MobileDev418,项目名称:AndroidBackendlessChat,代码行数:14,代码来源:FollowerLinkDao.java

示例7: _queryOperators_AlloperatorsList

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "alloperatorsList" to-many relationship of operators. */
public List<alloperators> _queryOperators_AlloperatorsList(Long outer_id) {
    synchronized (this) {
        if (operators_AlloperatorsListQuery == null) {
            QueryBuilder<alloperators> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.Outer_id.eq(null));
            operators_AlloperatorsListQuery = queryBuilder.build();
        }
    }
    Query<alloperators> query = operators_AlloperatorsListQuery.forCurrentThread();
    query.setParameter(0, outer_id);
    return query.list();
}
 
开发者ID:cowthan,项目名称:AyoRxJava,代码行数:14,代码来源:alloperatorsDao.java

示例8: _queryCategory_Challenges

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "challenges" to-many relationship of Category. */
public List<Challenge> _queryCategory_Challenges(long categoryId) {
    synchronized (this) {
        if (category_ChallengesQuery == null) {
            QueryBuilder<Challenge> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.CategoryId.eq(null));
            category_ChallengesQuery = queryBuilder.build();
        }
    }
    Query<Challenge> query = category_ChallengesQuery.forCurrentThread();
    query.setParameter(0, categoryId);
    return query.list();
}
 
开发者ID:Kamshak,项目名称:BrainPhaser,代码行数:14,代码来源:ChallengeDao.java

示例9: _queryUser_Completions

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "completions" to-many relationship of User. */
public List<Completion> _queryUser_Completions(long userId) {
    synchronized (this) {
        if (user_CompletionsQuery == null) {
            QueryBuilder<Completion> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.UserId.eq(null));
            user_CompletionsQuery = queryBuilder.build();
        }
    }
    Query<Completion> query = user_CompletionsQuery.forCurrentThread();
    query.setParameter(0, userId);
    return query.list();
}
 
开发者ID:Kamshak,项目名称:BrainPhaser,代码行数:14,代码来源:CompletionDao.java

示例10: _queryUser_Statistics

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "statistics" to-many relationship of User. */
public List<Statistics> _queryUser_Statistics(long userId) {
    synchronized (this) {
        if (user_StatisticsQuery == null) {
            QueryBuilder<Statistics> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.UserId.eq(null));
            user_StatisticsQuery = queryBuilder.build();
        }
    }
    Query<Statistics> query = user_StatisticsQuery.forCurrentThread();
    query.setParameter(0, userId);
    return query.list();
}
 
开发者ID:Kamshak,项目名称:BrainPhaser,代码行数:14,代码来源:StatisticsDao.java

示例11: _queryChallenge_Answers

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "answers" to-many relationship of Challenge. */
public List<Answer> _queryChallenge_Answers(long challengeId) {
    synchronized (this) {
        if (challenge_AnswersQuery == null) {
            QueryBuilder<Answer> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.ChallengeId.eq(null));
            challenge_AnswersQuery = queryBuilder.build();
        }
    }
    Query<Answer> query = challenge_AnswersQuery.forCurrentThread();
    query.setParameter(0, challengeId);
    return query.list();
}
 
开发者ID:Kamshak,项目名称:BrainPhaser,代码行数:14,代码来源:AnswerDao.java

示例12: _queryArticleType_Articles

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "articles" to-many relationship of ArticleType. */
public List<ArticleItemCache> _queryArticleType_Articles(Long typeId) {
    synchronized (this) {
        if (articleType_ArticlesQuery == null) {
            QueryBuilder<ArticleItemCache> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.TypeId.eq(null));
            articleType_ArticlesQuery = queryBuilder.build();
        }
    }
    Query<ArticleItemCache> query = articleType_ArticlesQuery.forCurrentThread();
    query.setParameter(0, typeId);
    return query.list();
}
 
开发者ID:Thereisnospon,项目名称:BlogReader,代码行数:14,代码来源:ArticleItemCacheDao.java

示例13: _queryMeal_Items

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "items" to-many relationship of Meal. */
public List<MealItem> _queryMeal_Items(long mealId) {
    synchronized (this) {
        if (meal_ItemsQuery == null) {
            QueryBuilder<MealItem> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.MealId.eq(null));
            queryBuilder.orderRaw("T.'_id' DESC");
            meal_ItemsQuery = queryBuilder.build();
        }
    }
    Query<MealItem> query = meal_ItemsQuery.forCurrentThread();
    query.setParameter(0, mealId);
    return query.list();
}
 
开发者ID:olivierg13,项目名称:GreenDao-vs-Realm,代码行数:15,代码来源:MealItemDao.java

示例14: _queryDailyMeal_Meals

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "meals" to-many relationship of DailyMeal. */
public List<Meal> _queryDailyMeal_Meals(long eatenOn) {
    synchronized (this) {
        if (dailyMeal_MealsQuery == null) {
            QueryBuilder<Meal> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.EatenOn.eq(null));
            queryBuilder.orderRaw("T.'_id' DESC");
            dailyMeal_MealsQuery = queryBuilder.build();
        }
    }
    Query<Meal> query = dailyMeal_MealsQuery.forCurrentThread();
    query.setParameter(0, eatenOn);
    return query.list();
}
 
开发者ID:olivierg13,项目名称:GreenDao-vs-Realm,代码行数:15,代码来源:MealDao.java

示例15: _queryTrack_TrackPoints

import de.greenrobot.dao.query.Query; //导入方法依赖的package包/类
/** Internal query to resolve the "trackPoints" to-many relationship of Track. */
public List<TrackPoint> _queryTrack_TrackPoints(long trackId) {
    synchronized (this) {
        if (track_TrackPointsQuery == null) {
            QueryBuilder<TrackPoint> queryBuilder = queryBuilder();
            queryBuilder.where(Properties.TrackId.eq(null));
            queryBuilder.orderRaw("TIME ASC");
            track_TrackPointsQuery = queryBuilder.build();
        }
    }
    Query<TrackPoint> query = track_TrackPointsQuery.forCurrentThread();
    query.setParameter(0, trackId);
    return query.list();
}
 
开发者ID:jp1017,项目名称:TheSceneryAlong,代码行数:15,代码来源:TrackPointDao.java


注:本文中的de.greenrobot.dao.query.Query.setParameter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。