Java Code Examples for org.greenrobot.greendao.query.QueryBuilder#build()
The following examples show how to use
org.greenrobot.greendao.query.QueryBuilder#build() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LetterDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "letters" to-many relationship of Video. */ public List<Letter> _queryVideo_Letters(long videoId) { synchronized (this) { if (video_LettersQuery == null) { QueryBuilder<Letter> queryBuilder = queryBuilder(); queryBuilder.join(JoinVideosWithLetters.class, JoinVideosWithLettersDao.Properties.LetterId) .where(JoinVideosWithLettersDao.Properties.VideoId.eq(videoId)); video_LettersQuery = queryBuilder.build(); } } Query<Letter> query = video_LettersQuery.forCurrentThread(); query.setParameter(0, videoId); return query.list(); }
Example 2
Source File: UserDao.java From android-orm-benchmark-updated with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "readers" to-many relationship of Message. */ public List<User> _queryMessage_Readers(Long id) { synchronized (this) { if (message_ReadersQuery == null) { QueryBuilder<User> queryBuilder = queryBuilder(); queryBuilder.where(Properties.Id.eq(null)); message_ReadersQuery = queryBuilder.build(); } } Query<User> query = message_ReadersQuery.forCurrentThread(); query.setParameter(0, id); return query.list(); }
Example 3
Source File: NumberDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "numbers" to-many relationship of Image. */ public List<Number> _queryImage_Numbers(long imageId) { synchronized (this) { if (image_NumbersQuery == null) { QueryBuilder<Number> queryBuilder = queryBuilder(); queryBuilder.join(JoinImagesWithNumbers.class, JoinImagesWithNumbersDao.Properties.NumberId) .where(JoinImagesWithNumbersDao.Properties.ImageId.eq(imageId)); image_NumbersQuery = queryBuilder.build(); } } Query<Number> query = image_NumbersQuery.forCurrentThread(); query.setParameter(0, imageId); return query.list(); }
Example 4
Source File: PlanTemplateRepository.java From friendly-plans with GNU General Public License v3.0 | 5 votes |
public List<TaskTemplate> getTaskWithThisPlanByTypeId(Long planId, Integer typeId) { QueryBuilder<TaskTemplate> queryBuilder = daoSession.getTaskTemplateDao().queryBuilder(); queryBuilder.where(TaskTemplateDao.Properties.TypeId.eq(typeId)) .join(PlanTaskTemplate.class, PlanTaskTemplateDao.Properties.TaskTemplateId) .where(PlanTaskTemplateDao.Properties.PlanTemplateId.eq(planId)); Query<TaskTemplate> getTaskWithThisPlanByTypeIdQuery = queryBuilder.build(); return getTaskWithThisPlanByTypeIdQuery.list(); }
Example 5
Source File: WordDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "words" to-many relationship of Number. */ public List<Word> _queryNumber_Words(long numberId) { synchronized (this) { if (number_WordsQuery == null) { QueryBuilder<Word> queryBuilder = queryBuilder(); queryBuilder.join(JoinNumbersWithWords.class, JoinNumbersWithWordsDao.Properties.WordId) .where(JoinNumbersWithWordsDao.Properties.NumberId.eq(numberId)); number_WordsQuery = queryBuilder.build(); } } Query<Word> query = number_WordsQuery.forCurrentThread(); query.setParameter(0, numberId); return query.list(); }
Example 6
Source File: NumberDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "numbers" to-many relationship of Image. */ public List<Number> _queryImage_Numbers(long imageId) { synchronized (this) { if (image_NumbersQuery == null) { QueryBuilder<Number> queryBuilder = queryBuilder(); queryBuilder.join(JoinImagesWithNumbers.class, JoinImagesWithNumbersDao.Properties.NumberId) .where(JoinImagesWithNumbersDao.Properties.ImageId.eq(imageId)); image_NumbersQuery = queryBuilder.build(); } } Query<Number> query = image_NumbersQuery.forCurrentThread(); query.setParameter(0, imageId); return query.list(); }
Example 7
Source File: LetterDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "letters" to-many relationship of Image. */ public List<Letter> _queryImage_Letters(long imageId) { synchronized (this) { if (image_LettersQuery == null) { QueryBuilder<Letter> queryBuilder = queryBuilder(); queryBuilder.join(JoinImagesWithLetters.class, JoinImagesWithLettersDao.Properties.LetterId) .where(JoinImagesWithLettersDao.Properties.ImageId.eq(imageId)); image_LettersQuery = queryBuilder.build(); } } Query<Letter> query = image_LettersQuery.forCurrentThread(); query.setParameter(0, imageId); return query.list(); }
Example 8
Source File: StudentImageDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "studentImages" to-many relationship of StudentImageCollectionEvent. */ public List<StudentImage> _queryStudentImageCollectionEvent_StudentImages(long studentImageCollectionEventId) { synchronized (this) { if (studentImageCollectionEvent_StudentImagesQuery == null) { QueryBuilder<StudentImage> queryBuilder = queryBuilder(); queryBuilder.where(Properties.StudentImageCollectionEventId.eq(null)); studentImageCollectionEvent_StudentImagesQuery = queryBuilder.build(); } } Query<StudentImage> query = studentImageCollectionEvent_StudentImagesQuery.forCurrentThread(); query.setParameter(0, studentImageCollectionEventId); return query.list(); }
Example 9
Source File: AllophoneDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "allophones" to-many relationship of Letter. */ public List<Allophone> _queryLetter_Allophones(long letterId) { synchronized (this) { if (letter_AllophonesQuery == null) { QueryBuilder<Allophone> queryBuilder = queryBuilder(); queryBuilder.join(JoinLettersWithAllophones.class, JoinLettersWithAllophonesDao.Properties.AllophoneId) .where(JoinLettersWithAllophonesDao.Properties.LetterId.eq(letterId)); letter_AllophonesQuery = queryBuilder.build(); } } Query<Allophone> query = letter_AllophonesQuery.forCurrentThread(); query.setParameter(0, letterId); return query.list(); }
Example 10
Source File: DeviceDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "devices" to-many relationship of Student. */ public List<Device> _queryStudent_Devices(long studentId) { synchronized (this) { if (student_DevicesQuery == null) { QueryBuilder<Device> queryBuilder = queryBuilder(); queryBuilder.join(JoinStudentsWithDevices.class, JoinStudentsWithDevicesDao.Properties.DeviceId) .where(JoinStudentsWithDevicesDao.Properties.StudentId.eq(studentId)); student_DevicesQuery = queryBuilder.build(); } } Query<Device> query = student_DevicesQuery.forCurrentThread(); query.setParameter(0, studentId); return query.list(); }
Example 11
Source File: PictureDao.java From Pretty-Zhihu with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "pictures" to-many relationship of Question. */ public List<Picture> _queryQuestion_Pictures(int questionId) { synchronized (this) { if (question_PicturesQuery == null) { QueryBuilder<Picture> queryBuilder = queryBuilder(); queryBuilder.where(Properties.QuestionId.eq(null)); question_PicturesQuery = queryBuilder.build(); } } Query<Picture> query = question_PicturesQuery.forCurrentThread(); query.setParameter(0, questionId); return query.list(); }
Example 12
Source File: DeviceDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "devices" to-many relationship of Student. */ public List<Device> _queryStudent_Devices(long studentId) { synchronized (this) { if (student_DevicesQuery == null) { QueryBuilder<Device> queryBuilder = queryBuilder(); queryBuilder.join(JoinStudentsWithDevices.class, JoinStudentsWithDevicesDao.Properties.DeviceId) .where(JoinStudentsWithDevicesDao.Properties.StudentId.eq(studentId)); student_DevicesQuery = queryBuilder.build(); } } Query<Device> query = student_DevicesQuery.forCurrentThread(); query.setParameter(0, studentId); return query.list(); }
Example 13
Source File: NumberDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "numbers" to-many relationship of Video. */ public List<Number> _queryVideo_Numbers(long videoId) { synchronized (this) { if (video_NumbersQuery == null) { QueryBuilder<Number> queryBuilder = queryBuilder(); queryBuilder.join(JoinVideosWithNumbers.class, JoinVideosWithNumbersDao.Properties.NumberId) .where(JoinVideosWithNumbersDao.Properties.VideoId.eq(videoId)); video_NumbersQuery = queryBuilder.build(); } } Query<Number> query = video_NumbersQuery.forCurrentThread(); query.setParameter(0, videoId); return query.list(); }
Example 14
Source File: WordDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "words" to-many relationship of Number. */ public List<Word> _queryNumber_Words(long numberId) { synchronized (this) { if (number_WordsQuery == null) { QueryBuilder<Word> queryBuilder = queryBuilder(); queryBuilder.join(JoinNumbersWithWords.class, JoinNumbersWithWordsDao.Properties.WordId) .where(JoinNumbersWithWordsDao.Properties.NumberId.eq(numberId)); number_WordsQuery = queryBuilder.build(); } } Query<Word> query = number_WordsQuery.forCurrentThread(); query.setParameter(0, numberId); return query.list(); }
Example 15
Source File: WordDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "words" to-many relationship of Video. */ public List<Word> _queryVideo_Words(long videoId) { synchronized (this) { if (video_WordsQuery == null) { QueryBuilder<Word> queryBuilder = queryBuilder(); queryBuilder.join(JoinVideosWithWords.class, JoinVideosWithWordsDao.Properties.WordId) .where(JoinVideosWithWordsDao.Properties.VideoId.eq(videoId)); video_WordsQuery = queryBuilder.build(); } } Query<Word> query = video_WordsQuery.forCurrentThread(); query.setParameter(0, videoId); return query.list(); }
Example 16
Source File: NumberDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "numbers" to-many relationship of Audio. */ public List<Number> _queryAudio_Numbers(long audioId) { synchronized (this) { if (audio_NumbersQuery == null) { QueryBuilder<Number> queryBuilder = queryBuilder(); queryBuilder.join(JoinAudiosWithNumbers.class, JoinAudiosWithNumbersDao.Properties.NumberId) .where(JoinAudiosWithNumbersDao.Properties.AudioId.eq(audioId)); audio_NumbersQuery = queryBuilder.build(); } } Query<Number> query = audio_NumbersQuery.forCurrentThread(); query.setParameter(0, audioId); return query.list(); }
Example 17
Source File: StudentImageDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "studentImages" to-many relationship of StudentImageCollectionEvent. */ public List<StudentImage> _queryStudentImageCollectionEvent_StudentImages(long studentImageCollectionEventId) { synchronized (this) { if (studentImageCollectionEvent_StudentImagesQuery == null) { QueryBuilder<StudentImage> queryBuilder = queryBuilder(); queryBuilder.where(Properties.StudentImageCollectionEventId.eq(null)); studentImageCollectionEvent_StudentImagesQuery = queryBuilder.build(); } } Query<StudentImage> query = studentImageCollectionEvent_StudentImagesQuery.forCurrentThread(); query.setParameter(0, studentImageCollectionEventId); return query.list(); }
Example 18
Source File: LetterDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "letters" to-many relationship of Audio. */ public List<Letter> _queryAudio_Letters(long audioId) { synchronized (this) { if (audio_LettersQuery == null) { QueryBuilder<Letter> queryBuilder = queryBuilder(); queryBuilder.join(JoinAudiosWithLetters.class, JoinAudiosWithLettersDao.Properties.LetterId) .where(JoinAudiosWithLettersDao.Properties.AudioId.eq(audioId)); audio_LettersQuery = queryBuilder.build(); } } Query<Letter> query = audio_LettersQuery.forCurrentThread(); query.setParameter(0, audioId); return query.list(); }
Example 19
Source File: PlayBeanDao.java From likequanmintv with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "list" to-many relationship of LiveCategory. */ public List<PlayBean> _queryLiveCategory_List(Long livecategory_id) { synchronized (this) { if (liveCategory_ListQuery == null) { QueryBuilder<PlayBean> queryBuilder = queryBuilder(); queryBuilder.where(Properties.Livecategory_id.eq(null)); liveCategory_ListQuery = queryBuilder.build(); } } Query<PlayBean> query = liveCategory_ListQuery.forCurrentThread(); query.setParameter(0, livecategory_id); return query.list(); }
Example 20
Source File: WordDao.java From ml-authentication with Apache License 2.0 | 5 votes |
/** Internal query to resolve the "words" to-many relationship of Video. */ public List<Word> _queryVideo_Words(long videoId) { synchronized (this) { if (video_WordsQuery == null) { QueryBuilder<Word> queryBuilder = queryBuilder(); queryBuilder.join(JoinVideosWithWords.class, JoinVideosWithWordsDao.Properties.WordId) .where(JoinVideosWithWordsDao.Properties.VideoId.eq(videoId)); video_WordsQuery = queryBuilder.build(); } } Query<Word> query = video_WordsQuery.forCurrentThread(); query.setParameter(0, videoId); return query.list(); }