本文整理匯總了Java中de.greenrobot.dao.query.QueryBuilder.build方法的典型用法代碼示例。如果您正苦於以下問題:Java QueryBuilder.build方法的具體用法?Java QueryBuilder.build怎麽用?Java QueryBuilder.build使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類de.greenrobot.dao.query.QueryBuilder
的用法示例。
在下文中一共展示了QueryBuilder.build方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: _queryBThread_Messages
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例2: _queryBUser_BLinkedAccounts
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例3: _queryBUser_ContactLinks
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例4: _queryBUser_UserThreadLinks
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例5: _queryBThread_UserThreadLinks
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例6: _queryBUser_FollowerLinks
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例7: _queryOperators_AlloperatorsList
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例8: _queryCategory_Challenges
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例9: _queryUser_Completions
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例10: _queryUser_Statistics
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例11: _queryChallenge_Answers
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例12: _queryArticleType_Articles
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例13: _queryMeal_Items
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例14: _queryDailyMeal_Meals
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}
示例15: _queryTrack_TrackPoints
import de.greenrobot.dao.query.QueryBuilder; //導入方法依賴的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();
}