query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the number of vcms discussions where groupId = &63; and language = &63; and approved = &63;.
public int countByP_L_A(long groupId, java.lang.String language, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public int countByP_L(long groupId, java.lang.String language);", "long countByExample(DiscussExample example);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic int countByG_L_C(long groupId, String language, boolean categorizable) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_G_L_C;\n\n\t\tObject[] finderArgs = new Object[] { groupId, language, categorizable };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_COUNT_VCMSPORTION_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_C_GROUPID_2);\n\n\t\t\tboolean bindLanguage = false;\n\n\t\t\tif (language == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_1);\n\t\t\t}\n\t\t\telse if (language.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindLanguage = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_C_CATEGORIZABLE_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tif (bindLanguage) {\n\t\t\t\t\tqPos.add(language);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(categorizable);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic int countByG_L(long groupId, String language) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_G_L;\n\n\t\tObject[] finderArgs = new Object[] { groupId, language };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_VCMSPORTION_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_GROUPID_2);\n\n\t\t\tboolean bindLanguage = false;\n\n\t\t\tif (language == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_1);\n\t\t\t}\n\t\t\telse if (language.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindLanguage = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tif (bindLanguage) {\n\t\t\t\t\tqPos.add(language);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int commentsCount();", "public int getCountForum();", "int countSelective(MemberAdvisoryComment record);", "long countByExample(CmsChannelCriteria example);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "@Override\n\tpublic int getVideoCommentCount(long vid) {\n\t\treturn 0;\n\t}", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public int countByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "int countByExample(TopicFragmentExample example);", "int getMessageCount(@Nullable CompilerMessageCategory category);", "@Query(\"select count(r) from Reply r group by r.comment\")\n\tCollection<Double> dashboardRepliesPerComment();", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "int countByExample(CmsVoteTitleExample example);", "int getGroupCount();", "int countByExample(ProjGroupExample example);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);", "public java.util.List<VcmsDiscussion> findAll();", "long countWorkflows();", "public int countByapproval_status(java.lang.String approval_status);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);", "int getConceptLanguagesCount();", "int countByExample(MessageGroupExample example);", "public int countByGroupId(long groupId);", "public int countByGroupId(long groupId);", "public int getAmendmentCount(int paraId);", "public int countByG_UT(long groupId, String urlTitle);", "int countByExample(FeiWenCommentExample example);", "public int countByA_A(java.lang.String articleId, boolean approved);", "@Sql(\"SELECT count(m.id) FROM message m WHERE NOT CASEWHEN(m.user_id = 0, false, (SELECT iu.ignored FROM user iu WHERE iu.id = m.user_id)) AND (SELECT tc.ignored FROM topic_cache tc WHERE tc.topic_id = CASEWHEN(m.topic_id = 0, m.id, m.topic_id)) = false AND m.user_id <> m.parent_user_id AND m.parent_user_id = ? AND m.forum_id > 0\")\r\n int getUserReplies(int ownId) throws StorageException;", "long countByExample(GpPubgPlayerExample example);", "long countByExample(trackcommentExample example);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);", "int getVersionsCount();", "public long getPublicQuestionCount() {\n return Question.count(\"select count(q.id) from Question q, User u, Company c \" +\n \"where q.user = u and u.company = c and u.company = ? and q.status = ? and active = ?\",\n this, QuestionStatus.ACCEPTED, true);\n }", "int getGroupCountByStructureId(Integer structureId);", "public int filterCountByGroupId(long groupId);", "public int filterCountByGroupId(long groupId);", "@Override\n\tpublic int countByDrafts(String isDraft) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_DRAFTS;\n\n\t\tObject[] finderArgs = new Object[] { isDraft };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_LMSLEAVEINFORMATION_WHERE);\n\n\t\t\tboolean bindIsDraft = false;\n\n\t\t\tif (isDraft == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_1);\n\t\t\t}\n\t\t\telse if (isDraft.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindIsDraft = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindIsDraft) {\n\t\t\t\t\tqPos.add(isDraft);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int countByExample(ReviewLevelSettingExample example);", "int postsCount();", "public boolean hasMoreDiscussions();", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public int getNumberOfComments(ExoSocialActivity existingActivity);", "static long reviewCount(Context context) {\n SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context);\n return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW);\n }", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public int getPublishedModulesCounts(String buildName, String date) {\n ResultSet rs = null;\n String buildQuery = \"SELECT count(*) as cnt FROM build_modules\\n\" +\n \"left join builds on builds.build_id=build_modules.build_id \\n\" +\n \"where builds.build_number=? and builds.build_date=?\";\n try {\n rs = jdbcHelper.executeSelect(buildQuery,buildName,date);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "int getVulnerabilityReportsCount();", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "int getContentIdToEmbeddingTokensCount();", "int countByExample(GrpTagExample example);", "public int countByG_S(long groupId, int status);", "long getNumberOfComparisons();", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "int countByExample(SysTeamExample example);", "public int countBycourse_id(long course_id);", "public int getNumAnnouncements(){\n return message.length;\n }", "int countByExample(CommentLikeExample example);", "int countByExample(UserOperateProjectExample example);", "int countByExample(NewsInfoExample example);", "int getDetectionRulesCount();", "long countByExample(PrivateMessageExample example);", "public int getProblemCount();", "int getParticipantsCount();", "int getParticipantsCount();", "int getVotes(QuestionId questionId);", "int countByExample(WxNewsExample example);", "@Override\n\tpublic int getSubVideoCommentCount(long subVid) {\n\t\treturn 0;\n\t}", "int countByExample(NewsExample example);", "long countByExample(Question14Example example);", "int countByExample(PmPostExample example);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);", "long countByExample(CliStaffProjectExample example);", "long countByExample(CommentUserExample example);", "@ApiModelProperty(example = \"1\", value = \"The count of affected Channels across all products\")\n public Integer getAffectedChannelCount() {\n return affectedChannelCount;\n }", "Integer getProjectCount( String key ){\n return developer.projects.size();\n }", "Integer countAnswersByQuestionId(String questionId);", "long countByExample(LtsprojectpoExample example);", "long getTotalAcceptCount();", "int countByExample(UserGroupExample example);", "public int filterCountByG_S(long groupId, int status);", "public int getTotalMessageCount(){\n Query query = new Query(\"Message\");\n Query query2 = new Query(\"Question\");\n PreparedQuery results = datastore.prepare(query);\n PreparedQuery results2 = datastore.prepare(query2);\n return results.countEntities(FetchOptions.Builder.withLimit(1000)) + results2.countEntities(FetchOptions.Builder.withLimit(1000));\n}", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);", "public int getNumberOfActivitiesByPoster(Identity ownerIdentity, Identity viewerIdentity);", "int countByExample(ReleaseSystemExample example);", "int countByExample(UserTopicExample example);" ]
[ "0.64252514", "0.6392357", "0.6116654", "0.59838456", "0.57729894", "0.5699906", "0.5577047", "0.550571", "0.5465556", "0.5462422", "0.54526275", "0.5447459", "0.5356541", "0.53476787", "0.533488", "0.5307123", "0.52978873", "0.5291624", "0.5280013", "0.5227811", "0.5211831", "0.51895535", "0.51875705", "0.5134657", "0.5107662", "0.51028657", "0.5083173", "0.5081135", "0.50801206", "0.507026", "0.5022928", "0.50186753", "0.49904215", "0.49875385", "0.49777514", "0.49751696", "0.49638855", "0.49591237", "0.49591237", "0.4952901", "0.49469212", "0.4941362", "0.49370557", "0.49282253", "0.49239072", "0.49215525", "0.49121082", "0.4908502", "0.48964033", "0.4893759", "0.4884363", "0.4884363", "0.4883583", "0.48818457", "0.4877723", "0.48741376", "0.48729444", "0.48663896", "0.4862413", "0.48585573", "0.4849359", "0.48428768", "0.48388913", "0.48355672", "0.48351336", "0.4830334", "0.48279718", "0.4820949", "0.48209164", "0.48206982", "0.48201847", "0.48187277", "0.48020574", "0.47983342", "0.47945794", "0.47873974", "0.47865036", "0.47773722", "0.47773722", "0.4775189", "0.47709987", "0.4767107", "0.47560105", "0.4754853", "0.4750686", "0.4744317", "0.47440553", "0.47399634", "0.47394222", "0.47387448", "0.4728349", "0.47243434", "0.47178772", "0.47150457", "0.4712778", "0.47118673", "0.47078297", "0.47022003", "0.4699458", "0.46942073" ]
0.651985
0
Returns all the vcms discussions where articleId = &63; and groupId = &63; and language = &63; and approved = &63;.
public java.util.List<VcmsDiscussion> findByA_P_L_A( java.lang.String articleId, long groupId, java.lang.String language, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public java.util.List<VcmsDiscussion> findAll();", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Discussion[] getDiscussions() throws DAOException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Discussion[] getDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "Iterable<Comment> findByArticleId(int articleId);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "List<KnowledgeComment> selectAll();", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion create(java.lang.String discussionId);", "public boolean hasMoreDiscussions();", "List<Comment> getComments(long mediaId);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Discuss> selectByExample(DiscussExample example);", "public List<Forum> getListForumWithStatus(String viewStatus);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "List<Content> getContentListForApproval();", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public IDiscussionTopicList getAttachedDiscussionTopics()\n throws OculusException;", "public List<Course> findByTopicId(int topicId);", "public String getDiscussion(){\n return discussion;\n }", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public IDiscussionTopicList getAttachedDiscussionTopics(boolean edit)\n throws OculusException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<PreparedStatement> getMarkDiscussionReadStatements(String userId, String discussionId,String forumId,Connection conn) throws SQLException;", "List<Comments> selectAll();", "List<UserContent> findContent(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t\t\t @Param(\"contentLang\") UserContentLanguage contentLang,\n\t\t\t\t\t\t\t\t @Param(\"userId\") Integer userId,\n\t\t\t\t\t\t\t\t @Param(\"substituteUserDrafts\") boolean substituteUserDrafts);", "public String showAnnouncements() {\n String output = \"\";\n\n // Get\n List<Models.Announcement> fromInstitution = em.createNativeQuery(\"select a.* from announcement a, institution i, institutionparticipant ipa, participant p where a.institutioncode = i.institutioncode and i.institutioncode = ipa.institutioncode and ipa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromProgramme = em.createNativeQuery(\"select a.* from announcement a, programme pg, programmeparticipant ppa, participant p where a.programmecode = pg.programmecode and pg.programmecode = ppa.programmecode and ppa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromCourse = em.createNativeQuery(\"select a.* from announcement a, course c, courseparticipant cpa, participant p where a.coursecode = c.coursecode and c.coursecode = cpa.coursecode and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromClass = em.createNativeQuery(\"select a.* from announcement a, class c, classparticipant cpa, participant p where a.classid = c.classid and c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n\n return displayAnnouncements(fromInstitution, fromProgramme, fromCourse, fromClass);\n }", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public List<Comment> getAllComments(long messageId){\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\n\t\treturn new ArrayList<Comment>(comments.values());\n\t\t\n\t}", "List<CommunityInform> selectAll();", "List<Comment> findCommentsToLifeHack(long id) throws DaoException;", "public java.util.List<VcmsArticleType> findAll();", "private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user.getParseID());\n//\t\t\tq.whereContainedIn(\"sender\", al);\n//\t\t}\n//\t\telse {\n\t\t\t// load only newly received message..\n\t\t\tif (lastMsgDate != null)\n\t\t\t\t// Load only new messages, that weren't send by me\n\t\t\t\tq.whereGreaterThan(Const.COL_MESSAGE_CREATED_AT, lastMsgDate);\n\t\t\t\tq.whereNotEqualTo(Const.COL_MESSAGE_SENDER_ID, MainActivity.user.getParseID());\n\t\t}\n\t\tq.orderByDescending(Const.COL_MESSAGE_CREATED_AT);\n\t\tq.setLimit(100);\n\t\tq.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> li, ParseException e) {\n\t\t\t\tif (li != null && li.size() > 0) {\n\t\t\t\t\tfor (int i = li.size() - 1; i >= 0; i--) {\n\t\t\t\t\t\tParseObject po = li.get(i);\n\n\t\t\t\t\t\tMessage message = new Message(po.getString(\n\t\t\t\t\t\t\t\tConst.COL_MESSAGE_CONTENT),\n\t\t\t\t\t\t\t\tpo.getCreatedAt(),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_ID),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_NAME));\n\n\t\t\t\t\t\tmessage.setStatus(MessageStatus.STATUS_SENT);\n\t\t\t\t\t\tmessagesList.add(message);\n\n\t\t\t\t\t\tif (lastMsgDate == null || lastMsgDate.before(message.getDate())) {\n\t\t\t\t\t\t\tlastMsgDate = message.getDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (isRunning)\n\t\t\t\t\t\t\tloadConversationList();\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t});\n\n\t}", "public List<Object> getListForum();", "private List<String> getAllConnectionsFromComputedSimilarityThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfCS = new ArrayList<>();\n for (BlockPair blockPairsCS : blockPairs_computedSimilarity) {\n if (blockPairsCS.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfCS.add(blockPairsCS);\n }\n }\n\n // get all connections from computed similarity that are subject of investigation\n List<String> connectionsInCS = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfCS) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInCS.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n (blockPair.leftBlock.postBlock.getSucc() != null ? blockPair.leftBlock.postBlock.getSucc().getLocalId() : null)\n );\n }\n return connectionsInCS;\n }", "List<Comment> getCommentsOfProject(int projectId) throws SQLException;", "List<Article> selectAll();", "List<CmsChannel> selectByExample(CmsChannelCriteria example);", "@Override\n\tpublic List<Commune> getAllCommune(String districtId) {\n\t\tList<Commune> com = communeRepo.findAll();\n\t\tList<Commune> tmp = new ArrayList<Commune>();\n\t\tfor(Commune a: com) {\n\t\t\tif(a.getDistrict().getDistrictId().equals(districtId))\n\t\t\t\ttmp.add(a);\n\t\t}\n\t\treturn tmp;\n\t}", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "ImmutableList<SchemaOrgType> getDiscussionUrlList();", "public List<Course> getAllCourses(String topicId){\n\t\t//return courses;\n\t\tArrayList<Course> course = new ArrayList<>();\n\t\tcourseRepository.findByTopicId(topicId).forEach(course::add);\n\t\treturn course;\n\t}", "@Test\n public void testDiscussionAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureDiscussionPermissions(testUser, category, data);\n\n // test access control\n assertTrue(accessControlService.canViewDiscussions(topic), \"Test user should be able to view discussion in topic!\");\n assertTrue(accessControlService.canAddDiscussion(topic), \"Test user should be able to create discussion in topic!\");\n assertFalse(accessControlService.canEditDiscussion(discussion), \"Test user should not be able to edit discussion in topic!\");\n assertFalse(accessControlService.canRemoveDiscussion(discussion), \"Test user should not be able to remove discussion from topic!\");\n }", "@Override\r\n\tpublic List<ManageNursingContentVO> selectByExampleAndProject(\r\n\t\t\tString nursingNurseid) throws Exception {\n\t\treturn mContentMapper.selectByExampleAndProject(nursingNurseid);\r\n\t}", "public void getCommnentList() {\n String urlData = \"\";\n HashMap<String, String> param = new HashMap<String, String>();\n param.put(\"max\", \"\" + MyApplication.Max_post_per_page);\n param.put(\"page\", \"0\");\n if (PostType.equalsIgnoreCase(\"ads\")) {\n urlData = \"ads/\" + postId + \"/get-comments\";\n } else {\n urlData = \"feeds/\" + postId + \"/get-comments\";\n }\n APIHandler.Instance().POST_BY_AUTHEN(urlData, param, new APIHandler.RequestComplete() {\n @Override\n public void onRequestComplete(final int code, final String response) {\n LiveVideoPlayerActivity.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n try {\n JSONObject mJsonObject = new JSONObject(response);\n int codeServer = mJsonObject.getInt(\"code\");\n if (codeServer == 1) {\n JSONArray msg = mJsonObject.getJSONArray(\"msg\");\n for (int index = 0; index < msg.length(); index++) {\n JSONObject mObject = msg.getJSONObject(index);\n CommentList mCategoryList = new CommentList();\n mCategoryList.setID(mObject.getString(\"ID\"));\n mCategoryList.setCreatedAt(mObject.getString(\"CreatedAt\"));\n mCategoryList.setUserId(mObject.getString(\"UserId\"));\n mCategoryList.setPostId(mObject.getString(\"PostId\"));\n mCategoryList.setContent(mObject.getString(\"Content\"));\n mCategoryList.setUserNmae(mObject.getString(\"UserName\"));\n mCategoryList.setUserPic(mObject.getString(\"AvatarUrl\"));\n mCommentslistAdapter.addnewItem(mCategoryList);\n\n }\n }\n\n } catch (Exception e) {\n PopupAPI.make(mContext, \"Error\", \"Can't connect to server\");\n\n }\n\n }\n });\n\n\n }\n });\n\n }", "@Override\n\tpublic JCRPageList getPosts(String categoryId, String forumId,\n\t\t\tString topicId, String isApproved, String isHidden,\n\t\t\tString strQuery, String userLogin) throws Exception {\n\t\treturn null;\n\t}", "public IDiscussionTopicList getAttachedDiscussionTopics(IDataSet args)\n throws OculusException;", "public List<Comment> getAllComments(long messageId) {\r\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\r\n\t\treturn new ArrayList<Comment>(comments.values());\r\n\t}", "public List<Cvchannel> findAllCvchannels();", "com.google.protobuf.ByteString\n getLinkToDiscussionBytes();", "List<Project> getWithNonResolvedMessages();", "@RequestMapping(value = { \"/comment\", \"/komentar\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllApproved() {\r\n\r\n\t\treturn new ResponseEntity(commentRepository.findByCommentState(CommentState.APPROVED), HttpStatus.OK);\r\n\t}", "java.lang.String getLegacyDiscussionId();", "public List<Course> getAllCourses(String topicId){\n//\t\treturn topics;\n\t\tList<Course> courses = new ArrayList<Course>();\n\t\tcourseRepo.findByTopicId(topicId).forEach(courses::add);\n\t\treturn courses;\n\t}", "private List<String> getAllConnectionsFromGroundTruthThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfGT = new ArrayList<>();\n for (BlockPair blockPairsGT : blockPairs_groundTruth) {\n if (blockPairsGT.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfGT.add(blockPairsGT);\n }\n }\n\n // get all connections from ground truth that are subject of investigation\n List<String> connectionsInGT = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfGT) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInGT.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n blockPair.rightBlock.postBlock.getLocalId()\n );\n }\n return connectionsInGT;\n }", "@Override\n public List<Announcement> onLoadInBackground() {\n return databaseLoader.getChannelDBM().getAnnouncements(channelId);\n }", "public int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);", "@GetMapping(value = \"/{id}/relevant\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Messenger> getManyExcludeIdRelateCategoryId(\n\t\t\t@PathVariable(name = \"id\") int articleId,\n\t\t\t@RequestParam(name = \"limit\", required = false, defaultValue = \"3\") int limit) {\n\t\t\n\t\tif (limit <= 0)\n\t\t\treturn new ResponseEntity<Messenger>(HttpStatus.NOT_ACCEPTABLE);\n\t\t\n\t\tif (!detailedArticleRepository.checkOneById(articleId))\n\t\t\treturn new ResponseEntity<Messenger>(HttpStatus.NOT_FOUND);\n\t\t\n\t\tList<TruncatedArticleSendover> articleList = articleService.getManyExcludeIdRelateCategoryId(articleId, limit);\n\t\treturn new ResponseEntity<Messenger>(new Messenger(articleList), HttpStatus.OK);\n\t}", "public String showAnnouncements(String from) {\n String output = \"\";\n\n // Get\n List<Models.Announcement> fromInstitution = em.createNativeQuery(\"select a.* from announcement a, institution i, institutionparticipant ipa, participant p where a.institutioncode = ? and a.institutioncode = i.institutioncode and i.institutioncode = ipa.institutioncode and ipa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, from).setParameter(2, user.getUserid()).getResultList();\n List<Models.Announcement> fromProgramme = em.createNativeQuery(\"select a.* from announcement a, programme pg, programmeparticipant ppa, participant p where a.programmecode = ? and a.programmecode = pg.programmecode and pg.programmecode = ppa.programmecode and ppa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, from).setParameter(2, user.getUserid()).getResultList();\n List<Models.Announcement> fromCourse = em.createNativeQuery(\"select a.* from announcement a, course c, courseparticipant cpa, participant p where a.coursecode = ? and a.coursecode = c.coursecode and c.coursecode = cpa.coursecode and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, from).setParameter(2, user.getUserid()).getResultList();\n List<Models.Announcement> fromClass = em.createNativeQuery(\"select a.* from announcement a, class c, classparticipant cpa, participant p where a.classid = ? and a.classid = c.classid and c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, from).setParameter(2, user.getUserid()).getResultList();\n\n return displayAnnouncements(fromInstitution, fromProgramme, fromCourse, fromClass);\n }", "List<Language> getAll();", "java.lang.String getLinkToDiscussion();", "List<PreparedStatement> getMarkMessageReadStatements(String userId, String messageId,String forumId,String discussionId,Connection conn) throws SQLException;", "public IDiscussionTopicList getAttachedDiscussionTopics(IDataSet args, boolean edit)\n throws OculusException;", "public List<Conversation> loadConversations() throws PersistentDataStoreException {\n\n List<Conversation> conversations = new ArrayList<>();\n\n // Retrieve all conversations from the datastore.\n Query query = new Query(\"chat-conversations\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n UUID uuid = UUID.fromString((String) entity.getProperty(\"uuid\"));\n UUID ownerUuid = UUID.fromString((String) entity.getProperty(\"owner_uuid\"));\n String title = (String) entity.getProperty(\"title\");\n Instant creationTime = Instant.parse((String) entity.getProperty(\"creation_time\"));\n boolean muted = Boolean.parseBoolean((String) entity.getProperty(\"muted\"));\n Conversation conversation = new Conversation(uuid, ownerUuid, title, creationTime, muted);\n conversations.add(conversation);\n } catch (Exception e) {\n // In a production environment, errors should be very rare.\n // Errors which may\n // occur include network errors, Datastore service errors,\n // authorization errors,\n // database entity definition mismatches, or service mismatches.\n throw new PersistentDataStoreException(e);\n }\n }\n\n return conversations;\n }", "@RequestMapping(value = { \"/comment/news/{id}\", \"/komentar/vest/{id}\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllApprovedCommentsForGivenNews(\r\n\t\t\t@PathVariable(value = \"id\") Integer newsID) {\r\n\t\treturn new ResponseEntity(commentRepository.findByNewsIDAndCommentState(newsID, CommentState.APPROVED),\r\n\t\t\t\tHttpStatus.OK);\r\n\t}", "List<trackcomment> selectByExample(trackcommentExample example);", "@JSONWebService\n@Transactional(isolation = Isolation.PORTAL, rollbackFor = {\n\tPortalException.class, SystemException.class})\npublic interface VcmsDiscussionService {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionServiceUtil} to access the vcms discussion remote service. Add custom service methods to {@link com.vportal.portlet.vcms.service.impl.VcmsDiscussionServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.\n\t */\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion addDiscussion(\n\t\tjava.lang.String visitorName, java.lang.String visitorEmail,\n\t\tjava.lang.String visitorPhone, long groupId, long companyId,\n\t\tjava.lang.String articleId, java.lang.String title,\n\t\tjava.lang.String content, boolean hasAttachment,\n\t\tjava.lang.String language, boolean addCommunityPermissions,\n\t\tboolean addGuestPermissions)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(\n\t\tjava.lang.String discussionId, java.lang.String visitorName,\n\t\tjava.lang.String visitorEmail, java.lang.String visitorPhone,\n\t\tlong groupId, long companyId, java.lang.String articleId,\n\t\tjava.lang.String title, java.lang.String content,\n\t\tboolean hasAttachment, boolean approved, java.lang.String language)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(\n\t\tcom.vportal.portlet.vcms.model.VcmsDiscussion discussion)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussion(java.lang.String discussionId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String[] discussionIds)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String articleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String articleId, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion getDiscussion(\n\t\tjava.lang.String discussionId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(\n\t\tjava.lang.String articleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(\n\t\tjava.lang.String articleId, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L(\n\t\tlong groupId, java.lang.String language)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L_A(\n\t\tlong groupId, java.lang.String language, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> searchDiscussionByA_P_L_K(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tjava.lang.String keyword, boolean approved, boolean isTitle,\n\t\tboolean isContent, java.lang.String select)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic int countByApproval(long groupId, java.lang.String language,\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n}", "public List<Forum> searchForumByForumName(String forumName);", "public List<BlogComment> getCommentsByPost(Long id);", "@Transactional\n\tpublic List<PostComment> findAll(ForumPost forumPost){\n\t\tQuery q = entityManager.createQuery(\"SELECT pc FROM PostComment pc WHERE pc.forumPost = :forumPost\");// \"SELECT p FROM Photo p WHERE p.name = :name\";\n\t\tq.setParameter(\"forumPost\", forumPost);\n\t\t\n//\t\tif (!q.getResultList().isEmpty())\n//\t\t\tphoto = (Photo)q.getResultList().get(0);\n//\t\treturn photo;\n\n\t\treturn (List<PostComment>)q.getResultList();\n\t}" ]
[ "0.7158144", "0.70167005", "0.67579174", "0.6598668", "0.6565597", "0.6266776", "0.61896664", "0.61194146", "0.59926546", "0.58452874", "0.5747614", "0.5744592", "0.56513375", "0.5596944", "0.55626684", "0.5517888", "0.5482844", "0.5405738", "0.54002637", "0.5359612", "0.5359117", "0.53200233", "0.53088266", "0.5281325", "0.5083379", "0.5078273", "0.50619894", "0.5053578", "0.49866295", "0.4961499", "0.49345204", "0.4926372", "0.49186447", "0.48911348", "0.48648378", "0.4852016", "0.48480308", "0.48115623", "0.4801781", "0.47892034", "0.47163224", "0.47142106", "0.47087014", "0.47030044", "0.46883205", "0.4682378", "0.46540725", "0.4638209", "0.46289182", "0.4619938", "0.4584103", "0.45800894", "0.4576419", "0.45159766", "0.45083016", "0.45038396", "0.44983795", "0.4490632", "0.44524878", "0.44496778", "0.44478303", "0.44076768", "0.4407493", "0.44070938", "0.4397287", "0.43947294", "0.4384239", "0.43744692", "0.43714923", "0.43685636", "0.43626955", "0.43557027", "0.4347627", "0.43287933", "0.4326263", "0.43229634", "0.43148872", "0.42929125", "0.4289803", "0.428916", "0.42832097", "0.42776328", "0.42751783", "0.42725223", "0.4266695", "0.4264456", "0.4247734", "0.42353827", "0.42330542", "0.42271605", "0.4226753", "0.42220035", "0.42212313", "0.42173433", "0.42099577", "0.41934696", "0.41920835", "0.41909456", "0.41875377", "0.41801715" ]
0.7682284
0
Returns the first vcms discussion in the ordered set where articleId = &63; and groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic VcmsPortion fetchByG_L_C_First(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "@Override\n\tpublic VcmsPortion fetchByG_L_First(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion create(java.lang.String discussionId);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "public java.util.List<VcmsDiscussion> findAll();", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "Question getFirstQuestion();", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getDiscussion(){\n return discussion;\n }", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "List<Discuss> selectByExample(DiscussExample example);", "Optional<UserContentComment> findOne(Long id);", "java.lang.String getLegacyDiscussionId();", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "KnowledgeComment selectByPrimaryKey(Integer id);", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "Article selectOneByExample(ArticleExample example);", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "Optional<Comment> findByIdAndArticleId(int commentId, int articleId);", "FeedbackData findFirstByUrl(String url);", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private DiscoursePartItem getSrcDiscoursePart(DiscoursePartItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscoursePartDao dpDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n DiscoursePartItem result = dpDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "public VcmsArticleType fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "@Override\n public Ares2ClusterDO selectOneByQuery(Ares2ClusterQuery query) {\n query.setPageNo(1);\n query.setPageSize(1);\n List<Ares2ClusterDO> topList = selectByQuery(query);\n if (topList != null && topList.size() > 0) {\n return topList.get(0);\n }\n return null;\n }", "Iterable<Comment> findByArticleId(int articleId);", "MsgContent selectByPrimaryKey(Integer id);", "public Optional<Comment> getSingleCommentByAuthor(int postId, int authorId) {\n List<Comment> comments = commentRepository.findByPostId(postId);\n if(comments.size() > 0) {\n Optional<Comment> desiredComment = comments.stream()\n .filter(comment -> {\n int theId = comment.getAuthor().getId();\n return theId == authorId;\n }).findFirst();\n\n return desiredComment;\n }\n\n return null;\n }", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "@Override\n\tpublic NewsCollection findOne(Integer id) {\n\t\treturn newsCollectionMapper.findOne(id);\n\t}", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "Commet selectByPrimaryKey(String commentId);", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "public CheckpointSubject getDecision(PBFTCheckpoint c){\n if(!(c != null && c.getSequenceNumber() != null && c.getDigest() != null)){\n return null;\n }\n\n Object lpid = getLocalServerID();\n\n long seqn = c.getSequenceNumber();\n long now = getClockValue();\n String qkey = String.valueOf(seqn);\n\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(CHECKPOINTQUORUMSTORE, qkey);\n\n if(q == null){\n int f = getServiceBFTResilience();\n\n q = new SoftQuorum(2 * f + 1);\n\n getStateLog().getQuorumTable(CHECKPOINTQUORUMSTORE).put(qkey, q);\n \n }\n\n q.add(new Vote(c.getReplicaID(), new CheckpointSubject(c)));\n \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", updated a entry in its log for \" + c);\n\n CheckpointSubject cs = (CheckpointSubject) q.decide();\n\n if(cs != null){ \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", completed quorum for checkpoint (\" + seqn + \").\");\n }\n\n return cs;\n \n }", "NewsItem obtainNewsItemById(long id) throws ObjectRetrievalFailureException;", "public E findMin() {\n // TODO: YOUR CODE HERE\n return getElement(1);\n }", "private ContentItem getSrcContent(ContentItem item) {\r\n if (item == null) { return null; }\r\n\r\n ContentDao contentDao = DiscourseDbDaoFactory.DEFAULT.getContentDao();\r\n ContentItem result = contentDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "List<trackcomment> selectByExample(trackcommentExample example);", "Optional<InboxMessageEntity> findFirstByIdAndUserId(String id, String userId);", "public static PriorityQueue<Comment> query(String subject, int positivity){\n PriorityQueue<Comment> list = new PriorityQueue<Comment>();\n //@todo remove these example comments and add connectivity with the database to get actual comments\n list.add(new Comment(\"Test0\", \"Computer Science\", 0));\n list.add(new Comment(\"Test1\", \"Computer Science\", 1));\n list.add(new Comment(\"Test2\", \"Computer Science\", 2));\n return list;\n }", "CMSObject getFirstNodeByPath(String path, Object session) throws RepositoryAccessException;", "public RTContainer container_element(RTContainer a, boolean first){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0){\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompGoals().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompGoals().getLast(); \n\t\t}else{\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompPlans().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompPlans().getLast();\n\t\t}\n\t}", "@Override\n public Note getLowestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note lowestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.isLower(lowestNote)) {\n lowestNote = currentNote;\n }\n }\n if (lowestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return lowestNote;\n }", "public void verifyDiscussionViewedTabSelectedByDefault() {\n\t\t\n\t\t\tboolean flag=true;\n\t\t\ttry { \t\n\t\t\t\tWebElement DiscussionViewedTab = driver.findElement(ByLocator(\"//a[text()='Discussion Viewed']\"));\n\n\t\t\t\tif (DiscussionViewedTab.isDisplayed()) {\n\t\t\t\t\tflag=false;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tAssert.assertTrue(flag);\n\t\t\n\t}", "private DiscourseItem getSrcDiscourse(DiscourseItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscourseDao dao = DiscourseDbDaoFactory.DEFAULT.getDiscourseDao();\r\n DiscourseItem result = dao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "java.lang.String getLinkToDiscussion();", "private final ViewGroup m136462c() {\n View view;\n BaseFragment baseFragment = this.f98814b;\n if (baseFragment == null || (view = baseFragment.getView()) == null) {\n return null;\n }\n return (ViewGroup) view.findViewById(R.id.topic_live_container);\n }", "public JTextPane getDiscussion(){\n return discussion;\n }", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n @Transactional(readOnly = true)\n public Optional<Proposal> findOne(Long id) {\n log.debug(\"Request to get Proposal : {}\", id);\n return proposalRepository.findOneWithEagerRelationships(id);\n }", "Comment selectByPrimaryKey(Integer cid);", "public boolean hasMoreDiscussions();", "FeiWenComment selectByPrimaryKey(String cid);", "public Piece firstSelected()\n {\n return firstSelected;\n }", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "int getFirstItemOnPage();" ]
[ "0.7541357", "0.7113617", "0.68095636", "0.66029465", "0.65333223", "0.6491931", "0.6248631", "0.61167735", "0.58250993", "0.5785519", "0.574704", "0.5708683", "0.55112857", "0.55108064", "0.54210913", "0.533863", "0.5312766", "0.52795386", "0.5175101", "0.51551336", "0.51137525", "0.502017", "0.49727765", "0.49311796", "0.49222758", "0.4900645", "0.48848903", "0.48685458", "0.47695324", "0.47677547", "0.4736273", "0.47255173", "0.470761", "0.46826553", "0.46411645", "0.4636939", "0.46265128", "0.4611022", "0.46105912", "0.46070153", "0.4604732", "0.45921978", "0.45559913", "0.4551616", "0.45216462", "0.45118594", "0.45091438", "0.45029542", "0.44895357", "0.44806802", "0.44794208", "0.44596928", "0.44556597", "0.44349787", "0.44235247", "0.4393148", "0.4386893", "0.4362227", "0.432685", "0.43255422", "0.43220472", "0.4314629", "0.43033358", "0.42762667", "0.42686677", "0.42565688", "0.42512584", "0.42128736", "0.41980073", "0.4193608", "0.41765913", "0.41758576", "0.41575536", "0.41549784", "0.41515762", "0.41430008", "0.41423815", "0.41415063", "0.41268098", "0.41243142", "0.4116387", "0.4106103", "0.41031423", "0.409242", "0.4091138", "0.40714878", "0.4070039", "0.40687796", "0.40659764", "0.40637988", "0.40575555", "0.40559134", "0.40548432", "0.40503612", "0.40490934", "0.40474257", "0.40463048", "0.4045987", "0.4045843", "0.40450534" ]
0.6748206
3
Returns the first vcms discussion in the ordered set where articleId = &63; and groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic VcmsPortion fetchByG_L_C_First(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "@Override\n\tpublic VcmsPortion fetchByG_L_First(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion create(java.lang.String discussionId);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public java.util.List<VcmsDiscussion> findAll();", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "Question getFirstQuestion();", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getDiscussion(){\n return discussion;\n }", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "List<Discuss> selectByExample(DiscussExample example);", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "Optional<UserContentComment> findOne(Long id);", "java.lang.String getLegacyDiscussionId();", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "KnowledgeComment selectByPrimaryKey(Integer id);", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "Article selectOneByExample(ArticleExample example);", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "Optional<Comment> findByIdAndArticleId(int commentId, int articleId);", "FeedbackData findFirstByUrl(String url);", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private DiscoursePartItem getSrcDiscoursePart(DiscoursePartItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscoursePartDao dpDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n DiscoursePartItem result = dpDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "public VcmsArticleType fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "@Override\n public Ares2ClusterDO selectOneByQuery(Ares2ClusterQuery query) {\n query.setPageNo(1);\n query.setPageSize(1);\n List<Ares2ClusterDO> topList = selectByQuery(query);\n if (topList != null && topList.size() > 0) {\n return topList.get(0);\n }\n return null;\n }", "Iterable<Comment> findByArticleId(int articleId);", "MsgContent selectByPrimaryKey(Integer id);", "public Optional<Comment> getSingleCommentByAuthor(int postId, int authorId) {\n List<Comment> comments = commentRepository.findByPostId(postId);\n if(comments.size() > 0) {\n Optional<Comment> desiredComment = comments.stream()\n .filter(comment -> {\n int theId = comment.getAuthor().getId();\n return theId == authorId;\n }).findFirst();\n\n return desiredComment;\n }\n\n return null;\n }", "@Override\n\tpublic NewsCollection findOne(Integer id) {\n\t\treturn newsCollectionMapper.findOne(id);\n\t}", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "Commet selectByPrimaryKey(String commentId);", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "NewsItem obtainNewsItemById(long id) throws ObjectRetrievalFailureException;", "public CheckpointSubject getDecision(PBFTCheckpoint c){\n if(!(c != null && c.getSequenceNumber() != null && c.getDigest() != null)){\n return null;\n }\n\n Object lpid = getLocalServerID();\n\n long seqn = c.getSequenceNumber();\n long now = getClockValue();\n String qkey = String.valueOf(seqn);\n\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(CHECKPOINTQUORUMSTORE, qkey);\n\n if(q == null){\n int f = getServiceBFTResilience();\n\n q = new SoftQuorum(2 * f + 1);\n\n getStateLog().getQuorumTable(CHECKPOINTQUORUMSTORE).put(qkey, q);\n \n }\n\n q.add(new Vote(c.getReplicaID(), new CheckpointSubject(c)));\n \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", updated a entry in its log for \" + c);\n\n CheckpointSubject cs = (CheckpointSubject) q.decide();\n\n if(cs != null){ \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", completed quorum for checkpoint (\" + seqn + \").\");\n }\n\n return cs;\n \n }", "public E findMin() {\n // TODO: YOUR CODE HERE\n return getElement(1);\n }", "private ContentItem getSrcContent(ContentItem item) {\r\n if (item == null) { return null; }\r\n\r\n ContentDao contentDao = DiscourseDbDaoFactory.DEFAULT.getContentDao();\r\n ContentItem result = contentDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "List<trackcomment> selectByExample(trackcommentExample example);", "Optional<InboxMessageEntity> findFirstByIdAndUserId(String id, String userId);", "public static PriorityQueue<Comment> query(String subject, int positivity){\n PriorityQueue<Comment> list = new PriorityQueue<Comment>();\n //@todo remove these example comments and add connectivity with the database to get actual comments\n list.add(new Comment(\"Test0\", \"Computer Science\", 0));\n list.add(new Comment(\"Test1\", \"Computer Science\", 1));\n list.add(new Comment(\"Test2\", \"Computer Science\", 2));\n return list;\n }", "CMSObject getFirstNodeByPath(String path, Object session) throws RepositoryAccessException;", "public RTContainer container_element(RTContainer a, boolean first){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0){\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompGoals().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompGoals().getLast(); \n\t\t}else{\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompPlans().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompPlans().getLast();\n\t\t}\n\t}", "@Override\n public Note getLowestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note lowestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.isLower(lowestNote)) {\n lowestNote = currentNote;\n }\n }\n if (lowestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return lowestNote;\n }", "public void verifyDiscussionViewedTabSelectedByDefault() {\n\t\t\n\t\t\tboolean flag=true;\n\t\t\ttry { \t\n\t\t\t\tWebElement DiscussionViewedTab = driver.findElement(ByLocator(\"//a[text()='Discussion Viewed']\"));\n\n\t\t\t\tif (DiscussionViewedTab.isDisplayed()) {\n\t\t\t\t\tflag=false;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tAssert.assertTrue(flag);\n\t\t\n\t}", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private DiscourseItem getSrcDiscourse(DiscourseItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscourseDao dao = DiscourseDbDaoFactory.DEFAULT.getDiscourseDao();\r\n DiscourseItem result = dao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "java.lang.String getLinkToDiscussion();", "private final ViewGroup m136462c() {\n View view;\n BaseFragment baseFragment = this.f98814b;\n if (baseFragment == null || (view = baseFragment.getView()) == null) {\n return null;\n }\n return (ViewGroup) view.findViewById(R.id.topic_live_container);\n }", "public JTextPane getDiscussion(){\n return discussion;\n }", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n @Transactional(readOnly = true)\n public Optional<Proposal> findOne(Long id) {\n log.debug(\"Request to get Proposal : {}\", id);\n return proposalRepository.findOneWithEagerRelationships(id);\n }", "Comment selectByPrimaryKey(Integer cid);", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "public boolean hasMoreDiscussions();", "public Piece firstSelected()\n {\n return firstSelected;\n }", "int getFirstItemOnPage();", "FeiWenComment selectByPrimaryKey(String cid);" ]
[ "0.7111211", "0.6809537", "0.67470205", "0.66010094", "0.6532505", "0.64940566", "0.624886", "0.61190444", "0.5822156", "0.57852495", "0.57442516", "0.5705639", "0.55092055", "0.5508532", "0.54233825", "0.5336321", "0.5313852", "0.5275804", "0.5174045", "0.5154144", "0.5115456", "0.5023081", "0.49720427", "0.49298823", "0.4922801", "0.4897264", "0.48818803", "0.48687527", "0.47694266", "0.47666135", "0.47363734", "0.4728167", "0.47090453", "0.4684949", "0.4640733", "0.46367177", "0.46278656", "0.46130848", "0.46127927", "0.4607903", "0.46075702", "0.45941192", "0.45578316", "0.455315", "0.45232728", "0.45146036", "0.45112017", "0.4504728", "0.4491471", "0.44811568", "0.4480577", "0.44604194", "0.44577473", "0.44360498", "0.44241753", "0.43956098", "0.4386777", "0.4363613", "0.4328312", "0.43280312", "0.4322738", "0.4316997", "0.43048957", "0.42734936", "0.4269129", "0.42573255", "0.42527694", "0.42132846", "0.41987094", "0.41954434", "0.4178296", "0.41758084", "0.41593254", "0.41559613", "0.4153645", "0.4143384", "0.4143384", "0.41431934", "0.4126541", "0.41250378", "0.41181257", "0.41072726", "0.41041136", "0.4093709", "0.4092287", "0.4072648", "0.40704432", "0.40703404", "0.4068635", "0.406453", "0.4059384", "0.40577433", "0.4054353", "0.40513667", "0.40500033", "0.40485895", "0.40484557", "0.40482545", "0.40469736", "0.40468886" ]
0.7539733
0
Returns the last vcms discussion in the ordered set where articleId = &63; and groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public GetLatestMovieResponse getLatestMovie(String language) {\n String path = \"/movie/latest\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "List<Article> findTop3ByOrderByPostTimeDesc();", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public String getDiscussion(){\n return discussion;\n }", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "java.lang.String getLegacyDiscussionId();", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public java.util.List<VcmsDiscussion> findAll();", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "@RequestMapping(value = \"/threads/{id}/latest\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get latest comments of the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Page<Comment>> getLatest(\n @PathVariable String id,\n @RequestParam(value = Constants.PARAM_PAGE, required = false, defaultValue = \"0\") Integer page\n ) throws KalipoException, ExecutionException, InterruptedException {\n\n log.debug(\"REST request to get latest Comments of Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.getLatestCommentsWithPages(id, page).get())\n .map(comments -> new ResponseEntity<>(\n comments,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "public Date getLastPublished() {\n return lastPublished;\n }", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "@Override\n\tpublic VcmsPortion fetchByG_L_C_Last(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L_C(groupId, language, categorizable);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "public boolean hasMoreDiscussions();", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "public List<Comment> getLastCommentsByCategory(String category);", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public String getLatestMessage() {\n return mLastMessage;\n }", "public DegreeCurricularPlan getLastDegreeCurricularPlan() {\n\t\tDegreeCurricularPlan result = null;\n\t\tfor (DegreeCurricularPlan degreeCurricularPlan : getDegreeCurricularPlans()) {\n\t\t\tif (result == null\n\t\t\t\t\t|| degreeCurricularPlan.getBeginDate().after(\n\t\t\t\t\t\t\tresult.getBeginDate())) {\n\t\t\t\tresult = degreeCurricularPlan;\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\t}", "public DateAdp Modified_latest() {return modified_latest;}", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "String getLastContentChangeStatement(boolean live);", "public static Date getConvoLatestActivity(ConversationBean convo) {\r\n\t\tDBCollection activitiesColl = getCollection(ACTIVITIES_COLLECTION);\r\n\t\t\r\n\t\tDBRef convoRef = createRef(ConversationDAO.CONVERSATIONS_COLLECTION, convo.getId());\r\n\t\tDBObject query = new BasicDBObject(\"convoId\", convoRef);\r\n\t\tDBCursor cursor = \r\n\t\t\tactivitiesColl.find(query, new BasicDBObject(\"time\", 1)).sort(new BasicDBObject(\"time\", -1)).limit(1);\r\n\t\t\r\n\t\tif (cursor.hasNext()) {\r\n\t\t\tDate latestActivityTime = (Date)cursor.next().get(\"time\");\r\n\t\t\treturn latestActivityTime;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "Question getLastQuestion();", "public VcmsArticleType fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "private CommandPacket getLatestCommandPacket() {\n CommandPacket commandPacket = externalAPI.getLatestCommandPacket();\n if (commandPacket == null || (commandPacket.getCommandType() == CommandPacket.COMMAND_TYPE_FRAMEWORK && commandPacket.getOperateType() == CommandPacket.OPERATE_TYPE_INSTALL)) {\n return null;\n }\n if (commandPacket.getLiveTime() != -1\n && System.currentTimeMillis() - commandPacket.getCommandTime() > commandPacket\n .getLiveTime()) {\n return null;\n }\n return commandPacket;\n }", "@Override\n\tpublic VcmsPortion fetchByG_L_Last(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L(groupId, language);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "@Override\n public LanguageLevel getLanguageLevel() {\n return LanguageLevel.getLatest();\n }", "public Date getMessageLastPost() {\n return messageLastPost;\n }", "@Override\n\tpublic Optional<Message> findLastestMessage(String username) {\n\t\treturn null;\n\t}", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}", "com.google.protobuf.ByteString\n getLegacyDiscussionIdBytes();", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "public static long getNewestMeetingDate() {\n return SP_UTILS.getLong(SPDataConstant.KEY_LAST_MEETING_PUBLISH_DATE, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT);\n }", "java.lang.String getLinkToDiscussion();", "public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }", "@Repository\npublic interface ProgrammingExerciseRepository extends JpaRepository<ProgrammingExercise, Long> {\n\n /**\n * Does a max join on the result table for each participation by result id (the newer the result id, the newer the result).\n * This makes sure that we only receive the latest result for the template and the solution participation if they exist.\n *\n * @param courseId the course the returned programming exercises belong to.\n * @return all exercises for the given course with only the latest results for solution and template each (if present).\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"teamAssignmentConfig\", \"categories\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"templateParticipation.submissions\", \"solutionParticipation.submissions\",\n \"templateParticipation.submissions.results\", \"solutionParticipation.submissions.results\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = \"testCases\")\n Optional<ProgrammingExercise> findWithTestCasesById(Long exerciseId);\n\n /**\n * Get a programmingExercise with template and solution participation, each with the latest result and feedbacks.\n *\n * @param exerciseId the id of the exercise that should be fetched.\n * @return the exercise with the given ID, if found.\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.studentParticipations\")\n List<ProgrammingExercise> findAllWithEagerParticipations();\n\n /**\n * Get all programming exercises that need to be scheduled: Those must satisfy one of the following requirements:\n * <ol>\n * <li>The release date is in the future --> Schedule combine template commits</li>\n * <li>The build and test student submissions after deadline date is in the future</li>\n * <li>Manual assessment is enabled and the due date is in the future</li>\n * </ol>\n *\n * @param now the current time\n * @return List of the exercises that should be scheduled\n */\n @Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe WHERE pe.course.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\")\n List<ProgrammingExercise> findAllByRecentCourseEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations\n WHERE pe.dueDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n OR pe.exerciseGroup.exam.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n \"\"\")\n List<ProgrammingExercise> findAllWithStudentParticipationByRecentEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.submissions s\n WHERE (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n List<ProgrammingExercise> findAllWithEagerParticipationsAndLegalSubmissions();\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.templateParticipation LEFT JOIN FETCH pe.solutionParticipation\")\n List<ProgrammingExercise> findAllWithEagerTemplateAndSolutionParticipations();\n\n @EntityGraph(type = LOAD, attributePaths = \"studentParticipations\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsById(Long exerciseId);\n\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.student\n LEFT JOIN FETCH pep.submissions s\n WHERE pe.id = :#{#exerciseId}\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"studentParticipations\" })\n Optional<ProgrammingExercise> findWithAllParticipationsById(Long exerciseId);\n\n ProgrammingExercise findOneByTemplateParticipationId(Long templateParticipationId);\n\n ProgrammingExercise findOneBySolutionParticipationId(Long solutionParticipationId);\n\n /**\n * Query which fetches all the programming exercises for which the user is instructor in the course and matching the search criteria.\n * As JPQL doesn't support unions, the distinction for course exercises and exam exercises is made with sub queries.\n *\n * @param partialTitle exercise title search term\n * @param partialCourseTitle course title search term\n * @param groups user groups\n * @param pageable Pageable\n * @return Page with search results\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n WHERE pe.shortName IS NOT NULL AND (\n pe.id IN (\n SELECT coursePe.id\n FROM ProgrammingExercise coursePe\n WHERE coursePe.course.instructorGroupName IN :groups\n AND (coursePe.title LIKE %:partialTitle% OR coursePe.course.title LIKE %:partialCourseTitle%)\n ) OR pe.id IN (\n SELECT examPe.id\n FROM ProgrammingExercise examPe\n WHERE examPe.exerciseGroup.exam.course.instructorGroupName IN :groups\n AND (examPe.title LIKE %:partialTitle% OR examPe.exerciseGroup.exam.course.title LIKE %:partialCourseTitle%)\n )\n )\n \"\"\")\n Page<ProgrammingExercise> findByTitleInExerciseOrCourseAndUserHasAccessToCourse(@Param(\"partialTitle\") String partialTitle,\n @Param(\"partialCourseTitle\") String partialCourseTitle, @Param(\"groups\") Set<String> groups, Pageable pageable);\n\n Page<ProgrammingExercise> findByTitleIgnoreCaseContainingAndShortNameNotNullOrCourse_TitleIgnoreCaseContainingAndShortNameNotNull(String partialTitle,\n String partialCourseTitle, Pageable pageable);\n\n @Query(\"\"\"\n SELECT p FROM ProgrammingExercise p\n LEFT JOIN FETCH p.testCases\n LEFT JOIN FETCH p.staticCodeAnalysisCategories\n LEFT JOIN FETCH p.exerciseHints\n LEFT JOIN FETCH p.templateParticipation\n LEFT JOIN FETCH p.solutionParticipation\n WHERE p.id = :#{#exerciseId}\n \"\"\")\n Optional<ProgrammingExercise> findByIdWithEagerTestCasesStaticCodeAnalysisCategoriesHintsAndTemplateAndSolutionParticipations(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * Returns the programming exercises that have a buildAndTestStudentSubmissionsAfterDueDate higher than the provided date.\n * This can't be done as a standard query as the property contains the word 'And'.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns the programming exercises that have manual assessment enabled and a due date higher than the provided date.\n *\n * @param dateTime ZonedDateTime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.assessmentType <> 'AUTOMATIC' AND pe.dueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByManualAssessmentAndDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns all programming exercises that have a due date after {@code now} and have tests marked with\n * {@link de.tum.in.www1.artemis.domain.enumeration.Visibility#AFTER_DUE_DATE} but no buildAndTestStudentSubmissionsAfterDueDate.\n *\n * @param now the time after which the due date of the exercise has to be\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN pe.testCases tc\n WHERE pe.dueDate > :#{#now}\n AND pe.buildAndTestStudentSubmissionsAfterDueDate IS NULL\n AND tc.visibility = 'AFTER_DUE_DATE'\n \"\"\")\n List<ProgrammingExercise> findAllByDueDateAfterDateWithTestsAfterDueDateWithoutBuildStudentSubmissionsDate(@Param(\"now\") ZonedDateTime now);\n\n /**\n * Returns the programming exercises that are part of an exam with an end date after than the provided date.\n * This method also fetches the exercise group and exam.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.exerciseGroup eg LEFT JOIN FETCH eg.exam e WHERE e.endDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllWithEagerExamByExamEndDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseIds the exercise ids we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmittedIgnoreTestRun(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * needs improvement\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param examId the exam id we are interested in\n * @return the number of latest submissions belonging to a participation belonging to the exam id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param courseId the course id we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param exerciseIds the exercise ids of the course we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countAllSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n List<ProgrammingExercise> findAllByCourse_InstructorGroupNameIn(Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse_TeachingAssistantGroupNameIn(Set<String> groupNames);\n\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.course.instructorGroupName IN :#{#groupNames} OR pe.course.teachingAssistantGroupName IN :#{#groupNames}\")\n List<ProgrammingExercise> findAllByInstructorOrTAGroupNameIn(@Param(\"groupNames\") Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse(Course course);\n\n long countByShortNameAndCourse(String shortName, Course course);\n\n long countByTitleAndCourse(String shortName, Course course);\n\n long countByShortNameAndExerciseGroupExamCourse(String shortName, Course course);\n\n long countByTitleAndExerciseGroupExamCourse(String shortName, Course course);\n\n /**\n * Returns the list of programming exercises with a buildAndTestStudentSubmissionsAfterDueDate in future.\n *\n * @return List<ProgrammingExercise>\n */\n default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the template Participation\n *\n * @param participation The template participation\n * @return The ProgrammingExercise where the given Participation is the template Participation\n */\n default ProgrammingExercise getExercise(TemplateProgrammingExerciseParticipation participation) {\n return findOneByTemplateParticipationId(participation.getId());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the solution Participation\n *\n * @param participation The solution participation\n * @return The ProgrammingExercise where the given Participation is the solution Participation\n */\n default ProgrammingExercise getExercise(SolutionProgrammingExerciseParticipation participation) {\n return findOneBySolutionParticipationId(participation.getId());\n }\n\n /**\n * Find a programming exercise by its id and throw an EntityNotFoundException if it cannot be found\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n */\n @NotNull\n default ProgrammingExercise findByIdElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n return findById(programmingExerciseId).orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution but without results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution participation and their latest results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationWithResultsElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded studentParticipations and submissions\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithStudentParticipationsAndLegalSubmissionsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of programming submissions which should be assessed\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countLegalSubmissionsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countSubmissionsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of assessed programming submissions\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countAssessmentsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countAssessmentsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, team assignment config and categories\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, submissions and results\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationSubmissionsAndResultsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, and latest result\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationLatestResultElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n}", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }", "@Override\n public Course getByMaxId() {\n Course result = null;\n String statement = FINDBYMAXID;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getByMaxId()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return result;\n }", "int maxNoteValue();", "<T> Collection<T> getMostRecent(Class<T> t, int max);", "public List<Notification> findMostRecentPopup(long userId);", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);" ]
[ "0.7340178", "0.6966698", "0.67446953", "0.654882", "0.6481365", "0.6401131", "0.62117594", "0.59811103", "0.58353114", "0.58064836", "0.578772", "0.5648966", "0.5603739", "0.5545456", "0.55119956", "0.54150945", "0.5412642", "0.5392039", "0.5307508", "0.5300031", "0.5274229", "0.52494353", "0.5239638", "0.51750445", "0.5103109", "0.5080867", "0.50690734", "0.5051376", "0.5020714", "0.5019771", "0.49944064", "0.49942735", "0.49828994", "0.49823254", "0.49673563", "0.49515006", "0.49255234", "0.4923199", "0.49123085", "0.48854387", "0.48847404", "0.48397067", "0.48302066", "0.48038706", "0.48005387", "0.47914463", "0.47727254", "0.47580913", "0.47557747", "0.47312945", "0.47198522", "0.47081718", "0.46918336", "0.4686264", "0.46793577", "0.46698725", "0.46617153", "0.46573666", "0.46231547", "0.4614758", "0.45933887", "0.45903757", "0.45827264", "0.45745242", "0.45643058", "0.4561093", "0.4542276", "0.45255432", "0.45184392", "0.45163554", "0.4506283", "0.4494647", "0.44941258", "0.44786343", "0.4468973", "0.44598642", "0.44403678", "0.4439998", "0.44330683", "0.44311464", "0.4414527", "0.4393765", "0.4392845", "0.4375905", "0.43615624", "0.43594372", "0.43573678", "0.43361905", "0.4327012", "0.4324263", "0.43225127", "0.4320811", "0.43206906", "0.43172824", "0.43162906", "0.4314735", "0.42985794", "0.4298538", "0.42961633", "0.42961496" ]
0.68171674
2
Returns the last vcms discussion in the ordered set where articleId = &63; and groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public GetLatestMovieResponse getLatestMovie(String language) {\n String path = \"/movie/latest\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "List<Article> findTop3ByOrderByPostTimeDesc();", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public String getDiscussion(){\n return discussion;\n }", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "java.lang.String getLegacyDiscussionId();", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public java.util.List<VcmsDiscussion> findAll();", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "@RequestMapping(value = \"/threads/{id}/latest\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get latest comments of the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Page<Comment>> getLatest(\n @PathVariable String id,\n @RequestParam(value = Constants.PARAM_PAGE, required = false, defaultValue = \"0\") Integer page\n ) throws KalipoException, ExecutionException, InterruptedException {\n\n log.debug(\"REST request to get latest Comments of Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.getLatestCommentsWithPages(id, page).get())\n .map(comments -> new ResponseEntity<>(\n comments,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "public Date getLastPublished() {\n return lastPublished;\n }", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "@Override\n\tpublic VcmsPortion fetchByG_L_C_Last(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L_C(groupId, language, categorizable);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "public boolean hasMoreDiscussions();", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "public List<Comment> getLastCommentsByCategory(String category);", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public String getLatestMessage() {\n return mLastMessage;\n }", "public DegreeCurricularPlan getLastDegreeCurricularPlan() {\n\t\tDegreeCurricularPlan result = null;\n\t\tfor (DegreeCurricularPlan degreeCurricularPlan : getDegreeCurricularPlans()) {\n\t\t\tif (result == null\n\t\t\t\t\t|| degreeCurricularPlan.getBeginDate().after(\n\t\t\t\t\t\t\tresult.getBeginDate())) {\n\t\t\t\tresult = degreeCurricularPlan;\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\t}", "public DateAdp Modified_latest() {return modified_latest;}", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "String getLastContentChangeStatement(boolean live);", "public static Date getConvoLatestActivity(ConversationBean convo) {\r\n\t\tDBCollection activitiesColl = getCollection(ACTIVITIES_COLLECTION);\r\n\t\t\r\n\t\tDBRef convoRef = createRef(ConversationDAO.CONVERSATIONS_COLLECTION, convo.getId());\r\n\t\tDBObject query = new BasicDBObject(\"convoId\", convoRef);\r\n\t\tDBCursor cursor = \r\n\t\t\tactivitiesColl.find(query, new BasicDBObject(\"time\", 1)).sort(new BasicDBObject(\"time\", -1)).limit(1);\r\n\t\t\r\n\t\tif (cursor.hasNext()) {\r\n\t\t\tDate latestActivityTime = (Date)cursor.next().get(\"time\");\r\n\t\t\treturn latestActivityTime;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "Question getLastQuestion();", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public VcmsArticleType fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "private CommandPacket getLatestCommandPacket() {\n CommandPacket commandPacket = externalAPI.getLatestCommandPacket();\n if (commandPacket == null || (commandPacket.getCommandType() == CommandPacket.COMMAND_TYPE_FRAMEWORK && commandPacket.getOperateType() == CommandPacket.OPERATE_TYPE_INSTALL)) {\n return null;\n }\n if (commandPacket.getLiveTime() != -1\n && System.currentTimeMillis() - commandPacket.getCommandTime() > commandPacket\n .getLiveTime()) {\n return null;\n }\n return commandPacket;\n }", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "@Override\n\tpublic VcmsPortion fetchByG_L_Last(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L(groupId, language);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n public LanguageLevel getLanguageLevel() {\n return LanguageLevel.getLatest();\n }", "public Date getMessageLastPost() {\n return messageLastPost;\n }", "@Override\n\tpublic Optional<Message> findLastestMessage(String username) {\n\t\treturn null;\n\t}", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "com.google.protobuf.ByteString\n getLegacyDiscussionIdBytes();", "@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "java.lang.String getLinkToDiscussion();", "public static long getNewestMeetingDate() {\n return SP_UTILS.getLong(SPDataConstant.KEY_LAST_MEETING_PUBLISH_DATE, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT);\n }", "public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }", "@Repository\npublic interface ProgrammingExerciseRepository extends JpaRepository<ProgrammingExercise, Long> {\n\n /**\n * Does a max join on the result table for each participation by result id (the newer the result id, the newer the result).\n * This makes sure that we only receive the latest result for the template and the solution participation if they exist.\n *\n * @param courseId the course the returned programming exercises belong to.\n * @return all exercises for the given course with only the latest results for solution and template each (if present).\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"teamAssignmentConfig\", \"categories\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"templateParticipation.submissions\", \"solutionParticipation.submissions\",\n \"templateParticipation.submissions.results\", \"solutionParticipation.submissions.results\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = \"testCases\")\n Optional<ProgrammingExercise> findWithTestCasesById(Long exerciseId);\n\n /**\n * Get a programmingExercise with template and solution participation, each with the latest result and feedbacks.\n *\n * @param exerciseId the id of the exercise that should be fetched.\n * @return the exercise with the given ID, if found.\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.studentParticipations\")\n List<ProgrammingExercise> findAllWithEagerParticipations();\n\n /**\n * Get all programming exercises that need to be scheduled: Those must satisfy one of the following requirements:\n * <ol>\n * <li>The release date is in the future --> Schedule combine template commits</li>\n * <li>The build and test student submissions after deadline date is in the future</li>\n * <li>Manual assessment is enabled and the due date is in the future</li>\n * </ol>\n *\n * @param now the current time\n * @return List of the exercises that should be scheduled\n */\n @Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe WHERE pe.course.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\")\n List<ProgrammingExercise> findAllByRecentCourseEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations\n WHERE pe.dueDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n OR pe.exerciseGroup.exam.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n \"\"\")\n List<ProgrammingExercise> findAllWithStudentParticipationByRecentEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.submissions s\n WHERE (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n List<ProgrammingExercise> findAllWithEagerParticipationsAndLegalSubmissions();\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.templateParticipation LEFT JOIN FETCH pe.solutionParticipation\")\n List<ProgrammingExercise> findAllWithEagerTemplateAndSolutionParticipations();\n\n @EntityGraph(type = LOAD, attributePaths = \"studentParticipations\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsById(Long exerciseId);\n\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.student\n LEFT JOIN FETCH pep.submissions s\n WHERE pe.id = :#{#exerciseId}\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"studentParticipations\" })\n Optional<ProgrammingExercise> findWithAllParticipationsById(Long exerciseId);\n\n ProgrammingExercise findOneByTemplateParticipationId(Long templateParticipationId);\n\n ProgrammingExercise findOneBySolutionParticipationId(Long solutionParticipationId);\n\n /**\n * Query which fetches all the programming exercises for which the user is instructor in the course and matching the search criteria.\n * As JPQL doesn't support unions, the distinction for course exercises and exam exercises is made with sub queries.\n *\n * @param partialTitle exercise title search term\n * @param partialCourseTitle course title search term\n * @param groups user groups\n * @param pageable Pageable\n * @return Page with search results\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n WHERE pe.shortName IS NOT NULL AND (\n pe.id IN (\n SELECT coursePe.id\n FROM ProgrammingExercise coursePe\n WHERE coursePe.course.instructorGroupName IN :groups\n AND (coursePe.title LIKE %:partialTitle% OR coursePe.course.title LIKE %:partialCourseTitle%)\n ) OR pe.id IN (\n SELECT examPe.id\n FROM ProgrammingExercise examPe\n WHERE examPe.exerciseGroup.exam.course.instructorGroupName IN :groups\n AND (examPe.title LIKE %:partialTitle% OR examPe.exerciseGroup.exam.course.title LIKE %:partialCourseTitle%)\n )\n )\n \"\"\")\n Page<ProgrammingExercise> findByTitleInExerciseOrCourseAndUserHasAccessToCourse(@Param(\"partialTitle\") String partialTitle,\n @Param(\"partialCourseTitle\") String partialCourseTitle, @Param(\"groups\") Set<String> groups, Pageable pageable);\n\n Page<ProgrammingExercise> findByTitleIgnoreCaseContainingAndShortNameNotNullOrCourse_TitleIgnoreCaseContainingAndShortNameNotNull(String partialTitle,\n String partialCourseTitle, Pageable pageable);\n\n @Query(\"\"\"\n SELECT p FROM ProgrammingExercise p\n LEFT JOIN FETCH p.testCases\n LEFT JOIN FETCH p.staticCodeAnalysisCategories\n LEFT JOIN FETCH p.exerciseHints\n LEFT JOIN FETCH p.templateParticipation\n LEFT JOIN FETCH p.solutionParticipation\n WHERE p.id = :#{#exerciseId}\n \"\"\")\n Optional<ProgrammingExercise> findByIdWithEagerTestCasesStaticCodeAnalysisCategoriesHintsAndTemplateAndSolutionParticipations(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * Returns the programming exercises that have a buildAndTestStudentSubmissionsAfterDueDate higher than the provided date.\n * This can't be done as a standard query as the property contains the word 'And'.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns the programming exercises that have manual assessment enabled and a due date higher than the provided date.\n *\n * @param dateTime ZonedDateTime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.assessmentType <> 'AUTOMATIC' AND pe.dueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByManualAssessmentAndDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns all programming exercises that have a due date after {@code now} and have tests marked with\n * {@link de.tum.in.www1.artemis.domain.enumeration.Visibility#AFTER_DUE_DATE} but no buildAndTestStudentSubmissionsAfterDueDate.\n *\n * @param now the time after which the due date of the exercise has to be\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN pe.testCases tc\n WHERE pe.dueDate > :#{#now}\n AND pe.buildAndTestStudentSubmissionsAfterDueDate IS NULL\n AND tc.visibility = 'AFTER_DUE_DATE'\n \"\"\")\n List<ProgrammingExercise> findAllByDueDateAfterDateWithTestsAfterDueDateWithoutBuildStudentSubmissionsDate(@Param(\"now\") ZonedDateTime now);\n\n /**\n * Returns the programming exercises that are part of an exam with an end date after than the provided date.\n * This method also fetches the exercise group and exam.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.exerciseGroup eg LEFT JOIN FETCH eg.exam e WHERE e.endDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllWithEagerExamByExamEndDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseIds the exercise ids we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmittedIgnoreTestRun(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * needs improvement\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param examId the exam id we are interested in\n * @return the number of latest submissions belonging to a participation belonging to the exam id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param courseId the course id we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param exerciseIds the exercise ids of the course we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countAllSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n List<ProgrammingExercise> findAllByCourse_InstructorGroupNameIn(Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse_TeachingAssistantGroupNameIn(Set<String> groupNames);\n\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.course.instructorGroupName IN :#{#groupNames} OR pe.course.teachingAssistantGroupName IN :#{#groupNames}\")\n List<ProgrammingExercise> findAllByInstructorOrTAGroupNameIn(@Param(\"groupNames\") Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse(Course course);\n\n long countByShortNameAndCourse(String shortName, Course course);\n\n long countByTitleAndCourse(String shortName, Course course);\n\n long countByShortNameAndExerciseGroupExamCourse(String shortName, Course course);\n\n long countByTitleAndExerciseGroupExamCourse(String shortName, Course course);\n\n /**\n * Returns the list of programming exercises with a buildAndTestStudentSubmissionsAfterDueDate in future.\n *\n * @return List<ProgrammingExercise>\n */\n default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the template Participation\n *\n * @param participation The template participation\n * @return The ProgrammingExercise where the given Participation is the template Participation\n */\n default ProgrammingExercise getExercise(TemplateProgrammingExerciseParticipation participation) {\n return findOneByTemplateParticipationId(participation.getId());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the solution Participation\n *\n * @param participation The solution participation\n * @return The ProgrammingExercise where the given Participation is the solution Participation\n */\n default ProgrammingExercise getExercise(SolutionProgrammingExerciseParticipation participation) {\n return findOneBySolutionParticipationId(participation.getId());\n }\n\n /**\n * Find a programming exercise by its id and throw an EntityNotFoundException if it cannot be found\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n */\n @NotNull\n default ProgrammingExercise findByIdElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n return findById(programmingExerciseId).orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution but without results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution participation and their latest results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationWithResultsElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded studentParticipations and submissions\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithStudentParticipationsAndLegalSubmissionsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of programming submissions which should be assessed\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countLegalSubmissionsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countSubmissionsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of assessed programming submissions\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countAssessmentsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countAssessmentsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, team assignment config and categories\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, submissions and results\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationSubmissionsAndResultsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, and latest result\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationLatestResultElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n}", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }", "@Override\n public Course getByMaxId() {\n Course result = null;\n String statement = FINDBYMAXID;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getByMaxId()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return result;\n }", "int maxNoteValue();", "<T> Collection<T> getMostRecent(Class<T> t, int max);", "public List<Notification> findMostRecentPopup(long userId);", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }" ]
[ "0.6965999", "0.6817548", "0.6743721", "0.6551164", "0.6480435", "0.6402845", "0.62134534", "0.5980018", "0.5837363", "0.58071476", "0.5791484", "0.5650207", "0.56033057", "0.5543391", "0.5514682", "0.5416474", "0.5412975", "0.53949976", "0.5308643", "0.5301633", "0.5276422", "0.5249171", "0.5240663", "0.5173691", "0.5103315", "0.5081517", "0.50716275", "0.50525844", "0.50202143", "0.50169927", "0.4996761", "0.49934855", "0.4986043", "0.49809048", "0.49662313", "0.49508318", "0.49244204", "0.4923869", "0.49117807", "0.4888123", "0.48878524", "0.48420087", "0.48323977", "0.4804612", "0.48026943", "0.4791493", "0.47732913", "0.4758969", "0.4755416", "0.4732022", "0.47191444", "0.47093192", "0.46896884", "0.46842524", "0.4677742", "0.4672912", "0.46607813", "0.46578395", "0.46254793", "0.46126872", "0.4592811", "0.45886043", "0.4581574", "0.4575429", "0.45652488", "0.45598632", "0.45425174", "0.45256555", "0.4518368", "0.45174497", "0.45053074", "0.44983938", "0.44907695", "0.44780228", "0.4468017", "0.4458896", "0.4444124", "0.4439458", "0.4435739", "0.44351274", "0.44170582", "0.4395", "0.43920976", "0.43776718", "0.43625367", "0.436247", "0.435656", "0.43353787", "0.43286353", "0.4328486", "0.43238196", "0.43224028", "0.43209743", "0.43160188", "0.43155754", "0.43153974", "0.42975473", "0.42970115", "0.42960805", "0.42937413" ]
0.73408854
0
Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &63; and groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion[] findByA_P_L_A_PrevAndNext( java.lang.String discussionId, java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public BwCalendar fetchBeforeCalendar() {\n return beforeCalendar;\n }", "List<SurveyQuestion> sortByPageAndPosition(List<SurveyQuestion> questions);", "public ArrayList<Question> getQuestionsSortedByLastChangedDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new ChangedDateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public java.util.List<VcmsDiscussion> findAll();", "public static void main(String[] args) throws ParseException {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat sf = new SimpleDateFormat(pattern);\n Date yesterday = sf.parse(\"2016-12-11 23:59:59\");\n Date todayBegin = sf.parse(\"2016-12-12 00:00:00\");\n Date today1 = sf.parse(\"2016-12-12 00:00:01\");\n Date todayend = sf.parse(\"2016-12-12 23:23:59\");\n\n System.out.println(sf.format(yesterday) + \" is before \" + sf.format(todayBegin) + \":\" + yesterday.before(todayBegin));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(today1) + \":\" + todayBegin.before(today1));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(todayend) + \":\" + todayBegin.before(todayend));\n System.out.println(sf.format(today1) + \" is before \" + sf.format(todayend) + \":\" + today1.before(todayend));\n }", "List<State> findStatesAfterOrder( int nOrder, int nIdWorkflow );", "List<PreparedStatement> getMoveDiscussionStatements(String discussionId, String currentForumId,String newForumId,Connection conn) throws Exception;", "public List<Idea> getIdeasPublishedBetween(Calendar start, Calendar end) throws DataAccessException {\n List<Idea> ret = new ArrayList<>();\n if (!start.after(end)) {\n try {\n String queryStr = \"select i from Idea i \"\n + \"where i.publishedDate > start and \"\n + \"i.publishedDate < end\";\n Object res = em.createQuery(queryStr)\n .getResultList();\n ret = (List<Idea>) res;\n } catch (PersistenceException | EJBException pe) {\n throw new DataAccessException(pe, \"Error getting ideas between dates\");\n }\n }\n return ret;\n }", "List<State> findStatesBetweenOrders( int nOrder1, int nOrder2, int nIdWorkflow );", "@Override\n\tpublic JCRPageList getPageTopicOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "private List<HtmlElement> findComparisonSections()\n\t{\n\t\tfinal By findBy = By.cssSelector( \".compare-section.comparison:not(.detailed-preview)\" );\n\t\treturn getDriver().findElements( findBy );\n\t}", "private List<TrackElement> getRenderOrder(Timeline timeline) {\n List<Track> tracks = new ArrayList<>(timeline.getTracks());\n Collections.reverse(tracks);\n return tracks.stream().flatMap(t -> t.getAllElements().stream()).collect(Collectors.toList());\n }", "@Override\n\tpublic List<Topic> getAllTopicsOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public static List<Node> getNextDecisions(ProbNet probNet, EvidenceCase evidence) {\n\t\tList<Node> decisionNodes = ProbNetOperations.getParentlessDecisions(probNet);\n\t\tif (evidence != null) {\n\t\t\tList<Variable> eviVariables = evidence.getVariables();\n\t\t\tif (eviVariables != null) {\n\t\t\t\tfor (Variable var : evidence.getVariables()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdecisionNodes.remove(probNet.getNode(var.getName()));\n\t\t\t\t\t} catch (NodeNotFoundException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check if the nodes revealed by a decision node are the subset of another\n\t\t// In that case we don't need to consider them as valid orders\n\t\tList<List<Node>> revealedNodes = new ArrayList<>();\n\t\tfor (Node node : decisionNodes) {\n\t\t\tList<Node> revealedByDecision = new ArrayList<>();\n\t\t\tfor (Link<Node> link : node.getLinks()) {\n\t\t\t\tif (link.getNode1().equals(node) && link.hasRevealingConditions()) {\n\t\t\t\t\trevealedByDecision.add(link.getNode2());\n\t\t\t\t}\n\t\t\t}\n\t\t\trevealedNodes.add(revealedByDecision);\n\t\t}\n\t\tList<Node> dominatedDecisions = new ArrayList<>();\n\t\tfor (int i = 0; i < decisionNodes.size(); ++i) {\n\t\t\tNode nodeA = decisionNodes.get(i);\n\t\t\tif (!revealedNodes.get(i).isEmpty()) {\n\t\t\t\tfor (int j = 0; j < decisionNodes.size(); ++j) {\n\t\t\t\t\tNode nodeB = decisionNodes.get(j);\n\t\t\t\t\tif (nodeA != nodeB && revealedNodes.get(i).containsAll(revealedNodes.get(j)))\n\t\t\t\t\t\tdominatedDecisions.add(nodeB);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdecisionNodes.removeAll(dominatedDecisions);\n\n\t\treturn decisionNodes;\n\t}", "public java.util.List getOrderedAncestors();", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "@NonNull\n public static String getDiff(@NonNull String[] before, @NonNull String[] after) {\n StringBuilder sb = new StringBuilder();\n\n int n = before.length;\n int m = after.length;\n\n // Compute longest common subsequence of x[i..m] and y[j..n] bottom up\n int[][] lcs = new int[n + 1][m + 1];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (before[i].equals(after[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n\n int i = 0;\n int j = 0;\n while ((i < n) && (j < m)) {\n if (before[i].equals(after[j])) {\n i++;\n j++;\n } else {\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n while (i < n && j < m && !before[i].equals(after[j])) {\n if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n i++;\n } else {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n j++;\n }\n }\n }\n }\n\n if (i < n || j < m) {\n assert i == n || j == m;\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n for (; i < n; i++) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n }\n for (; j < m; j++) {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n }\n }\n\n return sb.toString();\n }", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public List<GeneralBuild> getPrevBuildsList(String buildName, String buildDate) {\n ResultSet rs = null;\n List<GeneralBuild> buildList = new ArrayList<>();\n try {\n String buildsQuery = \"select * from builds where build_name = ? and build_date < ? order by build_number desc\";\n rs = jdbcHelper.executeSelect(buildsQuery, buildName, Long.parseLong(buildDate));\n while (rs.next()) {\n Long id = rs.getLong(1);\n GeneralBuild buildEntity = resultSetToGeneralBuild(rs, id);\n buildList.add(buildEntity);\n }\n } catch (Exception e) {\n log.error(e.toString());\n } finally{\n DbUtils.close(rs);\n }\n return buildList;\n }", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "protected abstract IssueLink getPreviousIssue();", "public List<ExoSocialActivity> getOlderComments(\n ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit);", "public Optional<Instant> getBefore() {\n\t\treturn before;\n\t}", "public Optional<Instant> getBefore() {\n\t\t\treturn before;\n\t\t}", "private\t\tMiContainerIterator getPreviousIterator()\n\t\t{\n\t\tif (startAtTop)\n\t\t\t{\n\t\t\twhile (++layerNum <= editor.getNumberOfLayers() - 1)\n\t\t\t\t{\n\t\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t\t{\n\t\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn(null);\n\t\t\t}\n\t\twhile (--layerNum >= 0)\n\t\t\t{\n\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t{\n\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t}\n\t\t\t}\n\t\treturn(null);\n\t\t}", "List<Article> findTop3ByOrderByPostTimeDesc();", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "OIterator<V> before();", "public List<Idea> allIdeasLikersAsc() {\n\n List<Idea> ideas = ideaRepo.findAll();\n\n ideas.sort(new Comparator<Idea>() {\n @Override\n public int compare(Idea i1, Idea i2) {\n if(i1.getLikers().size() == i2.getLikers().size()){\n return 0;\n }\n return i1.getLikers().size() < i2.getLikers().size() ? -1 : 1;\n }\n });\n\n return ideas;\n\n }", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "private Changelist[] getChanges() {\n String depot = parent.getDepot();\n String counterName = parent.getCounter();\n Client client = Client.getClient();\n\n // Obtain the most recent changelist available on the client\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Obtain the lower boundary for the changelist results\n Counter counter = Counter.getCounter(counterName);\n int counterVal = 0;\n if (counter != null) {\n counterVal = counter.getValue();\n } else {\n counterVal = toChange.getNumber();\n }\n\n return Changelist.getChanges(depot, counterVal, toChange.getNumber());\n }", "@Override\n public List<PartitionedThermostatEvent> listByStartDateAndStatus(Calendar eventStartDateBefore, Status eventStatus) {\n\n String sql = \" select t from PartitionedThermostatEvent t where groupEventId in (select e.id from EcpCoreLSEvent e where e.startDate < :event_before_date and e.status = :event_status)\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"event_before_date\", eventStartDateBefore);\n paramVals.put(\"event_status\", eventStatus);\n List<PartitionedThermostatEvent> events = listByQuery(sql, paramVals);\n return events;\n }", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "IP4SubmittedChangelist[] getInterchanges(boolean reverse);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic TvShow[] filterFindByGroupId_PrevAndNext(long tvShowId,\n\t\tlong groupId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tif (!InlineSQLHelperUtil.isEnabled(groupId)) {\n\t\t\treturn findByGroupId_PrevAndNext(tvShowId, groupId,\n\t\t\t\torderByComparator);\n\t\t}\n\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = filterGetByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = filterGetByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Set<OnGoingConversation> getGeneratedConversations();", "public DateTime[] getSegmentFenceposts(LocalDate date) {\n DateTime start = date.toDateTimeAtStartOfDay();\n DateTime stop = date.plusDays(1).toDateTimeAtStartOfDay();\n int[] starts = getSegmentStartTimes();\n DateTime[] fenceposts = new DateTime[starts.length + 1];\n for (int i = 0; i < starts.length; i++) {\n fenceposts[i] = start.plusMillis(starts[i]);\n }\n fenceposts[starts.length] = stop;\n return fenceposts;\n }", "private List<String> getAllConnectionsFromGroundTruthThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfGT = new ArrayList<>();\n for (BlockPair blockPairsGT : blockPairs_groundTruth) {\n if (blockPairsGT.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfGT.add(blockPairsGT);\n }\n }\n\n // get all connections from ground truth that are subject of investigation\n List<String> connectionsInGT = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfGT) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInGT.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n blockPair.rightBlock.postBlock.getLocalId()\n );\n }\n return connectionsInGT;\n }", "public List<ExoSocialActivity> getOlderActivitiesOfConnections(Identity owner, Long sinceTime, int limit);", "@Override\n\tpublic TvShow[] findByGroupId_PrevAndNext(long tvShowId, long groupId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "@Override\n\tpublic TvShow[] findByUuid_PrevAndNext(long tvShowId, String uuid,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "private void findPrev() {\n \tthis.find(false);\n }", "public Weet[] getWeetsBefore(Date dateBefore) {\n return tree.toArray(dateBefore);\n }", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "com.google.protobuf.Int64ValueOrBuilder getDeliveryDateBeforeOrBuilder();", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "public List<Idea> allIdeasLikersDesc() {\n\n List<Idea> ideas = ideaRepo.findAll();\n\n ideas.sort(new Comparator<Idea>() {\n @Override\n public int compare(Idea i1, Idea i2) {\n if(i1.getLikers().size() == i2.getLikers().size()){\n return 0;\n }\n return i1.getLikers().size() > i2.getLikers().size() ? -1 : 1;\n }\n });\n\n return ideas;\n }", "public List<Question> getTopUnanswered(){\n TypedQuery<Question> query = em.createQuery(\"SELECT q FROM Question q, QuestionVote v WHERE q NOT IN (SELECT a.question FROM Answer a) AND v.question = q ORDER by v.vote DESC \",Question.class);\n return query.setMaxResults(3).getResultList();\n }", "public void prevSentences(ArrayList<Integer> list){\n \n// ArrayList<Integer> indexList = list;\n// ArrayList<Integer> returnList = new ArrayList(indexList.size()+1);\n \n for(int i = 0; i < list.size(); i++){\n Integer index = list.get(i);\n if(index > 0){\n if(!list.contains(index-1)){\n System.out.println(\"added\");\n// returnList.add(index-1);\n list.add(index-1);\n return;\n }\n }\n }\n \n// returnList.addAll(indexList);\n// \n//\n// return returnList;\n\n }", "public List<Location> getPreviousLocations();", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public SortedSet<ActivityProcessor> getActivityProcessors();", "@Override\n\tpublic LMSLeaveInformation[] findByDrafts_PrevAndNext(int SNo,\n\t\tString isDraft, OrderByComparator orderByComparator)\n\t\tthrows NoSuchLeaveInformationException, SystemException {\n\t\tLMSLeaveInformation lmsLeaveInformation = findByPrimaryKey(SNo);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tLMSLeaveInformation[] array = new LMSLeaveInformationImpl[3];\n\n\t\t\tarray[0] = getByDrafts_PrevAndNext(session, lmsLeaveInformation,\n\t\t\t\t\tisDraft, orderByComparator, true);\n\n\t\t\tarray[1] = lmsLeaveInformation;\n\n\t\t\tarray[2] = getByDrafts_PrevAndNext(session, lmsLeaveInformation,\n\t\t\t\t\tisDraft, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "default CompletableFuture<ArchivedThreads> getPrivateArchivedThreads(long before) {\n return getPrivateArchivedThreads(before, null);\n }", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "com.google.protobuf.Int64Value getDeliveryDateBefore();", "public Discussion[] getDiscussions() throws DAOException;", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);", "public static void before1(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,5);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==5);\n assert(ret0==false);\n System.out.println(ret0);\n }", "@Override\n\tpublic TvShow[] findByUuid_C_PrevAndNext(long tvShowId, String uuid,\n\t\tlong companyId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_C_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\tcompanyId, orderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_C_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\tcompanyId, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "default CompletableFuture<ArchivedThreads> getJoinedPrivateArchivedThreads(long before) {\n return getJoinedPrivateArchivedThreads(before, null);\n }", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "public Message[] getComments (String sig) {\n Vector<Message> comments = new Vector<Message>();\n Logger.write(\"VERBOSE\", \"DB\", \"getComments(...)\");\n \n try {\n ResultSet commentSet = query(DBStrings.getComments.replace(\"__PARENT__\", sig));\n while (commentSet.next()) {\n Message cmnt = new MessageFactory().newCMNT(sig, commentSet.getString(\"msgText\"));\n cmnt.timestamp = Long.parseLong(commentSet.getString(\"creationTime\"));\n cmnt.signature = commentSet.getString(\"sig\");\n comments.add(cmnt);\n }\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return comments.toArray(new Message[0]); \n }", "protected abstract D getPrevious(D d);", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "public List<Forum> getListForumCreatedBetweenDateByIdForum(Date minDate,Date maxDate);", "public ArrayList GetNext(Dialogue cp) {\n ArrayList temp = new ArrayList();\r\n if (cp != null) {\r\n for (String s : cp.getPointer()) {\r\n // temp.add(conversation.getText(s));\r\n //at this point we have the text, now we need to update the pointers\r\n\r\n }\r\n } else {\r\n //if we're here, we're at the start of a conversation, get first part which should always be start\r\n //temp.add(conversation.start);\r\n }\r\n return temp;\r\n }", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public List<PostEntity> getInterval(int auth_id, String token, int s, int c, String order, String query, String date) {\n\n\n if (sessionRepository.findAll().stream().anyMatch(session -> session.getUser_id() == auth_id && session.getToken().equals(token))) {\n\n List<ProviderEntity> providerList = userService.getProviderListForUser(auth_id, token, auth_id, 0, 10);\n\n StringBuilder sb = new StringBuilder();\n\n for(var provider : providerList)\n {\n sb.append(\"list=\").append(provider.getId()).append(\"&\");\n }\n\n System.out.println(sb.toString());\n return ingestionLinker.getInterval(s, c, sb.toString(), order, query, date);\n }\n\n return null;\n }", "public boolean isBefore(MonthDay other) {\n if(month < other.month) {\n return true;\n } else if(month == other.month && day < other.day) {\n return true;\n } else {\n return false;\n }\n }", "List<PreparedStatement> getMarkMessageUnReadStatements(String id, String messageId,String forumId,String discussionId,Connection conn) throws Exception;", "public static Result prev() {\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString username = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision previousDecision = CMSGuidedFormFill.getPreviousDecision(\r\n\t\t\t\tformName, username, idCurrentNode);\r\n\r\n\t\treturn ok(backdrop.render(previousDecision));\r\n\t}", "public TimedVariable findPrev(Date ref)\n\t{\n\t\tif (vars.isEmpty())\n\t\t\treturn null;\n\t\tTimedVariable dummy = new TimedVariable(0);\n\t\tdummy.setTime(ref);\n\t\tint idx = Collections.binarySearch(vars, dummy, tvComparator);\n\t\tif (idx < 0)\n\t\t\tidx = (-idx) - 1;\n\n\t\t// The 'insertion point' would be the next one, so subtract one.\n\t\t// If now less than zero, there are no vars prev to 'sec'.\n\t\tif (--idx < 0)\n\t\t\treturn null;\n\t\treturn vars.get(idx);\n\t}", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "Iterable<Comment> findByArticleId(int articleId);", "private List<String> getAllConnectionsFromComputedSimilarityThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfCS = new ArrayList<>();\n for (BlockPair blockPairsCS : blockPairs_computedSimilarity) {\n if (blockPairsCS.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfCS.add(blockPairsCS);\n }\n }\n\n // get all connections from computed similarity that are subject of investigation\n List<String> connectionsInCS = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfCS) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInCS.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n (blockPair.leftBlock.postBlock.getSucc() != null ? blockPair.leftBlock.postBlock.getSucc().getLocalId() : null)\n );\n }\n return connectionsInCS;\n }", "default CompletableFuture<ArchivedThreads> getPublicArchivedThreads(long before) {\n return getPublicArchivedThreads(before, null);\n }", "@Test\n public void testYesterdayOrBetterComparision() {\n Calendar quietAllowedForFeature = Calendar.getInstance(TimeZone.getTimeZone(\"America/Chicago\"));\n quietAllowedForFeature.setTimeInMillis(DateHelper.MILLIS_PER_DAY * 2);\n // midnight 'now' user local time\n quietAllowedForFeature = DateHelper.asDay(quietAllowedForFeature);\n // midnight day before user local time\n quietAllowedForFeature.add(Calendar.DATE, -1); //1 days quiet ok; add this as per feature setting?\n // last rec'd as user local time\n Date userLastMessageReceived = new Date(DateHelper.MILLIS_PER_DAY * 3);\n // if any messages from module after midnight yesterday (any messages yesterday or newer)\n //System.out.println(quietAllowedForFeature);\n //System.out.println(userLastMessageReceived);\n assertTrue(userLastMessageReceived.after(quietAllowedForFeature.getTime()));\n }", "public Set<Vertex> pre(Vertex start){\n\t\tSet<Vertex> reach = new HashSet<Vertex>();\n\t\tif(this.edgesByEnd.get(start) == null)\n\t\t\treturn reach;\n\t\tfor(LabeledEdge trans : this.edgesByEnd.get(start)){\n\t\t\treach.add(trans.getStart());\n\t\t}\n\t\treturn reach;\n\t}", "public Version getPrev(){\n\t\treturn prev;\n\t}", "@Query(\"SELECT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.exerciseGroup eg LEFT JOIN FETCH eg.exam e WHERE e.endDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllWithEagerExamByExamEndDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);", "public void setWallElementsFromEvent(){\r\n\t\twallElements.addAll(event.getPosts());\r\n\t\tCollections.sort(wallElements, new Comparator<Object>() {\r\n\t\t\t\r\n\t\t\tpublic int compare(Object o1, Object o2) {\r\n\t\t\t\tDate o1createDate = ((EventPostSO)o1).getCreateDate();\r\n\t\t\t\t\t\t\r\n\t\t\t\tDate o2createDate = ((EventPostSO)o2).getCreateDate();\r\n\t\t\t\tif (o1createDate == null || o2createDate == null)\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\treturn o2createDate.compareTo(o1createDate);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic Position<E> before(Position<E> p) throws IllegalArgumentException {\n\t\tif (this.first() == p) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn convert(p).prev;\n\t}" ]
[ "0.60658026", "0.59028035", "0.5573224", "0.5418044", "0.48059407", "0.47666252", "0.46175432", "0.45157817", "0.45035368", "0.44996798", "0.4436382", "0.44319442", "0.43447232", "0.43413872", "0.43301007", "0.42880163", "0.4241118", "0.4207878", "0.4182605", "0.41597763", "0.4154778", "0.41461205", "0.41400456", "0.41308832", "0.40823627", "0.40737155", "0.4063765", "0.40526456", "0.40349624", "0.40206483", "0.40154567", "0.39980772", "0.3994852", "0.39834216", "0.39827988", "0.39762625", "0.3962326", "0.39318871", "0.39295542", "0.39273942", "0.3922282", "0.39187172", "0.3916152", "0.39118883", "0.39111188", "0.39107957", "0.39093035", "0.39043632", "0.38909674", "0.3875348", "0.38721356", "0.386698", "0.38573918", "0.38427117", "0.38401803", "0.3836632", "0.383245", "0.38323203", "0.38297647", "0.38256627", "0.38255396", "0.38207975", "0.38155985", "0.38142136", "0.38117632", "0.38104188", "0.38051814", "0.38051304", "0.37994945", "0.3790885", "0.37760448", "0.37743843", "0.37689224", "0.37679952", "0.3765961", "0.37609684", "0.37549245", "0.3753556", "0.37527668", "0.37516418", "0.37514448", "0.37461635", "0.3740175", "0.3735675", "0.3734575", "0.37301534", "0.37274018", "0.3726822", "0.3722834", "0.3722118", "0.37208173", "0.37158754", "0.3709495", "0.3708741", "0.370668", "0.3706483", "0.3705499", "0.370455", "0.37038565", "0.37020418" ]
0.60863084
0
Removes all the vcms discussions where articleId = &63; and groupId = &63; and language = &63; and approved = &63; from the database.
public void removeByA_P_L_A(java.lang.String articleId, long groupId, java.lang.String language, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "public java.util.List<VcmsDiscussion> findAll();", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "void deleteAllChallenges();", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public void deleteAllArticles();", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public static Boolean deleteAllDraftMessage() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM drafts\");\r\n\t\t\t//Log.d(\"DRAFT DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"DRAFT DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "void deleteAllCommentsOfProject(int projectId) throws SQLException;", "@Override\r\n\t@Transactional\r\n\tpublic void deleteAll() {\n\t\ttopicContentDao.deleteAll();\r\n\t}", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "@Before\n public void cleanConversations() {\n restController.deleteAllConvoMsgsForBlog(MAIN_BLOG_NAME);\n restController.deleteAllConversationsForBlog(MAIN_BLOG_NAME);\n }", "public void deleteMessages() {\n\t\tmessageDAO.modifyMessageList(currentContact.getMsgId(), new LinkedList<Mensaje>());\n\t\tcurrentContact.removeMessages();\n\t\tcontactDAO.modifyContact(currentContact);\n\t\t// Groups share the message list, only single contacts has to be updated\n\t\tif (currentContact instanceof ContactoIndividual) {\n\t\t\tUsuario user = userCatalog.getUser(currentContact.getUserId());\n\t\t\tOptional<Contacto> result = user.getContacts().stream().filter(c -> c.getUserId() == currentUser.getId())\n\t\t\t\t\t.findFirst();\n\t\t\tif (!result.isPresent())\n\t\t\t\treturn;\n\t\t\tmessageDAO.modifyMessageList(result.get().getMsgId(), new LinkedList<Mensaje>());\n\t\t\tresult.get().removeMessages();\n\t\t\tcontactDAO.modifyContact(result.get());\n\t\t}\n\t}", "List<PreparedStatement> getUndeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "@Override\n\tpublic void runPrune(String forumPath) throws Exception {\n\n\t}", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<PreparedStatement> getMarkMessageUnReadStatements(String id, String messageId,String forumId,String discussionId,Connection conn) throws Exception;", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "List<PreparedStatement> getDeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }", "public void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void removeByA_A(java.lang.String articleId, boolean approved);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Test\n public void removeAll_with_workflow_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addWfToDb(0);\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n response = callAPI(VERB.GET, \"/wf/\", null);\n status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(1, readWorkflowList.size());\n }", "@Override\n\tpublic void removeByG_L(long groupId, String language) {\n\t\tfor (VcmsPortion vcmsPortion : findByG_L(groupId, language,\n\t\t\t\tQueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "public void deleteLanguages(){\n editor.remove(PRIMARY_LANGUAGE);\n editor.remove(SECONDARY_LANGUAGE);\n editor.apply();\n }", "List<PreparedStatement> getDeleteForumStatements(String forumId,Connection conn) throws Exception;", "public void deleteAllFromSubCategory(int id) throws SQLException {\n\n Connection connection = database.getConnection();\n\n PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM posts WHERE threadId IN(SELECT threadId FROM threads WHERE subCategoryId = ?); \");\n stmt.setInt(1, id);\n\n stmt.execute();\n stmt.close();\n connection.close();\n }", "public void removeByP_L(long groupId, java.lang.String language);", "public void removeByArticle(java.lang.String articleId);", "public void removeByArticle(java.lang.String articleId);", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"DELETE FROM issue_table\")\n void deleteAll();", "public void deleteForum(Forum forum);", "public static void removeAllGroupChatInvitationsInMms() {\n Logger.v(TAG, \"removeAllGroupChatInvitationsInMms entry\");\n ContentResolver contentResolver = MediatekFactory\n .getApplicationContext().getContentResolver();\n contentResolver.delete(PluginUtils.SMS_CONTENT_URI, Sms.ADDRESS\n + \" LIKE '\" + GROUP_CONTACT_STRING_BEGINNER\n + GROUP_CHAT_INVITATION_TAG_BEGINNER + \"%'\", null);\n }", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void removeAllContentGroupDescription() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONTENTGROUPDESCRIPTION);\r\n\t}", "@Test\n public void testRemoveAllAttachmentsFromAnIssue() {\n System.out.println(\"removeAllAttachmentsFromAnIssue\");\n User user = createUser(\"ionut1765\", \"i56723321\", \"io6t123321@mail6\", \"12345\");\n String content = \"io567321\";\n String title = \"t567itle64\";\n IssueState state = IssueState.OPEN;\n\n NewIssueDTO issueDto = createIssueDTO(title, content, state, new ArrayList<Long>(), new ArrayList<Long>());\n\n Long issueId = issueService.createIssueFromIssueDTO(issueDto, user);\n Issue issue = issueService.getIssueById(issueId);\n\n issueService.removeAllAttachmentsFromAnIssue(issueId);\n List<Label> result = issueService.getLabelsByIssueId(issue);\n\n assertTrue(result.isEmpty());\n }", "private void clearContentIdToEmbeddingTokens() {\n contentIdToEmbeddingTokens_ = emptyProtobufList();\n }", "public static void cleanChanList() {\n\t\tArrayList<ChatChannel> currentChannels = new ArrayList<ChatChannel>();\n\t\tfor (int i = 0; i < channels.size(); i++) {\n\t\t\tcurrentChannels.add(channels.get(i));\n\t\t}\n\t\t\n\t\t//loop through the new array list\n\t\tfor (ChatChannel channel: currentChannels) {\n\t\t\tboolean remove = true;\n\t\t\tif (!channel.modes.contains(ChatChannel.Mode.PERSIST)) {\n\t\t\t\t//Not persist. Check the players\n\t\t\t\tfor (int f = 0; f < PlayerManager.players.size(); f++){\n\t\t\t\t\tChatPlayer player = PlayerManager.players.get(f);\n\t\t\t\t\t\n\t\t\t\t\t//check if in channel or listening\n\t\t\t\t\tif (player.listening.contains(channel.name.toLowerCase()) || player.listening.contains(channel.name.toLowerCase())){\n\t\t\t\t\t\tremove = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremove = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (remove) {\n\t\t\t\tremoveChannel(channel.name);\n\t\t\t\tSystem.out.println(\"Remove channel: \"+channel.name);\n\t\t\t}\n\t\t}\n\t}", "int deleteByExample(DiscussExample example);", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Test\n public void markAllConversationsUnhidden() {\n String participant1 = \"participant1\";\n String participant2 = \"participant2\";\n\n Conversation convo1 = new Conversation();\n convo1.setId(1L);\n convo1.setParticipant(participant1);\n convo1.setHideConversation(true);\n restController.createConversationForBlog(MAIN_BLOG_NAME, convo1);\n Conversation convo2 = new Conversation();\n convo2.setId(2L);\n convo2.setParticipant(participant2);\n convo2.setHideConversation(true);\n restController.createConversationForBlog(MAIN_BLOG_NAME, convo2);\n\n List<Conversation> allConvos = restController.getAllConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(allConvos).isNotNull();\n assertThat(allConvos.size()).isEqualTo(2);\n\n List<Conversation> allUnHiddenConvos = restController.getUnhiddenConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(allUnHiddenConvos).isNotNull();\n assertThat(allUnHiddenConvos.size()).isEqualTo(0);\n\n restController.unignoreAllConversationsForBlog(MAIN_BLOG_NAME);\n\n List<Conversation> finalList = restController.getUnhiddenConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(finalList).isNotNull();\n assertThat(finalList.size()).isEqualTo(2);\n }", "public boolean deleteAllMessages() throws SQLException{\n boolean areDeleted;\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n areDeleted= database.delete(\"Message\", null, null)>0;\n\n dbH.close();\n return areDeleted;\n\n }", "public VcmsDiscussion create(java.lang.String discussionId);", "@Override\n\tpublic int deleteCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tresult = this.delete(\"deleteCommunity\", params);\n\t\treturn result;\n\t}", "public void deleteDiscussionTopic(IDiscussionTopic topic)\n throws OculusException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@WorkerThread\n public void deleteAllArticles(final Runnable onComplete) {\n // we delete all articles on a background thread.\n mExecutor.execute(new Runnable() {\n @Override\n public void run() {\n mArticleDao.deleteAllArticles();\n onComplete.run();\n }\n });\n }", "@Test\n public void removeAll_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }", "public static void deleteExample() throws IOException {\n\n Neo4jUtil neo4jUtil = new Neo4jUtil(\"bolt://localhost:7687\", \"neo4j\", \"neo4jj\" );\n\n Langual.getAllLangualList().forEach(langual -> {\n String cmd = \"MATCH (n:Langual)-[r:lang_desc]-(b:Langdesc) where n.factorCode='\"\n + langual.getFactorCode().trim()\n + \"' delete r\";\n neo4jUtil.myNeo4j(cmd);\n System.out.println(cmd);\n });\n }", "public boolean delete(Connection db) throws SQLException {\n boolean commit = true;\n Statement st = null;\n ResultSet rs = null;\n\n try {\n commit = db.getAutoCommit();\n\n //Check to see if a message is being used by any unfinished campaigns\n //If so, the message can't be deleted\n inactiveCount = 0;\n st = db.createStatement();\n rs = st.executeQuery(\n \"SELECT COUNT(*) AS message_count \" +\n \"FROM campaign \" +\n \"WHERE message_id = \" + this.getId() + \" \" +\n \"AND status_id <> \" + Campaign.FINISHED);\n rs.next();\n inactiveCount = rs.getInt(\"message_count\");\n rs.close();\n if (inactiveCount > 0) {\n st.close();\n return false;\n }\n\n //If not, then the message can be deleted because a copy is made for\n //activated campaigns\n if (commit) {\n db.setAutoCommit(false);\n }\n st.executeUpdate(\"DELETE FROM contact_message WHERE message_id = \" + this.getId());\n MessageAttachmentList attachmentList = new MessageAttachmentList();\n attachmentList.delete(db, Constants.MESSAGE_FILE_ATTACHMENTS, this.getId());\n st.executeUpdate(\"DELETE FROM \" + DatabaseUtils.addQuotes(db, \"message\") + \" WHERE id = \" + this.getId());\n st.close();\n if (commit) {\n db.commit();\n }\n } catch (SQLException e) {\n if (commit) {\n db.rollback();\n }\n throw new SQLException(e.toString());\n } finally {\n if (commit) {\n db.setAutoCommit(true);\n }\n }\n return true;\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "protected void processVerifyPrune(Context context,\n HttpServletRequest request, HttpServletResponse response,\n SubmissionInfo subInfo, boolean multipleTitles,\n boolean publishedBefore, boolean multipleFiles)\n throws ServletException, IOException, SQLException,\n AuthorizeException\n {\n // get the item to prune\n Item item = subInfo.getSubmissionItem().getItem();\n\n if (!multipleTitles && subInfo.getSubmissionItem().hasMultipleTitles())\n {\n item.clearDC(\"title\", \"alternative\", Item.ANY);\n }\n\n if (!publishedBefore && subInfo.getSubmissionItem().isPublishedBefore())\n {\n item.clearDC(\"date\", \"issued\", Item.ANY);\n item.clearDC(\"identifier\", \"citation\", Item.ANY);\n item.clearDC(\"publisher\", null, Item.ANY);\n }\n\n if (!multipleFiles && subInfo.getSubmissionItem().hasMultipleFiles())\n {\n // remove all but first bitstream from bundle[0]\n // FIXME: Assumes multiple bundles, clean up someday...\n // (only messes with the first bundle.)\n Bundle[] bundles = item.getBundles(\"ORIGINAL\");\n\n if (bundles.length > 0)\n {\n Bitstream[] bitstreams = bundles[0].getBitstreams();\n\n // Remove all but the first bitstream\n for (int i = 1; i < bitstreams.length; i++)\n {\n bundles[0].removeBitstream(bitstreams[i]);\n }\n }\n }\n }", "void clearPersistentNotifications();", "public void deleteDrafts(final Calendar deletedOn);", "public void removeAllOntologies20070510nid3Language() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ONTOLOGIES20070510NID3LANGUAGE);\r\n\t}", "@Override\n\tpublic void removeByG_L_C(long groupId, String language,\n\t\tboolean categorizable) {\n\t\tfor (VcmsPortion vcmsPortion : findByG_L_C(groupId, language,\n\t\t\t\tcategorizable, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "@RequestMapping(value = \"/deleteAllmensajes\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> deleteAll(){\n\t\tList<Mensaje> mensajeBorrar = chatDAO.getAllMessages();\n\t\tchatDAO.deleteAll(mensajeBorrar);\n\t\treturn new ResponseEntity<Void>(HttpStatus.OK);\n\t}", "public void unblock(){ \n blocked = false;\n blockedMssg = \"\";\n\n // update todos los votos como colectivo\n for (Collective c: memberCollectives) c.updateFamilyVotes();\n\n // update todos los votos como usuario\n for (Project p: getVotedProjects()) p.updateVotes();\n }", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public abstract void removeAllAttachments();", "void removeAll(){\n\t\tmessages.clear();\n\t}", "public void deleteForumById(Long idForum);", "protected void removeOrphanedMessages() {\r\n Enumeration e = orphanedMessageSet.elements();\r\n MessageToken[] orphanedTokens = new MessageToken[orphanedMessageSet.size()];\r\n int index = 0;\r\n while(e.hasMoreElements()) {\r\n FolderMessage message = (FolderMessage)e.nextElement();\r\n folderMessageCache.removeFolderMessage(folderTreeItem, message);\r\n orphanedTokens[index++] = message.getMessageToken();\r\n }\r\n orphanedMessageSet.clear();\r\n mailStoreServices.fireFolderExpunged(folderTreeItem, orphanedTokens, new MessageToken[0]);\r\n }", "public void pruneEnvironments(final int numToPrune) {\n final SQLiteDatabase db = this.helper.getWritableDatabase();\n db.beginTransaction();\n try {\n db.delete(\"environments\",\n \"id in (SELECT env \" +\n \" FROM events \" +\n \" GROUP BY env \" +\n \" ORDER BY MAX(date), env \" +\n \" LIMIT \" + numToPrune + \")\",\n null);\n db.setTransactionSuccessful();\n } finally {\n db.endTransaction();\n }\n }", "public Discussion[] getDiscussions() throws DAOException;", "List<PreparedStatement> getMoveDiscussionStatements(String discussionId, String currentForumId,String newForumId,Connection conn) throws Exception;", "public void remove(MongoDBCritera critera);", "@PrePersist\r\n @PreUpdate\r\n public void removeEmptyComments()\r\n {\r\n List<Comment> empty = new ArrayList<Comment>();\r\n for (Comment current : this.getComments())\r\n {\r\n current.removeEmptyComments();\r\n if (current.getText() == null || current.getText().isEmpty())\r\n {\r\n empty.add(current);\r\n }\r\n }\r\n\r\n this.getComments().removeAll(empty);\r\n }", "@Override\r\n\tpublic int deleteArticleCommentsAll(int[] list) {\n\t\tint n=0;\r\n\t\tfor (int i = 0; i < list.length; i++) {\r\n\t\t\tcommentsmapper.deleteArticleComments(list[i]);\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "private void removeContentIdToEmbeddingTokens(int index) {\n ensureContentIdToEmbeddingTokensIsMutable();\n contentIdToEmbeddingTokens_.remove(index);\n }", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public static void removeAll() {\n\t\t\n\t\tif(notificationsView != null) {\n\t\t\tComponent[] notifications = notificationsView.getComponents();\n\t\t\tfor(Component notification : notifications) {\n\t\t\t\tNotification n = (Notification) notification;\n\t\t\t\tif(n.expireOnDisconnect)\n\t\t\t\t\tn.removeNow();\n\t\t\t}\n\t\t}\n\t\t\n\t}" ]
[ "0.5963707", "0.5846572", "0.56587493", "0.55453503", "0.5502684", "0.5455724", "0.5395119", "0.530861", "0.5268727", "0.52463526", "0.5205316", "0.5128212", "0.5105514", "0.504642", "0.49844757", "0.49248624", "0.49199578", "0.49049905", "0.48892072", "0.48672804", "0.48291898", "0.48050693", "0.47857034", "0.47840685", "0.47832417", "0.47754106", "0.47674254", "0.4764488", "0.47536653", "0.4749798", "0.47445503", "0.47280037", "0.47204933", "0.4706721", "0.46979618", "0.46770808", "0.46690145", "0.46578255", "0.46572408", "0.46482608", "0.46232858", "0.46232858", "0.45909065", "0.45632505", "0.45615548", "0.45569822", "0.45517114", "0.45441344", "0.45392394", "0.4537373", "0.45156822", "0.45141596", "0.44914886", "0.44783998", "0.44781935", "0.44750443", "0.44750443", "0.44750443", "0.44750443", "0.44750443", "0.44750443", "0.44750443", "0.44750443", "0.44750443", "0.44750443", "0.44638985", "0.44530097", "0.4451456", "0.44497705", "0.44410098", "0.44385895", "0.4438395", "0.4435066", "0.4434348", "0.44338155", "0.44220507", "0.4420009", "0.44171017", "0.4405862", "0.44033873", "0.43864462", "0.43756318", "0.43670112", "0.43630415", "0.43525228", "0.43503407", "0.43411136", "0.4337787", "0.43354315", "0.43261442", "0.43230215", "0.43199432", "0.42997387", "0.42993245", "0.4292651", "0.4287113", "0.42745775", "0.42732492", "0.42667124", "0.4262734" ]
0.5290835
8
Returns the number of vcms discussions where articleId = &63; and groupId = &63; and language = &63; and approved = &63;.
public int countByA_P_L_A(java.lang.String articleId, long groupId, java.lang.String language, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "long countByExample(DiscussExample example);", "public int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "int commentsCount();", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public int countByP_L(long groupId, java.lang.String language);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public int countByArticle(java.lang.String articleId);", "public int countByArticle(java.lang.String articleId);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public int getCountForum();", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public int countByA_A(java.lang.String articleId, boolean approved);", "public int getSUB2AnonimCommentCount(WebElement article) {\n String countText = baseFunc.getElement(MOB_SUB2_ANON_ARTICLE_COUNT).getText();\n String count = countText.substring(countText.indexOf(\"(\") + 1, countText.indexOf(\")\"));\n return Integer.valueOf(count);\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "long countByExample(CmsChannelCriteria example);", "@Override\n\tpublic int getVideoCommentCount(long vid) {\n\t\treturn 0;\n\t}", "int countSelective(MemberAdvisoryComment record);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "int countByExample(CmsVoteTitleExample example);", "public int getNumberOfComments(ExoSocialActivity existingActivity);", "public java.util.List<VcmsDiscussion> findAll();", "int countByExample(TopicFragmentExample example);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);", "public int getAmendmentCount(int paraId);", "int postsCount();", "public int getNumAnnouncements(){\n return message.length;\n }", "public int getSUB2RegisteredCommentCount(WebElement article) {\n String countText = baseFunc.getElement(MOB_SUB2_REG_ARTICLE_COUNT).getText();\n String count = countText.substring(countText.indexOf(\"(\") + 1, countText.indexOf(\")\"));\n return Integer.valueOf(count);\n }", "int getContentIdToEmbeddingTokensCount();", "int countByExample(NewsInfoExample example);", "@Override\n\tpublic int countByG_L_C(long groupId, String language, boolean categorizable) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_G_L_C;\n\n\t\tObject[] finderArgs = new Object[] { groupId, language, categorizable };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_COUNT_VCMSPORTION_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_C_GROUPID_2);\n\n\t\t\tboolean bindLanguage = false;\n\n\t\t\tif (language == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_1);\n\t\t\t}\n\t\t\telse if (language.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindLanguage = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_C_CATEGORIZABLE_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tif (bindLanguage) {\n\t\t\t\t\tqPos.add(language);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(categorizable);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Query(\"select count(r) from Reply r group by r.comment\")\n\tCollection<Double> dashboardRepliesPerComment();", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "int countByExample(NewsExample example);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "int getMessageCount(@Nullable CompilerMessageCategory category);", "@Override\n\tpublic Integer queryNewsCount(News params) throws Exception {\n\t\treturn null;\n\t}", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "long countByExample(trackcommentExample example);", "int countByExample(FeiWenCommentExample example);", "public boolean hasMoreDiscussions();", "public int getTotalMessageCount(){\n Query query = new Query(\"Message\");\n Query query2 = new Query(\"Question\");\n PreparedQuery results = datastore.prepare(query);\n PreparedQuery results2 = datastore.prepare(query2);\n return results.countEntities(FetchOptions.Builder.withLimit(1000)) + results2.countEntities(FetchOptions.Builder.withLimit(1000));\n}", "int countByExample(WxNewsExample example);", "@Override\n\tpublic int countByG_L(long groupId, String language) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_G_L;\n\n\t\tObject[] finderArgs = new Object[] { groupId, language };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_VCMSPORTION_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_GROUPID_2);\n\n\t\t\tboolean bindLanguage = false;\n\n\t\t\tif (language == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_1);\n\t\t\t}\n\t\t\telse if (language.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindLanguage = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tif (bindLanguage) {\n\t\t\t\t\tqPos.add(language);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getNewsindentifydetailCount();", "Integer countAnswersByQuestionId(String questionId);", "@Sql(\"SELECT count(m.id) FROM message m WHERE NOT CASEWHEN(m.user_id = 0, false, (SELECT iu.ignored FROM user iu WHERE iu.id = m.user_id)) AND (SELECT tc.ignored FROM topic_cache tc WHERE tc.topic_id = CASEWHEN(m.topic_id = 0, m.id, m.topic_id)) = false AND m.user_id <> m.parent_user_id AND m.parent_user_id = ? AND m.forum_id > 0\")\r\n int getUserReplies(int ownId) throws StorageException;", "int getConceptLanguagesCount();", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "int getVotes(QuestionId questionId);", "long countByExample(ArticleDoExample example);", "@Override\n\tpublic int totalContentCount(String searchVar) {\n\t\treturn template.selectOne(\"board.totalContentCount\",searchVar);\n\t}", "int getDetectionRulesCount();", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);", "public int getPublishedModulesCounts(String buildName, String date) {\n ResultSet rs = null;\n String buildQuery = \"SELECT count(*) as cnt FROM build_modules\\n\" +\n \"left join builds on builds.build_id=build_modules.build_id \\n\" +\n \"where builds.build_number=? and builds.build_date=?\";\n try {\n rs = jdbcHelper.executeSelect(buildQuery,buildName,date);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "public int countArticle(){\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n Cursor Count= sqLiteDatabase.rawQuery(\"select count(*) from\"+ ConfigDAO.TABLE_AISLE, null);\n Count.moveToFirst();\n int count= Count.getInt(0);\n Count.close();\n return count;\n }", "public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "int countByExample(ComplainNoteDOExample example);", "int countByExample(CommentLikeExample example);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);", "public long getPublicQuestionCount() {\n return Question.count(\"select count(q.id) from Question q, User u, Company c \" +\n \"where q.user = u and u.company = c and u.company = ? and q.status = ? and active = ?\",\n this, QuestionStatus.ACCEPTED, true);\n }", "public Integer countNews(String sql) {\n return newsDao.countNews(sql);\n }", "@Override\n\tpublic int getSubVideoCommentCount(long subVid) {\n\t\treturn 0;\n\t}", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);", "public String countByExample(BsNewsExample example) {\n BEGIN();\n SELECT(\"count(*)\");\n FROM(\"bs_news\");\n applyWhere(example, false);\n return SQL();\n }", "public int countBycourse_id(long course_id);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public int getNumberOfPostOnBlog(){\n List<BlogPost>blogs = blogPostFacade.findAll();\n int k=0;\n for(BlogPost temp: blogs){\n if(temp.getBlog().getId().equals(blogPost.getBlog().getId())){\n k++;\n System.out.println(\"Mes \"+temp.getMessage());\n }\n \n }\n return k ;\n }", "public int getNumberOfNewerComments(ExoSocialActivity existingActivity, Long sinceTime);", "public int getNumberOfActivitiesByPoster(Identity ownerIdentity, Identity viewerIdentity);", "@ApiModelProperty(example = \"1\", value = \"The count of affected Channels across all products\")\n public Integer getAffectedChannelCount() {\n return affectedChannelCount;\n }", "long countWorkflows();", "int getDocumentCount();", "static long reviewCount(Context context) {\n SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context);\n return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW);\n }", "public int getProblemCount();", "int getVulnerabilityReportsCount();", "public int countByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int getNumberOfNewerComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment);", "long countByPostId(@NonNull @Param(\"postId\") Integer postId);", "public int findTotalDisplaySubjectsByPaperId( Integer paperId ) throws DAOException;", "long countByExample(WpPostsExample example);", "@Override\n\tpublic int getTotalCount(int boardId) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\tint totalCount = 0;\n\t\t\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\t\n\t\t\tString query = \"SELECT COUNT(comment_id)\t\" +\n\t\t\t\t\t\t \"FROM scomment\t\t\t\t\" +\n\t\t\t\t\t\t \"WHERE board_id = ?\t\t\t\" +\n\t\t\t\t\t\t \"AND isdeleted is NULL\t\t\";\n\t\t\tpstmt = conn.prepareStatement(query);\n\t\t\t\n\t\t\tpstmt.setInt(1, boardId);\n\t\t\t\n\t\t\trs = pstmt.executeQuery();\n\t\t\t\n\t\t\tif (rs.next()) {\n\t\t\t\ttotalCount = rs.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t\tif (conn != null) conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"error:\" + e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn totalCount;\n\t}", "long countByExample(OnlineExample example);", "private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}", "int getMessageIdCount();", "public int getAllCount(){\r\n\t\tString sql=\"select count(*) from board_notice\";\r\n\t\tint result=0;\r\n\t\tConnection conn=null;\r\n\t\tStatement stmt=null;\r\n\t\tResultSet rs=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tstmt=conn.createStatement();\r\n\t\t\trs=stmt.executeQuery(sql);\r\n\t\t\trs.next();\r\n\t\t\tresult=rs.getInt(1);\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, stmt, rs);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "int getChannelStatisticsCount();", "int getGroupCountByStructureId(Integer structureId);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "int countByExample(PmPostExample example);", "public String getNumContentResources4Sql()\r\n \t{\r\n \t\treturn \"select count(IN_COLLECTION) from CONTENT_COLLECTION where IN_COLLECTION = ?\";\r\n \t}", "int getParticipantsCount();", "int getParticipantsCount();" ]
[ "0.6228483", "0.5817921", "0.5813482", "0.5792044", "0.5569135", "0.55558854", "0.55281746", "0.5512888", "0.55003726", "0.54914", "0.5491077", "0.54663146", "0.546522", "0.5413584", "0.53788257", "0.5373296", "0.5361696", "0.53451675", "0.53270113", "0.5320649", "0.5284579", "0.526482", "0.52282494", "0.52242947", "0.52137196", "0.5203281", "0.51965064", "0.5157695", "0.5143616", "0.5140238", "0.51368463", "0.5123176", "0.51124483", "0.5111846", "0.5100481", "0.5099074", "0.50939935", "0.50800234", "0.50755227", "0.5071387", "0.50664407", "0.5063365", "0.50619596", "0.5051416", "0.5049563", "0.503412", "0.50298595", "0.5026645", "0.50193274", "0.5010663", "0.5002334", "0.4990073", "0.49880233", "0.49868357", "0.4983239", "0.49748376", "0.4964378", "0.4962856", "0.49557716", "0.4949224", "0.49181935", "0.4908222", "0.49077177", "0.49076578", "0.48953393", "0.4893687", "0.48919103", "0.4891823", "0.48865518", "0.48788473", "0.48689845", "0.48673669", "0.4865718", "0.48476058", "0.48320225", "0.4829999", "0.48297775", "0.48271742", "0.4815084", "0.48148087", "0.4808485", "0.480709", "0.48023823", "0.48003677", "0.47854114", "0.4782464", "0.4771992", "0.4770751", "0.47685933", "0.47608587", "0.47546524", "0.47532228", "0.47522625", "0.47519514", "0.47494313", "0.47450393", "0.47445035", "0.47428858", "0.47379345", "0.47379345" ]
0.64715976
0
Returns all the vcms discussions where articleId = &63; and approved = &63;.
public java.util.List<VcmsDiscussion> findByA_A( java.lang.String articleId, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public java.util.List<VcmsDiscussion> findAll();", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Iterable<Comment> findByArticleId(int articleId);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Discussion[] getDiscussions() throws DAOException;", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Discussion[] getDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "@RequestMapping(value = { \"/comment/news/{id}\", \"/komentar/vest/{id}\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllApprovedCommentsForGivenNews(\r\n\t\t\t@PathVariable(value = \"id\") Integer newsID) {\r\n\t\treturn new ResponseEntity(commentRepository.findByNewsIDAndCommentState(newsID, CommentState.APPROVED),\r\n\t\t\t\tHttpStatus.OK);\r\n\t}", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "List<Content> getContentListForApproval();", "@RequestMapping(value = { \"/comment\", \"/komentar\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllApproved() {\r\n\r\n\t\treturn new ResponseEntity(commentRepository.findByCommentState(CommentState.APPROVED), HttpStatus.OK);\r\n\t}", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<Comment> getComments(long mediaId);", "public List<Forum> getListForumWithStatus(String viewStatus);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public boolean hasMoreDiscussions();", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "List<KnowledgeComment> selectAll();", "public List<Amendment> filterAmendments(int paraId);", "List<Discuss> selectByExample(DiscussExample example);", "public List<GLJournalApprovalVO> getActivity(String OrgId, String ClientId, String actId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT C_Activity.C_Activity_ID AS ID,C_Activity.NAME FROM C_Activity WHERE AD_ORG_ID IN (\"\n + OrgId + \") \" + \" AND AD_CLIENT_ID IN (\" + ClientId + \") AND C_Activity_ID IN (\"\n + actId + \") \";\n st = conn.prepareStatement(sqlQuery);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setName(rs.getString(2));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "public List<Comment> getAllComments(long messageId){\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\n\t\treturn new ArrayList<Comment>(comments.values());\n\t\t\n\t}", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int countByA_A(java.lang.String articleId, boolean approved);", "public VcmsDiscussion create(java.lang.String discussionId);", "public List<BlogComment> getCommentsByPost(Long id);", "List<Comment> findCommentsToLifeHack(long id) throws DaoException;", "List<PreparedStatement> getMarkDiscussionReadStatements(String userId, String discussionId,String forumId,Connection conn) throws SQLException;", "@GetMapping(\"/searchapproval\")\n\t\tpublic List<Approval> searchApproval(@RequestParam(\"claimId\") int claimId)\n\t\t{\n\t\t\t\n\t\t\tList<Approval> approval=service.searchApproval(claimId);\n\t\t\treturn approval;\n\t\t}", "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public List<Comment> getAllComments(long messageId) {\r\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\r\n\t\treturn new ArrayList<Comment>(comments.values());\r\n\t}", "@Query(value = \"SELECT * FROM (reviewer AS r JOIN user AS u ON user_ID=reviewer_ID) WHERE r.reviewer_ID IN (SELECT rp.reviewer_ID FROM review_paper AS rp WHERE rp.paper_ID=?1 AND accept=1)\",\n nativeQuery = true)\n List<Reviewer> findApprovedReviewersAcceptPaper(int paper_id);", "@GetMapping(value = \"/{id}/relevant\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Messenger> getManyExcludeIdRelateCategoryId(\n\t\t\t@PathVariable(name = \"id\") int articleId,\n\t\t\t@RequestParam(name = \"limit\", required = false, defaultValue = \"3\") int limit) {\n\t\t\n\t\tif (limit <= 0)\n\t\t\treturn new ResponseEntity<Messenger>(HttpStatus.NOT_ACCEPTABLE);\n\t\t\n\t\tif (!detailedArticleRepository.checkOneById(articleId))\n\t\t\treturn new ResponseEntity<Messenger>(HttpStatus.NOT_FOUND);\n\t\t\n\t\tList<TruncatedArticleSendover> articleList = articleService.getManyExcludeIdRelateCategoryId(articleId, limit);\n\t\treturn new ResponseEntity<Messenger>(new Messenger(articleList), HttpStatus.OK);\n\t}", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "public String showAnnouncements() {\n String output = \"\";\n\n // Get\n List<Models.Announcement> fromInstitution = em.createNativeQuery(\"select a.* from announcement a, institution i, institutionparticipant ipa, participant p where a.institutioncode = i.institutioncode and i.institutioncode = ipa.institutioncode and ipa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromProgramme = em.createNativeQuery(\"select a.* from announcement a, programme pg, programmeparticipant ppa, participant p where a.programmecode = pg.programmecode and pg.programmecode = ppa.programmecode and ppa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromCourse = em.createNativeQuery(\"select a.* from announcement a, course c, courseparticipant cpa, participant p where a.coursecode = c.coursecode and c.coursecode = cpa.coursecode and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromClass = em.createNativeQuery(\"select a.* from announcement a, class c, classparticipant cpa, participant p where a.classid = c.classid and c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n\n return displayAnnouncements(fromInstitution, fromProgramme, fromCourse, fromClass);\n }", "List<CommunityInform> selectAll();", "public List<Course> findByTopicId(int topicId);", "public IDiscussionTopicList getAttachedDiscussionTopics(boolean edit)\n throws OculusException;", "@Override\n\tpublic JCRPageList getPosts(String categoryId, String forumId,\n\t\t\tString topicId, String isApproved, String isHidden,\n\t\t\tString strQuery, String userLogin) throws Exception {\n\t\treturn null;\n\t}", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getCommentByIdTvShow(Long idTvShow) {\n Session session = sessionFactory.getCurrentSession();\n String hql = \"from Comment s where s.tvShow.id = :idtv\";\n return session.createQuery(hql, Comment.class)\n .setParameter(\"idtv\", idTvShow)\n .getResultList();\n }", "private List<String> getAllConnectionsFromComputedSimilarityThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfCS = new ArrayList<>();\n for (BlockPair blockPairsCS : blockPairs_computedSimilarity) {\n if (blockPairsCS.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfCS.add(blockPairsCS);\n }\n }\n\n // get all connections from computed similarity that are subject of investigation\n List<String> connectionsInCS = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfCS) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInCS.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n (blockPair.leftBlock.postBlock.getSucc() != null ? blockPair.leftBlock.postBlock.getSucc().getLocalId() : null)\n );\n }\n return connectionsInCS;\n }", "List<Comments> selectAll();", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\r\n\tpublic List<ManageNursingContentVO> selectByExampleAndProject(\r\n\t\t\tString nursingNurseid) throws Exception {\n\t\treturn mContentMapper.selectByExampleAndProject(nursingNurseid);\r\n\t}", "List<UserContentAccess> findContentAccessForApprover(@NonNull @Param(\"approver\") User approver);", "public List<ExoSocialActivity> getComments(ExoSocialActivity existingActivity, int offset, int limit);", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public IDiscussionTopicList getAttachedDiscussionTopics()\n throws OculusException;", "@Query(value = \"SELECT * FROM (reviewer AS r JOIN user AS u ON user_ID=reviewer_ID) WHERE r.reviewer_ID IN (SELECT rp.reviewer_ID FROM review_paper AS rp WHERE rp.paper_ID=?1 AND accept=0 AND reject=0)\",\n nativeQuery = true)\n List<Reviewer> findApprovedReviewersUnDecided(int paper_id);", "List<FAQModel> getFAQs();", "@Secured({ \"ROLE_ADMIN\" })\r\n\t@RequestMapping(value = { \"/admin/comment/news/{id}\", \"/admin/komentar/vest/{id}\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllCommentForGivenNews(@PathVariable(value = \"id\") Integer newsID) {\r\n\t\treturn new ResponseEntity(commentRepository.findByNewsID(newsID), HttpStatus.OK);\r\n\t}", "public List<Object> getListForum();", "@Override\n\tpublic List<CommentVnEntity> GetCommentByMotel(Integer motel_id) {\n\t\treturn commentDao.ListCommentByMotel(motel_id);\n\t}", "@Override\n\tpublic List<Commune> getAllCommune(String districtId) {\n\t\tList<Commune> com = communeRepo.findAll();\n\t\tList<Commune> tmp = new ArrayList<Commune>();\n\t\tfor(Commune a: com) {\n\t\t\tif(a.getDistrict().getDistrictId().equals(districtId))\n\t\t\t\ttmp.add(a);\n\t\t}\n\t\treturn tmp;\n\t}", "public List<Forum> searchForumByForumName(String forumName);", "public Iterable<Content> findAllFeaturedContent(){\n\n return contentRepository.findByIsFeatured(true);\n }", "@Test\n public void testDiscussionAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureDiscussionPermissions(testUser, category, data);\n\n // test access control\n assertTrue(accessControlService.canViewDiscussions(topic), \"Test user should be able to view discussion in topic!\");\n assertTrue(accessControlService.canAddDiscussion(topic), \"Test user should be able to create discussion in topic!\");\n assertFalse(accessControlService.canEditDiscussion(discussion), \"Test user should not be able to edit discussion in topic!\");\n assertFalse(accessControlService.canRemoveDiscussion(discussion), \"Test user should not be able to remove discussion from topic!\");\n }", "public String getDiscussion(){\n return discussion;\n }", "Bug getBugByIdWithCommentAndSubscriable(int id);", "public List<GLJournalApprovalVO> getActivityfromuniquecode(String OrgId, String ClientId,\n String actId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" select f.c_activity_id,act.name from fact_acct f join c_activity act on act.c_activity_id = f.c_activity_id WHERE f.AD_ORG_ID IN (\"\n + OrgId + \") \" + \" AND f.AD_CLIENT_ID IN (\" + ClientId\n + \") AND f.em_efin_uniquecode IN ('\" + actId\n + \"') and f.c_bpartner_id is not null and f.c_salesregion_id is not null and f.c_project_id is not null and f.c_campaign_id is not null and f.c_activity_id is not null and f.user1_id is not null and f.user2_id is not null limit 1\";\n st = conn.prepareStatement(sqlQuery);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setName(rs.getString(2));\n list.add(VO);\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "@Transactional\n\tpublic List<PostComment> findAll(ForumPost forumPost){\n\t\tQuery q = entityManager.createQuery(\"SELECT pc FROM PostComment pc WHERE pc.forumPost = :forumPost\");// \"SELECT p FROM Photo p WHERE p.name = :name\";\n\t\tq.setParameter(\"forumPost\", forumPost);\n\t\t\n//\t\tif (!q.getResultList().isEmpty())\n//\t\t\tphoto = (Photo)q.getResultList().get(0);\n//\t\treturn photo;\n\n\t\treturn (List<PostComment>)q.getResultList();\n\t}", "List<Comment> getCommentsOfProject(int projectId) throws SQLException;", "List<PreparedStatement> getMarkMessageReadStatements(String userId, String messageId,String forumId,String discussionId,Connection conn) throws SQLException;", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "public java.util.List<VcmsArticleType> findByArticle(\n\t\tjava.lang.String articleId);", "List<UserContentAccess> findContentAccess();", "@Query(value = \"SELECT * FROM (reviewer AS r JOIN user AS u ON user_ID=reviewer_ID) WHERE r.reviewer_ID IN (SELECT rp.reviewer_ID FROM review_paper AS rp WHERE rp.paper_ID=?1 AND reject=1)\",\n nativeQuery = true)\n List<Reviewer> findApprovedReviewersRejectPaper(int paper_id);", "void displayCommentsForPostWithId(String id);", "List<Article> selectAll();", "public Iterable<Content> findByActive(boolean active){\n\n return contentRepository.findByIsActive(active);\n }", "public void testGetAllToDoItemsEmailContentWithSelectedItems_activityIdSet()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", true, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", true, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", false, 2);\n\n\t\t// Act & Assert\n\t\tSpanned reportText = service.getAllToDoItemsEmailContent(new Long(listId));\n\n\t\tassertEquals(33, reportText.length());\n\t}", "@Override\n\tpublic List<String> getTagsByArticle(int aid) {\n\t\tString hql = \"select t.content from TagInfo as t,ArticleInfo as a where a.articleId= ? and a.tags.tagId = t.tagId\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\t//Query query = sessionFactory.getCurrentSession().createSQLQuery(sql);\n\t\tquery.setInteger(0, aid);\n\t\treturn query.list();\n\t}", "public List<Idea> getIdeasPublishedBetween(Calendar start, Calendar end) throws DataAccessException {\n List<Idea> ret = new ArrayList<>();\n if (!start.after(end)) {\n try {\n String queryStr = \"select i from Idea i \"\n + \"where i.publishedDate > start and \"\n + \"i.publishedDate < end\";\n Object res = em.createQuery(queryStr)\n .getResultList();\n ret = (List<Idea>) res;\n } catch (PersistenceException | EJBException pe) {\n throw new DataAccessException(pe, \"Error getting ideas between dates\");\n }\n }\n return ret;\n }", "public ArrayList<Article> getUnpublishedArticle(int authorID) throws SQLException {\r\n\t\tConnectionManager conn=null;\r\n\t\tArrayList<Integer> intArtID = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> finalselectedArticleID = new ArrayList<Integer>();\r\n\t\tArrayList<Article> unpubArticle = new ArrayList<Article>();\r\n\t\tString queryArticle = \"select ArticleAuthor.articleID from ArticleAuthor where ArticleAuthor.authorID =\" + authorID;\r\n\t\ttry {\r\n\t\t\tconn = new ConnectionManager();\r\n\t\t\tStatement st = conn.getInstance().getConnection().createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(queryArticle);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint articleId=rs.getInt(\"ArticleAuthor.articleID\");\r\n\t\t\t\tSystem.out.println(\"articleIDs aayi:\"+articleId);\r\n\t\t\t\tintArtID.add(articleId);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(intArtID);\r\n\t\t\trs.close();\r\n\t\t\tfor(int a: intArtID){\r\n\t\t\t\tStatement st1 = conn.getInstance().getConnection().createStatement();\r\n\t\t\t\tString selectQuery2 = \"Select articleID from Article where articleID!=\"+a;\r\n\t\t\t\tResultSet rs1 = st1.executeQuery(selectQuery2);\r\n\t\t\t\twhile(rs1.next()){\r\n\t\t\t\t\tint articleId=rs1.getInt(\"articleID\");\r\n\t\t\t\t\tif(!intArtID.contains(articleId)){\r\n\t\t\t\t\t\tif(!finalselectedArticleID.contains(articleId)){\r\n\t\t\t\t\t\t\tfinalselectedArticleID.add(articleId);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Final ids:\"+finalselectedArticleID);\r\n\t\t\tfor(int autID : finalselectedArticleID ){\r\n\t\t\t\tStatement st2 = conn.getInstance().getConnection().createStatement();\r\n\t\t\t\tString q = \"select articleID, title, summary from Article where articleID=\"+autID;\r\n\t\t\t\tResultSet rs2 = st2.executeQuery(q);\r\n\t\t\t\twhile (rs2.next()) {\r\n\t\t\t\t\tString unpublishedTitle = (String) rs2.getObject(\"title\");\r\n\t\t\t\t\tString unpublishedSummary = (String) rs2.getObject(\"summary\");\r\n\t\t\t\t\tint articeIde=rs2.getInt(\"articleID\");\r\n\t\t\t\t\tArticle article2 = new Article(articeIde, unpublishedTitle, unpublishedSummary);\r\n\t\t\t\t\tunpubArticle.add(article2);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(unpubArticle);\r\n\t\t\t\trs2.close();\r\n\t\t\t\tst2.close();\r\n\t\t\t}\r\n\t\t\tst.close();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tif (conn!=null){\r\n\t\t\t\tconn.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn unpubArticle;\r\n\t}", "@Override\n public List<Announcement> onLoadInBackground() {\n return databaseLoader.getChannelDBM().getAnnouncements(channelId);\n }", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "@Override\n public CommentThreadListResponse commentResponse(String videoID)\n throws GeneralSecurityException, IOException {\n YouTube ctService = getService();\n\n YouTube.CommentThreads.List req =\n ctService.commentThreads()\n .list(\"snippet, replies\")\n .setKey(DEVELOPER_KEY)\n .setVideoId(videoID)\n .setMaxResults(100L)\n .setModerationStatus(\"published\")\n .setTextFormat(\"plainText\");\n return req.execute();\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "List<String> viewPendingApprovals();" ]
[ "0.71327865", "0.66211736", "0.6546328", "0.63800275", "0.6334097", "0.6289242", "0.61288637", "0.60711", "0.5921481", "0.5856464", "0.5814826", "0.57010144", "0.56674916", "0.5666835", "0.55742836", "0.5460684", "0.54083663", "0.53466153", "0.53240395", "0.52649635", "0.5252365", "0.5197866", "0.5195729", "0.5154592", "0.51524365", "0.5114619", "0.5095191", "0.5050995", "0.49465966", "0.49310488", "0.4912557", "0.489493", "0.48751533", "0.4873158", "0.48320183", "0.4780303", "0.47739804", "0.47253168", "0.46514586", "0.4647378", "0.458489", "0.45837507", "0.45833564", "0.45764747", "0.45661908", "0.4542924", "0.45397627", "0.4535461", "0.45284355", "0.4522769", "0.4502522", "0.4500016", "0.44818607", "0.44794804", "0.44669452", "0.4457972", "0.44510144", "0.44450882", "0.4443112", "0.4438969", "0.4422249", "0.4421684", "0.44097283", "0.44029403", "0.44007862", "0.43858618", "0.4365908", "0.43604434", "0.43477452", "0.43467498", "0.43394658", "0.43350646", "0.43316805", "0.4329879", "0.43247637", "0.4311305", "0.43012175", "0.4296704", "0.42910236", "0.42864168", "0.42797604", "0.42793155", "0.4278547", "0.42734513", "0.42621455", "0.42587075", "0.4251569", "0.42503095", "0.424377", "0.42433754", "0.4239326", "0.42381868", "0.42301914", "0.42263633", "0.42251658", "0.42127788", "0.42112038", "0.42072475", "0.41952097", "0.41883212" ]
0.7899255
0
Returns the first vcms discussion in the ordered set where articleId = &63; and approved = &63;.
public VcmsDiscussion findByA_A_First(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "public Discussion getDiscussion(int discussionID) throws DAOException;", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public Optional<Comment> getSingleCommentByAuthor(int postId, int authorId) {\n List<Comment> comments = commentRepository.findByPostId(postId);\n if(comments.size() > 0) {\n Optional<Comment> desiredComment = comments.stream()\n .filter(comment -> {\n int theId = comment.getAuthor().getId();\n return theId == authorId;\n }).findFirst();\n\n return desiredComment;\n }\n\n return null;\n }", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public SitbMoneyCollection fetchByapproval_status_First(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "Optional<UserContentComment> findOne(Long id);", "Question getFirstQuestion();", "Optional<Comment> findByIdAndArticleId(int commentId, int articleId);", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "@Override\n\tpublic NewsCollection findOne(Integer id) {\n\t\treturn newsCollectionMapper.findOne(id);\n\t}", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "@RequestMapping(value = { \"/comment/news/{id}\", \"/komentar/vest/{id}\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllApprovedCommentsForGivenNews(\r\n\t\t\t@PathVariable(value = \"id\") Integer newsID) {\r\n\t\treturn new ResponseEntity(commentRepository.findByNewsIDAndCommentState(newsID, CommentState.APPROVED),\r\n\t\t\t\tHttpStatus.OK);\r\n\t}", "KnowledgeComment selectByPrimaryKey(Integer id);", "@Override\n @Transactional(readOnly = true)\n public Optional<Proposal> findOne(Long id) {\n log.debug(\"Request to get Proposal : {}\", id);\n return proposalRepository.findOneWithEagerRelationships(id);\n }", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "Iterable<Comment> findByArticleId(int articleId);", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsArticleType fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "Article selectOneByExample(ArticleExample example);", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "List<Discuss> selectByExample(DiscussExample example);", "public SitbMoneyCollection findByapproval_status_First(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator)\n\t\tthrows NoSuchSitbMoneyCollectionException;", "NewsItem obtainNewsItemById(long id) throws ObjectRetrievalFailureException;", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n public Ares2ClusterDO selectOneByQuery(Ares2ClusterQuery query) {\n query.setPageNo(1);\n query.setPageSize(1);\n List<Ares2ClusterDO> topList = selectByQuery(query);\n if (topList != null && topList.size() > 0) {\n return topList.get(0);\n }\n return null;\n }", "@Override\n public int pullNextComplementaryEdgeId(int smallest) {\n if (edgeId >= smallest) {\n return ++edgeId;\n } else {\n return pullNextComplementaryEdgeIdAdviser(smallest);\n }\n }", "Commet selectByPrimaryKey(String commentId);", "int getFirstItemOnPage();", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "FeedbackData findFirstByUrl(String url);", "Comment selectByPrimaryKey(Integer cid);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "public CheckpointSubject getDecision(PBFTCheckpoint c){\n if(!(c != null && c.getSequenceNumber() != null && c.getDigest() != null)){\n return null;\n }\n\n Object lpid = getLocalServerID();\n\n long seqn = c.getSequenceNumber();\n long now = getClockValue();\n String qkey = String.valueOf(seqn);\n\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(CHECKPOINTQUORUMSTORE, qkey);\n\n if(q == null){\n int f = getServiceBFTResilience();\n\n q = new SoftQuorum(2 * f + 1);\n\n getStateLog().getQuorumTable(CHECKPOINTQUORUMSTORE).put(qkey, q);\n \n }\n\n q.add(new Vote(c.getReplicaID(), new CheckpointSubject(c)));\n \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", updated a entry in its log for \" + c);\n\n CheckpointSubject cs = (CheckpointSubject) q.decide();\n\n if(cs != null){ \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", completed quorum for checkpoint (\" + seqn + \").\");\n }\n\n return cs;\n \n }", "FeiWenComment selectByPrimaryKey(String cid);", "UserCorporateComment selectByPrimaryKey(Long id);", "@Test\n\tpublic void shouldReturnOnlyFirstPageSortedByDueDateAsc()\n\t{\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getAllPagedDocuments(\n\t\t\t\tcreatePageableData(0, 2, \"byDueDateAsc\"), Collections.singletonList(AccountSummaryAddonUtils\n\t\t\t\t\t\t.createFilterByCriteriaObject(StringUtils.EMPTY, StringUtils.EMPTY)));\n\n\t\tTestCase.assertEquals(2, result.getResults().size());\n\n\t\tfinal B2BDocumentModel b2bDocumentModel1 = result.getResults().get(0);\n\t\tfinal B2BDocumentModel b2bDocumentModel2 = result.getResults().get(1);\n\t\tTestCase.assertEquals(DOCUMENT_NUMBER_CRN_005, b2bDocumentModel1.getDocumentNumber());\n\t\tTestCase.assertEquals(DOCUMENT_NUMBER_CRN_006, b2bDocumentModel2.getDocumentNumber());\n\n\t\tTestCase.assertEquals(\"2013-07-07\", sdf.format(b2bDocumentModel1.getDueDate()));\n\t\tTestCase.assertEquals(\"2013-07-08\", sdf.format(b2bDocumentModel2.getDueDate()));\n\t}", "public VcmsDiscussion create(java.lang.String discussionId);", "public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "priorizedListObject find( int id ) throws DAOException;", "public java.util.List<VcmsDiscussion> findAll();", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public abstract PaginatedResult<T> first() throws AblyException;", "public static PriorityQueue<Comment> query(String subject, int positivity){\n PriorityQueue<Comment> list = new PriorityQueue<Comment>();\n //@todo remove these example comments and add connectivity with the database to get actual comments\n list.add(new Comment(\"Test0\", \"Computer Science\", 0));\n list.add(new Comment(\"Test1\", \"Computer Science\", 1));\n list.add(new Comment(\"Test2\", \"Computer Science\", 2));\n return list;\n }", "MsgContent selectByPrimaryKey(Integer id);", "public Piece firstSelected()\n {\n return firstSelected;\n }", "public T voteFirst(BigInteger voteFirst) {\n this.voteFirst = voteFirst;\n return (T) this;\n }", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "@Query(\"SELECT MIN(id) FROM KivbookImage \")\n Long getMinId();", "@Override\n\tpublic T queryFirstObj(QueryBuilder mQueryBuilder) {\n\t\tmQueryBuilder.limitIndex = 1;\n\t\tmQueryBuilder.offsetIndex = 0;\n\t\tList<T> list = queryObjs(mQueryBuilder);\n\t\tif (list.size() > 0) {\n\t\t\treturn list.get(0);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Approvatore fetchByIdSala_First(long id_sala,\n\t\tOrderByComparator<Approvatore> orderByComparator) {\n\t\tList<Approvatore> list = findByIdSala(id_sala, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Optional<InboxMessageEntity> findFirstByIdAndUserId(String id, String userId);", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public Dev selectOne(Connection conn, String devId) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}", "private Proposal getSelectedProposal() {\n\t\tif (isValid()) {\n\t\t\tint index = proposalTable.getSelectionIndex();\n\t\t\tif (proposalList == null || index < 0 || index >= getTableLength()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint proposalIndex = 0;\n\t\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn proposal;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\t\treturn proposal;\n\t\t\t\t\t}\n\t\t\t\t\tproposalIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Note getLowestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note lowestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.isLower(lowestNote)) {\n lowestNote = currentNote;\n }\n }\n if (lowestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return lowestNote;\n }", "@Override\r\n\tpublic blog_tb_blog getFirstEntity() throws Exception {\n\t\tString sql = \"select * from blog_tb_blog where blogIsDisabled=0 limit 0,1\";\r\n\t\tResultSet rs = this.getIDbHelper().GetResultSet(sql);\r\n\t\tblog_tb_blog blog = EntityHelper.getEntity(blog_tb_blog.class, rs);\r\n\t\tthis.getIDbHelper().closeResultSet(rs);\r\n\t\t\r\n\t\treturn blog;\r\n\t}", "public Comment findComment(int id) {\n\t\treturn cdi.findComment(id);\n\t}", "CommunityInform selectByPrimaryKey(String id);", "public cn.edu.kmust.flst.domain.flst.tables.pojos.Article fetchOneByArticleId(Integer value) {\n return fetchOne(Article.ARTICLE.ARTICLE_ID, value);\n }", "News selectByPrimaryKey(Integer id);" ]
[ "0.7656344", "0.72196674", "0.65282387", "0.6506998", "0.6326095", "0.6081297", "0.5936726", "0.5920473", "0.58646065", "0.58107734", "0.5397985", "0.53492826", "0.53345543", "0.5255008", "0.5246731", "0.5226166", "0.5202457", "0.5012135", "0.49484715", "0.49220002", "0.49141738", "0.4836824", "0.48330066", "0.48120892", "0.480164", "0.47571594", "0.47498083", "0.47009158", "0.46970636", "0.46788612", "0.46692765", "0.46690962", "0.4624221", "0.46197358", "0.4606886", "0.45832932", "0.45541045", "0.45383093", "0.45360214", "0.45252097", "0.45108554", "0.45020664", "0.4499352", "0.4484986", "0.44832593", "0.44823837", "0.44784376", "0.4465296", "0.44630247", "0.4460722", "0.44592482", "0.4443166", "0.44277212", "0.44212914", "0.43825778", "0.4361265", "0.43545038", "0.43487927", "0.4338312", "0.43321103", "0.43284816", "0.43183047", "0.43106687", "0.43058208", "0.43057105", "0.43030104", "0.43026948", "0.4297519", "0.4296342", "0.42830855", "0.4280649", "0.42757803", "0.4270125", "0.42672497", "0.42608652", "0.42597848", "0.42530394", "0.42527387", "0.42420846", "0.42334726", "0.42187637", "0.4209105", "0.4207437", "0.4204296", "0.42023447", "0.41976407", "0.41971102", "0.41945943", "0.4192432", "0.41905293", "0.41896033", "0.4179684", "0.41774273", "0.4175097", "0.41723472", "0.4166801", "0.41649497", "0.41638374", "0.4156344", "0.41548455" ]
0.68311495
2
Returns the first vcms discussion in the ordered set where articleId = &63; and approved = &63;.
public VcmsDiscussion fetchByA_A_First(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "public Discussion getDiscussion(int discussionID) throws DAOException;", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public Optional<Comment> getSingleCommentByAuthor(int postId, int authorId) {\n List<Comment> comments = commentRepository.findByPostId(postId);\n if(comments.size() > 0) {\n Optional<Comment> desiredComment = comments.stream()\n .filter(comment -> {\n int theId = comment.getAuthor().getId();\n return theId == authorId;\n }).findFirst();\n\n return desiredComment;\n }\n\n return null;\n }", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public SitbMoneyCollection fetchByapproval_status_First(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator);", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "Optional<UserContentComment> findOne(Long id);", "Question getFirstQuestion();", "Optional<Comment> findByIdAndArticleId(int commentId, int articleId);", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "@Override\n\tpublic NewsCollection findOne(Integer id) {\n\t\treturn newsCollectionMapper.findOne(id);\n\t}", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "@RequestMapping(value = { \"/comment/news/{id}\", \"/komentar/vest/{id}\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllApprovedCommentsForGivenNews(\r\n\t\t\t@PathVariable(value = \"id\") Integer newsID) {\r\n\t\treturn new ResponseEntity(commentRepository.findByNewsIDAndCommentState(newsID, CommentState.APPROVED),\r\n\t\t\t\tHttpStatus.OK);\r\n\t}", "KnowledgeComment selectByPrimaryKey(Integer id);", "@Override\n @Transactional(readOnly = true)\n public Optional<Proposal> findOne(Long id) {\n log.debug(\"Request to get Proposal : {}\", id);\n return proposalRepository.findOneWithEagerRelationships(id);\n }", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "Iterable<Comment> findByArticleId(int articleId);", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsArticleType fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "Article selectOneByExample(ArticleExample example);", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "List<Discuss> selectByExample(DiscussExample example);", "public SitbMoneyCollection findByapproval_status_First(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator)\n\t\tthrows NoSuchSitbMoneyCollectionException;", "NewsItem obtainNewsItemById(long id) throws ObjectRetrievalFailureException;", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n public Ares2ClusterDO selectOneByQuery(Ares2ClusterQuery query) {\n query.setPageNo(1);\n query.setPageSize(1);\n List<Ares2ClusterDO> topList = selectByQuery(query);\n if (topList != null && topList.size() > 0) {\n return topList.get(0);\n }\n return null;\n }", "@Override\n public int pullNextComplementaryEdgeId(int smallest) {\n if (edgeId >= smallest) {\n return ++edgeId;\n } else {\n return pullNextComplementaryEdgeIdAdviser(smallest);\n }\n }", "Commet selectByPrimaryKey(String commentId);", "int getFirstItemOnPage();", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "Comment selectByPrimaryKey(Integer cid);", "FeedbackData findFirstByUrl(String url);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "public CheckpointSubject getDecision(PBFTCheckpoint c){\n if(!(c != null && c.getSequenceNumber() != null && c.getDigest() != null)){\n return null;\n }\n\n Object lpid = getLocalServerID();\n\n long seqn = c.getSequenceNumber();\n long now = getClockValue();\n String qkey = String.valueOf(seqn);\n\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(CHECKPOINTQUORUMSTORE, qkey);\n\n if(q == null){\n int f = getServiceBFTResilience();\n\n q = new SoftQuorum(2 * f + 1);\n\n getStateLog().getQuorumTable(CHECKPOINTQUORUMSTORE).put(qkey, q);\n \n }\n\n q.add(new Vote(c.getReplicaID(), new CheckpointSubject(c)));\n \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", updated a entry in its log for \" + c);\n\n CheckpointSubject cs = (CheckpointSubject) q.decide();\n\n if(cs != null){ \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", completed quorum for checkpoint (\" + seqn + \").\");\n }\n\n return cs;\n \n }", "FeiWenComment selectByPrimaryKey(String cid);", "UserCorporateComment selectByPrimaryKey(Long id);", "@Test\n\tpublic void shouldReturnOnlyFirstPageSortedByDueDateAsc()\n\t{\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getAllPagedDocuments(\n\t\t\t\tcreatePageableData(0, 2, \"byDueDateAsc\"), Collections.singletonList(AccountSummaryAddonUtils\n\t\t\t\t\t\t.createFilterByCriteriaObject(StringUtils.EMPTY, StringUtils.EMPTY)));\n\n\t\tTestCase.assertEquals(2, result.getResults().size());\n\n\t\tfinal B2BDocumentModel b2bDocumentModel1 = result.getResults().get(0);\n\t\tfinal B2BDocumentModel b2bDocumentModel2 = result.getResults().get(1);\n\t\tTestCase.assertEquals(DOCUMENT_NUMBER_CRN_005, b2bDocumentModel1.getDocumentNumber());\n\t\tTestCase.assertEquals(DOCUMENT_NUMBER_CRN_006, b2bDocumentModel2.getDocumentNumber());\n\n\t\tTestCase.assertEquals(\"2013-07-07\", sdf.format(b2bDocumentModel1.getDueDate()));\n\t\tTestCase.assertEquals(\"2013-07-08\", sdf.format(b2bDocumentModel2.getDueDate()));\n\t}", "public VcmsDiscussion create(java.lang.String discussionId);", "public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public java.util.List<VcmsDiscussion> findAll();", "priorizedListObject find( int id ) throws DAOException;", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public abstract PaginatedResult<T> first() throws AblyException;", "public static PriorityQueue<Comment> query(String subject, int positivity){\n PriorityQueue<Comment> list = new PriorityQueue<Comment>();\n //@todo remove these example comments and add connectivity with the database to get actual comments\n list.add(new Comment(\"Test0\", \"Computer Science\", 0));\n list.add(new Comment(\"Test1\", \"Computer Science\", 1));\n list.add(new Comment(\"Test2\", \"Computer Science\", 2));\n return list;\n }", "MsgContent selectByPrimaryKey(Integer id);", "public Piece firstSelected()\n {\n return firstSelected;\n }", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "public T voteFirst(BigInteger voteFirst) {\n this.voteFirst = voteFirst;\n return (T) this;\n }", "@Query(\"SELECT MIN(id) FROM KivbookImage \")\n Long getMinId();", "@Override\n\tpublic T queryFirstObj(QueryBuilder mQueryBuilder) {\n\t\tmQueryBuilder.limitIndex = 1;\n\t\tmQueryBuilder.offsetIndex = 0;\n\t\tList<T> list = queryObjs(mQueryBuilder);\n\t\tif (list.size() > 0) {\n\t\t\treturn list.get(0);\n\t\t}\n\t\treturn null;\n\t}", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic Approvatore fetchByIdSala_First(long id_sala,\n\t\tOrderByComparator<Approvatore> orderByComparator) {\n\t\tList<Approvatore> list = findByIdSala(id_sala, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "Optional<InboxMessageEntity> findFirstByIdAndUserId(String id, String userId);", "public Dev selectOne(Connection conn, String devId) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}", "private Proposal getSelectedProposal() {\n\t\tif (isValid()) {\n\t\t\tint index = proposalTable.getSelectionIndex();\n\t\t\tif (proposalList == null || index < 0 || index >= getTableLength()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint proposalIndex = 0;\n\t\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn proposal;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\t\treturn proposal;\n\t\t\t\t\t}\n\t\t\t\t\tproposalIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Note getLowestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note lowestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.isLower(lowestNote)) {\n lowestNote = currentNote;\n }\n }\n if (lowestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return lowestNote;\n }", "public Comment findComment(int id) {\n\t\treturn cdi.findComment(id);\n\t}", "@Override\r\n\tpublic blog_tb_blog getFirstEntity() throws Exception {\n\t\tString sql = \"select * from blog_tb_blog where blogIsDisabled=0 limit 0,1\";\r\n\t\tResultSet rs = this.getIDbHelper().GetResultSet(sql);\r\n\t\tblog_tb_blog blog = EntityHelper.getEntity(blog_tb_blog.class, rs);\r\n\t\tthis.getIDbHelper().closeResultSet(rs);\r\n\t\t\r\n\t\treturn blog;\r\n\t}", "CommunityInform selectByPrimaryKey(String id);", "public cn.edu.kmust.flst.domain.flst.tables.pojos.Article fetchOneByArticleId(Integer value) {\n return fetchOne(Article.ARTICLE.ARTICLE_ID, value);\n }", "News selectByPrimaryKey(Integer id);" ]
[ "0.721924", "0.68306184", "0.6528401", "0.65066403", "0.63257986", "0.6080923", "0.59368473", "0.5921212", "0.58644533", "0.58120346", "0.5399099", "0.5349269", "0.5335585", "0.52562", "0.5246348", "0.52264154", "0.52032876", "0.5012467", "0.49498487", "0.49236327", "0.49157214", "0.48364097", "0.483465", "0.48114133", "0.48034203", "0.4757407", "0.47498614", "0.47003865", "0.46937025", "0.46800855", "0.46679926", "0.4667857", "0.4624556", "0.46212053", "0.4605071", "0.45836252", "0.45561567", "0.45391583", "0.45355302", "0.45263806", "0.45092767", "0.4500567", "0.44980985", "0.44857895", "0.44829538", "0.44810972", "0.4479181", "0.44635013", "0.44633096", "0.4460637", "0.4457222", "0.44417876", "0.4426001", "0.44206503", "0.43818384", "0.43600026", "0.43532375", "0.43490806", "0.43373495", "0.43333116", "0.43290287", "0.43160874", "0.43120027", "0.43051958", "0.4304328", "0.43034518", "0.4301401", "0.4297562", "0.42956957", "0.4285948", "0.42817512", "0.42761603", "0.42691892", "0.42663398", "0.42593628", "0.42579633", "0.4253655", "0.42521378", "0.42421177", "0.42302996", "0.42205626", "0.42080796", "0.42055553", "0.42021054", "0.4201923", "0.41958106", "0.4194729", "0.41939303", "0.41915", "0.41908526", "0.4188432", "0.41780025", "0.41754365", "0.4175244", "0.41722083", "0.41667014", "0.4163687", "0.41632462", "0.4155023", "0.4153241" ]
0.76555765
0
Returns the last vcms discussion in the ordered set where articleId = &63; and approved = &63;.
public VcmsDiscussion findByA_A_Last(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Article> findTop3ByOrderByPostTimeDesc();", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public static Date getConvoLatestActivity(ConversationBean convo) {\r\n\t\tDBCollection activitiesColl = getCollection(ACTIVITIES_COLLECTION);\r\n\t\t\r\n\t\tDBRef convoRef = createRef(ConversationDAO.CONVERSATIONS_COLLECTION, convo.getId());\r\n\t\tDBObject query = new BasicDBObject(\"convoId\", convoRef);\r\n\t\tDBCursor cursor = \r\n\t\t\tactivitiesColl.find(query, new BasicDBObject(\"time\", 1)).sort(new BasicDBObject(\"time\", -1)).limit(1);\r\n\t\t\r\n\t\tif (cursor.hasNext()) {\r\n\t\t\tDate latestActivityTime = (Date)cursor.next().get(\"time\");\r\n\t\t\treturn latestActivityTime;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "@RequestMapping(value = \"/threads/{id}/latest\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get latest comments of the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Page<Comment>> getLatest(\n @PathVariable String id,\n @RequestParam(value = Constants.PARAM_PAGE, required = false, defaultValue = \"0\") Integer page\n ) throws KalipoException, ExecutionException, InterruptedException {\n\n log.debug(\"REST request to get latest Comments of Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.getLatestCommentsWithPages(id, page).get())\n .map(comments -> new ResponseEntity<>(\n comments,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "public boolean hasMoreDiscussions();", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public DateAdp Modified_latest() {return modified_latest;}", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "public Date getLastPublished() {\n return lastPublished;\n }", "public java.util.List<VcmsDiscussion> findAll();", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "public String getDiscussion(){\n return discussion;\n }", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "String getLastContentChangeStatement(boolean live);", "public VcmsArticleType fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "List<String> getLatestAnswer(String anserListId);", "java.lang.String getLegacyDiscussionId();", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "Question getLastQuestion();", "public Pago findTopByOrderByIdDesc();", "public static String getCdmJsonByMostRecent(String jsonArray, String eligibilityStatus) throws Exception {\n\n\t\tString json = \"{_id:0,\" + jsonArray + \":1}\";\n\t\tString sortValue = \"{lastModifiedDate:-1}\";\n\t\tBson projection = BasicDBObject.parse(json);\n\t\tBson sort = BasicDBObject.parse(sortValue);\n\n\t\tDocument selection = new Document();\n\t\tselection.put(\"automatedCollateralEvaluationResponse.aceDecision\", eligibilityStatus);\n\n\t\tDocument doc = fetchqueryResultLatest(\"ACEResponses\", selection, projection, sort);\n\t\tString cdmJson = doc.toJson().toString();\n\n\t\treturn cdmJson;\n\t}", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "public final int getLatestPostNumber() {\n\t\treturn this.latestPostNumber;\n\t}", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic Page<CommentInfo> findAllByArticleIdOrderByLayerDesc(\n\t\t\tInteger articleId, int page) {\n\t\tCommentInfo info = new CommentInfo();\n\t\tinfo.setStatusCd(1);\n\t\tinfo.setArticleId(articleId);\n\t\treturn findAllBySpecification(info, page);\n\t}", "public Inspection getMostRecentInspection(List<Inspection> inspections) {\n // Ensure that the list is sorted\n Collections.sort(inspections);\n\n if (!inspections.isEmpty()) {\n return inspections.get(0);\n } else {\n return noInspection;\n }\n }", "public List<Notification> findMostRecentPopup(long userId);", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);", "public SitbMoneyCollection fetchByapproval_status_Last(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator);", "public static long getNewestMeetingDate() {\n return SP_UTILS.getLong(SPDataConstant.KEY_LAST_MEETING_PUBLISH_DATE, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT);\n }", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "public String getLatestMessage() {\n return mLastMessage;\n }", "@Query(value = \"{ 'collectorId' : ?0, 'changeDate' : {$gt: ?1}, '_class' : 'com.capitalone.dashboard.model.Team', 'assetState': 'Active'}\")\n List<Team> findTopByChangeDateDesc(ObjectId collectorId, String changeDate);", "<T> Collection<T> getMostRecent(Class<T> t, int max);", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "public Proveedor findTopByOrderByIdDesc();", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "private Date getLatestPermanencyHearingCourtOrderDateByIdCaseByIdPerson(int idCase, int idPerson){\r\n LegalAction legalAction = null;\r\n Collection<LegalActionCrtLang> cdLegalActionCrtLangs = null;\r\n \r\n legalAction = legalActionDAO.findLatestPrmncyHrgWithReasonbleEffByIdCaseByIdPerson(\r\n idCase,\r\n idPerson);\r\n \r\n if( legalAction != null ){\r\n Date dtCourtOrder = legalAction.getDtCrtOrdDate();\r\n \r\n if( dtCourtOrder != null ){\r\n // court language contains reason effort made to finalized permanency plan\r\n Calendar calToday = Calendar.getInstance();\r\n \r\n // year from court order date minus 1 day\r\n Calendar calYearFromCourtOrder = Calendar.getInstance();\r\n calYearFromCourtOrder.setTime(dtCourtOrder);\r\n calYearFromCourtOrder.add(Calendar.YEAR, 1);\r\n calYearFromCourtOrder.add(Calendar.DAY_OF_MONTH, -1);\r\n \r\n // Annual Permanency Plan expires during or after \r\n // current month of reimbursability determination\r\n // therefore may still be IV-E Reimbursable until end of current month and after.\r\n if((calYearFromCourtOrder.get(Calendar.YEAR) > calToday.get(Calendar.YEAR))){\r\n // regardless if permanency plan expiration year is greater, return date\r\n return dtCourtOrder;\r\n } else if( (calYearFromCourtOrder.get(Calendar.MONTH) >= calToday.get(Calendar.MONTH)) \r\n & (calYearFromCourtOrder.get(Calendar.YEAR) >= calToday.get(Calendar.YEAR)) ){\r\n // since year is the same, we check the month Permanency plan expires\r\n return dtCourtOrder;\r\n }\r\n }\r\n }\r\n // no legal action with court language of reasonable effort made to \r\n // finalize permanency plan within period\r\n return null;\r\n }", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "long getFetchedDate();", "public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }", "public SitbMoneyCollection findByapproval_status_Last(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator)\n\t\tthrows NoSuchSitbMoneyCollectionException;", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "private void getLatestMessageFromSocialService(String[] decrList) {\n Request request = new Request(Request.RequestCode.MESSAGES);\n prototype.sendRequest(serviceName,request,getNewResponseListener(decrList));\n }", "public List<ExoSocialActivity> getOlderComments(\n ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit);", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment);", "public GetLatestMovieResponse getLatestMovie() {\n return getLatestMovie(null);\n }", "public CheckpointSubject getDecision(PBFTCheckpoint c){\n if(!(c != null && c.getSequenceNumber() != null && c.getDigest() != null)){\n return null;\n }\n\n Object lpid = getLocalServerID();\n\n long seqn = c.getSequenceNumber();\n long now = getClockValue();\n String qkey = String.valueOf(seqn);\n\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(CHECKPOINTQUORUMSTORE, qkey);\n\n if(q == null){\n int f = getServiceBFTResilience();\n\n q = new SoftQuorum(2 * f + 1);\n\n getStateLog().getQuorumTable(CHECKPOINTQUORUMSTORE).put(qkey, q);\n \n }\n\n q.add(new Vote(c.getReplicaID(), new CheckpointSubject(c)));\n \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", updated a entry in its log for \" + c);\n\n CheckpointSubject cs = (CheckpointSubject) q.decide();\n\n if(cs != null){ \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", completed quorum for checkpoint (\" + seqn + \").\");\n }\n\n return cs;\n \n }" ]
[ "0.74201196", "0.69234836", "0.63337517", "0.6284774", "0.6283593", "0.59968215", "0.5996717", "0.5740109", "0.5698147", "0.56385654", "0.54545486", "0.5454383", "0.5448004", "0.54419893", "0.54045135", "0.53778076", "0.52651733", "0.5190155", "0.51639384", "0.5035755", "0.5026271", "0.5017571", "0.4977841", "0.49508664", "0.494", "0.4935772", "0.4925995", "0.49236503", "0.48925847", "0.48646113", "0.4858587", "0.48554146", "0.48521963", "0.48519507", "0.48322174", "0.48237082", "0.4805465", "0.47504967", "0.47502825", "0.47380108", "0.47297326", "0.47261107", "0.47209474", "0.472031", "0.47156948", "0.47137898", "0.4697702", "0.46883485", "0.46823373", "0.4672378", "0.4667595", "0.46616304", "0.46590632", "0.4638214", "0.4628196", "0.4618626", "0.45982045", "0.45868787", "0.45751077", "0.45593628", "0.45541343", "0.4528518", "0.44933248", "0.4481065", "0.44791177", "0.44780597", "0.4454886", "0.44519493", "0.44491196", "0.44474822", "0.44399893", "0.44360858", "0.44327295", "0.4419872", "0.44158763", "0.43947384", "0.43776852", "0.43733636", "0.43705162", "0.43696317", "0.43648356", "0.4329502", "0.43283734", "0.4322084", "0.4320969", "0.4317166", "0.42979267", "0.4295654", "0.42868093", "0.4284786", "0.42724752", "0.42706564", "0.42548543", "0.42546326", "0.42542288", "0.42538604", "0.42430696", "0.42420152", "0.4240693", "0.4240309" ]
0.6846499
2
Returns the last vcms discussion in the ordered set where articleId = &63; and approved = &63;.
public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Article findLatestArticle();", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Article> findTop3ByOrderByPostTimeDesc();", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "public static Date getConvoLatestActivity(ConversationBean convo) {\r\n\t\tDBCollection activitiesColl = getCollection(ACTIVITIES_COLLECTION);\r\n\t\t\r\n\t\tDBRef convoRef = createRef(ConversationDAO.CONVERSATIONS_COLLECTION, convo.getId());\r\n\t\tDBObject query = new BasicDBObject(\"convoId\", convoRef);\r\n\t\tDBCursor cursor = \r\n\t\t\tactivitiesColl.find(query, new BasicDBObject(\"time\", 1)).sort(new BasicDBObject(\"time\", -1)).limit(1);\r\n\t\t\r\n\t\tif (cursor.hasNext()) {\r\n\t\t\tDate latestActivityTime = (Date)cursor.next().get(\"time\");\r\n\t\t\treturn latestActivityTime;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "@RequestMapping(value = \"/threads/{id}/latest\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get latest comments of the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Page<Comment>> getLatest(\n @PathVariable String id,\n @RequestParam(value = Constants.PARAM_PAGE, required = false, defaultValue = \"0\") Integer page\n ) throws KalipoException, ExecutionException, InterruptedException {\n\n log.debug(\"REST request to get latest Comments of Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.getLatestCommentsWithPages(id, page).get())\n .map(comments -> new ResponseEntity<>(\n comments,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "public boolean hasMoreDiscussions();", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public DateAdp Modified_latest() {return modified_latest;}", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "public Date getLastPublished() {\n return lastPublished;\n }", "public java.util.List<VcmsDiscussion> findAll();", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "public String getDiscussion(){\n return discussion;\n }", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsArticleType fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "String getLastContentChangeStatement(boolean live);", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "List<String> getLatestAnswer(String anserListId);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "java.lang.String getLegacyDiscussionId();", "Question getLastQuestion();", "public Pago findTopByOrderByIdDesc();", "public static String getCdmJsonByMostRecent(String jsonArray, String eligibilityStatus) throws Exception {\n\n\t\tString json = \"{_id:0,\" + jsonArray + \":1}\";\n\t\tString sortValue = \"{lastModifiedDate:-1}\";\n\t\tBson projection = BasicDBObject.parse(json);\n\t\tBson sort = BasicDBObject.parse(sortValue);\n\n\t\tDocument selection = new Document();\n\t\tselection.put(\"automatedCollateralEvaluationResponse.aceDecision\", eligibilityStatus);\n\n\t\tDocument doc = fetchqueryResultLatest(\"ACEResponses\", selection, projection, sort);\n\t\tString cdmJson = doc.toJson().toString();\n\n\t\treturn cdmJson;\n\t}", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "public final int getLatestPostNumber() {\n\t\treturn this.latestPostNumber;\n\t}", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic Page<CommentInfo> findAllByArticleIdOrderByLayerDesc(\n\t\t\tInteger articleId, int page) {\n\t\tCommentInfo info = new CommentInfo();\n\t\tinfo.setStatusCd(1);\n\t\tinfo.setArticleId(articleId);\n\t\treturn findAllBySpecification(info, page);\n\t}", "public Inspection getMostRecentInspection(List<Inspection> inspections) {\n // Ensure that the list is sorted\n Collections.sort(inspections);\n\n if (!inspections.isEmpty()) {\n return inspections.get(0);\n } else {\n return noInspection;\n }\n }", "public List<Notification> findMostRecentPopup(long userId);", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);", "public SitbMoneyCollection fetchByapproval_status_Last(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator);", "public static long getNewestMeetingDate() {\n return SP_UTILS.getLong(SPDataConstant.KEY_LAST_MEETING_PUBLISH_DATE, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT);\n }", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "@Query(value = \"{ 'collectorId' : ?0, 'changeDate' : {$gt: ?1}, '_class' : 'com.capitalone.dashboard.model.Team', 'assetState': 'Active'}\")\n List<Team> findTopByChangeDateDesc(ObjectId collectorId, String changeDate);", "public String getLatestMessage() {\n return mLastMessage;\n }", "<T> Collection<T> getMostRecent(Class<T> t, int max);", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "public Proveedor findTopByOrderByIdDesc();", "private Date getLatestPermanencyHearingCourtOrderDateByIdCaseByIdPerson(int idCase, int idPerson){\r\n LegalAction legalAction = null;\r\n Collection<LegalActionCrtLang> cdLegalActionCrtLangs = null;\r\n \r\n legalAction = legalActionDAO.findLatestPrmncyHrgWithReasonbleEffByIdCaseByIdPerson(\r\n idCase,\r\n idPerson);\r\n \r\n if( legalAction != null ){\r\n Date dtCourtOrder = legalAction.getDtCrtOrdDate();\r\n \r\n if( dtCourtOrder != null ){\r\n // court language contains reason effort made to finalized permanency plan\r\n Calendar calToday = Calendar.getInstance();\r\n \r\n // year from court order date minus 1 day\r\n Calendar calYearFromCourtOrder = Calendar.getInstance();\r\n calYearFromCourtOrder.setTime(dtCourtOrder);\r\n calYearFromCourtOrder.add(Calendar.YEAR, 1);\r\n calYearFromCourtOrder.add(Calendar.DAY_OF_MONTH, -1);\r\n \r\n // Annual Permanency Plan expires during or after \r\n // current month of reimbursability determination\r\n // therefore may still be IV-E Reimbursable until end of current month and after.\r\n if((calYearFromCourtOrder.get(Calendar.YEAR) > calToday.get(Calendar.YEAR))){\r\n // regardless if permanency plan expiration year is greater, return date\r\n return dtCourtOrder;\r\n } else if( (calYearFromCourtOrder.get(Calendar.MONTH) >= calToday.get(Calendar.MONTH)) \r\n & (calYearFromCourtOrder.get(Calendar.YEAR) >= calToday.get(Calendar.YEAR)) ){\r\n // since year is the same, we check the month Permanency plan expires\r\n return dtCourtOrder;\r\n }\r\n }\r\n }\r\n // no legal action with court language of reasonable effort made to \r\n // finalize permanency plan within period\r\n return null;\r\n }", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "long getFetchedDate();", "public SitbMoneyCollection findByapproval_status_Last(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator)\n\t\tthrows NoSuchSitbMoneyCollectionException;", "public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }", "private void getLatestMessageFromSocialService(String[] decrList) {\n Request request = new Request(Request.RequestCode.MESSAGES);\n prototype.sendRequest(serviceName,request,getNewResponseListener(decrList));\n }", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public GetLatestMovieResponse getLatestMovie() {\n return getLatestMovie(null);\n }", "private int getLastIDRisposte() {\n\n\t\tArrayList<Integer> risposteIdList = new ArrayList<>();\n\t\trisposteIdList.add(0);\n\t\tDB db = getDB();\t\t\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\t\n\t\tfor(Map.Entry<Long, Risposta> risposta : risposte.entrySet())\n\t\t\tif(risposta.getValue() instanceof Risposta)\n\t\t\t\trisposteIdList.add(risposta.getValue().getId());\n\t\t\n\t\tInteger id = Collections.max(risposteIdList);\n\t\treturn id;\n\t}", "public List<ExoSocialActivity> getOlderComments(\n ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit);", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment);" ]
[ "0.6924062", "0.6846063", "0.6333228", "0.62851834", "0.6282793", "0.599748", "0.5995232", "0.5735249", "0.5696051", "0.5636699", "0.54521674", "0.5451847", "0.54460514", "0.5438825", "0.5403775", "0.537546", "0.5263205", "0.5191705", "0.5163542", "0.5031334", "0.50256", "0.50141364", "0.49748588", "0.49507415", "0.49406093", "0.49299124", "0.4925094", "0.49222717", "0.4891303", "0.48651168", "0.485642", "0.4852444", "0.485097", "0.48496392", "0.48322788", "0.48231933", "0.48064145", "0.4749132", "0.4745953", "0.4736034", "0.47283447", "0.47258165", "0.4718557", "0.4717076", "0.47140092", "0.47112852", "0.46953848", "0.46881548", "0.4679466", "0.466841", "0.46657485", "0.46584657", "0.46573067", "0.4633818", "0.46291623", "0.46183172", "0.45985675", "0.4580626", "0.45747116", "0.4557357", "0.4549025", "0.4525223", "0.4491391", "0.4484788", "0.44812968", "0.44787672", "0.44573897", "0.44518697", "0.44453552", "0.44440538", "0.44389224", "0.44367436", "0.44335198", "0.44162533", "0.4415859", "0.43929043", "0.43797284", "0.43727177", "0.43686357", "0.43683487", "0.4366979", "0.43299356", "0.43286496", "0.43240514", "0.43210062", "0.4316102", "0.4297309", "0.4296237", "0.42866763", "0.4285528", "0.4272353", "0.42710543", "0.4256027", "0.4254829", "0.42531052", "0.4249176", "0.4241092", "0.42408854", "0.42408618", "0.42407167" ]
0.74207103
0
Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &63; and approved = &63;.
public VcmsDiscussion[] findByA_A_PrevAndNext( java.lang.String discussionId, java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "public BwCalendar fetchBeforeCalendar() {\n return beforeCalendar;\n }", "public static void main(String[] args) throws ParseException {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat sf = new SimpleDateFormat(pattern);\n Date yesterday = sf.parse(\"2016-12-11 23:59:59\");\n Date todayBegin = sf.parse(\"2016-12-12 00:00:00\");\n Date today1 = sf.parse(\"2016-12-12 00:00:01\");\n Date todayend = sf.parse(\"2016-12-12 23:23:59\");\n\n System.out.println(sf.format(yesterday) + \" is before \" + sf.format(todayBegin) + \":\" + yesterday.before(todayBegin));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(today1) + \":\" + todayBegin.before(today1));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(todayend) + \":\" + todayBegin.before(todayend));\n System.out.println(sf.format(today1) + \" is before \" + sf.format(todayend) + \":\" + today1.before(todayend));\n }", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "List<SurveyQuestion> sortByPageAndPosition(List<SurveyQuestion> questions);", "public List<Idea> getIdeasPublishedBetween(Calendar start, Calendar end) throws DataAccessException {\n List<Idea> ret = new ArrayList<>();\n if (!start.after(end)) {\n try {\n String queryStr = \"select i from Idea i \"\n + \"where i.publishedDate > start and \"\n + \"i.publishedDate < end\";\n Object res = em.createQuery(queryStr)\n .getResultList();\n ret = (List<Idea>) res;\n } catch (PersistenceException | EJBException pe) {\n throw new DataAccessException(pe, \"Error getting ideas between dates\");\n }\n }\n return ret;\n }", "public ArrayList<Question> getQuestionsSortedByLastChangedDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new ChangedDateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<State> findStatesAfterOrder( int nOrder, int nIdWorkflow );", "List<State> findStatesBetweenOrders( int nOrder1, int nOrder2, int nIdWorkflow );", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public List<ExoSocialActivity> getOlderComments(\n ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit);", "List<PreparedStatement> getMoveDiscussionStatements(String discussionId, String currentForumId,String newForumId,Connection conn) throws Exception;", "public DateTime[] getSegmentFenceposts(LocalDate date) {\n DateTime start = date.toDateTimeAtStartOfDay();\n DateTime stop = date.plusDays(1).toDateTimeAtStartOfDay();\n int[] starts = getSegmentStartTimes();\n DateTime[] fenceposts = new DateTime[starts.length + 1];\n for (int i = 0; i < starts.length; i++) {\n fenceposts[i] = start.plusMillis(starts[i]);\n }\n fenceposts[starts.length] = stop;\n return fenceposts;\n }", "public java.util.List getOrderedAncestors();", "public java.util.List<VcmsDiscussion> findAll();", "public static List<Node> getNextDecisions(ProbNet probNet, EvidenceCase evidence) {\n\t\tList<Node> decisionNodes = ProbNetOperations.getParentlessDecisions(probNet);\n\t\tif (evidence != null) {\n\t\t\tList<Variable> eviVariables = evidence.getVariables();\n\t\t\tif (eviVariables != null) {\n\t\t\t\tfor (Variable var : evidence.getVariables()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdecisionNodes.remove(probNet.getNode(var.getName()));\n\t\t\t\t\t} catch (NodeNotFoundException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check if the nodes revealed by a decision node are the subset of another\n\t\t// In that case we don't need to consider them as valid orders\n\t\tList<List<Node>> revealedNodes = new ArrayList<>();\n\t\tfor (Node node : decisionNodes) {\n\t\t\tList<Node> revealedByDecision = new ArrayList<>();\n\t\t\tfor (Link<Node> link : node.getLinks()) {\n\t\t\t\tif (link.getNode1().equals(node) && link.hasRevealingConditions()) {\n\t\t\t\t\trevealedByDecision.add(link.getNode2());\n\t\t\t\t}\n\t\t\t}\n\t\t\trevealedNodes.add(revealedByDecision);\n\t\t}\n\t\tList<Node> dominatedDecisions = new ArrayList<>();\n\t\tfor (int i = 0; i < decisionNodes.size(); ++i) {\n\t\t\tNode nodeA = decisionNodes.get(i);\n\t\t\tif (!revealedNodes.get(i).isEmpty()) {\n\t\t\t\tfor (int j = 0; j < decisionNodes.size(); ++j) {\n\t\t\t\t\tNode nodeB = decisionNodes.get(j);\n\t\t\t\t\tif (nodeA != nodeB && revealedNodes.get(i).containsAll(revealedNodes.get(j)))\n\t\t\t\t\t\tdominatedDecisions.add(nodeB);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdecisionNodes.removeAll(dominatedDecisions);\n\n\t\treturn decisionNodes;\n\t}", "IP4SubmittedChangelist[] getInterchanges(boolean reverse);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public Optional<Instant> getBefore() {\n\t\treturn before;\n\t}", "public Optional<Instant> getBefore() {\n\t\t\treturn before;\n\t\t}", "com.google.protobuf.Int64ValueOrBuilder getDeliveryDateBeforeOrBuilder();", "com.google.protobuf.Int64Value getDeliveryDateBefore();", "OIterator<V> before();", "public List<Forum> getListForumCreatedBetweenDateByIdForum(Date minDate,Date maxDate);", "@Override\n public List<PartitionedThermostatEvent> listByStartDateAndStatus(Calendar eventStartDateBefore, Status eventStatus) {\n\n String sql = \" select t from PartitionedThermostatEvent t where groupEventId in (select e.id from EcpCoreLSEvent e where e.startDate < :event_before_date and e.status = :event_status)\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"event_before_date\", eventStartDateBefore);\n paramVals.put(\"event_status\", eventStatus);\n List<PartitionedThermostatEvent> events = listByQuery(sql, paramVals);\n return events;\n }", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "public List<Idea> allIdeasLikersAsc() {\n\n List<Idea> ideas = ideaRepo.findAll();\n\n ideas.sort(new Comparator<Idea>() {\n @Override\n public int compare(Idea i1, Idea i2) {\n if(i1.getLikers().size() == i2.getLikers().size()){\n return 0;\n }\n return i1.getLikers().size() < i2.getLikers().size() ? -1 : 1;\n }\n });\n\n return ideas;\n\n }", "List<Article> findTop3ByOrderByPostTimeDesc();", "public List<ExoSocialActivity> getOlderActivitiesOfConnections(Identity owner, Long sinceTime, int limit);", "@Override\n\tpublic JCRPageList getPageTopicOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "private List<HtmlElement> findComparisonSections()\n\t{\n\t\tfinal By findBy = By.cssSelector( \".compare-section.comparison:not(.detailed-preview)\" );\n\t\treturn getDriver().findElements( findBy );\n\t}", "private List<TrackElement> getRenderOrder(Timeline timeline) {\n List<Track> tracks = new ArrayList<>(timeline.getTracks());\n Collections.reverse(tracks);\n return tracks.stream().flatMap(t -> t.getAllElements().stream()).collect(Collectors.toList());\n }", "Iterable<Comment> findByArticleId(int articleId);", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "@NonNull\n public static String getDiff(@NonNull String[] before, @NonNull String[] after) {\n StringBuilder sb = new StringBuilder();\n\n int n = before.length;\n int m = after.length;\n\n // Compute longest common subsequence of x[i..m] and y[j..n] bottom up\n int[][] lcs = new int[n + 1][m + 1];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (before[i].equals(after[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n\n int i = 0;\n int j = 0;\n while ((i < n) && (j < m)) {\n if (before[i].equals(after[j])) {\n i++;\n j++;\n } else {\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n while (i < n && j < m && !before[i].equals(after[j])) {\n if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n i++;\n } else {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n j++;\n }\n }\n }\n }\n\n if (i < n || j < m) {\n assert i == n || j == m;\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n for (; i < n; i++) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n }\n for (; j < m; j++) {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n }\n }\n\n return sb.toString();\n }", "private Changelist[] getChanges() {\n String depot = parent.getDepot();\n String counterName = parent.getCounter();\n Client client = Client.getClient();\n\n // Obtain the most recent changelist available on the client\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Obtain the lower boundary for the changelist results\n Counter counter = Counter.getCounter(counterName);\n int counterVal = 0;\n if (counter != null) {\n counterVal = counter.getValue();\n } else {\n counterVal = toChange.getNumber();\n }\n\n return Changelist.getChanges(depot, counterVal, toChange.getNumber());\n }", "@Override\n\tpublic TvShow[] findByUuid_C_PrevAndNext(long tvShowId, String uuid,\n\t\tlong companyId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_C_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\tcompanyId, orderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_C_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\tcompanyId, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "public List<ExoSocialActivity> getNewerComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "public List<Question> getTopUnanswered(){\n TypedQuery<Question> query = em.createQuery(\"SELECT q FROM Question q, QuestionVote v WHERE q NOT IN (SELECT a.question FROM Answer a) AND v.question = q ORDER by v.vote DESC \",Question.class);\n return query.setMaxResults(3).getResultList();\n }", "public List<ExoSocialActivity> getComments(ExoSocialActivity existingActivity, int offset, int limit);", "default CompletableFuture<ArchivedThreads> getPrivateArchivedThreads(long before) {\n return getPrivateArchivedThreads(before, null);\n }", "public ArrayList<Event> getEventsByPastDays(int days, Calendar today) {\n\t\tArrayList<Event> result = new ArrayList<Event>();\n\t\ttoday.add(Calendar.DATE, days * (-1));\n\t\tfor (int i = 0; i < events.size(); i++) {\n\t\t\tif (events.get(i).getInitial_date().get(Calendar.YEAR) == today.get(Calendar.YEAR)\n\t\t\t\t\t&& events.get(i).getInitial_date().get(Calendar.MONTH) == today.get(Calendar.MONTH)\n\t\t\t\t\t&& events.get(i).getInitial_date().get(Calendar.DAY_OF_MONTH) == today\n\t\t\t\t\t\t\t.get(Calendar.DAY_OF_MONTH)) {\n\t\t\t\tresult.add(events.get(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public SortedSet<ActivityProcessor> getActivityProcessors();", "@RequestMapping(value = { \"/comment\", \"/komentar\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllApproved() {\r\n\r\n\t\treturn new ResponseEntity(commentRepository.findByCommentState(CommentState.APPROVED), HttpStatus.OK);\r\n\t}", "public List<Idea> allIdeasLikersDesc() {\n\n List<Idea> ideas = ideaRepo.findAll();\n\n ideas.sort(new Comparator<Idea>() {\n @Override\n public int compare(Idea i1, Idea i2) {\n if(i1.getLikers().size() == i2.getLikers().size()){\n return 0;\n }\n return i1.getLikers().size() > i2.getLikers().size() ? -1 : 1;\n }\n });\n\n return ideas;\n }", "public Optional<Integer> getChangesetsBehind() {\n return ofNullable(changesetsBehind);\n }", "@Override\n\tpublic TvShow[] findByUuid_PrevAndNext(long tvShowId, String uuid,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Weet[] getWeetsBefore(Date dateBefore) {\n return tree.toArray(dateBefore);\n }", "AbstractList<BalanceChange> recentActivity() {\r\n\t\tArrayList<BalanceChange> activity = new ArrayList<BalanceChange>();\r\n\t\t\r\n\t\tint i=10;\r\n\t\twhile (i > 0) {\r\n\t\t\t//TODO\r\n\t\t\ti--;\r\n\t\t}\r\n\t\t\r\n\t\treturn activity;\r\n\t}", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "@Override\n\tpublic List<Topic> getAllTopicsOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "private void findPrev() {\n \tthis.find(false);\n }", "default CompletableFuture<ArchivedThreads> getJoinedPrivateArchivedThreads(long before) {\n return getJoinedPrivateArchivedThreads(before, null);\n }", "LiveData<List<Task>> getSortedTasks(LocalDate startDate,\r\n LocalDate endDate);", "Date getPriorDate();", "default CompletableFuture<ArchivedThreads> getPublicArchivedThreads(long before) {\n return getPublicArchivedThreads(before, null);\n }", "public List<ExoSocialActivity> getOlderOnActivitiesOfConnections(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);", "protected abstract IssueLink getPreviousIssue();", "public boolean isBefore(MonthDay other) {\n if(month < other.month) {\n return true;\n } else if(month == other.month && day < other.day) {\n return true;\n } else {\n return false;\n }\n }", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment);", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public TimedVariable findPrev(Date ref)\n\t{\n\t\tif (vars.isEmpty())\n\t\t\treturn null;\n\t\tTimedVariable dummy = new TimedVariable(0);\n\t\tdummy.setTime(ref);\n\t\tint idx = Collections.binarySearch(vars, dummy, tvComparator);\n\t\tif (idx < 0)\n\t\t\tidx = (-idx) - 1;\n\n\t\t// The 'insertion point' would be the next one, so subtract one.\n\t\t// If now less than zero, there are no vars prev to 'sec'.\n\t\tif (--idx < 0)\n\t\t\treturn null;\n\t\treturn vars.get(idx);\n\t}", "public List<Amendment> filterAmendments(int paraId);", "public void prevSentences(ArrayList<Integer> list){\n \n// ArrayList<Integer> indexList = list;\n// ArrayList<Integer> returnList = new ArrayList(indexList.size()+1);\n \n for(int i = 0; i < list.size(); i++){\n Integer index = list.get(i);\n if(index > 0){\n if(!list.contains(index-1)){\n System.out.println(\"added\");\n// returnList.add(index-1);\n list.add(index-1);\n return;\n }\n }\n }\n \n// returnList.addAll(indexList);\n// \n//\n// return returnList;\n\n }", "IP4SubmittedChangelist[] getInterchanges();", "public ArrayList<Event> getEventsByInterval(Calendar initial_date, Calendar final_date) {\n\t\tArrayList<Event> result = new ArrayList<Event>();\n\t\tboolean insert = true;\n\t\t\n\t\tfor (int i = 0; i < events.size(); i++) {\t\t\t\n\t\t\tif (initial_date != null && final_date != null) {\t\t\n\t\t\t\tif (!events.get(i).getInitial_date().after(initial_date)\n\t\t\t\t\t\t|| !events.get(i).getFinal_date().before(final_date)) {\n\t\t\t\t\tinsert = false;\n\t\t\t\t}\n\t\t\t} else if (initial_date != null) {\n\t\t\t\tif (!events.get(i).getInitial_date().after(initial_date)) {\n\t\t\t\t\tinsert = false;\n\t\t\t\t}\n\t\t\t} else if (final_date != null) {\n\t\t\t\tif (!events.get(i).getFinal_date().before(final_date)) {\n\t\t\t\t\tinsert = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (insert) {\n\t\t\t\tresult.add(events.get(i));\n\t\t\t}\n\t\t\tinsert = true;\n\t\t}\n\t\treturn result;\n\t}", "public List<ExoSocialActivity> getOlderFeedActivities(Identity owner, Long sinceTime, int limit);", "public static void sortFeedbacksByDateCreated(List<Feedback> feedbacks) {\n Collections.sort(feedbacks, SORT_COMMENTS_BY_DATE_CREATED);\n }", "public int getNumberOfNewerComments(ExoSocialActivity existingActivity, Long sinceTime);", "public List<Event> getParticipatedEvents() {\n return participatedEvents;\n }", "List<PreparedStatement> getMarkMessageUnReadStatements(String id, String messageId,String forumId,String discussionId,Connection conn) throws Exception;", "public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}", "public ArrayList<Comment> getAllCommentsByQuestionIdSortedByDate(\n \t\t\tint questionId) {\n \t\tArrayList<Comment> sortedComments = new ArrayList<Comment>();\n \t\tQuestion currentQuestion = this.getQuestionById(questionId);\n \t\tfor (Comment currentComment : this.getComments()) {\n \t\t\tif (currentComment.getCommentedVotable().equals(currentQuestion))\n \t\t\t\tsortedComments.add(currentComment);\n \t\t}\n \t\tCollections.sort(sortedComments, new DateComparator());\n \t\treturn sortedComments;\n \t}", "@Override\n\tpublic LMSLeaveInformation[] findByDrafts_PrevAndNext(int SNo,\n\t\tString isDraft, OrderByComparator orderByComparator)\n\t\tthrows NoSuchLeaveInformationException, SystemException {\n\t\tLMSLeaveInformation lmsLeaveInformation = findByPrimaryKey(SNo);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tLMSLeaveInformation[] array = new LMSLeaveInformationImpl[3];\n\n\t\t\tarray[0] = getByDrafts_PrevAndNext(session, lmsLeaveInformation,\n\t\t\t\t\tisDraft, orderByComparator, true);\n\n\t\t\tarray[1] = lmsLeaveInformation;\n\n\t\t\tarray[2] = getByDrafts_PrevAndNext(session, lmsLeaveInformation,\n\t\t\t\t\tisDraft, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }", "public PagedList<Post> getTimeline(Integer limit, Integer offset, Long since, Long until, String after, String before) {\n return facebook.feedOperations().getFeed(new PagingParameters(limit, offset, since, until, after, before));\n }", "public List<ModelingSubmission> modelingSubmissionsForComparison(ModelingExercise exerciseWithParticipationsAndSubmissions) {\n return exerciseWithParticipationsAndSubmissions.getStudentParticipations().parallelStream().map(Participation::findLatestSubmission).filter(Optional::isPresent)\n .map(Optional::get).filter(submission -> submission instanceof ModelingSubmission).map(submission -> (ModelingSubmission) submission).collect(toUnmodifiableList());\n }", "public List<GeneralBuild> getPrevBuildsList(String buildName, String buildDate) {\n ResultSet rs = null;\n List<GeneralBuild> buildList = new ArrayList<>();\n try {\n String buildsQuery = \"select * from builds where build_name = ? and build_date < ? order by build_number desc\";\n rs = jdbcHelper.executeSelect(buildsQuery, buildName, Long.parseLong(buildDate));\n while (rs.next()) {\n Long id = rs.getLong(1);\n GeneralBuild buildEntity = resultSetToGeneralBuild(rs, id);\n buildList.add(buildEntity);\n }\n } catch (Exception e) {\n log.error(e.toString());\n } finally{\n DbUtils.close(rs);\n }\n return buildList;\n }", "private List<LocalDate> getBackDatedEntitlementDates(List<LocalDate> newChildrenDatesOfBirth, LocalDate cycleStartDate) {\n LocalDate earliestDateOfBirth = min(newChildrenDatesOfBirth);\n LocalDate rollingEntitlementDate = cycleStartDate.minusDays(entitlementCalculationDurationInDays);\n List<LocalDate> backDatedEntitlementDates = new ArrayList<>();\n\n while (rollingEntitlementDate.isAfter(earliestDateOfBirth) || rollingEntitlementDate.isEqual(earliestDateOfBirth)) {\n backDatedEntitlementDates.add(rollingEntitlementDate);\n rollingEntitlementDate = rollingEntitlementDate.minusDays(entitlementCalculationDurationInDays);\n }\n\n return backDatedEntitlementDates;\n }", "public List<ExoSocialActivity> getOlderUserActivities(Identity owner, Long sinceTime, int limit);" ]
[ "0.59219396", "0.5781546", "0.5454502", "0.49979764", "0.4736527", "0.46896496", "0.46866804", "0.46045205", "0.45829615", "0.45311722", "0.4487369", "0.44746724", "0.44302252", "0.4385978", "0.43523923", "0.42978093", "0.42701226", "0.42667186", "0.4255183", "0.42542893", "0.4244714", "0.424406", "0.4230021", "0.41999003", "0.41795355", "0.4166139", "0.41648617", "0.41400334", "0.4116606", "0.4094987", "0.40800217", "0.4072894", "0.40556434", "0.40479222", "0.40440667", "0.40264514", "0.40171897", "0.4016016", "0.4009009", "0.40081608", "0.39922938", "0.3990822", "0.39807022", "0.39666727", "0.39437878", "0.39373788", "0.39371148", "0.3930076", "0.39177513", "0.39175937", "0.39165753", "0.39083174", "0.3904706", "0.38984346", "0.38779235", "0.38763225", "0.3873214", "0.3869771", "0.3869713", "0.38695523", "0.3862609", "0.38621256", "0.38586995", "0.38540605", "0.3850516", "0.384809", "0.384682", "0.38437137", "0.38432285", "0.38421634", "0.38384902", "0.38332745", "0.3825015", "0.38243175", "0.38226894", "0.38205045", "0.38138616", "0.38110137", "0.3808196", "0.38066", "0.38044238", "0.38012096", "0.3800857", "0.37998345", "0.379651", "0.37922353", "0.37899923", "0.37886763", "0.37793624", "0.37792876", "0.37619522", "0.37579066", "0.37566522", "0.37554845", "0.37549692", "0.37509176", "0.37492657", "0.37423432", "0.37395436", "0.37371725" ]
0.6376258
0
Removes all the vcms discussions where articleId = &63; and approved = &63; from the database.
public void removeByA_A(java.lang.String articleId, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "void deleteAllChallenges();", "public void deleteAllArticles();", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public static Boolean deleteAllDraftMessage() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM drafts\");\r\n\t\t\t//Log.d(\"DRAFT DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"DRAFT DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "@Override\r\n\t@Transactional\r\n\tpublic void deleteAll() {\n\t\ttopicContentDao.deleteAll();\r\n\t}", "void deleteAllCommentsOfProject(int projectId) throws SQLException;", "public java.util.List<VcmsDiscussion> findAll();", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "@Before\n public void cleanConversations() {\n restController.deleteAllConvoMsgsForBlog(MAIN_BLOG_NAME);\n restController.deleteAllConversationsForBlog(MAIN_BLOG_NAME);\n }", "List<PreparedStatement> getUndeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "List<PreparedStatement> getDeleteForumStatements(String forumId,Connection conn) throws Exception;", "public void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);", "List<PreparedStatement> getDeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "@Override\n\tpublic void runPrune(String forumPath) throws Exception {\n\n\t}", "public void deleteAllFromSubCategory(int id) throws SQLException {\n\n Connection connection = database.getConnection();\n\n PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM posts WHERE threadId IN(SELECT threadId FROM threads WHERE subCategoryId = ?); \");\n stmt.setInt(1, id);\n\n stmt.execute();\n stmt.close();\n connection.close();\n }", "public void deleteMessages() {\n\t\tmessageDAO.modifyMessageList(currentContact.getMsgId(), new LinkedList<Mensaje>());\n\t\tcurrentContact.removeMessages();\n\t\tcontactDAO.modifyContact(currentContact);\n\t\t// Groups share the message list, only single contacts has to be updated\n\t\tif (currentContact instanceof ContactoIndividual) {\n\t\t\tUsuario user = userCatalog.getUser(currentContact.getUserId());\n\t\t\tOptional<Contacto> result = user.getContacts().stream().filter(c -> c.getUserId() == currentUser.getId())\n\t\t\t\t\t.findFirst();\n\t\t\tif (!result.isPresent())\n\t\t\t\treturn;\n\t\t\tmessageDAO.modifyMessageList(result.get().getMsgId(), new LinkedList<Mensaje>());\n\t\t\tresult.get().removeMessages();\n\t\t\tcontactDAO.modifyContact(result.get());\n\t\t}\n\t}", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }", "List<PreparedStatement> getMarkMessageUnReadStatements(String id, String messageId,String forumId,String discussionId,Connection conn) throws Exception;", "public void removeByArticle(java.lang.String articleId);", "public void removeByArticle(java.lang.String articleId);", "public void deleteDrafts(final Calendar deletedOn);", "@Test\n public void removeAll_with_workflow_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addWfToDb(0);\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n response = callAPI(VERB.GET, \"/wf/\", null);\n status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(1, readWorkflowList.size());\n }", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void deleteForum(Forum forum);", "int deleteByPrimaryKey(Integer announceid);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void deleteapply(int cid) {\n\t\tcomprehensive c=comprehensiveDao.get(comprehensive.class, cid);\r\n\t\tc.setReason(\"\");\r\n\t\tc.setStatus(2);\r\n\t\tcomprehensiveDao.update(c);\r\n\t\t\r\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "@Query(\"DELETE FROM issue_table\")\n void deleteAll();", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "@WorkerThread\n public void deleteAllArticles(final Runnable onComplete) {\n // we delete all articles on a background thread.\n mExecutor.execute(new Runnable() {\n @Override\n public void run() {\n mArticleDao.deleteAllArticles();\n onComplete.run();\n }\n });\n }", "@Transactional\r\n\tpublic void deleteAllBlogs() {\n\t\tsessionFactory.getCurrentSession().delete(getClass());\r\n\t}", "public void deleteForumById(Long idForum);", "@Test\n public void testRemoveAllAttachmentsFromAnIssue() {\n System.out.println(\"removeAllAttachmentsFromAnIssue\");\n User user = createUser(\"ionut1765\", \"i56723321\", \"io6t123321@mail6\", \"12345\");\n String content = \"io567321\";\n String title = \"t567itle64\";\n IssueState state = IssueState.OPEN;\n\n NewIssueDTO issueDto = createIssueDTO(title, content, state, new ArrayList<Long>(), new ArrayList<Long>());\n\n Long issueId = issueService.createIssueFromIssueDTO(issueDto, user);\n Issue issue = issueService.getIssueById(issueId);\n\n issueService.removeAllAttachmentsFromAnIssue(issueId);\n List<Label> result = issueService.getLabelsByIssueId(issue);\n\n assertTrue(result.isEmpty());\n }", "public abstract void removeAllAttachments();", "@Test\n public void removeAll_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "private void cleanActionsTables() {\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PUBLIC,\n null,\n null\n );\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PRIVATE,\n BaseColumns.MSG_IN_QUEUE + \"=1\",\n null\n );\n }", "int deleteByExample(DiscussExample example);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void unblock(){ \n blocked = false;\n blockedMssg = \"\";\n\n // update todos los votos como colectivo\n for (Collective c: memberCollectives) c.updateFamilyVotes();\n\n // update todos los votos como usuario\n for (Project p: getVotedProjects()) p.updateVotes();\n }", "void clearPersistentNotifications();", "private void deletePosts(DBCollection collection, int number) {\n\t\tList<DBObject> list = collection.find(QueryBuilder.start(\"target.messageID\").is(\"\").get()).sort(MongoUtils.reverseSort).limit(number).toArray();\n\t\t\n\t\t\n\t\tfor (DBObject obj : list) {\n\t\t\tMongoMethods.deletePost(collection, obj.get(\"_id\").toString());\n\t\t}\n\t}", "@Override\n public void onSuccess(Void aVoid) {\n Query fquery = FirebaseDatabase.getInstance().getReference(\"Posts\").orderByChild(\"pId\").equalTo(postId);\n fquery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds: dataSnapshot.getChildren()){\n\n ds.getRef().removeValue(); // remove value from firebase where pId matched\n\n }\n Toast.makeText(PostDetailActivity.this, \"Post Deleted !\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n\n }", "int deleteContentUserDraft(@Param(\"id\") long id);", "void clearAssociations();", "public boolean delete(Connection db) throws SQLException {\n boolean commit = true;\n Statement st = null;\n ResultSet rs = null;\n\n try {\n commit = db.getAutoCommit();\n\n //Check to see if a message is being used by any unfinished campaigns\n //If so, the message can't be deleted\n inactiveCount = 0;\n st = db.createStatement();\n rs = st.executeQuery(\n \"SELECT COUNT(*) AS message_count \" +\n \"FROM campaign \" +\n \"WHERE message_id = \" + this.getId() + \" \" +\n \"AND status_id <> \" + Campaign.FINISHED);\n rs.next();\n inactiveCount = rs.getInt(\"message_count\");\n rs.close();\n if (inactiveCount > 0) {\n st.close();\n return false;\n }\n\n //If not, then the message can be deleted because a copy is made for\n //activated campaigns\n if (commit) {\n db.setAutoCommit(false);\n }\n st.executeUpdate(\"DELETE FROM contact_message WHERE message_id = \" + this.getId());\n MessageAttachmentList attachmentList = new MessageAttachmentList();\n attachmentList.delete(db, Constants.MESSAGE_FILE_ATTACHMENTS, this.getId());\n st.executeUpdate(\"DELETE FROM \" + DatabaseUtils.addQuotes(db, \"message\") + \" WHERE id = \" + this.getId());\n st.close();\n if (commit) {\n db.commit();\n }\n } catch (SQLException e) {\n if (commit) {\n db.rollback();\n }\n throw new SQLException(e.toString());\n } finally {\n if (commit) {\n db.setAutoCommit(true);\n }\n }\n return true;\n }", "public static void removeAllGroupChatInvitationsInMms() {\n Logger.v(TAG, \"removeAllGroupChatInvitationsInMms entry\");\n ContentResolver contentResolver = MediatekFactory\n .getApplicationContext().getContentResolver();\n contentResolver.delete(PluginUtils.SMS_CONTENT_URI, Sms.ADDRESS\n + \" LIKE '\" + GROUP_CONTACT_STRING_BEGINNER\n + GROUP_CHAT_INVITATION_TAG_BEGINNER + \"%'\", null);\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Approvatore approvatore : findAll()) {\n\t\t\tremove(approvatore);\n\t\t}\n\t}", "@Override\r\n\tpublic int deleteArticleCommentsAll(int[] list) {\n\t\tint n=0;\r\n\t\tfor (int i = 0; i < list.length; i++) {\r\n\t\t\tcommentsmapper.deleteArticleComments(list[i]);\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "protected void processVerifyPrune(Context context,\n HttpServletRequest request, HttpServletResponse response,\n SubmissionInfo subInfo, boolean multipleTitles,\n boolean publishedBefore, boolean multipleFiles)\n throws ServletException, IOException, SQLException,\n AuthorizeException\n {\n // get the item to prune\n Item item = subInfo.getSubmissionItem().getItem();\n\n if (!multipleTitles && subInfo.getSubmissionItem().hasMultipleTitles())\n {\n item.clearDC(\"title\", \"alternative\", Item.ANY);\n }\n\n if (!publishedBefore && subInfo.getSubmissionItem().isPublishedBefore())\n {\n item.clearDC(\"date\", \"issued\", Item.ANY);\n item.clearDC(\"identifier\", \"citation\", Item.ANY);\n item.clearDC(\"publisher\", null, Item.ANY);\n }\n\n if (!multipleFiles && subInfo.getSubmissionItem().hasMultipleFiles())\n {\n // remove all but first bitstream from bundle[0]\n // FIXME: Assumes multiple bundles, clean up someday...\n // (only messes with the first bundle.)\n Bundle[] bundles = item.getBundles(\"ORIGINAL\");\n\n if (bundles.length > 0)\n {\n Bitstream[] bitstreams = bundles[0].getBitstreams();\n\n // Remove all but the first bitstream\n for (int i = 1; i < bitstreams.length; i++)\n {\n bundles[0].removeBitstream(bitstreams[i]);\n }\n }\n }\n }", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Test\n public void markAllConversationsUnhidden() {\n String participant1 = \"participant1\";\n String participant2 = \"participant2\";\n\n Conversation convo1 = new Conversation();\n convo1.setId(1L);\n convo1.setParticipant(participant1);\n convo1.setHideConversation(true);\n restController.createConversationForBlog(MAIN_BLOG_NAME, convo1);\n Conversation convo2 = new Conversation();\n convo2.setId(2L);\n convo2.setParticipant(participant2);\n convo2.setHideConversation(true);\n restController.createConversationForBlog(MAIN_BLOG_NAME, convo2);\n\n List<Conversation> allConvos = restController.getAllConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(allConvos).isNotNull();\n assertThat(allConvos.size()).isEqualTo(2);\n\n List<Conversation> allUnHiddenConvos = restController.getUnhiddenConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(allUnHiddenConvos).isNotNull();\n assertThat(allUnHiddenConvos.size()).isEqualTo(0);\n\n restController.unignoreAllConversationsForBlog(MAIN_BLOG_NAME);\n\n List<Conversation> finalList = restController.getUnhiddenConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(finalList).isNotNull();\n assertThat(finalList.size()).isEqualTo(2);\n }", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic int deleteCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tresult = this.delete(\"deleteCommunity\", params);\n\t\treturn result;\n\t}", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "@Override\n\tpublic void deleteArticle(int bId) {\n\t\tarticles.remove(bId);\n\t}", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "int deleteByPrimaryKey(Long articleTagId);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public static void cleanChanList() {\n\t\tArrayList<ChatChannel> currentChannels = new ArrayList<ChatChannel>();\n\t\tfor (int i = 0; i < channels.size(); i++) {\n\t\t\tcurrentChannels.add(channels.get(i));\n\t\t}\n\t\t\n\t\t//loop through the new array list\n\t\tfor (ChatChannel channel: currentChannels) {\n\t\t\tboolean remove = true;\n\t\t\tif (!channel.modes.contains(ChatChannel.Mode.PERSIST)) {\n\t\t\t\t//Not persist. Check the players\n\t\t\t\tfor (int f = 0; f < PlayerManager.players.size(); f++){\n\t\t\t\t\tChatPlayer player = PlayerManager.players.get(f);\n\t\t\t\t\t\n\t\t\t\t\t//check if in channel or listening\n\t\t\t\t\tif (player.listening.contains(channel.name.toLowerCase()) || player.listening.contains(channel.name.toLowerCase())){\n\t\t\t\t\t\tremove = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremove = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (remove) {\n\t\t\t\tremoveChannel(channel.name);\n\t\t\t\tSystem.out.println(\"Remove channel: \"+channel.name);\n\t\t\t}\n\t\t}\n\t}", "public void pruneEnvironments(final int numToPrune) {\n final SQLiteDatabase db = this.helper.getWritableDatabase();\n db.beginTransaction();\n try {\n db.delete(\"environments\",\n \"id in (SELECT env \" +\n \" FROM events \" +\n \" GROUP BY env \" +\n \" ORDER BY MAX(date), env \" +\n \" LIMIT \" + numToPrune + \")\",\n null);\n db.setTransactionSuccessful();\n } finally {\n db.endTransaction();\n }\n }", "public boolean deleteAllPosts () throws SQLException{\n boolean areDeleted;\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n areDeleted= database.delete(\"Post\", null, null)>0;\n\n dbH.close();\n return areDeleted;\n\n }", "private void deleteAttacks(){\n while(!attacksToDelete.isEmpty()){\n attacks.remove(attacksToDelete.remove());\n }\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Answer answer : findAll()) {\n\t\t\tremove(answer);\n\t\t}\n\t}", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "void deleteBlogPost(BlogPost blogPost);", "public void deleteArticle(Article article);", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "@PrePersist\r\n @PreUpdate\r\n public void removeEmptyComments()\r\n {\r\n List<Comment> empty = new ArrayList<Comment>();\r\n for (Comment current : this.getComments())\r\n {\r\n current.removeEmptyComments();\r\n if (current.getText() == null || current.getText().isEmpty())\r\n {\r\n empty.add(current);\r\n }\r\n }\r\n\r\n this.getComments().removeAll(empty);\r\n }", "public void deleteDefectEntity(Long id);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "@Override\r\n\t@Transactional\r\n\tpublic void delete(TopicContent entity) {\n\t\ttopicContentDao.delete(entity);\r\n\t}", "public void remove(MongoDBCritera critera);", "private void clearContentIdToEmbeddingTokens() {\n contentIdToEmbeddingTokens_ = emptyProtobufList();\n }", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.DELETE)\n\tpublic void deleteVideos() {\n\t\tassert(videos != null);\n\t\t\n\t\tfor (Video v : videos.values()) {\n\t\t\ttry {\n\t\t\t\tVideoFileManager.get().deleteVideoData(v);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\tvideos.clear();\n\t}", "void removeVideoFromCollection(User user, String video_id);", "private void deleteMeeting(int meetingId) {\n ArrayList<Integer> attendeeIds = attendToRepo.getAttendeeIDs(meetingId);\n for (int id : attendeeIds){\n Log.d(tag, \"Removing attendee \" + id + \" from meeting \" + meetingId);\n attendToRepo.delete(id, meetingId);\n\n /* Deleting the attendee if this one does not attend any meeting any more */\n if (attendToRepo.getMeetingIDs(id).size() == 0)\n attendeeRepo.delete(id);\n }\n\n /* Removing the meeting */\n meetingRepo.delete(meetingId);\n }" ]
[ "0.60155565", "0.5871514", "0.55927587", "0.54960763", "0.5465896", "0.5361729", "0.5280219", "0.5243292", "0.52237284", "0.51413405", "0.5127734", "0.5100489", "0.5075182", "0.4986123", "0.49637082", "0.49525437", "0.49490002", "0.49470827", "0.48728028", "0.48668522", "0.48586404", "0.48564842", "0.4854553", "0.4830668", "0.48250192", "0.48110408", "0.48041213", "0.48035452", "0.4802796", "0.48006096", "0.48006096", "0.4770624", "0.47572172", "0.47496757", "0.4721799", "0.47190168", "0.47142097", "0.47015765", "0.46844965", "0.4666057", "0.4634298", "0.4631041", "0.4619762", "0.46070117", "0.46033686", "0.4600203", "0.45924076", "0.45790836", "0.45784718", "0.4561256", "0.45503265", "0.4545182", "0.45419672", "0.4507454", "0.44992456", "0.4495455", "0.4493535", "0.44858897", "0.4484095", "0.4483537", "0.4474888", "0.44694737", "0.44674048", "0.44673422", "0.445969", "0.44399774", "0.44298947", "0.4411787", "0.44100133", "0.44090572", "0.4408587", "0.4408303", "0.4404918", "0.44020575", "0.43972117", "0.43961832", "0.4394792", "0.43894097", "0.4386455", "0.43787986", "0.4374489", "0.4374489", "0.4374489", "0.4374489", "0.4374489", "0.4374489", "0.4374489", "0.4374489", "0.4374489", "0.4374489", "0.43644243", "0.43599358", "0.43592113", "0.4356238", "0.43556076", "0.43519598", "0.4342357", "0.4341511", "0.43403643", "0.4338678" ]
0.5708663
2
Returns the number of vcms discussions where articleId = &63; and approved = &63;.
public int countByA_A(java.lang.String articleId, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);", "public int countByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int countSelective(MemberAdvisoryComment record);", "public int getAmendmentCount(int paraId);", "public int countByArticle(java.lang.String articleId);", "public int countByArticle(java.lang.String articleId);", "long countByExample(DiscussExample example);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "int commentsCount();", "public int getNumberOfComments(ExoSocialActivity existingActivity);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public int getCountForum();", "int getNewsindentifydetailCount();", "public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "@Override\n\tpublic int getVideoCommentCount(long vid) {\n\t\treturn 0;\n\t}", "public int getSUB2AnonimCommentCount(WebElement article) {\n String countText = baseFunc.getElement(MOB_SUB2_ANON_ARTICLE_COUNT).getText();\n String count = countText.substring(countText.indexOf(\"(\") + 1, countText.indexOf(\")\"));\n return Integer.valueOf(count);\n }", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public int getNumAnnouncements(){\n return message.length;\n }", "int countByExample(CmsVoteTitleExample example);", "long getTotalAcceptCount(long id);", "public int getNumberOfActivitiesByPoster(Identity ownerIdentity, Identity viewerIdentity);", "int postsCount();", "public int getNumberOfActivitiesByPoster(Identity posterIdentity);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);", "long getTotalAcceptCount();", "long countByExample(CmsChannelCriteria example);", "int countByExample(NewsInfoExample example);", "int getVotes(QuestionId questionId);", "public int countByapproval_status(java.lang.String approval_status);", "public int getNumberOfNewerComments(ExoSocialActivity existingActivity, Long sinceTime);", "public int getSUB2RegisteredCommentCount(WebElement article) {\n String countText = baseFunc.getElement(MOB_SUB2_REG_ARTICLE_COUNT).getText();\n String count = countText.substring(countText.indexOf(\"(\") + 1, countText.indexOf(\")\"));\n return Integer.valueOf(count);\n }", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "Integer countAnswersByQuestionId(String questionId);", "@Query(\"select count(r) from Reply r group by r.comment\")\n\tCollection<Double> dashboardRepliesPerComment();", "int countByExample(NewsExample example);", "public int getNumberOfPostOnBlog(){\n List<BlogPost>blogs = blogPostFacade.findAll();\n int k=0;\n for(BlogPost temp: blogs){\n if(temp.getBlog().getId().equals(blogPost.getBlog().getId())){\n k++;\n System.out.println(\"Mes \"+temp.getMessage());\n }\n \n }\n return k ;\n }", "@Sql(\"SELECT count(m.id) FROM message m WHERE NOT CASEWHEN(m.user_id = 0, false, (SELECT iu.ignored FROM user iu WHERE iu.id = m.user_id)) AND (SELECT tc.ignored FROM topic_cache tc WHERE tc.topic_id = CASEWHEN(m.topic_id = 0, m.id, m.topic_id)) = false AND m.user_id <> m.parent_user_id AND m.parent_user_id = ? AND m.forum_id > 0\")\r\n int getUserReplies(int ownId) throws StorageException;", "int countByExample(TopicFragmentExample example);", "public long getPublicQuestionCount() {\n return Question.count(\"select count(q.id) from Question q, User u, Company c \" +\n \"where q.user = u and u.company = c and u.company = ? and q.status = ? and active = ?\",\n this, QuestionStatus.ACCEPTED, true);\n }", "@Override\r\n\tpublic int getTotalCommentsCount(Integer bdNoQa) {\n\t\treturn this.boardQaCommentsDao.getTotalCommentsCount(bdNoQa);\t// 댓글의 갯수 불러오기\r\n\t}", "int getDeliveredCount();", "int countByExample(FeiWenCommentExample example);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public int getNumberOfNewerComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "@Override\n\tpublic int getTotalCount(int boardId) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\tint totalCount = 0;\n\t\t\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\t\n\t\t\tString query = \"SELECT COUNT(comment_id)\t\" +\n\t\t\t\t\t\t \"FROM scomment\t\t\t\t\" +\n\t\t\t\t\t\t \"WHERE board_id = ?\t\t\t\" +\n\t\t\t\t\t\t \"AND isdeleted is NULL\t\t\";\n\t\t\tpstmt = conn.prepareStatement(query);\n\t\t\t\n\t\t\tpstmt.setInt(1, boardId);\n\t\t\t\n\t\t\trs = pstmt.executeQuery();\n\t\t\t\n\t\t\tif (rs.next()) {\n\t\t\t\ttotalCount = rs.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t\tif (conn != null) conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"error:\" + e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn totalCount;\n\t}", "public int countEntityActiveAndProjectIDAndIsCurrentVersion(Project project, Boolean entityActive, boolean isCurrentVersion){\n TypedQuery<Artefact> query = em.createNamedQuery(\"Artefact.findByEntityActiveAndProjectIDAndIsCurrentVersion\", Artefact.class);\n query.setParameter(\"projectID\", project);\n query.setParameter(\"entityActive\", entityActive);\n query.setParameter(\"isCurrentVersion\", isCurrentVersion);\n List<Artefact> results = query.getResultList();\n return results.size();\n }", "@Override\n\tpublic int getSubVideoCommentCount(long subVid) {\n\t\treturn 0;\n\t}", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public long getActiveInterviewCount() {\n QueryBase query = new AccessibleInterviews(getDefaultAdminUser(), 2, \n \"desc\", null, 0, Integer.MAX_VALUE);\n \n List<InterviewFilter> filters = new ArrayList<InterviewFilter>(1);\n InterviewFilter filter = new ByActive();\n filter.include(\"true\");\n filters.add(filter);\n \n QueryFilterListBinder filteredQuery = \n new QueryFilterListBinder(query, filters);\n filteredQuery.init(2, \"desc\", 0, Integer.MAX_VALUE);\n \n return filteredQuery.executeCountQuery();\n }", "public int findTotalDisplaySubjectsByPaperId( Integer paperId ) throws DAOException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\r\n\tpublic BigInteger getCommentCount(Long postsid) {\n\t\tString sql = \"select count(*) from comment\";\r\n\t\tif (postsid != null) {\r\n\t\t\tsql += \" where postsid=\" + postsid;\r\n\t\t}\r\n\t\tList<BigInteger> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "long countByExample(ArticleDoExample example);", "int getContentIdToEmbeddingTokensCount();", "public int getNumberOfActivitesOnActivityFeed(Identity ownerIdentity);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic int countByDrafts(String isDraft) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_DRAFTS;\n\n\t\tObject[] finderArgs = new Object[] { isDraft };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_LMSLEAVEINFORMATION_WHERE);\n\n\t\t\tboolean bindIsDraft = false;\n\n\t\t\tif (isDraft == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_1);\n\t\t\t}\n\t\t\telse if (isDraft.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindIsDraft = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindIsDraft) {\n\t\t\t\t\tqPos.add(isDraft);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int countByExample(ComplainNoteDOExample example);", "long countByExample(trackcommentExample example);", "long countWorkflows();", "private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}", "@Override\n\tpublic Integer queryNewsCount(News params) throws Exception {\n\t\treturn null;\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "static long reviewCount(Context context) {\n SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context);\n return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW);\n }", "long countByPostId(@NonNull @Param(\"postId\") Integer postId);", "int countByExample(CommentLikeExample example);", "@Override\r\n\tpublic int boardCommentCount(int boardNo) {\n\t\treturn sqlSession.selectOne(namespace + \"boardCommentCount\", boardNo);\r\n\t}", "int countByExample(PublicDoctorNoticeExample example);", "public int getTotalMessageCount(){\n Query query = new Query(\"Message\");\n Query query2 = new Query(\"Question\");\n PreparedQuery results = datastore.prepare(query);\n PreparedQuery results2 = datastore.prepare(query2);\n return results.countEntities(FetchOptions.Builder.withLimit(1000)) + results2.countEntities(FetchOptions.Builder.withLimit(1000));\n}", "public int countArticle(){\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n Cursor Count= sqLiteDatabase.rawQuery(\"select count(*) from\"+ ConfigDAO.TABLE_AISLE, null);\n Count.moveToFirst();\n int count= Count.getInt(0);\n Count.close();\n return count;\n }", "int countByExample(WxNewsExample example);", "public static int getTotalTicketsResolved(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"SELECT Count(technician_id) FROM alerts where technician_id= ? and status= 3;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "public Integer countNews(String sql) {\n return newsDao.countNews(sql);\n }", "public int getNumberOfEnablePosts_inForum(int forumID)\r\n throws DatabaseException;", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);", "@Override\n\tpublic int totalContentCount(String searchVar) {\n\t\treturn template.selectOne(\"board.totalContentCount\",searchVar);\n\t}", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);", "int getVulnerabilityReportsCount();", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);", "int getDocumentCount();", "public boolean hasMoreDiscussions();", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int getAdvisorCount();", "public String countByExample(BsNewsExample example) {\n BEGIN();\n SELECT(\"count(*)\");\n FROM(\"bs_news\");\n applyWhere(example, false);\n return SQL();\n }", "int getViewsCount();", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);", "int getParticipantsCount();", "int getParticipantsCount();", "private int newAttendCount(String postid){\n final String DB_NAME = \"testDB\";\n final String EVENT_TABLE = \"EVENT\";\n int oldcount;\n int newCount = 0;\n try (Connection con = ConnectionTest.getConnection(DB_NAME);\n Statement stmt = con.createStatement();){\n System.out.println(postid);\n String query = \"SELECT * FROM \" + EVENT_TABLE+\" WHERE postID ='\"+postid+\"'\";\n try (ResultSet resultSet = stmt.executeQuery(query)) {\n while(resultSet.next()) {\n oldcount = resultSet.getInt(\"eventAttendCount\");\n newCount = oldcount+1;\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n\n return newCount;\n }", "public int countLikesForContent(Integer contentID){\n\n ArrayList<Like> likes = likeRepository.findByContentID(contentID);\n\n int total = likes.size();\n return total;\n }", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment);", "public int countBycourse_id(long course_id);", "int getMessageIdCount();", "int getNoticeListCount();" ]
[ "0.65609276", "0.60825926", "0.59040606", "0.5810872", "0.5758108", "0.573994", "0.5739177", "0.5736199", "0.56703246", "0.565837", "0.56209695", "0.5570511", "0.55631864", "0.55435", "0.5527042", "0.55200404", "0.55099475", "0.55069643", "0.54419935", "0.53433514", "0.5339711", "0.533812", "0.5337807", "0.5290957", "0.52882975", "0.5286799", "0.5253416", "0.52274996", "0.5223499", "0.52205163", "0.521579", "0.52057093", "0.51764995", "0.5175832", "0.5168553", "0.51674503", "0.5148346", "0.5141907", "0.512828", "0.51280177", "0.512348", "0.51154244", "0.5102488", "0.5096192", "0.50904566", "0.50856197", "0.5085176", "0.5084519", "0.5075836", "0.5072712", "0.50621754", "0.50471306", "0.50422645", "0.5040821", "0.50387836", "0.50208783", "0.50065327", "0.49980158", "0.49970484", "0.4985768", "0.49849886", "0.49828818", "0.49827456", "0.49659958", "0.49600524", "0.4952953", "0.49520335", "0.49433333", "0.49396423", "0.49360874", "0.49356967", "0.4934669", "0.4932465", "0.4929521", "0.49280062", "0.4917498", "0.49126843", "0.49110523", "0.49006176", "0.48993474", "0.48945862", "0.4890661", "0.48864093", "0.48844108", "0.48696047", "0.4865729", "0.48580536", "0.4844186", "0.48440683", "0.48439303", "0.48392487", "0.48190755", "0.48141846", "0.48141846", "0.4812802", "0.48050645", "0.480026", "0.4794294", "0.4790067", "0.47877738" ]
0.64408994
1
Returns all the vcms discussions where articleId = &63;.
public java.util.List<VcmsDiscussion> findByArticle( java.lang.String articleId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public java.util.List<VcmsDiscussion> findAll();", "Iterable<Comment> findByArticleId(int articleId);", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public Discussion[] getDiscussions() throws DAOException;", "public Discussion[] getDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion create(java.lang.String discussionId);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "List<Comment> getComments(long mediaId);", "@GetMapping(value = \"/{id}/relevant\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Messenger> getManyExcludeIdRelateCategoryId(\n\t\t\t@PathVariable(name = \"id\") int articleId,\n\t\t\t@RequestParam(name = \"limit\", required = false, defaultValue = \"3\") int limit) {\n\t\t\n\t\tif (limit <= 0)\n\t\t\treturn new ResponseEntity<Messenger>(HttpStatus.NOT_ACCEPTABLE);\n\t\t\n\t\tif (!detailedArticleRepository.checkOneById(articleId))\n\t\t\treturn new ResponseEntity<Messenger>(HttpStatus.NOT_FOUND);\n\t\t\n\t\tList<TruncatedArticleSendover> articleList = articleService.getManyExcludeIdRelateCategoryId(articleId, limit);\n\t\treturn new ResponseEntity<Messenger>(new Messenger(articleList), HttpStatus.OK);\n\t}", "public java.util.List<VcmsArticleType> findByArticle(\n\t\tjava.lang.String articleId);", "public IDiscussionTopicList getAttachedDiscussionTopics()\n throws OculusException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public String getDiscussion(){\n return discussion;\n }", "public boolean hasMoreDiscussions();", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Comment> findCommentsToLifeHack(long id) throws DaoException;", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "@Override\n\tpublic List<Commune> getAllCommune(String districtId) {\n\t\tList<Commune> com = communeRepo.findAll();\n\t\tList<Commune> tmp = new ArrayList<Commune>();\n\t\tfor(Commune a: com) {\n\t\t\tif(a.getDistrict().getDistrictId().equals(districtId))\n\t\t\t\ttmp.add(a);\n\t\t}\n\t\treturn tmp;\n\t}", "public List<BlogComment> getCommentsByPost(Long id);", "public List<Comment> getAllComments(long messageId){\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\n\t\treturn new ArrayList<Comment>(comments.values());\n\t\t\n\t}", "@Override\n\tpublic List<CommentVnEntity> GetCommentByMotel(Integer motel_id) {\n\t\treturn commentDao.ListCommentByMotel(motel_id);\n\t}", "java.lang.String getLegacyDiscussionId();", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "@Override\r\n public final List<Article> getArticles() {\r\n final IssueId issueId = getIssueId();\r\n final List<Article> articles = new ArrayList<Article>();\r\n final List<Node> articleNodes = getArticleNodes();\r\n for (final Node articleNode : articleNodes) {\r\n try {\r\n final Article article = getArticle(articleNode, issueId);\r\n if (article != null) {\r\n article.setIssueRef(issueId);\r\n articles.add(article);\r\n }\r\n } catch (Exception e) {\r\n log().warn(\"Error reading article details from \" + issueId, e);\r\n }\r\n }\r\n return articles;\r\n }", "public List<Comment> getAllComments(long messageId) {\r\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\r\n\t\treturn new ArrayList<Comment>(comments.values());\r\n\t}", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Secured({ \"ROLE_ADMIN\" })\r\n\t@RequestMapping(value = { \"/admin/comment/news/{id}\", \"/admin/komentar/vest/{id}\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllCommentForGivenNews(@PathVariable(value = \"id\") Integer newsID) {\r\n\t\treturn new ResponseEntity(commentRepository.findByNewsID(newsID), HttpStatus.OK);\r\n\t}", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\r\n\tpublic List<Article> findByAllPid(Article article) {\n\t\treturn articleDao.findByAllPid(article);\r\n\t}", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic BoardVO getArticle(int bId) {\n\t\treturn articles.get(bId);\n\t}", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public List<Commentary> fetchAll(int id_Note) {\n return commentaryRepository.findAll(id_Note);\n }", "public IDiscussionTopicList getAttachedDiscussionTopics(boolean edit)\n throws OculusException;", "public ArrayList<Article> getUnpublishedArticle(int authorID) throws SQLException {\r\n\t\tConnectionManager conn=null;\r\n\t\tArrayList<Integer> intArtID = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> finalselectedArticleID = new ArrayList<Integer>();\r\n\t\tArrayList<Article> unpubArticle = new ArrayList<Article>();\r\n\t\tString queryArticle = \"select ArticleAuthor.articleID from ArticleAuthor where ArticleAuthor.authorID =\" + authorID;\r\n\t\ttry {\r\n\t\t\tconn = new ConnectionManager();\r\n\t\t\tStatement st = conn.getInstance().getConnection().createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(queryArticle);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint articleId=rs.getInt(\"ArticleAuthor.articleID\");\r\n\t\t\t\tSystem.out.println(\"articleIDs aayi:\"+articleId);\r\n\t\t\t\tintArtID.add(articleId);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(intArtID);\r\n\t\t\trs.close();\r\n\t\t\tfor(int a: intArtID){\r\n\t\t\t\tStatement st1 = conn.getInstance().getConnection().createStatement();\r\n\t\t\t\tString selectQuery2 = \"Select articleID from Article where articleID!=\"+a;\r\n\t\t\t\tResultSet rs1 = st1.executeQuery(selectQuery2);\r\n\t\t\t\twhile(rs1.next()){\r\n\t\t\t\t\tint articleId=rs1.getInt(\"articleID\");\r\n\t\t\t\t\tif(!intArtID.contains(articleId)){\r\n\t\t\t\t\t\tif(!finalselectedArticleID.contains(articleId)){\r\n\t\t\t\t\t\t\tfinalselectedArticleID.add(articleId);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Final ids:\"+finalselectedArticleID);\r\n\t\t\tfor(int autID : finalselectedArticleID ){\r\n\t\t\t\tStatement st2 = conn.getInstance().getConnection().createStatement();\r\n\t\t\t\tString q = \"select articleID, title, summary from Article where articleID=\"+autID;\r\n\t\t\t\tResultSet rs2 = st2.executeQuery(q);\r\n\t\t\t\twhile (rs2.next()) {\r\n\t\t\t\t\tString unpublishedTitle = (String) rs2.getObject(\"title\");\r\n\t\t\t\t\tString unpublishedSummary = (String) rs2.getObject(\"summary\");\r\n\t\t\t\t\tint articeIde=rs2.getInt(\"articleID\");\r\n\t\t\t\t\tArticle article2 = new Article(articeIde, unpublishedTitle, unpublishedSummary);\r\n\t\t\t\t\tunpubArticle.add(article2);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(unpubArticle);\r\n\t\t\t\trs2.close();\r\n\t\t\t\tst2.close();\r\n\t\t\t}\r\n\t\t\tst.close();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tif (conn!=null){\r\n\t\t\t\tconn.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn unpubArticle;\r\n\t}", "List<KnowledgeComment> selectAll();", "@Override\n\tpublic List<Mediastype> selectByMediaId(String articleid) {\n\t\treturn mediasMapper.selectByMediaId(articleid);\n\t}", "com.google.protobuf.ByteString\n getLegacyDiscussionIdBytes();", "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "java.lang.String getLinkToDiscussion();", "public IDiscussionTopicList getAttachedDiscussionTopics(IDataSet args)\n throws OculusException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "com.google.protobuf.ByteString\n getLinkToDiscussionBytes();", "@Override\n\tpublic List<SubjectEntity> queryPubSubList(String subject_id) {\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\" select subject_id,subject_name,subject_introduction,subject_image,subject_url,subject_keyword\");\n\t\tsql.append(\" from tb_subject where subject_state=5 and subject_id not in (?) order by subject_publishdate desc limit 0,8\");\n\t\treturn this.queryList(sql.toString(), new Object[]{subject_id}, new BeanPropertyRowMapper(SubjectEntity.class));\n\t}", "public List<TopicComment> findByEntryId(Long entryId) {\n\t\treturn null;\n\t}", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getCommentByIdTvShow(Long idTvShow) {\n Session session = sessionFactory.getCurrentSession();\n String hql = \"from Comment s where s.tvShow.id = :idtv\";\n return session.createQuery(hql, Comment.class)\n .setParameter(\"idtv\", idTvShow)\n .getResultList();\n }", "public List<Article> getListByCategory(Long id) {\n\t\tQuery query = entityManager.createNativeQuery(\"SELECT * FROM articles INNER JOIN articles_categories ON \" \n\t\t\t\t+ \"articles.id = articles_categories.articles_id WHERE articles_categories.category_id = ?1\", Article.class);\n\t\tquery.setParameter(1, id);\n\t\treturn query.getResultList();\n\t}", "TrackerComments getTrackerComments(final Integer id);", "public List<Course> findByTopicId(int topicId);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic BoardVO getArticle(int bId) {\n\t\tString sql = \"SELECT * FROM board WHERE board_id=?\";\n\t\treturn template.queryForObject(sql, new BoardMapper(), bId);\n\t\t\t\n\t\t\n\t}", "@Override\n\tpublic List<String> getTagsByArticle(int aid) {\n\t\tString hql = \"select t.content from TagInfo as t,ArticleInfo as a where a.articleId= ? and a.tags.tagId = t.tagId\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\t//Query query = sessionFactory.getCurrentSession().createSQLQuery(sql);\n\t\tquery.setInteger(0, aid);\n\t\treturn query.list();\n\t}", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public JTextPane getDiscussion(){\n return discussion;\n }", "public List<Message> getChatList(String boardId) {\n\t\tConnection conn = getConnection();\n\t\tList<Message> list = cd.getChatList(conn, boardId);\n\t\tclose(conn);\n\t\treturn list;\n\t}", "public Forum getForumById(Long idForum);", "public static List<Comment> getCommentsByPostId(int postId) throws SQLException {\n try (\n PreparedStatementContainer container = PreparedStatementContainer.of(\n DatabaseConnector.getConnection(),\n \"select * from comment where postID = ?\",\n postId\n );\n ResultSet resultSet = container.query()\n ) {\n List<Comment> comments = new ArrayList<>();\n while (resultSet.next()) {\n comments.add(getComment(resultSet));\n }\n return comments;\n }\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "@Override\r\n\tpublic List<TopicContent> findAll() {\n\t\treturn topicContentDao.findAll();\r\n\t}", "public Content findContentById(Long contentId) {\n return contentDAO.findById(contentId);\n }", "public List<News> getNewsList(Integer id) {\n List<News> newsList = newsMapper.selectByAuthorId(id);\n newsList.sort((dt1,dt2) -> {\n if (dt1.getPubdate().getTime() < dt2.getPubdate().getTime()) {\n return 1;\n } else if (dt1.getPubdate().getTime() > dt2.getPubdate().getTime()) {\n return -1;\n } else {\n return 0;\n }\n });\n return newsList;\n }", "public String[] getArticleDetails(int articleId) {\n String[] information = new String[4];\n String query = \"SELECT TOP 1 ePrintID, Title, Abstract, Subject\\n\"\n + \"FROM OriginaltblArticleInfo\\n\" //TODO was tbl not Originaltbl\n + \"WHERE ePrintID = \" + articleId;\n\n try {\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(query);\n if (rs.next()) {\n information[0] = rs.getString(1);\n information[1] = rs.getString(2);\n information[2] = rs.getString(3);\n information[3] = rs.getString(4);\n }\n rs.close();\n } catch (SQLException e) {\n System.out.print(e.getMessage());\n } catch (NullPointerException e) {\n System.out.print(e.getMessage());\n }\n return information;\n }", "@Override\n\tpublic List<Image> findByIdArticles(long idArticles) {\n\t\treturn imageRepository.findByIdArticles(idArticles);\n\t}", "public List<Course> getAllCourses(String topicId){\n\t\t//return courses;\n\t\tArrayList<Course> course = new ArrayList<>();\n\t\tcourseRepository.findByTopicId(topicId).forEach(course::add);\n\t\treturn course;\n\t}", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "@Override\n\tpublic List<BoardVO> getArticle() {\n\t\treturn articles;\n\t}", "@Override\n\tpublic List<BoardVO> getArticle() {\n\t\tString sql = \"SELECT * FROM board ORDER BY board_id ASC\";\n\t\t\n\t\treturn template.query(sql, new BoardMapper());\n\t}", "public WebElement getArticleById(int id) {\n LOGGER.info(\"Getting article Nr.\" + (id + 1));\n // if we use assertions better to initialize \"articles\" before assertions;\n List<WebElement> articles = baseFunc.findElements(ARTICLE);\n\n //if list is not empty, everything is ok;\n Assertions.assertFalse(articles.isEmpty(), \"There are no articles!\");\n //if article count > searched article, everything is ok;\n Assertions.assertTrue(articles.size() > id, \"Article amount is less than id\");\n\n return articles.get(id);\n }", "public List<Object> getListForum();", "List<Article> selectAll();", "public static Task<QuerySnapshot> getTripComments(String tripId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_COMMENTS_COLLECTION)\n .get();\n }", "static public List<InlineResponse2002> articlesFeedIdGet(String id)\n {\n ArrayList<InlineResponse2002> l = new ArrayList<>();\n\n for (int i = 0; i < 512; i += (i % 2 == 0) ? 3 : 7)\n {\n InlineResponse2002 a = new InlineResponse2002();\n\n a.setId(i);\n a.setTitle(\"Some random [\" + i + \"] article\");\n l.add(a);\n }\n return l;\n }", "@Override\r\n\tpublic List<News> findAllNews() {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<News> newsList = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"select * from news\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\tnewsList = new ArrayList<>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tNews aNews = new News();\r\n\t\t\t\taNews.setId(rs.getInt(1));\r\n\t\t\t\taNews.setTitle(rs.getString(2));\r\n\t\t\t\taNews.setContent(rs.getString(\"content\"));\r\n\t\t\t\taNews.setCreateTime(rs.getDate(\"createTime\"));\r\n\t\t\t\taNews.setFk_topic_id(rs.getInt(\"fk_topic_id\"));\r\n\t\t\t\t\r\n\t\t\t\tnewsList.add(aNews);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSimpleDBUtil.closeAll(rs, pstmt, conn);\r\n\t\t}\r\n\t\t\r\n\t\treturn newsList;\r\n\t}", "public static List<Subject> getAllbyLectID(int id) {\n List<Subject> list = new ArrayList<>();\n try {\n Connection connection = MySQL.getConnection();\n Statement stmt = connection.createStatement();\n String sqlSelect = \"select * from subjects where lect_id=\" + id + \" group by subject_name\";\n ResultSet rs = stmt.executeQuery(sqlSelect);\n while (rs.next()) {\n Subject e = new Subject();\n e.setSubjectID(rs.getInt(1));\n e.setSubjectCode(rs.getString(2));\n e.setSubjectName(rs.getString(3));\n e.setFacultyID(rs.getInt(4));\n e.setLectID(rs.getInt(5));\n list.add(e);\n\n }\n } catch (SQLException ex) {\n ex.getMessage();\n }\n\n return list;\n }", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "private void getArticles() throws Exception {\n\t\t\tHttpClient httpClient = new DefaultHttpClient();\n\n\t\t\tStringBuilder uriBuilder = new StringBuilder(BASE_URL);\n\t\t\turiBuilder.append(mURL);\n\n\t\t\tHttpGet request = new HttpGet(uriBuilder.toString());\n\t\t\tHttpResponse response = httpClient.execute(request);\n\n\t\t\tint status = response.getStatusLine().getStatusCode();\n\n\t\t\tif (status != HttpStatus.SC_OK) {\n\n\t\t\t\t// Log whatever the server returns in the response body.\n\t\t\t\tByteArrayOutputStream ostream = new ByteArrayOutputStream();\n\n\t\t\t\tresponse.getEntity().writeTo(ostream);\n\t\t\t\tmHandler.sendEmptyMessage(0);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tInputStream content = response.getEntity().getContent();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(content));\n\t\t\tStringBuilder result = new StringBuilder();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tresult.append(line);\n\t\t\t}\n\n\t\t\t// Clean up and close connection.\n\t\t\tcontent.close();\n\n\t\t\tString html = result.toString();\n\t\t\t//This is our regex to match each article\n\t\t\t//This website's html is not xml compatible so regex is next best thing\n\t\t\tPattern p = Pattern.compile(\"<td class=\\\"title\\\"><a href=\\\"(.*?)\\\".*?>(.*?)<\\\\/a>(<span class=\\\"comhead\\\">(.*?)<\\\\/span>)?.*?<\\\\/td><\\\\/tr><tr><td colspan=2><\\\\/td><td class=\\\"subtext\\\">.*? by <a href=\\\"user\\\\?.*?\\\">(.*?)<\\\\/a>.*?<a href=\\\"item\\\\?id=(.*?)\\\">\");\n\t\t\tMatcher m = p.matcher(html);\n\t\t\tList<Article> articles = new ArrayList<Article>();\n\t\t\twhile(m.find()) {\n\t\t\t\tString url = m.group(1);\n\t\t\t\tString title = m.group(2);\n\t\t\t\tString domain = m.group(4);\n\t\t\t\tString author = m.group(5);\n\t\t\t\tString discussionID = m.group(6);\n\t\t\t\tArticle eachArticle = new Article(title, domain, url, author, discussionID);\n\t\t\t\tarticles.add(eachArticle); \n\t\t\t}\n\n\t\t\tMessage msg = mHandler.obtainMessage();\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putParcelableArrayList(\"articles\", (ArrayList<? extends Parcelable>) articles);\n\t\t\tmsg.setData(bundle);\n\t\t\tmHandler.sendMessage(msg);\n\t\t}", "public List<Course> getAllCourses(String topicId){\n//\t\treturn topics;\n\t\tList<Course> courses = new ArrayList<Course>();\n\t\tcourseRepo.findByTopicId(topicId).forEach(courses::add);\n\t\treturn courses;\n\t}", "public Comments getComments(Long id) {\r\n\t\treturn comDao.findById(id);\r\n\t}", "List<Discuss> selectByExample(DiscussExample example);", "Article findArticleById(String id);", "void displayCommentsForPostWithId(String id);", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public List<Forum> getListForumWithStatus(String viewStatus);", "@Override\n public Digital getNews(int id) throws Exception {\n Connection con = null;\n ResultSet rs = null;\n PreparedStatement ps = null;\n String s = \"select * from digital where id = ?\";\n // check connection of db if cannot connect, it will throw an object of Exception\n try {\n con = getConnection();\n ps = con.prepareCall(s);\n ps.setInt(1, id);\n rs = ps.executeQuery();\n while (rs.next()) {\n Digital d = new Digital(rs.getInt(\"id\"),\n rs.getString(\"title\"),\n rs.getString(\"description\"),\n rs.getString(\"images\"),\n rs.getString(\"author\"),\n rs.getTimestamp(\"timePost\"),\n rs.getString(\"shortDes\"));\n return d;\n }\n } catch (Exception e) {\n throw e;\n } finally {\n // close ResultSet, PrepareStatement, Connection\n closeResultSet(rs);\n closePrepareStateMent(ps);\n closeConnection(con);\n }\n return null;\n }" ]
[ "0.75191057", "0.7220827", "0.6626418", "0.6608136", "0.61980367", "0.61976635", "0.6111802", "0.604299", "0.60349566", "0.5988912", "0.5939699", "0.5694016", "0.5653072", "0.5640057", "0.55786514", "0.5502321", "0.54316986", "0.5399874", "0.52794325", "0.52646446", "0.52408797", "0.52293926", "0.5206066", "0.5197493", "0.5157832", "0.5125122", "0.5076091", "0.50384355", "0.5029633", "0.5014666", "0.4985914", "0.49808934", "0.49650884", "0.49628645", "0.495466", "0.49329382", "0.49326643", "0.49177206", "0.49098998", "0.49067038", "0.48734832", "0.48632973", "0.4856233", "0.4844709", "0.48255348", "0.48182213", "0.48163384", "0.48159024", "0.48139712", "0.4796929", "0.47957784", "0.47867247", "0.47586775", "0.47332877", "0.47296998", "0.47239354", "0.47215125", "0.4708013", "0.47076315", "0.47054875", "0.47025156", "0.47008023", "0.46913433", "0.46758476", "0.4664321", "0.46640083", "0.464388", "0.46407276", "0.46387368", "0.46368527", "0.46345556", "0.46295834", "0.46182132", "0.46024323", "0.4597035", "0.4578831", "0.4564994", "0.45601356", "0.4552495", "0.45515049", "0.45470786", "0.45438507", "0.45364246", "0.4527559", "0.45270205", "0.45172456", "0.45127234", "0.4505321", "0.45051527", "0.45031303", "0.45017084", "0.44945315", "0.4487433", "0.44850877", "0.44835445", "0.44819772", "0.44773808", "0.44772208", "0.4471814", "0.4466159" ]
0.84524393
0
Returns the first vcms discussion in the ordered set where articleId = &63;.
public VcmsDiscussion findByArticle_First(java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public Discussion getDiscussion(int discussionID) throws DAOException;", "Article findLatestArticle();", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Iterable<Comment> findByArticleId(int articleId);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic NewsCollection findOne(Integer id) {\n\t\treturn newsCollectionMapper.findOne(id);\n\t}", "public VcmsDiscussion create(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public WebElement getArticleById(int id) {\n LOGGER.info(\"Getting article Nr.\" + (id + 1));\n // if we use assertions better to initialize \"articles\" before assertions;\n List<WebElement> articles = baseFunc.findElements(ARTICLE);\n\n //if list is not empty, everything is ok;\n Assertions.assertFalse(articles.isEmpty(), \"There are no articles!\");\n //if article count > searched article, everything is ok;\n Assertions.assertTrue(articles.size() > id, \"Article amount is less than id\");\n\n return articles.get(id);\n }", "public cn.edu.kmust.flst.domain.flst.tables.pojos.Article fetchOneByArticleId(Integer value) {\n return fetchOne(Article.ARTICLE.ARTICLE_ID, value);\n }", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "java.lang.String getLegacyDiscussionId();", "Optional<Comment> findByIdAndArticleId(int commentId, int articleId);", "Optional<UserContentComment> findOne(Long id);", "KnowledgeComment selectByPrimaryKey(Integer id);", "public String getDiscussion(){\n return discussion;\n }", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic BoardVO getArticle(int bId) {\n\t\treturn articles.get(bId);\n\t}", "NewsItem obtainNewsItemById(long id) throws ObjectRetrievalFailureException;", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "Article findArticleById(String id);", "public VcmsArticleType fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public java.util.List<VcmsDiscussion> findAll();", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "@GetMapping(value = \"/{id}/get\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Messenger> getOneById(@PathVariable(name = \"id\") int articleId) {\n\t\t\n\t\tDetailedArticleSendover articleSendover = articleService.getOneById(articleId);\n\t\t\n\t\tif (articleSendover == null)\n\t\t\treturn new ResponseEntity<Messenger>(HttpStatus.NOT_FOUND);\n\t\telse\n\t\t\treturn new ResponseEntity<Messenger>(new Messenger(articleSendover), HttpStatus.OK);\n\t}", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "Article selectByPrimaryKey(String id);", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public long getArticleId() {\n\t\treturn this.articleId;\r\n\t}", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "@Override\r\n\tpublic Comment getOnecomment(Integer commentId) {\n\t\treturn commentDao.getOnecomment(commentId);\r\n\t}", "public Optional<Comment> getSingleCommentByAuthor(int postId, int authorId) {\n List<Comment> comments = commentRepository.findByPostId(postId);\n if(comments.size() > 0) {\n Optional<Comment> desiredComment = comments.stream()\n .filter(comment -> {\n int theId = comment.getAuthor().getId();\n return theId == authorId;\n }).findFirst();\n\n return desiredComment;\n }\n\n return null;\n }", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Message findOneMessage(long id) {\n\t\treturn null;\n\t}", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "public Comment findComment(int id) {\n\t\treturn cdi.findComment(id);\n\t}", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public JTextPane getDiscussion(){\n return discussion;\n }", "@Override\r\n\tpublic Article findBySid(Article article) {\n\t\treturn articleDao.findBySid(article);\r\n\t}", "int getFirstItemOnPage();", "@Override\r\n\tpublic Article select(Integer id) {\n\t\treturn dao.select(id);\r\n\t}", "FeiWenComment selectByPrimaryKey(String cid);", "News selectByPrimaryKey(Integer id);", "public Optional<Content> findContentById(Integer contentID){\n\n Optional<Content> content = contentRepository.findById(contentID);\n\n if(content.isPresent()){\n return content;\n }\n throw new HubNotFoundException(\"Could not find content for contentID: \" + contentID);\n }", "@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}", "Article selectOneByExample(ArticleExample example);", "Comment selectByPrimaryKey(Integer cid);", "@Override\n\tpublic News getNewsById(Integer id) throws Exception {\n\t\treturn null;\n\t}", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "public Article getArticle(String article_ID) throws SQLException {\r\n\t\tString queryArticle = \"select Article.articleID, Article.title, Article.summary, Article.published, Article.reviewed, Article.pageNo from Article where articleID LIKE '%\" + article_ID + \"%'\";\r\n\t\tArticle article = null ;\r\n\t\tConnectionManager conn = null;\r\n\t\ttry {\r\n\t\t\tconn = new ConnectionManager();\r\n\t\t\tStatement st = conn.getInstance().getConnection().createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(queryArticle);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint articleID = rs.getInt(\"Article.articleID\");\r\n\t\t\t\tString title = (String) rs.getObject(\"Article.title\");\r\n\t\t\t\tString summary = (String) rs.getObject(\"Article.summary\");\r\n\t\t\t\tBoolean published = (Boolean) rs.getObject(\"Article.published\");\r\n\t\t\t\tBoolean reviewed = (Boolean) rs.getObject(\"Article.reviewed\");\r\n\t\t\t\tint pageNo = rs.getInt(\"Article.pageNo\");\r\n\t\t\t\tarticle = new Article(articleID, title, summary, published, reviewed, pageNo);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\t\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tif (conn!=null){\r\n\t\t\t\tconn.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn article;\r\n\t}", "public int getArticleID() {\n return articleID;\n }", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "MsgContent selectByPrimaryKey(Integer id);", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "WxNews selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic LabelArticle selectById(int id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic News getNewsById(int id) {\n\t\tConnection conn =null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tNews aNews = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql=\"select * from news where id = ?\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, id);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\t\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\taNews = new News();\r\n\t\t\t\taNews.setId(rs.getInt(1));\r\n\t\t\t\taNews.setTitle(rs.getString(2));\r\n\t\t\t\taNews.setContent(rs.getString(\"content\"));\r\n\t\t\t\taNews.setCreateTime(rs.getDate(\"createTime\"));\r\n\t\t\t\taNews.setFk_topic_id(rs.getInt(\"fk_topic_id\"));\r\n\t\t\t}\r\n\r\n\t\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}finally {\r\n\t\t\tSimpleDBUtil.closeAll(rs, pstmt, conn);\r\n\t\t}\r\n\t\treturn aNews;\r\n\t}", "Commet selectByPrimaryKey(String commentId);", "public News getByid(News news);", "Question getFirstQuestion();", "public BlogArticle gainOne(Integer id) {\n\t\treturn blogArticleDao.gainOne(id);\n\t}", "@Override\n\tpublic List<CommentVnEntity> GetCommentByMotel(Integer motel_id) {\n\t\treturn commentDao.ListCommentByMotel(motel_id);\n\t}", "public static Article getById(final int id) {\n\t\treturn (Article)getById(currentClass, id, true);\n\t}", "public Subject selectOne(String id) {\n\t\treturn subjectdao.selectOne(id);\n\t}", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n public Article getArticleById(@PathVariable(\"id\") int id) {\n CacheKey key= new CacheKey(id);\n Article article = cacheArticles.get(key);\n if (article==null){\n article=articleDAO.getArticleById(id);\n cacheArticles.put(key,article);\n }\n return article;\n }", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Comment findById(int commentId);", "public EscherRecord findFirstWithId(short id) {\n \treturn findFirstWithId(id, getEscherRecords());\n }", "private Integer getFirstOpenParent(int currentIndex, String componentId) {\n\t\tStatisticsLog statisticsLog = messageFlowLogs.get(messageFlowLogs.get(currentIndex).getParentIndex());\n\t\twhile (statisticsLog.getCurrentIndex() > 0) {\n\t\t\tif (statisticsLog.isOpenLog() && statisticsLog.getComponentName().equals(componentId)) {\n\t\t\t\treturn statisticsLog.getCurrentIndex();\n\t\t\t}\n\t\t\tstatisticsLog = messageFlowLogs.get(statisticsLog.getParentIndex());\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Optional<Message> findById(Long id) {\n\t\treturn messRepository.findById(id);\n\t}" ]
[ "0.7394197", "0.68455267", "0.6588739", "0.63235986", "0.6116745", "0.59538734", "0.5827132", "0.57934856", "0.5741836", "0.5664746", "0.5569397", "0.5532131", "0.54756093", "0.53790087", "0.5376864", "0.5352321", "0.5303275", "0.5280047", "0.5225602", "0.51708996", "0.51370466", "0.51156795", "0.51094824", "0.5095674", "0.50872546", "0.5070472", "0.50646335", "0.5039085", "0.50336707", "0.501746", "0.49939638", "0.49566048", "0.4955409", "0.493667", "0.49349892", "0.488106", "0.48698726", "0.4865499", "0.48526323", "0.48462504", "0.48244295", "0.48236498", "0.48235336", "0.48190624", "0.47992018", "0.47876728", "0.47627792", "0.47432286", "0.4741975", "0.4740479", "0.47213614", "0.47197992", "0.47139195", "0.47092393", "0.47073048", "0.47052762", "0.46813583", "0.4672495", "0.46708855", "0.46685097", "0.46569392", "0.46337134", "0.46255857", "0.4620027", "0.46195132", "0.46165457", "0.4613328", "0.46131214", "0.4608174", "0.45994937", "0.45946693", "0.4591544", "0.4574968", "0.45708477", "0.4556057", "0.45361683", "0.453299", "0.4529407", "0.4525561", "0.45237124", "0.45206407", "0.45186564", "0.45107594", "0.44859874", "0.44855773", "0.44830185", "0.44812387", "0.4469374", "0.4461541", "0.44563544", "0.4450251", "0.4447837", "0.44382536", "0.4438045", "0.44323537", "0.44247928", "0.44203258", "0.4411204", "0.4410349", "0.4402821" ]
0.6306931
4
Returns the first vcms discussion in the ordered set where articleId = &63;.
public VcmsDiscussion fetchByArticle_First(java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public Discussion getDiscussion(int discussionID) throws DAOException;", "Article findLatestArticle();", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Iterable<Comment> findByArticleId(int articleId);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic NewsCollection findOne(Integer id) {\n\t\treturn newsCollectionMapper.findOne(id);\n\t}", "public VcmsDiscussion create(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public WebElement getArticleById(int id) {\n LOGGER.info(\"Getting article Nr.\" + (id + 1));\n // if we use assertions better to initialize \"articles\" before assertions;\n List<WebElement> articles = baseFunc.findElements(ARTICLE);\n\n //if list is not empty, everything is ok;\n Assertions.assertFalse(articles.isEmpty(), \"There are no articles!\");\n //if article count > searched article, everything is ok;\n Assertions.assertTrue(articles.size() > id, \"Article amount is less than id\");\n\n return articles.get(id);\n }", "public cn.edu.kmust.flst.domain.flst.tables.pojos.Article fetchOneByArticleId(Integer value) {\n return fetchOne(Article.ARTICLE.ARTICLE_ID, value);\n }", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "java.lang.String getLegacyDiscussionId();", "Optional<Comment> findByIdAndArticleId(int commentId, int articleId);", "Optional<UserContentComment> findOne(Long id);", "KnowledgeComment selectByPrimaryKey(Integer id);", "public String getDiscussion(){\n return discussion;\n }", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic BoardVO getArticle(int bId) {\n\t\treturn articles.get(bId);\n\t}", "NewsItem obtainNewsItemById(long id) throws ObjectRetrievalFailureException;", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "Article findArticleById(String id);", "public VcmsArticleType fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public java.util.List<VcmsDiscussion> findAll();", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "@GetMapping(value = \"/{id}/get\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Messenger> getOneById(@PathVariable(name = \"id\") int articleId) {\n\t\t\n\t\tDetailedArticleSendover articleSendover = articleService.getOneById(articleId);\n\t\t\n\t\tif (articleSendover == null)\n\t\t\treturn new ResponseEntity<Messenger>(HttpStatus.NOT_FOUND);\n\t\telse\n\t\t\treturn new ResponseEntity<Messenger>(new Messenger(articleSendover), HttpStatus.OK);\n\t}", "Article selectByPrimaryKey(String id);", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public long getArticleId() {\n\t\treturn this.articleId;\r\n\t}", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "@Override\r\n\tpublic Comment getOnecomment(Integer commentId) {\n\t\treturn commentDao.getOnecomment(commentId);\r\n\t}", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Optional<Comment> getSingleCommentByAuthor(int postId, int authorId) {\n List<Comment> comments = commentRepository.findByPostId(postId);\n if(comments.size() > 0) {\n Optional<Comment> desiredComment = comments.stream()\n .filter(comment -> {\n int theId = comment.getAuthor().getId();\n return theId == authorId;\n }).findFirst();\n\n return desiredComment;\n }\n\n return null;\n }", "@Override\n\tpublic Message findOneMessage(long id) {\n\t\treturn null;\n\t}", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "public Comment findComment(int id) {\n\t\treturn cdi.findComment(id);\n\t}", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public JTextPane getDiscussion(){\n return discussion;\n }", "@Override\r\n\tpublic Article findBySid(Article article) {\n\t\treturn articleDao.findBySid(article);\r\n\t}", "FeiWenComment selectByPrimaryKey(String cid);", "int getFirstItemOnPage();", "@Override\r\n\tpublic Article select(Integer id) {\n\t\treturn dao.select(id);\r\n\t}", "News selectByPrimaryKey(Integer id);", "public Optional<Content> findContentById(Integer contentID){\n\n Optional<Content> content = contentRepository.findById(contentID);\n\n if(content.isPresent()){\n return content;\n }\n throw new HubNotFoundException(\"Could not find content for contentID: \" + contentID);\n }", "@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}", "Article selectOneByExample(ArticleExample example);", "Comment selectByPrimaryKey(Integer cid);", "@Override\n\tpublic News getNewsById(Integer id) throws Exception {\n\t\treturn null;\n\t}", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "public Article getArticle(String article_ID) throws SQLException {\r\n\t\tString queryArticle = \"select Article.articleID, Article.title, Article.summary, Article.published, Article.reviewed, Article.pageNo from Article where articleID LIKE '%\" + article_ID + \"%'\";\r\n\t\tArticle article = null ;\r\n\t\tConnectionManager conn = null;\r\n\t\ttry {\r\n\t\t\tconn = new ConnectionManager();\r\n\t\t\tStatement st = conn.getInstance().getConnection().createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(queryArticle);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint articleID = rs.getInt(\"Article.articleID\");\r\n\t\t\t\tString title = (String) rs.getObject(\"Article.title\");\r\n\t\t\t\tString summary = (String) rs.getObject(\"Article.summary\");\r\n\t\t\t\tBoolean published = (Boolean) rs.getObject(\"Article.published\");\r\n\t\t\t\tBoolean reviewed = (Boolean) rs.getObject(\"Article.reviewed\");\r\n\t\t\t\tint pageNo = rs.getInt(\"Article.pageNo\");\r\n\t\t\t\tarticle = new Article(articleID, title, summary, published, reviewed, pageNo);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\t\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tif (conn!=null){\r\n\t\t\t\tconn.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn article;\r\n\t}", "public int getArticleID() {\n return articleID;\n }", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "MsgContent selectByPrimaryKey(Integer id);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "WxNews selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic LabelArticle selectById(int id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic News getNewsById(int id) {\n\t\tConnection conn =null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tNews aNews = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql=\"select * from news where id = ?\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, id);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\t\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\taNews = new News();\r\n\t\t\t\taNews.setId(rs.getInt(1));\r\n\t\t\t\taNews.setTitle(rs.getString(2));\r\n\t\t\t\taNews.setContent(rs.getString(\"content\"));\r\n\t\t\t\taNews.setCreateTime(rs.getDate(\"createTime\"));\r\n\t\t\t\taNews.setFk_topic_id(rs.getInt(\"fk_topic_id\"));\r\n\t\t\t}\r\n\r\n\t\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}finally {\r\n\t\t\tSimpleDBUtil.closeAll(rs, pstmt, conn);\r\n\t\t}\r\n\t\treturn aNews;\r\n\t}", "Commet selectByPrimaryKey(String commentId);", "public News getByid(News news);", "Question getFirstQuestion();", "public BlogArticle gainOne(Integer id) {\n\t\treturn blogArticleDao.gainOne(id);\n\t}", "@Override\n\tpublic List<CommentVnEntity> GetCommentByMotel(Integer motel_id) {\n\t\treturn commentDao.ListCommentByMotel(motel_id);\n\t}", "public static Article getById(final int id) {\n\t\treturn (Article)getById(currentClass, id, true);\n\t}", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Subject selectOne(String id) {\n\t\treturn subjectdao.selectOne(id);\n\t}", "@Override\n public Article getArticleById(@PathVariable(\"id\") int id) {\n CacheKey key= new CacheKey(id);\n Article article = cacheArticles.get(key);\n if (article==null){\n article=articleDAO.getArticleById(id);\n cacheArticles.put(key,article);\n }\n return article;\n }", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Comment findById(int commentId);", "public EscherRecord findFirstWithId(short id) {\n \treturn findFirstWithId(id, getEscherRecords());\n }", "private Integer getFirstOpenParent(int currentIndex, String componentId) {\n\t\tStatisticsLog statisticsLog = messageFlowLogs.get(messageFlowLogs.get(currentIndex).getParentIndex());\n\t\twhile (statisticsLog.getCurrentIndex() > 0) {\n\t\t\tif (statisticsLog.isOpenLog() && statisticsLog.getComponentName().equals(componentId)) {\n\t\t\t\treturn statisticsLog.getCurrentIndex();\n\t\t\t}\n\t\t\tstatisticsLog = messageFlowLogs.get(statisticsLog.getParentIndex());\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Optional<Message> findById(Long id) {\n\t\treturn messRepository.findById(id);\n\t}" ]
[ "0.6848387", "0.6587701", "0.6322069", "0.6306263", "0.6115815", "0.5956252", "0.582952", "0.5793368", "0.5740509", "0.56635374", "0.55699867", "0.5533", "0.5476686", "0.5379797", "0.53775775", "0.53509706", "0.5304835", "0.5280731", "0.52241635", "0.5173445", "0.5137381", "0.5114381", "0.5113142", "0.509532", "0.5086446", "0.50691575", "0.50650406", "0.5040368", "0.50332403", "0.5017474", "0.49958175", "0.49565297", "0.49547783", "0.49375468", "0.49369407", "0.48816738", "0.4870404", "0.48662445", "0.48521265", "0.48445293", "0.482559", "0.4823577", "0.4821801", "0.4819401", "0.47993872", "0.4789991", "0.47627613", "0.47426802", "0.4740716", "0.4739964", "0.4722872", "0.47209617", "0.47108", "0.4709404", "0.47092435", "0.4706304", "0.46818876", "0.4672017", "0.46717525", "0.46658877", "0.46581817", "0.4633737", "0.46260646", "0.46211925", "0.46195734", "0.46143648", "0.46142298", "0.46136177", "0.46082044", "0.45985052", "0.45936817", "0.45911115", "0.45762", "0.45701134", "0.45535025", "0.45362872", "0.4533753", "0.45311347", "0.4526564", "0.45228425", "0.45194748", "0.45173767", "0.45116258", "0.448605", "0.44854358", "0.44825944", "0.44824526", "0.44695303", "0.44600356", "0.44558084", "0.4452111", "0.4447253", "0.44378927", "0.44374517", "0.44331002", "0.4424324", "0.44207278", "0.4410133", "0.44079122", "0.44013885" ]
0.7393335
0
Returns the last vcms discussion in the ordered set where articleId = &63;.
public VcmsDiscussion findByArticle_Last(java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "java.lang.String getLegacyDiscussionId();", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public String getDiscussion(){\n return discussion;\n }", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public VcmsArticleType fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "@Override\n\tpublic Page<CommentInfo> findAllByArticleIdOrderByLayerDesc(\n\t\t\tInteger articleId, int page) {\n\t\tCommentInfo info = new CommentInfo();\n\t\tinfo.setStatusCd(1);\n\t\tinfo.setArticleId(articleId);\n\t\treturn findAllBySpecification(info, page);\n\t}", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Article> findTop3ByOrderByPostTimeDesc();", "public java.util.List<VcmsDiscussion> findAll();", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "com.google.protobuf.ByteString\n getLegacyDiscussionIdBytes();", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public boolean hasMoreDiscussions();", "@RequestMapping(value = \"/threads/{id}/latest\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get latest comments of the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Page<Comment>> getLatest(\n @PathVariable String id,\n @RequestParam(value = Constants.PARAM_PAGE, required = false, defaultValue = \"0\") Integer page\n ) throws KalipoException, ExecutionException, InterruptedException {\n\n log.debug(\"REST request to get latest Comments of Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.getLatestCommentsWithPages(id, page).get())\n .map(comments -> new ResponseEntity<>(\n comments,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public V getLatest() {\n return lastItemOfList(versions);\n }", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic BoardVO getArticle(int bId) {\n\t\treturn articles.get(bId);\n\t}", "public JTextPane getDiscussion(){\n return discussion;\n }", "public Date getLastPublished() {\n return lastPublished;\n }", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "Iterable<Comment> findByArticleId(int articleId);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public String getLatestMessage() {\n return mLastMessage;\n }", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "java.lang.String getLinkToDiscussion();", "public final int getLatestPostNumber() {\n\t\treturn this.latestPostNumber;\n\t}", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }", "public static int getLastSubjectId() {\n Calendar c = Calendar.getInstance();\n Date now = c.getTime();\n int day;\n int lesson = -1;\n boolean end = false;\n\n SimpleDateFormat s = new SimpleDateFormat(\"dd.MM.yyy HH:mm\", Locale.GERMAN);\n\n if((day = schedule.getTodaysNumber()) < 5) {\n for(int i = 0; i < 9 && !end; i++) {\n c.set(Calendar.HOUR_OF_DAY, Storage.schedule.getTime(i, 0, 0));\n c.set(Calendar.MINUTE, Storage.schedule.getTime(i, 0, 0));\n if(now.before(c.getTime())) {\n lesson = i-1;\n end = true;\n }\n }\n if(lesson == -1) {\n return -1;\n }\n if(Storage.schedule.getLesson(day, lesson) == null) {\n return -1;\n }\n return Storage.schedule.getLesson(day, lesson).getSubjectIndex();\n }\n else {\n return -1;\n }\n }", "public VcmsDiscussion create(java.lang.String discussionId);", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "public long getArticleId() {\n\t\treturn this.articleId;\r\n\t}", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public List<Comment> getLastCommentsByCategory(String category);", "@Override\n public Course getByMaxId() {\n Course result = null;\n String statement = FINDBYMAXID;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getByMaxId()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return result;\n }", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public long getUpperBound() {\n AuditReader auditService = Framework.getService(AuditReader.class);\n String auditQuery = \"from LogEntry log order by log.id desc\";\n log.debug(\"Querying audit log for greatest id: {}\", auditQuery);\n\n List<LogEntry> entries = (List<LogEntry>) auditService.nativeQuery(auditQuery, 1, 1);\n if (entries.isEmpty()) {\n log.debug(\"Found no audit log entries, returning -1\");\n return -1;\n }\n return entries.get(0).getId();\n }", "public Discussion[] getDiscussions() throws DAOException;", "public VcmsArticleType findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator)\n\t\tthrows NoSuchVcmsArticleTypeException;", "public List<ConceptoPago> getUltimoCptoPagoPorCuentaConceptoDet(CuentaConceptoDetalleId pId) throws BusinessException{\r\n\t\tList<ConceptoPago> lista = null;\r\n\t\ttry{\r\n\t\t\tHashMap<String,Object> mapa = new HashMap<String,Object>();\r\n\t\t\tmapa.put(\"intPersEmpresaPk\", pId.getIntPersEmpresaPk());\r\n\t\t\tmapa.put(\"intCuentaPk\", pId.getIntCuentaPk());\r\n\t\t\tmapa.put(\"intItemCuentaConcepto\", pId.getIntItemCuentaConcepto());\r\n\t\t\tmapa.put(\"intItemCtaCptoDet\", pId.getIntItemCtaCptoDet());\r\n\r\n\t\t\tlista = dao.getUltimoCptoPagoPorCuentaConceptoDet(mapa);\r\n\r\n\t\t}catch(DAOException e){\r\n\t\t\tthrow new BusinessException(e);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new BusinessException(e);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public Track printLongestTrack()\r\n {\r\n\t// Initialise variables to store longest Track and its Duration\r\n\tTrack longestTrack = null;\r\n\tDuration maxDuration = new Duration();\r\n\r\n\t// Iterate over albums in the collection getting the longest track in\r\n\t// each\r\n\tfor (Album album : this.getAlbums())\r\n\t{\r\n\t Track currentTrack = album.getLongestTrack();\r\n\t Duration currentDuration = currentTrack.getTrackDuration();\r\n\r\n\t // Compare duration of longest track in this album with max duration \r\n\t // found so far. If it is longer, store the track and its duration.\r\n\t if (currentDuration.compareTo(maxDuration) > 0)\r\n\t {\r\n\t\tlongestTrack = currentTrack;\r\n\t\tmaxDuration = currentDuration;\r\n\t }\r\n\t}\r\n\r\n\t// Display the album with max track count\r\n\tString outputString = \"Track in collection with longest duration:\\r\\n\";\r\n\tSystem.out.print(outputString);\r\n\t// Print details of last (longest) track in the sorted track list\r\n\tSystem.out.println(longestTrack);\r\n\treturn longestTrack;\r\n }", "com.google.protobuf.ByteString\n getLinkToDiscussionBytes();", "public SeleniumQueryObject last() {\n\t\treturn LastFunction.last(this, this.elements);\n\t}", "public Pago findTopByOrderByIdDesc();", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public long getLastViewedPosition() {\n return mPreference.getLong(\"LastViewedPosition\", 0);\n }", "private int getLastIDRisposte() {\n\n\t\tArrayList<Integer> risposteIdList = new ArrayList<>();\n\t\trisposteIdList.add(0);\n\t\tDB db = getDB();\t\t\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\t\n\t\tfor(Map.Entry<Long, Risposta> risposta : risposte.entrySet())\n\t\t\tif(risposta.getValue() instanceof Risposta)\n\t\t\t\trisposteIdList.add(risposta.getValue().getId());\n\t\t\n\t\tInteger id = Collections.max(risposteIdList);\n\t\treturn id;\n\t}", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "public Date getMessageLastPost() {\n return messageLastPost;\n }", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public long getLastChatDataTimestamp (long collaborationRoomId,\r\n SQLiteDatabase database) {\r\n long lastMessageTimestamp = -1L;\r\n\r\n if (database != null) {\r\n try {\r\n // Decending by timestamp so that the newest item is the first item returned.\r\n String orderBy = \"seqtime DESC\";\r\n String sqlSelection = \"collabroomid==?\";\r\n String[] sqlSelectionArguments = {String.valueOf (collaborationRoomId)};\r\n\r\n Cursor cursor = database.query(tableName, // Table\r\n TABLE_COLUMNS_MAP.keySet ().toArray (new String[TABLE_COLUMNS_MAP.size ()]), // Columns\r\n sqlSelection, // Selection\r\n sqlSelectionArguments, // Selection arguments\r\n null, // Group by\r\n null, // Having\r\n orderBy); // Order by\r\n\r\n if (cursor != null) {\r\n cursor.moveToFirst();\r\n\r\n // First record is our newest item (largest timestamp).\r\n if (!cursor.isAfterLast ()) {\r\n lastMessageTimestamp = cursor.getLong (cursor.getColumnIndex (\"seqtime\"));\r\n }\r\n\r\n cursor.close();\r\n }\r\n } catch (Exception ex) {\r\n Log.w (Constants.nics_DEBUG_ANDROID_TAG,\r\n \"Exception occurred while trying to get data from table: \\\"\" + tableName + \"\\\"\",\r\n ex);\r\n }\r\n } else {\r\n Log.w (Constants.nics_DEBUG_ANDROID_TAG,\r\n \"Could not get database to get all data from table: \\\"\" + tableName + \"\\\"\");\r\n }\r\n\r\n return lastMessageTimestamp;\r\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public WebElement getArticleById(int id) {\n LOGGER.info(\"Getting article Nr.\" + (id + 1));\n // if we use assertions better to initialize \"articles\" before assertions;\n List<WebElement> articles = baseFunc.findElements(ARTICLE);\n\n //if list is not empty, everything is ok;\n Assertions.assertFalse(articles.isEmpty(), \"There are no articles!\");\n //if article count > searched article, everything is ok;\n Assertions.assertTrue(articles.size() > id, \"Article amount is less than id\");\n\n return articles.get(id);\n }" ]
[ "0.74692386", "0.66278183", "0.65003455", "0.62474144", "0.6243756", "0.6199894", "0.59712696", "0.58795667", "0.5837126", "0.5722709", "0.55871326", "0.5572145", "0.54565036", "0.5444125", "0.5427175", "0.5395243", "0.5379498", "0.53486615", "0.53139687", "0.5305266", "0.530474", "0.527968", "0.5277905", "0.52096987", "0.5196059", "0.5193352", "0.5185278", "0.5133202", "0.5117713", "0.5092508", "0.5088481", "0.5072826", "0.50670063", "0.50243586", "0.49985313", "0.49678904", "0.49546462", "0.49441147", "0.49423546", "0.49268427", "0.4913605", "0.4898578", "0.48952252", "0.48856616", "0.48786014", "0.48560828", "0.48479253", "0.48381507", "0.48258826", "0.4819009", "0.48036575", "0.47895497", "0.4776331", "0.47750777", "0.47665164", "0.47495636", "0.47122657", "0.47061124", "0.47023028", "0.46991822", "0.46991515", "0.46973863", "0.46954915", "0.46842274", "0.46780437", "0.46725535", "0.46702796", "0.46633196", "0.46552432", "0.46525493", "0.46400714", "0.46337286", "0.46337286", "0.4631351", "0.46247447", "0.4612619", "0.460548", "0.4600704", "0.45880228", "0.457105", "0.45553538", "0.45526576", "0.4548588", "0.4527812", "0.4523234", "0.45068482", "0.44960928", "0.44834262", "0.44783995", "0.44666457", "0.4453718", "0.44491443", "0.4447081", "0.444234", "0.4441191", "0.44315347", "0.442439", "0.44215655", "0.44119838", "0.44046345" ]
0.64748806
3
Returns the last vcms discussion in the ordered set where articleId = &63;.
public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Article findLatestArticle();", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "java.lang.String getLegacyDiscussionId();", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public String getDiscussion(){\n return discussion;\n }", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public VcmsArticleType fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "@Override\n\tpublic Page<CommentInfo> findAllByArticleIdOrderByLayerDesc(\n\t\t\tInteger articleId, int page) {\n\t\tCommentInfo info = new CommentInfo();\n\t\tinfo.setStatusCd(1);\n\t\tinfo.setArticleId(articleId);\n\t\treturn findAllBySpecification(info, page);\n\t}", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Article> findTop3ByOrderByPostTimeDesc();", "public java.util.List<VcmsDiscussion> findAll();", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "com.google.protobuf.ByteString\n getLegacyDiscussionIdBytes();", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public boolean hasMoreDiscussions();", "@RequestMapping(value = \"/threads/{id}/latest\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get latest comments of the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Page<Comment>> getLatest(\n @PathVariable String id,\n @RequestParam(value = Constants.PARAM_PAGE, required = false, defaultValue = \"0\") Integer page\n ) throws KalipoException, ExecutionException, InterruptedException {\n\n log.debug(\"REST request to get latest Comments of Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.getLatestCommentsWithPages(id, page).get())\n .map(comments -> new ResponseEntity<>(\n comments,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public V getLatest() {\n return lastItemOfList(versions);\n }", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic BoardVO getArticle(int bId) {\n\t\treturn articles.get(bId);\n\t}", "public JTextPane getDiscussion(){\n return discussion;\n }", "public Date getLastPublished() {\n return lastPublished;\n }", "public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public LiveData<Article> getArticle(final long articleId) {\n return Transformations.map(mArticleDao.getArticle(articleId), new Function<List<Article>, Article>() {\n @Override\n public Article apply(List<Article> articles) {\n if (articles != null && !articles.isEmpty()) {\n return articles.get(0);\n }\n return null;\n }\n });\n }", "Iterable<Comment> findByArticleId(int articleId);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public String getLatestMessage() {\n return mLastMessage;\n }", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "public final int getLatestPostNumber() {\n\t\treturn this.latestPostNumber;\n\t}", "java.lang.String getLinkToDiscussion();", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }", "public static int getLastSubjectId() {\n Calendar c = Calendar.getInstance();\n Date now = c.getTime();\n int day;\n int lesson = -1;\n boolean end = false;\n\n SimpleDateFormat s = new SimpleDateFormat(\"dd.MM.yyy HH:mm\", Locale.GERMAN);\n\n if((day = schedule.getTodaysNumber()) < 5) {\n for(int i = 0; i < 9 && !end; i++) {\n c.set(Calendar.HOUR_OF_DAY, Storage.schedule.getTime(i, 0, 0));\n c.set(Calendar.MINUTE, Storage.schedule.getTime(i, 0, 0));\n if(now.before(c.getTime())) {\n lesson = i-1;\n end = true;\n }\n }\n if(lesson == -1) {\n return -1;\n }\n if(Storage.schedule.getLesson(day, lesson) == null) {\n return -1;\n }\n return Storage.schedule.getLesson(day, lesson).getSubjectIndex();\n }\n else {\n return -1;\n }\n }", "public VcmsDiscussion create(java.lang.String discussionId);", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "public long getArticleId() {\n\t\treturn this.articleId;\r\n\t}", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public List<Comment> getLastCommentsByCategory(String category);", "@Override\n public Course getByMaxId() {\n Course result = null;\n String statement = FINDBYMAXID;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getByMaxId()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return result;\n }", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public long getUpperBound() {\n AuditReader auditService = Framework.getService(AuditReader.class);\n String auditQuery = \"from LogEntry log order by log.id desc\";\n log.debug(\"Querying audit log for greatest id: {}\", auditQuery);\n\n List<LogEntry> entries = (List<LogEntry>) auditService.nativeQuery(auditQuery, 1, 1);\n if (entries.isEmpty()) {\n log.debug(\"Found no audit log entries, returning -1\");\n return -1;\n }\n return entries.get(0).getId();\n }", "public VcmsArticleType findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator)\n\t\tthrows NoSuchVcmsArticleTypeException;", "public Discussion[] getDiscussions() throws DAOException;", "public List<ConceptoPago> getUltimoCptoPagoPorCuentaConceptoDet(CuentaConceptoDetalleId pId) throws BusinessException{\r\n\t\tList<ConceptoPago> lista = null;\r\n\t\ttry{\r\n\t\t\tHashMap<String,Object> mapa = new HashMap<String,Object>();\r\n\t\t\tmapa.put(\"intPersEmpresaPk\", pId.getIntPersEmpresaPk());\r\n\t\t\tmapa.put(\"intCuentaPk\", pId.getIntCuentaPk());\r\n\t\t\tmapa.put(\"intItemCuentaConcepto\", pId.getIntItemCuentaConcepto());\r\n\t\t\tmapa.put(\"intItemCtaCptoDet\", pId.getIntItemCtaCptoDet());\r\n\r\n\t\t\tlista = dao.getUltimoCptoPagoPorCuentaConceptoDet(mapa);\r\n\r\n\t\t}catch(DAOException e){\r\n\t\t\tthrow new BusinessException(e);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new BusinessException(e);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public Track printLongestTrack()\r\n {\r\n\t// Initialise variables to store longest Track and its Duration\r\n\tTrack longestTrack = null;\r\n\tDuration maxDuration = new Duration();\r\n\r\n\t// Iterate over albums in the collection getting the longest track in\r\n\t// each\r\n\tfor (Album album : this.getAlbums())\r\n\t{\r\n\t Track currentTrack = album.getLongestTrack();\r\n\t Duration currentDuration = currentTrack.getTrackDuration();\r\n\r\n\t // Compare duration of longest track in this album with max duration \r\n\t // found so far. If it is longer, store the track and its duration.\r\n\t if (currentDuration.compareTo(maxDuration) > 0)\r\n\t {\r\n\t\tlongestTrack = currentTrack;\r\n\t\tmaxDuration = currentDuration;\r\n\t }\r\n\t}\r\n\r\n\t// Display the album with max track count\r\n\tString outputString = \"Track in collection with longest duration:\\r\\n\";\r\n\tSystem.out.print(outputString);\r\n\t// Print details of last (longest) track in the sorted track list\r\n\tSystem.out.println(longestTrack);\r\n\treturn longestTrack;\r\n }", "public SeleniumQueryObject last() {\n\t\treturn LastFunction.last(this, this.elements);\n\t}", "com.google.protobuf.ByteString\n getLinkToDiscussionBytes();", "public Pago findTopByOrderByIdDesc();", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public long getLastViewedPosition() {\n return mPreference.getLong(\"LastViewedPosition\", 0);\n }", "private int getLastIDRisposte() {\n\n\t\tArrayList<Integer> risposteIdList = new ArrayList<>();\n\t\trisposteIdList.add(0);\n\t\tDB db = getDB();\t\t\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\t\n\t\tfor(Map.Entry<Long, Risposta> risposta : risposte.entrySet())\n\t\t\tif(risposta.getValue() instanceof Risposta)\n\t\t\t\trisposteIdList.add(risposta.getValue().getId());\n\t\t\n\t\tInteger id = Collections.max(risposteIdList);\n\t\treturn id;\n\t}", "public Date getMessageLastPost() {\n return messageLastPost;\n }", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public long getLastChatDataTimestamp (long collaborationRoomId,\r\n SQLiteDatabase database) {\r\n long lastMessageTimestamp = -1L;\r\n\r\n if (database != null) {\r\n try {\r\n // Decending by timestamp so that the newest item is the first item returned.\r\n String orderBy = \"seqtime DESC\";\r\n String sqlSelection = \"collabroomid==?\";\r\n String[] sqlSelectionArguments = {String.valueOf (collaborationRoomId)};\r\n\r\n Cursor cursor = database.query(tableName, // Table\r\n TABLE_COLUMNS_MAP.keySet ().toArray (new String[TABLE_COLUMNS_MAP.size ()]), // Columns\r\n sqlSelection, // Selection\r\n sqlSelectionArguments, // Selection arguments\r\n null, // Group by\r\n null, // Having\r\n orderBy); // Order by\r\n\r\n if (cursor != null) {\r\n cursor.moveToFirst();\r\n\r\n // First record is our newest item (largest timestamp).\r\n if (!cursor.isAfterLast ()) {\r\n lastMessageTimestamp = cursor.getLong (cursor.getColumnIndex (\"seqtime\"));\r\n }\r\n\r\n cursor.close();\r\n }\r\n } catch (Exception ex) {\r\n Log.w (Constants.nics_DEBUG_ANDROID_TAG,\r\n \"Exception occurred while trying to get data from table: \\\"\" + tableName + \"\\\"\",\r\n ex);\r\n }\r\n } else {\r\n Log.w (Constants.nics_DEBUG_ANDROID_TAG,\r\n \"Could not get database to get all data from table: \\\"\" + tableName + \"\\\"\");\r\n }\r\n\r\n return lastMessageTimestamp;\r\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public WebElement getArticleById(int id) {\n LOGGER.info(\"Getting article Nr.\" + (id + 1));\n // if we use assertions better to initialize \"articles\" before assertions;\n List<WebElement> articles = baseFunc.findElements(ARTICLE);\n\n //if list is not empty, everything is ok;\n Assertions.assertFalse(articles.isEmpty(), \"There are no articles!\");\n //if article count > searched article, everything is ok;\n Assertions.assertTrue(articles.size() > id, \"Article amount is less than id\");\n\n return articles.get(id);\n }" ]
[ "0.6624607", "0.6500854", "0.6475238", "0.62479275", "0.6244158", "0.62011474", "0.59674615", "0.58806014", "0.5834827", "0.57240856", "0.55836606", "0.5572123", "0.54540414", "0.544657", "0.5423434", "0.5396718", "0.5376493", "0.53487897", "0.53108203", "0.53069746", "0.53065807", "0.52809453", "0.5274614", "0.52106845", "0.519791", "0.51925933", "0.51843274", "0.513464", "0.51197666", "0.5093202", "0.50896424", "0.5070903", "0.50668645", "0.5021028", "0.49975902", "0.4964605", "0.49535713", "0.49416265", "0.49416092", "0.49259046", "0.49141732", "0.4899211", "0.48922575", "0.48877248", "0.4880578", "0.4853366", "0.4849257", "0.48384762", "0.48237526", "0.48166004", "0.48017487", "0.47901332", "0.47746244", "0.47741973", "0.47673225", "0.47470134", "0.4709135", "0.47039026", "0.47027147", "0.47015253", "0.46995434", "0.4695482", "0.46953207", "0.46817878", "0.4680526", "0.46720514", "0.46658576", "0.4660947", "0.4654702", "0.46498334", "0.46372348", "0.46352097", "0.4633994", "0.4633994", "0.46245825", "0.46133012", "0.46063042", "0.46011668", "0.4588408", "0.4571146", "0.45541224", "0.45535392", "0.4547718", "0.45250916", "0.45244867", "0.45094395", "0.44965795", "0.4482248", "0.44810218", "0.4468129", "0.44510862", "0.44507936", "0.44481355", "0.44416592", "0.44406554", "0.4434201", "0.44270054", "0.44208002", "0.44102827", "0.4402683" ]
0.74696195
0
Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &63;.
public VcmsDiscussion[] findByArticle_PrevAndNext( java.lang.String discussionId, java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "List<SurveyQuestion> sortByPageAndPosition(List<SurveyQuestion> questions);", "Iterable<Comment> findByArticleId(int articleId);", "public ArrayList<Question> getQuestionsSortedByLastChangedDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new ChangedDateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public BwCalendar fetchBeforeCalendar() {\n return beforeCalendar;\n }", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public java.util.List<VcmsDiscussion> findAll();", "private List<TrackElement> getRenderOrder(Timeline timeline) {\n List<Track> tracks = new ArrayList<>(timeline.getTracks());\n Collections.reverse(tracks);\n return tracks.stream().flatMap(t -> t.getAllElements().stream()).collect(Collectors.toList());\n }", "public List<Idea> getIdeasPublishedBetween(Calendar start, Calendar end) throws DataAccessException {\n List<Idea> ret = new ArrayList<>();\n if (!start.after(end)) {\n try {\n String queryStr = \"select i from Idea i \"\n + \"where i.publishedDate > start and \"\n + \"i.publishedDate < end\";\n Object res = em.createQuery(queryStr)\n .getResultList();\n ret = (List<Idea>) res;\n } catch (PersistenceException | EJBException pe) {\n throw new DataAccessException(pe, \"Error getting ideas between dates\");\n }\n }\n return ret;\n }", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<PreparedStatement> getMoveDiscussionStatements(String discussionId, String currentForumId,String newForumId,Connection conn) throws Exception;", "List<State> findStatesAfterOrder( int nOrder, int nIdWorkflow );", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public java.util.List getOrderedAncestors();", "List<Article> findTop3ByOrderByPostTimeDesc();", "public List<ExoSocialActivity> getOlderComments(\n ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit);", "public DateTime[] getSegmentFenceposts(LocalDate date) {\n DateTime start = date.toDateTimeAtStartOfDay();\n DateTime stop = date.plusDays(1).toDateTimeAtStartOfDay();\n int[] starts = getSegmentStartTimes();\n DateTime[] fenceposts = new DateTime[starts.length + 1];\n for (int i = 0; i < starts.length; i++) {\n fenceposts[i] = start.plusMillis(starts[i]);\n }\n fenceposts[starts.length] = stop;\n return fenceposts;\n }", "private void findPrev() {\n \tthis.find(false);\n }", "protected abstract D getPrevious(D d);", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "@NonNull\n public static String getDiff(@NonNull String[] before, @NonNull String[] after) {\n StringBuilder sb = new StringBuilder();\n\n int n = before.length;\n int m = after.length;\n\n // Compute longest common subsequence of x[i..m] and y[j..n] bottom up\n int[][] lcs = new int[n + 1][m + 1];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (before[i].equals(after[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n\n int i = 0;\n int j = 0;\n while ((i < n) && (j < m)) {\n if (before[i].equals(after[j])) {\n i++;\n j++;\n } else {\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n while (i < n && j < m && !before[i].equals(after[j])) {\n if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n i++;\n } else {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n j++;\n }\n }\n }\n }\n\n if (i < n || j < m) {\n assert i == n || j == m;\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n for (; i < n; i++) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n }\n for (; j < m; j++) {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n }\n }\n\n return sb.toString();\n }", "public static void main(String[] args) throws ParseException {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat sf = new SimpleDateFormat(pattern);\n Date yesterday = sf.parse(\"2016-12-11 23:59:59\");\n Date todayBegin = sf.parse(\"2016-12-12 00:00:00\");\n Date today1 = sf.parse(\"2016-12-12 00:00:01\");\n Date todayend = sf.parse(\"2016-12-12 23:23:59\");\n\n System.out.println(sf.format(yesterday) + \" is before \" + sf.format(todayBegin) + \":\" + yesterday.before(todayBegin));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(today1) + \":\" + todayBegin.before(today1));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(todayend) + \":\" + todayBegin.before(todayend));\n System.out.println(sf.format(today1) + \" is before \" + sf.format(todayend) + \":\" + today1.before(todayend));\n }", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "List<Article> findTop4ByStatusOrderByClickDesc(Boolean status);", "public int[] getPreviousNodes(int toNodeIndex) {\n if (toNodeIndex < 0) {\n throw new IllegalArgumentException(\"Node index can not be negative\");\n }\n return IntStream.range(0, links.length)\n .filter(i -> links[i][toNodeIndex] == 1)\n .toArray();\n }", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "@Override\n\tpublic JCRPageList getPageTopicOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public Optional<Instant> getBefore() {\n\t\t\treturn before;\n\t\t}", "public Optional<Instant> getBefore() {\n\t\treturn before;\n\t}", "@Override\n\t\t\t\t\tpublic int compare(messagewrapper lhs, messagewrapper rhs) {\n\t\t\t\t\t\treturn rhs.get_id()-lhs.get_id();\n\t\t\t\t\t}", "public ArrayList<Comment> getAllCommentsByQuestionIdSortedByDate(\n \t\t\tint questionId) {\n \t\tArrayList<Comment> sortedComments = new ArrayList<Comment>();\n \t\tQuestion currentQuestion = this.getQuestionById(questionId);\n \t\tfor (Comment currentComment : this.getComments()) {\n \t\t\tif (currentComment.getCommentedVotable().equals(currentQuestion))\n \t\t\t\tsortedComments.add(currentComment);\n \t\t}\n \t\tCollections.sort(sortedComments, new DateComparator());\n \t\treturn sortedComments;\n \t}", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "protected abstract IssueLink getPreviousIssue();", "@Override\n\tpublic TvShow[] findByUuid_PrevAndNext(long tvShowId, String uuid,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public static List<Node> getNextDecisions(ProbNet probNet, EvidenceCase evidence) {\n\t\tList<Node> decisionNodes = ProbNetOperations.getParentlessDecisions(probNet);\n\t\tif (evidence != null) {\n\t\t\tList<Variable> eviVariables = evidence.getVariables();\n\t\t\tif (eviVariables != null) {\n\t\t\t\tfor (Variable var : evidence.getVariables()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdecisionNodes.remove(probNet.getNode(var.getName()));\n\t\t\t\t\t} catch (NodeNotFoundException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check if the nodes revealed by a decision node are the subset of another\n\t\t// In that case we don't need to consider them as valid orders\n\t\tList<List<Node>> revealedNodes = new ArrayList<>();\n\t\tfor (Node node : decisionNodes) {\n\t\t\tList<Node> revealedByDecision = new ArrayList<>();\n\t\t\tfor (Link<Node> link : node.getLinks()) {\n\t\t\t\tif (link.getNode1().equals(node) && link.hasRevealingConditions()) {\n\t\t\t\t\trevealedByDecision.add(link.getNode2());\n\t\t\t\t}\n\t\t\t}\n\t\t\trevealedNodes.add(revealedByDecision);\n\t\t}\n\t\tList<Node> dominatedDecisions = new ArrayList<>();\n\t\tfor (int i = 0; i < decisionNodes.size(); ++i) {\n\t\t\tNode nodeA = decisionNodes.get(i);\n\t\t\tif (!revealedNodes.get(i).isEmpty()) {\n\t\t\t\tfor (int j = 0; j < decisionNodes.size(); ++j) {\n\t\t\t\t\tNode nodeB = decisionNodes.get(j);\n\t\t\t\t\tif (nodeA != nodeB && revealedNodes.get(i).containsAll(revealedNodes.get(j)))\n\t\t\t\t\t\tdominatedDecisions.add(nodeB);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdecisionNodes.removeAll(dominatedDecisions);\n\n\t\treturn decisionNodes;\n\t}", "public List<Forum> getListForumCreatedBetweenDateByIdForum(Date minDate,Date maxDate);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "public Discussion[] getDiscussions() throws DAOException;", "public Todo[] findByTodoDateTime_PrevAndNext(\n\t\t\tlong todoId, Date todoDateTime,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;", "private Changelist[] getChanges() {\n String depot = parent.getDepot();\n String counterName = parent.getCounter();\n Client client = Client.getClient();\n\n // Obtain the most recent changelist available on the client\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Obtain the lower boundary for the changelist results\n Counter counter = Counter.getCounter(counterName);\n int counterVal = 0;\n if (counter != null) {\n counterVal = counter.getValue();\n } else {\n counterVal = toChange.getNumber();\n }\n\n return Changelist.getChanges(depot, counterVal, toChange.getNumber());\n }", "private List<Shape> getEdges(int dimCanvasX, int dimCanvasY, int thinknessEdges) {\r\n\t\tList<Shape> res = new ArrayList<>();\r\n\t\tShape left = new Rectangle(0, 0, thinknessEdges, dimCanvasY);\r\n\t\tShape right = new Rectangle(dimCanvasX - thinknessEdges, 0, thinknessEdges, dimCanvasY);\r\n\t\tShape top = new Rectangle(0, 0, dimCanvasX, thinknessEdges);\r\n\t\tShape bot = new Rectangle(0, dimCanvasY - thinknessEdges, dimCanvasX, thinknessEdges);\r\n\t\tres.add(top);\r\n\t\tres.add(bot);\r\n\t\tres.add(right);\r\n\t\tres.add(left);\r\n\t\treturn res;\r\n\t}", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "OIterator<V> before();", "public DListNode2 prev(){\r\n return this.prev;\r\n }", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);", "List<State> findStatesBetweenOrders( int nOrder1, int nOrder2, int nIdWorkflow );", "private List<HtmlElement> findComparisonSections()\n\t{\n\t\tfinal By findBy = By.cssSelector( \".compare-section.comparison:not(.detailed-preview)\" );\n\t\treturn getDriver().findElements( findBy );\n\t}", "IP4SubmittedChangelist[] getInterchanges(boolean reverse);", "public E getPrevEdge()\r\n/* */ {\r\n/* 178 */ return (E)this.prevEdge;\r\n/* */ }", "public DNode getPrev() { return prev; }", "Deque<Event> getEvents(long inId);", "public NodeD getSelecPrev(){\n if (this.selec == this.head){\n return this.head;\n }else{\n this.selec = this.selec.getPrev();\n return selec;\n }\n }", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "public ArrayList<Comment> getAllCommentsByAnswerIdSortedByDate(int answerId) {\n \t\tArrayList<Comment> sortedComments = new ArrayList<Comment>();\n \t\tAnswer currentAnswer = this.getAnswerById(answerId);\n \t\tfor (Comment currentComment : this.getComments()) {\n \t\t\tif (currentComment.getCommentedVotable().equals(currentAnswer))\n \t\t\t\tsortedComments.add(currentComment);\n \t\t}\n \t\tCollections.sort(sortedComments, new DateComparator());\n \t\treturn sortedComments;\n \t}", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "@Override\n\tpublic List<Topic> getAllTopicsOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public void setWallElementsFromEvent(){\r\n\t\twallElements.addAll(event.getPosts());\r\n\t\tCollections.sort(wallElements, new Comparator<Object>() {\r\n\t\t\t\r\n\t\t\tpublic int compare(Object o1, Object o2) {\r\n\t\t\t\tDate o1createDate = ((EventPostSO)o1).getCreateDate();\r\n\t\t\t\t\t\t\r\n\t\t\t\tDate o2createDate = ((EventPostSO)o2).getCreateDate();\r\n\t\t\t\tif (o1createDate == null || o2createDate == null)\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\treturn o2createDate.compareTo(o1createDate);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "public List<Video> getTrendingVideos() {\n\t\tIterable<History> historyVideos = historyRepo.findAll();\r\n\t\t\r\n\t\t// each hearted video has one point\r\n\t\tIterable<Heart> heartVideos = heartRepo.findAll();\r\n\t\t\r\n\t\t// initialize points\r\n\t\tHashMap<String, Integer> points = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tfor (History history : historyVideos) {\r\n\t\t\tString key = history.getHistoryKey().getVideoId();\r\n\t\t\tInteger value = points.get(key);\r\n\t\t\tif (value != null) {\r\n\t\t\t\tpoints.put(key, points.get(key) + 1);\r\n\t\t\t} else {\r\n\t\t\t points.put(key, 1); // start by one point\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (Heart heart : heartVideos) {\r\n\t\t\tString key = heart.getVideoId();\r\n\t\t\tInteger value = points.get(key);\r\n\t\t\tif (value != null) {\r\n\t\t\t\tpoints.put(key, points.get(key) + 1);\r\n\t\t\t} else {\r\n\t\t\t points.put(key, 1); // start by one point\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// sort by points\r\n\t\tMap<String, Integer> sortedPoints = sortByValue(points);\r\n\t\t\r\n\t\t// initialize videos\r\n\t\tList<Video> trendingVideos = new ArrayList<Video>();\r\n\t\t\r\n\t\t// iterate map (first 10 items from reverse)\r\n\t\tList<String> keyList = new ArrayList<String>(sortedPoints.keySet());\r\n\t\tfor (int i = keyList.size() - 1; i > keyList.size() - 6; i--) {\r\n\t\t String key = keyList.get(i);\r\n\t\t \r\n\t\t // init video\r\n\t\t Video video = new Video();\r\n\t\t\tvideo.setId(key);\r\n\t\t\tvideo.setTitle(getTitleQuietly(key));\r\n\t\t\tvideo.setThumbnailImageUrl(\"https://i.ytimg.com/vi/\" + key + \"/maxresdefault.jpg\");\r\n\t\t\ttrendingVideos.add(video);\t\t \r\n\t\t}\r\n\t\t\r\n\t\t// return result\r\n\t\treturn trendingVideos;\r\n\t}", "private\t\tMiContainerIterator getPreviousIterator()\n\t\t{\n\t\tif (startAtTop)\n\t\t\t{\n\t\t\twhile (++layerNum <= editor.getNumberOfLayers() - 1)\n\t\t\t\t{\n\t\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t\t{\n\t\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn(null);\n\t\t\t}\n\t\twhile (--layerNum >= 0)\n\t\t\t{\n\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t{\n\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t}\n\t\t\t}\n\t\treturn(null);\n\t\t}", "public List<Location> getPreviousLocations();", "public TimedVariable findPrev(Date ref)\n\t{\n\t\tif (vars.isEmpty())\n\t\t\treturn null;\n\t\tTimedVariable dummy = new TimedVariable(0);\n\t\tdummy.setTime(ref);\n\t\tint idx = Collections.binarySearch(vars, dummy, tvComparator);\n\t\tif (idx < 0)\n\t\t\tidx = (-idx) - 1;\n\n\t\t// The 'insertion point' would be the next one, so subtract one.\n\t\t// If now less than zero, there are no vars prev to 'sec'.\n\t\tif (--idx < 0)\n\t\t\treturn null;\n\t\treturn vars.get(idx);\n\t}", "public boolean before(DependencyElement after) {\n\t\tDependencyElement n = next;\n\t\twhile (n != null) {\n\t\t\tif (n == after) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t\treturn false;\n\t}", "public List<ExoSocialActivity> getOlderActivitiesOfConnections(Identity owner, Long sinceTime, int limit);", "public List<Idea> allIdeasLikersDesc() {\n\n List<Idea> ideas = ideaRepo.findAll();\n\n ideas.sort(new Comparator<Idea>() {\n @Override\n public int compare(Idea i1, Idea i2) {\n if(i1.getLikers().size() == i2.getLikers().size()){\n return 0;\n }\n return i1.getLikers().size() > i2.getLikers().size() ? -1 : 1;\n }\n });\n\n return ideas;\n }", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "public Node getPrev()\n {\n return this.prev;\n }", "public PagedList<Post> getTimeline(Integer limit, Integer offset, Long since, Long until, String after, String before) {\n return facebook.feedOperations().getFeed(new PagingParameters(limit, offset, since, until, after, before));\n }", "public static List<Date> previousDates(Integer daysIntervalSize, Date firstDate) {\n List<Date> dateList = new ArrayList<Date>();\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(firstDate);\n for (int i = daysIntervalSize; i > 0; i--) {\n calendar.setTime(firstDate);\n calendar.add(Calendar.DATE, -i);\n dateList.add(calendar.getTime());\n }\n return dateList;\n }", "public Node getPrev() {\n return prev;\n }", "public E previous() {\r\n current--;\r\n return elem[current];\r\n }", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "@Override\n\tpublic TvShow[] findByUuid_C_PrevAndNext(long tvShowId, String uuid,\n\t\tlong companyId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_C_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\tcompanyId, orderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_C_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\tcompanyId, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public List<GeneralBuild> getPrevBuildsList(String buildName, String buildDate) {\n ResultSet rs = null;\n List<GeneralBuild> buildList = new ArrayList<>();\n try {\n String buildsQuery = \"select * from builds where build_name = ? and build_date < ? order by build_number desc\";\n rs = jdbcHelper.executeSelect(buildsQuery, buildName, Long.parseLong(buildDate));\n while (rs.next()) {\n Long id = rs.getLong(1);\n GeneralBuild buildEntity = resultSetToGeneralBuild(rs, id);\n buildList.add(buildEntity);\n }\n } catch (Exception e) {\n log.error(e.toString());\n } finally{\n DbUtils.close(rs);\n }\n return buildList;\n }", "public void prevSentences(ArrayList<Integer> list){\n \n// ArrayList<Integer> indexList = list;\n// ArrayList<Integer> returnList = new ArrayList(indexList.size()+1);\n \n for(int i = 0; i < list.size(); i++){\n Integer index = list.get(i);\n if(index > 0){\n if(!list.contains(index-1)){\n System.out.println(\"added\");\n// returnList.add(index-1);\n list.add(index-1);\n return;\n }\n }\n }\n \n// returnList.addAll(indexList);\n// \n//\n// return returnList;\n\n }", "Date NearestPrevEvent(Date d);", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }", "List<Comment> getComments(long mediaId);", "public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "@Override\n public BrokerMessageListener[] findByBrokerId_PrevAndNext(\n long brokerMessageListenerId, long brokerId,\n OrderByComparator orderByComparator)\n throws NoSuchBrokerMessageListenerException, SystemException {\n BrokerMessageListener brokerMessageListener = findByPrimaryKey(brokerMessageListenerId);\n\n Session session = null;\n\n try {\n session = openSession();\n\n BrokerMessageListener[] array = new BrokerMessageListenerImpl[3];\n\n array[0] = getByBrokerId_PrevAndNext(session,\n brokerMessageListener, brokerId, orderByComparator, true);\n\n array[1] = brokerMessageListener;\n\n array[2] = getByBrokerId_PrevAndNext(session,\n brokerMessageListener, brokerId, orderByComparator, false);\n\n return array;\n } catch (Exception e) {\n throw processException(e);\n } finally {\n closeSession(session);\n }\n }", "AbstractList<BalanceChange> recentActivity() {\r\n\t\tArrayList<BalanceChange> activity = new ArrayList<BalanceChange>();\r\n\t\t\r\n\t\tint i=10;\r\n\t\twhile (i > 0) {\r\n\t\t\t//TODO\r\n\t\t\ti--;\r\n\t\t}\r\n\t\t\r\n\t\treturn activity;\r\n\t}", "private int beforeNowAfter(Date lectureDate, int start, int end){\n Date now = new Date();\n if(lectureDate.getYear()<now.getYear()){\n return 0;\n }else if(lectureDate.getYear()>now.getYear()){\n return 2;\n }else{\n if(lectureDate.getMonth()<now.getMonth()){\n return 0;\n }else if(lectureDate.getMonth()>now.getMonth()){\n return 2;\n }else{\n if(lectureDate.getDate()<now.getDate()){\n return 0;\n }else if(lectureDate.getDate()>now.getDate()){\n return 2;\n }else{\n if(end==now.getHours()&&now.getMinutes()>15){ //Lectures end officially after 15min past the end hour.\n return 0;\n }else if(end<now.getHours()){\n return 0;\n }else if(start>now.getHours()){\n return 2;\n }else{\n return 1;\n }\n }\n }\n }\n }", "public irestads.model.AdsItem[] findByTimeDuring_PrevAndNext(\n\t\tlong adsItemId, int timeDuring,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;", "@Override\n\tpublic TvShow[] findByGroupId_PrevAndNext(long tvShowId, long groupId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "private List<LocalDate> getBackDatedEntitlementDates(List<LocalDate> newChildrenDatesOfBirth, LocalDate cycleStartDate) {\n LocalDate earliestDateOfBirth = min(newChildrenDatesOfBirth);\n LocalDate rollingEntitlementDate = cycleStartDate.minusDays(entitlementCalculationDurationInDays);\n List<LocalDate> backDatedEntitlementDates = new ArrayList<>();\n\n while (rollingEntitlementDate.isAfter(earliestDateOfBirth) || rollingEntitlementDate.isEqual(earliestDateOfBirth)) {\n backDatedEntitlementDates.add(rollingEntitlementDate);\n rollingEntitlementDate = rollingEntitlementDate.minusDays(entitlementCalculationDurationInDays);\n }\n\n return backDatedEntitlementDates;\n }", "public Version getPrev(){\n\t\treturn prev;\n\t}", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "public Node getPrev() {\n return null;\n }" ]
[ "0.5766616", "0.54163134", "0.51824766", "0.5155865", "0.47755504", "0.45957407", "0.4546193", "0.4519384", "0.4473572", "0.44381285", "0.44069922", "0.43971652", "0.43783993", "0.4325826", "0.42533165", "0.4219032", "0.419816", "0.41454685", "0.4141273", "0.41300902", "0.40794763", "0.40744823", "0.40714392", "0.40711695", "0.40605003", "0.4050314", "0.40501878", "0.40162686", "0.401552", "0.4010801", "0.4005474", "0.3998308", "0.39979753", "0.39914232", "0.39856654", "0.39783075", "0.39770085", "0.39629522", "0.39621204", "0.39575166", "0.39545646", "0.39473212", "0.39439064", "0.39389393", "0.39339063", "0.39257708", "0.39218828", "0.39182827", "0.3917844", "0.39109278", "0.39097363", "0.39091554", "0.39043164", "0.39020023", "0.3901246", "0.39004108", "0.38997245", "0.38966504", "0.3890267", "0.38893792", "0.38868275", "0.3875798", "0.3860359", "0.38531932", "0.38531289", "0.3849565", "0.3849356", "0.38475722", "0.38446838", "0.38417464", "0.38392136", "0.38383517", "0.38348636", "0.383364", "0.3822113", "0.3815758", "0.38121685", "0.3810501", "0.3809709", "0.3809513", "0.380521", "0.37975296", "0.37932193", "0.37880838", "0.37842944", "0.3781382", "0.37785628", "0.37768397", "0.37762862", "0.37729493", "0.37686858", "0.37681898", "0.37577927", "0.3752383", "0.37455845", "0.37445807", "0.37428218", "0.3742213", "0.374218", "0.37409806" ]
0.6202103
0
Removes all the vcms discussions where articleId = &63; from the database.
public void removeByArticle(java.lang.String articleId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public void deleteAllArticles();", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findAll();", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "@Override\r\n\t@Transactional\r\n\tpublic void deleteAll() {\n\t\ttopicContentDao.deleteAll();\r\n\t}", "private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "@Override\n\tpublic void delete(int articleId) throws Exception {\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\"delete from article where article_id = ?\");\n\t\t\n\t\tjdbcTemplate.update(sql.toString(), articleId);\n\t}", "void deleteAllChallenges();", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "@Override\n\tpublic void deleteArticle(int bId) {\n\t\tarticles.remove(bId);\n\t}", "public void deleteAllFromSubCategory(int id) throws SQLException {\n\n Connection connection = database.getConnection();\n\n PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM posts WHERE threadId IN(SELECT threadId FROM threads WHERE subCategoryId = ?); \");\n stmt.setInt(1, id);\n\n stmt.execute();\n stmt.close();\n connection.close();\n }", "@Before\n public void cleanConversations() {\n restController.deleteAllConvoMsgsForBlog(MAIN_BLOG_NAME);\n restController.deleteAllConversationsForBlog(MAIN_BLOG_NAME);\n }", "void deleteAllCommentsOfProject(int projectId) throws SQLException;", "public void deleteForumById(Long idForum);", "public VcmsDiscussion create(java.lang.String discussionId);", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "@Query(\"DELETE FROM issue_table\")\n void deleteAll();", "public static Boolean deleteAllDraftMessage() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM drafts\");\r\n\t\t\t//Log.d(\"DRAFT DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"DRAFT DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "void deleleNews(String id);", "public void deleteArticle(Article article);", "@WorkerThread\n public void deleteAllArticles(final Runnable onComplete) {\n // we delete all articles on a background thread.\n mExecutor.execute(new Runnable() {\n @Override\n public void run() {\n mArticleDao.deleteAllArticles();\n onComplete.run();\n }\n });\n }", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "public void deleteMessages() {\n\t\tmessageDAO.modifyMessageList(currentContact.getMsgId(), new LinkedList<Mensaje>());\n\t\tcurrentContact.removeMessages();\n\t\tcontactDAO.modifyContact(currentContact);\n\t\t// Groups share the message list, only single contacts has to be updated\n\t\tif (currentContact instanceof ContactoIndividual) {\n\t\t\tUsuario user = userCatalog.getUser(currentContact.getUserId());\n\t\t\tOptional<Contacto> result = user.getContacts().stream().filter(c -> c.getUserId() == currentUser.getId())\n\t\t\t\t\t.findFirst();\n\t\t\tif (!result.isPresent())\n\t\t\t\treturn;\n\t\t\tmessageDAO.modifyMessageList(result.get().getMsgId(), new LinkedList<Mensaje>());\n\t\t\tresult.get().removeMessages();\n\t\t\tcontactDAO.modifyContact(result.get());\n\t\t}\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void delete(TopicContent entity) {\n\t\ttopicContentDao.delete(entity);\r\n\t}", "int deleteByPrimaryKey(Long articleTagId);", "int deleteByPrimaryKey(Integer announceid);", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "private void deleteMeeting(int meetingId) {\n ArrayList<Integer> attendeeIds = attendToRepo.getAttendeeIDs(meetingId);\n for (int id : attendeeIds){\n Log.d(tag, \"Removing attendee \" + id + \" from meeting \" + meetingId);\n attendToRepo.delete(id, meetingId);\n\n /* Deleting the attendee if this one does not attend any meeting any more */\n if (attendToRepo.getMeetingIDs(id).size() == 0)\n attendeeRepo.delete(id);\n }\n\n /* Removing the meeting */\n meetingRepo.delete(meetingId);\n }", "@Override\n public void delete(long id) {\n discussionFollowerRepository.deleteById(id);\n }", "private void deletePosts(DBCollection collection, int number) {\n\t\tList<DBObject> list = collection.find(QueryBuilder.start(\"target.messageID\").is(\"\").get()).sort(MongoUtils.reverseSort).limit(number).toArray();\n\t\t\n\t\t\n\t\tfor (DBObject obj : list) {\n\t\t\tMongoMethods.deletePost(collection, obj.get(\"_id\").toString());\n\t\t}\n\t}", "public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}", "void clearPersistentNotifications();", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "@Override\r\n\tpublic int deleteArticleComments(int id) {\n\t\treturn commentsmapper.deleteArticleComments(id);\r\n\t}", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "public void deleteDiscussionTopic(IDiscussionTopic topic)\n throws OculusException;", "@RequestMapping(value = \"/delete/{story_id:\\\\d+}\", method = RequestMethod.GET)\n public String deleteNewsArticle(final HttpServletRequest request, @PathVariable(\"story_id\") final Integer storyId, final Model model) {\n LOGGER.log(Level.INFO, \"in deleteContact {0}\", storyId);\n newsService.removeNewsArticles(storyId);\n\n // Set the articleList attribute to null to force refresh of the PagedLstHolder\n request.getSession().setAttribute(ARTICLE_LIST, null);\n PagedListHolder<NewsArticle> pagedListHolder = populatePagedListHolder(request);\n\n request.getSession().setAttribute(ARTICLE_LIST, pagedListHolder);\n model.addAttribute(ARTICLE_LIST, pagedListHolder);\n\n // Redirect so page reloads\n return REDIRECT_NEWS;\n }", "public void deleteForum(Forum forum);", "public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }", "public void deleteFromDb(Long chatId) throws SQLException {\n\t\ttry (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\t\t\tString sql = \"DELETE FROM subscribers WHERE chat_id = ?\";\n\t\t\ttry (PreparedStatement statement = connection.prepareStatement(sql)) {\n\t\t\t\tstatement.setLong(1, chatId);\n\t\t\t\tstatement.executeUpdate();\n\t\t\t}\n\t\t}\n\t}", "public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public Discussion[] getDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\r\n\tpublic int deleteArticleCommentsAll(int[] list) {\n\t\tint n=0;\r\n\t\tfor (int i = 0; i < list.length; i++) {\r\n\t\t\tcommentsmapper.deleteArticleComments(list[i]);\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "@Override\n public void onSuccess(Void aVoid) {\n Query fquery = FirebaseDatabase.getInstance().getReference(\"Posts\").orderByChild(\"pId\").equalTo(postId);\n fquery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds: dataSnapshot.getChildren()){\n\n ds.getRef().removeValue(); // remove value from firebase where pId matched\n\n }\n Toast.makeText(PostDetailActivity.this, \"Post Deleted !\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "List<PreparedStatement> getUndeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "public void deleteArticleById(int i) {\n\t\tObjectSet result = db.queryByExample(new Article(i, null, null, null, 0));\n\n\t\tArticle aEsborrar = (Article) result.next();\n\t\tdb.delete(aEsborrar);\n\n\t\tSystem.out.println(\"\\nEsborrat l'article \" + aEsborrar);\n\t}", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }", "@Override\n\tpublic int deletePMIArticle(String id) {\n\t\treturn personmanagemarticleMapper.deleteByPrimaryKey(id);\n\t}", "public Discussion[] getDiscussions() throws DAOException;", "private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }", "@Transactional\r\n\tpublic void deleteAllBlogs() {\n\t\tsessionFactory.getCurrentSession().delete(getClass());\r\n\t}", "@Override\n\tpublic void runPrune(String forumPath) throws Exception {\n\n\t}", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "public synchronized void clearPersistentMessages() {\n _persistent.clear();\n }", "public void deleteByStudy(Study study) {\n List<WeeklyTracking> weeklyTrackingAttachedToStudy = weeklyTrackingRepository.findByStudy(study);\n\n for (WeeklyTracking weeklyTracking : weeklyTrackingAttachedToStudy) {\n weeklyTrackingRepository.delete(weeklyTracking);\n }\n }", "@Query(\"DELETE FROM note_table\")\n void deleteAllNotes();", "public void deleteAll() {\n repository.deleteAll();\n }", "private void clearContentIdToEmbeddingTokens() {\n contentIdToEmbeddingTokens_ = emptyProtobufList();\n }", "@Override\r\n\tpublic void deleteNewsById(int id) {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"delete from news where id = ?\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, id);\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t\t\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSimpleDBUtil.closeAll(null, pstmt, conn);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void delete(NewsCollection findOne) {\n\t\tnewsCollectionMapper.delete(findOne);\n\t\t\n\t}", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "public void removeAllData() {\n dbHelper.removeAllData(db);\n }", "@Override\r\n\tpublic int deleteByPrimaryKey(String manageNursingContentId)\r\n\t\t\tthrows Exception {\n\t\treturn mContentMapper.deleteByPrimaryKey(manageNursingContentId);\r\n\t}", "public void clear(){\r\n NotesList.clear();\r\n }", "List<PreparedStatement> getMarkMessageUnReadStatements(String id, String messageId,String forumId,String discussionId,Connection conn) throws Exception;", "public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }", "@Override\n\tpublic void deleteMsgById(int mid) {\n\t\tmp.deleteMsgById(mid);\n\t}", "void deleteTrackerNotificationMessages(final Integer id);", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "@Override\r\n\tpublic void deleteNews(int id) {\n\t\tdao.deleteNews(id);\r\n\t\t\r\n\t}", "void deleteTrackerComments(final Integer id);", "private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "void clearAssociations();", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public static void removeAll() {\n\t\t\n\t\tif(notificationsView != null) {\n\t\t\tComponent[] notifications = notificationsView.getComponents();\n\t\t\tfor(Component notification : notifications) {\n\t\t\t\tNotification n = (Notification) notification;\n\t\t\t\tif(n.expireOnDisconnect)\n\t\t\t\t\tn.removeNow();\n\t\t\t}\n\t\t}\n\t\t\n\t}" ]
[ "0.62191343", "0.5916842", "0.5872119", "0.57996655", "0.5704974", "0.56719744", "0.5518567", "0.55005866", "0.54251146", "0.53302985", "0.52509975", "0.52430904", "0.51897806", "0.51455766", "0.50616723", "0.505416", "0.5020648", "0.49910593", "0.49010175", "0.48966643", "0.48505706", "0.48495433", "0.4842019", "0.48409373", "0.4833149", "0.48245433", "0.47919145", "0.47909644", "0.4777641", "0.4776704", "0.47672886", "0.47631565", "0.47518086", "0.47442895", "0.47416416", "0.4741069", "0.4737315", "0.47308668", "0.47308668", "0.47308668", "0.47308668", "0.47308668", "0.47308668", "0.47308668", "0.47308668", "0.47308668", "0.47308668", "0.47261825", "0.47206718", "0.4718003", "0.46921766", "0.46842054", "0.46689314", "0.4666862", "0.46595013", "0.4659271", "0.4646939", "0.46404907", "0.4637234", "0.46309593", "0.46298218", "0.46208903", "0.46150225", "0.46109867", "0.4601252", "0.46009055", "0.45945105", "0.45921788", "0.45888364", "0.45865694", "0.4574132", "0.45608544", "0.45573366", "0.4555225", "0.45526767", "0.45502105", "0.45499977", "0.45445886", "0.45240605", "0.45228177", "0.45218742", "0.4519983", "0.4517874", "0.4510597", "0.45100477", "0.450519", "0.45024085", "0.44987905", "0.44982892", "0.44947696", "0.4493589", "0.44923827", "0.44923827", "0.44923827", "0.44923827", "0.44923827", "0.44923827", "0.44923827", "0.44902796" ]
0.5733692
5
Returns the number of vcms discussions where articleId = &63;.
public int countByArticle(java.lang.String articleId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public int getSUB2AnonimCommentCount(WebElement article) {\n String countText = baseFunc.getElement(MOB_SUB2_ANON_ARTICLE_COUNT).getText();\n String count = countText.substring(countText.indexOf(\"(\") + 1, countText.indexOf(\")\"));\n return Integer.valueOf(count);\n }", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public int getSUB2RegisteredCommentCount(WebElement article) {\n String countText = baseFunc.getElement(MOB_SUB2_REG_ARTICLE_COUNT).getText();\n String count = countText.substring(countText.indexOf(\"(\") + 1, countText.indexOf(\")\"));\n return Integer.valueOf(count);\n }", "public int countArticle(){\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n Cursor Count= sqLiteDatabase.rawQuery(\"select count(*) from\"+ ConfigDAO.TABLE_AISLE, null);\n Count.moveToFirst();\n int count= Count.getInt(0);\n Count.close();\n return count;\n }", "int commentsCount();", "public int getCountForum();", "public int getNumberOfPostOnBlog(){\n List<BlogPost>blogs = blogPostFacade.findAll();\n int k=0;\n for(BlogPost temp: blogs){\n if(temp.getBlog().getId().equals(blogPost.getBlog().getId())){\n k++;\n System.out.println(\"Mes \"+temp.getMessage());\n }\n \n }\n return k ;\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "Iterable<Comment> findByArticleId(int articleId);", "@Override\n\tpublic int getVideoCommentCount(long vid) {\n\t\treturn 0;\n\t}", "public int getNumberOfComments(ExoSocialActivity existingActivity);", "int getNewsindentifydetailCount();", "@Override\n\tpublic int getTotalCount(int boardId) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\tint totalCount = 0;\n\t\t\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\t\n\t\t\tString query = \"SELECT COUNT(comment_id)\t\" +\n\t\t\t\t\t\t \"FROM scomment\t\t\t\t\" +\n\t\t\t\t\t\t \"WHERE board_id = ?\t\t\t\" +\n\t\t\t\t\t\t \"AND isdeleted is NULL\t\t\";\n\t\t\tpstmt = conn.prepareStatement(query);\n\t\t\t\n\t\t\tpstmt.setInt(1, boardId);\n\t\t\t\n\t\t\trs = pstmt.executeQuery();\n\t\t\t\n\t\t\tif (rs.next()) {\n\t\t\t\ttotalCount = rs.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t\tif (conn != null) conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"error:\" + e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn totalCount;\n\t}", "public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "public int findTotalDisplaySubjectsByPaperId( Integer paperId ) throws DAOException;", "public int getNumAnnouncements(){\n return message.length;\n }", "public long getArticleId() {\n\t\treturn this.articleId;\r\n\t}", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "long countByExample(DiscussExample example);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public int getAmendmentCount(int paraId);", "int getMessageIdCount();", "@Override\r\n\tpublic BigInteger getCommentCount(Long postsid) {\n\t\tString sql = \"select count(*) from comment\";\r\n\t\tif (postsid != null) {\r\n\t\t\tsql += \" where postsid=\" + postsid;\r\n\t\t}\r\n\t\tList<BigInteger> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public java.util.List<VcmsDiscussion> findAll();", "@Override\n\tpublic int totalContentCount(String searchVar) {\n\t\treturn template.selectOne(\"board.totalContentCount\",searchVar);\n\t}", "int postsCount();", "public int getTotalMessageCount(){\n Query query = new Query(\"Message\");\n Query query2 = new Query(\"Question\");\n PreparedQuery results = datastore.prepare(query);\n PreparedQuery results2 = datastore.prepare(query2);\n return results.countEntities(FetchOptions.Builder.withLimit(1000)) + results2.countEntities(FetchOptions.Builder.withLimit(1000));\n}", "public int getNumberOfPersistentIdEntries(String localEntity, String peerEntity, String localId) {\n try {\n DBCollection collection = db.getCollection(mongoCollection);\n\n log.debug(\"Get number of persistent ids for connector {}\", getId());\n BasicDBObject query = new BasicDBObject();\n query.put(\"localEntity\", localEntity);\n query.put(\"peerEntity\", peerEntity);\n query.put(\"localId\", localId);\n\n return collection.find(query).count();\n\n } catch (MongoException e) {\n log.error(\"Mongodb query failed\", e);\n }\n return 0;\n }", "public boolean hasMoreDiscussions();", "@Override\n\tpublic Integer queryNewsCount(News params) throws Exception {\n\t\treturn null;\n\t}", "Integer countAnswersByQuestionId(String questionId);", "@Override\n\tpublic int countNews() {\n\t\treturn comNewsMapper.selectCountNews();\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "@Override\n\tpublic int countModOfSubject(int subjId) {\n\t\treturn eDao.countModOfSubject(subjId, \"CONTENT\");\n\t}", "@Override\n\tpublic int getSubVideoCommentCount(long subVid) {\n\t\treturn 0;\n\t}", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public int getArticleID() {\n return articleID;\n }", "int getContentIdToEmbeddingTokensCount();", "@Override\r\n\tpublic int boardCommentCount(int boardNo) {\n\t\treturn sqlSession.selectOne(namespace + \"boardCommentCount\", boardNo);\r\n\t}", "public int countLikesForContent(Integer contentID){\n\n ArrayList<Like> likes = likeRepository.findByContentID(contentID);\n\n int total = likes.size();\n return total;\n }", "@Query(\"select count(r) from Reply r group by r.comment\")\n\tCollection<Double> dashboardRepliesPerComment();", "public synchronized int messageCount() {\n \tfinal Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this).identity();\n return q.execute().size();\n }", "public int countByT_A(long typeId, java.lang.String articleId);", "public static int getCountByExperimentId(int id) throws SQLException {\n PreparedStatement st = DatabaseConnector.getInstance().getConn().prepareStatement(\"SELECT COUNT(*) as count FROM \" + table + \" WHERE Experiment_idExperiment=?\");\n st.setInt(1, id);\n ResultSet rs = st.executeQuery();\n rs.next(); // there will always be a count\n int count = rs.getInt(\"count\");\n rs.close();\n return count;\n }", "public VcmsDiscussion create(java.lang.String discussionId);", "public long getCommentCount() {\n return comments;\n }", "public int getNumberOfNewerComments(ExoSocialActivity existingActivity, Long sinceTime);", "long countByExample(ArticleDoExample example);", "int countByExample(NewsExample example);", "public int getCommentsCount() {\n return instance.getCommentsCount();\n }", "int countByExample(NewsInfoExample example);", "public Integer getCommentCount() {\n return commentCount;\n }", "long countByPostId(@NonNull @Param(\"postId\") Integer postId);", "public ReadOnlyIntegerProperty numberofTickets(PlayerId playerId) {\n return numberOfTicketsMap.get(playerId);\n }", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "int countSelective(MemberAdvisoryComment record);", "public int getCountMessages(String id_chat){\n\t\tint result = -1;\n\n\t\tCursor mCount= db.rawQuery(\"SELECT COUNT(*) FROM \"+TABLE_MESSAGES+\" WHERE \"+ID_CHAT+\" ='\"+id_chat+\"' GROUP BY \"+ID_CHAT, null);\n\t\t//Cursor mCount= db.rawQuery(\"SELECT COUNT(*) FROM \"+TABLE_MESSAGES+\" WHERE \"+ID_CHAT+\" = ? GROUP BY ?\", null);\n\n\t\tif(mCount.moveToFirst()){\n\t\t\tint count= mCount.getInt(0);\n\t\t\tresult = count;\n\t\t}\n\t\tmCount.close();\n\t\treturn result;\n\n\t}", "public static int getAnnouncementsCountByCurrencyId(long currencyId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnnouncementsCountByCurrencyId(currencyId);\n }", "public Integer countNews(String sql) {\n return newsDao.countNews(sql);\n }", "int countByExample(TopicFragmentExample example);", "public int getCommentCount() {\n return commentCount;\n }", "long countByExample(trackcommentExample example);", "public int getCommentsCount() {\n return commentsCount_;\n }", "public int getNumberOfPosts() throws DatabaseException;", "int getDocumentCount();", "int countByExample(WxNewsExample example);", "private static int getPreiousNumInstance(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ContainerStatsEntity.class, \"cs\");\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.statsDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tContainerStatsEntity conSts =(ContainerStatsEntity) ctrStsCrit.uniqueResult();\n\t\tint totalContainer = 0;\n\t\tif(conSts != null){\n\t\t\ttotalContainer = conSts.getTotalContainer();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalContainer;\n\t\t\t\t\t\n\t}", "public int getMessageIdCount() {\n return instance.getMessageIdCount();\n }", "public int countByDataSectionId(long dataSectionId);", "public long countProductCommentByProductId(int productId) {\n long countComments = 0;\n Session session = getSession();\n try {\n //Tao query tim comment moi den cu\n Query query = session.createQuery(\"select count commentId from ProductComments where productId=:productId and isDisabled = false\");\n //Gan gia tri cho query\n query.setInteger(\"productId\", productId);\n countComments = (long) query.uniqueResult();\n session.getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n session.getTransaction().rollback();\n }\n //dong session\n session.close();\n return countComments;\n }", "@Override\r\n\tpublic int getTotalCommentsCount(Integer bdNoQa) {\n\t\treturn this.boardQaCommentsDao.getTotalCommentsCount(bdNoQa);\t// 댓글의 갯수 불러오기\r\n\t}", "public int countByDataCollectionId(long dataCollectionId);", "public int size() {\n\t\treturn this.articleIdToReferenceIdMap.size();\r\n\t}", "public static int getTotalTicketsResolved(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"SELECT Count(technician_id) FROM alerts where technician_id= ? and status= 3;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public int getNumberOfEnablePosts_inForum(int forumID)\r\n throws DatabaseException;", "@Sql(\"SELECT count(m.id) FROM message m WHERE NOT CASEWHEN(m.user_id = 0, false, (SELECT iu.ignored FROM user iu WHERE iu.id = m.user_id)) AND (SELECT tc.ignored FROM topic_cache tc WHERE tc.topic_id = CASEWHEN(m.topic_id = 0, m.id, m.topic_id)) = false AND m.user_id <> m.parent_user_id AND m.parent_user_id = ? AND m.forum_id > 0\")\r\n int getUserReplies(int ownId) throws StorageException;", "int getGroupCountByStructureId(Integer structureId);", "public Long getNumProblems(Integer sampleId) {\n\n Object[] params = {sampleId};\n Long theCount =\n (Long) getHibernateTemplate().find(PROBLEM_SAMPLE_COUNT_QUERY, params).get(0);\n if (theCount == null) {\n theCount = Long.valueOf(0);\n }\n return theCount;\n }", "public int getAllCount(){\r\n\t\tString sql=\"select count(*) from board_notice\";\r\n\t\tint result=0;\r\n\t\tConnection conn=null;\r\n\t\tStatement stmt=null;\r\n\t\tResultSet rs=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tstmt=conn.createStatement();\r\n\t\t\trs=stmt.executeQuery(sql);\r\n\t\t\trs.next();\r\n\t\t\tresult=rs.getInt(1);\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, stmt, rs);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public int getNumberOfNewerComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment);", "public int countByDataPackId(long dataPackId);", "@Override\n\tpublic List<boardVO> search_Count_Notice(String board_id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic int story_detail_count(String member_cd) {\n\t\treturn sst.selectOne(namespace+\".story_detail_count\",member_cd);\r\n\t}", "public static int getETACount(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"select count(elapse_time) as counter from alerts where technician_id=? and elapse_time is not null;;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "public int countBycourse_id(long course_id);", "int countByExample(FeiWenCommentExample example);", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);", "@Override\n\tpublic int getVcmsPortionsCount() {\n\t\treturn _vcmsPortionLocalService.getVcmsPortionsCount();\n\t}", "public int getDocumentCount(String collectionId) {\r\n int toReturn = 0;\r\n if (null == collectionId || 0 == collectionId.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"document_count\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0421\", \"retrieval of number of topics wasn't successful: coll_id=\" + collectionId);\r\n } else {\r\n wrapError(\"APIL_0421\", \"retrieval of number of topics wasn't successful: coll_id=\" + collectionId);\r\n }\r\n } else {\r\n toReturn = Tools.parseInt(response.getValue(\"count\"));\r\n }\r\n\r\n return toReturn;\r\n }", "@Override\n\tpublic int totalTitleContentCount(String searchVar) {\n\t\treturn template.selectOne(\"board.totalTitleContentCount\",searchVar);\n\t}", "private int getAnswersCount(int experimentID, int workerID, Configuration config) {\n return DSL.using(config).fetchCount(\n DSL.selectFrom(Tables.ANSWER_RESERVATION)\n .where(Tables.ANSWER_RESERVATION.EXPERIMENT.eq(experimentID))\n .and(Tables.ANSWER_RESERVATION.WORKER.eq(workerID))\n .and(Tables.ANSWER_RESERVATION.USED.eq(true))\n );\n }", "int getParticipantsCount();", "int getParticipantsCount();", "int getMessagesCount();", "int getMessagesCount();" ]
[ "0.6731674", "0.6254079", "0.62414217", "0.6037341", "0.56080925", "0.55533457", "0.5517207", "0.54723734", "0.54711205", "0.54412055", "0.5434463", "0.5429295", "0.5425899", "0.54113996", "0.53790164", "0.5377165", "0.5375669", "0.5362794", "0.5346873", "0.5313724", "0.5310592", "0.5262312", "0.5260116", "0.5255739", "0.5249858", "0.524773", "0.52459145", "0.52052474", "0.52049524", "0.5181399", "0.5163896", "0.51409334", "0.5135906", "0.51114446", "0.5109548", "0.5099958", "0.5097561", "0.50893193", "0.5072861", "0.5071001", "0.505162", "0.5025489", "0.5020928", "0.50172687", "0.5014647", "0.5013381", "0.5010294", "0.49885586", "0.49885085", "0.4986902", "0.4980497", "0.49761075", "0.4975415", "0.49497184", "0.49460578", "0.4943084", "0.49425036", "0.49393833", "0.49380785", "0.49350613", "0.4934756", "0.4921431", "0.4920733", "0.49196833", "0.49163637", "0.49029902", "0.49009794", "0.489781", "0.48941696", "0.48874444", "0.48863742", "0.48757416", "0.48700374", "0.4867499", "0.48668027", "0.48625287", "0.4861485", "0.48591727", "0.48532817", "0.48393622", "0.48357892", "0.4833532", "0.48324046", "0.48316497", "0.48237497", "0.4820759", "0.4820192", "0.4810533", "0.48070323", "0.48058605", "0.4804056", "0.47934553", "0.4774532", "0.4765427", "0.47653347", "0.476069", "0.476069", "0.47596514", "0.47596514" ]
0.65623724
1
Caches the vcms discussion in the entity cache if it is enabled.
public void cacheResult(VcmsDiscussion vcmsDiscussion);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public void cacheResult(VcmsArticleType vcmsArticleType);", "public void setCached() {\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "public interface ArticlesCache {\n}", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "@Override\n public boolean isCaching() {\n return false;\n }", "public static void setProposalInCache(ProposalDTO proposalDTO){\n \tString proposalKey=PROPOSAL_KEY+\"_\"+proposalDTO.getProposalId();\n\t\tlog.info(\"set proposal in memcache : memcache key:\"+proposalKey);\n\t\t\t\n\t\tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tmemcache.delete(proposalKey);\n \t}\n \tmemcache.put(proposalKey, proposalDTO);\n\t}", "public void cacheResult(VCal vCal) {\n\t\tEntityCacheUtil.putResult(VCalModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tVCalImpl.class, vCal.getPrimaryKey(), vCal);\n\n\t\tvCal.resetOriginalValues();\n\t}", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "public interface DataCache {\n LiveData<List<News>> getNews();\n LiveData<NewsDetail> getNewsDetail(String id);\n void setNewsList(LiveData<List<News>> newsList);\n void setNewsDetail(String id, LiveData<NewsDetail> detail);\n }", "public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }", "public boolean isCached() {\n return true;\n }", "@Override\n\tpublic void cacheResult(TvShow tvShow) {\n\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTvShowImpl.class, tvShow.getPrimaryKey(), tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { tvShow.getUuid(), tvShow.getGroupId() }, tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_G_T,\n\t\t\tnew Object[] { tvShow.getTvShowId(), tvShow.getGroupId() }, tvShow);\n\n\t\ttvShow.resetOriginalValues();\n\t}", "protected void cacheLoadThroughSubjects()\n {\n }", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(\n\t\tStepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE) {\n\t\tEntityCacheUtil.putResult(StepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey(),\n\t\t\tstepDefsCompositeStepDefDBE);\n\n\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t}", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }", "@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }", "@Override\n\tpublic void cacheResult(Paper paper) {\n\t\tentityCache.putResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tPaperImpl.class, paper.getPrimaryKey(), paper);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { paper.getUuid(), paper.getGroupId() }, paper);\n\n\t\tpaper.resetOriginalValues();\n\t}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "public void cacheResult(java.util.List<VcmsArticleType> vcmsArticleTypes);", "protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getCommentByIdTvShow(Long idTvShow) {\n Session session = sessionFactory.getCurrentSession();\n String hql = \"from Comment s where s.tvShow.id = :idtv\";\n return session.createQuery(hql, Comment.class)\n .setParameter(\"idtv\", idTvShow)\n .getResultList();\n }", "@Override\n\tpublic void cacheResult(Answer answer) {\n\t\tentityCache.putResult(\n\t\t\tentityCacheEnabled, AnswerImpl.class, answer.getPrimaryKey(),\n\t\t\tanswer);\n\n\t\tfinderCache.putResult(\n\t\t\t_finderPathFetchByQuestion, new Object[] {answer.getQuestionId()},\n\t\t\tanswer);\n\n\t\tanswer.resetOriginalValues();\n\t}", "public interface ContentCache extends DataCache {\r\n String getValue(String code, Locale locale);\r\n\r\n Boolean containsLocale(Locale locale);\r\n\r\n Boolean containsCodeForLocale(String code, Locale locale);\r\n\r\n Map<String, Map<String, String>> getCachedData();\r\n}", "public EntityData dynamicUpdateCache(DynamicMetadataSource source, MetadataCache cache, String entityID, byte[] document) throws InvalidMetadataException;", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheEnabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void cacheResult(\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector) {\n\t\tEntityCacheUtil.putResult(ESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\tesfInstructsShootingDirector.getPrimaryKey(),\n\t\t\tesfInstructsShootingDirector);\n\n\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t}", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "@Override\n\tpublic void cacheResult(VcmsPortion vcmsPortion) {\n\t\tentityCache.putResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tVcmsPortionImpl.class, vcmsPortion.getPrimaryKey(), vcmsPortion);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_S_C,\n\t\t\tnew Object[] { vcmsPortion.getGroupId(), vcmsPortion.getCode() },\n\t\t\tvcmsPortion);\n\n\t\tvcmsPortion.resetOriginalValues();\n\t}", "boolean isCachingEnabled();", "@Override\r\n\tpublic void cacheResult(Share share) {\r\n\t\tentityCache.putResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\tShareImpl.class, share.getPrimaryKey(), share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\tnew Object[] { share.getUuid(), share.getGroupId() }, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_NAMEMARKETCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getName(),\r\n\t\t\t\tshare.getMarketId()\r\n\t\t\t}, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getSymbol()\r\n\t\t\t}, share);\r\n\r\n\t\tshare.resetOriginalValues();\r\n\t}", "@Override\r\n public void setCacheBlocks(boolean b) {\n\r\n }", "@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheDisabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "boolean isCacheable();", "public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }", "public interface FAQCommentPersistence extends BasePersistence<FAQComment> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link FAQCommentUtil} to access the f a q comment persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Caches the f a q comment in the entity cache if it is enabled.\n\t*\n\t* @param faqComment the f a q comment\n\t*/\n\tpublic void cacheResult(\n\t\tcom.vportal.portlet.vfaq.model.FAQComment faqComment);\n\n\t/**\n\t* Caches the f a q comments in the entity cache if it is enabled.\n\t*\n\t* @param faqComments the f a q comments\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<com.vportal.portlet.vfaq.model.FAQComment> faqComments);\n\n\t/**\n\t* Creates a new f a q comment with the primary key. Does not add the f a q comment to the database.\n\t*\n\t* @param id the primary key for the new f a q comment\n\t* @return the new f a q comment\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment create(long id);\n\n\t/**\n\t* Removes the f a q comment with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment that was removed\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment remove(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\tpublic com.vportal.portlet.vfaq.model.FAQComment updateImpl(\n\t\tcom.vportal.portlet.vfaq.model.FAQComment faqComment, boolean merge)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the f a q comment with the primary key or throws a {@link com.vportal.portlet.vfaq.NoSuchFAQCommentException} if it could not be found.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comment with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment, or <code>null</code> if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the f a q comments where uuid = &#63;.\n\t*\n\t* @param uuid the uuid\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByUuid_First(\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByUuid_Last(\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByUuid_PrevAndNext(\n\t\tlong id, java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments where approved = &#63;.\n\t*\n\t* @param approved the approved\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByApproved_First(\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByApproved_Last(\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByApproved_PrevAndNext(\n\t\tlong id, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments where answerid = &#63;.\n\t*\n\t* @param answerid the answerid\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByAnswerid_First(\n\t\tlong answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByAnswerid_Last(\n\t\tlong answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByAnswerid_PrevAndNext(\n\t\tlong id, long answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments.\n\t*\n\t* @return the f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where uuid = &#63; from the database.\n\t*\n\t* @param uuid the uuid\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByUuid(java.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where approved = &#63; from the database.\n\t*\n\t* @param approved the approved\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where answerid = &#63; from the database.\n\t*\n\t* @param answerid the answerid\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByAnswerid(long answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where uuid = &#63;.\n\t*\n\t* @param uuid the uuid\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByUuid(java.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where approved = &#63;.\n\t*\n\t* @param approved the approved\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where answerid = &#63;.\n\t*\n\t* @param answerid the answerid\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByAnswerid(long answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments.\n\t*\n\t* @return the number of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getComments(long idTvShow, long idUser) {\n Session session = sessionFactory.getCurrentSession();\n String hql = \"from Comment s where s.tvShow.id = :idtv and s.user.id = :idusr\";\n return session.createQuery(hql, Comment.class)\n .setParameter(\"idtv\", idTvShow)\n .setParameter(\"idusr\", idUser)\n .getResultList();\n }", "PortalCacheModel getCacheModel();", "@Override\n\tpublic void cacheResult(List<VcmsPortion> vcmsPortions) {\n\t\tfor (VcmsPortion vcmsPortion : vcmsPortions) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\t\tVcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVcmsPortionImpl.class, vcmsPortion.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(vcmsPortion);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvcmsPortion.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }", "public boolean shouldCache() {\n return this.shouldCache;\n }", "@Util\n public static void removeInProgressInterviewFromCache(){\n \t\n\t\t\ttry {\n\t\t\t\tEntityCache.deletePrivate(Interview.class);\n\t\t\t} catch (CacheMiss e) {\n\t\t\t\t//don't care\n\t\t\t}\t\t\t\n }", "@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }", "public void cacheResult(DataEntry dataEntry);", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "@Override\n public Article getArticleById(@PathVariable(\"id\") int id) {\n CacheKey key= new CacheKey(id);\n Article article = cacheArticles.get(key);\n if (article==null){\n article=articleDAO.getArticleById(id);\n cacheArticles.put(key,article);\n }\n return article;\n }", "public interface Cache<K,V> {\n\t/**\n\t * Returns the object for the given id from cache, null if no object is in cache.\n\t *\n\t * @param id the id to retrieve\n\t * @return a V object.\n\t */\n\tV get(K id);\n\t\n\t/**\n\t * Puts the cacheable object in cache.\n\t *\n\t * @param id the object id\n\t * @param cacheable the object to cache.\n\t */\n\tvoid put(K id, V cacheable);\n\n\t/**\n\t * Removes an object from the cache.\n\t *\n\t * @param id cache object id.\n\t */\n\tvoid remove(K id);\n\t\n\t/**\n\t * Clears the cache.\n\t */\n\tvoid clear();\n\n\t/**\n\t * Returns the cache stats.\n\t *\n\t * @return a {@link net.anotheria.moskito.core.predefined.CacheStats} object.\n\t */\n\tCacheStats getCacheStats();\n\n /**\n * Return all elements from cache.\n *\n * @return collection\n */\n Collection<V> getAllElements();\n\t\n}", "public boolean isUseCache() {\n return mUseCache;\n }", "public java.util.List<VcmsDiscussion> findAll();", "public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }", "public void refreshObjectCache();", "@Override\n\tpublic void cacheResult(List<Legacydb> legacydbs) {\n\t\tfor (Legacydb legacydb : legacydbs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tLegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(legacydb);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlegacydb.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public interface OrganizationService extends EntityService<Organization> {\n\n /**\n * 缓存\n *\n * @param id\n * @return\n * @throws Exception\n */\n public Organization queryCacheOrganizationById(long id) throws Exception;\n}", "@Override\n\tpublic void cacheResult(Candidate candidate) {\n\t\tEntityCacheUtil.putResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tCandidateImpl.class, candidate.getPrimaryKey(), candidate);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_CONTACTNUMBER,\n\t\t\tnew Object[] { candidate.getContactNumber() }, candidate);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_IDENTITYCARDNO,\n\t\t\tnew Object[] { candidate.getIdentityCardNo() }, candidate);\n\n\t\tcandidate.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(Facility_Host facility_Host) {\n\t\tEntityCacheUtil.putResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tFacility_HostImpl.class, facility_Host.getPrimaryKey(),\n\t\t\tfacility_Host);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FACILITYID,\n\t\t\tnew Object[] { facility_Host.getFacilityId() }, facility_Host);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_HOSTID,\n\t\t\tnew Object[] { facility_Host.getHostId() }, facility_Host);\n\n\t\tfacility_Host.resetOriginalValues();\n\t}", "public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }", "@Override\n\tpublic void cacheResult(List<InterviewSchedule> interviewSchedules) {\n\t\tfor (InterviewSchedule interviewSchedule : interviewSchedules) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tInterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class,\n\t\t\t\t\t\tinterviewSchedule.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinterviewSchedule.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getAll() {\n Session session = sessionFactory.getCurrentSession();\n return session.createQuery(\"SELECT a FROM Comment a\", Comment.class).getResultList();\n }", "public DBMaker enableSoftCache() {\n cacheType = DBCacheRef.SOFT;\n return this;\n }", "public interface StorylineCachedDao extends BaseCachedDao{\n /**\n * 存储故事线\n * @param storylineEntity 故事线持久化对象\n * @return 存储后的持久化对象(如果没有存储成功会返回null)\n */\n StorylineEntity save(StorylineEntity storylineEntity);\n\n /**\n * 改\n * @param storylineEntity 故事线持久化对象\n * @return 是否成功\n */\n Boolean update(StorylineEntity storylineEntity);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据用户id查询该用户发布的故事线列表\n * @param user_id 用户id\n * @param limit_begin 起始查询条数\n * @param show_num 查询数量\n * @return\n */\n List<StorylineEntity> findMoreByOrderNews(Integer user_id, int limit_begin, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param storyline_commend_show_num 查找条数\n * @return 故事线文章列表\n */\n List<StorylineEntity> findMoreByOrderHot(int storyline_commend_show_num);\n\n /**\n * 通过count查询总条数\n * @return 总数\n */\n int findSumByCount();\n\n /**\n * 根据用户id查询该用户发布的故事线列表总数\n * @param user_id 用户id\n * @return 总数\n */\n int findSumByCount(Integer user_id);\n\n /**\n * 根据故事线id查询具体某故事线详情\n * @param storyline_id 故事线id\n * @return 某一个故事线详情\n */\n StorylineEntity findOneById(Integer storyline_id);\n}", "@Util\n public static CachedEntity<Interview, InProgressInterviewContext> safeGetInProgressInterviewEntity(){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce;\n\t\ttry {\n\t\t\tce = getInProgressInterviewEntity();\n\t\t} catch (CacheMiss e) {\n\t\t\tInterview interview = createInProgressInterview();\n\t\t\tce = new CachedEntity<Interview, InProgressInterviewContext>(interview,null);\n\t\t}\n\n return ce;\n }", "@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }", "@Override\n\tpublic void cacheResult(Department department) {\n\t\tEntityCacheUtil.putResult(DepartmentModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tDepartmentImpl.class, department.getPrimaryKey(), department);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_NAMEANDDEVISION,\n\t\t\tnew Object[] { department.getName(), department.getDevisionId() },\n\t\t\tdepartment);\n\n\t\tdepartment.resetOriginalValues();\n\t}", "public void cacheResult(org.oep.usermgt.model.Citizen citizen);", "public void setIsStoredInCache(boolean isStoredInCache) {\r\n if (isStoredInCache) {\r\n storeInCache();\r\n } else {\r\n storeInObject();\r\n }\r\n }", "@MainThread\n public abstract NetworkModel entityToNetworkModel(CacheEntity entity);", "@Override\n\tpublic void cacheResult(FactNonPrintedMaterial factNonPrintedMaterial) {\n\t\tEntityCacheUtil.putResult(FactNonPrintedMaterialModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tFactNonPrintedMaterialImpl.class,\n\t\t\tfactNonPrintedMaterial.getPrimaryKey(), factNonPrintedMaterial);\n\n\t\tfactNonPrintedMaterial.resetOriginalValues();\n\t}", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}", "protected Cache cache(RequestContext ctx) {\n String serviceId = serviceId(ctx);\n if (serviceId != null) {\n return cacheManager.getCache(serviceId);\n }\n return null;\n }", "@Override\n\tpublic void cacheResult(List<Department> departments) {\n\t\tfor (Department department : departments) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tDepartmentModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tDepartmentImpl.class, department.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(department);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdepartment.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public interface CacheInvalidationStrategyIF {\n\t\n}", "@Override\n\tpublic void cacheResult(AssetManageReqHandle assetManageReqHandle) {\n\t\tEntityCacheUtil.putResult(AssetManageReqHandleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAssetManageReqHandleImpl.class,\n\t\t\tassetManageReqHandle.getPrimaryKey(), assetManageReqHandle);\n\n\t\tassetManageReqHandle.resetOriginalValues();\n\t}", "public void cacheResult(List<VCal> vCals) {\n\t\tfor (VCal vCal : vCals) {\n\t\t\tif (EntityCacheUtil.getResult(VCalModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVCalImpl.class, vCal.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(vCal);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvCal.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public boolean existCache() {\n return false;\n }", "@Override\n\tpublic void updateGraphicalContent(Engine en) {\n\t\t\n\t}", "@Override\n public void add(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().add(ent);\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }", "public boolean isStoredInCache() {\r\n return lockValueStored == IN_CACHE;\r\n }", "public void cacheResult(\n\t\tjava.util.List<com.vportal.portlet.vfaq.model.FAQComment> faqComments);", "public Cache<ImmutableBytesPtr,PMetaDataEntity> getMetaDataCache() {\n Cache<ImmutableBytesPtr,PMetaDataEntity> result = metaDataCache;\n if (result == null) {\n synchronized(this) {\n result = metaDataCache;\n if(result == null) {\n long maxTTL = config.getLong(\n QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS);\n long maxSize = config.getLongBytes(\n QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);\n metaDataCache = result = CacheBuilder.newBuilder()\n .maximumWeight(maxSize)\n .expireAfterAccess(maxTTL, TimeUnit.MILLISECONDS)\n .weigher(new Weigher<ImmutableBytesPtr, PMetaDataEntity>() {\n @Override\n public int weigh(ImmutableBytesPtr key, PMetaDataEntity table) {\n return SizedUtil.IMMUTABLE_BYTES_PTR_SIZE + key.getLength() + table.getEstimatedSize();\n }\n })\n .build();\n }\n }\n }\n return result;\n }", "private void addProfileDataToCache(String userId, Document content) {\n\t\t// If caching is disabled , no action\n\t\tif (this.cacheSize == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// Limit the cache size as per options\n\t\t// to check if cache is full , remove if full using LRU algorithm\n\t\t// for now remove first entry in the cache\n\t\tif (cache.size() == this.cacheSize) {\n\t\t\tIterator<String> iterator = cache.keySet().iterator();\n\t\t\tif (iterator.hasNext()) {\n\t\t\t\tString firstEntry = iterator.next();\n\t\t\t\tcache.remove(firstEntry);\n\t\t\t}\n\t\t}\n\t\tcache.put(userId, content);\n\t}", "@Override\n\tpublic void cacheResult(LinkGroup linkGroup) {\n\t\tentityCache.putResult(LinkGroupModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLinkGroupImpl.class, linkGroup.getPrimaryKey(), linkGroup);\n\n\t\tlinkGroup.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}", "void updateCacheEntry(CacheKey key, Query query, QueryResultPacket resultPacket) {\n long oldTimestamp;\n if (!activeCache) return;\n\n PacketWrapper wrapper = lookup(key, query);\n if (wrapper == null) return;\n\n // The timestamp is owned by the QueryResultPacket, this is why this\n // update method puts entries into the cache differently from elsewhere\n oldTimestamp = wrapper.getTimestamp();\n wrapper = (PacketWrapper) wrapper.clone();\n wrapper.addResultPacket(resultPacket);\n synchronized (packetCache) {\n packetCache.put(key, wrapper, oldTimestamp);\n }\n }", "public NewsContentUsecase(Context context) {\n this.context = context;\n dbOperator = new CacheOperator();\n }", "private static void addCacheHints(final TypedQuery<?> typedQuery, final String comment) {\n\t\ttypedQuery.setHint(\"org.hibernate.cacheMode\", CacheMode.NORMAL);\n\t\ttypedQuery.setHint(\"org.hibernate.cacheable\", Boolean.TRUE);\n\t\ttypedQuery.setHint(\"org.hibernate.comment\", comment);\n\t}", "public void setClassCaching( boolean cc )\r\n {\r\n useClassCaching = cc;\r\n }", "public boolean getMayCache () {\n\treturn mayCache;\n }", "@Override\n\tpublic void cacheResult(Category category) {\n\t\tentityCache.putResult(\n\t\t\tentityCacheEnabled, CategoryImpl.class, category.getPrimaryKey(),\n\t\t\tcategory);\n\n\t\tcategory.resetOriginalValues();\n\t}", "public void cacheResult(AnnotationInfo annotationInfo) {\n\t\tEntityCacheUtil.putResult(AnnotationInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tAnnotationInfoImpl.class, annotationInfo.getPrimaryKey(),\n\t\t\tannotationInfo);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ANNOTATIONPROPERTIES,\n\t\t\tnew Object[] {\n\t\t\t\tLong.valueOf(annotationInfo.getDocumentRecordID()),\n\t\t\t\t\n\t\t\tannotationInfo.getName(),\n\t\t\t\t\n\t\t\tannotationInfo.getAnnotationType(),\n\t\t\t\t\n\t\t\tannotationInfo.getLead()\n\t\t\t}, annotationInfo);\n\n\t\tannotationInfo.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }", "public Model invoke(Model result) {\n if (result instanceof DefectStatus) {\n addCacheEntry(result.getClass().getName(), ((ProjectModel) result).project, result, templateDataCache);\n }\n return result;\n }" ]
[ "0.6864513", "0.6165347", "0.57000446", "0.5602148", "0.55474406", "0.55128616", "0.5505262", "0.5501936", "0.53748184", "0.5370957", "0.53218323", "0.527713", "0.525296", "0.5250856", "0.5246052", "0.519279", "0.5192083", "0.5190907", "0.5190537", "0.51518565", "0.51440245", "0.5142965", "0.51151085", "0.51044625", "0.50846994", "0.50786394", "0.506574", "0.5054032", "0.50512797", "0.50483304", "0.5044409", "0.50379145", "0.50304943", "0.49983463", "0.4982222", "0.4981478", "0.4973227", "0.49636647", "0.49379176", "0.49371594", "0.49283245", "0.49222374", "0.4918514", "0.49148834", "0.49097157", "0.49067318", "0.49056122", "0.48974192", "0.4885191", "0.4882293", "0.48571998", "0.48493648", "0.4829768", "0.48276848", "0.482706", "0.482568", "0.48232678", "0.48204675", "0.48166665", "0.48147547", "0.4814175", "0.4810775", "0.4807988", "0.47902688", "0.47782734", "0.47774488", "0.47765487", "0.47683075", "0.4768283", "0.47542012", "0.47499275", "0.47497204", "0.47465354", "0.4746122", "0.4740964", "0.47319335", "0.4724516", "0.47242537", "0.47180238", "0.47176036", "0.47144017", "0.47139654", "0.47082332", "0.4707299", "0.47040832", "0.46901104", "0.46880072", "0.4682869", "0.46826303", "0.4680179", "0.46798405", "0.46794513", "0.4669205", "0.46669003", "0.46640673", "0.46629754", "0.465809", "0.46541986", "0.46422088", "0.46409512" ]
0.7371286
0
Caches the vcms discussions in the entity cache if it is enabled.
public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public java.util.List<VcmsDiscussion> findAll();", "public void cacheResult(VcmsArticleType vcmsArticleType);", "public void cacheResult(java.util.List<VcmsArticleType> vcmsArticleTypes);", "public interface ArticlesCache {\n}", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "@Override\n\tpublic void cacheResult(List<InterviewSchedule> interviewSchedules) {\n\t\tfor (InterviewSchedule interviewSchedule : interviewSchedules) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tInterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class,\n\t\t\t\t\t\tinterviewSchedule.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinterviewSchedule.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "protected void cacheLoadThroughSubjects()\n {\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public void setCached() {\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "public interface DataCache {\n LiveData<List<News>> getNews();\n LiveData<NewsDetail> getNewsDetail(String id);\n void setNewsList(LiveData<List<News>> newsList);\n void setNewsDetail(String id, LiveData<NewsDetail> detail);\n }", "@Override\n public boolean isCaching() {\n return false;\n }", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getAll() {\n Session session = sessionFactory.getCurrentSession();\n return session.createQuery(\"SELECT a FROM Comment a\", Comment.class).getResultList();\n }", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "public void cacheResult(List<VCal> vCals) {\n\t\tfor (VCal vCal : vCals) {\n\t\t\tif (EntityCacheUtil.getResult(VCalModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVCalImpl.class, vCal.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(vCal);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvCal.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void cacheResult(List<VcmsPortion> vcmsPortions) {\n\t\tfor (VcmsPortion vcmsPortion : vcmsPortions) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\t\tVcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVcmsPortionImpl.class, vcmsPortion.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(vcmsPortion);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvcmsPortion.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void cacheResult(\n\t\tjava.util.List<com.vportal.portlet.vfaq.model.FAQComment> faqComments);", "@Override\n\tpublic void cacheResult(List<Department> departments) {\n\t\tfor (Department department : departments) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tDepartmentModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tDepartmentImpl.class, department.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(department);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdepartment.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getCommentByIdTvShow(Long idTvShow) {\n Session session = sessionFactory.getCurrentSession();\n String hql = \"from Comment s where s.tvShow.id = :idtv\";\n return session.createQuery(hql, Comment.class)\n .setParameter(\"idtv\", idTvShow)\n .getResultList();\n }", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getComments(long idTvShow, long idUser) {\n Session session = sessionFactory.getCurrentSession();\n String hql = \"from Comment s where s.tvShow.id = :idtv and s.user.id = :idusr\";\n return session.createQuery(hql, Comment.class)\n .setParameter(\"idtv\", idTvShow)\n .setParameter(\"idusr\", idUser)\n .getResultList();\n }", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void cacheResult(List<Legacydb> legacydbs) {\n\t\tfor (Legacydb legacydb : legacydbs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tLegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(legacydb);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlegacydb.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheEnabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t.setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic void cacheResult(List<Answer> answers) {\n\t\tfor (Answer answer : answers) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tentityCacheEnabled, AnswerImpl.class,\n\t\t\t\t\tanswer.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(answer);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tanswer.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public static void setProposalInCache(ProposalDTO proposalDTO){\n \tString proposalKey=PROPOSAL_KEY+\"_\"+proposalDTO.getProposalId();\n\t\tlog.info(\"set proposal in memcache : memcache key:\"+proposalKey);\n\t\t\t\n\t\tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tmemcache.delete(proposalKey);\n \t}\n \tmemcache.put(proposalKey, proposalDTO);\n\t}", "public interface StorylineCachedDao extends BaseCachedDao{\n /**\n * 存储故事线\n * @param storylineEntity 故事线持久化对象\n * @return 存储后的持久化对象(如果没有存储成功会返回null)\n */\n StorylineEntity save(StorylineEntity storylineEntity);\n\n /**\n * 改\n * @param storylineEntity 故事线持久化对象\n * @return 是否成功\n */\n Boolean update(StorylineEntity storylineEntity);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据用户id查询该用户发布的故事线列表\n * @param user_id 用户id\n * @param limit_begin 起始查询条数\n * @param show_num 查询数量\n * @return\n */\n List<StorylineEntity> findMoreByOrderNews(Integer user_id, int limit_begin, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param storyline_commend_show_num 查找条数\n * @return 故事线文章列表\n */\n List<StorylineEntity> findMoreByOrderHot(int storyline_commend_show_num);\n\n /**\n * 通过count查询总条数\n * @return 总数\n */\n int findSumByCount();\n\n /**\n * 根据用户id查询该用户发布的故事线列表总数\n * @param user_id 用户id\n * @return 总数\n */\n int findSumByCount(Integer user_id);\n\n /**\n * 根据故事线id查询具体某故事线详情\n * @param storyline_id 故事线id\n * @return 某一个故事线详情\n */\n StorylineEntity findOneById(Integer storyline_id);\n}", "public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }", "public boolean isCached() {\n return true;\n }", "public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }", "@Util\n public static void removeInProgressInterviewFromCache(){\n \t\n\t\t\ttry {\n\t\t\t\tEntityCache.deletePrivate(Interview.class);\n\t\t\t} catch (CacheMiss e) {\n\t\t\t\t//don't care\n\t\t\t}\t\t\t\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheDisabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface ContentCache extends DataCache {\r\n String getValue(String code, Locale locale);\r\n\r\n Boolean containsLocale(Locale locale);\r\n\r\n Boolean containsCodeForLocale(String code, Locale locale);\r\n\r\n Map<String, Map<String, String>> getCachedData();\r\n}", "@Override\n\tpublic void cacheResult(List<TvShow> tvShows) {\n\t\tfor (TvShow tvShow : tvShows) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tTvShowModelImpl.ENTITY_CACHE_ENABLED, TvShowImpl.class,\n\t\t\t\t\t\ttvShow.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(tvShow);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttvShow.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "private static void cacheContent(Collection listeners) {\r\n\r\n Iterator ipList = listeners.iterator();\r\n while (ipList.hasNext()) {\r\n Content c = (Content) ipList.next();\r\n try {\r\n Map types = new Hashtable();\r\n Listener.cachedContent.put(c.getNodeData(\"IP\").getString(), types); //$NON-NLS-1$\r\n Iterator it = c.getContent(\"Access\").getChildren().iterator(); //$NON-NLS-1$\r\n while (it.hasNext()) {\r\n Content type = (Content) it.next();\r\n types.put(type.getNodeData(\"Method\").getString().toLowerCase(), StringUtils.EMPTY); //$NON-NLS-1$\r\n }\r\n }\r\n catch (RepositoryException re) {\r\n log.error(\"RepositoryException caught while loading listener configuration: \" + re.getMessage(), re); //$NON-NLS-1$\r\n }\r\n }\r\n }", "@Override\n public void cacheResult(List<EntityDealer> entityDealers) {\n for (EntityDealer entityDealer : entityDealers) {\n if (EntityCacheUtil.getResult(\n EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey()) == null) {\n cacheResult(entityDealer);\n } else {\n entityDealer.resetOriginalValues();\n }\n }\n }", "boolean isCachingEnabled();", "@Override\r\n\tpublic void cacheResult(List<Share> shares) {\r\n\t\tfor (Share share : shares) {\r\n\t\t\tif (entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, share.getPrimaryKey()) == null) {\r\n\t\t\t\tcacheResult(share);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tshare.resetOriginalValues();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }", "@Override\n\tpublic void cacheResult(TvShow tvShow) {\n\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTvShowImpl.class, tvShow.getPrimaryKey(), tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { tvShow.getUuid(), tvShow.getGroupId() }, tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_G_T,\n\t\t\tnew Object[] { tvShow.getTvShowId(), tvShow.getGroupId() }, tvShow);\n\n\t\ttvShow.resetOriginalValues();\n\t}", "public void cacheResult(VCal vCal) {\n\t\tEntityCacheUtil.putResult(VCalModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tVCalImpl.class, vCal.getPrimaryKey(), vCal);\n\n\t\tvCal.resetOriginalValues();\n\t}", "@Override\r\n\tpublic void cacheResult(Share share) {\r\n\t\tentityCache.putResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\tShareImpl.class, share.getPrimaryKey(), share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\tnew Object[] { share.getUuid(), share.getGroupId() }, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_NAMEMARKETCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getName(),\r\n\t\t\t\tshare.getMarketId()\r\n\t\t\t}, share);\r\n\r\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\tnew Object[] {\r\n\t\t\t\tshare.getCompanyId(), share.getGroupId(), share.getSymbol()\r\n\t\t\t}, share);\r\n\r\n\t\tshare.resetOriginalValues();\r\n\t}", "List<Link> findLinkByCache();", "@Override\n\tpublic void cacheResult(List<Category> categories) {\n\t\tfor (Category category : categories) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tentityCacheEnabled, CategoryImpl.class,\n\t\t\t\t\tcategory.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(category);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcategory.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public interface FAQCommentPersistence extends BasePersistence<FAQComment> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link FAQCommentUtil} to access the f a q comment persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Caches the f a q comment in the entity cache if it is enabled.\n\t*\n\t* @param faqComment the f a q comment\n\t*/\n\tpublic void cacheResult(\n\t\tcom.vportal.portlet.vfaq.model.FAQComment faqComment);\n\n\t/**\n\t* Caches the f a q comments in the entity cache if it is enabled.\n\t*\n\t* @param faqComments the f a q comments\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<com.vportal.portlet.vfaq.model.FAQComment> faqComments);\n\n\t/**\n\t* Creates a new f a q comment with the primary key. Does not add the f a q comment to the database.\n\t*\n\t* @param id the primary key for the new f a q comment\n\t* @return the new f a q comment\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment create(long id);\n\n\t/**\n\t* Removes the f a q comment with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment that was removed\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment remove(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\tpublic com.vportal.portlet.vfaq.model.FAQComment updateImpl(\n\t\tcom.vportal.portlet.vfaq.model.FAQComment faqComment, boolean merge)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the f a q comment with the primary key or throws a {@link com.vportal.portlet.vfaq.NoSuchFAQCommentException} if it could not be found.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comment with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment, or <code>null</code> if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the f a q comments where uuid = &#63;.\n\t*\n\t* @param uuid the uuid\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByUuid_First(\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByUuid_Last(\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByUuid_PrevAndNext(\n\t\tlong id, java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments where approved = &#63;.\n\t*\n\t* @param approved the approved\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByApproved_First(\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByApproved_Last(\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByApproved_PrevAndNext(\n\t\tlong id, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments where answerid = &#63;.\n\t*\n\t* @param answerid the answerid\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByAnswerid_First(\n\t\tlong answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByAnswerid_Last(\n\t\tlong answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByAnswerid_PrevAndNext(\n\t\tlong id, long answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments.\n\t*\n\t* @return the f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where uuid = &#63; from the database.\n\t*\n\t* @param uuid the uuid\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByUuid(java.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where approved = &#63; from the database.\n\t*\n\t* @param approved the approved\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where answerid = &#63; from the database.\n\t*\n\t* @param answerid the answerid\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByAnswerid(long answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where uuid = &#63;.\n\t*\n\t* @param uuid the uuid\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByUuid(java.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where approved = &#63;.\n\t*\n\t* @param approved the approved\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where answerid = &#63;.\n\t*\n\t* @param answerid the answerid\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByAnswerid(long answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments.\n\t*\n\t* @return the number of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}", "public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}", "public void cacheResult(List<AnnotationInfo> annotationInfos) {\n\t\tfor (AnnotationInfo annotationInfo : annotationInfos) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tAnnotationInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tAnnotationInfoImpl.class, annotationInfo.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(annotationInfo);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tannotationInfo.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "boolean isCacheable();", "public void cacheResult(java.util.List<DataEntry> dataEntries);", "@Override\r\n public void setCacheBlocks(boolean b) {\n\r\n }", "public void storeDiscussions(Discussion[] ds) throws DAOException;", "@Override\n\tpublic void cacheResult(Paper paper) {\n\t\tentityCache.putResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tPaperImpl.class, paper.getPrimaryKey(), paper);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { paper.getUuid(), paper.getGroupId() }, paper);\n\n\t\tpaper.resetOriginalValues();\n\t}", "public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}", "@JSONWebService\n@Transactional(isolation = Isolation.PORTAL, rollbackFor = {\n\tPortalException.class, SystemException.class})\npublic interface VcmsDiscussionService {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionServiceUtil} to access the vcms discussion remote service. Add custom service methods to {@link com.vportal.portlet.vcms.service.impl.VcmsDiscussionServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.\n\t */\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion addDiscussion(\n\t\tjava.lang.String visitorName, java.lang.String visitorEmail,\n\t\tjava.lang.String visitorPhone, long groupId, long companyId,\n\t\tjava.lang.String articleId, java.lang.String title,\n\t\tjava.lang.String content, boolean hasAttachment,\n\t\tjava.lang.String language, boolean addCommunityPermissions,\n\t\tboolean addGuestPermissions)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(\n\t\tjava.lang.String discussionId, java.lang.String visitorName,\n\t\tjava.lang.String visitorEmail, java.lang.String visitorPhone,\n\t\tlong groupId, long companyId, java.lang.String articleId,\n\t\tjava.lang.String title, java.lang.String content,\n\t\tboolean hasAttachment, boolean approved, java.lang.String language)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(\n\t\tcom.vportal.portlet.vcms.model.VcmsDiscussion discussion)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussion(java.lang.String discussionId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String[] discussionIds)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String articleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String articleId, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion getDiscussion(\n\t\tjava.lang.String discussionId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(\n\t\tjava.lang.String articleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(\n\t\tjava.lang.String articleId, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L(\n\t\tlong groupId, java.lang.String language)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L_A(\n\t\tlong groupId, java.lang.String language, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> searchDiscussionByA_P_L_K(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tjava.lang.String keyword, boolean approved, boolean isTitle,\n\t\tboolean isContent, java.lang.String select)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic int countByApproval(long groupId, java.lang.String language,\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n}", "public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}", "public void cacheResult(java.util.List<irestads.model.AdsItem> adsItems);", "private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }", "@Override\n\tpublic void cacheResult(\n\t\tList<StepDefsCompositeStepDefDBE> stepDefsCompositeStepDefDBEs) {\n\t\tfor (StepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE : stepDefsCompositeStepDefDBEs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tStepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\t\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(stepDefsCompositeStepDefDBE);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void cacheResult(List<LinkGroup> linkGroups) {\n\t\tfor (LinkGroup linkGroup : linkGroups) {\n\t\t\tif (entityCache.getResult(LinkGroupModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLinkGroupImpl.class, linkGroup.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(linkGroup);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlinkGroup.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public interface Cache<K,V> {\n\t/**\n\t * Returns the object for the given id from cache, null if no object is in cache.\n\t *\n\t * @param id the id to retrieve\n\t * @return a V object.\n\t */\n\tV get(K id);\n\t\n\t/**\n\t * Puts the cacheable object in cache.\n\t *\n\t * @param id the object id\n\t * @param cacheable the object to cache.\n\t */\n\tvoid put(K id, V cacheable);\n\n\t/**\n\t * Removes an object from the cache.\n\t *\n\t * @param id cache object id.\n\t */\n\tvoid remove(K id);\n\t\n\t/**\n\t * Clears the cache.\n\t */\n\tvoid clear();\n\n\t/**\n\t * Returns the cache stats.\n\t *\n\t * @return a {@link net.anotheria.moskito.core.predefined.CacheStats} object.\n\t */\n\tCacheStats getCacheStats();\n\n /**\n * Return all elements from cache.\n *\n * @return collection\n */\n Collection<V> getAllElements();\n\t\n}", "protected void loadCachedFolderMessages() {\r\n boolean dispOrder = MailSettings.getInstance().getGlobalConfig().getDispOrder();\r\n FolderMessage[] messages = folderMessageCache.getFolderMessages(folderTreeItem);\r\n if(messages.length > 0) {\r\n // Add all the messages that have been loaded from the\r\n // cache. Server-side messages will be removed from the\r\n // set later on.\r\n for(int i=0; i<messages.length; i++) {\r\n orphanedMessageSet.put(messages[i].getMessageToken().getMessageUid(), messages[i]);\r\n }\r\n \r\n // If the cached messages have already been loaded, then we can\r\n // skip notifying mail store listeners. However, we still have to\r\n // add them to the orphan set, as seen above.\r\n if(!cacheLoaded) {\r\n if(dispOrder) {\r\n for(int i=0; i<messages.length; i+=5) {\r\n int endIndex = Math.min(i + 5, messages.length);\r\n FolderMessage[] subset = new FolderMessage[endIndex - i];\r\n for(int j=0; j<subset.length; j++) {\r\n subset[j] = messages[i + j];\r\n }\r\n mailStoreServices.fireFolderMessagesAvailable(folderTreeItem, subset, false, false);\r\n }\r\n }\r\n else {\r\n for(int i=messages.length-1; i >= 0; i-=5) {\r\n int startIndex = Math.max(i - 4, 0);\r\n FolderMessage[] subset = new FolderMessage[i - startIndex + 1];\r\n for(int j=0; j<subset.length; j++) {\r\n subset[j] = messages[i - j];\r\n }\r\n mailStoreServices.fireFolderMessagesAvailable(folderTreeItem, subset, false, false);\r\n }\r\n }\r\n cacheLoaded = true;\r\n }\r\n }\r\n }", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "@Override\n\tpublic void cacheResult(Answer answer) {\n\t\tentityCache.putResult(\n\t\t\tentityCacheEnabled, AnswerImpl.class, answer.getPrimaryKey(),\n\t\t\tanswer);\n\n\t\tfinderCache.putResult(\n\t\t\t_finderPathFetchByQuestion, new Object[] {answer.getQuestionId()},\n\t\t\tanswer);\n\n\t\tanswer.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(\n\t\tStepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE) {\n\t\tEntityCacheUtil.putResult(StepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey(),\n\t\t\tstepDefsCompositeStepDefDBE);\n\n\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(List<Facility_Host> facility_Hosts) {\n\t\tfor (Facility_Host facility_Host : facility_Hosts) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tFacility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tFacility_HostImpl.class, facility_Host.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(facility_Host);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfacility_Host.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onResume() {\n super.onResume();\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n if (networkInfo != null && networkInfo.isConnected()) {\n mForumList = null;\n if (mForumList == null) {\n new CoursesTask().execute(getString(R.string.get_threads));\n }\n }\n else {\n Toast.makeText(getActivity(),\n \"No network connection available. Displaying locally stored data\",\n Toast.LENGTH_SHORT).show();\n\n if (mForumDB == null) {\n mForumDB = new ForumDb(getActivity());\n }\n if (mForumList == null) {\n mForumList = mForumDB.getThreads();\n setupRecyclerView(mRecyclerView);\n if(mRecyclerView != null) {\n mRecyclerView.addItemDecoration(new DividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL));\n }\n\n }\n }\n }", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getCommentsByDate(LocalDate date) {\n Session session = sessionFactory.getCurrentSession();\n return session.createQuery(\"Select a From Comment a where a.date like :custDate\", Comment.class).setParameter(\"custDate\", date).getResultList();\n }", "@Override\n\tpublic void cacheResult(List<Candidate> candidates) {\n\t\tfor (Candidate candidate : candidates) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, candidate.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(candidate);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcandidate.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "int getCacheConcurrency();", "public void refreshObjectCache();", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getCommentByIdUser(Long idUser) {\n Session session = sessionFactory.getCurrentSession();\n String hql = \"from Comment s where s.user.id = :idusr\";\n return session.createQuery(hql, Comment.class)\n .setParameter(\"idusr\", idUser)\n .getResultList();\n }", "@Override\n\t\t\t\tprotected void setCache(List<E> cache) {\n\t\t\t\t}", "@Override\n\tpublic void cacheResult(List<TestUnit> testUnits) {\n\t\tfor (TestUnit testUnit : testUnits) {\n\t\t\tif (entityCache.getResult(TestUnitModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tTestUnitImpl.class, testUnit.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(testUnit);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttestUnit.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "private void loadCachedLabTestCollection()\n {\n cachedFacilityList = new HashMap<Object,Object>();\n SRTOrderedTestDAOImpl dao = new SRTOrderedTestDAOImpl();\n cachedLabTest= (ArrayList<Object> ) convertToSRTLabTestDT(dao.getAllOrderedTests());\n\n //load cachedFacilityList\n Iterator<Object> iter = cachedLabTest.iterator();\n while(iter.hasNext()){\n SRTLabTestDT srtLabTestDT = (SRTLabTestDT)iter.next();\n if(srtLabTestDT.getLaboratoryId()!= null ){\n this.addToCachedFacilityList(srtLabTestDT.getLaboratoryId(),srtLabTestDT);\n }// end if labId !=null\n }//end while\n\n }", "public Discussion[] getDiscussions() throws DAOException;", "public Cache<ImmutableBytesPtr,PMetaDataEntity> getMetaDataCache() {\n Cache<ImmutableBytesPtr,PMetaDataEntity> result = metaDataCache;\n if (result == null) {\n synchronized(this) {\n result = metaDataCache;\n if(result == null) {\n long maxTTL = config.getLong(\n QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS);\n long maxSize = config.getLongBytes(\n QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);\n metaDataCache = result = CacheBuilder.newBuilder()\n .maximumWeight(maxSize)\n .expireAfterAccess(maxTTL, TimeUnit.MILLISECONDS)\n .weigher(new Weigher<ImmutableBytesPtr, PMetaDataEntity>() {\n @Override\n public int weigh(ImmutableBytesPtr key, PMetaDataEntity table) {\n return SizedUtil.IMMUTABLE_BYTES_PTR_SIZE + key.getLength() + table.getEstimatedSize();\n }\n })\n .build();\n }\n }\n }\n return result;\n }", "public void syncCache() {\n for (String s : this.cache.keySet()) {\n JsonDocument document = this.cache.get(s);\n document.save(new File(directory, s + \".json\"));\n }\n }", "@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}", "public boolean existCache() {\n return false;\n }", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "public void storeDiscussion(Discussion d) throws DAOException;", "public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }", "public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }", "@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }", "private void getComments() {\n\n servernames.clear();\n player_count_labels.clear();\n status_images.clear();\n game_images.clear();\n map_names.clear();\n game_dirs.clear();\n pings.clear();\n alert_icons.clear();\n\n ImageView wallpaper_view = findViewById(R.id.wallpaper_view);\n RecyclerView recycler = findViewById(R.id.recycler);\n wallpaper_view.setVisibility(VISIBLE);\n recycler.setVisibility(VISIBLE);\n wallpaper_view.setAlpha(0.5f);\n\n Call<NetworkQueryResult> call = networkQueryApi\n .getComments();\n call.enqueue(new Callback<NetworkQueryResult>() {\n @Override\n public void onResponse(Call<NetworkQueryResult> call,\n Response<NetworkQueryResult> response) {\n if (!response.isSuccessful()) {\n return;\n }\n NetworkQueryResult comment = response.body();\n for (int i = 0; i < comment.getData().size(); i++) {\n if (!(comment.getData().get(i).getLastSeen() == null)) {\n\n int currentplayercount = Integer.parseInt(comment.getData().get(i)\n .getQrd().getInfo().getNumberOfPlayers());\n int maximumplayercount = Integer.parseInt(comment.getData().get(i)\n .getMaxPlayers());\n String server_ping = String.valueOf(comment.getData().get(i)\n .getQrd().getPing());\n String map = comment.getData().get(i).getMapDisplayName();\n String servername = comment.getData().get(i).getShortName();\n\n if(Integer.parseInt(comment.getData().get(i).getLastSeen()) < 100){\n servernames.add(servername);\n player_count_labels.add(\"Players: \" + currentplayercount + \" / \"\n + maximumplayercount);\n status_images.add(success);\n game_images.add(csgo);\n game_dirs.add(\"Counter-Strike: Global Offensive\");\n map_names.add(map);\n pings.add(server_ping + \" ms\");\n alert_icons.add(csgo);\n } else {\n servernames.add(servername);\n player_count_labels.add(\"Players\" + 0 + \" / \" + maximumplayercount);\n status_images.add(fail);\n game_images.add(fail);\n game_dirs.add(\"Counter-Strike: Global Offensive\");\n map_names.add(getString(R.string.unknown));\n pings.add(getString(R.string.unknown));\n alert_icons.add(fail);\n }\n }\n }\n initRecyclerView();\n }\n @Override\n public void onFailure(Call<NetworkQueryResult> call, Throwable t) {\n\n servernames.add(getString(R.string.apiError));\n player_count_labels.add(getString(R.string.unableToFetch));\n status_images.add(fail);\n game_images.add(fail);\n map_names.add(getString(R.string.unableToFetch));\n game_dirs.add(getString(R.string.unableToFetch));\n pings.add(getString(R.string.unableToFetch));\n alert_icons.add(fail);\n initRecyclerView();\n }\n });\n }", "public static void setAllProposalsInCache(List<ProposalObj> proposalList,String userId){\n \tString proposalKey=PROPOSAL_KEY+\"_all_user_\"+userId;\n\t\tlog.info(\"set all proposals in memcache : memcache key:\"+proposalKey);\t\t\t\n\t\tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tmemcache.delete(proposalKey);\n \t}\n \tmemcache.put(proposalKey, proposalList);\n\t}", "@Override\n public Article getArticleById(@PathVariable(\"id\") int id) {\n CacheKey key= new CacheKey(id);\n Article article = cacheArticles.get(key);\n if (article==null){\n article=articleDAO.getArticleById(id);\n cacheArticles.put(key,article);\n }\n return article;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_forum, container, false);\n\n newList = new ArrayList<HashMap<String, String>>();\n\n news_list = (RecyclerView) rootView.findViewById(R.id.news_list);\n\n mItems = new ArrayList<NewsItem>();\n\n newsAdapter = new NewsItemAdapter(mItems);\n\n news_list.setHasFixedSize(true);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity());\n news_list.setLayoutManager(mLayoutManager);\n news_list.setItemAnimator(new DefaultItemAnimator());\n news_list.setAdapter(newsAdapter);\n\n // We first check for cached request\n Cache cache = AppController.getInstance().getRequestQueue().getCache();\n Cache.Entry entry = cache.get(news);\n if (entry != null) {\n // fetch the data from cache\n try {\n String data = new String(entry.data, \"UTF-8\");\n try {\n parseJsonFeed(new JSONObject(data));\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n } else {\n pDialog = new ProgressDialog(this.getActivity());\n // Showing progress dialog before making http request\n pDialog.setMessage(\"Please wait...\");\n pDialog.show();\n\n // making fresh volley request and getting json\n JsonObjectRequest jsonReq = new JsonObjectRequest(Request.Method.GET,\n news, null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n VolleyLog.d(TAG, \"Response: \" + response.toString());\n if (response != null) {\n parseJsonFeed(response);\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n Toast.makeText(getActivity(),\n \"Network error! Please check your internet connection\", Toast.LENGTH_SHORT).show();\n }\n });\n\n // Adding request to volley request queue\n AppController.getInstance().addToRequestQueue(jsonReq);\n }\n\n return rootView;\n }", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}", "public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }", "@Override\n\tpublic void cacheResult(List<DmHistoryGoods> dmHistoryGoodses) {\n\t\tfor (DmHistoryGoods dmHistoryGoods : dmHistoryGoodses) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tDmHistoryGoodsModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tDmHistoryGoodsImpl.class, dmHistoryGoods.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(dmHistoryGoods);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdmHistoryGoods.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}" ]
[ "0.7334129", "0.57453275", "0.57179385", "0.5501879", "0.54812366", "0.54716885", "0.53904146", "0.5380399", "0.5374871", "0.53334", "0.53224176", "0.52704436", "0.52458686", "0.52244705", "0.5119456", "0.51127476", "0.5102257", "0.5095371", "0.5091302", "0.5084868", "0.50550437", "0.5052993", "0.5025128", "0.49924317", "0.49483493", "0.493233", "0.49306428", "0.4919192", "0.49144801", "0.49039268", "0.48834947", "0.4881767", "0.48555517", "0.48553765", "0.48203567", "0.48087496", "0.47878155", "0.4787585", "0.47770625", "0.4775428", "0.4761376", "0.47570425", "0.47563922", "0.47398156", "0.4722466", "0.4716739", "0.4714272", "0.47088745", "0.46959272", "0.4683517", "0.46809876", "0.46766868", "0.46735337", "0.4662318", "0.4653853", "0.46536028", "0.46448943", "0.46428406", "0.46424425", "0.463399", "0.46188763", "0.4618574", "0.46185517", "0.4617998", "0.4612618", "0.46082753", "0.46055833", "0.46037892", "0.4603306", "0.4600076", "0.45951796", "0.45948568", "0.45940226", "0.45931512", "0.45814902", "0.457312", "0.4572791", "0.45599437", "0.4556409", "0.45521975", "0.4550367", "0.45490637", "0.45478994", "0.454169", "0.453703", "0.4535386", "0.45337564", "0.45250282", "0.4524582", "0.45217875", "0.4515949", "0.451202", "0.45067242", "0.45058465", "0.45050988", "0.4503722", "0.44954824", "0.44951946", "0.44935483", "0.44894233" ]
0.7631738
0
Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.
public VcmsDiscussion create(java.lang.String discussionId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.vportal.portlet.vfaq.model.FAQComment create(long id);", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public void storeDiscussion(Discussion d) throws DAOException;", "protected abstract void sendNewPost(Discussion discussion, Post post);", "@OnClick(R.id.fab_add_forum_post)\n void onClick() {\n CreateDiscussionFragment createDiscussionFragment = new CreateDiscussionFragment();\n createDiscussionFragment.show(getFragmentManager(), \"Create Discussion\");\n }", "public static void insertDiscussion(String type, String topic, String[] tags, String content,String subject_id,String user){\n\n String ID = DBOperate.getRandomString(1);\n\n String replyid = DBDiscussion.getReplyID(tags);\n\n String sql=\"\";\n\n if(replyid.equals(\"\")){\n sql = \"insert into discussion values('\"+ID+\"',NULL,'\"+user+\"','\"\n +DBOperate.getCurrentDate()+\"','\"+subject_id+\"','\"+type+\"','\"+topic+\"','\"+content+\"')\";\n }\n else{\n sql = \"insert into discussion values('\"+ID+\"','\"+replyid+\"','\"+user+\"','\"\n +DBOperate.getCurrentDate()+\"','\"+subject_id+\"','\"+type+\"','\"+topic+\"','\"+content+\"')\";\n }\n\n DBOperate.Insert(sql);\n\n for(String s: tags){\n sql = \"insert into discussion_tag values('\"+s+\"','\"+ID+\"')\";\n DBOperate.Insert(sql);\n }\n\n }", "int insert(Discuss record);", "public static void create() {\n Application.currentUserCan( 1 );\n \n String author = session.get(\"userEmail\");\n String title = params.get( \"course[title]\", String.class );\n String content = params.get( \"course[content]\", String.class );\n \n if( title.length() > 0 && content.length() > 0 ) {\n Course course = new Course(title, content, author);\n course.save();\n }\n \n index();\n }", "public IDiscussionTopic attachDiscussionTopic()\n throws OculusException;", "public PostForm(String id,\n IModel<Discussion> discussionModel,\n IModel<Post> postModel) {\n super(id);\n\n\n this.discussionModel = discussionModel;\n this.postModel = postModel;\n }", "@Override\r\npublic void onCreate(SQLiteDatabase db) {\n\tdb.execSQL(\"create table if not exists publishment (\"+\r\n\t \"id integer primary key autoincrement ,\"\r\n\t +\"name text ,\"\r\n\t\t\t +\"content text ,\"\r\n\t +\"comment text )\"\r\n\t\t\t );\r\n\t\r\n}", "public void storeDiscussions(Discussion[] ds) throws DAOException;", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "@Override\r\n\tpublic Commentaire create(Commentaire obj) {\n\t\ttry {\r\n\r\n\t\t\tPreparedStatement prepare = this.connect\r\n\t\t\t\t\t.prepareStatement(\"INSERT INTO cms.commentaire VALUES(default, ?, ?, ?, ?, ?)\");\r\n\r\n\t\t\tprepare.setString(2, obj.get_contenu());\r\n\t\t\tprepare.setString(3, obj.get_auteur().toString());\r\n\t\t\tprepare.setString(4, obj.get_article().get_titre());\r\n\t\t\tprepare.setTimestamp(5, time);\r\n\t\t\tprepare.setBoolean(6, false);\r\n\t\t\tprepare.executeUpdate();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn obj;\r\n\t}", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "void create(int id, int authorId, String title);", "@Override\n\tpublic InterviewSchedule create(long interviewScheduleId) {\n\t\tInterviewSchedule interviewSchedule = new InterviewScheduleImpl();\n\n\t\tinterviewSchedule.setNew(true);\n\t\tinterviewSchedule.setPrimaryKey(interviewScheduleId);\n\n\t\treturn interviewSchedule;\n\t}", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "public void insertNote(NewsModel data) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n // `id` and `timestamp` will be inserted automatically.\n // no need to add them\n values.put(NewsModel.COLUMN_SOURCE, data.getSourceName());\n values.put(NewsModel.COLUMN_AUTHOR, data.getAuthor());\n values.put(NewsModel.COLUMN_CONTENT, data.getContent());\n values.put(NewsModel.COLUMN_DESCRIPTION, data.getDescription());\n values.put(NewsModel.COLUMN_PUBLISHEDAT, data.getPublishedAt());\n values.put(NewsModel.COLUMN_TITLE, data.getTitle());\n values.put(NewsModel.COLUMN_URL, data.getUrl());\n values.put(NewsModel.COLUMN_URLTOIMAGE, data.getUrlToImage());\n // insert row\n long id = db.insert(NewsModel.TABLE_NAME, null, values);\n\n // close db connection\n db.close();\n }", "int insert(MemberAdvisoryComment record);", "public String getDiscussion(){\n return discussion;\n }", "@JSONWebService\n@Transactional(isolation = Isolation.PORTAL, rollbackFor = {\n\tPortalException.class, SystemException.class})\npublic interface VcmsDiscussionService {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionServiceUtil} to access the vcms discussion remote service. Add custom service methods to {@link com.vportal.portlet.vcms.service.impl.VcmsDiscussionServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.\n\t */\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion addDiscussion(\n\t\tjava.lang.String visitorName, java.lang.String visitorEmail,\n\t\tjava.lang.String visitorPhone, long groupId, long companyId,\n\t\tjava.lang.String articleId, java.lang.String title,\n\t\tjava.lang.String content, boolean hasAttachment,\n\t\tjava.lang.String language, boolean addCommunityPermissions,\n\t\tboolean addGuestPermissions)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(\n\t\tjava.lang.String discussionId, java.lang.String visitorName,\n\t\tjava.lang.String visitorEmail, java.lang.String visitorPhone,\n\t\tlong groupId, long companyId, java.lang.String articleId,\n\t\tjava.lang.String title, java.lang.String content,\n\t\tboolean hasAttachment, boolean approved, java.lang.String language)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(\n\t\tcom.vportal.portlet.vcms.model.VcmsDiscussion discussion)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussion(java.lang.String discussionId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String[] discussionIds)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String articleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String articleId, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion getDiscussion(\n\t\tjava.lang.String discussionId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(\n\t\tjava.lang.String articleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(\n\t\tjava.lang.String articleId, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L(\n\t\tlong groupId, java.lang.String language)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L_A(\n\t\tlong groupId, java.lang.String language, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> searchDiscussionByA_P_L_K(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tjava.lang.String keyword, boolean approved, boolean isTitle,\n\t\tboolean isContent, java.lang.String select)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic int countByApproval(long groupId, java.lang.String language,\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n}", "java.lang.String getLegacyDiscussionId();", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public void createSpecialNotice(String title, String discription, int doctorID) {\n\t\tString sql = \"\";\n\t\ttry {\n\n\t\t\tConnection dbConnection = dbConn.returnConn();\n\n\t\t\tsql = \"insert into doctornotice (title,content,docid) values(?,?,?)\";\n\t\t\tPreparedStatement preparedStmt = dbConnection.prepareStatement(sql);\n\t\t\tpreparedStmt.setString(1, title);\n\t\t\tpreparedStmt.setString(2, discription);\n\t\t\tpreparedStmt.setInt(3, doctorID);\n\n\t\t\tpreparedStmt.execute();\n\t\t\tdbConnection.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "void create(Comment comment);", "int insert(AnnouncementDO record);", "private Contest newContest(long id, long forumId, Limit limit, List languages) {\n\t\tContest contest = new Contest();\n\t\tcontest.setId(id);\n\t\tcontest.setDescription(\"desc\" + id);\n\t\tcontest.setLimit(limit);\n\t\tcontest.setLanguages(languages);\n\t\tcontest.setTitle(\"title\" + id);\n\t\tcontest.setForumId(forumId);\n\t\tcontest.setStartTime(new Date(id * 1000));\n\t\tcontest.setEndTime(new Date(id * 2000));\n\t\treturn contest;\n\t}", "public void addPost(String ptitle,String pcontent,String uid,String cid) throws SQLException {\n\t\n\t\tString sql = \"insert into posts(ptype,ptitle,pcontent,uid,cid) \"+\n\t\t\t\t\t\t\"values(0,?,?,?,?)\";\n\t\t\n\tpreparedStatement = conn\n\t .prepareStatement(sql);\n\t\n\tpreparedStatement.setString(1, ptitle);\n\tpreparedStatement.setString(2, pcontent);\n\tpreparedStatement.setString(3, uid);\n\tpreparedStatement.setString(4, cid);\n\t\n\t\n\tpreparedStatement.executeUpdate();\n\tSystem.out.println(\"Post Added!\");\n}", "@PostMapping(\"/voting-contents\")\n @Timed\n public ResponseEntity<VotingContent> createVotingContent(@Valid @RequestBody VotingContent votingContent) throws URISyntaxException {\n log.debug(\"REST request to save VotingContent : {}\", votingContent);\n if (votingContent.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new votingContent cannot already have an ID\")).body(null);\n }\n VotingContent result = votingContentRepository.save(votingContent);\n return ResponseEntity.created(new URI(\"/api/voting-contents/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public String onPostPers() {\n \r\n JobOffer c=categoryMetier.findJobOfferById(idCategorySelected);\r\n filDiscussion.setCategory(c);\r\n filDiscussion.setDateDiscussion(new java.util.Date());\r\n\r\n this.filDiscussionMetier.update(this.filDiscussion);\r\n return\"Forum\";\r\n }", "Conversation newConversation(Uuid id, String title, Uuid owner, Time creationTime);", "int insertSelective(Discuss record);", "Article createArticle();", "Comment createComment();", "int insert(CmsVoteTitle record);", "private Forum newForum(long id) {\n\t\tForum forum = new Forum();\n\t\tforum.setId(id);\n\t\tforum.setName(\"forum\" + id);\n\t\tforum.setDescription(\"forum\" + id + \" description\");\n\t\treturn forum;\n\t}", "@Override\r\n\tpublic void insertNews(int uid, String title, String triptime,\r\n\t\t\tString people, String imgpath, String triptype, String content,\r\n\t\t\tString equipment, String notice, String summary, String spot,\r\n\t\t\tTimestamp cdate) {\n\t\tdao.insertNews(uid, title, triptime, people, imgpath, triptype, content, equipment, notice, summary, spot, cdate);\r\n\t\t\r\n\t}", "public java.util.List<VcmsDiscussion> findAll();", "private void verifyPost() {\n if(TextUtils.isEmpty(newArticleTitle)){\n articleTitle.setError(\"Your post requires a title!\");\n articleTitle.requestFocus();\n return;\n }\n\n if(TextUtils.isEmpty(newArticleContent)){\n articleContent.setError(\"Your post requires a some content!\");\n articleContent.requestFocus();\n return;\n }\n\n // Pass in the calling activity such that official and team news are separated\n databaseReference = FirebaseDatabase.getInstance().getReference(callingActivity);\n\n String postId = databaseReference.push().getKey();\n\n NewsPost newsPost = new NewsPost(newArticleTitle, newArticleContent,\n newArticlePosterUsername, newArticlePosterProfileImage, dayDate, dayTime);\n\n databaseReference.child(postId).setValue(newsPost);\n\n // Close the activity\n finish();\n }", "void insert(CmsChannel record);", "public Message(BasicDBObject dbObject) {\n this.id = ((ObjectId)dbObject.get(\"_id\")).toString();\n this.title = dbObject.getString(\"title\");\n this.text = dbObject.getString(\"text\");\n this.created = dbObject.getDate(\"created\");\n }", "@Override\n\tpublic void insertArticle(BoardVO vo) {\n\t\tString sql = \"INSERT INTO board VALUES(board_id_seq.NEXTVAL,?,?,?)\";\n\t\ttemplate.update(sql,vo.getWriter(),vo.getTitle(),vo.getContent());\n\t}", "public static synchronized void createMessage(MessageModel message, String parentMessageId) throws MessageException, MongoException, SQLException {\n\t\t// Verify the message parameters\n\t\tboolean valid = true;\n\t\tStringBuilder errorMessage = new StringBuilder();\n\t\t\n\t\tif(message.getMessageText() == null || !Security.isStringNotEmpty(message.getMessageText())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message text : \" + message.getMessageText());\n\t\t}\n\t\tif(message.getMessageBoardName() == null || !Security.isValidBoardName(message.getMessageBoardName())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message board name : \" + message.getMessageBoardName());\n\t\t}\n\t\tif(message.getMessagePosterId() == null || !Security.isValidUserId(message.getMessagePosterId())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message poster id : \" + message.getMessagePosterId());\n\t\t}\n\t\tif(message.getMessageDate() == null) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message date : null\");\n\t\t}\n\t\t\n\t\t// If there is an error, throw an error\n\t\tif(!valid) {\n\t\t\t\n\t\t\tthrow new MessageException(errorMessage.toString());\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Escape the HTML special characters\n\t\t\tmessage.setMessageText(Security.htmlEncode(message.getMessageText()));\n\t\t\tmessage.setMessageBoardName(Security.htmlEncode(message.getMessageBoardName()));\n\t\t\t\n\t\t\t// Get message ID dynamically\n\t\t\tif(parentMessageId != null && !parentMessageId.equals(\"\")) {\n\t\t\t\t\n\t\t\t\t// Get the message parent\n\t\t\t\tMessageFilter parentFilter = new MessageFilter();\n\t\t\t\tparentFilter.addMessageId(parentMessageId);\n\t\t\t\tList<MessageModel> parents = MessageDatabaseManager.getMessage(parentFilter, false, true);\n\t\t\t\tif(parents.size() == 1) {\n\t\t\t\t\t\n\t\t\t\t\tMessageModel parent = parents.get(0);\n\t\t\t\t\tmessage.setMessageId(parent.getNextAnswerId());\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tthrow new MessageException(\"Parent message not found : \" + parentMessageId);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// Get the next root message ID\n\t\t\t\tmessage.setMessageId(MessageDatabaseManager.getNextRootMessageId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Insert the new message\n\t\t\tMessageDatabaseManager.insertMessage(message);\n\t\t\t\n\t\t}\n\t}", "public String createContent(String spaceId, String contentId);", "public static Long createActivityAsComment(Long parentNoteId, Blog topic, Long authorId,\r\n String templateId, long creationDateMillis)\r\n throws Exception {\r\n NoteStoringTO noteStoringTO = createActivityNoteStoringTO(topic, authorId, templateId,\r\n creationDateMillis);\r\n noteStoringTO.setParentNoteId(parentNoteId);\r\n return ServiceLocator.instance().getService(NoteService.class)\r\n .createNote(noteStoringTO, null).getNoteId();\r\n }", "Builder addDiscussionUrl(String value);", "public void insertBoard(NoticeBoardVO vo){\r\n\t\tString sql=\"insert into board_notice(userid,pass,title,content,writedate,fileurl) \"+\r\n\t\t\t\t\t\t\t\"values(?,?,?,?,?,?)\";\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, vo.getUserid());\t\t\t\r\n\t\t\tpstmt.setString(2, vo.getPass());\r\n\t\t\tpstmt.setString(3, vo.getTitle());\r\n\t\t\tpstmt.setString(4, vo.getContent());\r\n\t\t\tTimestamp time=new Timestamp(System.currentTimeMillis());\r\n\t\t\tpstmt.setTimestamp(5,time);\r\n\t\t\tpstmt.setString(6, vo.getFileurl());\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, pstmt);\r\n\t\t}\r\n\t}", "@Transactional()\n public Comment create(User author, Post parent, String content) {\n parent.setComments(parent.getComments() + 1);\n postService.save(parent);\n\n // create comment post\n var commentPost = new Post(author, content);\n postService.save(commentPost);\n\n // save comment\n var comment = new Comment(commentPost, parent);\n return save(comment);\n }", "@Override\n public DiscussionFollower create(DiscussionFollower discussionFollower) {\n return discussionFollowerRepository.save(discussionFollower);\n }", "public MessageRecord create(Message message, Long publisherId){\n\t\tString topicName = message.getTopic();\n\t\tLong topicId = topicDao.findTopicByName(topicName).getId();\n\t\treturn dsl.insertInto(MESSAGE,MESSAGE.CONTENT,MESSAGE.PUBLISHER_ID, MESSAGE.TOPIC_ID, MESSAGE.MESSAGE_ID)\n\t\t\t.values(message.getContent(),publisherId,topicId, UUID.randomUUID().toString()).returning(MESSAGE.ID).fetchOne();\n\t}", "int insert(KnowledgeComment record);", "public boolean insertNews() {\n\t\treturn false;\n\t}", "int insertSelective(AnnouncementDO record);", "public void createPost( BlogPost post );", "public void createNewTopic() {\n try {\n forumService.createNewTopic(\n newTopicName.trim(),\n TopicCategory.OTHER,\n currentUser,\n cloudOfTopic);\n } catch (Exception e) {\n logger.error(ExceptionUtils.getStackTrace(e));\n }\n newTopicName = \"\";\n refreshForumState();\n }", "@RequestMapping(value = \"/blog/newpost\", method = RequestMethod.POST)\n\tpublic String newPost(HttpServletRequest request, Model model) {\n\t\tString title=request.getParameter(\"title\");\n\t\tString body=request.getParameter(\"body\");\n\t\t\n\t\t//Validate parameters if not valid send back to form w/ error message\n\t\tif (title==\"\" || body==\"\"){\n\t\t\tif (title!=\"\"){\n\t\t\t\tmodel.addAttribute(\"title\",title);\n\t\t\t}\n\t\t\tif(body!=\"\"){\n\t\t\t\tmodel.addAttribute(\"body\",body);\n\t\t\t}\n\t\t\tmodel.addAttribute(\"error\",\"Post must have a Title and Body!\");\n\t\t\treturn \"newpost\";\n\t\t}\n\t\t\n\t\t//if they validate, create a new post\n\t\tInteger userId = (Integer) request.getSession().getAttribute(AbstractController.userSessionKey);\n\t\tUser author= userDao.findByUid(userId);\n\t\tPost post = new Post(title,body,author);\n\t\tpostDao.save(post);\n\t\tmodel.addAttribute(\"post\", post);\n\t\treturn \"redirect:\"+ post.getAuthor().getUsername()+\"/\"+ post.getUid(); \t\t\n\t}", "Paper addNewPaper(PaperForm form, Long courseId)throws Exception;", "@Override\n\tpublic TvShow create(long tvShowId) {\n\t\tTvShow tvShow = new TvShowImpl();\n\n\t\ttvShow.setNew(true);\n\t\ttvShow.setPrimaryKey(tvShowId);\n\n\t\tString uuid = PortalUUIDUtil.generate();\n\n\t\ttvShow.setUuid(uuid);\n\n\t\treturn tvShow;\n\t}", "int insert(CmsActivity record);", "public void create(int id, DVD dvd, Categorie categorie);", "int insertSelective(MemberAdvisoryComment record);", "public com.ms3.training.services.model.Course create(java.lang.String title);", "@Override\r\n\tpublic boolean gbCommentInsert(GroupBoardDto dto) {\n\t\treturn false;\r\n\t}", "public Comment() {\n\t\tthis._id = UUID.randomUUID();\n\t\tthis.timestamp = System.currentTimeMillis();\n\t}", "public VcmsArticleType create(\n\t\tvn.gov.hoabinh.service.persistence.VcmsArticleTypePK vcmsArticleTypePK);", "void addComment(long mediaId, String text);", "int insert(PmPost record);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "VoteTopic createVoteTopic(VoteTopic topic, String userId);", "public void insertChatMessage(String chatMessageID, String chatID, String replierStaffNo, String replierStudentID, String messageContent, String dateTimePosted)\n {\n if(replierStaffNo.equals(\"\"))\n dbConnection.alterDataBase(\"INSERT INTO ChatMessage VALUES ('\"+chatMessageID+\"', '\"+chatID+\"', null, '\"+replierStudentID+\"', '\"+messageContent+\"', '\"+dateTimePosted+\"');\");\n if(replierStudentID.equals(\"\"))\n dbConnection.alterDataBase(\"INSERT INTO ChatMessage VALUES ('\"+chatMessageID+\"', '\"+chatID+\"', '\"+replierStaffNo+\"', null, '\"+messageContent+\"', '\"+dateTimePosted+\"');\");\n }", "private void createNewChat() {\n if (advertisement.getUniqueOwnerID().equals(dataModel.getUserID())) {\n view.showCanNotSendMessageToYourselfToast();\n return;\n }\n\n dataModel.createNewChat(advertisement.getUniqueOwnerID(), advertisement.getOwner(), advertisement.getUniqueID(),\n advertisement.getImageUrl(), chatID -> view.openChat(chatID));\n }", "public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);", "Builder addDiscussionUrl(URL value);", "int insert(NewsInfo record);", "int insert(News record);", "public JTextPane getDiscussion(){\n return discussion;\n }", "private void createPost() {\n PostModel model = new PostModel(23, \"New Title\", \"New Text\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPost(model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }", "@Override\n public void onClick(View view) {\n CreatePost createPost = new CreatePost(context, selectedPic);\n createPost.execute(title.getText().toString(), description.getText().toString());\n }", "int insert(MsgContent record);", "@RequestMapping(value = \"/films/title/{title}/{reviewId}\", method=RequestMethod.POST)\n public String createComment(@RequestParam String content, @PathVariable String reviewId){\n Comment comment = new Comment();\n\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n String username;\n if (principal instanceof WebUserDetails) {\n username = ((WebUserDetails) principal).getUsername();\n } else {\n username = principal.toString();\n }\n\n User uId = userService.getUserByUsername(username);\n Review rId = reviewService.getReviewByReviewId(Integer.parseInt(reviewId));\n comment.setContent(content);\n comment.setUser(uId);\n comment.setReview(rId);\n commentService.saveComment(comment);\n return \"comments\";\n }", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "com.google.protobuf.ByteString\n getLegacyDiscussionIdBytes();", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Todo create(long todoId);", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "public void testContentCreationTest() {\n\t\tQuestion question = new Question(\"Q title test\", \"Q body test\", \"Q author id test\");\n\t\tAnswer answer = new Answer(\"A body test\", \"A author id test\");\n\t\tReply reply = new Reply(\"R body test\", \"R author id test\");\n\t\tUser user = new User();\n\t\t//adds the question of the topic to an array of saved questions\n\t\tquestion.addAnswer(answer);\n\t\tquestion.addReply(reply);\n\t\t//question.setFavourite(user);\n\t\t//answer.setFavourite(user);\n\t\tanswer.addReply(reply);\n\t\t//tests if answer added to question is correct\n\t\tassertTrue(question.getAnswerCount() == 1);\n\t\t//smoke test code reply and answers.\n\t\tassertTrue(question.getReplies().get(0).getId().equals(reply.getId()));\n\t\tassertTrue(question.getAnswers().get(0).equals(answer));\n\t}", "@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}", "public String doCreateComment() {\r\n Users commenter = ui.getUser();\r\n try {\r\n this.newComment.setRecipe(this.recipe);\r\n this.newComment.setCommenter(commenter);\r\n this.newComment.setDateCommented(new Date().getTime());\r\n List<Comment> c = recipe.getComments();\r\n c.add(newComment);\r\n this.recipe.setComments(c);\r\n recipesEJB.editRecipe(recipe);\r\n } catch (javax.ejb.EJBAccessException ejbae) {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Only registered users can post comments.\"));\r\n }\r\n return \"/recipe.xhtml?recipe=\" + qm.get(\"recipe\");\r\n }", "int insert(UserCorporateComment record);", "private boolean setDiscussion(Course course) {\n if (course.getDiscussions().size() > 0) {\n for (DetailedSection discussion : course.getDiscussions()) {\n if (canBeAdded(discussion)) {\n course.setSelectedDiscussion(discussion);\n if(setLab(course)) {\n return true;\n }\n }\n }\n return false;\n }\n return setLab(course);\n }", "int insert(FeiWenComment record);", "private synchronized void createConversation(int id) throws IOException {\n ConversationGUI convo = new ConversationGUI(model, id, this);\n conversations.put(id, convo);\n convo.setVisible(true);\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public void createSurvey(int tid);" ]
[ "0.6618739", "0.62636375", "0.6212632", "0.5944841", "0.55990624", "0.5424317", "0.5393553", "0.5295531", "0.5274198", "0.5125887", "0.5080936", "0.50498843", "0.50323963", "0.5030239", "0.50245595", "0.49718228", "0.49247876", "0.49235043", "0.49059674", "0.49002498", "0.48928678", "0.48910406", "0.48726144", "0.48655108", "0.48551738", "0.48548022", "0.4839832", "0.4839083", "0.48182508", "0.48144573", "0.47999173", "0.4791274", "0.47882608", "0.47708923", "0.47693452", "0.47573295", "0.4742166", "0.4733085", "0.47040215", "0.4685475", "0.46841422", "0.46786448", "0.46764416", "0.46748033", "0.46741724", "0.46456885", "0.4644663", "0.46445093", "0.46443236", "0.46353364", "0.4630979", "0.462672", "0.4617177", "0.46120447", "0.46047676", "0.45996228", "0.4598773", "0.45981795", "0.4598082", "0.4594787", "0.45939735", "0.45874298", "0.45699978", "0.45567718", "0.45549858", "0.4553793", "0.45380622", "0.4523996", "0.4523662", "0.45230475", "0.45076352", "0.45007914", "0.44987813", "0.449328", "0.4490942", "0.44882092", "0.4484154", "0.448198", "0.4480902", "0.44734532", "0.4464712", "0.44616213", "0.44591928", "0.44571334", "0.4449621", "0.44474697", "0.4445604", "0.4436876", "0.44332945", "0.44289437", "0.4428232", "0.442338", "0.4423083", "0.4412559", "0.4407956", "0.44067883", "0.44022122", "0.43879429", "0.43799064", "0.4372876" ]
0.8527303
0
Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.
public VcmsDiscussion remove(java.lang.String discussionId) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "int deleteByPrimaryKey(Integer announceid);", "int deleteByPrimaryKey(Integer massageId);", "public void deleteDiscussionTopic(IDiscussionTopic topic)\n throws OculusException;", "@Override\n\tpublic void delete(NewsCollection findOne) {\n\t\tnewsCollectionMapper.delete(findOne);\n\t\t\n\t}", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "void documentRemoved(SingleDocumentModel model);", "void deleleNews(String id);", "@Override\n public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, final int position) {\n\n realm = RealmMedicineReminderController.getInstance().getRealm();\n\n // get the article\n final MedicineReminder medicineReminder = getItem(position);\n // cast the generic view holder to our specific one\n final CardViewHolder holder = (MedicineReminderAdapter.CardViewHolder) viewHolder;\n\n // set the title and the snippet\n holder.textMedicine.setText(medicineReminder.getMedicineName());\n holder.textInterval.setText(medicineReminder.getDaysInterval());\n holder.textOther.setText(medicineReminder.getOther());\n holder.textTime.setText(medicineReminder.getTime());\n\n\n\n //remove single match from realm\n holder.card.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n\n RealmResults<MedicineReminder> results = realm.where(MedicineReminder.class).findAll();\n\n // Get the book title to show it in toast message\n MedicineReminder b = results.get(position);\n String title = b.getMedicineName();\n\n // All changes to data must happen in a transaction\n realm.beginTransaction();\n\n results.remove(position);\n realm.commitTransaction();\n\n if (results.size() == 0) {\n Prefs.with(context).setPreLoad(false);\n }\n\n notifyDataSetChanged();\n\n Toast.makeText(context, title + \" is removed from Realm\", Toast.LENGTH_SHORT).show();\n return false;\n }\n });\n\n }", "public void delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n //TODO Check delegation to abstract class and overwrite if necessary!\n this.getMyCONCMModelItem().delete();\n }", "@Override\n\tpublic void deleteMsgById(int mid) {\n\t\tmp.deleteMsgById(mid);\n\t}", "public void deleteArticle(View v)\n\t{\n\t\tSavedArticle article = (SavedArticle) v.getTag();\n\t\tdatasource.deleteArticle(article);\n\t\tadapter.delete(article);\n\t}", "@Override\n public void onClick(View v) {\n\n getRef(viewHolder.getAdapterPosition()).removeValue();\n\n adapter.notifyDataSetChanged();\n\n toastMessage(\"Movie removed\");\n }", "@Override\n public void removeFromDb() {\n }", "int deleteByPrimaryKey(Integer videoid);", "@Override\n public void delete(long id) {\n discussionFollowerRepository.deleteById(id);\n }", "int deleteByPrimaryKey(Long articleTagId);", "private void delete_message_reciver(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n\r\n }", "public void removeByArticle(java.lang.String articleId);", "public void removeByArticle(java.lang.String articleId);", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "public void removeFromSubject(String sid) throws SQLException {\r\n\t\tthis.stmt=this.conn.createStatement();\r\n\t\t\r\n\t\tString deleteQuery=\"delete from \"+Subject.SUBJECT_INFO_TABLE_NAME+\" where \"+Subject.SUBJECT_ID+\"='\"+sid+\"'\";\r\n\t\tint i=stmt.executeUpdate(deleteQuery);\r\n\t\t/*if(i>0)\r\n\t\t\tSystem.out.println(\"Removed-> \"+sid);\r\n\t\telse\r\n\t\t\tSystem.out.println(\"NotAvailabel-> \"+sid);*/\r\n\t\t\r\n\t\tstmt.close();\r\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void delete(TopicContent entity) {\n\t\ttopicContentDao.delete(entity);\r\n\t}", "public void delete(RelacionConceptoEmbalajePk pk) throws RelacionConceptoEmbalajeDaoException;", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "@Override\r\n\tpublic void delRecomment(int cm_Seq) {\n\t\trdao.delRecomment(cm_Seq);\r\n\t}", "@Override\n\tpublic void removeOne(Long id) {\n\t\tnotificationRepository.delete(id);\n\n\t}", "public void deleteComment() {\n text = null;\n authorName = null;\n timestamp = null;\n }", "@Override\n\tpublic void delMessage(String id) {\n\t\t messageDAO.deleteMessage(id);\n\t\n\t}", "public void deleteContent(int parseInt) {\n\t\tcontentMapper.deleteByPrimaryKey(parseInt);\n\t}", "void removeVideoFromCollection(User user, String video_id);", "public VcmsDiscussion create(java.lang.String discussionId);", "private void delete_message_sender(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_LONG).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n\r\n\r\n }", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "@Override\n public void deleteGoodsIssuedDocumentDetail(Long goodsIssuedDocumentDetailId) {\n goodsIssuedDocumentDetail = getGoodsIssuedDocumentDetail(goodsIssuedDocumentDetailId);\n em.remove(goodsIssuedDocumentDetail);\n em.flush();\n }", "int deleteByPrimaryKey(String postId);", "public void clickedPresentationDelete() {\n\t\tif(mainWindow.getSelectedRowPresentation().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowPresentation().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tint tmpSelectedRow = mainWindow.getSelectedRowPresentation()[0];\n\t\t\tPresentations tmpPresentation = presentationList.remove(tmpSelectedRow);\t\t\t\n\t\t\tappDriver.hibernateProxy.deletePresentation(tmpPresentation);\t\n\t\t\trefreshPresentationTable();\t\t\t\n\t\t}\n\t}", "@Override\n public void onSuccess(Void aVoid) {\n Query fquery = FirebaseDatabase.getInstance().getReference(\"Posts\").orderByChild(\"pId\").equalTo(postId);\n fquery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds: dataSnapshot.getChildren()){\n\n ds.getRef().removeValue(); // remove value from firebase where pId matched\n\n }\n Toast.makeText(PostDetailActivity.this, \"Post Deleted !\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n\n }", "private void handleClearDB() {\n try {\n ContentResolver contentResolver = this.mContext.getContentResolver();\n contentResolver.delete(KeyguardNotification.URI, null, null);\n contentResolver.notifyChange(KeyguardNotification.URI, null);\n } catch (Exception e) {\n Log.e(\"KeyguardNotifHelper\", \"handleClearDB\", e);\n }\n }", "void removePost(int id) throws RemoteException, SQLException;", "public void deletePost(View v){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n //remove the job from the list of all jobs with a listener\n DatabaseReference myJobRef = database.getReference(\"Jobs\");\n myJobRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this,jobPost.getPostid()));\n //remove the job from the users job list with a listener*\n DatabaseReference myUserJobsRef = database.getReference(\"Users\").child(jobPost.getUserid()).child(\"jobs\");\n myUserJobsRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this, jobPost.getPostid()));\n finish();\n }", "@Override\r\n\tpublic void deleteMessage(Integer id) {\n\t\tString sql=\"delete from message where id=?\";\r\n\t\ttry {\r\n\t\t\tupdate(conn, sql, id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "int deleteByPrimaryKey(Long researchid);", "@Override\n\tpublic Message deleteKind(String kId) {\n\t\tMessage msg=new Message();\n\t\tKind kind=kindDao.findById(kId);\n\t\tif(kind!=null&&!kind.getType().equals(\"未知\")){\n//\t\t\t当id为book的外键时如何删除\n\t\t List<Book> books=bookDao.findByKId(kId);\n\t\t\tSystem.out.println(\"asdp,f[a,ewg,ep[mawgpk\");\n\n\t\t\tKind k=kindDao.findByType(\"未知\");\n\t\t\tif(books!=null){\n\t\t\t\tfor (Book book : books) {\n\t\t\t\t\tbook.setKind(k);\n\t\t\t\t\tbookDao.updateBook(book);\n\t\t\t\t}\n\t\t\t }\n\t\t\tkindDao.deleteKind(kind);\n\t\t\tmsg.setMsg(\"删除成功\");\n\t\t\treturn msg;\n\t\t\t}else{\n\t\t\t\tmsg.setMsg(\"该对象已被删除或默认种类不能被删除\");\n\t\t\t\treturn msg;\n\t\t}\n\t}", "@Override\n public void removePost(int id) throws RemoteException, SQLException {\n Logger.getGlobal().log(Level.INFO,\"Suppression d'un message dans le composant post de nom : \" + this.getName());\n String q = \"DELETE FROM posts_krowemarf WHERE id = ?\";\n PreparedStatement pstmt = this.dbConnection.prepareStatement(q, Statement.RETURN_GENERATED_KEYS);\n pstmt.setInt(1, id);\n pstmt.executeUpdate();\n }", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "int deleteByPrimaryKey(String commentId);", "public void deleteByChucVuID(long chucVuId);", "public RemoveNote(IMusicModel model, CompositeView view) {\n this.model = model;\n this.view = view;\n }", "public void deleteSamSyndicator() {\r\n deletePublisher(TckPublisher.getSamPublisherId());\r\n }", "private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }", "public void deleteForumById(Long idForum);", "public void effacerDiscussion() {\n discussion.setText(\"\");\n }", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "public void delete(Context ctx){\n\t\t\tChildInteraction cDb = new ChildInteraction(ctx);\t// for writing to the db\n\t\t\tfor(String key : numbers.keySet())\t\t\t\t\t// for all the numbers\n\t\t\t\tcDb.DeleteChild(key, text);\t\t\t\t\t\t// delete the entry in the db\n\t\t\tcMessages.remove(this);\t\t\t\t\t\t\t\t// remove this from cMessages\n\t\t\tcDb.Cleanup();\t\t\t\t\t\t\t\t\t\t// cleanup\n\t\t}", "int deleteByPrimaryKey(String noticeId);", "int deleteByPrimaryKey(Integer postid);", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "int deleteByPrimaryKey(String questionId);", "public void deleteChatRoom(ChatRoom cr);", "void remove(PK id);", "int deleteByPrimaryKey(Long id_message_group);", "@Override\n\tpublic int deletenetinfo(String id) {\n\t\treturn personmanagemarticleMapper.deleteByPrimaryKey(id);\n\t}", "@Override\r\n\tpublic int deleteByPrimaryKey(String manageNursingContentId)\r\n\t\t\tthrows Exception {\n\t\treturn mContentMapper.deleteByPrimaryKey(manageNursingContentId);\r\n\t}", "int deleteByPrimaryKey(Long commentId);", "public void removeBycourse_id(long course_id);", "@Override\n public void delete() {\n this.parent.handleRemoveSignal(this.deadline.getCourseName(),\n this.deadline.getName(),\n this.deadline.getYear(),\n this.deadline.getMonth(),\n this.deadline.getDay());\n }", "int deleteByPrimaryKey(Integer educationid);", "protected void deleteClock() {\n \t\tIntent intent = new Intent(this.getContext(), ClockReceiver.class);\n \t\tintent.setData(ContentUris.withAppendedId(Uri.parse(\"content://xue_yynote/note\"), this.mNoteItemModel.getId()));\n \t\t//Bundle bundle = new Bundle();\n \t\t//bundle.putInt(\"com.xuewish.xnotes.NOTE_ID\", this.mNoteItemModel.getId());\n \t\t//intent.putExtras(bundle);\n \t\tPendingIntent pendingIntent = PendingIntent.getBroadcast(\n \t\t\t\tthis.getContext(), 0, intent, 0);\n \t\t// 获取系统进程\n \t\tAlarmManager am = (AlarmManager) this.getContext().getSystemService(\n \t\t\t\tContext.ALARM_SERVICE);\n \t\t// cancel\n \t\tam.cancel(pendingIntent);\n \n \t\tDBHelper dbHelper = DBHelper.getInstance(this.getContext());\n \t\tdbHelper.delete(DBHelper.TABLE.ALERTS, ClockModel.ID + \" = \"\n \t\t\t\t+ this.mNoteItemModel.getClockId(), null);\n \n \t\tthis.mNoteItemModel.setClockId(-1);\n \t\tdbHelper.update(\n \t\t\t\tDBHelper.TABLE.NOTES,\n \t\t\t\tthis.mNoteItemModel.formatContentValuesWithoutId(),\n \t\t\t\tNoteItemModel.ID + \" = \"\n \t\t\t\t\t\t+ NoteEditView.this.mNoteItemModel.getId(), null);\n \n \t\tthis.mClockTime.setText(\"\");\n \t\tthis.mClock.setOnClickListener(this);\n \t}", "@Override\n\tpublic void remove(Message message) {\n\t\tmessRepository.delete(message);\n\t}", "int deleteByPrimaryKey(Integer cid);", "int deleteByPrimaryKey(Integer cid);", "void delete(int commentId);", "public void deleteByPrimaryKey(Long tagId) {\n }", "public JavareviewModel deletereview(JavareviewModel oJavareviewModel){\n\n \t\t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing review from the database*/\n oJavareviewModel = (JavareviewModel) hibernateSession.get(JavareviewModel.class, oJavareviewModel.getreviewId());\n\n\n /* Delete the existing review from the database*/\n hibernateSession.delete(oJavareviewModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavareviewModel;\n }", "int deleteByPrimaryKey(Integer vid);", "public static void deleteMessage(MessageModel message) throws MessageException, MongoException, SQLException {\n\t\t// Verify the message\n\t\tboolean valid = true;\n\t\tStringBuilder errorMessage = new StringBuilder();\n\t\t\n\t\tif(message.getMessageId() == null || !Security.isValidMessageId(message.getMessageId())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message id : \" + message.getMessageId());\n\t\t}\n\t\tif(message.getMessagePosterId() == null && !Security.isValidUserId(message.getMessagePosterId())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid messsage poster id : \" + message.getMessageId());\n\t\t}\n\t\t\n\t\t// If there is an error, throw an exception\n\t\tif(!valid) {\n\t\t\t\n\t\t\tthrow new MessageException(errorMessage.toString());\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Delete the message from the database\n\t\t\tMessageDatabaseManager.deleteMessage(message);\n\t\t\t\n\t\t}\n\t}", "@Override\r\npublic int deleteByPrimaryKey(Integer possalesdetailid) {\n\treturn possalesdetail.deleteByPrimaryKey(possalesdetailid);\r\n}", "public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }", "public void deleteForum(Forum forum);", "@Override\n public Post removePost(String categoryId, String forumId, String topicId, String postId) {\n\t\treturn null;\n\t}", "@Transactional\n\tpublic boolean deleteInterview(Interview interview) {\n\n\t\tgetSession().delete(interview);\n\t\treturn true;\n\t}", "public void deleteArticle(Article article);", "@Override\n public void onDelete() {\n mDialog.dismiss();\n ((FrameLayout) getParent()).removeView(this);\n }", "@Override\n\tpublic int deletePMIArticle(String id) {\n\t\treturn personmanagemarticleMapper.deleteByPrimaryKey(id);\n\t}", "@Override\n public void deleteSms() {\n Uri uri = Uri.parse(\"content://sms/\");\n Cursor cursor = presenter.getContext().getContentResolver().query(uri, null, null, null, null);\n if (cursor.moveToFirst()) {\n String messageId = cursor.getString(0);\n presenter.getContext().getContentResolver().delete(Uri.parse(\"content://sms/\" + messageId), null, null);\n }\n }", "int deleteByPrimaryKey(String cid);", "private void delete_message_everyone(final int position, final MessageHolder messageHolder){\r\n\r\n Mprogress.setTitle(\"Wait for a moment ...\");\r\n Mprogress.setMessage(\"Please wait for delete message\");\r\n Mprogress.setCanceledOnTouchOutside(false);\r\n Mprogress.show();\r\n\r\n DatabaseReference MessageRoot = FirebaseDatabase.getInstance().getReference();\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n MessageRoot.child(\"Message\").child(userMessageListModals.get(position).getFrom())\r\n .child(userMessageListModals.get(position).getTo())\r\n .child(userMessageListModals.get(position).getMessage_Id())\r\n .removeValue()\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n\r\n if(task.isSuccessful()){\r\n /// todo finial task\r\n userMessageListModals.remove(position);\r\n notifyDataSetChanged();\r\n Mprogress.dismiss();\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\r\n\r\n Mprogress.dismiss();\r\n }\r\n\r\n }\r\n });\r\n }\r\n else {\r\n Toast.makeText(messageHolder.context,task.getException().getMessage(), Toast.LENGTH_LONG).show();\r\n Mprogress.dismiss();\r\n }\r\n }\r\n });\r\n }", "private void removeLessonFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tFragment fragment = (Fragment) fm\n\t\t\t\t.findFragmentById(R.id.detailFragmentContainer);\n\t\tif (fragment != null) {\n\t\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\t\tft.remove(fragment);\n\t\t\tft.commit();\n\t\t}\n\t}", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "int deleteByPrimaryKey(String licFlow);", "public void notifyRemoved(String publicID) {\n }", "@Override\n public void deleteGoodsIssuedDocument(Long goodsIssuedDocumentId) {\n goodsIssuedDocument = getGoodsIssuedDocument(goodsIssuedDocumentId);\n em.remove(goodsIssuedDocument);\n em.flush();\n }", "public void removeNotification(View view){\n\n NotificationManager mNotificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n try {\n //Get ID entered from the view\n int id = Integer.valueOf(notifcationIdView.getSelectedItem().toString());\n\n //Try and remove it - catch exception if it doesn't exist\n mNotificationManager.cancel(id);\n\n //Update notification tracker and spinner\n currentNotifications.remove(id);\n } catch (Exception e ) {\n yell(e.getMessage());\n\n //If somethings getting messed up, wipe everything\n mNotificationManager.cancelAll();\n currentNotifications.clear();\n }\n\n scrollViewAdapter.notifyDataSetChanged();\n }", "public synchronized void destroy(MessageRef reference) throws JMSException {\n final String messageId = reference.getMessageId();\n if (_references.remove(messageId) != null) {\n if (reference.isPersistent()) {\n try {\n DatabaseService service = DatabaseService.getInstance();\n Connection connection = service.getConnection();\n PersistenceAdapter adapter = service.getAdapter();\n adapter.removeMessage(connection, messageId);\n } catch (Exception exception) {\n _log.error(\"Failed to remove message\", exception);\n throw new JMSException(\"Failed to remove message: \"\n + exception.getMessage());\n }\n _persistent.remove(messageId);\n } else {\n _transient.remove(messageId);\n }\n }\n }", "public void deleteByVaiTroID(long vaiTroId);", "@Override\n public void remove(int id) {\n Venda v;\n\n v = em.find(Venda.class, id);\n em.remove(v);\n// transaction.commit();\n }", "@Override\n public void remove(News item) {\n }", "int deleteByPrimaryKey(String detailId);" ]
[ "0.5894927", "0.5444785", "0.5430688", "0.54288155", "0.54234177", "0.53703535", "0.5332121", "0.5313657", "0.5304471", "0.5293177", "0.5252829", "0.5229382", "0.52091557", "0.5196042", "0.51804745", "0.51794124", "0.5156894", "0.5119977", "0.5101998", "0.5101998", "0.5098168", "0.50960267", "0.5074558", "0.50729805", "0.5025704", "0.50108284", "0.50011474", "0.49797758", "0.49739307", "0.4971947", "0.49438715", "0.49327973", "0.4931915", "0.49213696", "0.4911904", "0.49015895", "0.48985997", "0.48832333", "0.48731345", "0.4861743", "0.48598978", "0.48533162", "0.48509705", "0.48445198", "0.48426938", "0.48332065", "0.48322725", "0.4825002", "0.48246932", "0.48176926", "0.4817034", "0.48094162", "0.48049766", "0.48026484", "0.4800821", "0.47949243", "0.47921327", "0.4789588", "0.47887632", "0.47878188", "0.4783419", "0.47817636", "0.47810537", "0.4779582", "0.4774367", "0.4771304", "0.47667977", "0.4766519", "0.4763466", "0.47611874", "0.47562462", "0.4754245", "0.4754245", "0.47446167", "0.47409657", "0.47390425", "0.47369933", "0.47288513", "0.47264192", "0.47240594", "0.4721339", "0.472047", "0.47193685", "0.47106704", "0.4710402", "0.47059932", "0.47035992", "0.47012064", "0.47011977", "0.470001", "0.4699017", "0.4697124", "0.4697009", "0.46967697", "0.4676229", "0.46757603", "0.4671945", "0.4670995", "0.46682963", "0.4662246" ]
0.6071567
0
Returns the vcms discussion with the primary key or returns null if it could not be found.
public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Discussion getDiscussion(int discussionID) throws DAOException;", "public String getDiscussion(){\n return discussion;\n }", "public java.util.List<VcmsDiscussion> findAll();", "java.lang.String getLegacyDiscussionId();", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public VcmsDiscussion create(java.lang.String discussionId);", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "KnowledgeComment selectByPrimaryKey(Integer id);", "Optional<UserContentComment> findOne(Long id);", "public JTextPane getDiscussion(){\n return discussion;\n }", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "java.lang.String getLinkToDiscussion();", "FeiWenComment selectByPrimaryKey(String cid);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "Comment selectByPrimaryKey(Integer cid);", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "@Override\n\tpublic Optional<Message> findById(Long id) {\n\t\treturn messRepository.findById(id);\n\t}", "AnnouncementDO selectByPrimaryKey(Integer announceid);", "UserCorporateComment selectByPrimaryKey(Long id);", "MsgContent selectByPrimaryKey(Integer id);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Discussion[] getDiscussions() throws DAOException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Optional<Content> findContentById(Integer contentID){\n\n Optional<Content> content = contentRepository.findById(contentID);\n\n if(content.isPresent()){\n return content;\n }\n throw new HubNotFoundException(\"Could not find content for contentID: \" + contentID);\n }", "@Override\n public Message findOne(Integer key) throws SQLException {\n //Ei toteutettu\n return null;\n }", "@Override\n public Message find(Long id) {\n return null;\n }", "public com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "ComplainNoteDO selectByPrimaryKey(Long id);", "@Override\r\n\tpublic Comment getCommentById(long idComment) {\n\t\treturn null;\r\n\t}", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "com.google.protobuf.ByteString\n getLegacyDiscussionIdBytes();", "@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}", "com.google.protobuf.ByteString\n getLinkToDiscussionBytes();", "Optional<Expert> findOne(Long id);", "NewsInfo selectByPrimaryKey(Integer id);", "Comment findById(int commentId);", "NewsItem obtainNewsItemById(long id) throws ObjectRetrievalFailureException;", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "Optional<NotificacionInfo> findOne(Long id);", "Comments selectByPrimaryKey(Integer id);", "public Comment getCommentById(String id) {\n for (Comment c : this.comments) {\n if (c.getUuid().equals(id)) {\n return c;\n }\n }\n\n return null;\n }", "private final ViewGroup m136462c() {\n View view;\n BaseFragment baseFragment = this.f98814b;\n if (baseFragment == null || (view = baseFragment.getView()) == null) {\n return null;\n }\n return (ViewGroup) view.findViewById(R.id.topic_live_container);\n }", "public Forum getForumById(Long idForum);", "News selectByPrimaryKey(Integer id);", "Optional<ToChuc> findOne(Long id);", "CommunityInform selectByPrimaryKey(String id);", "Commet selectByPrimaryKey(String commentId);", "public Cursor fetchNote(long rowId) throws SQLException {\n\n Cursor mCursor = database.query(true, NOTES_TABLE, new String[] {KEY_NOTES_ROWID, KEY_NOTES_TITLE, KEY_NOTES_BODY}, KEY_NOTES_ROWID + \"=\" + rowId, null,\n null, null, null, null);\n if (mCursor != null) {\n mCursor.moveToFirst();\n }\n return mCursor;\n\n }", "public VBeatPostModel getPost(String postId){\n List<VBeatPostModel> postList = AppLocalDB.getInstance().db.postDao().getPost(postId);\n\n if(postList.size() == 0) {\n return null;\n } else {\n return postList.get(0);\n }\n\n }", "public Publication getPublication(long publicationId) throws DAOException {\n\t\treturn getEntityManager().find( Publication.class, publicationId );\n }", "@Transactional(readOnly=true)\n public ForumContent queryForumContentBymobile(String mobile){\n \tList<ForumContent> ForumContents = this.forumDAO.query(\"from ForumContent u where u.mobile =?\",mobile);\n\n \tif(ForumContents!=null&&ForumContents.size()>0){\n \t\treturn ForumContents.get(0);\n \t}else{\n \t\treturn null;\n \t}\n }", "PublicDoctorNotice selectByPrimaryKey(String noticeId);", "com.polytech.spik.protocol.SpikMessages.Conversation getConversation();", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public int getCommentId();", "@Override\n\tpublic Notification findOne(Long id) {\n\t\treturn null;\n\t}", "@Override\n public Forum getForum(String categoryId, String forumId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Message findOneMessage(long id) {\n\t\treturn null;\n\t}", "public Discussion[] getDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "@Override\n\tpublic NewsCollection findOne(Integer id) {\n\t\treturn newsCollectionMapper.findOne(id);\n\t}", "public Optional<Message> getMessage(int idMessage) {\n return messageRepository.getMessage(idMessage);\n }", "public Question getQuestion(String questionId) {\r\n Question[] questions = currentProcessInstance.getQuestions();\r\n Question foundQuestion = null;\r\n \r\n for (int i = 0; foundQuestion == null && i < questions.length; i++) {\r\n if (questions[i].getId().equals(questionId))\r\n foundQuestion = questions[i];\r\n }\r\n \r\n return foundQuestion;\r\n }", "CE findById(ID id);", "public WallItemComment getWallItemComment(long wallItemCommentId);", "public Topic findByid() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Message find(int id) {\n\t\treturn null;\n\t}", "protected CaBillingCycleSpec getCaBillingCycleSpec(Long cycleSpecId)\n {\n List<CaBillingCycleSpec> specList=getCaBillingCycleSpecList(cycleSpecId);\n if(CommonUtil.isNotEmpty(specList)){\n return specList.get(0);\n }else{\n return null;\n }\n }", "WxNews selectByPrimaryKey(Integer id);", "public Message getMessage(long id)\n {\n Message message = messages.get(id);\n if(message == null)\n throw new DataNotFoundException(\"Message with ID \" + id + \" not found!\");\n return message;\n }", "public Comment findComment(int id) {\n\t\treturn cdi.findComment(id);\n\t}", "Message findOne(Long id);", "public Comment findCommentById(Long id) {\n return commentRepository.findById(id).get();\n }", "public DBDoc getObject(String id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Note findById(Serializable id) {\n\t\tString sql = \"select * from cn_note where cn_note_id=?\";\n\t\ttry {\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\n\t\t\tpst.setString(1, (String)id);\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\tif(rs.next()){\n\t\t\t\tNote n = new Note();\n\t\t\t\tString cn_note_id = rs.getString(\"cn_note_id\");\n\t\t\t\tString cn_notebook_id = rs.getString(\"cn_notebook_id\");\n\t\t\t\tString cn_user_id = rs.getString(\"cn_user_id\");\n\t\t\t\tString cn_note_status_id = rs.getString(\"cn_note_status_id\");\n\t\t\t\tString cn_note_type_id = rs.getString(\"cn_note_type_id\");\n\t\t\t\tString cn_note_title = rs.getString(\"cn_note_title\");\n\t\t\t\tString cn_note_body = rs.getString(\"cn_note_body\");\n\t\t\t\tlong cn_note_create_time = rs.getLong(\"cn_note_create_time\");\n\t\t\t\tlong cn_note_last_modify_time = rs.getLong(\"cn_note_last_modify_time\");\n\t\t\t\tn.setCn_note_body(cn_note_body);\n\t\t\t\tn.setCn_note_create_time(cn_note_create_time);\n\t\t\t\tn.setCn_note_id(cn_note_id);\n\t\t\t\tn.setCn_note_last_modify_time(cn_note_last_modify_time);\n\t\t\t\tn.setCn_note_status_id(cn_note_status_id);\n\t\t\t\tn.setCn_note_title(cn_note_title);\n\t\t\t\tn.setCn_note_type_id(cn_note_type_id);\n\t\t\t\tn.setCn_notebook_id(cn_notebook_id);\n\t\t\t\tn.setCn_user_id(cn_user_id);\n\t\t\t\treturn n;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "ContentIdentifier getParent(ContentIdentifier cid);", "@Override\r\n\tpublic Candidat findOne(String id) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic News selectByPrimaryKey(Integer id) {\n\t\treturn null;\n\t}", "public PerformanceReview getSinglePerformanceReview(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from PerformanceReview as performanceReview where performanceReview.performanceReviewId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (PerformanceReview) results.get(0);\n }\n\n }", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Optional<Computer> findOne(long idToSelect);", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "Optional<ChatDTO> findOne(Long id);", "public Content findContentById(Long contentId) {\n return contentDAO.findById(contentId);\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}", "PmPost selectByPrimaryKey(String postId);", "public Optional<Messages> getMessage(int id){\n\treturn messageRepository.getMessage(id);\n }", "@Override\n\tpublic String findById() {\n\t\treturn null;\n\t}", "UserContent findContentById(@Param(\"contentUid\") long contentUid);", "@Override\n @Transactional(readOnly = true)\n public Optional<DSCorrespondence> findOne(Long id) {\n log.debug(\"Request to get DSCorrespondence : {}\", id);\n return dSCorrespondenceRepository.findById(id);\n }", "public Optional<String> getComment() {\n\t\treturn Optional.ofNullable(_comment);\n\t}", "private AbstractNode getVideoContentNode(final int index) {\n AbstractNode node = mediaService.getNode(RootNode.VIDEO.getId());\n AbstractNode rootVideo = mediaService.getChildNodes(new ChildNodeRequest(node)).getChildNodes().iterator().next();\n Collection<AbstractNode> nodes = mediaService.getChildNodes(new ChildNodeRequest(rootVideo)).getChildNodes();\n int i = 0;\n for (AbstractNode childNode : nodes) {\n if (i == index) return childNode;\n i++;\n }\n return null;\n }", "public ComTicket findById(Long idp2) {\n\t\ttry {\r\n\t\t\tString queryStr = \"Select c from ComTicket c where c.id = ?1\";\r\n\r\n\t\t\tTypedQuery<ComTicket> query = em.createQuery(queryStr,\r\n\t\t\t\t\tComTicket.class);\r\n\t\t\tquery.setParameter(1, idp2);\r\n\t\t\tComTicket resultado = query.getSingleResult();\r\n\t\t\treturn resultado;\r\n\t\t} catch (NoResultException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Document getPeerInfo(Integer id) {\n try {\n this.setTarget(\"CHATS\");\n Document peerInfo = collection.find(eq(\"_id\", id)).first();\n if (peerInfo == null) {\n this.setTarget(\"USERS\");\n peerInfo = collection.find(eq(\"_id\", id)).first();\n }\n return peerInfo;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }", "@Override\n public Digital getNews(int id) throws Exception {\n Connection con = null;\n ResultSet rs = null;\n PreparedStatement ps = null;\n String s = \"select * from digital where id = ?\";\n // check connection of db if cannot connect, it will throw an object of Exception\n try {\n con = getConnection();\n ps = con.prepareCall(s);\n ps.setInt(1, id);\n rs = ps.executeQuery();\n while (rs.next()) {\n Digital d = new Digital(rs.getInt(\"id\"),\n rs.getString(\"title\"),\n rs.getString(\"description\"),\n rs.getString(\"images\"),\n rs.getString(\"author\"),\n rs.getTimestamp(\"timePost\"),\n rs.getString(\"shortDes\"));\n return d;\n }\n } catch (Exception e) {\n throw e;\n } finally {\n // close ResultSet, PrepareStatement, Connection\n closeResultSet(rs);\n closePrepareStateMent(ps);\n closeConnection(con);\n }\n return null;\n }", "@Override\n\tpublic DomainObject find(long id) {\n\t\treturn null;\n\t}" ]
[ "0.70880747", "0.64430124", "0.6144153", "0.6109856", "0.6013174", "0.60062176", "0.5967567", "0.59648806", "0.5960721", "0.5868256", "0.5695481", "0.5620256", "0.55577606", "0.5553636", "0.55082715", "0.54997003", "0.5492193", "0.5472875", "0.5455859", "0.5452304", "0.5404468", "0.53715813", "0.5355024", "0.5340275", "0.53128505", "0.5300438", "0.5282183", "0.5246109", "0.52281207", "0.52280635", "0.518728", "0.5158074", "0.51444095", "0.5122884", "0.5100692", "0.50938934", "0.5087498", "0.50840324", "0.5077918", "0.5074681", "0.50704", "0.50655127", "0.505013", "0.5048017", "0.504359", "0.50374925", "0.5037163", "0.503583", "0.50357753", "0.50297165", "0.50143456", "0.50035137", "0.5001435", "0.49958897", "0.4985412", "0.49782088", "0.4971213", "0.49564844", "0.49536008", "0.49486566", "0.49463734", "0.49428028", "0.49271953", "0.4922757", "0.4918077", "0.4909126", "0.49019724", "0.48936552", "0.48918447", "0.48844823", "0.4880992", "0.4873941", "0.48737347", "0.4865575", "0.48546287", "0.48506168", "0.48409045", "0.4838351", "0.48334736", "0.48295298", "0.48246706", "0.48233512", "0.4819766", "0.4817797", "0.48139554", "0.480582", "0.480547", "0.48044708", "0.48028755", "0.4799331", "0.47993195", "0.4781897", "0.47808373", "0.47781283", "0.4777879", "0.47776556", "0.4774246", "0.47716", "0.47665623", "0.47634998" ]
0.8058773
0
Returns all the vcms discussions.
public java.util.List<VcmsDiscussion> findAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Discussion[] getDiscussions() throws DAOException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public Discussion[] getDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public String getDiscussion(){\n return discussion;\n }", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "Collection<Markdown> getMarkdowns();", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "public Collection<Community> getAllCommunities() {\n return communityStore.getAll();\n }", "@Override\n public List<Object> getDialogs() {\n try {\n List<Object> chats = new ArrayList<>();\n // DIALOGS contain only active dialogs\n this.setTarget(\"DIALOGS\");\n FindIterable<Document> dials = collection.find();\n // CHATS contain all found chats and additional info\n this.setTarget(\"CHATS\");\n for (Document dial : dials) {\n FindIterable<Document> chat = collection.find(eq(\"_id\", dial.get(\"_id\")));\n chats.add(chat.first());\n }\n return chats;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }", "public IDiscussionTopicList getAttachedDiscussionTopics()\n throws OculusException;", "ImmutableList<SchemaOrgType> getDiscussionUrlList();", "public List<Object> getListForum();", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public List<Forum> getForums() {\n \t\t// FIXME We do not use @OneToMany because forums are ordered,\n \t\t// thus changing the display order of a single forum will not\n \t\t// automatically change its order in the collection, and manually\n \t\t// executing a sort() seemed a worst appraoch\n \t\treturn this.repository.getForums(this);\n \t}", "@Override\r\n\tpublic List<TopicContent> findAll() {\n\t\treturn topicContentDao.findAll();\r\n\t}", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public boolean hasMoreDiscussions();", "@Override\n\tpublic List<Message> findAll() {\n\t\tSystem.err.println(\"Vao dây\" + url);\n\t\tfor (Message massage : messRepository.findAll()) {\n\t\t\tSystem.err.println(\"massage ==>\" + massage.getUsername());\n\t\t}\n\t\treturn (List<Message>) messRepository.findAll();\n\t}", "public List<Conversation> loadConversations() throws PersistentDataStoreException {\n\n List<Conversation> conversations = new ArrayList<>();\n\n // Retrieve all conversations from the datastore.\n Query query = new Query(\"chat-conversations\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n UUID uuid = UUID.fromString((String) entity.getProperty(\"uuid\"));\n UUID ownerUuid = UUID.fromString((String) entity.getProperty(\"owner_uuid\"));\n String title = (String) entity.getProperty(\"title\");\n Instant creationTime = Instant.parse((String) entity.getProperty(\"creation_time\"));\n boolean muted = Boolean.parseBoolean((String) entity.getProperty(\"muted\"));\n Conversation conversation = new Conversation(uuid, ownerUuid, title, creationTime, muted);\n conversations.add(conversation);\n } catch (Exception e) {\n // In a production environment, errors should be very rare.\n // Errors which may\n // occur include network errors, Datastore service errors,\n // authorization errors,\n // database entity definition mismatches, or service mismatches.\n throw new PersistentDataStoreException(e);\n }\n }\n\n return conversations;\n }", "public Iterable<Content> findAllContent(){\n\n return contentRepository.findAll();\n }", "List<KnowledgeComment> selectAll();", "public JTextPane getDiscussion(){\n return discussion;\n }", "public Conversation[] getConversations () {\n Vector<Conversation> convoList = new Vector<Conversation>();\n Logger.write(\"VERBOSE\", \"DB\", \"getConversations()\");\n\n try {\n ResultSet convoSet = query(DBStrings.getConversations);\n while (convoSet.next())\n convoList.add(getConversation(convoSet.getString(\"convoID\")));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return convoList.toArray(new Conversation[0]);\n }", "public List<Content> getAllContents() {\n return contentRepo.findAll();\n }", "@Override\n public List<Channel> getChannels() {\n XmlTvParser.TvListing listings = ChannelFeedUtil.getTvListings(this);\n List<Channel> channelList = new ArrayList<>(listings.getChannels());\n\n // Build advertisement list for the channel.\n Advertisement channelAd = new Advertisement.Builder()\n .setType(Advertisement.TYPE_VAST)\n .setRequestUrl(TEST_AD_REQUEST_URL)\n .build();\n List<Advertisement> channelAdList = new ArrayList<>();\n channelAdList.add(channelAd);\n return channelList;\n }", "public static void getCommunications(AnidexAuthApi api) {\n int latestCommunicationId = getLatestCommunication(api).getCommunicationId();\n\n Communication communication = api.getCommunication(latestCommunicationId);\n\n System.out.println(\"subject: \" + communication.getSubject());\n System.out.println(\"\");\n\n for(Communication.Message message : communication.getMessages()) {\n System.out.println(\"[Message]\");\n System.out.println(\"sender: \" + message.getUserName() + \" (https://anidex.info/user/\" + message.getUserId() + \")\");\n System.out.println(\"avatar: \" + message.getAvatarUrl());\n System.out.println(\"date: \" + message.getDate());\n System.out.println(\"message: \" + message.getComment());\n System.out.println();\n }\n }", "public List<message> getList() {\n return chats;\n }", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public List<Messages> getAll(){\n\treturn messageRepository.getAll();\n }", "@Transactional\n\tpublic List<Channel> listAllChannel() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<Channel> criteriaQuery = builder.createQuery(Channel.class);\n\t\tRoot<Channel> root = criteriaQuery.from(Channel.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<Channel> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}", "public void getCommnentList() {\n String urlData = \"\";\n HashMap<String, String> param = new HashMap<String, String>();\n param.put(\"max\", \"\" + MyApplication.Max_post_per_page);\n param.put(\"page\", \"0\");\n if (PostType.equalsIgnoreCase(\"ads\")) {\n urlData = \"ads/\" + postId + \"/get-comments\";\n } else {\n urlData = \"feeds/\" + postId + \"/get-comments\";\n }\n APIHandler.Instance().POST_BY_AUTHEN(urlData, param, new APIHandler.RequestComplete() {\n @Override\n public void onRequestComplete(final int code, final String response) {\n LiveVideoPlayerActivity.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n try {\n JSONObject mJsonObject = new JSONObject(response);\n int codeServer = mJsonObject.getInt(\"code\");\n if (codeServer == 1) {\n JSONArray msg = mJsonObject.getJSONArray(\"msg\");\n for (int index = 0; index < msg.length(); index++) {\n JSONObject mObject = msg.getJSONObject(index);\n CommentList mCategoryList = new CommentList();\n mCategoryList.setID(mObject.getString(\"ID\"));\n mCategoryList.setCreatedAt(mObject.getString(\"CreatedAt\"));\n mCategoryList.setUserId(mObject.getString(\"UserId\"));\n mCategoryList.setPostId(mObject.getString(\"PostId\"));\n mCategoryList.setContent(mObject.getString(\"Content\"));\n mCategoryList.setUserNmae(mObject.getString(\"UserName\"));\n mCategoryList.setUserPic(mObject.getString(\"AvatarUrl\"));\n mCommentslistAdapter.addnewItem(mCategoryList);\n\n }\n }\n\n } catch (Exception e) {\n PopupAPI.make(mContext, \"Error\", \"Can't connect to server\");\n\n }\n\n }\n });\n\n\n }\n });\n\n }", "public MutableLiveData<List<ContentData>> getContentDataList() {\n return contentDataRepository.getContentDataList();\n }", "@Override\n public List<DiscussionFollower> findAll() {\n return (List<DiscussionFollower>) discussionFollowerRepository.findAll();\n }", "private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user.getParseID());\n//\t\t\tq.whereContainedIn(\"sender\", al);\n//\t\t}\n//\t\telse {\n\t\t\t// load only newly received message..\n\t\t\tif (lastMsgDate != null)\n\t\t\t\t// Load only new messages, that weren't send by me\n\t\t\t\tq.whereGreaterThan(Const.COL_MESSAGE_CREATED_AT, lastMsgDate);\n\t\t\t\tq.whereNotEqualTo(Const.COL_MESSAGE_SENDER_ID, MainActivity.user.getParseID());\n\t\t}\n\t\tq.orderByDescending(Const.COL_MESSAGE_CREATED_AT);\n\t\tq.setLimit(100);\n\t\tq.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> li, ParseException e) {\n\t\t\t\tif (li != null && li.size() > 0) {\n\t\t\t\t\tfor (int i = li.size() - 1; i >= 0; i--) {\n\t\t\t\t\t\tParseObject po = li.get(i);\n\n\t\t\t\t\t\tMessage message = new Message(po.getString(\n\t\t\t\t\t\t\t\tConst.COL_MESSAGE_CONTENT),\n\t\t\t\t\t\t\t\tpo.getCreatedAt(),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_ID),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_NAME));\n\n\t\t\t\t\t\tmessage.setStatus(MessageStatus.STATUS_SENT);\n\t\t\t\t\t\tmessagesList.add(message);\n\n\t\t\t\t\t\tif (lastMsgDate == null || lastMsgDate.before(message.getDate())) {\n\t\t\t\t\t\t\tlastMsgDate = message.getDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (isRunning)\n\t\t\t\t\t\t\tloadConversationList();\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<ConferenceDTO> findAll() {\n log.debug(\"Request to get all Conferences\");\n return conferenceRepository.findAll().stream()\n .map(conferenceMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\tpublic List<Meeting> getAllMettingList() {\n\t\treturn (List<Meeting>) meetingRepository.findAll();\n\t}", "public List<Comment> getComments() {\n fetchComments();\n return Collections.unmodifiableList(comments);\n }", "public List<Chatroom> getAllChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findAll();\n\n\t\treturn chatrooms;\n\t}", "@Override\r\n\tpublic List<News> findAllNews() {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<News> newsList = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"select * from news\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\tnewsList = new ArrayList<>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tNews aNews = new News();\r\n\t\t\t\taNews.setId(rs.getInt(1));\r\n\t\t\t\taNews.setTitle(rs.getString(2));\r\n\t\t\t\taNews.setContent(rs.getString(\"content\"));\r\n\t\t\t\taNews.setCreateTime(rs.getDate(\"createTime\"));\r\n\t\t\t\taNews.setFk_topic_id(rs.getInt(\"fk_topic_id\"));\r\n\t\t\t\t\r\n\t\t\t\tnewsList.add(aNews);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSimpleDBUtil.closeAll(rs, pstmt, conn);\r\n\t\t}\r\n\t\t\r\n\t\treturn newsList;\r\n\t}", "List<Comments> selectAll();", "public List <Messaggio> findAll() {\n return em.createNamedQuery(\"Messaggio.findAll\").getResultList();\n }", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public List<Message> getAll() {\n return messageRepository.getAll();\n }", "List<Chat> getChats() throws CantGetChatException;", "List<FAQModel> getFAQs();", "List<CommunityInform> selectAll();", "@Override\n\tpublic List<Message> findAll() {\n\t\treturn msgdao.findAll();\n\t}", "@Override\n public List<NutricionistComment> findAllComments() {\n return nutricionistCommentDAO.findAllComments();\n }", "public VcmsDiscussion create(java.lang.String discussionId);", "List<Comment> getComments(long mediaId);", "public Medium[] getDiscs() {\n Session session = getSessionFactory().openSession();\n session.beginTransaction();\n List<Disc> discList = session.createQuery(\"from Disc\", Disc.class).list();\n session.getTransaction().commit();\n session.close();\n return discList.toArray(new Medium[discList.size()]);\n }", "@GetMapping(value= \"/comment/\")\n\tpublic List<Comment> getAll() {\n\t\tlogger.debug(\"Getting all comments.\");\n\t\treturn service.getAllComments();\n\t}", "@GetMapping(\"/chat-messages\")\n @Timed\n public List<ChatMessage> getAllChatMessages() {\n log.debug(\"REST request to get all ChatMessages\");\n return chatMessageRepository.findAll();\n }", "Collection getCommunities();", "public ReactorResult<java.lang.String> getAllComments_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), COMMENTS, java.lang.String.class);\r\n\t}", "public IDiscussionTopicList getAttachedDiscussionTopics(boolean edit)\n throws OculusException;", "public List<Message> getMessageAll(){\n return repo.findAll();\n \n }", "public List<CommentsEntity> getAllComments(){\n\t\tfinal List<CommentsEntity> comments = entityManager.createQuery(\"SELECT comments FROM CommentsEntity comments\", CommentsEntity.class)\n\t\t\t\t.getResultList();\n\t\tSystem.out.println(\"[REPO] Found comments query success\");\n\t\treturn comments;\n\t}", "@SuppressWarnings(\"unchecked\")\n public synchronized ObjectSet<BoardThreadLink> getThreads() {\n \tfinal Query q = mDB.query();\n \tq.constrain(BoardThreadLink.class);\n \tq.descend(\"mBoard\").constrain(SubscribedBoard.this).identity(); // TODO: Benchmark whether switching the order of those two constrains makes it faster.\n \tq.descend(\"mLastReplyDate\").orderDescending();\n \treturn new Persistent.InitializingObjectSet<BoardThreadLink>(mFreetalk, q.execute());\n }", "@Override\n public List<Message> getMessages() {\n return (List<Message>) messageRepository.findAll();\n }", "public IDiscussionTopicList getAttachedDiscussionTopics(IDataSet args)\n throws OculusException;", "public List<ChatPanel> getChats()\n {\n java.awt.Container container\n = (getChatTabCount() > 0) ? chatTabbedPane : mainPanel;\n int componentCount = container.getComponentCount();\n List<ChatPanel> chatPanels\n = new ArrayList<ChatPanel>(componentCount);\n\n for (int i = 0; i < componentCount; i++)\n {\n Component c = container.getComponent(i);\n\n if (c instanceof ChatPanel)\n chatPanels.add((ChatPanel) c);\n }\n return chatPanels;\n }", "public List<ContestDTO> getContests() {\r\n return contests;\r\n }", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "@Override\r\n\tpublic List<Comment> findAllComment() {\n\t\treturn commentDao.findAllComment();\r\n\t}", "public List<Cvchannel> findAllCvchannels();", "@Override\n\tpublic List<Forum> getForums(String categoryId, String strQuery)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "List<Comment> findAll();", "@RequestMapping(\"/comments\")\n public List<CommentDTO> getAllComments() {\n return commentService.getAllComments();\n }", "public List<Document> getCampaigns() {\n\n // Get all the campaigns\n FindIterable<Document> findIterable = campaignCollection.find();\n MongoCursor<Document> mongoCursor = findIterable.iterator();\n\n List<Document> campaigns = new ArrayList<>();\n while (mongoCursor.hasNext()) {\n campaigns.add(mongoCursor.next());\n }\n\n return campaigns;\n }", "public List<Conference> getConferences() {\r\n\t\treturn new ArrayList<Conference>(conferences);\r\n\t}", "public MutableLiveData<List<FAQsDataModel>> getFAQs() {\n setFAQs();\n MutableLiveData<List<FAQsDataModel>> data = new MutableLiveData<>();\n data.setValue(mFAQs);\n\n return data;\n }", "@GetMapping(value=\"/getAll\")\n\tpublic List<Question> getAll(){\n\t\tLOGGER.info(\"Viewing all questions\");\n\t\treturn questionObj.viewAllQuestions();\n\t}", "@Override\n public List<Clip> findAll() {\n return fillList(logsCollection.find());\n }", "public static List<FAQ> all(){\n\t\tList<FAQ> faqs = find.findList();\n\t\treturn faqs;\n\t}", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "List<Video> getAll();", "public List<Coach> findAll() {\n\t\treturn list(namedQuery(\"de.hummelflug.clubapp.server.core.Coach.findAll\"));\n\t}", "@Override\r\n public List<Post> findAll() {\r\n List<Post> posts = new ArrayList<>();\r\n List<Map<String, Object>> rows = jdbcOp.queryForList(SQL_SELECT_ALL_TICKET);\r\n\r\n for (Map<String, Object> row : rows) {\r\n Post post = new Post();\r\n \r\n int id = (int)row.get(\"id\");\r\n post.setId(id); \r\n \r\n String customername = (String)row.get(\"customername\");\r\n post.setCustomerName(customername); \r\n \r\n String subject = (String)row.get(\"subject\");\r\n post.setSubject(subject);\r\n \r\n String body = (String)row.get(\"body\");\r\n post.setBody(body);\r\n \r\n String categories = (String)row.get(\"categories\");\r\n post.setCategories(categories);\r\n \r\n posts.add(post);\r\n }\r\n return posts;\r\n }", "java.lang.String getLinkToDiscussion();", "@RequestMapping(\"/comment\")\n public List<Comment> gettAllComments() {\n return commentService.getAllComments();\n }", "public List<Message> getChatList(String boardId) {\n\t\tConnection conn = getConnection();\n\t\tList<Message> list = cd.getChatList(conn, boardId);\n\t\tclose(conn);\n\t\treturn list;\n\t}", "VideosClient getVideos();", "private void getMyCommunities()\n {\n progressBar.setVisibility(View.VISIBLE);\n controller.getMyCommunities(new AuthenticationAPIController(this).getTokken()\n , new GetCommunitiesCallback()\n {\n @Override\n public void success(List<Community> communityList)\n {\n progressBar.setVisibility(View.GONE);\n\n // show the communities in the fragment\n textViewMyCommunities.setVisibility(View.VISIBLE);\n if (communitiesListFragment != null)\n communitiesListFragment.setData(communityList);\n }\n\n @Override\n public void fail(String errorMessage)\n {\n progressBar.setVisibility(View.GONE);\n Snackbar.make(content, errorMessage, Snackbar.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public List<Announcement> onLoadInBackground() {\n return databaseLoader.getChannelDBM().getAnnouncements(channelId);\n }", "public List<Comment> getAllComments(long messageId){\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\n\t\treturn new ArrayList<Comment>(comments.values());\n\t\t\n\t}", "private static ArrayList<String> getAllForumPostsReplies(URL url) {\n\n\t\tArrayList<String> replies = new ArrayList<String>();\n\n\t\tString replyHTMLElement = ScrappingHandler.getForum(url).getReply_element();\n\t\tString replyQuoteHTMLElement = ScrappingHandler.getForum(url).getQuote_element();\n\n\t\tif (replyHTMLElement != null && (!replyHTMLElement.equals(\"\"))){\n\t\t\tDocument doc = null;\n\t\t\ttry {\n\t\t\t\tdoc = Jsoup.connect(url.toString()).timeout(10*1000).get(); //set timeout 10s\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"KIndex :: Scrapper.getAllForumPostsReplies() JSOUP Could NOT get url\");\n\t\t\t\tSystem.out.println(\"url: \" + url.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn replies;\n\t\t\t}\n\n\t\t\t//first remove all quotes from doc\n\t\t\tdoc.select(replyQuoteHTMLElement).remove();\n\n\t\t\t//get all replies\n\t\t\tElements posts = doc.select(replyHTMLElement);\n\t\t\t//int i =0;\n\t\t\tfor (Element p : posts) {\n\n\t\t\t\treplies.add(p.text());\n\n\t\t\t}\n\t\t}\n\t\treturn replies;\n\t}", "public Collection<String> getChannels();", "public Iterable<Content> findAllFeaturedContent(){\n\n return contentRepository.findByIsFeatured(true);\n }", "public ArrayList<String> topicConversation()\n\t{\n\t\treturn basicConversations;\n\t}", "public Collection<Medication> getAllMedications() {\n return this.medicationDAO.getAllMedications();\n }", "List<Message> findAll();", "public List<Embarcation> getAllDisponible(){\n\t\tSQLiteDatabase mDb = open();\n\t\tCursor cursor = mDb.rawQuery(\"SELECT * FROM \" + TABLE_NAME +\" WHERE \"+DISPONIBLE+\" = 1\", null);\n\t\t\n\t\tList<Embarcation> resultList = cursorToEmbarcationList(cursor);\n\t\t\n\t\tmDb.close();\n\t\t\n\t\treturn resultList;\n\t}", "@Override\n\tpublic ArrayList<Community> findAll() {\n\t\treturn null;\n\t}" ]
[ "0.7221705", "0.6930019", "0.6925239", "0.6614965", "0.6585758", "0.6330785", "0.58567435", "0.57420594", "0.57308924", "0.5726165", "0.57194126", "0.5646315", "0.56415266", "0.563672", "0.5636104", "0.55612403", "0.5541342", "0.5531661", "0.55198956", "0.5509087", "0.5503824", "0.54552853", "0.5442735", "0.5431663", "0.54261345", "0.54068494", "0.53756946", "0.53425455", "0.5308409", "0.53003496", "0.5298228", "0.5286964", "0.52606463", "0.52478904", "0.5245197", "0.5243251", "0.52344954", "0.5226728", "0.5226191", "0.52031", "0.51973087", "0.51639664", "0.5162325", "0.5158979", "0.51569164", "0.5147206", "0.51251024", "0.51248604", "0.5124281", "0.5122378", "0.51139855", "0.5109044", "0.5105332", "0.5105147", "0.50990397", "0.50987893", "0.5090914", "0.50908923", "0.5090404", "0.5069649", "0.50592804", "0.5047377", "0.50400865", "0.5031122", "0.5025033", "0.502418", "0.50199205", "0.50151753", "0.50150394", "0.5011702", "0.501002", "0.5002015", "0.49934646", "0.49858359", "0.49728313", "0.4972624", "0.49717146", "0.49703166", "0.49641857", "0.49614167", "0.49610177", "0.49593532", "0.49576208", "0.49565715", "0.4954276", "0.49502847", "0.49468943", "0.49363613", "0.49338838", "0.4926833", "0.49157467", "0.49104318", "0.49092603", "0.49081358", "0.49080926", "0.4906524", "0.49054497", "0.49053404", "0.4902455", "0.49006885" ]
0.8402623
0
Removes all the vcms discussions from the database.
public void removeAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findAll();", "@Override\r\n\t@Transactional\r\n\tpublic void deleteAll() {\n\t\ttopicContentDao.deleteAll();\r\n\t}", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "@Before\n public void cleanConversations() {\n restController.deleteAllConvoMsgsForBlog(MAIN_BLOG_NAME);\n restController.deleteAllConversationsForBlog(MAIN_BLOG_NAME);\n }", "private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }", "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "void deleteAllChallenges();", "public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "@Query(\"DELETE FROM issue_table\")\n void deleteAll();", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public void deleteAll() {\n repository.deleteAll();\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }", "private void clearAllDatabases()\n\t{\n\t\tdb.clear();\n\t\tstudent_db.clear();\n\t}", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}", "public void deleteAllArticles();", "public void clearDatabase() {\n\t\tstudentRepository.deleteAll();\n\t}", "public void deleteAll() {\n new Thread(new DeleteAllRunnable(dao)).start();\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "public void clean() {\n\t\tserver.clearPersistentData();\n\t\t_offlineMessages.clear();\n\t\t_onlineClients.clear();\n\t\t_clientFriends.clear();\n\t}", "public void delete() {\r\n\t\tfor (int i = 0; i <= DatabaseUniverse.getDatabaseNumber(); i++) {\r\n\t\t\tif (this.equals(DatabaseUniverse.getDatabases(i))) {\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().set(i, null);\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().remove(i);\r\n\t\t\t\tDatabaseUniverse.setDatabaseNumber(-1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Boolean deleteAllDraftMessage() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM drafts\");\r\n\t\t\t//Log.d(\"DRAFT DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"DRAFT DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "public void deleteMessages() {\n\t\tmessageDAO.modifyMessageList(currentContact.getMsgId(), new LinkedList<Mensaje>());\n\t\tcurrentContact.removeMessages();\n\t\tcontactDAO.modifyContact(currentContact);\n\t\t// Groups share the message list, only single contacts has to be updated\n\t\tif (currentContact instanceof ContactoIndividual) {\n\t\t\tUsuario user = userCatalog.getUser(currentContact.getUserId());\n\t\t\tOptional<Contacto> result = user.getContacts().stream().filter(c -> c.getUserId() == currentUser.getId())\n\t\t\t\t\t.findFirst();\n\t\t\tif (!result.isPresent())\n\t\t\t\treturn;\n\t\t\tmessageDAO.modifyMessageList(result.get().getMsgId(), new LinkedList<Mensaje>());\n\t\t\tresult.get().removeMessages();\n\t\t\tcontactDAO.modifyContact(result.get());\n\t\t}\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}", "public void deleteAllRepeaters() {\n new DeleteAllRepeatersAsyncTask(repeaterDao).execute();\n }", "public void removeAllData() {\n dbHelper.removeAllData(db);\n }", "public void clearRealmCollection() {\n if (mRvHistoryAdapter.getData() != null) {\n mRealm.beginTransaction();\n for (TranslationInfo translationInfo : mRvHistoryAdapter.getData()) {\n translationInfo.getTranslation().deleteFromRealm();\n translationInfo.getDictionary().getDefinitionsList().deleteAllFromRealm();\n translationInfo.getDictionary().deleteFromRealm();\n }\n mRvHistoryAdapter.getData().deleteAllFromRealm();\n mRealm.commitTransaction();\n }\n }", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "@Transactional\r\n\tpublic void deleteAllBlogs() {\n\t\tsessionFactory.getCurrentSession().delete(getClass());\r\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (TvShow tvShow : findAll()) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}", "private void cleanDB() {\n // the database will contain a maximum of MAX_DB_SIZE wallpapers (default N=50)\n // when the db gets bigger then N, the oldest wallpapers are deleted from the database\n // the user will set if he wants to delete also the wallpaper or the database entry only\n if (maxDbSize != -1 && getOldWallpapersID().size() > maxDbSize) {\n try (ResultSet rs = db.executeQuery(\"SELECT wp FROM WALLPAPERS ORDER BY date FETCH FIRST 20 PERCENT ROWS ONLY\")) {\n while (!keepWallpapers && rs.next()) {\n Wallpaper wp = (Wallpaper) rs.getObject(\"wp\");\n log.log(Level.FINEST, wp::toString);\n log.log(Level.FINE, () -> \"Cleaning of DB, removing \" + wp.getID());\n\n new File(wp.getPath()).delete();\n }\n db.executeUpdate(\"DELETE FROM WALLPAPERS WHERE id IN (SELECT id FROM WALLPAPERS ORDER BY date fetch FIRST 20 PERCENT rows only)\");\n\n } catch (SQLException throwables) {\n log.log(Level.WARNING, \"Query Error in cleanDB()\");\n log.log(Level.FINEST, throwables.getMessage());\n }\n }\n }", "public void clearDatabase();", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "public void deleteAll();", "public void deleteAll();", "public void deleteAll();", "@Override\n\tpublic void removeAll() {\n\t\tfor (Answer answer : findAll()) {\n\t\t\tremove(answer);\n\t\t}\n\t}", "public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "public void deleteAllCards()\n\t{\n\t\tcards.clear();\n\t\t\n\t\t// Update the views\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "public static void cleanUpChannels() {\n for (ChatChannel channel : ChatManager.channels.values())\n if (channel.getLastActivity() + ChatManager.CHANNEL_LIFETIME < System.currentTimeMillis())\n ChatManager.channels.remove(channel.getName());\n\n }", "void clearPersistentNotifications();", "public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }", "public static void removeAll() {\n\t\t\n\t\tif(notificationsView != null) {\n\t\t\tComponent[] notifications = notificationsView.getComponents();\n\t\t\tfor(Component notification : notifications) {\n\t\t\t\tNotification n = (Notification) notification;\n\t\t\t\tif(n.expireOnDisconnect)\n\t\t\t\t\tn.removeNow();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}", "public void removeAll() {\n db.delete(TABLE_NAME, null, null);\n Log.d(\"deleteHistoryCS\", \"Remove All HistoryCS\");\n }", "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.DELETE)\n\tpublic void deleteVideos() {\n\t\tassert(videos != null);\n\t\t\n\t\tfor (Video v : videos.values()) {\n\t\t\ttry {\n\t\t\t\tVideoFileManager.get().deleteVideoData(v);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\tvideos.clear();\n\t}", "@Query(\"DELETE FROM note_table\")\n void deleteAllNotes();", "void deleteAllCommentsOfProject(int projectId) throws SQLException;", "public void cleanToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"CLEAN\",null));\n\t\t}\n\t}", "public final void clean() {\n distributed_graph.unpersist(true);\n }", "public void clearCollection() {\n\t\tMongoDatabase db = mongoClient.getDatabase(MongoActions.props.getDBName());\n\t\tMongoCollection<Document> table = db.getCollection(MongoActions.props.getCollectionName());\n\t\ttable.drop();\n\t}", "private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "@Override\n\tpublic void removeAll() {\n\t\tfor (Category category : findAll()) {\n\t\t\tremove(category);\n\t\t}\n\t}", "public void deleteAllLog()\n\t{\n\t\tchatLog.clear();\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\r\n\tpublic void removeAll() {\r\n\t\tfor (Share share : findAll()) {\r\n\t\t\tremove(share);\r\n\t\t}\r\n\t}", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void clearAllConnections() {\r\n clearAllConnections(false);\r\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }", "private void deletePosts(DBCollection collection, int number) {\n\t\tList<DBObject> list = collection.find(QueryBuilder.start(\"target.messageID\").is(\"\").get()).sort(MongoUtils.reverseSort).limit(number).toArray();\n\t\t\n\t\t\n\t\tfor (DBObject obj : list) {\n\t\t\tMongoMethods.deletePost(collection, obj.get(\"_id\").toString());\n\t\t}\n\t}", "public void deleteAll() {\n\t\t\n\t}", "public boolean deleteAllMessages() throws SQLException{\n boolean areDeleted;\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n areDeleted= database.delete(\"Message\", null, null)>0;\n\n dbH.close();\n return areDeleted;\n\n }", "@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}", "public void deleteAll() {\n\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\r\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}" ]
[ "0.61181843", "0.60223544", "0.60021836", "0.5842919", "0.5811047", "0.58051693", "0.5733881", "0.56736994", "0.5627353", "0.5564458", "0.55644464", "0.55008936", "0.54906577", "0.54906577", "0.54906577", "0.54906577", "0.54906577", "0.54906577", "0.54906577", "0.54906577", "0.54906577", "0.54906577", "0.54460365", "0.54264814", "0.54250234", "0.541696", "0.53899026", "0.53578544", "0.5353196", "0.53511125", "0.53373206", "0.532001", "0.53121454", "0.53059447", "0.5286949", "0.52865714", "0.526113", "0.5250971", "0.5238428", "0.52366257", "0.52244586", "0.52214414", "0.52074987", "0.52009976", "0.5196598", "0.51881117", "0.5183986", "0.5182368", "0.5165971", "0.51646566", "0.5148025", "0.5148025", "0.5148025", "0.5148025", "0.5147667", "0.5147667", "0.5147667", "0.5144908", "0.51417047", "0.51265013", "0.51264787", "0.5120744", "0.5116073", "0.5115771", "0.5091845", "0.5076014", "0.5071606", "0.5057914", "0.5049625", "0.5033457", "0.5032096", "0.5027795", "0.50269896", "0.5026481", "0.50261515", "0.502431", "0.501264", "0.50093883", "0.50093883", "0.50093883", "0.50043756", "0.49816832", "0.49816656", "0.49756253", "0.49756253", "0.49756253", "0.49756253", "0.49756253", "0.49756253", "0.49756253", "0.4975567", "0.49741143", "0.49700084", "0.49649754", "0.49625745", "0.4955504", "0.49538207", "0.49538207", "0.49538207", "0.49538207", "0.49538207" ]
0.0
-1
Returns the number of vcms discussions.
public int countAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCountForum();", "public int getNumAnnouncements(){\n return message.length;\n }", "@Override\n\tpublic int getVcmsPortionsCount() {\n\t\treturn _vcmsPortionLocalService.getVcmsPortionsCount();\n\t}", "int commentsCount();", "int postsCount();", "public int getCommentsCount() {\n return instance.getCommentsCount();\n }", "public long count() {\n return getDevStudioRepository().count();\n }", "public Integer getNumCompetitions() {\r\n return numCompetitions;\r\n }", "int getViewsCount();", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public synchronized int messageCount() {\n \tfinal Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this).identity();\n return q.execute().size();\n }", "public Integer getCommentCount() {\n return commentCount;\n }", "public int getChannelCount();", "public static int getNbCycle() {\n\t\treturn nbCycle;\n\t}", "int getChannelStatisticsCount();", "int getParticipantsCount();", "int getParticipantsCount();", "public int getCount() {\n\t\treturn channelCountMapper.getCount();\n\t}", "int getChannelsCount();", "public int getCommentCount() {\n return commentCount;\n }", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "public int getAllCount(){\r\n\t\tString sql=\"select count(*) from board_notice\";\r\n\t\tint result=0;\r\n\t\tConnection conn=null;\r\n\t\tStatement stmt=null;\r\n\t\tResultSet rs=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tstmt=conn.createStatement();\r\n\t\t\trs=stmt.executeQuery(sql);\r\n\t\t\trs.next();\r\n\t\t\tresult=rs.getInt(1);\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, stmt, rs);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public long getCommentCount() {\n return comments;\n }", "public boolean hasMoreDiscussions();", "@Override\n\tpublic int getVideoCommentCount(long vid) {\n\t\treturn 0;\n\t}", "public java.util.List<VcmsDiscussion> findAll();", "int getPeerCount();", "int getNumberOfQuestions();", "public int getNumberOfCommenters(){\n return commenters.size();\n }", "public int numComments() {\n return this.comments.size();\n }", "public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "public int getCommentsCount() {\n return commentsCount_;\n }", "int getDocumentCount();", "public Short getCommentCount() {\n return commentCount;\n }", "public int getParticipantsCount()\n {\n return participants.size();\n }", "int getNewsindentifydetailCount();", "public int getProblemCount();", "public int getVcCount() {\n if (vcBuilder_ == null) {\n return vc_.size();\n } else {\n return vcBuilder_.getCount();\n }\n }", "public int getChannelCount() {\n return channelCount;\n }", "int getNumberOfAllQuestions();", "public int getVdusCount() {\n if (vdusBuilder_ == null) {\n return vdus_.size();\n } else {\n return vdusBuilder_.getCount();\n }\n }", "public static int getAnnouncementsCount()\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnnouncementsCount();\n }", "public AsyncResult<Integer> requestNumberOfMessages() {\r\n ServiceDiscoveryManager serviceDiscoveryManager = xmppSession.getManager(ServiceDiscoveryManager.class);\r\n return serviceDiscoveryManager.discoverInformation(null, OfflineMessage.NAMESPACE).thenApply(infoDiscovery -> {\r\n if (!infoDiscovery.getExtensions().isEmpty()) {\r\n DataForm dataForm = infoDiscovery.getExtensions().get(0);\r\n if (dataForm != null) {\r\n for (DataForm.Field field : dataForm.getFields()) {\r\n if (\"number_of_messages\".equals(field.getVar())) {\r\n String numberOfMessages = field.getValues().get(0);\r\n return Integer.valueOf(numberOfMessages);\r\n }\r\n }\r\n }\r\n }\r\n return 0;\r\n });\r\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "int getConnectionsCount();", "public int getProblemCount() {\n return problems.size();\n }", "int getVersionsCount();", "int getExperimentsCount();", "int getNoticeListCount();", "public int getNumberOfSlides();", "Integer getConnectorCount();", "public int getCount(){\r\n\t\tif(_serverinfo != null){\r\n\t\t\treturn _serverinfo.length / 6;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public int getChannelCount() {\n if (channelBuilder_ == null) {\n return channel_.size();\n } else {\n return channelBuilder_.getCount();\n }\n }", "int getLinksCount();", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public int getMMSCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getMMSCount() MMSCount: \" + _mmsCount);\r\n\t\treturn _mmsCount;\r\n\t}", "int getMsgCount();", "int getMsgCount();", "@Query(\"select count(r) from Reply r group by r.comment\")\n\tCollection<Double> dashboardRepliesPerComment();", "public long getMembershipsCount() {\r\n return membershipsCount;\r\n }", "public int getChannelCount() {\n return channel_.size();\n }", "int getVulnerabilityReportsCount();", "public int getTotalMessageCount(){\n Query query = new Query(\"Message\");\n Query query2 = new Query(\"Question\");\n PreparedQuery results = datastore.prepare(query);\n PreparedQuery results2 = datastore.prepare(query2);\n return results.countEntities(FetchOptions.Builder.withLimit(1000)) + results2.countEntities(FetchOptions.Builder.withLimit(1000));\n}", "public Integer getMessageCount() {\r\n return messageCount;\r\n }", "public int getNumberOfPosts() throws DatabaseException;", "public int getChatCount()\n {\n return chatCount;\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public static int count(){\n return getVideoRequestCount;\n }", "public int getCount() {\n return this.chatMessageList.size();\n }", "public int getNumberOfPostOnBlog(){\n List<BlogPost>blogs = blogPostFacade.findAll();\n int k=0;\n for(BlogPost temp: blogs){\n if(temp.getBlog().getId().equals(blogPost.getBlog().getId())){\n k++;\n System.out.println(\"Mes \"+temp.getMessage());\n }\n \n }\n return k ;\n }", "int getContentsCount();", "public int getCalendarCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getCalendarCount() CalendarCount: \" + _calendarCount);\r\n\t\treturn _calendarCount;\r\n\t}", "public int getCount() {\n return sync.getCount();\n }", "@Override\n\tpublic int countNews() {\n\t\treturn comNewsMapper.selectCountNews();\n\t}", "static long reviewCount(Context context) {\n SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context);\n return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW);\n }", "public int get_count();", "public int getMediaCount() {\n return instance.getMediaCount();\n }", "public int getMessagesCount() {\n return messages_.size();\n }", "int getSessionCount();", "public int getNoOfTickets() {\n\t\treturn noOfTickets;\r\n\t}", "public int getVcCount() {\n return vc_.size();\n }", "int getNumberOfSlides(){\n return slides.size();\n }", "long countByExample(DiscussExample example);", "public int getNumQuestions() {\n\t\treturn noOfQuestions;\n\t}", "public int getMessagesCount() {\n return messages_.size();\n }", "public int getVdusCount() {\n return vdus_.size();\n }", "public int numberOfOpenSites() {\n return count;\n }", "public @UInt32 int getChannelCount();", "public int numCiudades() {\r\n \r\n return ciudades.size();\r\n }", "public String getNotificationCount() {\n\t\treturn element(\"li_notificationCount\").getText();\n\t}", "public int getMessageListCount() {\n\t\t\tint rowcount = 0;\n\t\t\ttry {\n\t\t\t\tconn = ds.getConnection();\n\t\t\t\tpstmt = conn.prepareStatement(\"select count(*) from Message\");\n\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\tif (rs.next()) {\n\t\t\t\t\trowcount = rs.getInt(1);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\trs.close();\n\t\t\t\t} catch (SQLException s) {\n\t\t\t\t\ts.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tpstmt.close();\n\t\t\t\t} catch (SQLException s) {\n\t\t\t\t\ts.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException s) {\n\t\t\t\t\ts.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn rowcount;\n\t\t}", "public int getNumberOfComments(ExoSocialActivity existingActivity);" ]
[ "0.64734334", "0.6333035", "0.6176298", "0.6129304", "0.6101636", "0.6099377", "0.6037972", "0.59954035", "0.598834", "0.5964106", "0.5964106", "0.5964106", "0.595414", "0.58765733", "0.58712304", "0.5867028", "0.58604896", "0.58564204", "0.58564204", "0.5849924", "0.5826265", "0.58177394", "0.58065164", "0.5800585", "0.57900214", "0.57830244", "0.5782241", "0.5772988", "0.5766743", "0.57507074", "0.57504845", "0.5739667", "0.57326293", "0.57249534", "0.5724423", "0.5722983", "0.57225716", "0.57174057", "0.5713851", "0.5713258", "0.5707537", "0.57065916", "0.57062083", "0.56979", "0.5690906", "0.568177", "0.567811", "0.567811", "0.5670352", "0.5668724", "0.56684893", "0.566827", "0.56661165", "0.5655359", "0.56546533", "0.5653951", "0.5646798", "0.5644604", "0.5643688", "0.5641083", "0.56406134", "0.56406134", "0.56290144", "0.56283", "0.5621416", "0.562138", "0.5620327", "0.56202936", "0.56181145", "0.5617299", "0.56124353", "0.56124353", "0.56124353", "0.56124353", "0.56124353", "0.5605485", "0.5600573", "0.5587589", "0.5586233", "0.5584348", "0.55837905", "0.5572486", "0.5569515", "0.55418456", "0.5539458", "0.55324465", "0.5530275", "0.5523767", "0.551908", "0.55163276", "0.5513114", "0.55100685", "0.55068064", "0.548555", "0.5484285", "0.5483212", "0.54686445", "0.5468579", "0.5467864", "0.54547006", "0.5452422" ]
0.0
-1
/ A global name is always defined via a string
public Global(String globalName, Subscript ...subscripts) { this.globalName=globalName; this.subscripts=subscripts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isGlobalVariable(String string) {\n\t\treturn string.charAt(0) == '@';\n\t}", "public static void addGlobal(String s, Ident i) {\n\t\t\tglobaux.put(s, i);\n\t\t}", "String getVarName();", "String getVarName();", "String getVarName();", "String getVarName(String name);", "String constant();", "public void setGlobal(String name, Object value) {\n Preconditions.checkNotNull(value, \"Module.setGlobal(%s, null)\", name);\n globals.put(name, value);\n }", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "public interface SiteGlobal {\n\t\tpublic final static String SITE_GLOBAL_CACHE = \"site.global.cache\";\n\t}", "public Object getGlobal(String name) {\n return globals.get(name);\n }", "public interface GlobalKeys {\n\n\tString MESSAGE = \"message\";\n\n\tString PERSON = \"person\";\n\n\tString PERSON_TOKEN = \"personToken\";\n}", "public static String giveMeMyName(){\n return \"Okan\";\n }", "abstract public String named();", "public abstract String getSystemName();", "String getSingletonName();", "public void nameAnalysis(SymTable symTab) {\n SemSym sym = symTab.lookupGlobal(myStrVal);\n if (sym == null) {\n ErrMsg.fatal(myLineNum, myCharNum, \"Undeclared identifier\");\n } else {\n link(sym);\n }\n }", "public void setMainName (String name){\n this.name = name;\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "private boolean putGlobVar(String name){\n if(get(name) != null) return false;\n return globalVariables.putIfAbsent(name, name) == null;\n }", "public abstract String globalInfo();", "private String name(String module)\n {\n return module.split(\"%%\")[1];\n }", "public String getName()\r\n \t{\n \t\treturn (explicit ? (module.length() > 0 ? module + \"`\" : \"\") : \"\")\r\n \t\t\t\t+ name + (old ? \"~\" : \"\"); // NB. No qualifier\r\n \t}", "java.lang.String getInstanceName();", "public static void main(String[] args) {\nfinal String str=\"Hello\";//constant variables CANT BE change;\n// name=\"School\";\n\n\t}", "public static void myName(String mName) {\n System.out.println(mName);\n }", "public void setName(String string) {\n\t\t\n\t}", "@Override\n public String named() {\n return \"soul\";\n }", "public void processGlobalVariable(String name, String value) {\n\t\tif (isGlobalVariable(name)) {\n\t\t\tgraphLayout.getGlobalVariables().put(removeFirstChar(name), value);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Field \" + name\n\t\t\t\t\t+ \" does not have a '@' as prefix. Delete it or add an @.\");\n\t\t}\n\t}", "public void setVarName(String text) {\n\t\tvarName=text;\r\n\t}", "public interface DBName {\n final static String DB = \"menu.db\";\n final static String Coffee = \"Menu\";\n final static String Ade = \"Ade\";\n final static String Basket = \"Basket\";\n final static String OrderList = \"OrderList\";\n}", "private boolean putGlobConst(String name, String value){\n if(get(name) != null) return false;\n return globalConstants.putIfAbsent(name, value) == null;\n }", "public final void setName(final GenericName name) {\n this.value = name.toString();\n final NameSpace scope = name.scope();\n if (scope != null && !scope.isGlobal()) {\n codeSpace = scope.name().toString();\n }\n }", "public static void setName(String n){\n\t\tname = n;\n\t}", "public void setObjectName(java.lang.String param){\n localObjectNameTracker = true;\n \n this.localObjectName=param;\n \n\n }", "protected String myString(){\n \treturn( \"gate \" + name ); \n }", "String getBbgGlobalId();", "public final void setVarName(String varName){\n\t\tthis.varName = varName;\t\n\t}", "public void setBundleName(java.lang.String param){\n localBundleNameTracker = true;\n \n this.localBundleName=param;\n \n\n }", "public boolean isGlobal();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public String getLocallyAccessibleName( String name );", "public static void setNewStatic(String value) {\n }", "public void addModString(String name, String string)\n {\n modules.put(name,string);\n }", "GlobalsType getGlobals();", "public final void DECLARE_NAME(String theName, String className) throws SystemException {\r\n\t\tsynchronized (mYCommandRegistry) {\r\n\t\t\t\r\n\t\t\t// Already named?\r\n\t\t\tif (cachedDefinition != null) {\r\n\t\t\t\tthrow new SystemException(\"This has already been defined.\", SystemException.SYSTEM_COMMAND_ERROR_BAD_DECLARATION, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Is it already in the global registry?\r\n\t\t\tif (mYCommandRegistry.has(theName)) {\r\n\t\t\t\tthrow new SystemException(\"Name already registered.\", SystemException.SYSTEM_COMMAND_ERROR_BAD_DECLARATION, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, theName);\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Make sure the sub was well formed\r\n\t\t\tString me = this.named();\r\n\t\t\tif ( (me==null) || (!me.equals(theName))) {\r\n\t\t\t\tthrow new SystemException(\"Name DECLARED not the same as named.\", SystemException.SYSTEM_COMMAND_ERROR_BAD_DECLARATION, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, theName);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Put this in the global registry and cache a reference to it while we declare.\r\n\t\t\tcachedDefinition = new CommandDefinition();\r\n\t\t\tcachedDefinition.name = theName;\r\n\t\t\tcachedDefinition.className = className;\r\n\t\t\tmYCommandRegistry.register(me,cachedDefinition);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private String getTypeVariableNamePrefix(String string)\r\n {\r\n string = string.trim();\r\n for (String typeVariableName : typeVariableNames)\r\n {\r\n if (string.equals(typeVariableName))\r\n {\r\n return typeVariableName;\r\n }\r\n if (string.startsWith(typeVariableName+\" \"))\r\n {\r\n return typeVariableName;\r\n }\r\n }\r\n return null;\r\n }", "String getName( String name );", "private void sayGlobal(String msg) {\n // Simple way to send msg into the UT2004 chat\n body.getCommunication().sendGlobalTextMessage(msg);\n // And user log as well\n log.info(msg);\n }", "public void setName(String arg0) {\n\t\t\n\t}", "String getConstant();", "@Import(\"name\")\n\tString getName();", "StringConstant createStringConstant();", "public String getSystemName();", "String simpleName();", "interface Game {\n\n // Bank\n String TRANSACTION = \"transaction\";\n\n // Lobby\n String POKE = \"poke\";\n String MEMBER_READY = \"member_ready\";\n }", "public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }", "public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }", "public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }", "public void setNameString(String s) {\n nameString = s;\r\n }", "public void setName(java.lang.String param) {\r\n localNameTracker = true;\r\n\r\n this.localName = param;\r\n\r\n\r\n }", "public String constant() {\n\t\tString tmp = methodBase().replaceAll(\"([a-z])([A-Z])\",\"$1_$2\");\n\t\treturn tmp.toUpperCase();\n\t}", "abstract String name();", "public abstract String getModuleName( );", "String getSymbolicName();", "public void setGlobalVariableValue(java.lang.String globalVariableValue) {\r\n this.globalVariableValue = globalVariableValue;\r\n }", "public String getDefinedName() {\n return definedName;\n }" ]
[ "0.6563476", "0.6496498", "0.6434003", "0.6434003", "0.6434003", "0.62168485", "0.6092727", "0.60270154", "0.6012218", "0.5931627", "0.59106153", "0.5893978", "0.5825605", "0.58208317", "0.5774806", "0.57460546", "0.5669496", "0.56671035", "0.5630326", "0.5616261", "0.5591383", "0.55790263", "0.5577824", "0.5571568", "0.55712503", "0.556945", "0.55660295", "0.5565603", "0.5543127", "0.553886", "0.552968", "0.5524303", "0.55226356", "0.5507922", "0.549629", "0.5487011", "0.54841334", "0.5483137", "0.5478845", "0.5463157", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.54591495", "0.5454774", "0.5453223", "0.54501736", "0.54402757", "0.54402184", "0.5438324", "0.5435214", "0.5433529", "0.54318535", "0.5429544", "0.5428199", "0.5427178", "0.5424314", "0.54203564", "0.5417843", "0.541666", "0.541666", "0.541666", "0.5394056", "0.53736496", "0.53725725", "0.5352559", "0.5352229", "0.534469", "0.5335535", "0.53256595" ]
0.0
-1
/ Unless a entity defines a specific / subscript to use it is assumed that / the entity is one of many that can be stored at / a location / A unique identity node is generated by incrementing / the corresponding index node
protected void NewIdentity() { this.identity=0L; NodeReference nodeRef = getNodeReference(); nodeRef.appendSubscript(0L); nodeRef.appendSubscript("id"); this.identity=nodeRef.increment(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Entity\n\textends Node\n{\n\n\tpublic abstract String getPublicId();\n\n\tpublic abstract String getSystemId();\n\n\tpublic abstract String getNotationName();\n}", "protected synchronized void overrideEntityIndex(String entity, int index) { ent_2_i.put(entity,index); }", "private int getIndex(Entity entity){\n int currentIndex = 0;\n\n for(QuadTree node: this.getNodes()){\n\n /*PhysicsComponent bp = (PhysicsComponent)entity.getProperty(PhysicsComponent.ID);\n if( node.getBounds().contains(bp.getBounds())){\n return currentIndex;\n }*/\n currentIndex++;\n }\n return -1; // Subnode not found (part of the root then)\n }", "void spawnEntityAt(String typeName, int x, int y);", "public long getNodeIndex();", "public int addAsEntity(Entity e, int x, int y) {\n e.setMapRelation(new MapEntity_Relation(this, e, x, y));\n System.out.println(e.name_);\n int error_code = this.map_grid_[y][x].addEntity(e);\n System.out.println(e.name_ + \"2\");\n if (error_code == 0) {\n this.entity_list_.put(e.name_, e);\n } else {\n e.setMapRelation(null);\n System.err.println(\"Error in entity list\");\n }\n return error_code;\n }", "void setEntityInfo(int[] chainIndices, String sequence, String description, String type);", "public void entityReference(String name);", "protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}", "public interface IdentifierIndexIF extends IndexIF {\n \n /**\n * PUBLIC: Returns all the item identifiers of all the objects in the topicmap.\n * @return all the item identifiers of all the objects in the topicmap.\n * @since 5.4.0\n */\n Collection<LocatorIF> getItemIdentifiers();\n\n /**\n * PUBLIC: Returns all the item identifiers of all the objects in the topicmap that start with\n * the provided prefix.\n * @return all the matched item identifiers\n * @since 5.4.0\n */\n Collection<LocatorIF> getItemIdentifiersByPrefix(String prefix);\n \n /**\n * PUBLIC: Returns all the subject identifiers of all the topics in the topicmap.\n * @return all the subject identifiers of all the topics in the topicmap.\n * @since 5.4.0\n */\n Collection<LocatorIF> getSubjectIdentifiers();\n\n /**\n * PUBLIC: Returns all the subject identifiers of all the topics in the topicmap that start with\n * the provided prefix.\n * @return all the matched subject identifiers\n * @since 5.4.0\n */\n Collection<LocatorIF> getSubjectIdentifiersByPrefix(String prefix);\n \n}", "@Override\n\tpublic Object getEntityId() {\n\t\treturn null;\n\t}", "public abstract String getEntityId();", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public interface Entity {\n\n\t/**\n\t * Returns a {@code Long} representing the unique ID of this entity.\n\t *\n\t * @return Returns the unique ID of this Entity as {@code Long}, or {@code null} if this Entity doesn't\n\t * have ID.\n\t */\n\tpublic Long getEntityId();\n\n\t/**\n\t * Change the unique ID of this Entity.\n\t *\n\t * @param id a {@code Long} on {@code null} if doesn't have ID\n\t * @see #getEntityId()\n\t */\n\tpublic void setEntityId(Long id);\n\n}", "private int storeWithUniqueIndices(final SessionWrapper session) {\n\t\tint id=0;\n\t\twhile (id==0) {\n\t\t\ttry {\n\t\t\t\tid=super.store(session);\n\t\t\t}\n\t\t\tcatch (final ConstraintViolationException e) {\n\t\t\t\tthis.index++;\n\t\t\t}\n\t\t\tcatch (final RuntimeException e) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\t\treturn id;\n\t}", "public long getEntityId();", "public abstract Integer getEntity();", "public interface Vertex <E> extends DecorablePosition<E>{}", "public Entity( int x, int y){\n this.x = x;\n this.y = y;\n }", "@Override\n public String getEntId() {\n init();\n return entid;\n }", "public void index(List<Entity> entities) {\n\t\t\n\t}", "public int getEntityId()\r\n/* 25: */ {\r\n/* 26:26 */ return this.entityId;\r\n/* 27: */ }", "NodeId getNodeId();", "public void insert(Entity entity){\n\n //Find the correct node for that object\n int index = this.getIndex(entity);\n if(index != -1){\n // Recursively insert\n this.getNodes().get(index).insert(entity);\n }\n\n //There is no subnode fit for this lets add it to the current node\n this.entities.add(entity);\n\n\n //Now that we have a new node, is the node ok with it?\n if(this.entities.size()> MAX_OBJECTS && this.level < MAX_LEVELS){\n // Nah... We need to split!\n this.split();\n\n // Let's reinsert all the objets in the current node into the right place\n int i = 0;\n while (i < this.entities.size()){\n Entity gObj = this.entities.get(i);\n index = this.getIndex(gObj);\n if(index != -1){\n //WE need to reinsert it in the correct place\n this.entities.remove(gObj);\n this.nodes.get(index).insert(gObj);\n }else{\n i += 1; //To the next gameObject\n }\n }\n }\n }", "void visit(Entity node);", "public void setEntityId(long entityId);", "public int getIndexNumber(){\n return id;\r\n }", "void onItemStored(EntityId storedItem);", "public abstract long getIndex();", "public interface EHR_Entity extends Data_Entity {\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#agent_id\r\n String getAgent_id();\r\n\r\n RDFProperty getAgent_idProperty();\r\n\r\n boolean hasAgent_id();\r\n\r\n void setAgent_id(String newAgent_id);\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#object_ids\r\n Collection getObject_ids();\r\n\r\n RDFProperty getObject_idsProperty();\r\n\r\n boolean hasObject_ids();\r\n\r\n Iterator listObject_ids();\r\n\r\n void addObject_ids(String newObject_ids);\r\n\r\n void removeObject_ids(String oldObject_ids);\r\n\r\n void setObject_ids(Collection newObject_ids);\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#type\r\n String getType();\r\n\r\n RDFProperty getTypeProperty();\r\n\r\n boolean hasType();\r\n\r\n void setType(String newType);\r\n}", "public int getIdentity(){\r\n\t\treturn identity;\r\n\t}", "private void trackPosition(Entity entity, Node node) {\n // TODO = tweak this slightly to remove items from the equipped inventory?\n GridPane.setColumnIndex(node, entity.getX());\n GridPane.setRowIndex(node, entity.getY());\n\n ChangeListener<Number> xListener = new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n GridPane.setColumnIndex(node, newValue.intValue());\n }\n };\n ChangeListener<Number> yListener = new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n GridPane.setRowIndex(node, newValue.intValue());\n }\n };\n\n // if need to remove items from the equipped inventory, add code to remove from\n // equipped inventory gridpane in the .onDetach part\n ListenerHandle handleX = ListenerHandles.createFor(entity.x(), node)\n .onAttach((o, l) -> o.addListener(xListener)).onDetach((o, l) -> {\n o.removeListener(xListener);\n entityImages.remove(node);\n squares.getChildren().remove(node);\n cards.getChildren().remove(node);\n equippedItems.getChildren().remove(node);\n unequippedInventory.getChildren().remove(node);\n }).buildAttached();\n ListenerHandle handleY = ListenerHandles.createFor(entity.y(), node)\n .onAttach((o, l) -> o.addListener(yListener)).onDetach((o, l) -> {\n o.removeListener(yListener);\n entityImages.remove(node);\n squares.getChildren().remove(node);\n cards.getChildren().remove(node);\n equippedItems.getChildren().remove(node);\n unequippedInventory.getChildren().remove(node);\n }).buildAttached();\n handleX.attach();\n handleY.attach();\n\n // this means that if we change boolean property in an entity tracked from here,\n // position will stop being tracked\n // this wont work on character/path entities loaded from loader classes\n entity.shouldExist().addListener(new ChangeListener<Boolean>() {\n @Override\n public void changed(ObservableValue<? extends Boolean> obervable, Boolean oldValue, Boolean newValue) {\n handleX.detach();\n handleY.detach();\n }\n });\n }", "public static void prepareEntityIndex(String entity2idFile) throws FileNotFoundException, IOException {\n\t\t// Read the entity file and create the two indices\n\t\tFileInputStream fstream;\n\t\tfstream = new FileInputStream(entity2idFile);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(fstream));\n\t\tString strLine;\n\n\t\tint x = 0;\n\t\twhile ((strLine = br.readLine()) != null) {\n\t\t\tString entityLabel = strLine.split(\"\\t\")[0];\n\n\t\t\tentity2id.put(entityLabel, x);\n\t\t\tid2entity.put(x, entityLabel);\n\t\t\tentity_num++;\n\t\t\tx++;\n\n\t\t}\n\t\tbr.close();\n\t}", "private void addEntity(String name, int value)\n\t{\n\t\tmap.add(name, value);\n\t}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "void setNode(int nodeId, double lat, double lon, double ele);", "public int getEntityIndex(String type){\n int index=0;\n double closestDist = 0;\n\n for(int i=0; i<entityList.size(); i++) {\n Entity entity = entityList.get(i);\n if (entity.entityType.equals(type)) {\n double dist = entity.getEntityCoordinates().distanceTo(player.getPlayerCoordinates());\n if(dist<closestDist || closestDist==0){\n closestDist = dist;\n index = i;\n }\n }\n }\n return index;\n }", "private int correspondingIndex(ObjectID oid, ObjectID[] id_seq_at_replica)\r\n\t{\n\t\tint iadj;\r\n\t\tfor (iadj = 0; iadj < id_seq_at_replica.length; iadj++)\r\n\t\t\tif (oid.equals(id_seq_at_replica[iadj])) break;\r\n\t\treturn correspondingIndex(oid, id_seq_at_replica, iadj++);\r\n\t}", "@Override\r\n public void visit(Store n, functionStruct fStruct) {\r\n String baseObject = n.f1.f0.toString();\r\n addId(baseObject, fStruct.functionName, fStruct.lineNumber);\r\n //String offsetObject = n.f3.f0.toString();\r\n String storedObject = n.f6.f0.toString();\r\n addId(storedObject, fStruct.functionName, fStruct.lineNumber);\r\n }", "@Override\n protected void addSequences(DbEntity entity) throws DatabaseEngineException {\n }", "int indexOf(@NotNull final Entity entity);", "public abstract int getIndex();", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "@Override\n\tpublic int findIdPosition(Object arg0) {\n\t\treturn 0;\n\t}", "public String getEntityId() {\r\n\t\treturn EngineTools.getEntityId(getEntityKeys()[2]);\r\n\t}", "public void store(final CastorConnection conn, final Identity identity,\r\n final ProposedEntity newentity,\r\n final ProposedEntity oldentity)\r\n throws PersistenceException {\n if (identity.size() != _ids.length) {\r\n throw new PersistenceException(\"Size of identity field mismatched!\");\r\n }\r\n\r\n _storeStatement.executeStatement(conn, identity, newentity, oldentity);\r\n\r\n // Must store values of whole extends hierarchy\r\n if (_extends != null) {\r\n _extends.store(conn, identity, newentity, oldentity);\r\n }\r\n }", "@Override\n public void insert(Sentence sntnc, Attributes atrbts) \n {\n for(Word w: sntnc.getWords())\n {\n int index = w.word.hashCode();\n if(myIndex.get(index) == null)\n {\n myIndex.put(index, new IndexObject(w, atrbts)); \n }\n else\n { \n myIndex.get(index).update(atrbts);\n }\n if(!documentData.containsKey(atrbts.document))\n {\n documentData.put(atrbts.document, 1);\n }\n else\n {\n documentData.put(atrbts.document, documentData.get(atrbts.document) + 1);\n }\n \n }\n }", "@Override\r\n public void store(long key, O object) throws OBException {\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "InstAssignIndex createInstAssignIndex();", "public void faceEntity(int index) {\n this.setFaceIndex(index);\n this.getFlags().flag(Flag.FACE_ENTITY);\n }", "@Test(timeout = 4000)\n public void test203() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n xmlEntityRef0._setComponentId(\":8{<(E\\\"c#X[}eAfV9\");\n assertFalse(xmlEntityRef0._isGeneratedId());\n }", "public void setOnTheMapXY(IEntity entity, int x, int y) {\r\n\t\tthis.map[x][y] = entity;\r\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "protected void writeEntityToNBT(NBTTagCompound paramfn)\r\n/* 115: */ {\r\n/* 116:137 */ super.writeEntityToNBT(paramfn);\r\n/* 117: */ \r\n/* 118:139 */ fv localfv = new fv();\r\n/* 119:141 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 120:142 */ if (this.a[i] != null)\r\n/* 121: */ {\r\n/* 122:143 */ NBTTagCompound localfn = new NBTTagCompound();\r\n/* 123:144 */ localfn.setByte(\"Slot\", (byte)i);\r\n/* 124:145 */ this.a[i].writeToNBT(localfn);\r\n/* 125:146 */ localfv.a(localfn);\r\n/* 126: */ }\r\n/* 127: */ }\r\n/* 128:149 */ paramfn.setNBT(\"Items\", localfv);\r\n/* 129: */ }", "public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}", "public synchronized Identifier getNewIdentifier(String entityName) {\n boolean isToRead = true;\n int identifyValueInt = 0;\n \n if (dbProximity == DB_PROXIMITY_ALWAYS_READ_AND_WRITE) {\n isToRead = true;\n } else {\n Object entityIdObject = idTable.get(entityName);\n if (entityIdObject == null) isToRead = true;\n else {\n de.must.io.Logger.getInstance().debug(getClass(), \"Got Id \" + identifyValueInt + \" from hashtable for \" + entityName);\n identifyValueInt = ((Integer)entityIdObject).intValue();\n isToRead = false;\n }\n }\n\n ResultSet rs = null;\n if (isToRead) try {\n if (selectStatement == null) {\n if (connection.getMetaData().getDatabaseProductName().indexOf(\"Oracle\") > -1) { // dedicated to Oracle CHAR\n selectStatement = connection.prepareStatement(\"select * from \" + idTableName + \" where trim(\" + idEntityColumnName + \") = ?\");\n } else {\n selectStatement = connection.prepareStatement(\"select * from \" + idTableName + \" where \" + idEntityColumnName + \" = ?\");\n }\n }\n selectStatement.setString(1, entityName);\n rs = selectStatement.executeQuery();\n if (rs.next()) {\n mode = UPDATEMODE;\n int identNrInt = rs.getInt(idValueColumnName);\n if (identNrInt > 0) {\n identifyValueInt = identNrInt;\n } else {\n double identNrDouble = rs.getDouble(\"ID_VALUE_COLUMN_NAME\"); // Oracle\n if (identNrDouble > 0) {\n identifyValueInt = (int)identNrDouble;\n } else {\n de.must.io.Logger.getInstance().info(getClass(), \"failed to read IdentNr\");\n }\n }\n de.must.io.Logger.getInstance().debug(getClass(), \"Got Id \" + identifyValueInt + \" from database for \" + entityName);\n }\n else {\n mode = INSERTMODE;\n identifyValueInt = 0;\n }\n }\n catch (SQLException e) {\n de.must.io.Logger.getInstance().info(getClass(), selectStatement);\n de.must.io.Logger.getInstance().error(getClass(), e);\n return null;\n }\n finally {\n if (rs != null) try {\n rs.close();\n } catch (Exception e) {}\n }\n\n identifyValueInt++;\n\n switch (mode) {\n case INSERTMODE:\n if (!insert(identifyValueInt, entityName)) identifyValueInt = ERROR_ID;\n break;\n case UPDATEMODE:\n if (!update(identifyValueInt, entityName)) identifyValueInt = ERROR_ID;\n }\n if (identifyValueInt > 0) idTable.put(entityName, new Integer(identifyValueInt));\n return new Identifier(identifyValueInt);\n }", "@Override\r\n protected Node getStoringNode(Integer key) {\r\n return getNetworkNode();\r\n }", "void addNode(Entity entity) {\n\t\tProcessing.nodeSet.add(entity);\n\t\tSystem.out.println(\"the entity was successfully added to the network.\");\n\t}", "public void addEntity(final Entity aEntity, final int aX, final int aY)\r\n\t{\r\n\t\tif ( !aEntity.isParticle() && mEntities.containsKey(aEntity.getId()))\r\n\t\t{\r\n\t\t\taEntity.init(this, aEntity.getId());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\taEntity.init(this, generateId());\r\n\t\taEntity.setX(aX);\r\n\t\taEntity.setY(aY);\r\n\t\tmAddEntities.put(aEntity.getId(), aEntity);\r\n\t}", "public IdentifierNode getIdentifier()throws ClassCastException;", "public interface NodeItem\n extends EntityItem\n{\n ToIntFunction<LabelItem> GET_LABEL = new ToIntFunction<LabelItem>()\n {\n @Override\n public int apply( LabelItem item )\n {\n return item.getAsInt();\n }\n };\n\n ToIntFunction<IntSupplier> GET_RELATIONSHIP_TYPE = new ToIntFunction<IntSupplier>()\n {\n @Override\n public int apply( IntSupplier item )\n {\n return item.getAsInt();\n }\n };\n\n public abstract class NodeItemHelper\n extends EntityItemHelper\n implements NodeItem\n {\n @Override\n public boolean hasLabel( int labelId )\n {\n try ( Cursor<LabelItem> labelCursor = label( labelId ) )\n {\n return labelCursor.next();\n }\n }\n\n @Override\n public PrimitiveIntIterator getLabels()\n {\n return Cursors.intIterator( labels(), GET_LABEL );\n }\n\n @Override\n public RelationshipIterator getRelationships( Direction direction, int[] relTypes )\n {\n relTypes = deduplicate( relTypes );\n\n return new CursorRelationshipIterator( relationships( direction, relTypes ) );\n }\n\n @Override\n public RelationshipIterator getRelationships( Direction direction )\n {\n return new CursorRelationshipIterator( relationships( direction ) );\n }\n\n @Override\n public PrimitiveIntIterator getRelationshipTypes()\n {\n return Cursors.intIterator( relationshipTypes(), GET_RELATIONSHIP_TYPE );\n }\n\n private static int[] deduplicate( int[] types )\n {\n int unique = 0;\n for ( int i = 0; i < types.length; i++ )\n {\n int type = types[i];\n for ( int j = 0; j < unique; j++ )\n {\n if ( type == types[j] )\n {\n type = -1; // signal that this relationship is not unique\n break; // we will not find more than one conflict\n }\n }\n if ( type != -1 )\n { // this has to be done outside the inner loop, otherwise we'd never accept a single one...\n types[unique++] = types[i];\n }\n }\n if ( unique < types.length )\n {\n types = Arrays.copyOf( types, unique );\n }\n return types;\n }\n }\n\n /**\n * @return label cursor for current node\n * @throws IllegalStateException if no current node is selected\n */\n Cursor<LabelItem> labels();\n\n /**\n * @param labelId for specific label to find\n * @return label cursor for current node\n * @throws IllegalStateException if no current node is selected\n */\n Cursor<LabelItem> label( int labelId );\n\n /**\n * @return relationship cursor for current node\n * @throws IllegalStateException if no current node is selected\n */\n Cursor<RelationshipItem> relationships( Direction direction, int... relTypes );\n\n /**\n * @return relationship cursor for current node\n * @throws IllegalStateException if no current node is selected\n */\n Cursor<RelationshipItem> relationships( Direction direction );\n\n Cursor<IntSupplier> relationshipTypes();\n\n int degree( Direction direction );\n\n int degree( Direction direction, int relType );\n\n Cursor<DegreeItem> degrees();\n\n // Helper methods\n\n boolean hasLabel( int labelId );\n\n PrimitiveIntIterator getLabels();\n\n RelationshipIterator getRelationships( Direction direction, int[] relTypes );\n\n RelationshipIterator getRelationships( Direction direction );\n\n PrimitiveIntIterator getRelationshipTypes();\n}", "protected Entity() {\n UID = GEN_COUNT;\n GEN_COUNT++;\n }", "@Override\n public void forceIncrementModificationCounter(SideDishEntity entity) {\n\n }", "@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}", "int insert(T entity);", "@Override\n public String getFormatEntity() {\n return NameIDType.ENTITY;\n }", "@VTID(10)\n int getIndex();", "public void setEntityId(String entityId) {\n this.entityId = entityId;\n }", "public Id addNodeRint(Coordinate coordIn){//adds a node to the list, returns ID instead of node\n\t\tint i;\n\t\tfloat inx = coordIn.getX();\n\t\tfloat iny = coordIn.getY();\n\t\tfloat inz = coordIn.getZ();\n\t\tNode n = null;\n\t\tfor(i = 0; i < listOfNodes.size(); i++){\n\t\t\tn = listOfNodes.get(i);\n\t\t\tif(n==null) continue;\n\t\t\tfloat ox = n.getCoordinate().getX();\n\t\t\tfloat oy = n.getCoordinate().getY();\n\t\t\tfloat oz = n.getCoordinate().getZ();\n\t\t\tif(inx <= ox + 0.01f && inx >= ox - 0.01f && iny <= oy + 0.01f && iny >= oy - 0.01f && inz <= oz + 0.01f && inz >= oz - 0.01f)break;\n\t\t}\n\t\tif(i < listOfNodes.size()){ // found duplicate\n\t\t\treturn n.getId();\n\t\t}\n\t\tnode_count++;\n\t\tfor(; node_arrayfirstopen < node_arraysize && listOfNodes.get(node_arrayfirstopen) != null; node_arrayfirstopen++);\n\t\tif(node_arrayfirstopen >= node_arraysize){\t//resize\n\t\t\tnode_arraysize = node_arrayfirstopen+1;\n\t\t\tlistOfNodes.ensureCapacity(node_arraysize);\n\t\t\tlistOfNodes.setSize(node_arraysize);\n\t\t}\n\t\tId nid = new Id(node_arrayfirstopen, node_count);\n\t\tn = new Node(coordIn, nid);\n\t\tlistOfNodes.set(node_arrayfirstopen, n);\n\t\tupdateAABBGrow(n.getCoordinate());\n\t\t\n\t\tif(node_arraylasttaken < node_arrayfirstopen) node_arraylasttaken = node_arrayfirstopen; //todo redo\n\t\treturn nid;\n\t}", "public void insertTripleDistributedByObject(Triple triple) {\n\r\n }", "void createIndex(){\n int index=0;\n for(int i=0;i<ancogs.size();i++)\n if(!cogToIndex.containsKey(ancogs.get(i).getValue2()))\n cogToIndex.put(ancogs.get(i).getValue2(), index++);\n}", "private int correspondingIndex(ObjectID oid, ObjectID[] id_seq_at_replica, int start)\r\n\t{\n\t\tint iadj = start;\r\n\t\tint index = -1;\r\n\t\twhile (index == -1) {\r\n\t\t\tindex = indexOf(id_seq_at_replica[iadj++]);\r\n\t\t}\r\n\t\treturn index;\r\n\t}", "public Entity getEntity(int index){\n return entityList.get(index);\n }", "public interface SemanticRegion<T> extends IndexAddressable.IndexAddressableItem, Iterable<SemanticRegion<T>> {\n\n /**\n * Get the data associated with this semantic region.\n *\n * @return\n */\n T key();\n\n /**\n * Get the parent region, if any.\n *\n * @return A region or null\n */\n SemanticRegion<T> parent();\n\n /**\n * Get the outermost ancestor of this region\n *\n * @return A region or null\n */\n SemanticRegion<T> outermost();\n\n default List<SemanticRegion<T>> parents() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n SemanticRegion<T> p = parent();\n while (p != null) {\n result.add(p);\n p = p.parent();\n }\n return result;\n }\n\n /**\n * Get the index of this region relative to its sibling children of its\n * immediate parent, or -1 if no parent.\n *\n * @return The index of this child in its parent's immediate children\n */\n default int childIndex() {\n // XXX this is expensive\n SemanticRegion<T> parent = parent();\n if (parent != null) {\n return parent.children().indexOf(this);\n }\n return -1;\n }\n\n /**\n * Determine if this region has any nested child regions.\n *\n * @return true if there are nested regions\n */\n default boolean hasChildren() {\n return iterator().hasNext();\n }\n\n /**\n * Get all children or childrens' children of this region.\n *\n * @return A list\n */\n default List<SemanticRegion<T>> allChildren() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n result.add(r);\n }\n return result;\n }\n\n /**\n * Get all direct children of this region.\n *\n * @return A list\n */\n default List<SemanticRegion<T>> children() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n if (equals(r.parent())) {\n result.add(r);\n }\n }\n return result;\n }\n\n /**\n * Fetch the keys for this position, in order from shallowest to\n * deepest, into the passed list.\n *\n * @param pos The position\n * @param keys A list of keys\n */\n default void keysAtPoint(int pos, Collection<? super T> keys) {\n if (contains(pos)) {\n keys.add(key());\n for (SemanticRegion<T> child : this) {\n if (child.contains(pos)) {\n keys.add(child.key());\n // child.keysAtPoint(pos, keys);\n }\n }\n }\n }\n\n default void regionsAtPoint(int pos, List<? super SemanticRegion<T>> regions) {\n if (contains(pos)) {\n for (SemanticRegion<T> child : this) {\n if (child.contains(pos)) {\n regions.add(child);\n // child.regionsAtPoint(pos, regions);\n }\n }\n }\n }\n\n @Override\n default boolean contains(int pos) {\n return pos >= start() && pos < end();\n }\n\n /**\n * Get the nesting depth of this region, 0 being outermost.\n *\n * @return The depth\n */\n default int nestingDepth() {\n return 0;\n }\n\n @Override\n default int size() {\n return end() - start();\n }\n\n default int last() {\n return end() - 1;\n }\n\n}", "@Override\n public void visit(Index node) {\n }", "private boolean isUniqueEntity(Entity newEnt, int layerId) {\n for (Entity ent: getList(layerId)){\n if (ent.get_uid().equals(newEnt.get_uid())){\n return false;\n }\n }\n return true;\n }", "@SuppressWarnings(\"unchecked\") @Override public K getIdByEntity(E entity) {\n K id = (K) session.getIdentifier(entity);\n LOG.info(String.format(\"Found id %d for entity %s.\",id, entity));\n return id;\n }", "void addId(II identifier);", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key insertNewKey(int i);", "public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return <code>true</code> if object is successfully inserted in the index, \r\n * <code>false</code> if index was declared as unique and there is already object with such value\r\n * of the key in the index. \r\n */\r\n public boolean put(T obj);\r\n\r\n /**\r\n * Associate new object with the key specified by object field value. \r\n * If there is already object with such key in the index, \r\n * then it will be removed from the index and new value associated with this key.\r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return object previously associated with this key, <code>null</code> if there was no such object\r\n */\r\n public T set(T obj);\r\n\r\n /**\r\n * Assign to the integer indexed field unique autoicremented value and \r\n * insert object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field\r\n * of integer (<code>int</code> or <code>long</code>) type.\r\n * This field is assigned unique value (which will not be reused while \r\n * this index exists) and object is marked as modified.\r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @exception StorageError(StorageError.INCOMPATIBLE_KEY_TYPE) when indexed field\r\n * has type other than <code>int</code> or <code>long</code>\r\n */\r\n public void append(T obj);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T remove(Key key);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T removeKey(Object key);\r\n\r\n /**\r\n * Check if index contains specified object instance.\r\n * @param obj object to be searched in the index. Object should contain indexed field. \r\n * @return <code>true</code> if object is present in the index, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Locate objects with the same value of the key as specified object\r\n * @param obj object specifying search key value\r\n * @return selection iterator\r\n */\r\n public IterableIterator<T> queryByExample(T obj);\r\n\r\n /**\r\n * Get class obejct objects which can be inserted in this index\r\n * @return class specified in Storage.createFielIndex method\r\n */\r\n public Class getIndexedClass();\r\n\r\n /**\r\n * Get fields used as a key\r\n * @return array of index key fields\r\n */\r\n public Field[] getKeyFields();\r\n\r\n /**\r\n * Select members of the collection using search predicate\r\n * This iterator doesn't support remove() method.\r\n * To make it possible to update, remove or add members to the index \r\n * during iteration it is necessary to set \"perst.concurrent.iterator\"\r\n * property (by default it is not supported because it cause extra overhead during iteration)\r\n * @param predicate JSQL condition\r\n * @return iterator through members of the collection matching search condition\r\n */\r\n public IterableIterator<T> select(String predicate);\r\n\r\n /**\r\n * Check if field index is case insensitive\r\n * @return true if index ignore case of string keys\r\n */\r\n boolean isCaseInsensitive(); \r\n}", "@Override\n public void initialize(Object entity) {\n entity.hashCode();\n }", "@Override\n\tpublic String createNode(String type,String name,String time,String loca,String phone, String desc,String axisId ) {\n\t\tNode node = new Node(type, name, time, loca, phone, desc, axisId);\n\t\thibernatedao.insert(null, node);\n\t\treturn node.getId();\n\t}", "public interface EntityTable<T extends Entity> extends Set<T>, Serializable {\n\n\t/**\n\t * Get all Entities stored in this table at a specified location. Note that the members of this Collection\n\t * may change over time. This method makes two guarantees: that at the time of being called, all members of\n\t * this Set with the specified Location will be present in the Collection; and that all future members of the\n\t * Collection will also have that Location.\n\t *\n\t * @param loc the Location to find Entities from\n\t * @return a Collection view of the entities with Location loc\n\t */\n\tSet<T> get(Location loc);\n\n\tstatic <T extends Entity> EntityTable<T> unmodifiable(EntityTable<T> et) {\n\t\treturn new UnmodifiableEntityTable<>(et);\n\t}\n\n\t/**\n\t * Basic wrapper class to prevent external modification\n\t */\n\tclass UnmodifiableEntityTable<E extends Entity> implements EntityTable<E> {\n\n\t\tprivate final EntityTable<E> parent;\n\n\t\tpublic UnmodifiableEntityTable(EntityTable<E> parent) {\n\t\t\tthis.parent = parent;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean add(E e) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic Iterator iterator() {\n\t\t\treturn parent.iterator();\n\t\t}\n\n\t\t@Override\n\t\tpublic int size() {\n\t\t\treturn parent.size();\n\t\t}\n\n\t\t@Override\n\t\tpublic Set<E> get(Location loc) {\n\t\t\tSet<E> out = parent.get(loc);\n\t\t\t//System.out.println(out);\n\t\t\treturn out;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn parent.isEmpty();\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn parent.contains(o);\n\t\t}\n\n\t\t@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn parent.toArray();\n\t\t}\n\n\t\t@Override\n\t\tpublic Object[] toArray(Object[] a) {\n\t\t\treturn parent.toArray(a);\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean remove(Object o) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean containsAll(Collection c) {\n\t\t\treturn parent.containsAll(c);\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean addAll(Collection c) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean retainAll(Collection c) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean removeAll(Collection c) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic void clear() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\t}\n}", "private void reIndex()\n {\n for(int i = 0; i < NodeList.size(); i++)\n NodeList.get(i).setID(i);\n ID = NodeList.size();\n }", "public interface Entity {\n}", "@Override\n public void init(Entity entity) {\n entity.add(AI_DATA, new BuildingSpawnerStratAIData());\n }", "public interface Entity extends Immunizable {\n /**\n * Counts the total number of people in a certain state. An entity may be in multiple states if there are\n * multiple spreadables in play.\n *\n * @param state Which state to count\n * @return The number of entities in that state\n */\n int count(State state);\n\n /**\n * Counts the total number of people in a certain state for a given Spreadable. An entity will only ever be\n * in one state per spreadable.\n *\n * @param state Which state to count\n * @param spreadable Which spreadable to consider\n * @return The number of entities in that state for the given spreadable\n */\n int count(State state, Spreadable spreadable);\n\n /**\n * @return The total number of individuals that this Entity represents\n */\n int population();\n\n /**\n * Try to change entities from one state to another. If there aren't enough entities with the old state,\n * then only that many will be changed to the new state.\n *\n * @param spreadable\n * @param from\n * @param to\n * @param count\n */\n void changeState(Spreadable spreadable, State from, State to, int count);\n\n /**\n * Try to infect one or more entities with a specific Spreadable. This will not infect more people than are\n * susceptible, and may also be affected by rules for coexistence of spreadables.\n *\n * @param spreadable\n * @param count\n */\n default void infect(Spreadable spreadable, int count) {\n changeState(spreadable, State.SUSCEPTIBLE, State.INFECTED, count);\n }\n\n\n /**\n * Try to recover one or more entities with a specific Spreadable. This will not recover more entities than are\n * infected.\n *\n * @param spreadable\n * @param count\n */\n default void recover(Spreadable spreadable, int count) {\n changeState(spreadable, State.INFECTED, State.RECOVERED, count);\n }\n\n /**\n * Try to return one or more entities from the infected state to the susceptible state for a given Spreadable.\n * This will not affect more entities than are infected.\n *\n * @param spreadable\n * @param count\n */\n default void suscept(Spreadable spreadable, int count) {\n changeState(spreadable, State.INFECTED, State.SUSCEPTIBLE, count);\n }\n\n String getName();\n\n Collection<String> getLabels();\n\n Collection<Spreadable> getSpreadables();\n}", "entities.Torrent.NodeId getNodes(int index);", "public void addNewEntity() {\n Random random = new Random();\n int bound = Aquarium.WIDTH / 10;\n int randX = bound + random.nextInt(Aquarium.WIDTH - (2 * bound));\n int randY = bound + random.nextInt(Aquarium.HEIGHT - (2 * bound));\n Piranha newPiranha = new Piranha(randX, randY);\n piranhas.add(newPiranha);\n }", "@Override public long nodeIndex() {\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public UUID nodeId();", "public abstract int getId();", "public abstract int getId();", "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addresses\n ArrayList<String> identities = retrieveIdentities(addresses);\n for (int i = 0; i < size(); i++)\n get(i).setIdentity(identities.get(i));\n }", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "int getBlockId();", "@Override\n\tpublic int saveObject(Evaluate entity) {\n\t\treturn evaluateMapper.saveObject(entity)\n\t\t\t\t;\n\t}" ]
[ "0.62833345", "0.610794", "0.5859581", "0.5679416", "0.5677362", "0.5671519", "0.5645097", "0.5600467", "0.55646604", "0.550128", "0.53572214", "0.53463066", "0.5327061", "0.5327061", "0.5323581", "0.5319692", "0.53025967", "0.52843505", "0.5274202", "0.52611595", "0.526044", "0.52582544", "0.5251812", "0.523619", "0.52349377", "0.52206963", "0.521505", "0.5188847", "0.5181787", "0.5166464", "0.5157608", "0.51572925", "0.5136939", "0.512607", "0.5125452", "0.5112665", "0.51113725", "0.5050161", "0.50493073", "0.50423074", "0.5040807", "0.50237966", "0.5022397", "0.5021216", "0.50173455", "0.5016896", "0.5015169", "0.50109327", "0.50089437", "0.500101", "0.49950984", "0.4985133", "0.49806237", "0.49727115", "0.49671447", "0.49671447", "0.496522", "0.49600226", "0.49568766", "0.49447504", "0.49357432", "0.49350047", "0.49258938", "0.49235177", "0.49172676", "0.4913962", "0.49100283", "0.49079993", "0.4905329", "0.49037963", "0.4902779", "0.4898958", "0.4898734", "0.4893859", "0.48937607", "0.4892389", "0.48873854", "0.48815587", "0.48770675", "0.48755756", "0.487242", "0.48701462", "0.48686737", "0.48658985", "0.48651516", "0.48611617", "0.4860426", "0.48560348", "0.48534513", "0.48527786", "0.4852461", "0.4850526", "0.484765", "0.48440394", "0.48432645", "0.48432645", "0.4837574", "0.48315033", "0.48304304", "0.48299545" ]
0.5861969
2
identity must be over 0
protected void setIdentity(long identity) { this.identity=new Long(identity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testZeroA() {\n assertEquals(0, PiGenerator.powerMod(0, 5, 42));\n }", "@Test\n public void testIdentity() {\n final double junk[] = new double[Matrix33d.LENGTH];\n for (int i = 0; i < Matrix33d.LENGTH; i++) {\n junk[i] = 1089.1451D;\n }\n final Matrix33d m = new Matrix33d();\n m.setA(junk);\n\n m.identity();\n final double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n if (i == 0 || i == 4 || i == 8) {\n assertEquals(a[i], 1D);\n } else {\n assertEquals(a[i], 0D);\n }\n }\n }", "CompT zero();", "@Test\n\tpublic void testMinValue() {\n\t\tlong hash = Integer.MIN_VALUE;\n\t\tassertNull(table.findIfPresent(hash));\n\t\ttable.findOrAllocate(hash);\n\t\tassertNotNull(table.findIfPresent(hash));\n\t}", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "@Override\r\n\tprotected Integer zero() {\n\t\treturn 0;\r\n\t}", "public static int generatRandomPositiveNegitiveValue(int max , int min) {\n\t int ii = -min + (int) (Math.random() * ((max - (-min)) + 1));\n\t return ii;\n\t}", "public LessThanZeroException() {}", "@Override\n public S isZero() {\n rule.addConstraint(new IsEqualAccordingToCompareToConstraint<>(zero()));\n return myself;\n }", "public void setIdentity(int x){\r\n\t\tif (x < 6){\r\n\t\t\tthis.identity = x;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthis.identity = -1;\r\n\t\t}\r\n\t}", "@Test\n public void hailStoneZero(){\n List<Integer> expected = new ArrayList<>();\n expected.add(-1);\n assertThat(ComputeStuff.hailstoneSequence(0), is(expected));\n }", "private int nn(int x)\n {\n return x > 0 ? 1 : 0;\n }", "private static long zeroTo(final long maximum) {\n return (long) (Math.random() * maximum);\n }", "public static int randomPositiveInt() {\n return randomInt(1, Integer.MAX_VALUE);\n }", "boolean hasIdentity();", "private static boolean isPositive(int ID) {\n return ID > 0;\n }", "private Proof mulLeftZero(Expression a) {\n Variable x = var(\"x\");\n Proof equalitySymConvert = equalitySymConvert(faxm8Gen(zero(), x));\n Proof faxm6gen = faxm6Gen(multi(zero(), x));\n Proof axm2convert = faxm2Convert(equalitySymConvert, faxm6gen);\n Proof axm2convertOnce = faxm2ConvertOnce(zero(), equalitySymConvert(axm2convert));\n return inductConclusion(x, a, faxm7Gen(zero()), axm2convertOnce);\n }", "Identity identity();", "Identity identity();", "public Int() {\n super(Expression.X_IS_UNDEFINED);\n this.value = 0;\n }", "static BigInteger randomPositiveBigInteger(int numBits) {\n BigInteger result;\n do {\n result = randomNonNegativeBigInteger(numBits);\n } while (result.signum() == 0);\n return result;\n }", "@Test\n public void testValidHashZero() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\tboolean result = l.validHash(0,8);\n\tassertEquals(result, true);\n }", "public boolean hasIdentity() { return true; }", "public boolean hasIdentity() { return true; }", "abstract void assignZero();", "@Override\n public Integer reduceInit() { return 0; }", "static BigInteger randomNonZeroBigInteger(int numBits) {\n BigInteger result = randomPositiveBigInteger(numBits);\n return RANDOM_SOURCE.nextBoolean() ? result : result.negate();\n }", "@Test\n public void testZeroB() {\n assertEquals(1, PiGenerator.powerMod(5, 0, 42));\n }", "static BigInteger randomNonNegativeBigInteger(int numBits) {\n int digits = RANDOM_SOURCE.nextInt(numBits);\n if (digits == 0) {\n return new BigInteger(1, RANDOM_SOURCE);\n } else {\n return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);\n }\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testZerosException() throws IllegalArgumentException {\n\t int min=3, mid=5, max=10, bigger=Integer.MAX_VALUE, smaller=Integer.MIN_VALUE;\n\t assertEquals( 0, MaxDiTre.max(0, 0, 0) );\n\t}", "default A isZero() {\n return satisfiesNumberCondition(new NumberCondition<>(0, EQUAL_TO));\n }", "public void makeIdentity() {\n if (rows == cols) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n if (i == j) {\n matrix.get(i)[j] = 1;\n }\n else {\n matrix.get(i)[j] = 0;\n }\n }\n }\n }\n else {\n throw new NonSquareMatrixException();\n }\n }", "public static Integer safeToUse(Integer empID) {\n\n if (IDFactory.setOfAssignedIDs.contains(empID) || empID <= 0){\n empID = IDFactory.generateID();\n IDFactory.setOfAssignedIDs.add(empID);\n return empID;\n }\n\n else {\n IDFactory.setOfAssignedIDs.add(empID);\n return empID;\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n int int0 = expressionMatrixImpl0.addNewNode();\n int int1 = expressionMatrixImpl0.getNumberOfElements();\n assertTrue(int1 == int0);\n \n expressionMatrixImpl0.setValue((-2957), (-2957), 0);\n assertEquals(0, expressionMatrixImpl0.getNumberOfElements());\n }", "public boolean isZero() {return false;}", "@Override\n public int value() {\n return 0;\n }", "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "public int originalgetRandomPositiveInt(int min, int max){\r\n int number = getRandomPositiveInt(); \r\n return (int)number%(max - min + 1)+min;\r\n }", "@Override\n public int intValue(int numId) {\n return 0;\n }", "@Override\n public int retroceder() {\n return 0;\n }", "public static int randomNext() { return 0; }", "@Override\r\n\tpublic double alapterulet() {\n\t\treturn 0;\r\n\t}", "public int getRandomPositiveInt(){\r\n long gen = (a*seed+c)%m;\r\n seed = gen;\r\n return (int)gen;\r\n }", "private final void m2025d() {\n if (this.f2309d == Integer.MIN_VALUE) {\n throw new IllegalStateException(\"generateNewId() must be called before retrieving ids.\");\n }\n }", "public void zero();", "public MyInteger( )\n {\n this( 0 );\n }", "@Override\n public int apply$mcID$sp (double arg0)\n {\n return 0;\n }", "public Number getMinimumAccessibleValue() {\n return Integer.valueOf(0);\n }", "@Test\r\n\tpublic void test01() {\n\t\tInteger x = -128;\r\n\t\tInteger y = -128;\r\n\t\tassertSame(x, y);\r\n\t\tInteger u = 1000;\r\n\t\tInteger v = 1000;\r\n\t\tassertNotSame(u, v);\r\n\t}", "public void identity(){\n for (int j = 0; j<4; j++){\n \tfor (int i = 0; i<4; i++){\n \t\tif (i == j)\n \t\t\tarray[i][j] = 1;\n \t\telse\n \t\t\tarray[i][j] = 0;\n \t }\n \t }\n\t}", "@Override\n public double numValue(int numId) {\n return 0;\n }", "private int validateKey (int key) {\n return (key < 0 || key > ALPHABET_LENGTH-1) ? 0 : key;\n }", "private int nextValidID() {\n return nextId++;\n }", "@Override\n public long apply$mcJI$sp (int arg0)\n {\n return 0;\n }", "@Test\n\tpublic void testAddOutOfRange() {\n\t\tInteger result = SimpleCalc.add(40, 10);\n\t\tassertNull(\"Input value 40 is out of range [-10, 10]\", result);\n\t}", "@Test\n public void testNegativeA() {\n assertEquals(-1, PiGenerator.powerMod(-1, 2, 23));\n }", "boolean isZero();", "private int Sigma0(int x) {\n int a = ROTR(7, x);\n int b = ROTR(18, x);\n int c = x >>> 3;\n int ret = a ^ b ^ c;\n return ret;\n }", "public Int() {\n this(0);\n }", "public static int zeroNorm(VectorIntf x) {\r\n if (x==null) throw new IllegalArgumentException(\"x is null\");\r\n if (x instanceof SparseVectorIntf) { // short-cut for sparse vectors\r\n SparseVectorIntf y = (SparseVectorIntf) x;\r\n\t\t\tif (Double.compare(y.getDefaultValue(),0.0)==0) return y.getNumNonZeros();\r\n }\r\n final int n = x.getNumCoords();\r\n int res=0;\r\n for (int i=0; i<n; i++)\r\n if (Double.compare(x.getCoord(i),0.0)!=0) ++res;\r\n return res;\r\n }", "private static Integer generateID() {\n Integer uniqueID = -1;\n while (setOfIDs.contains(uniqueID) || !Employee.isPositive(uniqueID)) {\n uniqueID += 1;\n }\n return uniqueID;\n }", "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "@Override\n public int apply$mcII$sp (int arg0)\n {\n return 0;\n }", "public MutableInt() {}", "@Test\n\tpublic void whenNumberZeroFactrialOne() {\n\t\tFactorial fact = new Factorial();\n\t\tassertTrue(fact.calc(0) == 1);\n\t}", "public static int limitToValidMetadata(int par0)\n {\n return par0 & 1;\n }", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}", "public abstract boolean deterministic () ;", "private void empty_to_int_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Compute the value\r\n long value ;\r\n switch( op_code ) {\r\n case RAND :\r\n if( random == null ) random = new java.util.Random(1) ;\r\n value = random.nextInt() % 32767 ;\r\n if( value < 0 ) value = - value ;\r\n break ;\r\n default: Assert.check(false) ; value = 0 ;\r\n }\r\n \r\n putIntResult(nd, vms, value);\r\n }", "@Override\n public int apply$mcIJ$sp (long arg0)\n {\n return 0;\n }", "private void validationInt(List<Integer> list) {\n\t\tint i=0;\n\t\tfor(i=0;i<list.size();i++) {\n\t\t\tif(!(list.get(i) > 0)){\n\t\t\t\tthrow new IntValueLessOneException(list.get(i));\n\t\t\t}\n\t\t}\n\t}", "public OverflowTransactionException() {\n\t\tsuper(\"High-Value transactions more than Double.POSITIVE_INFINITY are not allowed.\");\n\t}", "public static int randomNegativeInt() {\n return randomInt(Integer.MIN_VALUE, 0);\n }", "public void verificaInteiroMaiorQueZero(int parametro, String mensagem) {\n if (parametro <= 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public boolean almostZero(Coordinates a);", "static int findOneMissingNumber(int a[]) {\n int number = 0;\n int size = a.length;\n for (int i = 0; i < size; i++)\n number ^= ((i + 1) ^ a[i]);\n number ^= (size + 1);\n return number;\n }", "public Boolean IsAbnormally() {\n Random r = new Random();\n int k = r.nextInt(100);\n //1%\n if (k <= 1) {\n abnormally++;\n return true;\n }\n return false;\n }", "public static <N extends Number> PropertyConstraint<N> positive() {\n return ConstraintFactory.fromPredicate(\n new Predicate<N>() {\n @Override\n public boolean test(N t) {\n return t.intValue() > 0;\n }\n },\n \"Should be positive\"\n );\n }", "public Identity() {\n\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testSAMLRequestValidatorImpl1a()\n\t{\n\t\tIdentifierCache cache = createMock(IdentifierCache.class);\n\t\treplay(cache);\n\t\tSAMLRequestValidatorImpl validator = new SAMLRequestValidatorImpl(cache, (Integer.MAX_VALUE / 1000) + 1);\n\t\tverify(cache);\n\t}", "@Test\r\n\tpublic void testPositiveGenerateInteger_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegers(10, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static Transform identity(){\n return new Transform(new float[][]{\n {1.0f, 0.0f, 0.0f, 0.0f},\n {0.0f, 1.0f, 0.0f, 0.0f},\n {0.0f, 0.0f, 1.0f, 0.0f},\n {0.0f, 0.0f, 0.0f, 1.0f}\n });\n }", "public static int nextInt() {\n\treturn 0;\r\n}", "private static <T extends RealType<T>> RandomAccessibleInterval<T>\n\t\taddLeadingZeros(final RandomAccessibleInterval<T> input)\n\t{\n\t\tfinal long[] min = Intervals.minAsLongArray(input);\n\t\tfinal long[] max = Intervals.maxAsLongArray(input);\n\n\t\tfor (int i = 0; i < max.length; i++) {\n\t\t\tmin[i]--;\n\t\t}\n\n\t\tfinal T realZero = Util.getTypeFromInterval(input).copy();\n\t\trealZero.setZero();\n\n\t\tfinal ExtendedRandomAccessibleInterval<T, RandomAccessibleInterval<T>> extendedImg =\n\t\t\tViews.extendValue(input, realZero);\n\t\tfinal IntervalView<T> offsetInterval = Views.interval(extendedImg, min,\n\t\t\tmax);\n\n\t\treturn Views.zeroMin(offsetInterval);\n\t}", "@Override\n\tpublic double probability() {\n\t\treturn 0;\n\n\t}", "private void scaleToPositive() {\r\n // Obtain min value\r\n double minScalarization = Double.MAX_VALUE;\r\n for (S solution : solutions()) {\r\n if (scalarization.getAttribute(solution) < minScalarization) {\r\n minScalarization = scalarization.getAttribute(solution);\r\n }\r\n }\r\n if (minScalarization < 0) {\r\n // Avoid scalarization values of 0\r\n double eps = 10e-6;\r\n for (S solution : solutions()) {\r\n scalarization.setAttribute(solution, eps + scalarization.getAttribute(solution) + minScalarization);\r\n }\r\n }\r\n }", "@Test\n\tpublic void testZeroCredit()\n\t{\n\t\tMortgage m = new Mortgage(50.0, 200.0, 10.0, 0);\n\t\tassertEquals(false, m.isQualified());\n\t}", "public final void setIdentity() {\n \t\n this.m00 = 1.0F;\n this.m01 = 0.0F;\n this.m02 = 0.0F;\n this.m10 = 0.0F;\n this.m11 = 1.0F;\n this.m12 = 0.0F;\n this.m20 = 0.0F;\n this.m21 = 0.0F;\n this.m22 = 1.0F;\n }", "@Override\r\n\tprotected Integer deriveLower() {\r\n\t return 0;\r\n\t}", "public static Picture identity(Picture picture) {\n double[][] weights = { { 0, 0, 0 }, { 0, 1, 0 }, { 0, 0, 0 }, };\n return kernel(picture, weights);\n }", "public abstract long mo20901UQ();", "@Test\n public void testThresholdEqualsZero() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(zeroThreshold);\n assertTrue(\"When the threshold is zero, the circuit is supposed to be always open\", circuit.incrementAndCheckState(0L));\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483646L, (-9223372036854775808L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Range coordinates 2147483646, -9223372036854775808 are not valid Zero Based coordinates\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n public void testIsEven_0() {\n NaturalNumber n = new NaturalNumber2(0);\n boolean result = CryptoUtilities.isEven(n);\n assertEquals(\"0\", n.toString());\n assertTrue(result);\n }", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "protected static void assertArgumentNotZeroInteger(String name, int value) {\n if (value == 0) {\n String msg = \"The argument '\" + name + \"' should be plus or minus value: \" + value;\n throw new IllegalArgumentException(msg);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n int int0 = expressionMatrixImpl0.getValue((-1), (-1));\n assertEquals((-1), int0);\n }", "private int deadZone(int value, int minValue)\n\t{\n\t\tif (Math.abs(value) < minValue) value = 0;\n\t\t\n\t\treturn value;\n\t}", "public void antiderivative () {\n antiderivative(0.0);\n }", "@Test (expected = IllegalArgumentException.class)\n\tpublic void testLessThanZero(){\n\t\tDistance d = new Distance(-1, 1);\n\t\t\n\t}" ]
[ "0.58234495", "0.5651758", "0.5629122", "0.5609554", "0.56049174", "0.560295", "0.5559483", "0.5554447", "0.55539364", "0.5489706", "0.5479119", "0.54720974", "0.54211414", "0.53430617", "0.5320323", "0.53203154", "0.5306554", "0.5299163", "0.5299163", "0.5288897", "0.52670056", "0.5251705", "0.5247247", "0.5247247", "0.5244934", "0.5244159", "0.52333635", "0.5223787", "0.522256", "0.52198344", "0.5201535", "0.51957273", "0.51833236", "0.51832527", "0.51688", "0.5159573", "0.5157678", "0.5156756", "0.5134615", "0.51306176", "0.511228", "0.51100016", "0.5103907", "0.50966793", "0.50886893", "0.50863284", "0.50859433", "0.5069571", "0.5067801", "0.5065632", "0.5058029", "0.505665", "0.5050655", "0.5050171", "0.50497186", "0.504814", "0.50461334", "0.5042668", "0.5037274", "0.5033534", "0.50283945", "0.5025227", "0.50243986", "0.5019873", "0.50136745", "0.50129837", "0.50114244", "0.50103885", "0.49994153", "0.49955148", "0.4993836", "0.49919233", "0.49861163", "0.4973643", "0.49708986", "0.4970543", "0.49624714", "0.49533647", "0.49512956", "0.4948478", "0.49478292", "0.4947132", "0.49410382", "0.49373567", "0.4935657", "0.49356264", "0.49301645", "0.4929968", "0.4925959", "0.49252987", "0.49212527", "0.4917425", "0.49156436", "0.49135056", "0.49130633", "0.49121073", "0.49077952", "0.49068204", "0.49061546", "0.49018344", "0.48960075" ]
0.0
-1
/ Identity must have been previously set / Depending on how values for an entity are stored / there may be child nodes and / or content / stored at the parent node
protected boolean Exists() { if (identity<1) return false; NodeReference nodeReference = getNodeReference(); return (nodeReference.exists() || nodeReference.hasSubnodes()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ensureEntityValue(IEntity entity) {\n entity.setPrimaryKey(entity.getPrimaryKey());\n }", "public void testInheritanceEditMetadataForMakeParentNullNoData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//step 2\t\t\t\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\t//step 3\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\t//step 4\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 5\t\t\t\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId().toString());\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId());\r\n\t\t\tassertEquals(savedTissueSpecimen.getParentEntity(), specimen);\r\n\r\n\t\t\t//step 6\r\n\t\t\ttissueSpecimen.setParentEntity(null);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 7\r\n\t\t\tassertTrue(true);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId());\r\n\t\t\tassertNull(savedTissueSpecimen.getParentEntity());\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\r\n\t\t\tentityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tResultSet resultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(0, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }", "public void testInheritanceEditMetadataForChangeParentWithNoData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//step 2\t\t\t\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\t//step 3\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\t//step 4\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 5\r\n\t\t\tEntityInterface newSpecimen = factory.createEntity();\r\n\t\t\tnewSpecimen.setName(\"newSpecimen\");\r\n\t\t\tnewSpecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcodeOfNewSpecimen = factory.createStringAttribute();\r\n\t\t\tbarcodeOfNewSpecimen.setName(\"barcodeOfNewSpecimen\");\r\n\t\t\tnewSpecimen.addAbstractAttribute(barcodeOfNewSpecimen);\r\n\r\n\t\t\t//step 6\r\n\t\t\tnewSpecimen = entityManagerInterface.persistEntity(newSpecimen);\r\n\r\n\t\t\t//step 6\r\n\t\t\ttissueSpecimen.setParentEntity(newSpecimen);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 7\r\n\t\t\tassertTrue(true);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId());\r\n\t\t\tassertEquals(savedTissueSpecimen.getParentEntity(), newSpecimen);\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcodeOfNewSpecimen, \"123456\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\r\n\t\t\tentityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tResultSet resultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(0, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ newSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "@Override\n\tpublic Object getEntityId() {\n\t\treturn null;\n\t}", "protected void prepareEntityToNodeMap()\r\n\t{\n\t}", "public void testInheritanceEditMetadataForMakeParentNullWithData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//step 2\t\t\t\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\t//step 3\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\t//step 4\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 5\t\t\t\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\r\n\t\t\tentityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\t//step 6\r\n\t\t\ttissueSpecimen.setParentEntity(null);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 7\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (DynamicExtensionsApplicationException e)\r\n\t\t{\r\n\t\t\tassertTrue(true);\r\n\t\t\tLogger.out.info(\"Application exception is expected to be thrown here\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "protected void entityInit() {}", "protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}", "@Override\n\tpublic void initEntity() {\n\n\t}", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public interface Entity\n\textends Node\n{\n\n\tpublic abstract String getPublicId();\n\n\tpublic abstract String getSystemId();\n\n\tpublic abstract String getNotationName();\n}", "public void testInsertDataForInheritanceParentNoData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\t//step 2\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\t//dataValue.put(barcode, \"123456\");\r\n\t\t\t//dataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\t//step 3\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\t//step 4\r\n\t\t\tResultSet resultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\r\n\t\t\tresultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public void store(final CastorConnection conn, final Identity identity,\r\n final ProposedEntity newentity,\r\n final ProposedEntity oldentity)\r\n throws PersistenceException {\n if (identity.size() != _ids.length) {\r\n throw new PersistenceException(\"Size of identity field mismatched!\");\r\n }\r\n\r\n _storeStatement.executeStatement(conn, identity, newentity, oldentity);\r\n\r\n // Must store values of whole extends hierarchy\r\n if (_extends != null) {\r\n _extends.store(conn, identity, newentity, oldentity);\r\n }\r\n }", "public void normalize()\n\t{\n\t\tlong last_entity_id = getLastEntityId(getEntityName());\n\t\t\n\t\t/* Clear db of any id's greater than id for this entity. Keep things clean */\n\t\t\n\t\t/* Save new entries for that entity */\n\t\tprocessNewRows(last_entity_id);\n\t\t\n\t\t/* Update session info */\n\t}", "@Override\n public String getEntId() {\n init();\n return entid;\n }", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public void testSetParentInEditMode()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tassertTrue(true);\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\r\n\t}", "protected Entity() {\n UID = GEN_COUNT;\n GEN_COUNT++;\n }", "public int getEntityId()\r\n/* 25: */ {\r\n/* 26:26 */ return this.entityId;\r\n/* 27: */ }", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "public void setEntityId(String entityId) {\n this.entityId = entityId;\n }", "public void testInheritanceEditMetadataEditChildWithEditedParent()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Step 1 \r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\t\t\t//Step 2 \t\t\t\r\n\t\t\tEntityInterface savedSpecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\t//Step 3\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\t\t\ttissueSpecimen.setParentEntity(savedSpecimen);\r\n\r\n\t\t\t//Step 4\t\t\t\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\t\t\tassertEquals(savedTissueSpecimen.getParentEntity(), savedSpecimen);\r\n\t\t\t//Check for step 4\r\n\t\t\tResultSetMetaData metaData = executeQueryForMetadata(\"select * from \"\r\n\t\t\t\t\t+ savedTissueSpecimen.getTableProperties().getName());\r\n\t\t\tassertEquals(noOfDefaultColumns + 1, metaData.getColumnCount());\r\n\r\n\t\t\tmetaData = executeQueryForMetadata(\"select * from \"\r\n\t\t\t\t\t+ savedSpecimen.getTableProperties().getName());\r\n\t\t\tassertEquals(noOfDefaultColumns + 1, metaData.getColumnCount());\r\n\r\n\t\t\t//Step 5\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tsavedSpecimen.addAbstractAttribute(label);\r\n\t\t\t//Step 6\r\n\t\t\tAttributeInterface tissueCode = factory.createStringAttribute();\r\n\t\t\ttissueCode.setName(\"Tissue code\");\r\n\t\t\tsavedTissueSpecimen.addAbstractAttribute(tissueCode);\r\n\r\n\t\t\t//Step 7\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\t\t\t//Step 8\r\n\t\t\tmetaData = executeQueryForMetadata(\"select * from \"\r\n\t\t\t\t\t+ savedTissueSpecimen.getTableProperties().getName());\r\n\t\t\tassertEquals(noOfDefaultColumns + 2, metaData.getColumnCount());\r\n\r\n\t\t\tmetaData = executeQueryForMetadata(\"select * from \"\r\n\t\t\t\t\t+ savedTissueSpecimen.getParentEntity().getTableProperties().getName());\r\n\t\t\tassertEquals(noOfDefaultColumns + 2, metaData.getColumnCount());\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public void setEntity(EntityBase entity) {\n if (((entity != null) && !entity.equals(this.entity)) ||\n ((this.entity != null) && !this.entity.equals(entity))) {\n reset();\n }\n this.entity = entity;\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setEntityId(long entityId);", "private <T extends EntityBase> void updateParentEntityInCache(Class<T> entityClass, UUID uuid, T entity) {\n for (T childEntity : cache.getEntities(entityClass)) {\n if (uuid.equals(childEntity.getParentEntityId())) {\n childEntity.setParentEntity(entity);\n }\n }\n }", "public void setORM_Parent(orm.Nomenclature value) {\r\n\t\tthis.parent = value;\r\n\t}", "private static void saveEntity(TaskViewModel node, StorableFactory<Task> taskFactory) throws DatabaseException {\n Task dto = Infrastructure.getInstance().getTaskMapper().toDto(node);\n taskFactory.create(dto);\n // after creation in db id will be set\n node.setId(dto.getId());\n for (TaskViewModel child : node.getChildren()) {\n saveEntity(child, taskFactory);\n }\n }", "protected T getEntity() {\r\n\t\treturn entity;\r\n\t}", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "@XmlElement(name = \"entity\")\n public String getEntityId() {\n return entityId;\n }", "protected void setIdentity(long identity)\n\t{\n\t\tthis.identity=new Long(identity);\n\t}", "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addresses\n ArrayList<String> identities = retrieveIdentities(addresses);\n for (int i = 0; i < size(); i++)\n get(i).setIdentity(identities.get(i));\n }", "@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }", "public int getIdentity(){\r\n\t\treturn identity;\r\n\t}", "@Override\n public void validateEntity() {\n if ((Strings.isNullOrEmpty(this.getIdentity()) &&\n Strings.isNullOrEmpty(this.getFileSystemPath())) ||\n Strings.isNullOrEmpty(this.getSourceId())) {\n throw new IllegalArgumentException(\n \"Either the Entity Id or file system path used\" +\n \" to generate the id must be present along with the source id\");\n }\n }", "protected abstract Serializable getEntity();", "@Override\n\tpublic Map<String, Object> update(StoreBase entity) {\n\t\treturn null;\n\t}", "@Override\n public void rootRPClassUpdate(RPObject entity) {\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "public void testInsertDataForInheritance()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tResultSet resultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\r\n\t\t\tresultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\tadvanceTissueSpecimenA = entityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"869\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttribute, \"12\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenA, dataValue);\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(2, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(2, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ advanceTissueSpecimenA.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public abstract String getEntityId();", "public void setEntity(String entity) {\n\t\tthis.setEntity(entity, false);\n\t}", "@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "protected void sequence_Entity(ISerializationContext context, Entity semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void setEntity(String entity)\n\t\t{\n\t\t\tif (entity == null || entity.equals(\"\"))\n\t\t\t\tuserElement.removeAttribute(ENTITY_ATTR_NAME);\n\t\t\telse\n\t\t\t\tuserElement.setAttribute(ENTITY_ATTR_NAME, entity);\n\t\t}", "public void setEntity(Entity entity) {\n\t\tthis.entity = entity;\n\t\tString s = entity.getClass().toString();\n\t\t// trim \"Class \" from the above String\n\t\tentityType = s.substring(s.lastIndexOf(\" \") + 1);\n\t}", "protected abstract Entity getEditedEntity();", "@Override\n\tpublic User updateEntity(long id, User Entity) throws Exception {\n\t\treturn null;\n\t}", "public Entity getLeafEntity() {\n Entity e = root;\n if (e == null) {\n if (parent != null) {\n e = parent.get(ContentType.EntityType, null);\n }\n }\n return e;\n }", "public void testInheritanceEditMetadataCreateChildWithEditedParent()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Step 1 \r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\t\t\t//Step 2 \t\t\t\r\n\t\t\tEntityInterface savedSpecimen = entityManagerInterface.persistEntity(specimen);\r\n\t\t\t//Checking step 2\r\n\t\t\tResultSetMetaData metaData = executeQueryForMetadata(\"select * from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tassertEquals(noOfDefaultColumns + 1, metaData.getColumnCount());\r\n\t\t\t//Step 3\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tsavedSpecimen.addAbstractAttribute(label);\r\n\t\t\t//Step 4\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\t\t\t//Step 5\r\n\t\t\ttissueSpecimen.setParentEntity(savedSpecimen);\r\n\t\t\t//Step 6\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\t\t\tassertEquals(savedTissueSpecimen.getParentEntity(), savedSpecimen);\r\n\t\t\t//Step 7\r\n\t\t\tmetaData = executeQueryForMetadata(\"select * from \"\r\n\t\t\t\t\t+ savedSpecimen.getTableProperties().getName());\r\n\t\t\tassertEquals(noOfDefaultColumns + 2, metaData.getColumnCount());\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "protected void validateEntity() {\n super.validateEntity();\n }", "@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }", "public interface Entity {\n\n\t/**\n\t * Returns a {@code Long} representing the unique ID of this entity.\n\t *\n\t * @return Returns the unique ID of this Entity as {@code Long}, or {@code null} if this Entity doesn't\n\t * have ID.\n\t */\n\tpublic Long getEntityId();\n\n\t/**\n\t * Change the unique ID of this Entity.\n\t *\n\t * @param id a {@code Long} on {@code null} if doesn't have ID\n\t * @see #getEntityId()\n\t */\n\tpublic void setEntityId(Long id);\n\n}", "public boolean hasIdentity() { return true; }", "public boolean hasIdentity() { return true; }", "@Override\n\tpublic void set(int id, Post entity) {\n\t\t\n\t}", "public MuseologicalObjectDO getEntity(){\r\n\t\tMuseologicalObjectDO objDO = new MuseologicalObjectDO();\r\n\t\tif(objectId != null) objDO.setId(objectId);\r\n\t\tobjDO.setName(name);\r\n\t\tobjDO.setDate(date.getTime());\r\n\t\tobjDO.setObjectType(objectType);\r\n\t\treturn objDO;\r\n\t}", "@Override\n public void cascadePersist(RDFPersistent rootRDFEntity, RDFEntityManager rdfEntityManager, URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n roles.stream().forEach((role) -> {\n role.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n rdfEntityManager.persist(this, overrideContext);\n }", "@Override\n public void initialize(Object entity) {\n entity.hashCode();\n }", "@Override\n public void setValue(Node value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void testEditDataForInheritance()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\tadvanceTissueSpecimenA = entityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\r\n\t\t\t//Step 2\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tResultSet resultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t\t// Step 3\r\n\t\t\tdataValue.put(barcode, \"870\");\r\n\t\t\tdataValue.put(label, \"specimen parent label123\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"4546\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-11-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\tentityManagerInterface.editData(tissueSpecimen, dataValue, recordId);\r\n\r\n\t\t\t// step 4\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue = entityManagerInterface.getRecordById(tissueSpecimen, recordId);\r\n\r\n\t\t\tassertEquals(\"870\", dataValue.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label123\", dataValue.get(label));\r\n\t\t\tassertEquals(\"4546\", dataValue.get(quantityInCellCount));\r\n\r\n\t\t\t//Step 5\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"869\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttribute, \"12\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenA, dataValue);\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(2, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(2, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ advanceTissueSpecimenA.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t\t//Step 6\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"875\");\r\n\t\t\tdataValue.put(label, \"New Label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"454647\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-11-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttribute, \"1223\");\r\n\r\n\t\t\tentityManagerInterface.editData(advanceTissueSpecimenA, dataValue, recordId);\r\n\r\n\t\t\t//Step 7\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue = entityManagerInterface.getRecordById(advanceTissueSpecimenA, recordId);\r\n\r\n\t\t\tassertEquals(\"875\", dataValue.get(barcode));\r\n\t\t\tassertEquals(\"New Label\", dataValue.get(label));\r\n\t\t\tassertEquals(\"454647\", dataValue.get(quantityInCellCount));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(2, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(2, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ advanceTissueSpecimenA.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "@Test\n public void useReferencesToStoreDataToOtherObjects() {\n flushTestUsers();\n eddard.setChildren(Arrays.asList(jon, robb, sansa, arya, bran, rickon));\n repository.save(eddard);\n assertThat(repository.findById(eddard.getId())).hasValueSatisfying(it -> {\n assertThat(it.getChildren()).contains(jon, robb, sansa, arya, bran, rickon);\n });\n repository.deleteAll(Arrays.asList(robb, jon));\n assertThat(repository.findById(eddard.getId())).hasValueSatisfying(it -> {\n assertThat(it.getChildren()).contains(sansa, arya, bran, rickon);\n assertThat(it.getChildren()).doesNotContain(robb, jon);\n });\n }", "public void testInheritanceEditMetadataEditChildWithUnsavedParent()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\t\tEntityInterface specimen = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Step 1 \r\n\t\t\tspecimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//Step 2\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\t//Step 3\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\t\t\t//Step 4\r\n\t\t\tsavedTissueSpecimen.setParentEntity(specimen);\r\n\t\t\t//Step 5\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t}\r\n\t\tcatch (DynamicExtensionsApplicationException e1)\r\n\t\t{\r\n\t\t\tLogger.out.info(\"Application exception is expected to be thrown here\");\r\n\t\t\tassertNull(specimen.getTableProperties());\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}", "@Override\n\tpublic L mergeIntoPersisted(R root, L entity) {\n\t\treturn entity;\n\t}", "@Override\n\tpublic boolean isPersistent() {\n\t\treturn id != -1;\n\t}", "private void addArbitraryDataToDatabase() {\n\n try (Transaction tx = graphDatabaseService.beginTx()) {\n Node arbitraryNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n arbitraryNode.setProperty(\"name\", \"Colin\");\n Node otherNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n otherNode.setProperty(\"age\", 39);\n arbitraryNode.createRelationshipTo(otherNode, DynamicRelationshipType.withName(\"TEST\"));\n\n tx.success();\n }\n }", "public void insert(Entity entity){\n\n //Find the correct node for that object\n int index = this.getIndex(entity);\n if(index != -1){\n // Recursively insert\n this.getNodes().get(index).insert(entity);\n }\n\n //There is no subnode fit for this lets add it to the current node\n this.entities.add(entity);\n\n\n //Now that we have a new node, is the node ok with it?\n if(this.entities.size()> MAX_OBJECTS && this.level < MAX_LEVELS){\n // Nah... We need to split!\n this.split();\n\n // Let's reinsert all the objets in the current node into the right place\n int i = 0;\n while (i < this.entities.size()){\n Entity gObj = this.entities.get(i);\n index = this.getIndex(gObj);\n if(index != -1){\n //WE need to reinsert it in the correct place\n this.entities.remove(gObj);\n this.nodes.get(index).insert(gObj);\n }else{\n i += 1; //To the next gameObject\n }\n }\n }\n }", "public void setParent(int id);", "public E getParentEntity() {\n return parentEntity;\n }", "public abstract Integer getEntity();", "@Override\n public final long put(Usuario entity) {\n String nome = entity.getNome();\n int __id1 = nome != null ? __ID_nome : 0;\n String email = entity.getEmail();\n int __id2 = email != null ? __ID_email : 0;\n String senha = entity.getSenha();\n int __id3 = senha != null ? __ID_senha : 0;\n\n long __assignedId = collect313311(cursor, entity.getId(), PUT_FLAG_FIRST | PUT_FLAG_COMPLETE,\n __id1, nome, __id2, email,\n __id3, senha, 0, null,\n 0, 0, 0, 0,\n 0, 0, 0, 0,\n 0, 0, 0, 0,\n 0, 0, 0, 0);\n\n entity.setId(__assignedId);\n\n attachEntity(entity);\n checkApplyToManyToDb(entity.getLivros(), Livro.class);\n return __assignedId;\n }", "public Entity getDatasetEntity()\n{\n // Get parent and parent entity (just return null, if null)\n RMShape parent = getParent(); if(parent==null) return null;\n Entity parentEntity = parent.getDatasetEntity(); if(parentEntity==null) return null;\n \n // Get Property/RelationEntity for Shape.DatasetKey\n Property prop = getDatasetKey()!=null? parentEntity.getKeyPathProperty(getDatasetKey()) : null;\n Entity entity = prop!=null && prop.isRelation()? prop.getRelationEntity() : null;\n return entity!=null? entity : parentEntity;\n}", "void visit(Entity node);", "final protected int getEntityState()\n {\n return state;\n }", "private void saveChildEntities( final D dto, final D returnDTO )\n {\n /*\n * Save any tags contained in the dto\n */\n if ( dto instanceof TagsContainer )\n {\n this.saveStockTags( dto, returnDTO );\n }\n /*\n * Check for new sources\n */\n if ( dto instanceof NotesSourceIdContainer )\n {\n this.stockNoteSourceService\n .checkForNewSource( (NotesSourceIdContainer)dto );\n }\n }", "public DefaultEntity(Node<A> node) {\r\n\t\tsuper(node);\r\n\t\tevents = new Vector<Event<A>>();\r\n\t}", "public E getEntity() {\n return this.entity;\n }", "protected abstract ENTITY createEntity();", "@Override\n\tpublic void posModify() {\n\t\tgetEntityManager().refresh(instance);\n\t\tcambiarTipoCuenta(instance);\n\t\tgetEntityManager().flush();\n\t\tgetEntityManager().refresh(instance);\n\t\tresultList = null;\n\t\trootNode = null;\n\t}", "@Override\n public SideDishEntity save(SideDishEntity entity) {\n return null;\n }", "void setOwner(Entity owner);", "@Override\r\n\tpublic Iterable<Entity> getNodes()\r\n\t{\n\t\treturn null;\r\n\t}", "public void setEntityValue(String name, NodeList value, boolean local) {\n ActiveEntity binding = getEntityBinding(name, local);\n if (binding != null) {\n binding.setValueNodes(this, value);\n } else {\n if (entities == null && (local || nameContext == null))\n\tentities = new BasicEntityTable();\n Tagset ts = this.getTopContext().getTagset();\n getEntities().setBinding(name, ts.createActiveEntity(name, value));\n } \n }", "protected T createNewValueOnFlush() {\n \t\treturn null;\n \t}", "@Override\n\tpublic Class<Object> getEntityClass() {\n\t\treturn null;\n\t}", "private void addEntitiesToEntityCache(ModelReader modelReader,\n\t\t ResourceHandler resourceHandler,\n String loaderEnt,\n String locationEnt) throws OfbizDataException {\n\t\tif (modelReader == null || resourceHandler == null) {\n\t\t\tLOG.warn(String.format(\"Null reader or resource handler\" +\n\t\t\t\t\t \" in addEntitiesToEntityCache() method. Model\" +\n \" reader: %s Resource handler: %s\",\n modelReader, resourceHandler));\n\t\t\treturn;\n\t\t}\n\t\ttry {\n Document document;\n\t\t\tMap<String, ModelEntity> entityCache = modelReader.getEntityCache();\n List<ModelViewEntity> tempViewEntityList\n = new LinkedList<ModelViewEntity>();\n Hashtable<String, String> docElementValues\n = new Hashtable<String, String>();\n\n\t\t\tsynchronized (ModelReader.class) {\n\t\t\t\ttry {\n\t\t\t\t\tdocument = resourceHandler.getDocument();\n\t\t\t\t} catch (GenericConfigException e) {\n String msg = \"Error getting document from resource handler\";\n LOG.error(msg);\n\t\t\t\t\tthrow new GenericEntityConfException(msg, e);\n\t\t\t\t}\n\t\t\t\tif(document == null) {\n\t\t\t\t\tString msg = String.format(\"Could not get document for %s\",\n resourceHandler);\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\n\t\t\t\tElement docElement = document.getDocumentElement();\n\n\t\t\t\tif (docElement == null) {\n\t\t\t\t\tString msg = \"NULL doc element.\";\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\t\t\t\tdocElement.normalize();\n\t\t\t\tNode curChild = docElement.getFirstChild();\n\n\t\t\t\tint i = 0;\n\n\t\t\t\tif (curChild != null) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tboolean isEntity = \"entity\".equals(curChild.getNodeName());\n\t\t\t\t\t\tboolean isViewEntity = \"view-entity\".equals(curChild.getNodeName());\n\n\t\t\t\t\t\tif ((isEntity || isViewEntity) &&\n\t\t\t\t\t\t\tcurChild.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tElement curEntity = (Element) curChild;\n\t\t\t\t\t\t\tString entityName =\n\t\t\t\t\t\t\t\tUtilXml.checkEmpty(curEntity.getAttribute(\"entity-name\"));\n\n\t\t\t\t\t\t\t// check to see if entity with same name has already\n\t\t\t\t\t\t\t// been read\n\t\t\t\t\t\t\tif (entityCache.containsKey(entityName)) {\n if(LOG.isDebugEnabled()) {\n LOG.debug(String.format(\n \"Entity %s is defined more than once, most \" +\n \"recent will overwrite previous definition\",\n entityName));\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// add entity to entityResourceHandlerMap map\n\t\t\t\t\t\t\tmodelReader.addEntityToResourceHandler(entityName,\n\t\t\t\t\t\t\t\t loaderEnt,\n locationEnt);\n\n\t\t\t\t\t\t\tModelEntity entity;\n\n\t\t\t\t\t\t\tif (isEntity) {\n\t\t\t\t\t\t\t\tentity = createModelEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n if(LOG.isDebugEnabled()){\n LOG.debug(String.format(\"[Entity]: # %d: %s\",\n i, entityName));\n }\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tentity = createModelViewEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n\t\t\t\t\t\t\t\t// put the view entity in a list to get ready\n\t\t\t\t\t\t\t\t// for the second pass to populate fields...\n\t\t\t\t\t\t\t\ttempViewEntityList.add((ModelViewEntity)entity);\n if(LOG.isDebugEnabled()){\n String msg = String.format(\"[ViewEntity]: # %d: %s\",\n i, entityName);\n LOG.debug(msg);\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (entity != null) {\n safelyMapAdd(entityCache, entityName, entity);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLOG.warn(String.format(\"Could not create entity \" +\n \"for entityName: %s\",\n\t\t\t\t\t\t\t\t\t\t entityName));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ((curChild = curChild.getNextSibling()) != null);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.warn(\"No child nodes found.\");\n\t\t\t\t}\n\n\t\t\t\tmodelReader.rebuildResourceHandlerEntities();\n\n\t\t\t\t// do a pass on all of the view entities now that all of the\n\t\t\t\t// entities have loaded and populate the fields\n for (ModelViewEntity me : tempViewEntityList) {\n me.populateFields(entityCache);\n }\n\t\t\t\tLOG.debug(\"FINISHED LOADING ENTITIES.\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tString msg = String.format(\"Got exception when adding entities \" +\n\t\t\t\t\t\"from resource handler: %s\", resourceHandler);\n\t\t\tLOG.error(msg, ex);\n\t\t\tthrow new OfbizDataException(msg, ex);\n\t\t}\n\t}", "@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }", "@Override\n protected void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }", "private void entityInAttributeValueState() throws SAXException, IOException {\n /*\n * Attempt to consume an entity.\n */\n consumeEntity(true);\n /*\n * If nothing is returned, append a U+0026 AMPERSAND character to the\n * current attribute's value.\n * \n * Otherwise, append the returned character token to the current\n * attribute's value.\n */\n // handled in consumeEntity();\n /*\n * Finally, switch back to the attribute value state that you were in\n * when were switched into this state.\n */\n return;\n }", "public void setEntity(String parName, Object parVal) throws HibException;", "String getChildId();", "public final void setEntity(final String cEntity) {\n\t\tthis.entity = cEntity;\n\t}", "public AbstractEntity getEntity() {\n if (entityClass == null) {\n return null;\n }\n try {\n AbstractEntity ent = entityClass.newInstance();\n if (value > -1) {\n ent.setSpriteValue(value);\n }\n return ent;\n } catch (InstantiationException | IllegalAccessException ex) {\n Logger.getLogger(CursorInfo.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "public void testPropagateIdsXML() throws Exception {\n DAS das = DAS.FACTORY.createDAS(getConfig(\"basicCompanyMapping.xml\"), getConnection());\n Command select = das.createCommand(\"Select * from COMPANY\");\n DataObject root = select.executeQuery();\n\n // Create a new Company\n DataObject company = root.createDataObject(\"COMPANY\");\n company.setString(\"NAME\", \"Do-rite Pest Control\");\n\n // verify pre-condition (id is not there until after flush)\n assertNull(company.get(\"ID\"));\n\n // Flush changes \n das.applyChanges(root);\n\n // Save the id\n Integer id = (Integer) company.get(\"ID\");\n\n // Verify the change\n select = das.createCommand(\"Select * from COMPANY where ID = ?\");\n select.setParameter(1, id);\n root = select.executeQuery();\n assertEquals(\"Do-rite Pest Control\", root.getDataObject(\"COMPANY[1]\").getString(\"NAME\"));\n\n }" ]
[ "0.60018694", "0.5970725", "0.5898332", "0.58624095", "0.58056897", "0.5772193", "0.57584596", "0.5751501", "0.57032734", "0.5703211", "0.5684914", "0.56829035", "0.56610066", "0.56258535", "0.5621901", "0.56164795", "0.5615996", "0.5583212", "0.55696857", "0.55095553", "0.54895097", "0.54528177", "0.54409224", "0.5440763", "0.5425197", "0.5414921", "0.5413677", "0.5399504", "0.5394409", "0.5381508", "0.53693914", "0.5330651", "0.53047496", "0.5297806", "0.5282297", "0.5281149", "0.5279364", "0.5277726", "0.52597517", "0.5255013", "0.52424514", "0.5236873", "0.5230808", "0.52136135", "0.52131456", "0.52123934", "0.520777", "0.52075714", "0.5199295", "0.5198608", "0.51940674", "0.51815534", "0.5164214", "0.51634175", "0.5147115", "0.5145518", "0.5143838", "0.51405424", "0.51354915", "0.51341355", "0.51341355", "0.5133031", "0.5130937", "0.5130316", "0.5128589", "0.51262164", "0.51190734", "0.5108478", "0.51064914", "0.5106437", "0.5102739", "0.5099206", "0.5094297", "0.50909203", "0.50876784", "0.5087534", "0.5084289", "0.50761586", "0.5075268", "0.50683314", "0.5059823", "0.5058761", "0.5051844", "0.50501907", "0.50434166", "0.50417805", "0.5041161", "0.5031722", "0.5030006", "0.5028561", "0.50280863", "0.5024568", "0.50182295", "0.50180787", "0.501688", "0.50069374", "0.50046164", "0.49999228", "0.49993384", "0.49990475", "0.49982285" ]
0.0
-1
Create the frame. Cosntructor, a qui se inicializaran los componentes en estandar
public Round_Robin() { iniciaComponentes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public FrameDesign() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "public FrameControl() {\n initComponents();\n }", "public MercadoFrame() {\n initComponents();\n }", "public PilaFrame() {\n initComponents();\n }", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "public FrameOpcoesAgenda() {\n initComponents();\n }", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public FrameForm() {\n initComponents();\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public MainFrame() {\n initComponents();\n \n }", "public DashboardFrame() {\n WebLookAndFeel.install ();\n Controller = new Controller();\n initComponents();\n }", "private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}", "public POSFrame() {\n initComponents();\n }", "public NewFrame() {\n initComponents();\n }", "public NewJFrame() {\r\n initComponents();\r\n }", "public Mainframe() {\n initComponents();\n }", "public MainFrame() {\n super(\"Gestione Concessionaria\");\n this.initComponents();\n this.generaFasciaPrezzo();\n this.pack();\n this.setLocationRelativeTo(null);\n this.initPanels();\n this.ToggleMenu.addActionListener(this);\n }", "public FrameInsert() {\n initComponents();\n }", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public internalFrame() {\r\n initComponents();\r\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initComponents() {\r\n\r\n lbBurro = new javax.swing.JLabel();\r\n canvas1 = new java.awt.Canvas();\r\n canvas2 = new java.awt.Canvas();\r\n jInternalFrame2 = new javax.swing.JInternalFrame();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n Mostra = new javax.swing.JTextPane();\r\n jInternalFrame1 = new javax.swing.JInternalFrame();\r\n jButton5 = new javax.swing.JButton();\r\n jButton7 = new javax.swing.JButton();\r\n jButton8 = new javax.swing.JButton();\r\n jButton6 = new javax.swing.JButton();\r\n cbMidi = new javax.swing.JComboBox();\r\n jLabel4 = new javax.swing.JLabel();\r\n jButton3 = new javax.swing.JButton();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n JtmInicial = new javax.swing.JTextField();\r\n jtmFinal = new javax.swing.JTextField();\r\n jButton9 = new javax.swing.JButton();\r\n jpAngulo = new javax.swing.JProgressBar();\r\n jpDistancia = new javax.swing.JProgressBar();\r\n jpVelocidade = new javax.swing.JProgressBar();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n jLabel13 = new javax.swing.JLabel();\r\n jInternalFrame3 = new javax.swing.JInternalFrame();\r\n jLabel3 = new javax.swing.JLabel();\r\n edTempo = new javax.swing.JTextField();\r\n jLabel5 = new javax.swing.JLabel();\r\n edPos = new javax.swing.JTextField();\r\n jLabel2 = new javax.swing.JLabel();\r\n edId = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n edDis = new javax.swing.JTextField();\r\n edVel = new javax.swing.JTextField();\r\n jLabel6 = new javax.swing.JLabel();\r\n edMTempo = new javax.swing.JTextField();\r\n edMTempo2 = new javax.swing.JTextField();\r\n jLabel9 = new javax.swing.JLabel();\r\n edPtGoogle = new javax.swing.JTextField();\r\n jInternalFrame4 = new javax.swing.JInternalFrame();\r\n jButton1 = new javax.swing.JButton();\r\n jButton2 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n jSlider1 = new javax.swing.JSlider();\r\n CbMapa = new javax.swing.JCheckBox();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n jSeparator3 = new javax.swing.JSeparator();\r\n jPanel1 = new javax.swing.JPanel();\r\n GPSGoogle = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem1 = new javax.swing.JMenuItem();\r\n jMenuItem2 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenu3 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"HAPAX - GPSMIDI Conectado ao Servidor ***\");\r\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\r\n setFocusTraversalPolicyProvider(true);\r\n setFocusable(false);\r\n setForeground(java.awt.Color.white);\r\n\r\n lbBurro.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n lbBurro.setForeground(new java.awt.Color(255, 0, 51));\r\n lbBurro.setText(\"HAPAX GPS MIDI Client - Gerador de Eventos MIDI - GPS\");\r\n\r\n canvas1.setBackground(new java.awt.Color(255, 255, 51));\r\n canvas1.setForeground(java.awt.Color.black);\r\n canvas1.setVisible(false);\r\n\r\n jInternalFrame2.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame2.setTitle(\"Server\");\r\n jInternalFrame2.setMinimumSize(new java.awt.Dimension(86, 35));\r\n jInternalFrame2.setOpaque(true);\r\n jInternalFrame2.setRequestFocusEnabled(false);\r\n jInternalFrame2.setVisible(true);\r\n\r\n Mostra.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n Mostra.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\r\n Mostra.setFocusCycleRoot(false);\r\n Mostra.setRequestFocusEnabled(false);\r\n jScrollPane1.setViewportView(Mostra);\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame2Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame2.getContentPane());\r\n jInternalFrame2.getContentPane().setLayout(jInternalFrame2Layout);\r\n jInternalFrame2Layout.setHorizontalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 344, Short.MAX_VALUE)\r\n );\r\n jInternalFrame2Layout.setVerticalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\r\n );\r\n\r\n jInternalFrame1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\r\n jInternalFrame1.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame1.setIconifiable(true);\r\n jInternalFrame1.setResizable(true);\r\n jInternalFrame1.setTitle(\"MIDI\");\r\n jInternalFrame1.setLayer(1);\r\n jInternalFrame1.setVisible(true);\r\n jInternalFrame1.addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\r\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameOpened(evt);\r\n }\r\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameIconified(evt);\r\n }\r\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n });\r\n\r\n jButton5.setText(\"SC_A_80\");\r\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton5MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton7.setText(\"SC_D_82\");\r\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton7MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton8.setText(\"BC_V_83\");\r\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton8MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton6.setText(\"SC_V_81\");\r\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton6MouseClicked(evt);\r\n }\r\n });\r\n\r\n cbMidi.setAutoscrolls(true);\r\n cbMidi.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n cbMidiItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\r\n jLabel4.setText(\" Dispositivo MIDI\");\r\n\r\n jButton3.setBackground(javax.swing.UIManager.getDefaults().getColor(\"InternalFrame.borderLight\"));\r\n jButton3.setText(\"TesteMIDI\");\r\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton3MouseClicked(evt);\r\n }\r\n });\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel1.setText(\"Inicial\");\r\n\r\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel10.setText(\"Final\");\r\n\r\n JtmInicial.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n JtmInicial.setText(\"80\");\r\n JtmInicial.setAutoscrolls(false);\r\n\r\n jtmFinal.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n jtmFinal.setText(\"83\");\r\n jtmFinal.setAutoscrolls(false);\r\n\r\n jButton9.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jButton9.setText(\"Set\");\r\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton9MouseClicked(evt);\r\n }\r\n });\r\n\r\n jpAngulo.setBackground(new java.awt.Color(255, 255, 255));\r\n jpAngulo.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpAngulo.setForeground(new java.awt.Color(153, 255, 0));\r\n jpAngulo.setMaximum(360);\r\n jpAngulo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpAngulo.setString(\"0 graus\");\r\n jpAngulo.setStringPainted(true);\r\n\r\n jpDistancia.setBackground(new java.awt.Color(255, 255, 255));\r\n jpDistancia.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpDistancia.setForeground(new java.awt.Color(0, 102, 255));\r\n jpDistancia.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpDistancia.setString(\"0 m\");\r\n jpDistancia.setStringPainted(true);\r\n\r\n jpVelocidade.setBackground(new java.awt.Color(255, 255, 255));\r\n jpVelocidade.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpVelocidade.setForeground(new java.awt.Color(255, 0, 51));\r\n jpVelocidade.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpVelocidade.setString(\"0 Km/h\");\r\n jpVelocidade.setStringPainted(true);\r\n\r\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel11.setText(\"A\");\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel12.setText(\"D\");\r\n\r\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel13.setText(\"V\");\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame1Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame1.getContentPane());\r\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\r\n jInternalFrame1Layout.setHorizontalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(17, 17, 17)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel1)\r\n .add(jLabel10))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jtmFinal)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jButton9))\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE))\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 208, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(27, 27, 27)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(91, 91, 91)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(jButton6)\r\n .add(jButton8)))\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton7)\r\n .add(jButton5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 77, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(91, 91, 91)))))\r\n .add(18, 18, 18))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jLabel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jInternalFrame1Layout.linkSize(new java.awt.Component[] {jButton5, jButton6, jButton7, jButton8}, org.jdesktop.layout.GroupLayout.HORIZONTAL);\r\n\r\n jInternalFrame1Layout.setVerticalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jLabel4)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel1)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel10)\r\n .add(jtmFinal, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(35, 35, 35)\r\n .add(jButton9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(35, 35, 35)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton5)\r\n .add(jButton6))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton7)\r\n .add(jButton8))\r\n .add(16, 16, 16)\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(18, 18, 18)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel11))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel12))\r\n .add(14, 14, 14)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel13))\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jInternalFrame3.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame3.setIconifiable(true);\r\n jInternalFrame3.setResizable(true);\r\n jInternalFrame3.setTitle(\"Utilitys\");\r\n jInternalFrame3.setVisible(true);\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel3.setText(\"Tempo\");\r\n\r\n edTempo.setText(\"1000\");\r\n edTempo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n edTempoActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel5.setText(\"Pos\");\r\n\r\n edPos.setText(\"0\");\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel2.setText(\"ServerId\");\r\n\r\n edId.setText(\"l2.dat\");\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel7.setText(\"Vel. Max.\");\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel8.setText(\"Dis. Max.\");\r\n\r\n edDis.setText(\"5\");\r\n\r\n edVel.setText(\"3\");\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel6.setText(\"Tempo Msg\");\r\n\r\n edMTempo.setText(\"5000\");\r\n\r\n edMTempo2.setText(\"260\");\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel9.setText(\"Pts\");\r\n\r\n edPtGoogle.setText(\"60\");\r\n\r\n jInternalFrame4.setBackground(new java.awt.Color(255, 255, 153));\r\n jInternalFrame4.setBorder(javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, new java.awt.Color(255, 204, 51)));\r\n jInternalFrame4.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame4.setIconifiable(true);\r\n jInternalFrame4.setResizable(true);\r\n jInternalFrame4.setTitle(\"Comandos\");\r\n jInternalFrame4.setVisible(true);\r\n\r\n jButton1.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/tn2.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton1.setBorder(new javax.swing.border.MatteBorder(null));\r\n jButton1.setDefaultCapable(false);\r\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\r\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton1MouseClicked(evt);\r\n }\r\n });\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton2.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/pause.JPG\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton2MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton4.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/stop.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton4MouseClicked(evt);\r\n }\r\n });\r\n\r\n jSlider1.setBackground(javax.swing.UIManager.getDefaults().getColor(\"ToolBar.dockingForeground\"));\r\n jSlider1.setMaximum(20);\r\n jSlider1.setMinimum(5);\r\n jSlider1.setValue(14);\r\n\r\n CbMapa.setBackground(new java.awt.Color(255, 51, 51));\r\n CbMapa.setFont(new java.awt.Font(\"Tahoma\", 0, 18));\r\n CbMapa.setForeground(new java.awt.Color(0, 51, 255));\r\n CbMapa.setText(\"Mapa\");\r\n CbMapa.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\r\n CbMapa.setMargin(new java.awt.Insets(0, 0, 0, 0));\r\n CbMapa.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n CbMapaMouseClicked(evt);\r\n }\r\n });\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame4Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame4.getContentPane());\r\n jInternalFrame4.getContentPane().setLayout(jInternalFrame4Layout);\r\n jInternalFrame4Layout.setHorizontalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jSlider1, 0, 0, Short.MAX_VALUE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 64, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 86, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n );\r\n jInternalFrame4Layout.setVerticalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSlider1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame3Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame3.getContentPane());\r\n jInternalFrame3.getContentPane().setLayout(jInternalFrame3Layout);\r\n jInternalFrame3Layout.setHorizontalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jInternalFrame4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(26, 26, 26)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 88, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel5)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel2)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edId)))\r\n .add(58, 58, 58)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel7)\r\n .add(jLabel8)\r\n .add(jLabel6))\r\n .add(20, 20, 20)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 48, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, edDis)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame3Layout.createSequentialGroup()\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(45, Short.MAX_VALUE))\r\n );\r\n jInternalFrame3Layout.setVerticalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame4)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel6)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel7)\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel9)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel8)\r\n .add(edDis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel2)\r\n .add(edId, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel3)\r\n .add(jLabel5)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n\r\n GPSGoogle.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n GPSGoogle.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://maps.google.com/staticmap?center=-21.7566133,-41.331430&zoom=15&size=600x500&key=ABQIAAAANfHaNxB2EEc7ZYvIOCXAohTCRf8s8QHhhExYFAkAHu8ZlJqlqRR7p2SmTf-HSf3XPv6G1SGPptN5QA\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n GPSGoogle.setVerticalAlignment(javax.swing.SwingConstants.TOP);\r\n GPSGoogle.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);\r\n\r\n jMenuBar1.setOpaque(false);\r\n\r\n jMenu1.setText(\"Servidor\");\r\n\r\n jMenuItem1.setText(\"Start\");\r\n jMenu1.add(jMenuItem1);\r\n\r\n jMenuItem2.setText(\"Resume\");\r\n jMenu1.add(jMenuItem2);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"Exibir Janelas\");\r\n jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu2MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"Performace\");\r\n jMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu3MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu3);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .addContainerGap(42, Short.MAX_VALUE)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 806, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(145, 145, 145)\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(10, 10, 10))\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(12, 12, 12)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(4292, 4292, 4292)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(515, 515, 515)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 598, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(3637, 3637, 3637))\r\n .add(layout.createSequentialGroup()\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(741, 741, 741)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 922, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(1368, 1368, 1368)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))))\r\n .add(layout.createSequentialGroup()\r\n .add(98, 98, 98)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 583, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(9621, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(4, 4, 4)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .add(23, 23, 23)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 393, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(layout.createSequentialGroup()\r\n .add(355, 355, 355)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 528, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(25, 25, 25)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(20, 20, 20))\r\n .add(layout.createSequentialGroup()\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)))\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 447, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(14, 14, 14)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(8144, Short.MAX_VALUE))\r\n );\r\n\r\n pack();\r\n }", "public Conteo() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "public addStFrame() {\n initComponents();\n }", "public BookingFrame() {\r\n try {\r\n jbInit();\r\n } catch (Exception exception) {\r\n exception.printStackTrace();\r\n }\r\n }", "public NewJFrame() {\n Connect();\n initComponents();\n }", "public NewRoomFrame() {\n initComponents();\n }", "public TelaCadastro1() {\n \n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "public frameCliclistas() {\n initComponents();\n setLocationRelativeTo(this);\n show_ciclistas();\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "public FramePrincipal() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "public frmacceso() {\n initComponents();\n }", "public MenuFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public TifViewFrame() {\n initComponents();\n }", "public MainFrame() {\n\t\tsuper(\"Contry Detail\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetPreferredSize(new Dimension(450, 300));\n\t\tsetResizable(false);\n\t\t\n\t\tinitComponents();\n\t\t\n\t\tcontroller = new Service(this);\n\t}", "public NewJFrame() {\n initComponents();\n \n }", "public FramePrincipal() {\r\n initComponents();\r\n }", "public BaseFrame() {\n initComponents();\n }", "public createclass() {\n initComponents();\n this.setLocationRelativeTo(null);\n getdata();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public MiFrame2() {\n initComponents();\n }", "protected HFrame(){\n\t\tinit();\n\t}", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "public void buildFrame();", "public CadastroComplemento() {\n initComponents();\n \n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new GridLayout(0, 2, 20, 15));\n\t\t\n\t\tJLabel Nombre = new JLabel(\"Nombre\");\n\t\tframe.getContentPane().add(Nombre);\n\t\t\n\t\ttextNombre = new JTextField();\n\t\tframe.getContentPane().add(textNombre);\n\t\ttextNombre.setColumns(10);\n\t\t\n\t\tJLabel Apellidos = new JLabel(\"Apellidos\");\n\t\tframe.getContentPane().add(Apellidos);\n\t\t\n\t\ttextApellidos = new JTextField();\n\t\tframe.getContentPane().add(textApellidos);\n\t\ttextApellidos.setColumns(10);\n\t\t\n\t\tLocalidad = new JLabel(\"Localidad\");\n\t\tframe.getContentPane().add(Localidad);\n\t\t\n\t\ttextLocalidad = new JTextField();\n\t\tframe.getContentPane().add(textLocalidad);\n\t\ttextLocalidad.setColumns(10);\n\t\t\n\t\tCiudad = new JLabel(\"Ciudad\");\n\t\tframe.getContentPane().add(Ciudad);\n\t\t\n\t\tcomboBox = new JComboBox();\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"Jaén\", \"Cordoba\", \"Sevilla \", \"Granada\", \"Huelva\", \"Madrid\"}));\n\t\tframe.getContentPane().add(comboBox);\n\t\t\n\t\tbtnNewButton = new JButton(\"New button\");\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tbtnNewButton_1 = new JButton(\"New button\");\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t}", "public BuscarProvedor() {\n initComponents();\n }", "public Badminton()\n { \n frame.add(new Board()); \n frame.setSize(900, 900);\n frame.setResizable(false);\n frame.setTitle(\"PE Class\");\n //frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "public Cadastros() {\n initComponents();\n }", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "public holdersframe() {\n initComponents();\n }", "public FichaDeContactoJFrame() {\n initComponents();\n }", "public Captura() {\n initComponents();\n }", "private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}", "public FrameJogo() {\n initComponents();\n createBufferStrategy(2);\n Thread t = new Thread(this);\n t.start();\n }", "public SystemFrame() {\n initComponents();\n }", "public Cadastro() {\n initComponents();\n }", "public FrameCadastro(String tipo[]){\r\n\t\tsuper(\"ApartManager-Cadastro\");\r\n\t\t\r\n\t\tPanelCadastro panelC = new PanelCadastro(tipo);\r\n\t\t\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetSize(700, 700);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t\tsetResizable(false);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tsetContentPane(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\tpanelC.setBounds(0, 0, 700, 700);\r\n\t\tpanel.add(panelC);\r\n\t\tpanel.setVisible(true);\r\n\t}", "public xinxiNewJFrame() {\n initComponents();\n }", "public NewConnectionFrame() {\n initComponents();\n }", "public ClientFrame() {\n\t\tinitComponents();\n\t}", "public Botonera() {\n initComponents();\n }", "public MFrame() {\n this.setTitle(\"Sistema Punto de Venta\");\n this.setLocationRelativeTo(null);\n this.setSize(new Dimension(800,600));\n this.setResizable(true);\n this.setVisible(true);\n initComponents();\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }", "public FrameCriarListadeProdutos() {\n initComponents();\n }", "public MyFrame() {\n\t\tinitializeGui();\n\t\taddMouseListener(this);\n\t\taddComponentListener(this);\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "public PuzzleFrame() {\n initComponents();\n this.setLayout(new BorderLayout());\n this.setTitle(\"15-Puzzle - Team Gorila - Praktikum PBO\");\n\n // Mengatur ukuran default tile menjadi 4 x 4\n panelSize = 4;\n initPanel();\n }", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public Creacion() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public GameFrame() {\n initComponents();\n setTitle(\"Ultra Generic Tower Defence by Jorzi\");\n }", "public void init(){\n\t\t\n\t\t// Definition general de la fenetre\n\t\tthis.setLayout(new BorderLayout());\n\t\t\n\t\t/*********** PARTIE HAUTE *************/\n\t\t\n\t\t// JPanel qui va contenir l'interface de controle\n\t\tJPanel panH=new JPanel();\n\t\t\n\t\t// Ajout de la zone de saisie du mot binaire\n\t\tpanH.add(new JLabel(\"Mot binaire:\"));\n\t\tentree=new JTextField(\"1100110101\",10);\n\t\tpanH.add(entree);\n\t\t\n\t\t// Ajout de la liste de selection du codage\n\t\tcodage=new JComboBox();\n\t\tcodage.addItem(\"NRZ\");\n\t\tcodage.addItem(\"NRZI\");\n\t\tcodage.addItem(\"Manchester\");\n\t\tcodage.addItem(\"Manchester differentiel\");\n\t\tcodage.addItem(\"Miller\");\n\t\t\n\t\tpanH.add(codage);\n\t\t\n\t\t\n\t\t// Ajout du bouton d'execution du codage\n\t\tconvertir=new JButton(\"Convertir\");\n\t\tconvertir.addActionListener(new EcouteurBouton());\n\t\tpanH.add(convertir);\n\t\t\n\t\t\n\t\tadd(panH,BorderLayout.NORTH);\n\t\t\n\t\t\n\t\t/*********** PARTIE CENTRALE *************/\n\t\t\n\t\t// Ajout de la zone d'affichage de la solution\n\t\tzoneGraph=new Dessin();\n\t\tadd(zoneGraph);\n\t}", "private void initComponents(String title) {\n\n this.setTitle(title);\n this.setPreferredSize(new Dimension(X,Y));\n this.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));\n\n this.add(drawPanel);\n this.add(speedometerView);\n this.add(addRemoveCarsView);\n add(buttonsView);\n\n // Make the frame pack all it's components by respecting the sizes if possible.\n this.pack();\n\n // Get the computer screen resolution\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n // Center the frame\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n // Make the frame visible\n this.setVisible(true);\n // Make sure the frame exits when \"x\" is pressed\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "public JFcotiza() {\n initComponents();\n }", "public FrameProduto() { \n this.getContentPane().setBackground(new Color(47, 64, 80));\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public PrincipalFrame() {\n initComponents();\n }", "public QLHocSinhJFrame() {\n initComponents();\n }", "public mainframe() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public FramePrincipal() {\n\t\tinitComponents();\n\t}", "public busdet() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }" ]
[ "0.76077974", "0.7592106", "0.7492534", "0.7492534", "0.7421173", "0.7413092", "0.7296346", "0.7279519", "0.7276111", "0.7212974", "0.718156", "0.7181115", "0.7169729", "0.7120338", "0.70910007", "0.7065258", "0.70635235", "0.7056774", "0.7053451", "0.7053086", "0.7050226", "0.70257634", "0.70255846", "0.69850546", "0.69783866", "0.69741404", "0.6968284", "0.69529384", "0.6941591", "0.6926161", "0.69205296", "0.68926257", "0.6892461", "0.68905246", "0.6887849", "0.6887098", "0.68862575", "0.6878463", "0.6873715", "0.6863372", "0.6861829", "0.6861227", "0.68573797", "0.6857377", "0.6855103", "0.68527126", "0.68527126", "0.68527126", "0.68527126", "0.68527126", "0.68527126", "0.68527126", "0.68523437", "0.68506306", "0.6848919", "0.68433535", "0.68421644", "0.6836404", "0.68331814", "0.6828068", "0.68188334", "0.6818079", "0.681604", "0.6814832", "0.68108076", "0.6806748", "0.68066514", "0.6797255", "0.67962897", "0.6793421", "0.6788301", "0.6786976", "0.67695653", "0.6769309", "0.6764213", "0.6762946", "0.6759646", "0.6759494", "0.67544687", "0.67503625", "0.67451036", "0.67438", "0.674352", "0.67425984", "0.6740062", "0.6739295", "0.6738553", "0.6737505", "0.6736331", "0.67339885", "0.6733921", "0.67293733", "0.67259765", "0.6718486", "0.6718025", "0.67180085", "0.67177606", "0.6717516", "0.671153", "0.6708977", "0.6707783" ]
0.0
-1
Lennando de los primeros componentes que cuentan con la informacion
void iniciaPanel() { for (int i = 0; i < 5; i++) { for (int j = 0; j < 3; j++) { info[i][j] = new JLabel(""); info[i][j].setBorder(new LineBorder(new Color(0, 0, 0), 1, true)); info[i][j].setOpaque(true); if(i==0) { info[i][j].setBackground(UIManager.getColor("List.selectionBackground")); } if(i==1) { info[i][j].setBackground(Color.yellow); } if(i==2) { info[i][j].setBackground(Color.blue); } if(i==3) { info[i][j].setBackground(Color.red); } if(i==4) { info[i][j].setBackground(Color.gray); } panel.add(info[i][j]); } } info[0][0].setText("PROCESOS"); info[1][0].setText("P1"); info[2][0].setText("P2"); info[3][0].setText("P3"); info[4][0].setText("P4"); info[0][1].setText("TIEMPO DE ARRIBO/LLEGADA"); info[0][2].setText("RAFAGAS DE USO DEL CPU"); //llenado donde estara la simulacion for (int i = 0; i < ns; i++) { for (int j = 0; j < ms; j++) { simulacion[i][j] = new JLabel(""); simulacion[i][j].setBorder(new LineBorder(new Color(0, 0, 0), 1, true)); simulacion[i][j].setOpaque(true); simulacion[i][j].setBackground(Color.WHITE); simulacion[i][j].setVisible(false); simulacion[i][j].setFont(fuente2); panel_2.add(simulacion[i][j]); } } llenainfo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int contaPercorre() {\n\t\tint contaM = 0;\n\t\tCampusModel aux = inicio;\n\t\tString r = \" \";\n\t\twhile (aux != null) {\n\t\t\tr = r + \"\\n\" + aux.getNomeCampus();\n\t\t\taux = aux.getProx();\n\t\t\tcontaM++;\n\t\t}\n\t\treturn contaM;\n\t}", "long getNombreElements();", "public int getNumberOfComponents();", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public Integer cantidadPersonasEnMicro(){\r\n return pasajeros.size();\r\n }", "@Override\n\tpublic long unidadesComida() {\n\t\treturn 3;\n\t}", "public int get_length();", "public void writeLength(){\n\t\tfor(int i = 0; i < DIFF_CHARACTERS; i++){\n\t\t\tm_arraylists[i].length();\n\t\t}\n\t}", "public int length(){\n return pilha.size();\n }", "@Transient\n\tpublic String getNumerosREcibos(){\n\t\tString numerosrecibos=\" \";\n\t\n\t\tfor (ReciboDocumentoFiscal recibo : documento.getRecibos()) {\n\t numerosrecibos= numerosrecibos+recibo.getRecibo().getControl()+\" / \";\t\t\n\t\t}\n\t\treturn numerosrecibos;\n\t}", "int sizeOfControlPersonsArray();", "public int getLength(){\n return sequence.length(); \n\t}", "int sizeOfControlPersonsExtArray();", "@Override\n public int getNumComponents()\n {\n return components.size();\n }", "protected abstract int getLength();", "private int calcWhiteSpaces(Set<Room> rooms) {\n int n = 0;\n for (Room room : rooms) {\n if (room.getId() > n) {\n n = room.getId();\n }\n }\n for (Room room : rooms) {\n if (room.getObjects().toString().length() > n) {\n n = room.getObjects().toString().length();\n }\n }\n\n for (Room room : rooms) {\n if (room.getName().length() > n) {\n n = room.getName().length();\n }\n }\n\n return n + 3; // longest word + extra spaces\n }", "public int length() {\n return myFormals.size();\n }", "public String[] verNumerosDeCuetas (){\r\n\t\tString[] cuentasPersona = new String[0];\r\n\t\tfor(int i =0;i<cuentas.length;i++){\r\n\t\t\tcuentasPersona=Arrays.copyOf(cuentasPersona, cuentasPersona.length+1);\r\n\t\t\tcuentasPersona[i]=cuentas[i].getNumeroCuenta();\r\n\t\t}\r\n\t\treturn cuentasPersona;\r\n\t}", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "public int getLength();", "public int getLength();", "public int getLength();", "public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}", "public long length() {\n\tint nBits;\n\tlong x, y;\n\tlong length = 7 + Math.max(minBitsS(toFixed(getTranslateX())),\n\t\t\t\t minBitsS(toFixed(getTranslateY())));\n\tif (hasScale()) {\n\t length += 5 + Math.max(minBitsS(toFixed(getScaleX())),\n\t\t\t\t minBitsS(toFixed(getScaleY())));\n\t}\n\tif (hasRotate()) {\n\t length += 5 + Math.max(minBitsS(toFixed(getRotate1())),\n\t\t\t\t minBitsS(toFixed(getRotate2())));\n\t}\n\treturn length;\n }", "@Override\n\tpublic int contar() {\n\t\treturn comision.size();\n\t}", "LengthDistinct createLengthDistinct();", "@Override\n\tpublic String getCapacity() {\n\t\treturn \"ÔØÈËÊý£º\"+humanNum+\"ÈË\";\n\t}", "int getNombreColonnesPlateau();", "public int length(){\n\t\treturn this.tamanho;\n\t}", "public int length() {\n/* 46 */ return (this.value != null) ? 1 : 0;\n/* */ }", "int getTextLength();", "public int length() {\n return 0; // REPLACE THIS LINE WITH THE RIGHT ANSWER.\n }", "public int length() { return 1+maxidx; }", "public int cuantosCursos(){\n return inscripciones.size();\n }", "static int size_of_cm(String passed){\n\t\treturn 3;\n\t}", "public int getTextLength();", "public int components() {\n return numOfComponents;\n }", "int countComponents() throws Exception;", "private int[] getWidths(ArrayList<ArrayList<String>> e){\n final int PIXEL_PER_CHAR = 75;\n\n int[][] nChar = new int[e.size()][e.get(0).size()];\n int[] lengths = new int[e.get(0).size()];\n for(int i = 0; i < e.get(0).size(); i++){\n lengths[i] = 300;\n }\n\n for(int i = 0; i < e.size(); i++){\n for (int j = 0; j < e.get(i).size(); j++){\n nChar[i][j] = e.get(i).get(j).length();\n }\n }\n\n for(int i = 0; i < e.size(); i++){\n for (int j = 0; j < e.get(i).size(); j++){\n if(lengths[j] < (nChar[i][j]*PIXEL_PER_CHAR)){\n lengths[j] = (nChar[i][j]*PIXEL_PER_CHAR);\n }\n }\n }\n\n return lengths;\n }", "public abstract int getMaxLength();", "int sizeOfDescriptionArray();", "private int length() { return length; }", "public static void IngresoDatos(){\n int IFila=0,ICol=0;\n int INota;\n for(IFila=0;IFila<10;IFila++)\n {\n StrNotas[IFila][0]=JOptionPane.showInputDialog(null, \"Ingrse nombre del alumno:\");\n INota=LlenadoRandom(0,100);\n StrNotas[IFila][1]=Integer.toString(INota);\n if(INota<61)\n StrNotas[IFila][2]=\"Perdio\";\n else\n StrNotas[IFila][2]=\"gano\";\n }\n }", "public int length() {\n return parts.length;\n }", "public int getLength() {return length;}", "public void letras() {\n caracteres = 32 - txtMensaje.getText().length(); //Indica la catidad de carcteres\n //disponibles. En el LCD solo se permite imprimir 32 caracteres.\n\n if (caracteres <= 0) { //Si la cantidad de caracteres se ha agotado... \n lbCaracteres.setText(\"Caracteres disponibles: 0\"); //Se imprime que la cantidad de \n //caracteres disponibles es 0\n String cadena = \"\"; //Se declara la variable que guardará el mensaje a enviar\n cadena = txtMensaje.getText(); //Se asigna el texto del TextField a la variable cadena\n cadena = cadena.substring(0, 32); //Se evita que por alguna razón la variable contenga\n //más de 32 caracteres, utilizando el substring que crea un string a partir de uno mayor.\n txtMensaje.setText(cadena); //se regresa la cadena con 32 caracteres al TextField\n } else {\n //Si la cantidad de caracteres disponibles es ayor a 0 solamente se imprimirá la cantidad\n //de caracteres disponibles\n lbCaracteres.setText(\"Caracteres disponibles: \" + (caracteres));\n }\n }", "public int minLen() {\n if (compositions == null) {\n return Math.min(maxLen(getAllele(0)), maxLen(getAllele(1)));\n } else {\n if (compositions.isEmpty())\n return 0;\n int minLen = compositions.get(0).minLen();\n for (Variant c : compositions) {\n minLen = Math.min(minLen, c.minLen());\n }\n return minLen;\n }\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "private Integer getNGramLength(Long[][] pasMat){\n\t\tInteger result = 0;\n\t\tfor(int i=0; i<pasMat.length; i++){\n\t\t\tif(pasMat[i] != null)\n\t\t\t\tresult++;\n\t\t}\n\t\treturn result;\n\t}", "public int getLength() { return length;\t}", "public abstract int getLength();", "public abstract int getLength();", "static int size_of_cpo(String passed){\n\t\treturn 3;\n\t}", "private int length() {\n\t\treturn this.lenght;\n\t}", "public abstract int numOfEmptyToReproduce();", "public int conta()\n\t{\n\t\treturn posicoes.size();\n\t}", "protected int getLength() {\n return length;\n }", "@Override\r\n\tpublic int getLength() {\n\t\treturn 0;\r\n\t}", "private String preparaMensaje(String mensaje){\n String binario;\n int longitud = 0;\n String bi=\"\";\n longitud = mensaje.length() + 4;\n for( int i = 15; i>=0; i--){\n bi += ( ( ( longitud & ( 1<<i ) ) > 0 ) ? \"1\" : \"0\" ) ;\n }\n return binario = cadenaABinario(\" \") + bi + cadenaABinario(mensaje);\n }", "static int size_of_cpe(String passed){\n\t\treturn 3;\n\t}", "public double length() {\n return Vecteur.add(this.OB, this.OA.opposé()).length();\n }", "public void mostrarNumeroTareasPendientes(){\n System.out.println(tareas.size());\n }", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "private static void findLongCommSubs() {\n\n for(Player player : inputPlayersList){\n player.setLongCommSubsCounter(LongCommSubsForTwoStrings(player.getTicketNumber(), winningNumber).length());\n }\n }", "public int m18992OooO00o() {\n return this.f20240OooO00o.length();\n }", "int minLength();", "public int length() {\n return (isSupportYear()\n ? mYear.length : 0)\n + (isSupportMonth()\n ? mMonth.length : 0)\n + (isSupportDay()\n ? mDay.length : 0)\n + (isSupportHours()\n ? mHours.length : 0)\n + (isSupportMinutes()\n ? mMinutes.length : 0)\n + (isSupportSeconds()\n ? mSeconds.length : 0);\n }", "private void setAllParameters(int len) {\n\t\t\tshowUPLMN = new String[len] ;\n\t\t\toriginalUPLMN = new String[len] ;\n\t\t\tstrUorG = new String[len] ;\n\t\t\tpart = new byte[len][];\n\t\t\torder = new int[len];\n\t\t\tfor(int i=0;i<len;i++){\n\t\t\t\t part[i] = new byte[6];\n\t\t\t}\n\t\t}", "public static int sizeOf()\n {\n return 4;\n }", "public int cuentaCelulas()\r\n\t{\r\n\t\treturn this.dondeHayCelulas().length;\r\n\t}", "public int getNumberOfComponents() {\n return components;\n }", "int getPartsCount();", "int getPartsCount();", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public abstract int length();", "public abstract int length();", "protected int getLength() {\n int length = super.getLength(); //see if it is defined in the ncml\n if (length < 0) {\n double[] t = getTimes();\n if (t != null) length = t.length;\n else length = 0;\n }\n return length;\n }", "protected int getLength() {\n\t\treturn this.length;\n\t}", "public int calculerKgsNourritureParJour(){\r\n\t\treturn noms.size() * 10;\r\n\t}", "public void determineCommareaLength(BaseEnvironment env)\r\n \t{\r\n \t\tif(env == null || env.getCommarea() == null)\r\n \t\t{\r\n \t\t\tm_varEIBCALEN.set(0) ;\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tm_varEIBCALEN.set(env.getCommarea().getLength()) ;\r\n \t\t}\r\n \t}", "private int size() {\n\t\treturn cerraduras.size();\n\t}", "public short computeLength() {\n \tshort len = (short)(CORE_LENGTH + super.computeLength());\n \treturn len;\n }", "@Override\n public int size() {//por Niveles\n if (this.esArbolVacio()) {\n return 0; //Arbol Vacio\n }\n int cantidadDeNodos = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n cantidadDeNodos++;\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return cantidadDeNodos; //Lista con los datos(En el orden de este recorrido)\n }", "long getFullMessageLength();", "public int getMaxLength();", "int size() {\n return _letters.length();\n }", "int sizeOfGuideArray();", "public int getLength(){\n return this.length;\n }" ]
[ "0.6031212", "0.58794624", "0.587009", "0.5787504", "0.5786561", "0.571665", "0.5680058", "0.558781", "0.5578501", "0.5569819", "0.5555468", "0.5526519", "0.5514657", "0.5504661", "0.5490384", "0.54882747", "0.5487083", "0.5486918", "0.5451396", "0.5451396", "0.5451396", "0.5451396", "0.5451396", "0.5451396", "0.5451396", "0.5451396", "0.5451396", "0.5451396", "0.5446174", "0.5446174", "0.5446174", "0.54439235", "0.54322463", "0.5425887", "0.54181045", "0.541385", "0.54127556", "0.53993505", "0.53880274", "0.53767073", "0.53690845", "0.5366353", "0.5338095", "0.5336012", "0.5332665", "0.5299045", "0.52989507", "0.5285049", "0.5282964", "0.52822196", "0.5282101", "0.5281378", "0.5281055", "0.52702886", "0.52700204", "0.5267994", "0.5263671", "0.52619076", "0.52563167", "0.52550054", "0.52550054", "0.5253511", "0.52490675", "0.524448", "0.52356887", "0.52304494", "0.5229781", "0.52291334", "0.52254105", "0.52234", "0.52177554", "0.52175426", "0.52175426", "0.52175426", "0.52175426", "0.52175426", "0.52140063", "0.5210654", "0.52036643", "0.5199532", "0.5191445", "0.51909035", "0.5189158", "0.51881623", "0.5182903", "0.5182903", "0.51812357", "0.5180214", "0.5180214", "0.51717466", "0.5169866", "0.51663536", "0.5165718", "0.51615673", "0.51592016", "0.51524705", "0.5149288", "0.51468676", "0.5135416", "0.51324916", "0.5131889" ]
0.0
-1
Eventos para los botones (Personalidad)
@Override//captura todas las acciones de los botones y realiza la funcion de cada uno public void actionPerformed(ActionEvent e) { if (e.getSource() == btnNuevaSimulacion ) { nuevaSimulacion(); }else if(e.getSource()==btnComenzarSimulacion) { if(bandera ==false) { JOptionPane.showMessageDialog(null, "Establesca una rafaga de tiempo primero"); } else { try { tiempo = Integer.parseInt(textRafaga.getText()); if(tiempo<1||tiempo>10) { JOptionPane.showMessageDialog(null, "Ingrese un numero del 1 al 10"); } else { iniciaSimulacion(); } }catch(Exception e2) { JOptionPane.showMessageDialog(null, "Ingrese un numero valido del 1 al 10"); } } }else if(e.getSource()==btnEstablecerRafaga) { if(textRafaga.getText().isEmpty()) { JOptionPane.showMessageDialog(null, "Establezca una rafaga de tiempo primero"); } else { bandera = true; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inicializarBotones() {\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'login'\n\t\tthis.controladorLogin = new ControladorLogin(vista, modelo);\n\t\tthis.controladorLogin.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'registro'\n\t\tthis.controladorRegistro = new ControladorRegistro(vista, modelo);\n\t\tthis.controladorRegistro.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'bienvenida'\n\t\tthis.controladorBienvenida = new ControladorBienvenida(vista, modelo);\n\t\tthis.controladorBienvenida.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_billete'\n\t\tthis.controladorBillete = new ControladorBillete(vista, modelo);\n\t\tthis.controladorBillete.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_fecha'\n\t\tthis.controladorFecha = new ControladorFecha(vista, modelo);\n\t\tthis.controladorFecha.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'detalles_compra'\n\t\tthis.controladorDetalles = new ControladorDetalles(vista, modelo);\n\t\tthis.controladorDetalles.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'pago'\n\t\tthis.controladorPago = new ControladorPago(vista, modelo);\n\t\tthis.controladorPago.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel \"fin_pago\"\n\t\tthis.controladorFinPago = new ControladorFinPago(vista, modelo);\n\t\tthis.controladorFinPago.addListeners();\n\t}", "private void configurarEventos() {\n\n btnVoltar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //OBJETIVO: fecha a tela atual\n VerPessoaActivity.this.finish();\n }\n });\n }", "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "protected void CriarEventos() {\r\n\r\n\r\n //CRIANDO EVENTO NO BOTÃO SALVAR\r\n buttonSalvar.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Salvar_onClick();\r\n }\r\n });\r\n\r\n //CRIANDO EVENTO NO BOTÃO VOLTAR\r\n buttonVoltar.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Intent intentMainActivity = new Intent(getApplicationContext(), CadastrarActivity.class);\r\n startActivity(intentMainActivity);\r\n finish();\r\n }\r\n });\r\n }", "@Override\r\n\tpublic void onAyuda() {\n\t\t\r\n\t}", "public void eventos() {\n btnAbrir.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n btnAbrirActionPerformed(evt);\n }\n });\n }", "@Override\n\tpublic void enteradoCambioMensaje(EventObject event) {\n\t\tList<MensajeWhatsApp> newMsgs = ((MensajeEvent) event).getNewMensajes();\n\t\tList<MensajeWhatsApp> oldMsgs = ((MensajeEvent) event).getOldMensajes();\n\t\t// Makes no sense to identify the contact as the person's actual name!\n\t\tif (!newMsgs.equals(oldMsgs)) {\n\t\t\tOptional<MensajeWhatsApp> WAmsg = newMsgs.stream()\n\t\t\t\t\t.filter(msg -> !msg.getAutor().equals(currentUser.getName())).findFirst();\n\t\t\tif (WAmsg != null) {\n\t\t\t\tString contactName = WAmsg.get().getAutor();\n\t\t\t\tOptional<Contacto> contact = currentUser.getContacts().stream()\n\t\t\t\t\t\t.filter(c -> c.getName().equals(contactName)).findFirst();\n\t\t\t\tif (contact.isPresent()) {\n\t\t\t\t\tnewMsgs.stream().forEach(msg -> {\n\t\t\t\t\t\tint speakerId = 0;\n\t\t\t\t\t\tif (msg.getAutor().equals(currentUser.getName()))\n\t\t\t\t\t\t\tspeakerId = currentUser.getId();\n\t\t\t\t\t\telse if (msg.getAutor().equals(contactName))\n\t\t\t\t\t\t\tspeakerId = contact.get().getId();\n\t\t\t\t\t\tif (speakerId != 0) {\n\t\t\t\t\t\t\taddMessage(msg.getTexto(), 0, contact.get());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void eventos()\n\t{\n\t\tvuelos.addActionListener(new ActionListener()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\t\t\tif(v!=null)\n\t\t\t\t{\n\t\t\t\t\tllenarPasabordos(v.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusActivo());\n\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}", "public void action() {\n\t\t\n\t\tjugar.setOnAction(f->{\n\n\t\t\tMain.pantallaPersonaje();\n\t\t});\n\t\n\t\tpuntajes.setOnAction(f->{\n\t\t\tMain.pantallaPuntajes();\n\t\t});\n\t\n\t\n\t}", "public interface OnAvisoInteractionListener {\n Usuario getUsuario();\n}", "private void delegate(MessageEvent event) throws IOException {\n MessageChannel channel = event.getChannel();\n BullyAlgorithmParticipantImpl.Message messageType = BullyAlgorithmParticipantImpl.Message.valueOf(event.getActionCommand());\n\n int senderProcessId = 0;\n try {\n senderProcessId = channel.readNextInt();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n switch(messageType) {\n case Election:\n self.onElectionMessage(senderProcessId);\n break;\n case Answer:\n self.onAnswerMessage(senderProcessId);\n break;\n case Victory:\n self.onVictoryMessage(senderProcessId);\n break;\n }\n }", "private void announcementBtnListener() {\n announcementBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new AnnouncementsScreen(game));\n }\n });\n }", "void pharmacyListener(){\n \n }", "public void onMessageReceived(MessageReceivedEvent e) {\n\t\tFunctions funcao = new Functions(e);\n\t\tString message = e.getMessage().getContent();\n\t\tString name = e.getAuthor().getName();\n\t\tString response = \"\";\n\t\tif ((message.startsWith(\"!!!\") || message.startsWith(\"-\")) && !e.getTextChannel().getName().equals(\"commands\")) {\n\t\t//if(e.getMessage().getAuthor().isBot()) {\n\t\t\tfuncao.limparComando();\n\t\t} else if (name.equals(\"Jads1\")) {\n\t\t\tRandom rand = new Random();\n\t\t\tint rng = rand.nextInt(100 + 1);\n\t\t\tif (rng == 9) {\n\t\t\t\tresponse = \"Cala boca, Jads!\";\n\t\t\t\te.getTextChannel().sendMessage(response).queue();\n\t\t\t}\n\t\t} else if (message.equals(\"'flipCoin\")) {\n\t\t\tfuncao.flipCoin();\n\t\t}else if (message.startsWith(\"'ranking\")) {\n\t\t\tfuncao.displayRanking();\n\t\t} else if (message.startsWith(\"'whois\")) {\n\t\t\tfuncao.whoIs();\n\t\t}else if (message.equals(\"'atribuirCargos\") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.atribuirCargos();\n\t\t}else if(message.startsWith(\"'setNumEpics \") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.setNumEpics();\n\t\t}else if(message.startsWith(\"'setNumRares \") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.setNumRares();\n\t\t}\n\t}", "private void registerEvents(){\n Bukkit.getPluginManager().registerEvents(new RegionListener(), this);\n Bukkit.getPluginManager().registerEvents(new SignListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonerListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonBlockListener(), this);\n Bukkit.getPluginManager().registerEvents(new MonitorListener(), this);\n Bukkit.getPluginManager().registerEvents(new PortalListener(), this);\n }", "public void crear_un_evento_recurrente_para_el_dia_de_hoy() {\n\t\t\n\t}", "private void manejoDeModales(){\n botonTipo1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto1);\n });\n botonTipo2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonTipo3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto3);\n }); \n botonCategoria1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto1);\n }); \n botonCategoria2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonCategoria3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto3);\n }); \n }", "private void registerEvents(){\n\t\tPluginManager pm = getServer().getPluginManager();\r\n\t\t//PlayerListener stuff\r\n\t pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\r\n\t //BlockListener stuff\r\n pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_DAMAGE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\r\n //EntityListener stuff\r\n pm.registerEvent(Event.Type.CREATURE_SPAWN, entityListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.ENTITY_DAMAGE, entityListener, Event.Priority.Normal, this);\r\n //ServerListener stuff\r\n pm.registerEvent(Event.Type.PLUGIN_ENABLE, serverListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLUGIN_DISABLE, serverListener, Event.Priority.Normal, this);\r\n }", "public void TopDreiEvent();", "@Override\n\tpublic void onMessageReceived(MessageReceivedEvent e) {\n\t\tMessage objMsg = e.getMessage();\n\t\tMessageChannel objChannel = e.getChannel();\n\t\tUser objUser = e.getAuthor();\n \n\t\t//Responds to any user who says \"hello\"\n\t\tif (objMsg.getContentRaw().equals(\"hello\")) {\n\t\t\tobjChannel.sendMessage(\"Hello, \" + objUser.getAsMention() +\"!\").queue();\n\t\t}\n \n\t}", "@EventHandler\n public void OnPlayerChatEvent(PlayerChatEvent e)\n {\n this.setLastSeen(e.getPlayer());\n }", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onMessageEvent(MessageEventBus event) {\n for (int i = 0; i < list.size(); i++) {\n User userData = list.get(i);\n Integer id = userData.getId();\n String name = userData.getName();\n String username = userData.getUsername();\n String email = userData.getEmail();\n Log.i(\"@@@@@\", \"onMessageEvent : userData : \" + userData.toString());\n textView.append(\"User Id : \" + id + \"\\n\" + \"Name : \" + name + \"\\n\" + \"UserName : \" + username + \"\\n\" + \"Email : \" + email + \"\\n\\n\");\n }\n Toast.makeText(this, event.message, Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n\t\t//\t\t\t\tEL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\tif (sTransaccion.validarAnalistaEnRequerimientos(analista)){\n//\t\t\t\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n//\t\t\t\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n//\t\t\t\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n//\t\t\t\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n//\t\t\t\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n//\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t\t\t\tmostrarMensaje(\"Informacion\", \"No se Puede eliminar el analista, esta asignado a un requerimiento que esta activo\", Messagebox.EXCLAMATION, null, null, null);\n//\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "void attach (ObservateurGenerateurAsync observateur);", "public void notifyJoueurActif();", "private void turnos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size(); i++){\n\t\t\tElemento elemento = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\telemento.jugar();\n\t\t}\n\t}", "protected void CriarEventos(){\n ListMenu.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String opcMenu = ((TextView) view).getText().toString();\n\n RedirecionaTela(opcMenu);\n }\n });\n }", "@EventHandler\r\n\t\tpublic void onLogin(PlayerJoinEvent e){\n\t\t\t\r\n\t\t\ttry {\r\n File file = new File(\"plugins\"+File.separator+\"TitansAndKings\"+File.separator+\"users\"+File.separator+e.getPlayer().getName()+\".yml\");\r\n if(!(file.exists())){\r\n file.createNewFile();\r\n } \r\n } catch (IOException event) {\r\n event.printStackTrace();\r\n }\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t}", "public ManipularEstudiantes() {\n initComponents();\n cme = new Control_Mantenimiento_Estudiante(this);\n this.gUI_botones2.agregar_eventos(cme);\n }", "private void registrarListeners() {\n ventanaAgregarOperador.agregarListenerBotonGuardarNuevoOperador(new VentanaAgregarOperadorBotonGuardarAL());\n ventanaEditarOperador.agregarListenerBotonGuardarDatosModificados(new VentanaEditarOperadorBotonGuardarAL());\n\n }", "@Override\n\tvoid postarComentario() {\n\n\t}", "@Override\r\n public void run() {\n EnviarDatos(user,fecha1,pasos);\r\n }", "public void notificarTodos(){\n for (Observer observer : list) {\n observer.notificar();\n }\n }", "public void onEventMainThread(BusEventModerators event) {\n Log.d(TAG, event.toString());\n List<Moderator> moderators = event.getModerators();\n processModeratorData(moderators);\n }", "public void onDocumentoSubidoEventListener(DocumentoSubidoEvent event){}", "private void registerEvents() {\n createRoomBTN.addActionListener(actionEvent -> {\n chatController.createRoom(roomNameIF.getText());\n roomNameIF.setText(\"\");\n });\n\n backBTN.addActionListener(actionEvent -> {\n if (chatController.getJoinedRooms().size() > 0) chatView.renderChatPanel();\n });\n }", "private void carregarEventosLugares() {\n listaLugares.forEach(lugar -> {\n lugar.getCadeira().setOnMouseClicked(evento -> enviarRequisicaoSentar(lugar));\n lugar.getMao().setOnMouseClicked(evento -> enviarRequisicaoApostar(lugar.getNumeroLugar()));\n lugar.getAdicionar().setOnMouseClicked(evento -> enviarRequisicaoAdicionar());\n lugar.getRemover().setOnMouseClicked(evento -> enviarRequisicaoRemover());\n lugar.getPalpite().setOnMouseClicked(evento -> enviarRequisicaoPalpite());\n });\n }", "public void handleEvent(Message event) {\n\r\n if(m_ensureLock && event.getMessageType() == Message.ARENA_MESSAGE && event.getMessage().equals(\"Arena UNLOCKED\")) {\r\n m_botAction.toggleLocked();\r\n return;\r\n }\r\n\r\n if(event.getMessageType() != Message.PRIVATE_MESSAGE) {\r\n return;\r\n }\r\n\r\n int id = event.getPlayerID();\r\n String name = m_botAction.getPlayerName(id);\r\n String msg = event.getMessage().trim().toLowerCase();\r\n\r\n if(name == null || msg == null || msg.length() == 0) {\r\n return;\r\n }\r\n\r\n String lcname = name.toLowerCase();\r\n\r\n boolean isSmod = m_operatorList.isSmod(lcname);\r\n boolean hasAccess = isSmod || m_access.contains(lcname);\r\n\r\n /* public pm commands */\r\n //!help\r\n if(msg.equals(\"!help\")) {\r\n m_botAction.privateMessageSpam(id, help_player);\r\n\r\n if(hasAccess) {\r\n m_botAction.privateMessageSpam(id, help_staff);\r\n }\r\n\r\n if(isSmod) {\r\n m_botAction.privateMessageSpam(id, help_smod);\r\n m_botAction.sendPrivateMessage(id, \"Database: \" + (m_botAction.SQLisOperational() ? \"online\" : \"offline\"));\r\n }\r\n\r\n //!status\r\n } else if(msg.equals(\"!status\")) {\r\n cmdStatus(id);\r\n\r\n //!spec\r\n } else if(msg.equals(\"!spec\")) {\r\n if(m_state.isStarting() || m_state.isStartingFinal()) {\r\n m_botAction.specWithoutLock(id);\r\n }\r\n\r\n //!about\r\n } else if(msg.equals(\"!about\")) {\r\n m_botAction.sendPrivateMessage(id, \"KimBot! (2007-12-15) by flibb <ER>\", 7);\r\n\r\n //!lagout/!return\r\n } else if(msg.equals(\"!lagout\") || msg.equals(\"!return\")) {\r\n KimPlayer kp = m_allPlayers.get(lcname);\r\n\r\n if(kp == null) {\r\n return;\r\n }\r\n\r\n if(!kp.m_isOut) {\r\n synchronized(m_state) {\r\n if((m_state.isMidGame() || m_state.isMidGameFinal()) && m_lagoutMan.remove(lcname)) {\r\n putPlayerInGame(id, kp, false);\r\n } else if((m_state.isStarting() || m_state.isStartingFinal()) && m_startingLagouts.remove(lcname)) {\r\n m_startingReturns.add(kp);\r\n m_botAction.sendPrivateMessage(id, \"You will be put in at the start of the game.\");\r\n }\r\n }\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Cannot return to game.\");\r\n }\r\n\r\n //poll vote\r\n } else if(Tools.isAllDigits(msg)) {\r\n if(m_poll != null) {\r\n m_poll.handlePollCount(id, name, msg);\r\n }\r\n\r\n /* staff commands */\r\n } else if(hasAccess) {\r\n //!start\r\n if(msg.equals(\"!start\")) {\r\n m_deathsToSpec = 10;\r\n m_maxTeamSize = 1;\r\n cmdStart(id);\r\n } else if(msg.startsWith(\"!start \")) {\r\n String[] params = msg.substring(7).split(\" \");\r\n m_deathsToSpec = 10;\r\n m_maxTeamSize = 1;\r\n\r\n for(String p : params) {\r\n try {\r\n if(Tools.isAllDigits(p)) {\r\n m_deathsToSpec = Integer.parseInt(p);\r\n } else if(p.startsWith(\"teams=\")) {\r\n m_maxTeamSize = Integer.parseInt(p.substring(6));\r\n }\r\n } catch(NumberFormatException e) {\r\n m_botAction.sendPrivateMessage(id, \"Can't understand: \" + p);\r\n return;\r\n }\r\n }\r\n\r\n m_deathsToSpec = Math.max(1, Math.min(99, m_deathsToSpec));\r\n m_maxTeamSize = Math.max(1, Math.min(99, m_maxTeamSize));\r\n cmdStart(id);\r\n //!stop\r\n } else if(msg.equals(\"!stop\")) {\r\n cmdStop(id);\r\n //!die\r\n } else if(msg.equals(\"!die\")) {\r\n if(m_state.isStopped()) {\r\n m_lvz.clear();\r\n\r\n try {\r\n Thread.sleep(3000);\r\n } catch(InterruptedException e) {}\r\n\r\n m_botAction.die(\"!die by \" + name);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"A game is in progress. Use !stop first.\");\r\n }\r\n\r\n //!startinfo\r\n } else if(msg.equals(\"!startinfo\")) {\r\n if(m_state.isStopped() || m_startedBy == null) {\r\n m_botAction.sendPrivateMessage(id, \"No one started a game.\");\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Game started by \" + m_startedBy);\r\n }\r\n\r\n //!reset\r\n } else if(msg.equals(\"!reset\")) {\r\n if(m_state.isStopped()) {\r\n resetArena();\r\n m_botAction.sendPrivateMessage(id, \"Resetted.\");\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"A game is in progress. Use !stop first.\");\r\n }\r\n\r\n //!remove\r\n } else if(msg.startsWith(\"!remove \")) {\r\n synchronized(m_state) {\r\n if(m_state.isStopped()) {\r\n m_botAction.sendPrivateMessage(id, \"The game is not running.\");\r\n } else {\r\n cmdRemove(id, msg.substring(8));\r\n }\r\n }\r\n\r\n //!test\r\n } else if(msg.startsWith(\"!test\")) {\r\n m_botAction.sendArenaMessage(Tools.addSlashes(\"test'test\\\"test\\\\test\"));\r\n\r\n } else if(isSmod) {\r\n //!addstaff\r\n if(msg.startsWith(\"!addstaff \")) {\r\n String addname = msg.substring(10);\r\n\r\n if(addname.length() <= 1 || addname.indexOf(':') >= 0) {\r\n m_botAction.sendPrivateMessage(id, \"Invalid name. Access list not changed.\");\r\n } else if(addname.length() > MAX_NAMELENGTH) {\r\n m_botAction.sendPrivateMessage(id, \"Name too long. Max. 18 characters.\");\r\n } else if(m_access.add(msg.substring(10))) {\r\n updateAccessList(id);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"That name already has access.\");\r\n }\r\n\r\n //!delstaff\r\n } else if(msg.startsWith(\"!delstaff \")) {\r\n if(m_access.remove(msg.substring(10))) {\r\n updateAccessList(id);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Name not found.\");\r\n }\r\n\r\n //!accesslist\r\n } else if(msg.equals(\"!accesslist\")) {\r\n for(String s : m_access) {\r\n m_botAction.sendPrivateMessage(id, s);\r\n }\r\n\r\n m_botAction.sendPrivateMessage(id, \"End of list.\");\r\n //!purge\r\n } else if(msg.equals(\"!purge\")) {\r\n cmdPurge(id, 90);\r\n } else if(msg.startsWith(\"!purge \")) {\r\n try {\r\n cmdPurge(id, Integer.parseInt(msg.substring(7)));\r\n } catch(NumberFormatException e) {\r\n m_botAction.sendPrivateMessage(id, \"Nothing done. Check your typing.\");\r\n }\r\n }\r\n }\r\n }\r\n }", "public LecturaPorEvento() \r\n {\r\n }", "private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }", "public interface OnChatEvents {\n void onSendChatMessage(String time, String displayName, String buddyPicture, String message, String to);\n void onMessageRead();\n void onSendFile(String time, String displayName, String buddyPicture, String message, long size, String name, String mime, String to);\n\n void onDownload(int position, String id, FileInfo fileinfo);\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tSystem.out.println(\"Botón pulsado\");\n\t\tObject o = e.getSource();\n\t\tif((JButton) o instanceof JButton) {\n\t\t\tJButton a = (JButton) o;\n\t\t\tif(a.equals(panel.getEnviarMensaje())) {\n\t\t\t\tint rec = 2 ; //En principio\n\t\t\t\tif(this.receptor instanceof ONG) {\n\t\t\t\t\tSystem.out.println(\"Es una ONG\");\n\t\t\t\t}else if(this.receptor instanceof Usuario ) {\n\t\t\t\t\tSystem.out.println(\"Es un participante\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Es un gestor\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Mensaje aún no enviado\");\n\t\t\t\tMensaje.enviarMensaje(emisor.getEmail(), receptor.getEmail(), panel.getMensaje().getText(), rec);\n\t\t\t\tSystem.out.println(\"Mensaje enviado\");\n\t\t\t\t\n\t\t\t\tpanel.dispose();\n\t\t\t\tJFrame t =new Toast(\"Mensaje enviado correctamente\", true);\n\t\t\t\tt.setVisible(true);\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void execute(CommandEvent event)\n {\n Poll poll = manager.getRandomPoll();\n\n // Now we need to build the embed\n EmbedBuilder embed = new EmbedBuilder()\n {{\n setTitle(\"<:EverybodyVotesChannel:317090360449040388> \" + poll.getQuestion());\n setDescription(\"\\uD83C\\uDD70 \" + poll.getResponse1() + \"\\n\" +\n \"_ _\\n\" + // Line separator\n \"\\uD83C\\uDD71 \" + poll.getResponse2());\n addField(\"Users who reacted \\uD83C\\uDD70:\", \"\", false);\n addField(\"Users who reacted \\uD83C\\uDD71:\", \"\", false);\n setColor(event.getSelfMember().getColor());\n setFooter(\"This question was in the \" + poll.getCountryFlag() + \" EVC\", null);\n }};\n\n // Send embed to chat\n event.reply(embed.build(), s ->\n {\n // Add message ID to tracked list\n manager.trackId(s.getIdLong());\n\n // Add reactions\n s.addReaction(\"\\uD83C\\uDD70\").queue();\n s.addReaction(\"\\uD83C\\uDD71\").queue();\n });\n }", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}", "private void createEvents() {\n\t}", "@Override\n\tpublic void botonInicio(VideoJuego juego) {\n\t\t\n\t}", "@Override\n\tpublic void onMessage(Message m) {\n\t\t\t\ttry {\n\n\t\t\t\t\tTextMessage ms = (TextMessage) m;\n\n\t\t\t\t\tString linea = ms.getText();\n\n\t\t\t\t\tString args[] = linea.split(\" - \");\n\n\t\t\t\t\tif (args[0].equals(\"consulta2\")) {\n\t\t\t\t\t\t// Ver envios del usuario\n\t\t\t\t\t\tif (args[1].equals(\"1\")) {\t\t\t\t\t\n\t\t\t\t\t\t\t//registrarPedido(args[2], args[3], args[4], args[5]);\n\t\t\t\t\t\t}else if (args[1].equals(\"2\")) {\n\t\t\t\t\t\t\t//cambiarEstado(args[2], args[3]);\n\t\t\t\t\t\t}else if (args[1].equals(\"3\")) {\n\t\t\t\t\t\t\t//ArrayList<String> ejecuciones = consultarEjecucionDeEtapas(args[2], args[3], args[4]);\n\t\t\t\t\t\t\t//responderConEjecucionesDeEtapas(ejecuciones);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if (args[0].equals(\"respuesta2\")) {\n\t\t\t\t\t\t// Ver envios del usuario\n\n\t\t\t\t\t\tif ( args[1].equals(\"1\") || args[1].equals(\"2\") ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if( args[1].equals(\"3\") ){\n\t\t\t\t\t\t\tString[] data = linea.substring( 16, ( linea.length() - 1 ) ).split(\"-\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<String> ejec = new ArrayList<String>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\t\t\t\t\t\tString data0 = data[i];\n\t\t\t\t\t\t\t\tejec.add(data0);\n\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t//Numero del Pedido\n//\t\t\t\t\t\t\t\tString numPedido = data0[0];\n//\t\t\t\t\t\t\t\t//Codigo de la EstaciÛn\n//\t\t\t\t\t\t\t\tString codEstacion = data0[1];\n//\t\t\t\t\t\t\t\t//Numero de ejecuciones\n//\t\t\t\t\t\t\t\tString numEjecuciones = data0[2];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t}\n\t\t\t}", "public void setMarioEvents() {\n\t\tCollisionEvent event1, event2, event4, event98, event6, event7, event8, event9;\n\t\tAdvancedCollisionEvent event_1LandsTop4, event_1Touches4NotTop, event5;\n\t\ttry {\n\t\t\t// player with block\n\t\t\tevent1 = new CollisionEvent(\n\t\t\t\t\tArrays.asList(new String[] { \"0\", \"1\" }),\n\t\t\t\t\tPLAYER_LANDING_ON_BLOCK_STRING);\n\t\t\t// enemy with block\n\t\t\tevent2 = new CollisionEvent(Arrays.asList(\"1\", \"2\"),\n\t\t\t\t\tENEMY_ON_BLOCK_STRING);\n\t\t\t// player killing enemy\n\t\t\tevent_1LandsTop4 = new AdvancedCollisionEvent(Arrays.asList(\"0\",\n\t\t\t\t\t\"2\", \"true\", \"false\", \"false\", \"false\", \"false\"),\n\t\t\t\t\tPLAYER_JUMPING_ON_ENEMY_STRING);\n\t\t\t// enemy kills player\n\t\t\tevent_1Touches4NotTop = new AdvancedCollisionEvent(Arrays.asList(\n\t\t\t\t\t\"0\", \"2\", \"false\", \"true\", \"true\", \"true\", \"false\"),\n\t\t\t\t\tENEMY_KILLING_PLAYER_STRING);\n\t\t\t// player reaches goal\n\t\t\tevent4 = new CollisionEvent(Arrays.asList(\"0\", \"3\"),\n\t\t\t\t\tPLAYER_HITTING_GOAL_STRING);\n\t\t\t// player collects coin\n\t\t\tevent98 = new CollisionEvent(Arrays.asList(\"0\", \"5\"),\n\t\t\t\t\tPLAYER_COLLECTING_COIN_STRING);\n\t\t\t// bullet hits enemy\n\t\t\tevent5 = new AdvancedCollisionEvent(Arrays.asList(\"2\", \"150\",\n\t\t\t\t\t\"true\", \"true\", \"true\", \"true\", \"true\"),\n\t\t\t\t\tBULLET_HITTING_ENEMY_STRING);\n\t\t\t// player gets gun power up\n\t\t\tevent6 = new CollisionEvent(Arrays.asList(\"0\", \"6\"),\n\t\t\t\t\tPLAYER_HITS_GUN_POWERUP_STRING);\n\t\t\t// player gets invincibility power up\n\t\t\tevent7 = new CollisionEvent(Arrays.asList(\"0\", \"7\"),\n\t\t\t\t\tPLAYER_HITS_INVINCIBILITY_POWERUP_STRING);\n\t\t\t// player gets size power up\n\t\t\tevent8 = new CollisionEvent(Arrays.asList(\"0\", \"8\"),\n\t\t\t\t\tPLAYER_HITS_SIZE_POWER_UP_STRING);\n\t\t\t// player gets speed power up\n\t\t\tevent9 = new CollisionEvent(Arrays.asList(\"0\", \"9\"),\n\t\t\t\t\tPLAYER_HITS_SPEED_POWERUP_STRING);\n\t\t\tAddPowerUpAction action13 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"8\",\n\t\t\t\t\t\t\tSIZE_POWER_UP_STRING, \"10\", \"mario\")));\n\t\t\tAddPowerUpAction action12 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"9\",\n\t\t\t\t\t\t\tSPEED_POWER_UP_STRING, \"10\", \"bullet\")));\n\n\t\t\tDecreaseObjectHitPointsByCollisionAction action14 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"8\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action15 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"9\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action9 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"6\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action11 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"7\", \"0\")));\n\t\t\tAddPowerUpAction action7 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"6\",\n\t\t\t\t\t\t\tGUN_POWERUP_STRING, \"10\", \"mario\")));\n\t\t\tAddPowerUpAction action8 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"7\",\n\t\t\t\t\t\t\tINVINCIBILITY_POWERUP_STRING, \"10\", \"mobile\")));\n\t\t\tCollideSolidAction action = new CollideSolidAction(\n\t\t\t\t\tnew Tuple<Integer>(0, 1).toListString());\n\t\t\tCollideSolidAction action2 = new CollideSolidAction(\n\t\t\t\t\tnew Tuple<Integer>(2, 1).toListString());\n\t\t\tKillPlayerAction action3 = new KillPlayerAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\")));\n\n\t\t\tDecreaseObjectHitPointsByCollisionAction action10 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"5\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action5 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"150\", \"2\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action6 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"2\", \"150\")));\n\t\t\tEndLevelAction action4 = new EndLevelAction(new ArrayList<String>());\n\n\t\t\tChangeScoreAction action98 = new ChangeScoreAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"5\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action_1Kills4 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"2\", \"0\")));\n\n\t\t\tevent1.addAction(action);\n\t\t\tevent2.addAction(action2);\n\t\t\tevent_1Touches4NotTop.addAction(action3);\n\t\t\tevent_1LandsTop4.addAction(action_1Kills4);\n\t\t\tevent4.addAction(action4);\n\t\t\tevent98.addAction(action98);\n\t\t\tevent98.addAction(action10);\n\t\t\tevent5.addAction(action5, action6);\n\t\t\tevent6.addAction(action7, action9);\n\t\t\tevent7.addAction(action8, action11);\n\t\t\tevent9.addAction(action12, action15);\n\t\t\tevent8.addAction(action13, action14);\n\t\t\tmyLevel.addEvent(event1, event2, event_1Touches4NotTop, event4,\n\t\t\t\t\tevent98, event_1LandsTop4, event5, event6, event7, event8,\n\t\t\t\t\tevent9);\n\t\t\tmyLevelObjectBar.initializeEventsMap(myLevel.getEvents());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void createEvents() {\n\t\tbtnRetour.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tDashboard_Preteur dashboard_Preteur = new Dashboard_Preteur(currentPreteur);\r\n\t\t\t\tdashboard_Preteur.setVisible(true);\r\n\t\t\t\tdashboard_Preteur.setResizable(false);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void onFingerUp(String idSensor) // evento que se genera al levantar el dedo del lector\n{\n objpantprincipal.repintarp();\n if (conectado == true)\n identificarPersona();\n}", "public void atenderTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" atendido!\");\n notificarTodos();\n }", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "@Override\n public void onMessageReceived(MessageReceivedEvent event)\n {\n JDA jda = event.getJDA(); //JDA, the core of the api.\n long responseNumber = event.getResponseNumber();//The amount of discord events that JDA has received since the last reconnect.\n\n //Event specific information\n User author = event.getAuthor(); //The user that sent the message\n Message message = event.getMessage(); //The message that was received.\n MessageChannel channel = event.getChannel(); //This is the MessageChannel that the message was sent to.\n // This could be a TextChannel, PrivateChannel, or Group!\n\n String msg = message.getContentDisplay(); //This returns a human readable version of the Message. Similar to\n // what you would see in the client.\n\n boolean bot = author.isBot(); //This boolean is useful to determine if the User that\n // sent the Message is a BOT or not!\n\n if (event.isFromType(ChannelType.TEXT)) //If this message was sent to a Guild TextChannel\n {\n //Because we now know that this message was sent in a Guild, we can do guild specific things\n // Note, if you don't check the ChannelType before using these methods, they might return null due\n // the message possibly not being from a Guild!\n\n Guild guild = event.getGuild(); //The Guild that this message was sent in. (note, in the API, Guilds are Servers)\n TextChannel textChannel = event.getTextChannel(); //The TextChannel that this message was sent to.\n Member member = event.getMember(); //This Member that sent the message. Contains Guild specific information about the User!\n\n String name;\n if (message.isWebhookMessage())\n {\n name = author.getName(); //If this is a Webhook message, then there is no Member associated\n } // with the User, thus we default to the author for name.\n else\n {\n name = member.getEffectiveName(); //This will either use the Member's nickname if they have one,\n } // otherwise it will default to their username. (User#getName())\n\n System.out.printf(\"(%s)[%s]<%s>: %s\\n\", guild.getName(), textChannel.getName(), name, msg);\n }\n else if (event.isFromType(ChannelType.PRIVATE)) //If this message was sent to a PrivateChannel\n {\n //The message was sent in a PrivateChannel.\n //In this example we don't directly use the privateChannel, however, be sure, there are uses for it!\n PrivateChannel privateChannel = event.getPrivateChannel();\n\n System.out.printf(\"[PRIV]<%s>: %s\\n\", author.getName(), msg);\n }\n else if (event.isFromType(ChannelType.GROUP)) //If this message was sent to a Group. This is CLIENT only!\n {\n //The message was sent in a Group. It should be noted that Groups are CLIENT only.\n Group group = event.getGroup();\n String groupName = group.getName() != null ? group.getName() : \"\"; //A group name can be null due to it being unnamed.\n\n System.out.printf(\"[GRP: %s]<%s>: %s\\n\", groupName, author.getName(), msg);\n }\n //calls specific (working) commands to call from command files\n commands.caseratis.Commands.pwing(msg, channel);\n\n commands.katekat.Commands.psing(msg, channel);\n\n commands.lwbuchanan.Commands.pzing(msg, channel);\n\n commands.notahackr.Commands.poing(msg, channel);\n\n commands.redmario.Commands.pxing(msg, channel);\n\n commands.thebriankong.Commands.paing(msg, channel);\n\n commands.thebuttermatrix.Commands.ping(msg, channel);\n commands.thebuttermatrix.Commands.countdown(msg, channel);\n commands.thebuttermatrix.Commands.pid(msg, channel);\n\n commands.raybipse.Master.messageReceived(msg, channel, event);\n }", "@Quando(\"acionar o botao save\")\r\n\tpublic void acionarOBotaoSave() {\n\t\tNa(CadastrarUsuarioPage.class).acionarBtnSave();\r\n\t}", "private void handleListeners(View view) {\n manageClubArrow.setOnClickListener(v -> {\n Intent intent = new Intent(getActivity(), MyClubsActivity.class);\n startActivity(intent);\n });\n\n //navigate to MySubscriptionsActivity and show all the clubs that the user is subscribed to.\n manageSubArrow.setOnClickListener(v -> {\n Intent intent = new Intent(getActivity(), MySubscriptionsActivity.class);\n startActivity(intent);\n });\n\n //navigate to mypostsactivity and show all posts that the user has created.\n managePostArrow.setOnClickListener(v->{\n Intent intent = new Intent(getActivity(), MyPostsActivity.class);\n startActivity(intent);\n });\n manageSaleArrow.setOnClickListener(v->{\n // TODO: 2/18/2021 handle sale arrow pressed\n });\n managePurchaseArrow.setOnClickListener(v->{\n // TODO: 2/18/2021 handle purchase arrow pressed\n });\n manageLoanArrow.setOnClickListener(v->{\n // TODO: 2/18/2021 handle loan arrow pressed\n });\n\n //profile button was pressed. navigate to ViewProfileActivity\n txtProfile.setOnClickListener(v->{\n Intent intent = new Intent(getActivity(), ViewProfileActivity.class);\n startActivity(intent);\n });\n\n //logout button was pressed. Call the signOutUser() method in UserSession to destroy the session data about the current user.\n txtLogout.setOnClickListener(v->{\n UserSession userSession = new UserSession(getContext());\n userSession.signOutUser();\n });\n \n //handle messages\n txtMessages.setOnClickListener(v->{\n // TODO: 3/15/2021 handle all functionality related to reading and sending messages.\n });\n }", "@Override\n public void onClick(View view) {\n IdEvento = obtenerEmegencia().get(recyclerViewEmergencia.getChildAdapterPosition(view)).getId();\n\n //Se muestra un mensaje en pantalla de lo que seleciono\n Next();\n }", "public void consulterEvent() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getActionCommand() == \"Iniciar sesión\" ){\n this.mostrarDatosUsuario();\n this.entrar();\n }\n if(e.getActionCommand() == \"Registrate\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón registrarse\" , \"Advertencia\", 1);\n }\n if(e.getActionCommand() == \"¿Olvidaste tu contraseña?\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón recuperar contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerContraseña()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerMas()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver mas\" , \"Advertencia\", 1);\n }\n }", "public JoinListener (MainHG mainclass){\n\t\tplugin = mainclass;\n\t\tmainclass.getServer().getPluginManager().registerEvents(this, mainclass);\n\t}", "public void handleEvent(PlayerEntered event) {\r\n if( isEnabled )\r\n m_botAction.sendPrivateMessage(event.getPlayerName(), \"Autopilot is engaged. PM !info to me to see how *YOU* can control me. (Type :\" + m_botAction.getBotName() + \":!info)\" );\r\n }", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tConfirmDialog.show(UI.getCurrent(), MESSAGE_1,\"\",\"Aceptar\",\"Crear mas Usuarios\",\n\t\t\t\t new ConfirmDialog.Listener() {\n\n\t\t\t\t public void onClose(ConfirmDialog dialog) {\t\n\t\t\t\t \tent= false;\n\t\t\t\t if (dialog.isConfirmed()) {\n\t\t\t\t // Confirmed to continue\t\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t } else {\n\t\t\t\t // User did not confirm\t\t\t \n\t\t\t\t \t//c.crearWindow(RegistrarUser.VIEW_NAME);\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t });\n\t\t\t\t\n\t\t\t\t//Notification nota= new Notification(\"Registro Exitoso!\",Notification.Type.HUMANIZED_MESSAGE);\n\t\t\t\t//nota.setDelayMsec(-1);\n\t\t\t\t//nota.show(Page.getCurrent());\t\n\t\t\t\t\n\t\t\t\tclose();\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "@Override\n public void onAdded() {\n /**\n * EventsBus: Fetching data.\n */\n EventBus.getDefault().post(new Authenticating());\n }", "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "public interface EventosCaixaDialogo {\n\n void onClickPositivo();\n\n void onClickNegativo();\n\n}", "public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"[email protected]\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"[email protected]\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }", "public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "void onPrivMsg(TwitchUser sender, TwitchMessage message);", "@EventHandler(priority = EventPriority.HIGHEST)\n public void onPlayerJoin(PlayerJoinEvent playerJoinEvent) {\n final Player player = playerJoinEvent.getPlayer();\n\n // Checks if the update notify setting was enabled and if the player has permission to see update notifications\n if(configFile.getBoolean(\"Update_Notify\") && Utilities.checkPermissions(player, true, \"omegavision.update\", \"omegavision.admin\")) {\n // Check the plugins version against the spigotMC and see if it is up-to-date\n new SpigotUpdater(pluginInstance, 73013).getVersion(version -> {\n int spigotVersion = Integer.parseInt(version.replace(\".\", \"\"));\n int pluginVersion = Integer.parseInt(pluginInstance.getDescription().getVersion().replace(\".\", \"\"));\n\n if(pluginVersion >= spigotVersion) {\n Utilities.message(player, \"#00D4FFYou are already running the latest version\");\n return;\n }\n\n PluginDescriptionFile pdf = pluginInstance.getDescription();\n Utilities.message(player,\n \"#00D4FFA new version of #FF4A4A\" + pdf.getName() + \" #00D4FFis avaliable!\",\n \"#00D4FFCurrent Version: #FF4A4A\" + pdf.getVersion() + \" #00D4FF> New Version: #FF4A4A\" + version,\n \"#00D4FFGrab it here:#FF4A4A https://www.spigotmc.org/resources/omegavision.73013/\"\n );\n });\n }\n\n // Add the user to the user data map if they aren't currently in it.\n if(player.getFirstPlayed() == System.currentTimeMillis()) {\n userDataHandler.getUserDataMap().putIfAbsent(player.getUniqueId(), new ConcurrentHashMap<>());\n } else {\n userDataHandler.addUserToMap(player.getUniqueId());\n }\n\n // Check if the Night Vision Login setting was enabled and the player has a\n // true night vision status in the map and permission for night vision long.\n // If so, Apply night vision to them once they have logged in. Otherwise, remove it.\n if(configFile.getBoolean(\"Night_Vision_Settings.Night_Vision_Login\") && (boolean) userDataHandler.getEffectStatus(player.getUniqueId(), UserDataHandler.NIGHT_VISION) && Utilities.checkPermissions(player, true, \"omegavision.nightvision.login\", \"omegavision.nightvision.admin\", \"omegavision.admin\")) {\n Utilities.addPotionEffect(player, PotionEffectType.NIGHT_VISION, 60 * 60 * 24 * 100 ,1, particleEffects, ambientEffects, nightvisionIcon);\n } else {\n userDataHandler.setEffectStatus(player.getUniqueId(), false, UserDataHandler.NIGHT_VISION);\n Utilities.removePotionEffect(player, PotionEffectType.NIGHT_VISION);\n }\n\n if(configFile.getBoolean(\"Night_Vision_Limit.Enabled\")) {\n if((boolean) userDataHandler.getEffectStatus(player.getUniqueId(), UserDataHandler.LIMIT_REACHED)) {\n NightVisionToggle nightVisionToggle = new NightVisionToggle(pluginInstance, player);\n nightVisionToggle.limitResetTimer(player);\n }\n }\n }", "public void onConsultarEvent() {\r\n\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent()]...\");\r\n\r\n\t\ttry {\r\n\t\t\tif (permitirBuscar) {\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(1)]...\");\r\n\t\t\t\tvisualizarColumnas();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(2)]...\");\r\n\t\t\t\tonMostrarListboxConsulta();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(3)]...\");\r\n\t\t\t\tonConsultar(idMCRZTbxCriterio.getValue(), false);\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(4)]...\");\r\n\t\t\t} else {\r\n\t\t\t\tNotificaciones.mostrarNotificacionAlerta(tituloMensajeExtra,\r\n\t\t\t\t\t\tmensajeExtra, 7000);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.info(\"Eroor.......................\"+e);\r\n\t\t}\r\n\t}", "public void tellEventChannelsAndManagers(String msg, Object... args) {\n if (loggingIn)\n return;\n if (args.length > 0) {\n msg = MessageFormat.format(msg, args);\n }\n command.tell(CHANNEL_USCL, msg);\n command.tell(CHANNEL_EVENTS_GROUP, msg);\n broadcast(ChatType.PERSONAL_ADMIN_TELL, monitorRole, msg, args);\n }", "@Override\r\n\tprotected void onGuiEvent(GuiEvent arg0) {\n\t\taddBehaviour(new SendMessage());\r\n\r\n\t}", "private void onGroup(List<FullGroupWrapper> groupWrappers) {\n for (FullGroupWrapper groupWrapper : groupWrappers) {\n groupWrapper.getConversationEBDD();\n groupWrapper.getFullUserWrappers();\n groupWrapper.getMyLocalEventEBDD();\n }\n\n //récupération de tous les événements temporaires\n remoteBD.getTemporaryEvent(new Date().getTime(), new OnTemporaryEvents() {\n @Override\n public void onTemporaryEvents(List<MyEventEBDD> eventEBDDs) {\n onTemporaryEventReceived(eventEBDDs);\n }\n });\n }", "public static void aviUsers() {\n\t\tsendNotification();\r\n\t}", "private void addEvents() {\n\t mlv.getMapNotesOverlay().addEventListener(new NoteSelectedListener()\n {\n\t \t\n\t\t\t@Override\n\t\t\tpublic void handleNoteSelectedEvent(EventObject e, Group gr) {\n\t\t\t\t//We have to go to gallery because the user has select a (groups) note\n\t\t\t\tselectedGroup = gr;\n\t\t\t\tonClick(mlv);\n\t\t\t}\n \t\n });\t\t\t\t\n\t\t\n\t}", "public void publishEvents() {\n Bundle params = new Bundle();\n params.putString(\"name\", \"Reserva Cancha Finder\");\n params.putString(\"caption\", \"CanchaFinder\");\n params.putString(\"description\", Seleccion);\n params.putString(\"link\", \"http://www.solweb.co/reservas/CanchaFinder/index.php\");\n params.putString(\"picture\",\"http://www.solweb.co/reservas/api_movil/ic_launcher.png\");\n\n WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this,currentSession, params))\n .setOnCompleteListener(new WebDialog.OnCompleteListener() {\n\n @Override\n public void onComplete(Bundle values,FacebookException error) {\n if (error == null) {\n // When the story is posted, echo the success\n // and the post Id.\n final String postId = values.getString(\"post_id\");\n if (postId != null) {\n // do some stuff\n } else {\n // User clicked the Cancel button\n Toast.makeText(getApplicationContext(),\n \"Publish cancelled\", Toast.LENGTH_SHORT).show();\n }\n } else if (error instanceof FacebookOperationCanceledException) {\n // User clicked the \"x\" button\n Toast.makeText(getApplicationContext(),\n \"Publish cancelled\", Toast.LENGTH_SHORT).show();\n } else {\n // Generic, ex: network error\n Toast.makeText(getApplicationContext(),\n \"Error posting story\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }).setFrom(\"\").build();\n feedDialog.show();\n\n }", "@Override\n\tpublic void handleEvent(EnOceanMessage data) {\n\t}", "@Override\r\n public void onMessage(MessageEvent message) {\r\n String newMessage = message.getMessage();\r\n String response;\r\n\r\n //split the message on spaces to identify the command\r\n String[] messageArray = newMessage.split(\" \");\r\n \r\n switch (messageArray[0]) {\r\n case \"!command\":\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n if (messageArray.length == 2) {\r\n if (messageArray[1].equals(\"off\")) {\r\n commandsActive = false;\r\n } \r\n if (messageArray[1].equals(\"on\")) {\r\n commandsActive = true;\r\n }\r\n }\r\n }\r\n break;\r\n //command to make a custom command for the bot\r\n case \"!addcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = addCom(messageArray, message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to add commands.\");\r\n }\r\n }\r\n break;\r\n case \"!commands\":\r\n if (commandsActive) {\r\n if (messageArray.length ==1) {\r\n ArrayList<String> commands = manager.getCommands(message.getChannel().getName());\r\n String commandList = \"The custom commands available to everyone for this channel are: \";\r\n while (!commands.isEmpty()) {\r\n commandList += commands.remove(0) + \", \";\r\n }\r\n message.getChannel().send().message(commandList);\r\n }\r\n }\r\n break;\r\n //command to delete a custom command from the bot\r\n case \"!delcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = delCom(messageArray[1], message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to remove commands.\");\r\n }\r\n }\r\n break;\r\n //command to edit a custom command the bot has\r\n case \"!editcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = editCom(messageArray, message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to edit commands.\");\r\n }\r\n }\r\n break;\r\n\r\n //default message handling for custom commands\r\n default:\r\n if (commandsActive) {\r\n if (message.getMessage().startsWith(\"!\") && !messageArray[0].equals(\"!permit\")&& !messageArray[0].equals(\"!spam\")) {\r\n customCommands(message);\r\n }\r\n }\r\n break;\r\n }\r\n }", "protected void agregarUbicacion(){\n\n\n\n }", "@EventHandler\n public void OnPlayerInteractEvent(PlayerInteractEvent e)\n {\n this.setLastSeen(e.getPlayer());\n }", "public void turnoIniciado() {\n\t\t\n\t\tfor (Partida.Observer o : observers) {\n\n\t\t\to.turnoIniciado(tablero, turno);\n\t\t}\n\t}", "void onAction(TwitchUser sender, TwitchMessage message);", "@Override\n public void eventoCargarData() {\n }", "public void onConnect()\n\t{\n\t\tString welcomeMessage = \"Hello! My name is BreenBot. Here's a list of things I can do for you:\";\n\n\t\tsendMessageAndAppend(this.channel, welcomeMessage);\n\n\t\tsendHelpOperations();\n\n\t\tsendMessageAndAppend(this.channel, \"Please use !help to get this list of operations again.\");\n\t}", "public void emitirSaludo()\n {\n // borrarPantalla();\n System.out.println(mensaje);\n }", "public Evento getEvento() { \n\t\t Evento evento = new Evento();\n\t\t List<Prenda> Lprendas = new ArrayList<Prenda>();\n\t\t Sugerencia sug = new Sugerencia();\n\t Prenda prend = new Prenda();\n Categoria categoria = new Categoria();\n\n categoria.setCodCategoria(1);\n categoria.setDescripcion(\"Zapatillas\");\n TipoPrenda tp = new TipoPrenda();\n tp.setDescripcion(\"lalal\");\n tp.setCategoria(categoria);\n tp.setCodTipoPrenda(1);\n \n \n Guardarropa guard = new Guardarropa();\n guard.setCompartido(false);\n guard.setDescripcion(\"guardarropa\");\n guard.setId(0); \n prend.setGuardarropa(guard);\n prend.setColorPrimario(\"rojo\");\n prend.setTipoPrenda(tp);\n prend.setColorSecundario(\"azul\");\n prend.setDescripcion(\"prenda 1\");\n prend.setNumeroDeCapa(EnumCapa.Primera);\n \tfor( int i = 0 ; i <= 4; i++) {\n prend.setCodPrenda(i);\n\t\t\tLprendas.add(prend);\t\t\t\n\t\t}\n \tsug.setIdSugerencia(1);\n \tsug.setMaxCapaInferior(0);\n \tsug.setMaxCapaSuperior(2);\t\n \tsug.setUsuario(new Usuario());\n \tsug.setListaPrendasSugeridas(Lprendas);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n\n \t return evento;\n\t }", "public void OnPlayer(Joueur joueur);", "private void chatRoomBtnListener() {\n chatRoomBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n }\n });\n }", "public ObservadorMenu(Boton b) {\n boton = b;//inicializa el boton\n boton.setObservador(this); //le añadimos al boton el observador\n }", "public void tellManagers(String msg, Object... args) {\n broadcast(ChatType.PERSONAL_ADMIN_TELL, monitorRole, msg, args);\n command.tell(CHANNEL_EVENTS_GROUP, msg, args);\n }", "@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}", "interface DogEventListener {\n\n void clickDogSpeak(int pos);\n }", "private void noti1(){\n\t\t/*Contenido de notificacion*/\n\t\tNotification notificacion = new Notification( \n R.drawable.metrans_logo,\n \"Metrans inicializando... Bienvenido\",\n System.currentTimeMillis() );\n\t\t/*Fin de contenido de la notificacion*/\n\t\tPendingIntent intencionPendiente = PendingIntent.getActivity(\n\t\t this, 0, new Intent(this, MainActivity.class), 0);\n\t\tnotificacion.setLatestEventInfo(this, \"Somos tan chingones\",\n\t\t \"que tenemos notificaciones aqui\", intencionPendiente);\n\t\n\t\t nm1.notify(ID_NOTIFICACION_CREAR, notificacion); //Enviamos la notificacion al status bar\n\t\tnotificacion.defaults |= Notification.DEFAULT_VIBRATE; //Agregando algo de vibracion... Espero y funcione\n\t\t\n\t}", "@Override\n\t\t\tpublic void onMessage(Connect connect, MessageEvent event){\n\t\t\t\tif(!event.getChannel().equalsIgnoreCase(\"AdminChat\")){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Get the message */\n\t\t\t\tString message = null;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tmessage = event.getMessageAsString();\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t/* Something went wrong, don't broadcast */\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Broadcast it! */\n\t\t\t\tfor(Player player : plugin.getServer().getOnlinePlayers()){\n\t\t\t\t\tif(player.hasPermission(\"adminchat.use\")) player.sendMessage(message);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public void conectarControlador(Controlador c){\n int i = 1;\n for(BCE b : eleccion.getBotones()){\n b.getBoton().setActionCommand(\"\" + i++);\n b.getBoton().addActionListener(c);\n }\n btnRegistrar.addActionListener(c);\n }", "public void loadTodosMensajes() {\r\n\t\t// Carga mensajes\r\n\t\tinfoDebug(\"Vista\", \"Cargando mensajes\");\r\n\t\tmensajesEntrantes = getTodosMensajesEntrantes(getEmpleadoActual().getEmplId());\r\n\t\tinfoDebug(\"Vista\", \"Acabado\");\r\n\t}", "private static void ClientObserver() {\n NewsAgency agency = new NewsAgency();\n\n // il canale televisivo le osserva, rilancia\n agency.addObserver( new NewsChannel( \"rai1\") );\n agency.addObserver( new NewsChannel( \"rai2\") );\n\n agency.setNews( \"30 e lode a tutti\" );\n agency.setNews( \"Data test\" );\n }" ]
[ "0.6945296", "0.65406734", "0.6449323", "0.6206217", "0.60648054", "0.5989394", "0.5973414", "0.5883908", "0.5883116", "0.58205354", "0.5813533", "0.57932585", "0.5736423", "0.57348627", "0.57296073", "0.56925005", "0.56743157", "0.56687903", "0.56667954", "0.56392586", "0.56282467", "0.5626817", "0.5622335", "0.5618702", "0.5584323", "0.5572539", "0.5568021", "0.55651915", "0.5557818", "0.5554701", "0.5542929", "0.5536017", "0.5533827", "0.5532757", "0.55326563", "0.5531654", "0.5518505", "0.55181", "0.55146337", "0.55080426", "0.5498836", "0.54904157", "0.54888445", "0.54805315", "0.5479152", "0.5473594", "0.54691356", "0.54652274", "0.54586464", "0.54552627", "0.54489565", "0.54436415", "0.54291266", "0.54249984", "0.5422257", "0.54208666", "0.5417992", "0.5411295", "0.54109704", "0.5405191", "0.5403896", "0.53977734", "0.5397077", "0.539128", "0.53878945", "0.5377848", "0.5372521", "0.5363809", "0.5361285", "0.5360208", "0.535189", "0.5348329", "0.5343909", "0.5341441", "0.5335389", "0.5330821", "0.53302056", "0.532415", "0.53233147", "0.5319439", "0.5318146", "0.53099513", "0.53092456", "0.53071105", "0.53035104", "0.5303426", "0.53033096", "0.5302989", "0.52934635", "0.529118", "0.52888274", "0.5283328", "0.5283053", "0.5274269", "0.52740353", "0.5273184", "0.5271371", "0.52698463", "0.52659374", "0.52633405", "0.526243" ]
0.0
-1
dataFileCreate() method to create a customerDetails.csv file and write data into it.
public void dataFileCreate() { String COMMA_DELIMITER = ","; String NEW_LINE_SEPERATOR = "\n"; String FILE_HEADER = "Title,First Name,Last Name,Email,Phone Number"; try { List<Customer> dataList = new ArrayList<Customer>(); dataList.add( new Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber)); FileWriter fileWriter = new FileWriter("CustomerDetails.csv"); BufferedWriter bufferWriter = new BufferedWriter(fileWriter); bufferWriter.append(FILE_HEADER); for (Customer c : dataList) { bufferWriter.write(NEW_LINE_SEPERATOR); bufferWriter.write(c.getTitle()); bufferWriter.write(COMMA_DELIMITER); bufferWriter.write(c.getFirstName()); bufferWriter.write(COMMA_DELIMITER); bufferWriter.write(c.getLastName()); bufferWriter.write(COMMA_DELIMITER); bufferWriter.write(c.getEmailAddress()); bufferWriter.write(COMMA_DELIMITER); bufferWriter.write(String.valueOf(c.getPhone())); bufferWriter.write(COMMA_DELIMITER); } bufferWriter.close(); } catch (Exception e) { System.out.println(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createCSV() {\n\t\t// Need to integrate CSV calling logic\n\t}", "public void createCsvFile(String fileName) { \n \n try { \n \n fileWriter = new FileWriter(fileName); \n \n //Write the CSV file header \n fileWriter.append(FILE_HEADER.toString()); \n \n //Add a new line separator after the header \n fileWriter.append(NEW_LINE_SEPARATOR); \n \n System.out.println(\"CSV file was created successfully !!!\"); \n \n } catch (Exception e) { \n \n System.out.println(\"Error in CsvFileWriter !!!\"); \n e.printStackTrace(); \n \n } finally { \n \n try {\n \n fileWriter.flush(); \n //fileWriter.close(); \n \n } catch (IOException e) { \n \n System.out.println(\"Error while flushing/closing fileWriter !!!\"); \n e.printStackTrace(); \n } \n \n } \n \n}", "CSV createCSV();", "public void writeCustomerDetails (String firstName, String lastName, int mobile, String email, String deliveryAddressNumber, String deliveryAddress)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tPrintWriter out = new PrintWriter(new FileWriter(\"customersWhoPurchased.txt\", true));\r\n\t\t\tout.println(\"First Name: \" +firstName);\t\t\t\r\n\t\t\tout.println(\"Last Name: \" +lastName);\r\n\t\t\tout.println(\"Mobile number: \" +mobile);\r\n\t\t\tout.println(\"Email: \" +email);\r\n\t\t\tout.println(\"Devliery address: \" +deliveryAddressNumber+ \" \" +deliveryAddress);\r\n\t\t\tout.println(\" \");\r\n\t\t\tout.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: Cannot open file for writing\");\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: Cannot write to file\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void createCSVOutput() {\n\t\tFile file = new File(\"rejectedByEsteticalRestructurationRejector.csv\"); \n\t\t\n\t\t//test if the file already exist\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"le fichier rejectedByEstheticalRestructurationRejector.csv existe deja\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t//create the different column for the CSV file\n\t\tString[] titles = { \"before\" , \"after\", \"id\"};\n\t\ttry {\n\t\t\toutputFile = new CsvFileWriter(file, '\\t', titles);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "private void CreateNewFile() {\n\tcheckState();\n\t\n\tif (CanR=CanW=true)\n\t{\n\t\t\n\t\ttry {\n\t\t root = Environment.getExternalStorageDirectory();\n\t\t \n\t\t if (root.canWrite()){\n\t\t gpxfile = new File(root, \"Speed_SD.csv\");\n\t\t gpxwriter = new FileWriter(gpxfile,true);\n\t\t out = new BufferedWriter(gpxwriter);\nout.append(\"\"+\",\"+\"\"+\",\"+\"\");\n\t\t out.newLine();\n\t\t }\n\t\t} catch (IOException e) {\n\t\t //Log.e(, \"Could not write file \" + e.getMessage());\ne.printStackTrace();\n\t\t\n\t}\n\t\t\n}\n\t\t}", "private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }", "public void filecreate(String Response_details) throws IOException\n\t{\n\t\tFileWriter myWriter = new FileWriter(\"D://Loadtime.txt\",true);\n\t\tmyWriter.write(Response_details+System.lineSeparator());\n\t\tmyWriter.close();\n\t\tSystem.out.println(\"Successfully wrote to the file.\");\n\t\t\n\t\t\n\t}", "public void writeDataToCsv(String filename , ArrayList<TestDataInstance> inputData) {\n \n String header = \"\";\n \n File outFile = null;\n int dataCount = 0;\n try {\n outFile = new File(filename);\n \n FileWriter fw = new FileWriter(outFile);\n \n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(header);\n \n for(TestDataInstance data : inputData) {\n bw.newLine();\n bw.write(data.toSamiamCsvString());\n dataCount++;\n }\n \n System.out.println(\"Written \" + dataCount + \" rows of data to SAMIAM CSV format @ \" + filename);\n \n } catch(Exception e) {\n e.printStackTrace();\n }\n \n }", "@RequestMapping(\"/generatecsv\")\r\n\tpublic String generateCsvFile() throws CsvDataTypeMismatchException, CsvRequiredFieldEmptyException {\r\n\r\n\t\tList<FinalCritExtDTO> list = service.generateDataForCsvFile();\r\n\r\n\t\tif (Objects.nonNull(list) && !list.isEmpty()) {\r\n\t\t\tlogger.info(\"data fetched from db and mapped of size \" + list.size());\r\n\t\t\twriter.writeDataAtOnce(list);\r\n\t\t} else\r\n\t\t\tlogger.info(\"No records found in db to be written\");\r\n\t\tlogger.debug(\"File successfully generated\");\r\n\t\treturn \"SUCCESS\";\r\n\t}", "public void create(String customerName, String phoneNum) throws IOException {\n\t\t// remove the space from the customer's name and store their name\n\t\tthis.formatCustomerName(customerName);\n\t\t// store the customer's phone number\n\t\tthis.phoneNum = phoneNum;\n\t\t// format the customer's phone number (add parenthesis around the area\n\t\t// code and add spaces)\n\t\tthis.formatPhoneNum();\n\n\t\t// declare the file path to the directory for the customer files\n\t\tFile dir = new File(FILE_PATH);\n\t\t// make/locate the appropriate directory for the customer files\n\t\tdir.mkdirs();\n\t\t// instantiate the customer file to the customer's name\n\t\tthis.customer = new File(dir, userName);\n\t\t// create a permanent file for the new customer\n\t\tcustomer.createNewFile();\n\n\t\t// write all local instance variables to the customer's file\n\t\tthis.write();\n\t}", "private void writeCSVToFile(List<String[]> dataRows, String filepath) {\n try {\n FileWriter output = new FileWriter(filepath);\n CSVWriter csvWriter = new CSVWriter(output);\n\n csvWriter.writeAll(dataRows);\n\n csvWriter.close();\n\n System.out.println(\"Your order has been succesfully sent to Foodora\");\n\n } catch (IOException e) {\n System.out.println(\"Could not write to Foodora output file\");\n }\n\n }", "public void writecsv(String path, String username, String ccyCode, String usernameData, String ccyCodeData) {\r\n\t\tString csv = path;\r\n\t\tCSVWriter writer = null;\r\n\t\ttry {\r\n\t\t\twriter = new CSVWriter(new FileWriter(csv));\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<String[]> data = new ArrayList<String[]>();\r\n\t\tdata.add(new String[] {username,ccyCode});\r\n\t\tdata.add(new String[] {usernameData,ccyCodeData});\r\n\r\n\t\twriter.writeAll(data);\r\n\t\ttry {\r\n\t\t\twriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(EMPLOYEE_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (EmployeeDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\t// log.debug(\"Writing transaction record for Employee id :\"+\n\t\t\t\t\t\t// transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getEmpId());\n\t\t\t\t\t\trecord.add(transaction.getName());\n\t\t\t\t\t\trecord.add(transaction.getDesignation());\n\t\t\t\t\t\trecord.add(transaction.getManagerName());\n\t\t\t\t\t\trecord.add(transaction.getProjectName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getActive());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static File createNewFile(String filename){\n try {\n File outputFile = new File(filename + \".csv\");\n\n //Creates File\n outputFile.createNewFile();\n\n return outputFile;\n\n } catch (IOException ex) {\n Logger.getLogger(CSVWriter.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }", "public static void storeDataIntoFile() {\n\r\n try {\r\n FileWriter writer = new FileWriter(\"DetailsOfVaccination.txt.txt\");\r\n writer.write(\"Vaccination booth info - First names-\" + Arrays.toString(firstName)); //Write the patients first name\r\n writer.write(\"\\n Patient's surnames - \" + Arrays.toString(surname)); //Write the patients surname\r\n writer.write(\"\\n Number of remaining vaccines = \" + vaccines); //Write the remaining of vaccines in stock\r\n writer.close();\r\n System.out.println(\"Successfully stored data into the file.\");\r\n }\r\n catch (IOException e) { //Runs if there was an error in file\r\n System.out.println(\"An error occurred while storing data into the file. Please try again.\");\r\n e.printStackTrace(); //Tool used to handle exceptions and errors (gives the line number and class name where exception happened)\r\n }\r\n }", "private static void generateDeleteCustomer() {\n long accountNo = getRandAccountD();\n writeToFile(String.format(\"%d\\n\", accountNo));\n }", "public static File createFile(String filename){\n try {\n File outputFile = new File(filename + \".csv\");\n\n //Prevent File Overwrite\n int tmp = 1;\n while (outputFile.exists()){\n outputFile = new File(filename + \".csv\" + \".\" + tmp);\n tmp++;\n }\n\n //Creates File\n outputFile.createNewFile();\n\n return outputFile;\n\n } catch (IOException ex) {\n Logger.getLogger(CSVWriter.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }", "private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (AttendanceDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for Employee id :\" + transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getCreatedDate());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getEmployeeEmpId()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeFullName());\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckInTime()));\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckOutTime()));\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "@Test\r\n\tpublic void generateFile() {\n\t\tfor (int i = 1; i <= 5; i++) {\r\n\t\t\t// String filePath = \"C://Users//AtifKhan//Desktop//sample-\" + i +\r\n\t\t\t// \".csv\";\r\n\t\t\tString filePath = \"C://Users//olcay tarazan//Desktop//sample-\" + i + \".csv\";\r\n\t\t\tint numberOfDataLines = 400;\r\n\t\t\ttry {\r\n\t\t\t\tgenerateCsvFile(filePath, numberOfDataLines);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"File generated : sample-\" + i + \".csv \");\r\n\t\t}\r\n\t}", "public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public ValidationInfo createCsv() {\n LocaleModule lm = LocaleManager.getInstance().getModule(LocaleModuleResource.Main);\n\n ValidationInfo vi = new ValidationInfo();\n if (_rows == null || _rows.size() == 0) {\n vi.setMessageWarning(lm.getString(\"general_export_nothing\"));\n return vi;\n }\n\n String fullFilePath = getFileName();\n\n StringBuilder sb = new StringBuilder();\n\n //create header\n String headerRow = _rows.get(0).createCsvRow(true);\n\n sb.append(headerRow + System.lineSeparator());\n\n try {\n //create rows\n for (Exportable e : _rows) {\n String rowString = e.createCsvRow(false);\n sb.append(rowString + System.lineSeparator());\n }\n\n //Output\n String strContent = sb.toString();\n Utils.writeFile(strContent, fullFilePath);\n\n vi.setMessageSuccess(String.format(lm.getString(\"general_export_success\"),\n _rows.size(), fullFilePath));\n } catch (Exception ex) {\n vi.setMessageError(lm.getString(\"general_export_error\"));\n }\n\n //open\n Utils.openFolder(fullFilePath);\n\n return vi;\n }", "void create() {\n\t\ttry {\n\t\t\tFile file = new File(\"Student.txt\");\n\t\t\t//File named Student.txt is created\n\t\t\tboolean x = file.createNewFile();\n\t\t\tif (x) {\n\t\t\t\tSystem.out.println(\"File has been created successfully! \");\n\t\t\t//Message of successful creation after new file is created\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"File already present\");\n\t\t\t\t//message if file already exists\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Exception Occurred:\");\n\n\t\t}\t\t\t\t\n\t\t\n\t\t\t\t\n\t\ttry {\n\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"Student.txt\", true)));\n\t\tint x = 1;\n\t\t\n\t\tdo {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint y;\n\t\t\t//take input from user for name,roll no and mobile no.\n\t\t\t\n\t\t\tSystem.out.print(\"\\nEnter Student Name: \");\n\t\t\tstudentname = br.readLine();\n\t\t\t\n\t\t\tSystem.out.print(\"Student Roll no: \");\n\t\t\trollno = Integer.parseInt(br.readLine());\t\t\n\t\t\t\n\t\t\tSystem.out.print(\"Mobile Number: \");\n\t\t\tmob_no = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tSystem.out.print(\"Marks : \");\n\t\t\tmarks = Float.parseFloat(br.readLine());\n\t\t\t\n\t\t\t//display student data\n\n\t\t\tpw.println(studentname + \"\\t\" + rollno + \"\\t\" + marks + \"\\t\" + mob_no);\n\t\t\t\n\t\t\tSystem.out.println(\"Do you want to enter more records? \\n1) Yes\\n2) No\");\n\t\t\t\n\t\t\ty = sc.nextInt();\n\t\t\t\n\t\t\tif(y == 2) {\n\t\t\t\tx = 0;\n\t\t\t}\n\t\t}while(x==1); //loop to add more records\n\t\tpw.close();\n\t\t}catch(IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}", "private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "void createCsv(String location);", "private static void generateData(final String fromFileName, final String toFileName, final String fromDateStr, final String toDateStr) {\n\n\t\tfinal File userDataFile = new File(fromFileName);\n\t\tfinal File outputFile = new File(toFileName);\n\n\t\tInteger fromDate = null;\n\t\ttry {\n\t\t\tfromDate = Integer.parseInt(fromDateStr);\n\t\t} catch(final Exception e){\n\t\t\tSystem.out.println(\"Invalid FROM date, using default: \" + DEFAULT_FROM_BIRTH_DATE);\n\t\t}\n\n\t\tInteger toDate = null;\n\t\ttry {\n\t\t\ttoDate = Integer.parseInt(toDateStr);\n\t\t} catch(final Exception e){\n\t\t\tSystem.out.println(\"Invalid TO date, using default: \" + DEFAULT_TO_BIRTH_DATE);\n\t\t}\n\n\t\ttry (final BufferedReader br = new BufferedReader(new FileReader(userDataFile));\n\t\t\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(outputFile))) {\n\t\t\tString line;\n\t\t\tboolean first = true;\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tif(first){\n\t\t\t\t\twriter.write(HEADER_LINE);\n\t\t\t\t\tfirst = false;\n\t\t\t\t}\n\n\t\t\t\tfinal int year = randomNumberBetween(fromDate, toDate);\n\t\t\t\tfinal int month = randomNumberBetween(1, 12);\n\t\t\t\tint day = randomNumberBetween(1, 31);\n\t\t\t\tif ((month == 4 || month == 6 || month == 9 || month == 11) && day == 31) {\n\t\t\t\t\tday = randomNumberBetween(1, 30);\n\t\t\t\t} else if (month == 2) {\n\t\t\t\t\tday = randomNumberBetween(1, 28);\n\t\t\t\t}\n\t\t\t\tfinal String dateOfBirth = year + DATE_SEPARATOR + (month < 10 ? ZERO + month : month) + DATE_SEPARATOR\n\t\t\t\t\t\t+ (day < 10 ? ZERO + day : day);\n\n\t\t\t\tfinal String timeSinceEpoch = String.valueOf(new SimpleDateFormat(DATE_FORMAT).parse(dateOfBirth)\n\t\t\t\t\t\t.getTime());\n\n\t\t\t\tfinal int lastYearIncome = randomNumberBetween(MONEY_FROM, MONEY_TO);\n\n\t\t\t\tfinal String state = US_STATES[randomNumberBetween(0, US_STATES.length - 1)];\n\n\t\t\t\tfinal String[] data = line.split(CSV_SEPARATOR);\n\n\t\t\t\twriter.write(\n\t\t\t\t\t\tdata[0].replaceAll(ESCAPED_QUOTES, EMPTY_STRING) + CSV_SEPARATOR +\n\t\t\t\t\t\tdata[2].replaceAll(ESCAPED_QUOTES, EMPTY_STRING) + CSV_SEPARATOR +\n\t\t\t\t\t\ttimeSinceEpoch + CSV_SEPARATOR +\n\t\t\t\t\t\tlastYearIncome + CSV_SEPARATOR + ESCAPED_QUOTES +\n\t\t\t\t\t\tstate + END_OF_LINE\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t} catch (final IOException | ParseException e) {\n\t\t\tSystem.out.println(\"Error creating data: \" + e.getMessage());\n\t\t\t// Don't Panic, an error occured!\n\t\t\tSystem.exit(42);\n\t\t}\n\t}", "private void startLogFile() {\n try {\n createLogFile();\n // First line of file contains field names\n String [] header = new String [] {\"Job\", \"Step\", \"Total Residents\", \"Domestic\", \"Employed\", \"Student\", \"Rebel\", \"Heard original rumor\", \"Heard new rumor\", \"Run\"};\n dataCSVFile_identity.writeLine(header);\n\n // activity\n String [] header_actions = new String [] {\"Job\",\"Step\",\"total residents\", \"At Home\", \"Work\", \"Searching for Work\",\n \"School\", \"Socialiazing\", \"Church\", \"Getting Water\", \"Rebel\", \"Run\"};\n\n dataCSVFile_action.writeLine(header_actions);\n\n String [] header_network = new String [] {\"Job\", \"Step\", \"node1\", \"node2\", \"weight\"};\n dataCSVFile_network.writeLine(header_network);\n\n String [] header_working = new String [] {\"Job\", \"Step\", \"Business\", \"School\", \"Health Facility\", \"Religious Facility\", \n \"Formal\", \"Informal\", \"Searching\", \"Inactive\", \"Formal at home\", \"Informal at home\", \"Run\"};\n dataCSVFile_working.writeLine(header_working);\n \n String [] header_rebels = new String [] {\"Job\", \"Step\", \"AgeGroup\", \"HHDiscrepancy\", \"Identity\", \"Count\" };\n dataCSVFile_rebels.writeLine(header_rebels);\n\n String[] header_residents = new String [] {\"Job\", \"Step\", \"Resident\", \"Age\", \"Employment status\", \"Laid off\", \"Action\", \n \"Daily water use\", \"Remaining water\", \"Required water\",\n \"Identity\",\"Is initial rebel\", \n \"Heard original rumor\", \"Heard new rumor\", \"Energy\", \"Current Aggression\", \"Aggression Rate\", \"Formal Business Capacity\", \n \"Informal Business Capacity\", \"School Capacity\", \"Has School\", \"Has formal employer\", \"Has informal Employer\", \n \"Formal income\", \"Informal income\", \"Searching income\", \"Inactive income\", \"Household Income\", \"Has electricity\", \"Has sanitation\",\n \"Has water\", \"Household expenditures\", \"Rent cost\", \"Water cost\", \"Electric cost\", \"Sanitation cost\", \n \"Transportation cost\", \"Other cost\", \"Food cost\", \"Discrepancy\", \"Run\", \"Preference\"};\n \n \n dataCSVFile_residents.writeLine(header_residents);\n\n String [] header_degreestats = new String [] {\"Job\", \"Step\", \"max degree\", \"min degree\", \"mean degree\", \"sum degree\", \"mean connections\", \"Run\"};\n dataCSVFile_degreestats.writeLine(header_degreestats);\n\n }\n\n catch (IOException ex) {\n Logger.getLogger(Kibera.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(JOB_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (JobDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getTitle()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeName());\n\t\t\t\t\t\trecord.add(transaction.getJobType());\n\t\t\t\t\t\trecord.add(transaction.getPlannedStartTime());\n\t\t\t\t\t\trecord.add(transaction.getActualEndTime());\n\t\t\t\t\t\trecord.add(transaction.getJobStatus() != null ? transaction.getJobStatus().name()\n\t\t\t\t\t\t\t\t: JobStatus.OPEN.name());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!! \" + e);\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "@Override\r\n\tpublic void createFile(FacebookClient fbClient, ITable table,\r\n\t\t\tString outputFile) {\n\t}", "public void CreateTestResultFile()\n\t{ \n\t\tDate dNow = new Date( );\n\t\tSimpleDateFormat ft =new SimpleDateFormat (\"MMddYYYY\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tFileOutputStream fos = new FileOutputStream(System.getProperty(\"user.dir\")+\"//PG HealthCheck List_\"+ft.format(dNow)+\".xls\");\n\t HSSFWorkbook workbook = new HSSFWorkbook();\n\t HSSFSheet worksheet = workbook.createSheet(\"PG Functionality - Country\");\n\t HSSFRow row1 = worksheet.createRow(0);\n\t row1.createCell(0).setCellValue(\"Availability of Data\");\n\t HSSFRow row = worksheet.createRow(1);\n\t row.createCell(0).setCellValue(\"Testcase\");\n\t row.createCell(1).setCellValue(\"TestRunStatus\");\n\t row.createCell(2).setCellValue(\"Remarks\");\n\t workbook.write(fos);\n\t fos.close();\n\t \t \n\t } \n\t\tcatch (Exception e)\n\t {\n\t \te.printStackTrace();\n\t }\n\t\t\t\n\t\t\n\t}", "public static void createCustomer() throws IOException {\n\t\tString ssn = randomSSN();\n\t\twhile(SSNmap.containsKey(ssn)) {\n\t\t\tssn = randomSSN();\n\t\t}\n\t\tSSNmap.put(ssn, 1);\n\t\t\n\t\tString name = names[random(50)] + \" \" + names[random(50)];\n\t\tString address = randomNumber() + \" \" + streets[random(50)];\n\t\tString phone = randomPhone();\n\t\t\n\t\twriter.write(\"INSERT INTO Customer (Id, SSN, Name, Address, Phone) Values (\" + custId++ +\", '\" + ssn + \"', '\" \n\t\t\t\t+ name + \"', '\" + address + \"', '\" + phone +\"'\" + line);\n\t\twriter.flush();\n\t}", "private boolean writeData(String aCSVFilename)\n {\n try\n {\n // open the chosen file\n File file = new File(aCSVFilename);\n BufferedWriter bufWtr = new BufferedWriter(new FileWriter(file));\n\n // write each line to text file\n writeKeyValuePairs(bufWtr);\n\n //close the file\n bufWtr.close();\n return true;\n }\n catch (Exception e)\n {\n return false;\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "private static void generateCsvFileWithFinalData(File path) // String sFileName\n {\n String COMMA_DELIMITER = \",\";\n String NEW_LINE_SEPARATOR = \"\\n\";\n try\n {\n // String path to our created output data file\n String finalFilePath = String.valueOf(path.getParent()) + \"\\\\test.csv\";\n FileWriter writer = new FileWriter(finalFilePath);\n\n for (Player player : sortedFinalPlayerList) {\n writer.append(player.getLastName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getFirstName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getCountry());\n writer.append(COMMA_DELIMITER);\n writer.append(String.valueOf(player.getLongCommSubsCounter()));\n writer.append(NEW_LINE_SEPARATOR);\n }\n\n //generate whatever data you want\n writer.flush();\n writer.close();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public void writeCSVFile(File file, String data) throws Exception{\n BufferedWriter bufferWritter = new BufferedWriter(new FileWriter(file));\n bufferWritter.write(data);\n bufferWritter.close();\n }", "public static void csvMake() throws ClassNotFoundException, SQLException, IOException{\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\tCSV newFile = new CSV();\n\t\tnewFile.make(conn);\n\t\tconn.close();\n\t}", "public File exportData() {\n File zephyrlogFolder = new File(Environment.getExternalStorageDirectory(), \"QuestionnaireActs\");\n\n boolean dirExists = zephyrlogFolder.exists();\n //if the directory doesn't exist, create it\n if (!dirExists) {\n dirExists = zephyrlogFolder.mkdirs();\n //if it still doesn't exist, give up and exit\n if (!dirExists) {\n Toast.makeText(this, \"Could not create ZephyrLogs directory!\", Toast.LENGTH_LONG).show();\n }\n }\n\n\n //create a data file and write into it\n File file = new File(zephyrlogFolder, \"Questionnaire_\"+promptName+\".txt\");\n try {\n FileWriter writer;\n if(!file.exists()){\n boolean created = file.createNewFile();\n if (!created) throw new IOException(\"Could not create data file\");\n writer = new FileWriter(file, true);\n //if this is a new file, write the CSV format at the top\n writer.write(\"Ονοματεπώνυμο: \"+promptName+\"\\n\"+\"Score: \"+myscore+\"\\n\\n\");\n } else {\n writer = new FileWriter(file, true);\n }\n writer.write(\"Ονοματεπώνυμο: \"+promptName+\"\\n\"+\"Score: \"+myscore+\"\\n\\n\");\n writer.close();\n } catch (FileNotFoundException e) {\n Toast.makeText(this, \"Could not create logging file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n Toast.makeText(this, \"Unsupported encoding exception thrown trying to write file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (IOException e) {\n Toast.makeText(this, \"IO Exception trying to write to data file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n return file;\n }", "public static void writeIntoMappingCSV(String fileName, MappingClass newRecords, String[] header) throws Exception {\n logger.info(\"Start executing writeIntoMappingCSV method !!!\");\n\n FileWriter fileWriter = null;\n CSVPrinter csvFilePrinter = null;\n List mappingFileRecords = new ArrayList();\n\n CSVFormat csvFileFormat = CSVFormat.DEFAULT.withHeader(header);\n try {\n fileWriter = new FileWriter(fileName);\n csvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n for (Map.Entry<String, Integer> entry : newRecords.entrySet()) {\n mappingFileRecords.clear();\n mappingFileRecords.add(entry.getKey());\n mappingFileRecords.add(entry.getValue());\n csvFilePrinter.printRecord(mappingFileRecords);\n }\n\n logger.info(\"Successfully : writeIntoMappingCSV CSV file was created successfully !!!\");\n } finally {\n try {\n fileWriter.flush();\n fileWriter.close();\n csvFilePrinter.close();\n } finally {\n logger.warn(\"End executing writeIntoMappingCSV method !!!\");\n }\n }\n }", "private void initializewriters() {\n try {\n outputfile = new FileWriter(journeyfile);\n // create CSVWriter object filewriter object as parameter\n writer = new CSVWriter(outputfile);\n\n // adding header to csv\n String[] header = {\"Lat\", \"Lng\", \"Zacc\", \"Timestamp\"};\n writer.writeNext(header);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }", "private void startRecording() {\n Date now = new Date(System.currentTimeMillis());\n fileName = \"AccelerometerData_\" + sdf.format(now) + \"_sampling_\" + listenerSampling + \"microsec.csv\";\n String directory = Environment.getExternalStorageDirectory() + \"/_Parka/AccelerometerCsvFile\";\n\n csvWriter.createFile(fileName,directory);\n startTime = csvWriter.getStartTime();\n\n String headFileStr = \"Millisec\" + \",\" + \"TimeStamp\" + \",\"\n + \"Acce X\" + \",\" + \"Acce Y\" + \",\" + \"Acce Z\" + \",\"\n + \"Stop engine\"+\",\\n\";\n csvWriter.writeHeadFile(headFileStr);\n\n registerListener();\n Toast.makeText(this, \"START RECORDING | \"\n + \"file name = \" + fileName, Toast.LENGTH_SHORT).show();\n }", "public void dump(PhoneBill bill) throws IOException{\n String customer = bill.getCustomer();\n File file = new File(\"/Users/srubey/PortlandStateJavaSummer2020/phonebill/src/main/resources/edu/pdx/cs410J/scrubey/\"\n + Project2.getFileName());\n FileWriter writer = null;\n\n try{\n //**if file not yet created\n writer = new FileWriter(file);\n\n writer.write(\"Customer name: \" + bill.getCustomer() + \"\\n\\n\");\n writer.write(\"Caller# Callee#\\t\\t Start Date\\tStart Time\\tEnd Date\\tEnd Time\\n\");\n\n //iterate through each phone call, extracting and adding data to file\n for(int i = 0; i < bill.getPhoneCalls().size(); ++i) {\n String caller = bill.getPhoneCalls().get(i).callerNumber;\n String callee = bill.getPhoneCalls().get(i).calleeNumber;\n String sd = bill.getPhoneCalls().get(i).startDate;\n String st = bill.getPhoneCalls().get(i).startTime;\n String ed = bill.getPhoneCalls().get(i).endDate;\n String et = bill.getPhoneCalls().get(i).endTime;\n\n writer.write(caller + \" \" + callee + \" \" + sd);\n\n //formatting\n if(sd.length() < 10)\n writer.write(\"\\t\");\n\n writer.write(\"\\t\" + st + \"\\t\\t\" + ed + \"\\t\" + et + \"\\n\");\n }\n\n file.createNewFile();\n }catch(IOException e){\n System.out.print(\"\\nText File error\");\n }finally{\n writer.close();\n }\n }", "public int addCustomer(String custName,long custMobile,String modelName) \r\n\t{\r\n\t\tint a=(int)((Math.random())*10);\r\n\r\n\t\tprice1=searchModel(modelName);\r\n\r\n\r\n\t\tFile f= new File(\"customerInfo.txt\");\r\n\r\n\t\tif(!f.exists())\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\ttry {\r\n\r\n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(f, true));\r\n\t\t\tpw.println(custName);\r\n\t\t\tpw.println(custMobile);\r\n\t\t\tpw.println(modelName);\r\n\t\t\tpw.println(String.valueOf(price1));\r\n\r\n\r\n\r\n\r\n\t\t\tpw.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\r\n\r\n\t\treturn a;\r\n\r\n\t}", "@RequestMapping(value = \"customer/download\" + SPRING_EXT, method = RequestMethod.POST)\r\n\tpublic void customer_download(\r\n\t\t\tHttpServletRequest req,\r\n\t\t\tHttpServletResponse response\r\n\t\t\t) \r\n\t{\r\n\t\t\r\n\t\tlog.debug(\"| customer_download | Entry\");\r\n\t\t\r\n\t\t/*Configuration*/\r\n\t\tString current_datetime = SDF_YYYY_MM_DD.format(new Date());\r\n\t\tString filename = \"STUDENTLIST_\"+current_datetime+\".csv\";\r\n\t\tString[] header = customerService.setUpCSVHeader();\r\n\t\tfinal CellProcessor[] whiterProcessors = customerService.setUpWriterProcessors(header);\r\n\t\t/*Configuration*/\r\n\t\t\r\n\t\t/*Data*/\r\n\t\tCustomerFilterObj filter = new CustomerFilterObj(req.getParameter(\"identificationNum\"), \r\n\t\t\t\treq.getParameter(\"name\"), req.getParameter(\"contactNum\"), req.getParameter(\"email\"),\r\n\t\t\t\treq.getParameter(\"invoiceNum\"), req.getParameter(\"event\"));\r\n\t\tList<CustomerDTO> customerList = customerService.getDownloadListByFilter(filter);\r\n\t\tList<Map<String, Object>> customerMap = customerService.convertCustomerListToMapList(header, customerList);\r\n\t\t/*Data*/\r\n\t\t\r\n\t\tCSVFileHandler handler = new CSVFileHandler();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\thandler.downloadCustomerCSV(customerMap, header, whiterProcessors, response, filename);\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tlog.debug(\"| customer_download | Exit\");\r\n \r\n\t}", "private void createMarkerFile(String partitionPath, String dataFileName) {\n WriteMarkers writeMarkers = WriteMarkersFactory.get(writeConfig.getMarkersType(), table, instantTime);\n writeMarkers.create(partitionPath, dataFileName, IOType.CREATE);\n }", "private static void generateAddCustomer(int branchID) {\n long accountNo = getNewAccountNo(branchID);\n int balance = getRandomBalance();\n writeToFile(String.format(\"%d %d\\n\", accountNo, balance));\n }", "private void storeToCsvFile( final File aSelectedFile, final Asm45DataSet aAnalysisResult )\n {\n try\n {\n final CsvExporter exporter = ExportUtils.createCsvExporter( aSelectedFile );\n\n exporter.setHeaders( \"index\", \"clocks\", \"block\", \"address\", \"value\", \"bus grant\", \"type\", \"event\" );\n\n final List<Asm45Data> dataSet = aAnalysisResult.getData();\n for ( int i = 0; i < dataSet.size(); i++ )\n {\n final Asm45Data ds = dataSet.get( i );\n exporter.addRow( Integer.valueOf( i ), Integer.valueOf( ds.getClocks() ),\n StringUtils.integerToHexString( ds.getBlock(), 2 ), StringUtils.integerToHexString( ds.getAddress(), 4 ),\n StringUtils.integerToHexString( ds.getValue(), 4 ), ds.getBusGrant() ? \"X\" : \"-\", ds.getType(),\n ds.getEvent() );\n }\n\n exporter.close();\n }\n catch ( final IOException exception )\n {\n // Make sure to handle IO-interrupted exceptions properly!\n if ( !HostUtils.handleInterruptedException( exception ) )\n {\n LOG.log( Level.WARNING, \"CSV export failed!\", exception );\n }\n }\n }", "public static File createExtraColsFile(ClinicalCode parser, EmisCsvHelper csvHelper) throws Exception {\n\n //use the CSV helper thread pool to perform multiple lookups in parallel\n List<Long> codeIds = new ArrayList<>();\n Map<Long, String> hmAdjustedCodes = new ConcurrentHashMap<>();\n Map<Long, Integer> hmIsEmisCodes = new ConcurrentHashMap<>(); //use int rather than boolean so we end up with 1 or 0 not \"true\" or \"false\"\n Map<Long, String> hmSnomedTerms = new ConcurrentHashMap<>();\n\n try {\n\n Task nextTask = new Task(hmAdjustedCodes, hmIsEmisCodes, hmSnomedTerms);\n\n while (parser.nextRecord()) {\n CsvCell codeIdCell = parser.getCodeId();\n CsvCell readCodeCell = parser.getReadTermId();\n CsvCell snomedConceptIdCell = parser.getSnomedCTConceptId();\n\n long codeId = codeIdCell.getLong().longValue();\n String readCode = readCodeCell.getString();\n Long snomedConceptId = snomedConceptIdCell.getLong();\n\n codeIds.add(new Long(codeId));\n\n //perform the lookups in the thread pool\n nextTask.addRecord(codeId, readCode, snomedConceptId);\n if (nextTask.isFull()) {\n csvHelper.submitToThreadPool(nextTask);\n nextTask = new Task(hmAdjustedCodes, hmIsEmisCodes, hmSnomedTerms);\n }\n }\n\n //finish off the current task\n if (!nextTask.isEmpty()) {\n csvHelper.submitToThreadPool(nextTask);\n }\n\n } finally {\n csvHelper.waitUntilThreadPoolIsEmpty();\n }\n\n //then write out the results to file\n File tempDir = FileHelper.getTempDir();\n File subTempDir = new File(tempDir, UUID.randomUUID().toString());\n if (!subTempDir.exists()) {\n boolean createDir = subTempDir.mkdirs();\n if (!createDir) {\n throw new Exception(\"Failed to create temp dir \" + subTempDir);\n }\n }\n\n File dstFile = new File(subTempDir, \"EmisCodeExtraCols.csv\");\n\n FileOutputStream fos = new FileOutputStream(dstFile);\n OutputStreamWriter osw = new OutputStreamWriter(fos);\n BufferedWriter bufferedWriter = new BufferedWriter(osw);\n\n //the Emis records use Windows record separators, so we need to match that otherwise\n //the bulk import routine will fail\n CSVFormat format = EmisCsvToFhirTransformer.CSV_FORMAT\n .withHeader(\"CodeId\", \"AdjustedCode\", \"IsEmisCode\", \"SnomedTerm\")\n .withRecordSeparator(\"\\r\\n\");\n\n CSVPrinter printer = new CSVPrinter(bufferedWriter, format);\n\n for (Long codeId: codeIds) {\n String adjustedCode = hmAdjustedCodes.get(codeId);\n Integer isEmisCode = hmIsEmisCodes.get(codeId);\n String snomedTerm = hmSnomedTerms.get(codeId);\n\n printer.printRecord(codeId, adjustedCode, isEmisCode, snomedTerm);\n }\n\n printer.close();\n\n return dstFile;\n }", "public static void createCustomer() throws IOException\r\n\t{\r\n\t\tclearScreen();\r\n\t\t\r\n\t\tSystem.out.println(\"[CUSTOMER CREATOR]\\n\");\r\n\t\tSystem.out.println(\"Enter the name of the customer you would like to create:\");\r\n\t\t\r\n\t\t// create a new customer with a user-defined name\r\n\t\tCustomer c = new Customer(inputString(false));\r\n\t\t// add the customer to the ArrayList\r\n\t\tcustomers.add(c);\r\n\t\t// display the edit screen for the customer\r\n\t\teditCustomer(c);\r\n\t}", "static void createNewFile(String path) \n\t\t{\n\t\tLinkedList<String> defaultData = new LinkedList<String>();\n\t\tdefaultData.add(\"1,Frank,West,98,95,87,78,77,80\");\n\t\tdefaultData.add(\"2,Dianne,Greene,78,94,88,87,95,92\");\n\t\tdefaultData.add(\"3,Doug,Lei,78,94,88,87,95,92\");\n\t\tdefaultData.add(\"4,James,Hewlett,69,92,74,77,89,91\");\n\t\tdefaultData.add(\"5,Aroha,Wright,97,92,87,83,82,92\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tPrintWriter newFile = new PrintWriter(path, \"UTF-8\"); // Create .txt file in given path\n\t\t\t\n\t\t\tfor (String s : defaultData) \n\t\t\t{\n\t\t\t\tnewFile.println(s); // Write To file\n\t\t\t}\n\t\t\t\n\t\t\tnewFile.close(); // Close File\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"studentData.txt Created Successfully!\");\n\t\t\n\t}", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "private void writeDataToFile(char[] charArr, String filePath) {\n try {\n\n File outputFile = new File(filePath);\n\n if (sentencesProcessed == 1 || isMetricsFilePath) {\n outputFile.delete();\n outputFile.createNewFile();\n }\n\n FileWriter outputFileWrtrObj = new FileWriter(outputFile, true);\n\n for (char ch : charArr) {\n outputFileWrtrObj.write(ch);\n }\n\n outputFileWrtrObj.close();\n\n } catch (Exception e) {\n System.out.println(utilityConstants.LINE_SEPARATOR);\n System.err.println(utilityConstants.FILE_WRITING_ERROR_MSG);\n e.printStackTrace();\n System.exit(0);\n\n }\n }", "public void saveData(int argLowAlpha, int argHighAlpha, int argLowBeta, int argHighBeta, int argLowGamma, int argMidGamma, int argDelta, int argTheta) {\n\n try {\n File sdCard = Environment.getExternalStorageDirectory();\n File dir = new File(sdCard.getAbsolutePath() + \"/cerebro_files/\");\n dir.mkdirs();\n\n if (fileCountFlag == 0) {\n File[] files = dir.listFiles();\n int numberOfFiles = files.length;\n String index = new Integer(numberOfFiles + 1).toString();\n Toast.makeText(getApplicationContext(), \"Number of files is: \"+index, Toast.LENGTH_SHORT).show();\n filename = \"file\" + index + \".csv\";\n fileCountFlag = 1;\n }\n\n //File file = new File(dir, \"filename1.csv\"+index);\n File file = new File(dir, filename);\n //Toast.makeText(getApplicationContext(), \"init file\",Toast.LENGTH_SHORT).show();\n\n FileOutputStream f = new FileOutputStream(file, true);\n\n //Toast.makeText(getApplicationContext(), \"got output stream\",Toast.LENGTH_SHORT).show();\n\n //String strLowAlpha = new Integer(lowAlpha).toString();\n String strHighAlpha = new Integer(argHighAlpha).toString();\n String strLowBeta = new Integer(argLowBeta).toString();\n String strHighBeta = new Integer(argHighBeta).toString();\n String strLowGamma = new Integer(argLowGamma).toString();\n String strMidGamma = new Integer(argMidGamma).toString();\n String strDelta = new Integer(argDelta).toString();\n String strTheta = new Integer(argTheta).toString();\n\n //string1 = string1 + \"\\n\";\n\n String strCSV = new Integer(argLowAlpha).toString();\n\n strCSV = strCSV+','+strHighAlpha+','+strLowBeta+','+strHighBeta+','+strLowGamma+','+strMidGamma+','+strDelta+','+strTheta+'\\n';\n\n //f.write(string.getBytes());\n //bf.write(passData.getBytes());\n f.write(strCSV.getBytes());\n //Toast.makeText(getApplicationContext(), \"Done writing\",Toast.LENGTH_SHORT).show();\n f.close();\n //Toast.makeText(getApplicationContext(), \"File buffer closed\",Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"failed to write\",Toast.LENGTH_SHORT).show();\n }\n }", "@Test\n public void testWriteOrderData() throws Exception {\n dao.loadEnvironmentVariable();\n Order writeOrder = new Order();\n\n writeOrder.setOrderNumber(1);\n writeOrder.setOrderDate(LocalDate.parse(\"1901-01-01\"));\n writeOrder.setCustomer(\"Write Test\");\n writeOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n writeOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n writeOrder.setArea(new BigDecimal(\"100.00\"));\n writeOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n writeOrder.setLaborCost(new BigDecimal(\"475.00\"));\n writeOrder.setTaxCost(new BigDecimal(\"61.88\"));\n writeOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n dao.addOrder(writeOrder);\n dao.writeOrderData();\n\n File orderFile = new File(System.getProperty(\"user.dir\") + \"/Orders_01011901.txt\");\n\n assertTrue(orderFile.exists());\n\n Files.deleteIfExists(Paths.get(System.getProperty(\"user.dir\") + \"/Orders_01011901.txt\"));\n\n }", "public static void createFile(double[] array){\n //String for the name of the file that's going to be created.\n String newFileName = \"results.csv\";\n\n //Create a file variable using the created file name\n try{\n File newFile = new File(newFileName);\n\n //Create new instance of PrintWriter to write into the new file\n FileWriter csvWriter = new FileWriter(newFile, false);\n //For each number, print the percentage into the file\n for(int i = 0; i < 9; i++){\n csvWriter.write((i+1) + \": \" + array[i] + \"%\\n\");\n }\n //Close the PrintWriter since we don't need it anymore.\n csvWriter.close();\n }\n catch(FileNotFoundException e){\n System.out.println(\"File not found\");\n }\n catch(IOException e){\n System.out.println(\"IO Exception\");\n }\n }", "public void createCsvFile(String filePath, String []courses) {\n\t\tLogger.info(\"Creating CSV file containing the text: \");\n\t\tfor (int i=0;i<courses.length;i++){\n\t\t\tLogger.info(courses[i]);\n\t\t}\n\t\tFileWriter os;\n\t\ttry {\n\t\t\tos = new FileWriter(filePath);\n\t\t\tfor (int i=0;i<(courses.length)-1;i++){\n\t\t\t\tos.write(courses[i]);\n\t\t\t\tos.write(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tos.write(courses[(courses.length)-1]);\n\t\t\t//os.write(fileContent2);\n\t\t\tos.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void saveCustomerToFile() throws IOException {\n\t\tString desktopPath = System.getProperty(\"user.home\") + \"\\\\Desktop\\\\customer\";\n\t\t\n\t\tFileOutputStream fos = new FileOutputStream(desktopPath);\n\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\n\t\tCustomer[] customersArr = customers.toArray(new Customer[customers.size()]) ;\n\t\t\n\t\toos.writeObject(customersArr);\n\t\toos.close();\n\t}", "public void writeInfoTofile() throws IOException\n\t{\n\t\tFileWriter fstream = new FileWriter(\"booking.txt\",true);\n BufferedWriter out = new BufferedWriter(fstream); //buffer class name out\n out.append(\"name : \"+this.customer_name);\n out.newLine();\n out.append(hotelInfo.getName());// Writing all customer info\n out.newLine();\n out.append(\"country : \"+hotelInfo.getCountry());\n out.newLine();\n out.append(\"Hotel rating : \"+hotelInfo.getStar());\n out.newLine(); \n out.append(\"check-in date : \"+this.checkin_date);\n out.newLine();\n out.append(\"check-out date: \"+this.checkout_date);\n out.newLine();\n out.append(\"Total price : \"+this.totalPrice);\n out.newLine();\n out.close();\n System.out.println(\"Writting successful.\");\n\t}", "private static void createCSV(String filename, ArrayList<Long> sizes, ArrayList<Long> times){\n File csv = new File(\"\"+filename);\n try {\n if(csv.createNewFile()) {\n PrintWriter file = new PrintWriter(new FileWriter(csv));\n file.print(\"Size (n)\");\n for (Long size : sizes)\n file.print(\",\" + size);\n file.print(\"\\nTimes (ms)\");\n for(Long time:times)\n file.print(\",\"+time);\n file.println();\n file.close();\n\n } else {\n Scanner fileReader = new Scanner(csv);\n String currentSizes = fileReader.nextLine();\n int size=currentSizes.split(\",\").length-1;\n if(size<sizes.size()){\n for(int i=size;i<sizes.size();i++)\n currentSizes+=\",\"+sizes.get(i);\n currentSizes+=\"\\n\";\n while(fileReader.hasNextLine())\n currentSizes+=fileReader.nextLine()+\"\\n\";\n FileWriter writer = new FileWriter(csv);\n writer.write(currentSizes);\n writer.close();\n }\n\n PrintWriter file = new PrintWriter(new FileWriter(csv,true));\n file.print(\"Times (ms)\");\n for(Long time:times)\n file.print(\",\"+time);\n file.println();\n file.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n\tpublic void testPopulateCustomerDataset1() throws CustomerException, LogHandlerException{\n\t\tcustomers = LogHandler.populateCustomerDataset(correctFile1);\n\t}", "public void writeDataToCSV(Context context, String competition) throws IOException {\n\n fileExists = false;\n\n String FILE_PATH = \"Scouting_Data_\" + competition + \".csv\";\n File file = new File(context.getExternalFilesDir(\n Environment.DIRECTORY_DOCUMENTS), FILE_PATH);\n\n// if (!file.exists()) {\n// FileWriter fw = new FileWriter(file);\n// BufferedWriter bw = new BufferedWriter(fw);\n// bw.write(str);\n// bw.close();\n// }\n//\n// else {\n// FileOutputStream fileinput = new FileOutputStream(file, true);\n// PrintStream printstream = new PrintStream(fileinput);\n// printstream.print(\"\\n\" + str);\n// fileinput.close();\n// fileExists = true;\n// }\n }", "public void new_record()\n {\n /*\n Prompt for data:\n Last name\n First name\n Phone\n */\n \n //Craete a scanner object\n Scanner kb = new Scanner(System.in);\n \n //prompt for the last name\n System.out.print(\"Last name: \");\n \n //input the last name\n String lastName = kb.nextLine();\n \n //the Last_name must not be empty\n if(lastName.length() > 0 )\n {\n //get the first name and the phone\n System.out.print(\"First name: \");\n String firstName = kb.nextLine();\n \n System.out.print(\"Phone: \");\n String phone = kb.nextLine(); \n \n \n \n //create the output string\n \n \n \n \n //delare variables to hold file types\n FileWriter fWrite = null;\n \n //try to open the file for writing - append the data\n try\n {\n fWrite = new FileWriter(new File(filename), true);\n \n }\n catch(IOException ioe)\n {\n System.out.println(\"new_record: Exception opening the file for writing\");\n }\n //try to wrtie the data\n try\n {\n fWrite.write(lastName + \",\" + firstName + \",\" + phone + \"\\n\");\n \n }\n catch(IOException ioe)\n {\n System.out.println(\"new_record: Exception writing to the file\");\n }\n //try to close the file\n try\n {\n fWrite.close();\n \n }\n catch(IOException ioe)\n {\n System.out.println(\"new_record: Exception closing the file\");\n }\n \n }//end of test of Last_name\n \n }", "public static String createFileName(String customer, Date date) {\n \n String name = removeBannedCharacters(customer);\n if (name.length() == 0) {\n name = \"Customer\"; // Something, if there are no valid filename characters. Can you think of a better solution? Ask the user for a name?\n }\n \n // Format the date into a String\n String dateString = simpleDateFormat.format(date);\n \n String filename = String.format(\"%s_%s_invoice.txt\", name, dateString);\n \n return filename;\n \n }", "public abstract boolean writeDataToFile(String fileName, boolean overwrite);", "void create(DataTableDef def) throws IOException;", "public static void main(String arr[]) {\n\t\t\n\t\tMap<String,String>map = new LinkedHashMap<String,String>();\n\t\t\n\t\tFileWriter fileWriter = null;\n\t\t\t\t\n\t\ttry {\n\t\t\tfileWriter = new FileWriter(fileName);\n\n\t\t\t//Write the CSV file header\n\t\t\tfileWriter.append(FILE_HEADER.toString());\n\t\t\t\n\t\t\t//Add a new line separator after the header\n\t\t\tfileWriter.append(NEW_LINE_SEPARATOR);\n\t\t\t\n\t\t\t//Write a new student object list to the CSV file\n\t\t\t\n\t\t\tfor(int i = 1; i <500000; i++){\n\t\t\t\t\n\t\t\t\tfileWriter.append(String.valueOf(i));\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"ABC\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"lastname\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"M\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(String.valueOf(i));\n\t\t\t\tfileWriter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"CSV file was created successfully !!!\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in CsvFileWriter !!!\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfileWriter.flush();\n\t\t\t\tfileWriter.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error while flushing/closing fileWriter !!!\");\n e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void createFile() {\n if (mDriveServiceHelper != null) {\n Log.d(\"error\", \"Creating a file.\");\n\n mDriveServiceHelper.createFile()\n .addOnSuccessListener(fileId -> readFile(fileId))\n .addOnFailureListener(exception ->\n Log.e(\"error\", \"Couldn't create file.\", exception));\n }\n }", "private String getJsonCustomerDataCreate(\n List<CustomerDataTypeDTO> listCustomerData,\n Map<Long, Map<String, List<FileInfosDTO>>> uploadData, String formatDate) throws JsonProcessingException {\n Map<String, Object> empData = new HashMap<>();\n Map<String, List<FileInfosDTO>> customerFilesMap = null;\n if (uploadData != null) {\n customerFilesMap = uploadData.get(0L);\n }\n if (listCustomerData != null && !listCustomerData.isEmpty()) {\n for (CustomerDataTypeDTO data : listCustomerData) {\n List<FileInfosDTO> listFiles = null;\n if (customerFilesMap != null) {\n listFiles = customerFilesMap.get(data.getKey());\n }\n getDataFromEmployeeDataCreate(empData, data, listFiles, formatDate);\n }\n }\n return objectMapper.writeValueAsString(empData);\n }", "private static void createFile() throws Exception {\n\t\t // retrieve an instance of H4File\n\t\t FileFormat fileFormat = FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF4);\n\n\t\t if (fileFormat == null) {\n\t\t System.err.println(\"Cannot find HDF4 FileFormat.\");\n\t\t return;\n\t\t }\n\n\t\t // create a new file with a given file name.\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\t\tH4File testFile = (H4File) fileFormat.create(fname);\n\n\t\t if (testFile == null) {\n\t\t System.err.println(\"Failed to create file:\" + fname);\n\t\t return;\n\t\t }\n\n\t\t // open the file and retrieve the root group\n\t\t testFile.open();\n\t\t Group root = (Group) ((javax.swing.tree.DefaultMutableTreeNode) testFile.getRootNode()).getUserObject();\n\n\t\t // set the data values\n\t\t int[] dataIn = new int[20 * 10];\n\t\t for (int i = 0; i < 20; i++) {\n\t\t for (int j = 0; j < 10; j++) {\n\t\t dataIn[i * 10 + j] = 1000 + i * 100 + j;\n\t\t }\n\t\t }\n\n\t\t // create 2D 32-bit (4 bytes) integer dataset of 20 by 10\n\t\t Datatype dtype = testFile.createDatatype(Datatype.CLASS_INTEGER, 4, Datatype.NATIVE, Datatype.NATIVE);\n\t\t @SuppressWarnings(\"unused\")\n\t\t\t\tDataset dataset = testFile\n\t\t .createScalarDS(\"2D 32-bit integer 20x10\", root, dtype, dims2D, null, null, 0, dataIn);\n\n\t\t // close file resource\n\t\t //testFile.close();\n\t\t }", "public void exportCsv() throws IOException\n {\n File csvOutputFile = new File(\"datas.csv\");\n try (PrintWriter writer = new PrintWriter(csvOutputFile)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Temps\");\n sb.append(\",\");\n for (String title : this.getModelLabels())\n {\n sb.append(title);\n sb.append(\",\");\n }\n sb.append(\"\\n\");\n for (int i = 0; i < this.getEtatPopulation().size(); i++)\n {\n sb.append(i);\n sb.append(\",\");\n for (double value : this.getEtatPopulation().get(i))\n {\n sb.append(value);\n sb.append(\",\");\n }\n sb.append(\"\\n\");\n }\n writer.write(sb.toString());\n System.out.println(\"Datas Successfully Exported !\");\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n }\n\n }", "public static int create(EcoSystem system){\n \n \n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Customer Details\");\n\n //Custom font style for header\n CellStyle cellStyle = sheet.getWorkbook().createCellStyle();\n Font font = sheet.getWorkbook().createFont();\n font.setBold(true);\n cellStyle.setFont(font);\n \n int rowCount = 0;\n int columnCount1 = 0;\n \n //Creating header row\n \n String s[] = {\"CUSTOMER ID\",\"CUSTOMER NAME\",\"CONTACT NO.\",\"EMAIL ID\",\"USAGE(Gallons)\",\"BILLING DATE\",\"TOTAL BILL($)\"};\n Row row1 = sheet.createRow(++rowCount);\n for(String s1 : s){\n Cell header = row1.createCell(++columnCount1);\n header.setCellValue(s1);\n header.setCellStyle(cellStyle);\n }\n \n \n \n for(Network network : system.getNetworkList()){\n for(Enterprise enterprise : network.getEnterpriseDirectory().getEnterpriseList()){\n if(enterprise instanceof WaterEnterprise){\n for(Organization organization : enterprise.getOrganizationDirectory().getOrganizationList()){\n if(organization instanceof CustomerOrganization){\n for(Employee employee : organization.getEmployeeDirectory().getEmployeeList()){\n Customer customer = (Customer) employee;\n Row row = sheet.createRow(++rowCount);\n int columnCount = 0;\n for(int i = 0 ; i<7 ; i++ ){\n Cell cell = row.createCell(++columnCount);\n if(i==0){\n cell.setCellValue(customer.getId());\n }\n else if(i == 1){\n cell.setCellValue(customer.getName());\n }\n else if(i == 2){\n cell.setCellValue(customer.getContactNo());\n }\n else if(i == 3){\n cell.setCellValue(customer.getEmailId());\n }\n else if(i == 4){\n cell.setCellValue(customer.getTotalUsageVolume());\n }\n else if(i == 5){\n if(customer.getBillingDate() != null)\n cell.setCellValue(String.valueOf(customer.getBillingDate()));\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n else if(i == 6){\n if(customer.getTotalBill() != 0)\n cell.setCellValue(customer.getTotalBill());\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n }\n }\n }\n }\n }\n }\n }\n \n \n try (FileOutputStream outputStream = new FileOutputStream(\"Customer_details.xlsx\")) {\n workbook.write(outputStream);\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"File not found\");\n return 0;\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"IOException\");\n return 0;\n }\n return 1;\n }", "static void writeTimeCSV(String data_structure){\n\n try {\n\n // Getting current directory\n String path = System.getProperty(\"user.dir\");\n // Initializing data directory\n String dataPath = path + \"/Data/\";\n // Initializing CSV directory \n String csvPath = path + \"/CSV/\";\n\n // Creating filename with given data structure\n String filename = String.format(\"%s.csv\",data_structure);\n\n // Initializing FileWrite object \n FileWriter write = new FileWriter(csvPath + filename);\n\n // Initializing header string for csv file\n String header = \"Total_Word_Count,t\\n\";\n write.append(header);\n\n // Initializing counter object\n WordCounter2 counter = new WordCounter2(data_structure);\n\n // Creating data format string\n String dataFormat = \"%s,%s\\n\";\n\n // Getting data directory\n File dataDirectory = new File(dataPath);\n\n // Going through each file in the directory\n for (File data : dataDirectory.listFiles()) {\n \n // getting the data file's name\n String name = data.getAbsolutePath();\n\n // Initializing arraylist of words\n ArrayList<String> words = counter.readWords(name);\n\n // Getting the average amount of time taken to create a word map\n // Converted to ms \n double t = averageTime(counter, words);\n\n // Getting the total number of words\n int total = counter.getTotalWordCount();\n\n // Creating data string and appending it to the csv\n String dataString = String.format(dataFormat, total,t);\n write.append(dataString);\n\n // Clearing word map\n counter.clearMap();\n\n System.out.println(\"Finished reading file \" + data.getName());\n }\n \n write.close();\n } \n catch (IOException ex) {\n System.out.println(\"TimeComplexity.writeTimeCSV():: Could not write file\");\n }\n }", "public void exportToCSV();", "private FSDataOutputStream createNewFile() throws Exception {\n\t\tlogger.traceEntry();\n\t\tPath newFile = new Path(rootDirectory, \"dim_\" + System.currentTimeMillis() + \".json\");\n\t\tlogger.debug(\"Creating file \" + newFile.getName());\n\t\tFSDataOutputStream dataOutputStream = null;\n\n\t\tif (!hadoopFileSystem.exists(newFile)) {\n\t\t\tdataOutputStream = hadoopFileSystem.create(newFile);\n\t\t} else {\n\t\t\tdataOutputStream = hadoopFileSystem.append(newFile);\n\t\t}\n\n\t\tdataOutputStreams.clear();\n\t\tdataOutputStreams.add(dataOutputStream);\n\t\tlogger.traceExit();\n\t\treturn dataOutputStream;\n\t}", "public void loadCSVData() throws IOException, SQLException {\r\n //SQL statement to load csv information into data table\r\n String insertvaluesSQL = \"INSERT INTO data\"\r\n + \"(InvoiceNo, StockCode, Description, Quantity, InvoiceDate, UnitPrice, CustomerID, Country)\"\r\n + \" VALUES (?,?,?,?,?,?,?,?);\";\r\n\r\n //code to read csv file taken from W03 practical\r\n BufferedReader br = new BufferedReader(new FileReader(filePath));\r\n String line = br.readLine();\r\n String[] informationArray;\r\n while (line != null) {\r\n informationArray = line.split(\",\");\r\n PreparedStatement preparedStatement = connection.prepareStatement(insertvaluesSQL);\r\n //the first '?' corresponds to the 0th term in the information array\r\n //the second '?' corresponds to the 1st term in the information array\r\n for (int i = 1; i < 9; i++) {\r\n preparedStatement.setString(i, informationArray[i - 1]);\r\n }\r\n preparedStatement.executeUpdate();\r\n line = br.readLine();\r\n }\r\n Statement statement = connection.createStatement();\r\n statement.executeUpdate(\"DELETE FROM data WHERE InvoiceNo = 'InvoiceNo';\");\r\n statement.close();\r\n }", "private void saveMarkovToCSVFileInformation(){\n //Clear out the current NewCensusColumnDetails before saving.\n this.currentMarkovChain.setNewCensusColumnDetails(new ArrayList<NewCensusColumnDetails>());\n \n ArrayList<NewCensusColumnDetails> newCensusColumnDetails = new ArrayList<>();\n \n ArrayList<cerl.gui.utilities.Class> censusClasses = this.currentMarkovChain.getCensusClasses();\n List<SurveyColumnValuesGrouping> surveyGroupings = this.currentMarkovChain.getSelectSurveyClass().getSurveyColumnValuesGroupings();\n\n /**\n * These will be used to find the min and max values stored in the grid. \n * \n * Row data starts at index 1.\n * Column data starts at index 2.\n */\n int rowToStartAt = START_EDITABLE_ROW;\n \n for(int surveyCounter = 0; surveyCounter < surveyGroupings.size(); surveyCounter++){ //rows\n int currentColumnNumber = START_EDITABLE_COL;\n SurveyColumnValuesGrouping surveyGrouping = surveyGroupings.get(surveyCounter);\n\n double newTotalRandomNumber = 0;\n ArrayList<Integer> oldValueLookUpColumns = new ArrayList<Integer>();\n\n for(int censusCounter = 0; censusCounter < censusClasses.size(); censusCounter++){ //columns\n cerl.gui.utilities.Class censusClass = censusClasses.get(censusCounter);\n oldValueLookUpColumns.add(censusClass.getColumnNumber());\n\n double[] minMaxValues = this.myTable.getMinMaxObject(rowToStartAt + surveyCounter, currentColumnNumber);\n\n double foundMin = minMaxValues[0];\n double foundMax = minMaxValues[1];\n\n double foundRandomNumber = 0.0;\n if(foundMin == foundMax){\n foundRandomNumber = foundMax;\n }else {\n foundRandomNumber = ThreadLocalRandom.current().nextDouble(foundMin, foundMax);\n foundRandomNumber = Math.round(foundRandomNumber * 100.0) / 100.0;\n }\n\n newTotalRandomNumber += foundRandomNumber;\n if(currentColumnNumber < END_EDITABLE_COL){\n currentColumnNumber++;\n }\n }\n\n //set min and max numbers\n //New column header that will appear in the new csv file\n NewCensusColumnDetails details = new NewCensusColumnDetails(\n surveyGrouping.toString(), \n newTotalRandomNumber,\n oldValueLookUpColumns,\n 0\n );\n\n newCensusColumnDetails.add(details);\n }\n \n newCensusColumnDetails = setCensusTotalColumns(newCensusColumnDetails);\n \n //Add the new NewCensusColumnDetails to the current MarkovChain object\n this.currentMarkovChain.setNewCensusColumnDetails(newCensusColumnDetails);\n }", "private void getCustomerData() {\r\n\t\t// get next customer data : from file or random number generator\r\n\t\t// set anyNewArrival and transactionTime\r\n\t\t// see readme file for more info\r\n\r\n\t\tif (dataSource == 1) { // file\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0/1 random or file input\r\n\t\t\t\t\tif (dataFile.hasNextInt()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checks for a line of information\r\n\t\t\t\t\t\tint data1 = dataFile.nextInt();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// every line has 2 numbers of info\r\n\t\t\t\t\t\tint data2 = dataFile.nextInt();\r\n\t\t\t\t\t\tanyNewArrival \t= (((data1%100)+1)<= chancesOfArrival);\t\t// computes anyNewArrival boolean\r\n\t\t\t\t transactionTime = (data2%maxTransactionTime)+1;\t\t\t\t\t// computes transactionTime integer\r\n\t\t\t\t\t}\r\n\t\t} else { // random\r\n\t\t\tdataRandom = new Random();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// generates random boolean and int\r\n\t\t\tanyNewArrival \t= ((dataRandom.nextInt(100) + 1) <= chancesOfArrival);\r\n\t\t\ttransactionTime = dataRandom.nextInt(maxTransactionTime) + 1;\r\n\t\t}\r\n\t}", "static void createDataForGraph() {\n double x = 2;\n String fileName = \"./lab1part2docs/dataRec.csv\";\n createFile(fileName);\n writeToFile(\"k,halfCounter,oneCounter,x=\" + x + \"\\n\", fileName);\n for (int k = 1; k <= 10000; k++) {\n Raise.runBoth(x, k);\n writeToFile(k + \",\" + Raise.recHalfCounter + \",\" + Raise.recOneCounter + '\\n', fileName);\n Raise.recHalfCounter = 0;\n Raise.recOneCounter = 0;\n }\n System.out.println(\"Finished\");\n }", "private void saveDataToFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // path for new accounts after sucsessful new account creation\n if (isLoggedInNew) {\n String username = na.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n try (FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw)) {\n for (int i = 0; i < remindersTable.getRowCount(); i++) { // rows\n for (int j = 0; j < remindersTable.getColumnCount(); j++) { // cols\n bw.write(remindersTable.getValueAt(i, j).toString() + \"\\t\");\n }\n bw.newLine();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // path for existing accounts after sucsessful login\n if (isLoggedIn) {\n String username = uL.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n try (FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw)) {\n for (int i = 0; i < remindersTable.getRowCount(); i++) { // rows\n for (int j = 0; j < remindersTable.getColumnCount(); j++) { // cols\n bw.write(remindersTable.getValueAt(i, j).toString() + \"\\t\");\n }\n bw.newLine();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public static void writeNewCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, true);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n int lastElement = activities.size();\n Activity activity = activities.get(lastElement - 1);\n bw.write(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles.name + \" \" + \"(\"\n + activity.Roles.subRole + \")\" + \"\\n\");\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n }", "public static String writeToFile(String csvData, String exportDirectory){\n String writeToFileOutput = \"\";\n try {\n String currentTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd_HHmmss\").format(new java.util.Date());\n BufferedWriter writer = new BufferedWriter(new FileWriter(exportDirectory + \"JiraIssues_\" + currentTimeStamp + \".csv\"));\n writer.write(csvData);\n writer.close();\n \n } catch (Exception ex) {\n System.out.println(\"Error in writeToFile: \" + ex.getMessage());\n writeToFileOutput = \"ERROR\";\n }\n System.out.println(\"\\nwriteToFileOutput:\");\n System.out.println(writeToFileOutput);\n return writeToFileOutput;\n }", "public static void save() {\r\n\t\ttry {\r\n\t\t\tFile csv = new File(\"src/transaction.csv\");\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(csv, false));\r\n\t\t\tbw.write(\"type,account number,amount,year,month,date,cleared\");\r\n\t\t\tbw.newLine();\r\n\t\t\tfor (int i = 0; i < transList.size(); i++) {\r\n\t\t\t\tbw.write(transList.get(i).toFile());\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }", "public static void WriteToACsv(AddressbookModel addressbook,String addressbookname){\n final String COMMA_DELIMITER = \",\";\n final String LINE_SEPARATOR = \"\\n\";\n String PATH=\"C:\\\\Users\\\\Srikar\\\\IdeaProjects\\\\Addressbook\\\\src\\\\com\\\\mphasis\\\\data\"+\"\\\\\"+addressbookname;\n final String HEADER = \"Firstname,LastName,Address,City,Pincode,Number\";\n List personList=addressbook.getAddressbook();\n FileWriter fileWriter=null;\n try{\n fileWriter=new FileWriter(PATH);\n fileWriter.append(HEADER);\n fileWriter.append(\"\\n\");\n Iterator it=personList.iterator();\n while (it.hasNext()){\n Person person=(Person) it.next();\n fileWriter.append(person.getFirstname());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getLastname());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getAddress());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getCity());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getZip());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getPhone());\n fileWriter.append(LINE_SEPARATOR);\n }\n }\n catch(Exception ee)\n {\n ee.printStackTrace();\n }\n finally\n {\n try\n {\n fileWriter.close();\n }\n catch(IOException ie)\n {\n System.out.println(\"Error occured while closing the fileWriter\");\n ie.printStackTrace();\n }\n }\n }", "private void save(List<String[]> data, Integer numFichier, String nomFichier) throws IOException {\n FileWriter fileWriter = null;\n CSVWriter cSVWriter2 = null;\n //-------------------------------------------------------------\n // Construction du nom de fichier\n //-------------------------------------------------------------\n\n\n// String nomFichier = constructionNomFichier(flux);\n\n// // Mini rappel sur les ternaire en java : variable = (condition) ? valeur_si_vrai : valeur_si_faux; \n// String pays = (flux.getJournalLie() != null && flux.getJournalLie().getPays() != null && !flux.getJournalLie().getPays().isEmpty()) ? flux.getJournalLie().getPays() : \"XX\";\n// String ville = (flux.getJournalLie() != null && flux.getJournalLie().getCodeVille() != null && !flux.getJournalLie().getCodeVille().isEmpty()) ? flux.getJournalLie().getCodeVille() : \"XX\";\n// String langue = (flux.getJournalLie() != null && flux.getJournalLie().getLangue() != null && !flux.getJournalLie().getLangue().isEmpty()) ? flux.getJournalLie().getLangue() : \"XX\";\n// String codeJournal = (flux.getJournalLie() != null && flux.getJournalLie().getCodeJournal() != null && !flux.getJournalLie().getCodeJournal().isEmpty()) ? flux.getJournalLie().getCodeJournal() : \"XX\";\n// String codeTypeFlux = (flux.getTypeFlux() != null && flux.getTypeFlux().getCodeType() != null && !flux.getTypeFlux().getCodeType().isEmpty()) ? flux.getTypeFlux().getCodeType() : \"XXX\";\n//\n// nomFichier = langue + \"_\" + pays + \"_\" + codeJournal + \"_\" + codeTypeFlux;\n\n //--------------------------------------------------------------------------------\n // Enregistrement \n //--------------------------------------------------------------------------------\n try {\n fileWriter = new FileWriter(exportPath + nomFichier + \"__F__\" + numFichier.toString() + \".csv\");\n\n if (escapebySlash) {\n cSVWriter2 = new CSVWriter(fileWriter, '\\t', '\"', '\\\\');\n } else {\n cSVWriter2 = new CSVWriter(fileWriter, '\\t', '\"');\n }\n\n cSVWriter2.writeAll(data);\n\n\n } catch (Exception e) {\n logger.debug(\"Erreur lors de l'enregistrement\");\n } finally {\n if (cSVWriter2 != null) {\n try {\n cSVWriter2.close();\n } catch (Exception e) {\n }\n }\n\n if (fileWriter != null) {\n try {\n fileWriter.close();\n } catch (Exception e) {\n }\n }\n }\n\n data.clear(); // On purge le fichier data\n //---------------------------------------------------------------------------\n // Assemblage \n //---------------------------------------------------------------------------\n // Si ce n'est pas le premier fichier. Il faut réassembler\n// if (numFichier != 0) {\n// File f1 = new File(exportPath + nomFichier + \"__F__0.csv\");\n// File fCurrent = new File(exportPath + nomFichier + \"__F__\" + numFichier.toString() + \".csv\");\n// \n// String content = FileUtils.readFileToString(fCurrent);\n// FileUtils.write(f1, content, true);\n// \n// fCurrent.delete();\n// }\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void writePurchaseListFromFile(){\n\t\tJSONArray purchaseListJSON = new JSONArray();\n\n\t\tfor (Purchase purchase : Main.purchaseList) {\n\n\t\t\t// Write the customer JSON\n\t\t\tJSONObject purchaseDetails = new JSONObject();\n\n\t\t\tJSONObject customerDetails = new JSONObject();\n\t\t\tcustomerDetails.put(\"name\", purchase.getCustomer().getName());\n\t\t\tcustomerDetails.put(\"surname\", purchase.getCustomer().getSurname());\n\t\t\tcustomerDetails.put(\"username\", purchase.getCustomer().getUsername());\n\t\t\tcustomerDetails.put(\"password\", purchase.getCustomer().getPassword());\n\t\t\tcustomerDetails.put(\"account\", \"customer\");\n\t\t\t// The account key value can only be \"customer\", because only a customer is in purchase list\n\n\t\t\t// Write the wine JSON\n\t\t\tJSONObject wineDetails = new JSONObject();\n\t\t\twineDetails.put(\"name\", purchase.getWine().getName());\n\t\t\twineDetails.put(\"year\", purchase.getWine().getYear());\n\t\t\twineDetails.put(\"description\", purchase.getWine().getDescription());\n\t\t\twineDetails.put(\"vine\", purchase.getWine().getVine());\n\t\t\twineDetails.put(\"quantity\", purchase.getWine().getQuantity());\n\t\t\twineDetails.put(\"price\", purchase.getWine().getPrice());\n\n\t\t\tpurchaseDetails.put(\"quantity\", purchase.getQuantity());\n\t\t\tpurchaseDetails.put(\"amount\", purchase.getAmount());\n\t\t\tpurchaseDetails.put(\"date\", purchase.getDate().toString());\n\t\t\tpurchaseDetails.put(\"shipped\", purchase.isShipped());\n\t\t\tpurchaseDetails.put(\"customer\", customerDetails);\n\t\t\tpurchaseDetails.put(\"wine\", wineDetails);\n\n\t\t\tpurchaseListJSON.add(purchaseDetails);\n\n\t\t}\n\n\t\t// Write JSON file\n\t\ttry (FileWriter file = new FileWriter(\"purchaseList.json\")) {\n\t\t\tfile.write(purchaseListJSON.toJSONString());\n\t\t\tfile.flush();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void outputToCSV() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"test_data.csv\", \"UTF-8\");\n\n //For every object in array list, print surname, initials and extension, separated by commmas\n for (int i=0; i<toArrayList().size(); i++) {\n writer.println(toArrayList().get(i).getSurname() + \",\" + toArrayList().get(i).getInitials() + \",\" +\n toArrayList().get(i).getExtension());\n }\n writer.close();\n }", "public void createCsv(View view) {\n try {\n databaseHandler.makeCSV(experimentNumber);\n } catch (IOException e) {\n e.printStackTrace();\n }\n completeLocationValues(DatabaseHandler.SENDER_LATITUDE);\n }", "public void createPropertyFile(String fileName, String path, Map<String,String> data) throws IOException {\n\t\tSystem.out.println(\"Inside DataCreation::createPropertyFile method.\");\n\t\ttry {\n\t\t\t//Get current directory path and specify additional path where to create\n\t\t\t//environment.properties file.\n\t\t\tString finalPath = System.getProperty(\"user.dir\") + path + fileName;\n\t\t\toutput = new FileOutputStream(finalPath);\n\t\t\tProperties prop = new Properties();\n\n\t\t\tfor (Map.Entry<String,String> entry : data.entrySet()) {\n\t\t\t\tprop.setProperty((String)entry.getKey(), (String)entry.getValue());\n\t\t\t}\n\t\t\tprop.store(output, null);\n\t\t}catch(IOException io) {\n\t\t\tio.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(output != null) {\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t}\n\t}", "private void openCSVDataResult(DataResult dataResult) {\n try {\n onPopupClickListenner.openCSVFile(CSVHelper.createFile(dataResult));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void createCustomersTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE customers \"\n\t\t\t\t\t+ \"(id INT GENERATED ALWAYS AS IDENTITY, \"\n\t\t\t\t\t+ \"name VARCHAR(40), \" + \"email VARCHAR(40), \"\n\t\t\t\t\t+ \"pass VARCHAR(40), \" + \"ssn VARCHAR(9), \"\n\t\t\t\t\t+ \"address VARCHAR(255), \" + \"hphone VARCHAR(10), \"\n\t\t\t\t\t+ \"cphone VARCHAR(10), \" + \"signuptime BIGINT, \"\n\t\t\t\t\t+ \"chkacct BIGINT, \" + \"savacct BIGINT, \" + \"cdacct BIGINT, \"\n\t\t\t\t\t+ \"hasStock VARCHAR(6))\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table users\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of user table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public Id5320DataFile()\n\t{\n\t\tlineLength = OFF_CUSTOMER_NAME + LEN_CUSTOMER_NAME;\n\t}", "public static void writeDataToCsvUsingStringArrayForActivity(PrintWriter writer, List<ActivityTabDTO> activityTabList, List<AssayTabDTO> assayTabDTOList, List<ReferenceTabDTO> referenceTabDTOList, List<StructureDetailsTabDTO> structureDetailsTabDTOList) {\n\n String[] CSV_ACTIVITY_TITLE = {\"Activity Details\"};\n String[] CSV_ACTIVITY_NEWLINE = {\"\"};\n\n String[] CSV_ACTIVITY_HEADER = {\"ACT_ID\", \"ASSAY_ID\", \"REF_ID\", \"GVK_ID\", \"ACTIVITY_TYPE\", \"STD_ACTIVITY_TYPE\", \"ACTIVITY_UOM\", \"STANDARD_UOM\", \"ACTIVITY_PREFIX\", \"STD_ACT_PREFIX\", \"ACTIVITY_VALUE\", \"SD\", \"ACTIVITY_REMARKS\", \"MICRO_MOLARVALUE\", \"ASSAY_TYPE\", \"ENZYME_CELL_ASSAY\", \"COMMON_NAME\", \"ACTIVITY_MECHANISM\", \"SOURCE\", \"CELLS_CELLLINE_ORGAN\", \"MEASURED\", \"ROA\", \"ASSAY_METHOD_NAME\", \"DOSE\", \"DOSE_UOM\", \"DOSE_PREFIX\", \"ACTIVITY\", \"PARAMETER\", \"REFERENCE\"};\n\n try (\n CSVWriter csvWriter = new CSVWriter(writer,\n CSVWriter.DEFAULT_SEPARATOR,\n CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n CSVWriter.DEFAULT_LINE_END);\n ) {\n csvWriter.writeNext(CSV_ACTIVITY_TITLE);\n csvWriter.writeNext(CSV_ACTIVITY_HEADER);\n if (Objects.nonNull(activityTabList)) {\n for (ActivityTabDTO activityTabDataReturn : activityTabList) {\n for (AssayTabDTO assayTabDTO : assayTabDTOList) {\n for (ReferenceTabDTO referenceTabDTO : referenceTabDTOList) {\n for (StructureDetailsTabDTO reStructureDetailsTabDTO : structureDetailsTabDTOList) {\n String[] activityData = new String[]{\n activityTabDataReturn.getActId() + \"\",\n assayTabDTO.getAssayId() + \"\",\n referenceTabDTO.getRefId() + \"\",\n reStructureDetailsTabDTO.getGvkId() + \"\",\n activityTabDataReturn.getActivityType(),\n activityTabDataReturn.getStdActivityType() + \"\",\n activityTabDataReturn.getActivityUom() + \"\",\n activityTabDataReturn.getStandardUom() + \"\",\n activityTabDataReturn.getActivityPrefix() + \"\",\n activityTabDataReturn.getStdActPrefix() + \"\",\n activityTabDataReturn.getActivityValue() + \"\",\n activityTabDataReturn.getSd() + \"\",\n activityTabDataReturn.getActivityRemarks() + \"\",\n activityTabDataReturn.getMicroMolarvalue() + \"\",\n activityTabDataReturn.getAssayType() + \"\",\n activityTabDataReturn.getEnzymeCellAssay() + \"\",\n activityTabDataReturn.getCommonName() + \"\",\n activityTabDataReturn.getActivityMechanism() + \"\",\n activityTabDataReturn.getSource() + \"\",\n activityTabDataReturn.getCellsCelllineOrgan() + \"\",\n activityTabDataReturn.getMeasured() + \"\",\n activityTabDataReturn.getRoa() + \"\",\n activityTabDataReturn.getAssayMethodName() + \"\",\n activityTabDataReturn.getDose() + \"\",\n activityTabDataReturn.getDoseUom() + \"\",\n activityTabDataReturn.getDosePrefix() + \"\",\n activityTabDataReturn.getActivity() + \"\",\n activityTabDataReturn.getParameter() + \"\",\n activityTabDataReturn.getReference() + \"\",\n\n };\n\n csvWriter.writeNext(activityData);\n }\n }\n }\n }\n csvWriter.writeNext(CSV_ACTIVITY_NEWLINE);\n csvWriter.writeNext(CSV_ACTIVITY_NEWLINE);\n }\n\n\n } catch (Exception e) {\n System.out.println(\"Exception occured into the ActivityTab Data Export\" + e.getMessage());\n e.printStackTrace();\n }\n\n }", "private static void generateTransferCustomer(int branchID) {\n long oldAccountNo = getRandAccountFromBranchD(branchID);\n int newBranch = getRandBranchExcept(branchID);\n long newAccountNo = getNewAccountNo(newBranch);\n writeToFile(String.format(\"%d %d\\n\", oldAccountNo, newAccountNo));\n }", "public void create_loginFile(String account){\n try {\n outputStreamWriter = new OutputStreamWriter(context.openFileOutput(Constant.LOGIN_FILE, Context.MODE_PRIVATE));\n outputStreamWriter.write(account+\" logged in,\");\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }", "public void writeToCsv()\r\n {\r\n //listeye urunler eklendiginde cagrılacak (Products.csv)\r\n PrintWriter pWrite = null;\r\n try {\r\n pWrite = new PrintWriter(new File(\"Products.csv\"));\r\n }\r\n catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n StringBuilder sBuilder = new StringBuilder();\r\n for (Product theProduct : allProducts ) {\r\n if (theProduct.getSize() == null && theProduct.getGender()!= null){\r\n sBuilder.append(theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else if(theProduct.getGender() == null && theProduct.getSize() == null){\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getTag() + \";\"+\r\n theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else {\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\" + theProduct.getSize() + \";\"\r\n + (theProduct).getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n\r\n }\r\n pWrite.write(sBuilder.toString());\r\n pWrite.flush();\r\n pWrite.close();\r\n }", "@Test\n\t@Rollback(true)\n\t@Transactional\n\tpublic void test_status_created_if_csv_valid() throws Exception {\n\n\t\tString fileName = \"sample.csv\";\n\t\tMockMultipartFile file = new MockMultipartFile(\"file\", fileName, \"text/csv\",\n\t\t\t\t(\"name, emailId, contactNumber, street, city, state, country\\r\\n\"\n\t\t\t\t\t\t+ \"testname, [email protected], 9876543210, testStreet, testCity, testState, testCountry\\r\\n\")\n\t\t\t\t\t\t\t\t.getBytes());\n\n\t\tMockMultipartHttpServletRequestBuilder multipartRequest = MockMvcRequestBuilders\n\t\t\t\t.multipart(\"/api/v1/client/upload-csv\");\n\n\t\tmockMvc.perform(multipartRequest.file(file).header(\"userId\", 121)).andExpect(status().isCreated());\n\n\t}" ]
[ "0.69074404", "0.60814464", "0.5969072", "0.59571195", "0.58618367", "0.5820587", "0.57278335", "0.57183236", "0.5685648", "0.5679878", "0.5677145", "0.5668689", "0.5660148", "0.56585586", "0.5653767", "0.5623574", "0.5586165", "0.5585421", "0.5576668", "0.5542337", "0.5503593", "0.54783565", "0.54616714", "0.54531723", "0.54338324", "0.54260063", "0.54237485", "0.5411449", "0.5404093", "0.5392138", "0.5375213", "0.53590643", "0.53328145", "0.53082436", "0.53045374", "0.53041816", "0.5290793", "0.5272129", "0.52605426", "0.5254792", "0.5252411", "0.51859546", "0.517638", "0.51620466", "0.5149048", "0.5148851", "0.51230925", "0.5112501", "0.50882655", "0.50764394", "0.50700736", "0.5058442", "0.5045402", "0.50399935", "0.5037398", "0.5037028", "0.50065297", "0.5000359", "0.49987027", "0.4995495", "0.49937916", "0.49684817", "0.49535277", "0.49469686", "0.49304846", "0.49288136", "0.4923389", "0.49217832", "0.49151087", "0.49134505", "0.49060777", "0.49036917", "0.49023178", "0.48941973", "0.48737454", "0.48679113", "0.48625442", "0.4834944", "0.48278368", "0.48252177", "0.4823416", "0.4819945", "0.48139882", "0.48119426", "0.48115534", "0.47951466", "0.47915462", "0.4777603", "0.47666925", "0.4766095", "0.47560227", "0.47553954", "0.47442812", "0.4743076", "0.4738901", "0.47276577", "0.4725379", "0.47247404", "0.47163138", "0.47123426" ]
0.8440097
0
TODO Autogenerated method stub
public static void main(String[] args) { String given="hello im jaiprashanth hw are you"; char ch[]=given.toCharArray(); for(int i=0;i<ch.length;i++) { if(ch[i]==' ') { ch[i+1]=(char)(ch[i+1]-32); } System.out.println(ch); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
show message on list click
private void showText(String msg) { popup.setText(msg); listView.animate().alpha(0.3f).setDuration(1000); popup.setVisibility(View.VISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseClicked(MouseEvent e) {\r\n\t\t\tlistMessages = (JList) e.getSource();\r\n\t\t\tif (e.getClickCount() == 2) {\r\n\t\t\t\topenMessage(listMessages.locationToIndex(e.getPoint()));\r\n\t\t\t}\r\n\t\t}", "void onListClick();", "public void onButtonActionEvent(com.codename1.ui.events.ActionEvent ev) {\n new ListEvent().show();\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\tToast.makeText(getBaseContext(), list.get(arg2),\n\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tToast.makeText(this, String.format(\"Clicked on item #%d with text %s\",\n\t\t\tposition, mAdapter.getItem(position)), Toast.LENGTH_SHORT).show();\n\t}", "private void giveFeedbackonitemClick() {\n ListView list = (ListView)findViewById(R.id.listView_data);\n //setting onclick listener to listen if any row is clicked\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView tv = (TextView) view;\n String message = \"You clicked \"+ position + \"which is \" + tv.getText().toString();\n Toast.makeText(MainActivity.this,message, Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tDeviceList();\r\n\t\t\t\tlist.setText(ResultMessage);\r\n\t\t\t\tcount = 1;\r\n\r\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Selected :\" + \" \" + listData.get(position), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n \tsuper.onListItemClick(l, v, position, id);\n \tLog.i(TAG, \"Position: \" + position);\n \t/*String item = (String) getListAdapter().getItem(position);\n \tnew AlertDialog.Builder(this)\n \t .setTitle(\"Test\")\n \t .setMessage(item)\n \t .setPositiveButton(\"OK\",\n \t new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int which) {}}\n \t )\n \t .show();\n \t\n Toast.makeText(this, item + \" selected\", Toast.LENGTH_LONG).show();*/\n }", "void onListFragmentInteraction(String message);", "public void showEmptyListMessage() {\n Toast.makeText(getBaseContext(), \"Lista de opiniones vacia!\", Toast.LENGTH_LONG).show();\n }", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "@Override\n public void onItemClick(AdapterView arg0, View arg1, int arg2,\n long arg3) {\n ListView listView = (ListView) arg0;\n getAlertDialog(\"Word\",listView.getItemAtPosition(arg2).toString()).show();\n\n }", "private void getClientList(ActionEvent e){\r\n new ClientList().Display();\r\n }", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tToast.makeText(getActivity(), listAdapter.getItem(position), Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position,\n long id) {\n Toast.makeText(getApplicationContext(), actorsList.get(position).getName(), Toast.LENGTH_LONG).show();\n }", "@Override\r\n public void onClick(View view) {\r\n Toast.makeText(context, \"satu\" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show();\r\n\r\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + titles.get(position), Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\r\n\t\tAsyncImageAdapter aa = (AsyncImageAdapter) l.getAdapter();\r\n\t\tString ss = (String) aa.getItem(position).toString();\r\n\t\tUserApp.showMessage(this, ss);\r\n\t}", "public String showList() {\n String listMessage = \"Here yer go! These are all your tasks!\";\n return listMessage;\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\tString text = listview.getItemAtPosition(position)+\"\";\n\t\t\n\t\tToast.makeText(context, \"position=\"+position+\" text=\"+text, Toast.LENGTH_SHORT).show();\n\t}", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tString selection = l.getItemAtPosition(position).toString();\n\t\tToast.makeText(this, selection, Toast.LENGTH_LONG).show();\n\t}", "@Override\n public void clickNegative() {\n Toast.makeText(this, \"Cancelled\", Toast.LENGTH_SHORT).show();\n viewList();\n\n\n }", "void onListInteraction(int index, boolean isLongClicked);", "void contentList_mouseClicked(MouseEvent e) {\n if (e.getClickCount() > 1) {\n doView();\n }\n\n }", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id)\n {\n String selection = l.getItemAtPosition(position).toString();\n Toast.makeText(this, selection, Toast.LENGTH_LONG).show();\n }", "private void callTheOnClick(ListView listview, View viewToRemove) {\n\t\tint firstVisiblePosition = listview.getFirstVisiblePosition();\n\t\t//For all children currently in the listview, track where items are and store that data in a hashmap\n\t\tfor (int i = 0; i < listview.getChildCount(); ++i) {\n\t\t\tView child = listview.getChildAt(i);\n\t\t\tif (child == viewToRemove) {\n\t\t\t\t//Gets the position of the clicked icon within the lis\n\t\t\t\tint position = firstVisiblePosition + i;\n\n\t\t\t\tint temp = messages_array.get(i).id;\n\n\t\t\t\tString id_to_pass = Integer.toString(temp);\n Log.d(\"SelectMessage.onTheClick\", \"MessageID\"+id_to_pass);\n\n\t\t\t\tIntent openActivity = new Intent (this, ReadMessageActivity.class);\n\t\t\t\topenActivity.putExtra(\"message_id_passed\", id_to_pass);\n\t\t\t\topenActivity.putExtra(\"displayString\", selectedAccount.displayString);\n\t\t\t\tstartActivity(openActivity);\n\t\t\t}\n\t\t}\n\t}", "public void handleListClick(int index) {\n try {\n this.executeCommand(\"view \" + (index + 1));\n } catch (CommandException | ParseException e) {\n logger.info(\"Invalid command: view \" + (index + 1));\n resultDisplay.setFeedbackToUser(e.getMessage());\n }\n }", "private void contactsListEvent(){\n UI.getContacts().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(ListSelectionEvent e) {\r\n UI.getProperList().clear(); //Clear screen\r\n UI.getContacts().setCellRenderer(clearNotification); //Clear notification\r\n UI.getUserName().setText((String) UI.getContacts().getSelectedValue()); //Set selected username\r\n String currentChat = (String)UI.getContacts().getSelectedValue();\r\n if(chats.containsKey(currentChat)){ //If database exists\r\n for(String s: chats.get(currentChat)){ //Load messages to screen\r\n UI.getProperList().addElement(s);\r\n }\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tshowContactList(v);\r\n\t\t\t\t}", "private void contactListItemHandler(){\n contactList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n startChat(customArrayAdapter.getChatId(position));\n }\n });\n }", "public void onListItemClick( ListView l, View v, int position, long id )\n {\n }", "public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}", "@Override\r\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n Log.i(\"LoaderCustom\", \"Item clicked: \" + id);\n }", "private void showFriendList() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AlertDialogCustom));\n\t\tbuilder.setTitle(\"好友列表\");\n\t\tView FriendListView = LayoutInflater.from(this).inflate(R.layout.friend_list_view, null);\n\t\t\n\t\tfinal ListView listView = (ListView) FriendListView.findViewById(R.id.mapfriendlistView);\n\t\tSimpleAdapter simple_adapter = new SimpleAdapter(LocationActivity.this,\n\t\tdataList, R.layout.list_item,\n\t\tnew String[] { \"image\", \"NickName\",\"Sex\",\"Date\" }, new int[] { R.id.image,\n\t\t\t\tR.id.map_AppID,R.id.map_Sex,R.id.map_Date });\n\t\tlistView.setAdapter(simple_adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tSystem.out.println(position);\n\t\t\t\tshowFriendLatLng(position);\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n builder.setView(FriendListView);\n\t\tdialog = builder.create();\n\t\tdialog.show();\n\t\t\n\t}", "@Override\n public void onListItemClicked(int position) {\n\n }", "private void clickcallback() {\n final ListView listView = findViewById(R.id.listViewCollections);\n\n listView.setOnItemClickListener(ClickListener());\n\n if (friendID == null) {\n listView.setOnItemLongClickListener(LongClickListener());\n }\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + result[position], Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t Intent i = new Intent(MyMessage.this, MymsgDetail.class);\n\t\t\t\t i.putExtra(\"id\", myList.get(position-1).getId()+\"\");\n\t\t\t\t startActivity(i);\n\t\t\t}", "public void handleSidePanelListClick(Event event) {\n try {\n this.executeCommand(\"list e\");\n Index index = this.listPanel.getEventIndex(event);\n if (index == null) {\n this.executeCommand(\"list all e\");\n index = this.listPanel.getEventIndex(event);\n }\n assert index != null;\n this.executeCommand(\"view \" + index.getOneBased());\n } catch (CommandException | ParseException e) {\n logger.info(\"Invalid command: list e + view index\");\n resultDisplay.setFeedbackToUser(e.getMessage());\n }\n }", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n \t\n \t\n }", "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t \n\t }", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\tToast.makeText(MainActivity.this, \"我被点击了\", 0).show();\n\t\t\t\t}", "@Override\r\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t\t Cursor cursor = (Cursor) getListAdapter().getItem(position);\r\n\t\t String serviceUri = cursor.getString(cursor.getColumnIndex(NotificationData.SERVICE_ID));\r\n\t\t Log.d(TAG, \"selected service \" + serviceUri);\r\n\t\t MainActivity m = (MainActivity) getActivity();\r\n\t\t m.showServiceSpecificNotifications(serviceUri,\"\");// TODO: fetch and send the service name!!, now is sending an empty string\r\n\t }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmsg();\n\t\t\t}", "private void registerListClicks(){\n //Gets list element\n ListView list = findViewById(R.id.transaction_list);\n //Sets onclick listener\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Gets the relevant view\n TextView text = (TextView) view;\n //Saves the name of the recipient\n chosenName = (String) text.getText();\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n l.getItemAtPosition(position);\n// Intent testintent = new Intent(this.getActivity(),MusicPlay.class);\n// startActivity(testintent);\n\n//\n// new AlertDialog.Builder(this.getActivity()).setTitle(\"我的listview\").setMessage(\"介绍...\")\n// .setPositiveButton(\"确定\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// }}).show();\n }", "@Override\n public void onListItemClick(ListView parent, View view, int position, long id) {\n if (view != mListFooterView) {\n MessageListItem itemView = (MessageListItem) view;\n onMessageOpen(itemView.mMailboxId, id);\n } else {\n doFooterClick();\n }\n }", "private void info(ActionEvent x) {\n\t\tProject p = this.list.getSelectedValue();\n\t\tif (p != null) {\n\t\t\tcontroller.moreinfo(p.getName());\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tlist = mdb.getselect_all_data(ed.getText().toString());\n\t\t\t\tMy_list_adapter adapter = new My_list_adapter(getApplicationContext(),\n\t\t\t\t\t\tlist);\n\t\t\t\tlv.setAdapter(adapter);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpulllist();\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Toast.makeText(getActivity(), \"You Clicked \"+position+\" item. Wait For Coming Functions\",\n Toast.LENGTH_LONG).show();\n }", "abstract void listDisponibles_mouseClicked(MouseEvent e);", "abstract void listSeleccionadas_mouseClicked(MouseEvent e);", "void onMembersClick();", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(this, \"ITEM CLICKED\", Toast.LENGTH_SHORT).show();\n }", "private void showPopUp() {\n ListView listViewItems = new ListView(this);\n listViewItems.setAdapter(adapter);\n listViewItems.setAdapter(adapter);\n\n // put the ListView in the pop up\n alertDialog = new AlertDialog.Builder(MainActivity.this)\n .setView(listViewItems)\n .setTitle(\"alertDialog\")\n .show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String names = mgetlist.get(position).getUsername();\n int userids = mgetlist.get(position).getId();\n String picurl = mgetlist.get(position).getPicture();\n Log.d(TAG, \"onItemClick: names of respected list items\"+names);\n startActivity(new Intent(view.getContext(), SingleChat.class).putExtra(\"name\",names).putExtra(\"userid\",userids).putExtra(\"picture\",picurl));\n }", "@Override\n public void onClick(View v) {\n \tSystem.out.println(\"ss1ss\");\n //Toast.makeText(ListViewActivity.this, title[mPosition], Toast.LENGTH_SHORT).show();\n }", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\n\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t \" Calling \"+ contact.get(position).getName() +\" for HELP\", Toast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t\n\t\tString num=contact.get(position).getNumber(); \n String number = \"tel:\" + num.trim();\n Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(number)); \n startActivity(callIntent);\n\t\t\n//\t\tIntent intent = new Intent(TELEPHONY_SERVICE,)\n\t\t/*\n\t\t * Intent intent = new Intent(ListPlaces.this, Details.class);\n\t\t * intent.putExtra(PLACE, places.get(position).getName());\n\t\t * startActivity(intent);\n\t\t */\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tString text=listview.getItemAtPosition(position)+\"\";\n\t\tToast tipsToast=Toast.makeText(this, \"position+\"+position+\"text=\"+text, Toast.LENGTH_SHORT);\n\t\ttipsToast.show();\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(\"jsonlog\", \"on click of show list view\");\r\n\t\t\t\t\r\n\t\t\t\t detailsList = new ArrayList<HashMap<String,String>>();\r\n\t\t\t\turl = \"http://10.0.2.2:8080/allgreetings\";\r\n\t\t\t\t\r\n\t\t\t\tnew getjsonlist().execute();\r\n\t\t\t\t\r\n\t\t\t}", "private void gotoCheckInListView() {\n }", "private void selected(ListSelectionEvent e) {\n\t\tProject project = (Project) list.getSelectedValue();\n\t\tif (project != null) {\n\t\t\tinfo.setText(\"Description: \" + project.getDescription());\n\t\t} else {\n\t\t\tinfo.setText(\"Description: \");\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (memu.size() < 1) {\n\t\t\t\t\tToastManager.getInstance(context).showToast(\"网络连接失败!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLinearLayout list_dialog = (LinearLayout) LayoutInflater.from(\n\t\t\t\t\t\tcontext).inflate(R.layout.list_dialog, null);\n\t\t\t\tMemu_History_Adapter adapter = new Memu_History_Adapter(context);\n\t\t\t\tListView history_list = (ListView) list_dialog\n\t\t\t\t\t\t.findViewById(R.id.history_list);\n\t\t\t\tadapter.setList(memu);\n\t\t\t\thistory_list.setAdapter(adapter);\n\t\t\t\tdialog.show();\n\t\t\t\tdialog.getWindow().setContentView(list_dialog);\n\t\t\t}", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n\n Artist selectedArtist = artists.get(position);\n String name = selectedArtist.artistName;\n String genre = selectedArtist.artistGenre;\n String label = selectedArtist.artistLabel;\n String city = selectedArtist.artistCity;\n String state = selectedArtist.artistState;\n\n mListener.displayArtist(name, genre, label, city, state);\n\n\n\n }", "private void itemSelected(int position) {\n\t\tmessageToPasteFromTheListView=arrayAdapter.getItem(position).getMessage();\n\t\tgetActivity().showDialog(((MainActivity)getActivity()).dialogID);\n\t}", "public void popUp(ArrayList<Integer> list){\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\n alert.setTitle(\"You Have Won The Game!\");\n alert.setHeaderText(\"Your Score: \" + animal.getPoints() + \"!\");\n alert.setContentText(Integer.toString(list.get(0)));\n\n String highScoreContent = String.format(\"Highscore\\n1. \" + list.get(0) + \"\\n2. \" + list.get(1) + \"\\n3. \" + list.get(2) + \"\\n4. \" + list.get(3) + \"\\n5. \" + list.get(4));\n alert.setContentText(highScoreContent);\n\n ButtonType backToMainMenu = new ButtonType(\"Back to Main Menu\");\n ButtonType quit = new ButtonType(\"Quit Game\");\n alert.getButtonTypes().setAll(backToMainMenu,quit);\n\n alert.setOnCloseRequest(e -> {\n ButtonType result = alert.getResult();\n if(result!= null && result == quit){\n primaryStage.close();\n } else {\n sceneManager sm = new sceneManager(primaryStage);\n sm.toMenuScene();\n }\n });\n\n alert.show();\n }", "@Override\r\n\tpublic void onClick(View v) {\r\n\t\tIntent intent;\r\n\t\tswitch (v.getId()) {\r\n\r\n\t\tcase R.id.left_ib:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\tcase R.id.right_tv:\r\n\t\t\tselectedList = homePageAdapter.getList();\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tfor (SelectionList selectionList : selectedList) {\r\n\t\t\t\tif (selectionList.getIsSelected() == 1) {\r\n\t\t\t\t\tbuffer.append(selectionList.getmTime() + \" : \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tUtility.showToast(this, buffer.toString());\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "private void friendsListBtnListener() {\n friendsListBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new FriendsListScreen(game));\n }\n });\n }", "@Override\n public void OnMessageItemClicked(int position, List<MessageModel> messagesList ) {\n String url = messagesList.get(position).getUrl();\n if(url != null){downloadfiledata(url);}\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(context, \"You Clicked \"+imageId[position], Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tlistPanel.showWorkDialog();\n\t\t}", "protected void messageList() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tmessageStore.print();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n Toast.makeText(getApplicationContext(), znamkyItemList.get(position).popis, Toast.LENGTH_LONG).show();\n\n }", "public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}", "public void btnListClick(){\n // Scan the Wi-Fi to refresh list\n mwifiAdmin.scanForRescueNet();\n // Show the List screen\n FragmentManager fm = getActivity().getSupportFragmentManager();\n if(rescueListFragment == null)\n rescueListFragment = RescueListFragment.newInstance(mwifiAdmin);\n fm.beginTransaction().replace(R.id.container_main, rescueListFragment).addToBackStack(null).commit();\n }", "public void onList( View view )\n {\n Intent intent = new Intent( this, ThingListActivity.class );\n\n startActivity( intent );\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(Cardio.this,cardios.get(position).getTitle(), Toast.LENGTH_SHORT).show();\n }", "public void onListItemClick(ListView l, \n\t\t\tView v, int position, long id) {\n\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tinviteContactList(v);\r\n\t\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJButton clicked=(JButton)e.getSource();\n\t\tif(clicked == mostrarinfo)\n\t\t{\n\t\t\t//textPanel.appendText(\"Good Bye\\n\");\n\t\t\tif(arrayListener!=null)\n\t\t\t{\n\t\t\t\tarrayListener.arrayEminetted(this.myList);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void updateInfoBarOnClick() {\n\t\tif (!selectedList.isEmpty()) {\n\t\t\tStringBuilder label = new StringBuilder(\"Se selecciono: \");\n\t\t\tfor (Render<? extends MovableDrawing> selectedDrawing : selectedList) {\n\t\t\t\tlabel.append(selectedDrawing.getFigure().toString()).append(\", \");\n\t\t\t}\n\t\t\tlabel.setLength(label.length() - 2);\n\t\t\tstatusPane.updateStatus(label.toString());\n\t\t} else {\n\t\t\tstatusPane.updateStatus(\"Ninguna figura encontrada\");\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tif(list!=null&&list.size()>0){\n\t\t\t\t\tShareMenuWindow window = new ShareMenuWindow(CommodityInfosActivity.this);\n\t\t\t\t\twindow.ico =list.get(0).banner_imgurl;\n\t\t\t\t\twindow.url = \"\";\n\t\t\t\t\twindow.title = getResources().getString(R.string.app_name);\n\t\t\t\t\twindow.content = datas.name;\n\t\t\t\t\twindow.showAtBottom();\n\t\t\t\t}\n\t\t\t}", "public void onClickListviewEvent() {\r\n OnItemClickListener itemClickListener = new OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View container,\r\n int position, long id) {\r\n LinearLayout LL0 = (LinearLayout) container;\r\n\r\n // Getting the inner Linear Layout\r\n LinearLayout LL1 = (LinearLayout) LL0.getChildAt(0);\r\n RelativeLayout RL0 = (RelativeLayout) LL1.getChildAt(0);\r\n LinearLayout LL2 = (LinearLayout) RL0.getChildAt(0);\r\n RelativeLayout RL1 = (RelativeLayout) LL2.getChildAt(0);\r\n // Getting the Country TextView\r\n TextView busNum = (TextView) RL1.getChildAt(2);\r\n TextView Direction = (TextView) RL1.getChildAt(0);\r\n final String busCode = busNum.getText().toString();\r\n final String busDirection = Direction.getText().toString();\r\n // Log.d(\"LoginStatus\", Boolean.toString(Logined));\r\n Log.d(\"BusNumber\", busCode);\r\n Log.d(\"Direction\", busDirection);\r\n Intent intent1 = new Intent(getApplication(), BusDetail.class);\r\n intent1.putExtra(\"busNum\", busCode);\r\n intent1.putExtra(\"Direction\", busDirection);\r\n startActivity(intent1);\r\n\r\n\t\t\t\t/*\r\n * Intent intent1 = new\r\n\t\t\t\t * Intent(getApplication(),ChatActivity.class);\r\n\t\t\t\t * //intent1.putExtra(\"\", value); startActivity(intent1);\r\n\t\t\t\t */\r\n\r\n }\r\n\r\n };\r\n lv.setOnItemClickListener(itemClickListener);\r\n }", "private void listOnItemLongclick() {\n\t\tmlvWifi.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinal String ssid = mListWifi.get(arg2).get(\"ssid\").toString();\n\t\t\t\t//final boolean password = mListWifi.get(arg2).get(\"password\");\n\t\t\t\tfinal boolean password = Boolean.valueOf(mListWifi.get(arg2).get(\"password\").toString());\n\t\t\t\tLog.i(\"pss\",\"me click item\");\n\t\t\t\tcreateDialog(ssid,password);\n\t\t\t}\n\t\t});\n\t}", "public interface OnListClickListener {\r\n /**\r\n * Called when a view has been clicked.\r\n * \r\n * @param v\r\n * The view that was clicked.\r\n */\r\n void onListClick();\r\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n String activity = getListAdapter().getItem(position).toString();\n Toast.makeText(getActivity().getApplicationContext(), \"Task Chosen: \" + activity, Toast.LENGTH_SHORT).show();\n Intent i = new Intent(getActivity(), SensorLogActivity.class);\n i.putExtra(ACTIVITY_NAME, ((TaskSelectionActivity)getActivity()).getUsername());\n i.putExtra(ACTIVITY_NAME, activity);\n startActivity(i);\n }", "public void onItemClick(AdapterView<?> parentView, View childView,\r\n\t\t\t\t\tint position, long id) {\n\t\t\t\tString itemSelected = (((TextView) childView).getText())\r\n\t\t\t\t\t\t.toString();\r\n\t\t\t\tString info1, info2, info3, info4, info5, info6;\r\n\r\n\t\t\t\tArrayList<String> listo = all_data.get(position);\r\n\t\t\t\tinfo1 = listo.get(0);\r\n\t\t\t\tinfo2 = listo.get(1);\r\n\t\t\t\tinfo3 = listo.get(2);\r\n\t\t\t\tinfo4 = listo.get(3);\r\n\t\t\t\tinfo5 = listo.get(4);\r\n\t\t\t\tinfo5 = info5.replace(\"Current Time : \", \"\");\r\n\t\t\t\tinfo6 = listo.get(5);\r\n\r\n\t\t\t\tfinal String items[] = { \"Log #: \" + info1,\r\n\t\t\t\t\t\t\"Message: \" + info2, \"Source: \" + info3,\r\n\t\t\t\t\t\t\"Destination: \" + info4, \"Time: \" + info5,\r\n\t\t\t\t\t\t\"Message Length: \" + info6 };\r\n\r\n\t\t\t\tAlertDialog.Builder ab = new AlertDialog.Builder(\r\n\t\t\t\t\t\tImPeerHistoryList.this);\r\n\t\t\t\tab.setTitle(\"Message Details\");\r\n\t\t\t\tab.setItems(items, null);\r\n\t\t\t\tab.show();\r\n\t\t\t\t\r\n\t\t\t}", "public interface OnListFragmentInteractionListener {\n // TODO: Update argument type and name\n void onListFragmentInteraction(String message);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(la.size() <= 1){\n\t\t\t\t\tToast toast = Toast.makeText(MainActivity.this, \"Pls select destination\", Toast.LENGTH_SHORT);\n\t\t\t\t\ttoast.show();\n\t\t\t\t}else{\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tnew AlertDialog.Builder(List.this).setTitle(\"A\").setMessage(\"B\").setPositiveButton(\"Edit\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}).setNegativeButton(\"Delete\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}).setNeutralButton(\"Cancel\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}\n\t\t\t\t}).setCancelable(false).show();\n\t\t\t}", "@Test\n public void clickListTest() {\n\n onView(withId(R.id.rv_list)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n }", "public void onItemClick(AdapterView arg0, View arg1, int arg2, long arg3) {\n\t \tgroupID = messages.get(arg2).getid();\n\t \tselfriend.setText(messages.get(arg2).getname());\n\t popupWindow.dismiss();\n\t \t//myfriends.setText(messages.get(arg2).getname());\n\t // popupWindow.dismiss(); \n\t // popupWindow = null; \n\t }", "@Override\n public void onClick(View v) {\n //getAdapterPosition() get's an Integer based on which the position of the current\n //ViewHolder (this) in the Adapter. This is how we get the correct Data.\n ListItem listItem = listOfData.get(\n this.getAdapterPosition()\n );\n\n controller.onListItemClick(\n listItem,\n v\n );\n\n }", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\n\t\t\t\t\t Log.i(\"MyListViewBase\", \"你点击了ListView条目\"+arg2);\n\t\t\t\t}" ]
[ "0.73356223", "0.7296993", "0.70726895", "0.69477606", "0.68751764", "0.67690414", "0.6661194", "0.6644755", "0.6639344", "0.66185814", "0.6607549", "0.6598257", "0.65802866", "0.6575755", "0.6559465", "0.65579164", "0.6546398", "0.64637136", "0.6450453", "0.6421915", "0.6384296", "0.63762975", "0.63361526", "0.6330955", "0.63210255", "0.6320901", "0.6314287", "0.6285838", "0.62585646", "0.62520283", "0.6251029", "0.625033", "0.6232655", "0.62271804", "0.6217495", "0.6208879", "0.62047637", "0.62026894", "0.6199675", "0.6195041", "0.61938214", "0.6186237", "0.61820525", "0.617671", "0.61682963", "0.6167078", "0.6165123", "0.61646104", "0.61553264", "0.6136682", "0.6126964", "0.6122756", "0.611804", "0.61164224", "0.6104438", "0.6091439", "0.60801184", "0.60766834", "0.6057085", "0.605286", "0.60468906", "0.6039214", "0.6035533", "0.6032828", "0.6024514", "0.60169697", "0.60122734", "0.60030305", "0.59894717", "0.5978922", "0.59746695", "0.5972019", "0.5962923", "0.5957617", "0.5947975", "0.5940947", "0.5938925", "0.5938127", "0.5937556", "0.5933876", "0.59258324", "0.59211546", "0.59170234", "0.5905827", "0.5903101", "0.58979946", "0.5897217", "0.5895513", "0.5895016", "0.58936065", "0.58894014", "0.5887685", "0.58826804", "0.5878479", "0.58773935", "0.5874864", "0.5873214", "0.5872365", "0.5871964", "0.5870321" ]
0.63312376
23
Extracting location info from location
private void updateLocation(String info) { popup.setText(info); listView.animate().alpha(0.3f).setDuration(1000); popup.setVisibility(View.VISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "String getLocation();", "String getLocation();", "String getLocation();", "java.lang.String getLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "URI getLocation();", "com.google.ads.googleads.v14.common.LocationInfoOrBuilder getLocationOrBuilder();", "String getLocation(boolean detail);", "public URI getLocation()\r\n/* 293: */ {\r\n/* 294:441 */ String value = getFirst(\"Location\");\r\n/* 295:442 */ return value != null ? URI.create(value) : null;\r\n/* 296: */ }", "public abstract String getLocation();", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "SiteLocation getLocatedAt();", "public java.lang.String getLocation() {\n return location;\n }", "@Override\n public void onLocationChanged(Location location) {\n latitude=String.valueOf(location.getLatitude());\n longitude= String.valueOf(location.getLongitude());\n\n System.out.println(\"asdfgh==\"+latitude);\n\n\n /* Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(SafetyActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName();\n\n System.out.println(\"addresses==\"+address);\n // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "public String getLocation(){\n return this.location;\n }", "public String getLocation(){\r\n return location;\r\n }", "public String getLocation() {\r\n return location;\r\n }", "public java.lang.String getLocation() {\n return location;\n }", "private String requestInfo(Location location) {\n return \"location(lat \" + location.getLat() + \", lon \" + location.getLat() + \") \";\n }", "public int getLocation()\r\n {\n }", "public String getLocation() {\n return location;\n }", "public String getLocation()\n {\n return location;\n }", "public String get_loc_and_direc() {\n try {\n Object obj = JsonUtil.getInstance().getParser().parse(this.text);\n JSONObject jsonObject = (JSONObject) obj;\n String location = (String) jsonObject.get(\"location\");\n String direction = (String) jsonObject.get(\"direction\");\n return location + \"-\" + direction;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public String getLocation() {\r\n return location;\r\n }", "public String getLocation(){\n return location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\r\n\t\treturn location; \r\n\t}", "public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}", "public int getLocation()\r\n {\r\n return location;\r\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "com.google.ads.googleads.v6.resources.LocationView getLocationView();", "public static String location(SensorDetails details) {\r\n\t\treturn details.location;\r\n\t}", "public String getLocation() {\n return this.location;\n }", "public String getLocation(){\r\n return Location;\r\n }", "NameValue getLocation(T data);", "public String getLocation() {\r\n\t\treturn location;\r\n\t}", "Location getLocationById(long id);", "public final String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocationString() {\r\n\t\treturn \"Location = (\" + Math.round(getLocationX() * 10) / 10.0 + \", \" + Math.round(getLocationY() * 10) / 10.0 + \")\";\r\n\t}", "public String getLocation() {\n\t\treturn location;\n\t}", "public com.google.protobuf.ByteString\n getLocationBytes() {\n java.lang.Object ref = location_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n location_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void extractLatLongAndRelativeLocation(Buoy buoy, String value)\n {\n String regexp = \"^(.+?)or\";\n Pattern pat = Pattern.compile(regexp);\n Matcher match = pat.matcher(value);\n\n String latLong = \"\";\n String relativePos = \"\";\n\n if (match.find())\n {\n latLong = match.group(0);\n relativePos = value.substring(value.\n lastIndexOf(latLong) + latLong.length(), value.length()).trim(); \n \n latLong = latLong.replace(\"or\", \"\").trim();\n\n\n } else\n {\n latLong = \"\";\n relativePos = value;\n }\n\n buoy.setLatlong(latLong);\n buoy.setRelativeLocation(relativePos);\n }", "private void parseLocation(String s) {\r\n String[] parsedString = s.split(\" \");\r\n location[0] = Integer.parseInt(parsedString[0]);\r\n location[1] = Integer.parseInt(parsedString[1]);\r\n orientation = parsedString[2].charAt(0);\r\n }", "@Override\n\tpublic String getLocation() {\n\t\treturn this.location;\n\t}", "public native final String location() /*-{\n\t\treturn this[\"location\"];\n\t}-*/;", "protected String getLocation(){\r\n return this.location;\r\n }", "public byte[] getLocation() {\r\n return location;\r\n }", "com.google.protobuf.ByteString\n getLocationBytes();", "public String getLocation() {\n return mLocation;\n }", "private void getLocation() {\n\n }", "String getArrivalLocation();", "Place resolveLocation( Place place );", "public com.google.protobuf.ByteString\n getLocationBytes() {\n java.lang.Object ref = location_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n location_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}", "public double getLocation(){\n\t\treturn location;\n\t}", "public\n boolean getLocationInfo() {\n return locationInfo;\n }", "public String getLocation() {\n\t\treturn mLocation;\n\t}", "public java.lang.String getLocation() {\n java.lang.Object ref = location_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n location_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract Location[] retrieveLocation();", "int locationOffset(Location location);", "public double[] getLocation()\n\t{\n\t\treturn location;\n\t}", "public String location() {\n return this.location;\n }", "public String location() {\n return this.location;\n }", "@Override\n public String getLocation() {\n return location;\n }", "private String describeLocation() {\n\t\tSWLocation location = this.world.getEntityManager().whereIs(this);\n\t\treturn this.getShortDescription() + \" [\" + this.getHitpoints() + \"] is at \" + location.getShortDescription();\n\t}", "public java.lang.String getLocation() {\n java.lang.Object ref = location_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n location_ = s;\n return s;\n }\n }", "public void getLocationInfo() {\n startLocationService();\n }", "public Point getLocation() { return loc; }", "public String getLocation() {\n\t\t\treturn location;\n\t\t}", "Path getLocation();", "com.google.ads.googleads.v14.services.SuggestGeoTargetConstantsRequest.LocationNames getLocationNames();", "private String getLocationForPrint(double latitude, double longitude) {\n int latDegree = (new Double(Math.floor(latitude))).intValue();\n int longDegree = (new Double(Math.floor(longitude))).intValue();\n String latEnd = getString(R.string.latitude_south);\n String longEnd = getString(R.string.longitude_west);\n if (latDegree > 0) {\n latEnd = getString(R.string.latitude_north);\n\n }\n if (longDegree > 0) {\n longEnd = getString(R.string.longitude_east);\n }\n double latSecond = (latitude - latDegree) * 100;\n double latMinDouble = (latSecond * 3d / 5d);\n int latMinute = new Double(Math.floor(latMinDouble)).intValue();\n\n double longSecond = (longitude - longDegree) * 100;\n double longMinDouble = (longSecond * 3d / 5d);\n int longMinute = new Double(Math.floor(longMinDouble)).intValue();\n// return String.format(getString(R.string.geo_location_info), latDegree,\n// latMinute, latEnd, longDegree, longMinute, longEnd);\n return getString(R.string.geo_location_info);\n\n }" ]
[ "0.78600484", "0.7632479", "0.7632479", "0.7632479", "0.76294696", "0.7392585", "0.7392585", "0.7392585", "0.7392585", "0.72043914", "0.72043914", "0.72043914", "0.72043914", "0.72043914", "0.72043914", "0.72043914", "0.72043914", "0.70356894", "0.69718325", "0.6903147", "0.68973607", "0.6868551", "0.6865979", "0.6865979", "0.6774274", "0.6742508", "0.6719725", "0.668533", "0.66852224", "0.6673017", "0.66652715", "0.66591984", "0.6658733", "0.66464144", "0.6641047", "0.6624956", "0.66043574", "0.6581702", "0.6581579", "0.6581579", "0.6581579", "0.6581579", "0.6581579", "0.6565422", "0.6549188", "0.654844", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6545279", "0.6522636", "0.6514131", "0.651178", "0.6504325", "0.65031654", "0.6465468", "0.6453123", "0.6439793", "0.64309114", "0.6425346", "0.64103186", "0.6403266", "0.6393744", "0.635599", "0.63556635", "0.63485575", "0.6345796", "0.6345251", "0.6337501", "0.6335185", "0.63328844", "0.6319944", "0.6311767", "0.62901187", "0.6289236", "0.6287369", "0.62873274", "0.62839675", "0.6275294", "0.62686485", "0.6265066", "0.62629414", "0.6256607", "0.6256607", "0.6256131", "0.6246001", "0.6244036", "0.62361795", "0.6229981", "0.62292355", "0.6223539", "0.62189764", "0.62183887" ]
0.0
-1
decode and returns the cipher text
public String decode(String cipherText){ String decodedMsg = cipherText; for(int i=0;i<n;i++) decodedMsg = reShuffle(decodedMsg); return decodedMsg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String decrypt(String cipherText);", "public String decode(String cipherText)\n\t{\n\t\tthis.decoding(cipherText);\n\t\treturn this.decodedText;\n\t}", "public String decode(String cipher)\n {\n \treturn null;\n }", "private String decodageCesar(String text) {\n if (text == null || text.equals(\"\")) {\n throw new AssertionError(\"Aucun texte n'est saisie\");\n }\n String decoding = decodageMot(text);\n SubstCipher decodingText = new SubstCipher(this.shiftAlea);\n decodingText.ensureNegativeShift();\n decodingText.buildShiftedTextFor(decoding);\n return decodingText.getLastShiftedText();\n }", "private void decoding(String cipherText)\n\t{\n\t\ttextLength = cipherText.length();\n\n\t\tdo\n\t\t{\n\t\t\tStringBuffer sb = new StringBuffer(textLength);\n\t\t\tchar currentLetter[] = cipherText.toCharArray();\n\n\t\t\tfor(int i = ZERO; i < textLength; i++)\n\t\t\t{\n\t\t\t\tif(i % TWO ==0)\n\t\t\t\tsb.append(currentLetter[i]);\n\t\t\t} // Ending bracket of for loop\n\n\t\t\tfor(int i = ZERO; i < textLength; i++)\n\t\t\t{\n\t\t\t\tif(i % TWO != ZERO)\n\t\t\t\tsb.append(currentLetter[i]);\n\t\t\t} // Ending bracket of for loop\n\n\t\t\tdecodedText = sb.toString();\n\t\t\tcipherText = decodedText;\n\t\t\tloopIntDecode++;\n\t\t}while(loopIntDecode < shiftAmount);\n\t}", "String decodeString();", "public String getDecod(String text) {\n Base64.Decoder decoder = Base64.getDecoder();\n return new String(decoder.decode(text));\n }", "public String decode(String cipher)\n\t {\n\t \treturn null;\n\t }", "public String decrypt(String text) {\n byte[] dectyptedText = null;\n try {\n // decrypt the text using the private key\n cipher.init(Cipher.DECRYPT_MODE, publicKey);\n byte[] data=Base64.decode(text, Base64.NO_WRAP);\n String str=\"\";\n for(int i=0;i<data.length;i++)\n {\n str+=data[i]+\"\\n\";\n }\n android.util.Log.d(\"ali\",str);\n dectyptedText = cipher.doFinal(Base64.decode(text, Base64.NO_WRAP));\n return new String(dectyptedText);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return null;\n }", "String decrypt(String text) {\n\t\tchar letter;\n\t\tString finalString = \"\";\t\t\t\t\t// slutliga klartexten\n\t\tint start = key.getStart();\t\t\t\t\t// deklarerar nyckelns startläge\n\t\tint k ;\t\t\t\t\t\t\t\t\t\t// variabel för bokstavens startläge i vanliga alfabetet\n\t\tStringBuilder sb = new StringBuilder();\t\t\t\t\t// skapar en stringbuilder som kan modifieras, bygger upp textsträngar av olika variabler\n\t\t\t\t\t\t\n\t\t// loopen går igenom alla tecken i min krypterade text \t\t\t\n\t\tfor(int i = 0; i < text.length(); i++) {\t\t\t// for-loop för att gå igenom hela texten\t\t\t\t\n\t\t\tletter = text.charAt(i);\t\t\t\t\t\t// ger bokstaven på platsen 0,1,2,3.....\n\t\t\tif(letter == ' ') {\t\t\t\t\t\t\t\t// om det är ett blanktecken så ska det vara ett blanktecken\n\t\t\t\tsb.append(' ');\t\t\t\t\t\t\t\t// sparar blanksteg i en stringBuilder\n\t\t\t} else {\n\t\t\t\tint index=0;\n\t\t\t\tstart=start%26;\t\t\t\t\t\t\t\t// vi behöver endast 26 värden\n\t\t\t\tkey.getStart();\n\n\t\t\t\t\n\t\t\t\twhile(index<26 &&(letter!=key.getLetter(index))) {\t\t// så länge som chiffret inte motsvarar förskjutningen\n\t\t\t\t\tindex++;\t\t\t\t\t\t\t\t\t\t\t// så fortsätter den leta\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tk=index-start;\n\t\t\t\t\n\t\t\t\tif(k>=0)\n\t\t\t\t\tletter=(char)('A'+k);\n\t\t\t\telse letter=(char)('Z'-(start-1-index));\t\t\t\t// räknar från index, om index mindre än start så räknar den bakåt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// så att det inte blir tokigt mellan Z och A.\n\t\t\t\t\n\t\t\t\tsb.append(letter);\t\t\t\t\t\t\t\t\t\t//lagrar bokstav i stringBuilder\n\t\t\t\tstart++;\t\t\t\t\t\t\t\t\t\t\t\t//chiffret börjar om\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\n\t\t\t}\n\t\treturn sb.toString();\t\t\t\t\t\t\t\t\t\t// returnerar sluttexten\n\t\t}", "public String decrypt(String text) {\n return content.decrypt(text);\n }", "public static String decrypt(String text) {\r\n\t\tString originalText = \"\";\r\n\t\tchar character;\r\n\t\tint code = 0;\r\n\t\tfor (int i = 0; i < text.length(); i++) {\r\n\t\t\tcharacter = text.charAt(i);\r\n\t\t\tcode = character - 7;\r\n\t\t\tcharacter = (char) code;\r\n\t\t\toriginalText += Character.toString(character);\r\n\t\t}\r\n\t\treturn originalText;\r\n\t}", "public synchronized String getDecryptedText() {\n String text;\n try {\n text = ContentCrypto.decrypt(mText, getSalt(), Passphrase.INSTANCE.getPassPhrase().toCharArray());\n } catch (Exception e) {\n e.printStackTrace();\n text = \"Bad Decrypt\";\n }\n return text;\n }", "public String Decrypt(String s);", "TextDecoder getTextDecoder();", "public String decode( String encodedPassword );", "public String decodePassword(String encodedPassword, String key);", "public abstract String decryptMsg(String msg);", "public String decrypt(String text) {\n\t\t\n\t\t//Porta encryption is symmetric so no additional decryption implementation is necessary\n\t\treturn encrypt(text);\n\t}", "public static String decode(String decode, String decodingName) {\r\n\t\tString decoder = \"\";\r\n\t\tif (decodingName.equalsIgnoreCase(\"base64\")) {\r\n\t\t\tbyte[] decoded = Base64.decodeBase64(decode);\r\n\t\t\ttry {\r\n\t\t\t\tdecoder = new String(decoded, \"UTF-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\t\t} else if (decodingName.equalsIgnoreCase(\"PBEWithMD5AndDES\")) {\r\n\t\t\t// Key generation for enc and desc\r\n\t\t\tKeySpec keySpec = new PBEKeySpec(secretKey.toCharArray(), salt, iterationCount);\r\n\t\t\tSecretKey key;\r\n\t\t\ttry {\r\n\t\t\t\tkey = SecretKeyFactory.getInstance(\"PBEWithMD5AndDES\").generateSecret(keySpec);\r\n\t\t\t\t// Prepare the parameter to the ciphers\r\n\t\t\t\tAlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);\r\n\t\t\t\t// Decryption process; same key will be used for decr\r\n\t\t\t\tdcipher = Cipher.getInstance(key.getAlgorithm());\r\n\t\t\t\tdcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);\r\n\t\t\t\tif (decode.indexOf(\"(\", 0) > -1) {\r\n\t\t\t\t\tdecode = decode.replace('(', '/');\r\n\t\t\t\t}\r\n\t\t\t\tbyte[] enc = Base64.decodeBase64(decode);\r\n\t\t\t\tbyte[] utf8 = dcipher.doFinal(enc);\r\n\t\t\t\tString charSet = \"UTF-8\";\r\n\t\t\t\tString plainStr = new String(utf8, charSet);\r\n\t\t\t\treturn plainStr;\r\n\t\t\t} catch (InvalidKeySpecException | NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException\r\n\t\t\t\t\t| InvalidAlgorithmParameterException | IllegalBlockSizeException | BadPaddingException\r\n\t\t\t\t\t| IOException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\t\t} else if (decodingName.equalsIgnoreCase(\"DES/ECB/PKCS5Padding\")) {\r\n\t\t\t// Get a cipher object.\r\n\t\t\tCipher cipher;\r\n\t\t\ttry {\r\n\t\t\t\tcipher = Cipher.getInstance(\"DES/ECB/PKCS5Padding\");\r\n\t\t\t\tcipher.init(Cipher.DECRYPT_MODE, generateKey());\r\n\t\t\t\t// decode the BASE64 coded message\r\n\t\t\t\tBASE64Decoder decoder1 = new BASE64Decoder();\r\n\t\t\t\tbyte[] raw = decoder1.decodeBuffer(decode);\r\n\t\t\t\t// decode the message\r\n\t\t\t\tbyte[] stringBytes = cipher.doFinal(raw);\r\n\t\t\t\t// converts the decoded message to a String\r\n\t\t\t\tdecoder = new String(stringBytes, \"UTF8\");\r\n\t\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IOException\r\n\t\t\t\t\t| IllegalBlockSizeException | BadPaddingException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn decoder;\r\n\t}", "public static String decryptText(byte[] byteCipherText, SecretKey secKey) throws Exception {\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.DECRYPT_MODE, secKey);\r\n\r\n byte[] bytePlainText = aesCipher.doFinal(byteCipherText);\r\n\r\n return new String(bytePlainText);\r\n\r\n}", "@Override\n public String decryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] decMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n if (letter >= 'a' && letter <= 'z') {\n int temp = letter - 'a' - key;\n decMsg[ind] = (char) ('a' + (char) ((temp < 0) ? temp + 26 : temp));\n } else if (letter >= 'A' && letter <= 'Z') {\n int temp = letter - 'A' - key;\n decMsg[ind] = (char) ('A' + (char) ((temp < 0) ? temp + 26 : temp));\n } else {\n decMsg[ind] = letter;\n }\n }\n return new String(decMsg);\n }\n }", "public static String decode(String inString) throws Exception{\r\n\t\tStringBuilder decodedString = new StringBuilder();\r\n\t\tString[] splitString = inString.split(\"\\\\s\");\r\n\t\tString type = splitString[3].substring(5, splitString[3].length());\r\n\t\tString Key = splitString[4].substring(4, splitString[4].length()-1);\r\n\t\tStringBuilder temp = new StringBuilder();\r\n\t\tfor(int j=0;j<5;j++){\r\n\t\t\tdecodedString.append(splitString[j]);\r\n\t\t\tdecodedString.append(\" \");\r\n\t\t}\r\n\t\tif(type.equals(\"Caesar\")){\r\n\t\t\tString encodedString = unHex(splitString[5]);\r\n\t\t\tinString = encodedString;\r\n\t\t\tchar[] alphabet ={'a','b','c','d','e','f','g','h','i','j','k','l','m',\r\n\t\t\t\t\t'n','o','p','q','r','s','t','u','v','w','x','y','z','å','ä','ö','A','B',\r\n\t\t\t\t\t'C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W',\r\n\t\t\t\t\t'X','Y','Z','Å','Ä','Ö','0','1','2','3',\r\n\t\t\t\t\t'4','5','6','7','8','9','!','?',')','(','=','>','<','/','&','%','#','@','$','[',']'};\r\n\t\t\tint Keyint = (int) (Long.parseLong(Key,16)%alphabet.length);\r\n\t\t\tSystem.out.println(\"Here is \"+ Keyint);\r\n\t\t\tfor(int i = 0; i < inString.length(); i++){\r\n\t\t\t\tchar a = inString.charAt(i);\r\n\t\t\t\tint used = 0;\r\n\t\t\t\tfor(char b: alphabet){\r\n\t\t\t\t\tif(b==a){\r\n\t\t\t\t\t\tif(indexOf(alphabet,b)<Keyint){\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tdecodedString.append(\r\n\t\t\t\t\t\t\t\t\t\talphabet[(alphabet.length-\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyint+indexOf(alphabet,b))]);\r\n\t\t\t\t\t\t\t\tused = 1;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}catch(Exception c){\r\n\t\t\t\t\t\t\t\tSystem.out.print(c.getMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tdecodedString.append(alphabet[(indexOf(alphabet,b)\r\n\t\t\t\t\t\t\t\t\t\t-Keyint)]);\r\n\t\t\t\t\t\t\t\tused = 1;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}catch(Exception c){\r\n\t\t\t\t\t\t\t\tSystem.out.print(c.getMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(used==0){\r\n\t\t\t\t\tdecodedString.append(a);\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse if(type.equals(\"AES\")){\r\n\t\t\tString neuKey = unHex(Key);\r\n\t\t\tbyte[] keyContent = Base64.getDecoder().decode(neuKey);\r\n\t\t\tString encodedString = unHex(splitString[5]);\r\n\t\t\tbyte[] encoded = hexStringToByteArray(splitString[5]);\r\n\t\t\tSystem.out.println(\"This is: \"+ new String(encoded,\"UTF8\"));\r\n\t\t\tinString = encodedString;\r\n\t\t\tSecretKeySpec decodeKey = new SecretKeySpec(keyContent, \"AES\");\r\n\t\t\tCipher AEScipher = Cipher.getInstance(\"AES\");\r\n\t\t\tAEScipher.init(Cipher.DECRYPT_MODE, decodeKey);\r\n\t\t\tbyte[] decryptedData;\r\n\t\t\tdecryptedData = AEScipher.doFinal(encoded);\r\n\t\t decodedString.append(new String(decryptedData,\"UTF8\"));\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new Exception(\"Not a valid encryption\");\r\n\t\t}\r\n\t\tdecodedString.append(splitString[splitString.length-2]);\r\n\t\tdecodedString.append(\" \");\r\n\t\tdecodedString.append(splitString[splitString.length-1]);\r\n\t\treturn decodedString.toString();\r\n\t\t\r\n\t}", "public static String decrypt(byte[] decode, String base64EncodedCipherText)\n throws GeneralSecurityException {\n try {\n// final SecretKeySpec key = generateKey(password);\n final SecretKeySpec key = new SecretKeySpec(ENCRYPTION_SECRET_KEY.getBytes(), \"AES-256-CBC\");\n log(\"base64EncodedCipherText\", base64EncodedCipherText);\n byte[] decodedCipherText = Base64.decode(base64EncodedCipherText, Base64.NO_WRAP);\n log(\"decodedCipherText\", decodedCipherText);\n\n byte[] decryptedBytes = decrypt(key, decode, decodedCipherText);\n\n log(\"decryptedBytes\", decryptedBytes);\n String message = new String(decryptedBytes, CHARSET);\n log(\"message\", message);\n\n\n return message;\n } catch (UnsupportedEncodingException e) {\n if (DEBUG_LOG_ENABLED)\n Log.e(TAG, \"UnsupportedEncodingException \", e);\n\n throw new GeneralSecurityException(e);\n }\n }", "public static String decrypt(String input) {\n\t\t Base64.Decoder decoder = Base64.getMimeDecoder();\n\t String key = new String(decoder.decode(input));\n\t return key;\n\t}", "public static StringBuffer decrypt(String text) {\r\n int s = 5;\r\n byte ctoi[];\r\n int check;\r\n StringBuffer result = new StringBuffer();\r\n ctoi = text.getBytes();\r\n for (int i = 0; i < text.length(); i++) {\r\n if (Character.isUpperCase(text.charAt(i))) {\r\n check = 0;\r\n check = ((ctoi[i] - s) - 65) % 26;\r\n if (check < 0) {\r\n char ch = (char) ((((((int) text.charAt(i) - s) - 65) % 26) + 65) + 26);\r\n result.append(ch);\r\n } else {\r\n char ch = (char) (((((int) text.charAt(i) - s) - 65) % 26) + 65);\r\n result.append(ch);\r\n }\r\n\r\n } else if (Character.isLowerCase(text.charAt(i))) {\r\n check = 0;\r\n check = ((ctoi[i] - s) - 97) % 26;\r\n if (check < 0) {\r\n char ch = (char) ((((((int) text.charAt(i) - s) - 97) % 26) + 97) + 26);\r\n result.append(ch);\r\n } else {\r\n char ch = (char) (((((int) text.charAt(i) - s) - 97) % 26) + 97);\r\n result.append(ch);\r\n }\r\n\r\n } else {\r\n char ch = text.charAt(i);\r\n result.append(ch);\r\n }\r\n }\r\n return result;\r\n }", "@Override\n public String decryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] decMsg = new char[msg.length()];\n int actKey = key % 65536;\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n decMsg[ind] = (char) ((letter - actKey < 0) ? letter - actKey + 65536 : letter - actKey);\n }\n return new String(decMsg);\n }\n }", "private String encodageCesar(String text) {\n if (text == null || text.equals(\"\")) {\n throw new AssertionError(\"Aucun texte n'est saisie\");\n }\n SubstCipher encodingText = new SubstCipher(this.shiftAlea);\n encodingText.buildShiftedTextFor(text);\n String encoding = encodingText.getLastShiftedText();\n return encodageMot(encoding);\n }", "char decipher(int charToDeCipher);", "public static String decryptText(byte[] byteCipherText, SecretKey secKey) throws Exception {\n\t\t\n\t\t\n\n\t\tSystem.out.println(secKey.toString());\n\n\t\tCipher aesCipher = Cipher.getInstance(\"AES\");\n\n\t\taesCipher.init(Cipher.DECRYPT_MODE, secKey);\n\n\t\tbyte[] bytePlainText = aesCipher.doFinal(byteCipherText);\n\t\t\n\t\t\n\n\t\treturn new String(bytePlainText);\n\n\t}", "public static void dec(String cipherText, String key) {\n char msg[] = cipherText.toCharArray();\n int msglen = msg.length;\n int i,j;\n \n // Creating new char arrays\n char keygenerator[] = new char[msglen];\n char encMsg[] = new char[msglen];\n char decdMsg[] = new char[msglen];\n \n /* Generate key, using keyword in cyclic manner equal to the length of original message i.e plaintext */\n for(i = 0, j = 0; i <msglen; ++i, ++j)\n {\n if(j == key.length() - 1)\n {\n j = 0;\n }\n keygenerator[i] = key.charAt(j);\n }\n \n //Decryption\n for(i = 0; i < msglen; ++i) {\n decdMsg[i] = (char)((((encMsg[i] - keygenerator[i]) + 26) % 26) + 'A');\n }\n\n System.out.println(\"Decrypted Message: \" + String.valueOf(decdMsg));\n }", "public String decrypt(String msg) {\n \n StringBuilder sb = new StringBuilder(msg);\n \n for (int i=0; i< sb.length(); i++) {\n char decrypted = decrypt(sb.charAt(i));\n sb.setCharAt(i, decrypted);\n }\n \n return sb.toString();\n }", "public static String decryptString(String text, int key) {\r\n String decryptedText = \"\";\r\n String alpha = shiftAlphabet(0);\r\n String newAlpha = shiftAlphabet(key);\r\n text = ungroupify(text);\r\n for (int i = 0; i < text.length(); i++) {\r\n String currentLetter = String.valueOf(text.charAt(i));\r\n int indexOfLetter = newAlpha.indexOf(currentLetter);\r\n String letterReplacement = String.valueOf(alpha.charAt(indexOfLetter));\r\n decryptedText += letterReplacement;\r\n\r\n }\r\n return decryptedText;\r\n }", "public String getDecoded()\n\t{\n\t\treturn this.decodedText;\n\t}", "public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint i = 0;\n\t\twhile (i < encoded.length()) {\n\t\t\tStringBuilder characterBuilder = new StringBuilder();\n\n\t\t\twhile (!decodingTable.containsKey(characterBuilder.toString()))\n\t\t\t\tcharacterBuilder.append(encoded.charAt(i++));\n\n\t\t\toutput.append(decodingTable.get(characterBuilder.toString()));\n\t\t}\n\n\t\treturn output.toString();\n\t}", "public String decrypt(String key);", "String decryptString(String toDecrypt) throws NoUserSelectedException, IllegalValueException;", "public String decryptText(String input) {\n\n String inputUC = input.toUpperCase();\n\n StringBuilder outputSB = new StringBuilder();\n\n for (int i = 0; i < input.length(); i++) {\n\n if (Character.toString(inputUC.charAt(i)).equalsIgnoreCase(\" \")) {\n\n outputSB.append(Character.toString(inputUC.charAt(i)));\n }\n else {\n for (int j = 0; j < this.charLibrary.length(); j++) {\n if (Character.toString(inputUC.charAt(i)).equalsIgnoreCase(Character.toString(this.key.charAt(j)))) {\n\n outputSB.append(this.charLibrary.charAt(j));\n }\n }\n }\n\n }\n return outputSB.toString();\n }", "public String decryptMsg(String encryptedMsg) {\n encryptedMsg.toLowerCase(Locale.ROOT);\n\n //replace the things with the properties\n encryptedMsg = encryptedMsg.replace(\"1\", \"a\");\n encryptedMsg = encryptedMsg.replace(\"3\", \"e\");\n encryptedMsg = encryptedMsg.replace(\"5\", \"i\");\n encryptedMsg = encryptedMsg.replace(\"7\", \"o\");\n encryptedMsg = encryptedMsg.replace(\"9\", \"u\");\n\n //return the right value\n return encryptedMsg;\n }", "public static String decryptCaesar(String encryptedText, int key) {\r\n\t\tchar [] eText = encryptedText.toCharArray();\r\n\t\tchar [] pText = new char[encryptedText.length()];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tdo {\r\n\t\t\tfor(char t: eText) {\r\n\t\t\t\t\r\n\t\t\t\tt -=key;\r\n\t\t\t\tpText[i] = t;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}while(i<encryptedText.length());\r\n\t\tString st = String.valueOf(pText);\r\n\t\treturn st;\r\n\t}", "private static String decrypt(String in){\n\n\t\t\tString alphabet = \"1234567890\";\n\n\t\t\tString scramble1 = \"<;\\'_$,.?:|)\";\n\t\t String scramble2 = \"XYZVKJUTHM\";\n\t\t String scramble3 = \"tuvwxyz&*}\";\n\t\t String scramble4 = \"~!-+=<>%@#\";\n\t\t String scramble5 = \"PUDHCKSXWZ\";\n\n\t\t char messageIn[] = in.toCharArray();\n\t\t String r = \"\";\n\n\t\t for(int i = 0; i < in.length(); i++){\n\t\t if(i % 3 == 0){\n\t\t int letterIndex = scramble1.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }else if (i % 3 == 1){\n\t\t int letterIndex = scramble2.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }else if (i % 3 == 2){\n\t\t int letterIndex = scramble3.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }\n\t\t }\n\t\treturn r;\n\t}", "String decrypt(String input) {\n\t\treturn new String(BaseEncoding.base64().decode(input));\n\t}", "private static String decryptAES() {\n\t\tString inFilename = \"7hex.txt\";\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inFilename);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\n\t\t\tfinal String keyHex = asciiToHex(\"YELLOW SUBMARINE\");\n\t\t\tfinal String cipherHex = br.readLine();\n\n\t\t\tSecretKey key = new SecretKeySpec(DatatypeConverter.parseHexBinary(keyHex), \"AES\");\n\t\t\tCipher cipher = Cipher.getInstance(\"AES/ECB/NoPadding\");\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, key);\n\t\t\tbyte[] result = cipher.doFinal(DatatypeConverter.parseHexBinary(cipherHex));\n\n\t\t\tbr.close();\n\t\t\tfr.close();\n\n\t\t\treturn new String(result);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public String decrypt(String s) throws NotInAlphabetException{\n passwordPos = 0; //initialize to 0\n return super.decrypt(s); //invoke parent\n }", "public String Decryption(BigInteger text){\n \tStringBuilder str = new StringBuilder();\n BigInteger decryptor = text.multiply(r.modInverse(q)).mod(q);\n int ch = 0;\n int cursor2 = 1;\n /*\n * Traverse w list, if element is small or equal to decryptor, then subtract\n * decryptor with the element. If cursor2 arrive to 128, it means we already\n * traverse 8 bits, convert the 8 bits to char and append to str, finally\n * reverse the str\n */\n for(int i = w.length;i > 0;i--){\n \t\tif(w[i-1].compareTo(decryptor) < 1){\n \t\t\tdecryptor = decryptor.subtract(w[i-1]);\n \t\t\tch += cursor2;\n \t\t}\n \t\tif(cursor2 == 128){\n \t\t\tstr.append((char) ch);\n \t\t\tcursor2 = 1;\n \t\t\tch = 0;\n \t\t\tcontinue;\n \t\t}\n \t\tcursor2 <<= 1;\n \t}\n return str.reverse().toString();\n }", "public static String Decrypt(String cipherText,int key,String alphabet) throws IOException\n {\n cipherText=cipherText.toUpperCase();\n String decryptedText=\"\";\n\n for(int i=0;i< cipherText.length();i++)\n {int index=indexOfChar(cipherText.charAt(i),alphabet);\n\n if(index==-1)\n {\n decryptedText+=cipherText.charAt(i);\n continue;\n }\n if((index-key)>=0)\n {\n decryptedText+=charAtIndex(index-key,alphabet);\n }\n else\n {\n decryptedText+=charAtIndex((index-key)+alphabet.length(),alphabet);\n }\n }\n\n return decryptedText;\n }", "public void decodeMessage() {\n StringBuilder decoded = new StringBuilder();\n\n for (int i = 0; i < message.length(); i += 3) {\n if (message.charAt(i) == message.charAt(i + 1)) {\n decoded.append(message.charAt(i));\n } else if (message.charAt(i) == message.charAt(i + 2)) {\n decoded.append(message.charAt(i));\n } else {\n decoded.append(message.charAt(i + 1));\n }\n }\n\n message = decoded;\n }", "void decryptCode() {\n StringBuilder temp = new StringBuilder(\"\");\n\n // go through entire phrase\n for (int i = 0; i < this.getText().length(); ++i) {\n\n // append char to temp if char at i is not a multiple of z\n if (!(i % Character.getNumericValue(this.secretKey.charAt(7)) == 0) || i == 0)\n temp.append(this.getText().charAt(i));\n }\n\n this.setText(temp);\n\n \n // Step 2:\n\n // split phrase up into words\n ArrayList<String> words = new ArrayList<>(Arrays.asList(this.text.toString().split(\" \")));\n\n for (int i = 0; i < words.size(); ++i) {\n\n // if y1x3x4 is at the end of the word, remove it from word\n \n if (words.get(i).substring(words.get(i).length() - 3, words.get(i).length())\n .equals(this.getSecretKey().substring(3, 6)))\n words.set(i, words.get(i).substring(0, words.get(i).length() - 3));\n\n // if x1x2 is at the end of the word\n else {\n // remove x1x2 from end\n words.set(i, words.get(i).substring(0, words.get(i).length() - 2));\n \n // move last char to beginning\n words.set(i, words.get(i).charAt(words.get(i).length() - 1) + words.get(i).substring(0, words.get(i).length() - 1));\n }\n }\n\n temp = new StringBuilder(\"\");\n\n for (String word : words)\n temp.append(word + \" \");\n\n this.setText(temp);\n }", "@Override\n\tpublic String decryptAES(byte[] key, String cipherText) {\n\t\ttry{\n\t\t\tbyte[] encryptedIvTextBytes = DatatypeConverter.parseHexBinary(cipherText);\n\t int ivSize = 16;\n\n\t byte[] iv = new byte[ivSize];\n\t System.arraycopy(encryptedIvTextBytes, 0, iv, 0, iv.length);\n\t IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\n\t int encryptedSize = encryptedIvTextBytes.length - ivSize;\n\t byte[] encryptedBytes = new byte[encryptedSize];\n\t System.arraycopy(encryptedIvTextBytes, ivSize, encryptedBytes, 0, encryptedSize);\n\t SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n\t Cipher cipherDecrypt = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t cipherDecrypt.init(Cipher.DECRYPT_MODE, secretKeySpec, ivParameterSpec);\n\t byte[] decrypted = cipherDecrypt.doFinal(encryptedBytes);\n\n\t return new String(decrypted);\n\t\t}catch(Exception e) {\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "public String decryptString(String cipherText) {\n int len = (cipherText.length() >> 1) & ~7;\n if (Blowfish.BLOCKSIZE > len) {\n return null;\n }\n byte[] cbciv = new byte[Blowfish.BLOCKSIZE];\n int numOfBytes = BinConverter.hexStrToBytes(cipherText, cbciv, 0, 0, Blowfish.BLOCKSIZE);\n if (numOfBytes < Blowfish.BLOCKSIZE) {\n return null;\n }\n this.bfc.setCBCIV(cbciv, 0);\n len -= Blowfish.BLOCKSIZE;\n if (len == 0) {\n return \"\";\n }\n byte[] buf = new byte[len];\n numOfBytes = BinConverter.hexStrToBytes(cipherText, buf, Blowfish.BLOCKSIZE << 1, 0, len);\n if (numOfBytes < len) {\n return null;\n }\n this.bfc.decrypt(buf, 0, buf, 0, buf.length);\n int padbyte = buf[buf.length - 1] & 0x0ff;\n if (Blowfish.BLOCKSIZE < padbyte) {\n padbyte = 0;\n }\n numOfBytes -= padbyte;\n if (numOfBytes < 0) {\n return \"\";\n }\n return BinConverter.byteArrayToStr(buf, 0, numOfBytes);\n }", "public String entschlüsseln(SecretKey key, String nachricht) throws Exception{\n BASE64Decoder myDecoder2 = new BASE64Decoder();\n byte[] crypted2 = myDecoder2.decodeBuffer(nachricht);\n\n // Entschluesseln\n Cipher cipher2 = Cipher.getInstance(\"AES\");\n cipher2.init(Cipher.DECRYPT_MODE, key);\n byte[] cipherData2 = cipher2.doFinal(crypted2);\n String erg = new String(cipherData2);\n\n // Klartext\n return(erg);\n\n}", "public String encrypt(String geheimtext);", "public static String returnDecoded(String encodedText) {\n if (encodedText == null) {\n return null;\n }\n byte[] decoded = Base64.decode(encodedText, Base64.NO_WRAP);\n return new String(decoded);\n }", "public static String decryptBellaso(String encryptedText, String bellasoStr) {\r\n String decryptedText = \"\";\r\n\t\t\r\n\t\tchar [] deText = new char[encryptedText.length()];\r\n\t\t\r\n\t mappingKeyToMessage(bellasoStr,encryptedText);\r\n\t \r\n\t char [] enText = encryptedText.toCharArray();\r\n\t\tchar [] blText = bellasoStr.toCharArray();\r\n\t\t\r\n\t\tint i=0;\r\n\t\tint diff = 0;\r\n\t\t\r\n\t\tdiff = diff + enText[i];\r\n\t\tdiff = diff + blText[1];\r\n\t\tdiff += RANGE;\r\n\t\tSystem.out.print(diff);\r\n\t\tdo {\r\n\t\t\tfor(char m: enText) {\r\n\t\t\t\r\n\t\t\t\tif (diff <32) {\r\n\t\t\t\t\tdiff += RANGE;\r\n\t\t\t\t\tm += diff;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tm +=diff;\r\n\t\t\t\t\tdeText[i] = m;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}while(i<encryptedText.length());\r\n\t\tdecryptedText = String.valueOf(deText);\r\n\t\t\r\n\t \r\n\t return decryptedText; \r\n\t}", "public String decode(String encoding) {\n\t\tString decoded = \"\";\n\t\tString currCode = \"\";\n\t\tMap<String, Character> revMap = new HashMap<String, Character>();\n\t\t\n\t\t// Build hashmap from value to key\n\t\tfor (Character code: this.mapping.keySet()) {\n\t\t\trevMap.put(this.mapping.get(code), code);\n\t\t}\n\t\t\n\t\tfor (Character c: encoding.toCharArray()) {\n\t\t\tcurrCode += c;\n\t\t\tCharacter toAdd = revMap.get(currCode);\n\t\t\tif (toAdd != null) {\n\t\t\t\tdecoded += toAdd;\n\t\t\t\tcurrCode = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn decoded;\n\t}", "public String decompress() {\r\n \tString decompressed = \"\";\r\n \tString cursor = \"\";\r\n \tfor (int i = 0; i < compressedText.length(); i++) {\r\n \t\tcursor += compressedText.charAt(i);\r\n \t\tif (codeToChar.containsKey(cursor)) {\r\n \t\t\tdecompressed += codeToChar.get(cursor);\r\n \t\t\tcursor = \"\";\r\n \t\t}\r\n \t}\r\n return decompressed;\r\n }", "public String decodePassword(byte[] encodedBytes) {\n byte[] decodedBytes = null;\n\n //Log.v(\"Decode\", Base64.encodeToString(encodedBytes, Base64.DEFAULT));\n\n try {\n Cipher c = Cipher.getInstance(\"AES\");\n c.init(Cipher.DECRYPT_MODE, sks);\n decodedBytes = c.doFinal(encodedBytes);\n } catch (Exception e) {\n Log.e(TAG, \"AES decryption error\");\n e.printStackTrace();\n }\n\n if(decodedBytes == null) {\n Log.v(TAG, \"Decoded bytes are null\");\n } else {\n Log.v(TAG, \"Decoded bytes are not null\");\n }\n\n String decodedString = new String(decodedBytes);\n //Log.v(\"Decoded String\", decodedString);\n return decodedString;\n }", "protected char decode(char current) {\n int index = 0;\n charactersRead++;\n int startPos = charactersRead % keyword.length();\n changeCipher(keyword.charAt(startPos));\n\n for (int i = 0; i < cipher.length; i++) {\n if (cipher[i] == current)\n index = i;\n }\n return ALPHABET[index];\n }", "public String decrypt(String msg) {\n if (map == null) {\n getMapping();\n }\n\n // Find cipher match\n String ch = \"\";\n for (int j = 0; j < map.length; j++) {\n if ((map[j][0] + \"\").equals(msg)) {\n ch = (char)j + \"\";\n }\n }\n\n return ch;\n }", "@Override\r\n\tpublic String decrypt(String cipher) {\n\t\treturn null;\r\n\t}", "private static void decodeString(String in){\n\t\t//reverse anything done in encoded string\n\t\tString demess = decrypt(in);\n\t\tString decodeMessage = bigIntDecode(demess);\n\n\t\tSystem.out.println(\"Decoded message: \" + decodeMessage + \"***make function to actually decode!\");\n\t}", "public String decryptToString(String key, String encryptedText) throws IOException, InvalidCipherTextException {\n if (encryptedText != null) {\n byte[] inputData = Base64.decode(encryptedText.getBytes());\n InputStream fis = new ByteArrayInputStream(inputData);\n\n ByteArrayOutputStream fos = new ByteArrayOutputStream();\n decrypt(key, fis, fos);\n byte[] byt = fos.toByteArray();\n return new String(byt);\n }\n return null;\n }", "public String Decrypt(String Message, int PrimeNo, String EncoderKeyPath) throws IOException\r\n {\r\n Scanner sc = new Scanner(System.in);\r\n Key key1 = new Key();\r\n char[] msg=new char[Message.length()];\r\n int s, x;\r\n System.out.println(\"Enter Your Secret Key To Decode \");\r\n x=sc.nextInt();\r\n int key = key1.Skey(PrimeNo, x, EncoderKeyPath);\r\n char s1;\r\n int len=Message.length();\r\n int res=0;\r\n\tfor(int i=0;i<len;i++)\r\n\t{\r\n res=i%key;\r\n s=Message.charAt(i);\r\n s-=res;\r\n s1= (char) s;\r\n msg[i]=s1;\t\r\n\t}\r\n String msg1 = new String(msg);\r\n return msg1; \r\n }", "private String encStr(char[] sPlainText, long lNewCBCIV)\n\t{\n\t\tint nI, nPos, nStrLen;\n\t\tchar cActChar;\n\t\tbyte bPadVal;\n\t\tbyte[] buf;\n\t\tbyte[] newCBCIV;\n\t\tint nNumBytes;\n\t\tnStrLen = sPlainText.length;\n\t\tnNumBytes = ((nStrLen << 1) & ~7) + 8;\n\t\tbuf = new byte[nNumBytes];\n\t\tnPos = 0;\n\t\tfor (nI = 0; nI < nStrLen; nI++)\n\t\t{\n\t\t\tcActChar = sPlainText[nI];\n\t\t\tbuf[nPos++] = (byte) ((cActChar >> 8) & 0x0ff);\n\t\t\tbuf[nPos++] = (byte) (cActChar & 0x0ff);\n\t\t}\n\t\tbPadVal = (byte) (nNumBytes - (nStrLen << 1));\n\t\twhile (nPos < buf.length)\n\t\t{\n\t\t\tbuf[nPos++] = bPadVal;\n\t\t}\n\t\t// System.out.println(\"CBCIV = [\" + Long.toString(lNewCBCIV) + \"] hex = [\" + Long.toHexString(lNewCBCIV) + \"]\");\n\t\t// System.out.print(\"unencryp bytes=[\");\n\t\t// for (int i = 0; i < nNumBytes; i++){\n\t\t// System.out.print( (int)buf[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\tm_bfc.setCBCIV(lNewCBCIV);\n\t\tm_bfc.encrypt(buf, 0, buf, 0, nNumBytes);\n\t\t// System.out.print(\" encryp bytes=[\");\n\t\t// for (int i = 0; i < nNumBytes; i++){\n\t\t// System.out.print( (int)buf[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\tString strEncrypt = EQBinConverter.bytesToHexStr(buf, 0, nNumBytes);\n\t\tnewCBCIV = new byte[EQBlowfishECB.BLOCKSIZE];\n\t\tEQBinConverter.longToByteArray(lNewCBCIV, newCBCIV, 0);\n\t\tString strCBCIV = EQBinConverter.bytesToHexStr(newCBCIV, 0, EQBlowfishECB.BLOCKSIZE);\n\t\t// System.out.println(\"encrypt = [\" + strEncrypt + \"]\");\n\t\t// System.out.println(\"strCBCIV = [\" + strCBCIV + \"]\");\n\t\treturn strCBCIV + strEncrypt;\n\t}", "@Override\n public void decrypt() {\n algo.decrypt();\n String cypher = vigenereAlgo(false);\n this.setValue(cypher);\n }", "public static String decrypt(String encrypted, Keys keys) throws GeneralSecurityException {\n Cipher cipher = Cipher.getInstance(ENC_SYSTEM);\n String[] data = COLON.split(encrypted);\n if (data.length != 3) {\n throw new GeneralSecurityException(\"Invalid encrypted data!\");\n }\n String mac = data[0];\n String iv = data[1];\n String cipherText = data[2];\n\n // Verify that the ciphertext and IV haven't been tampered with first\n String dataToAuth = iv + \":\" + cipherText;\n if (!computeMac(dataToAuth, keys.getMacKey()).equals(mac)) {\n throw new GeneralSecurityException(\"Incorrect MAC!\");\n }\n\n // Decrypt the ciphertext\n byte[] ivBytes = decodeBase64(iv);\n cipher.init(Cipher.DECRYPT_MODE, keys.getEncKey(), new IvParameterSpec(ivBytes));\n byte[] bytes = cipher.doFinal(decodeBase64(cipherText));\n\n // Decode the plaintext bytes into a String\n CharsetDecoder decoder = Charset.defaultCharset().newDecoder();\n decoder.onMalformedInput(CodingErrorAction.REPORT);\n decoder.onUnmappableCharacter(CodingErrorAction.REPORT);\n /*\n * We are coding UTF-8 (guaranteed to be the default charset on\n * Android) to Java chars (UTF-16, 2 bytes per char). For valid UTF-8\n * sequences, then:\n * 1 byte in UTF-8 (US-ASCII) -> 1 char in UTF-16\n * 2-3 bytes in UTF-8 (BMP) -> 1 char in UTF-16\n * 4 bytes in UTF-8 (non-BMP) -> 2 chars in UTF-16 (surrogate pair)\n * The decoded output is therefore guaranteed to fit into a char\n * array the same length as the input byte array.\n */\n CharBuffer out = CharBuffer.allocate(bytes.length);\n CoderResult result = decoder.decode(ByteBuffer.wrap(bytes), out, true);\n if (result.isError()) {\n /* The input was supposed to be the result of encrypting a String,\n * so something is very wrong if it cannot be decoded into one! */\n throw new GeneralSecurityException(\"Corrupt decrypted data!\");\n }\n decoder.flush(out);\n return out.flip().toString();\n }", "public static String decryptCaesar(String encryptedText, int key) {\r\n\t\t// copying plaintext into char array.\r\n\t\tchar[] ipArr = encryptedText.toCharArray();\r\n\t\tchar[] opArr = new char[ipArr.length];\r\n\t\tint tmp = '0';\r\n\t\twhile(key > RANGE)\r\n\t\t{\r\n\t\t\tkey=key-RANGE;\r\n\t\t}\t\t\t\r\n\t\tfor (int i = 0; i < ipArr.length; i++) {\r\n\t\t\t\r\n\t\t\t\ttmp = (ipArr[i]+RANGE)-key;\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\tif(tmp>UPPER_BOUND) \r\n\t\t\t\t{\r\n\t\t\t\t\ttmp=tmp-RANGE;\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif(tmp<LOWER_BOUND) \r\n\t\t\t\t{\r\n\t\t\t\t\ttmp=tmp+RANGE;\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\topArr[i]=(char)tmp;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn new String(opArr);\r\n\t}", "public String decrypt (String input) {\n return new CaesarCipherTwo(ALPHABET_LENGTH-mainKey1, ALPHABET_LENGTH-mainKey2).encrypt(input);\n }", "public String decrypt(String input)\n {\n CaesarCipherTwo cipher = new CaesarCipherTwo(26 - mainKey1, 26 - mainKey2);\n return cipher.encrypt(input);\n }", "private byte[] encStrToBytes(char[] sPlainText, long lNewCBCIV)\n\t{\n\t\tint nI, nPos, nStrLen;\n\t\tchar cActChar;\n\t\tbyte bPadVal;\n\t\tbyte[] buf;\n\t\tint nNumBytes;\n\t\tnStrLen = sPlainText.length;\n\t\tnNumBytes = ((nStrLen << 1) & ~7) + 8;\n\t\tbuf = new byte[nNumBytes];\n\t\t// System.out.println(\"CBCIV = [\" + Long.toString(lNewCBCIV) + \"] hex = [\" + Long.toHexString(lNewCBCIV) + \"]\");\n\t\t// System.out.print(\"text = [\");\n\t\t// for (int i = 0; i < sPlainText.length; i++ ) {\n\t\t// System.out.print( sPlainText[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\t// System.out.println(\"Alocated \" + nNumBytes + \" byte buffer\");\n\t\t// System.out.println(\"Buffer length = \" + buf.length + \" bytes\");\n\t\tnPos = 0;\n\t\tfor (nI = 0; nI < nStrLen; nI++)\n\t\t{\n\t\t\tcActChar = sPlainText[nI];\n\t\t\tbuf[nPos++] = (byte) ((cActChar >> 8) & 0x0ff);\n\t\t\tbuf[nPos++] = (byte) (cActChar & 0x0ff);\n\t\t}\n\t\tbPadVal = (byte) (buf.length - (nStrLen << 1));\n\t\twhile (nPos < buf.length)\n\t\t{\n\t\t\tbuf[nPos++] = bPadVal;\n\t\t}\n\t\t// int bytesPrinted = 0;\n\t\t// System.out.print(\"unencryp bytes=[\");\n\t\t// for (int i = 0; i < nNumBytes; i++){\n\t\t// System.out.print( (int)buf[i]);\n\t\t// System.out.print( \",\");\n\t\t// bytesPrinted++;\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\t// System.out.println(\"Buf length check \" + nNumBytes + \" = \" + buf.length);\n\t\t// System.out.println(\"Bytes printed = \" + bytesPrinted);\n\t\tm_bfc.setCBCIV(lNewCBCIV);\n\t\tm_bfc.encrypt(buf, 0, buf, 0, buf.length);\n\t\t// System.out.println(\"Encrypted buffer length = \" + buf.length + \" bytes\");\n\t\t// System.out.print(\" encryp bytes=[\");\n\t\t// for (int i = 0; i < nNumBytes; i++){\n\t\t// System.out.print( buf[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\tint totalNumBytes = EQBlowfishECB.BLOCKSIZE + buf.length;\n\t\tbyte[] result = new byte[totalNumBytes];\n\t\tEQBinConverter.longToByteArray(lNewCBCIV, result, 0);\n\t\tint count = 0;\n\t\tfor (int i = EQBlowfishECB.BLOCKSIZE; i < totalNumBytes; i++)\n\t\t{\n\t\t\tresult[i] = buf[count++];\n\t\t}\n\t\t// System.out.print(\" CBCIV bytes=[\");\n\t\t// for (int i = 0; i < EQBlowfishCBC.BLOCKSIZE; i++){\n\t\t// System.out.print( result[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\t// System.out.println(\"Final Buffer length = \" + result.length + \" bytes\");\n\t\t// System.out.print(\" final bytes=[\");\n\t\t// for (int i = 0; i < totalNumBytes; i++){\n\t\t// System.out.print( result[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\treturn result;\n\t}", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }", "public String decrypt(String message) {\t\n\t\tchar [] letters = new char [message.length()];\n\t\tString newMessage = \"\";\n\n\t\t//create an array of characters from message\n\t\tfor(int i=0; i< message.length(); i++){\n\t\t\tletters[i]= message.charAt(i);\n\t\t}\n\n\t\tfor(int i=0; i<letters.length; i++){\n\t\t\tif(Character.isLetter(letters[i])){ //check to see if letter\n\t\t\t\tif(Character.isUpperCase(letters[i])){ //check to see if it is uppercase\n\t\t\t\t\tnewMessage += letters[i]; //add that character to new string\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//new message is the string that needs to be decrypted now \n\t\t//change the letters into numbers\n\t\tint [] decryptNums = new int[newMessage.length()];\n\t\tString alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n\t\tfor(int i=0; i < newMessage.length(); i++){\n\t\t\tchar c = newMessage.charAt(i);\n\t\t\tint x = alphabet.indexOf(c) + 1;\n\t\t\tdecryptNums[i] = x;\n\t\t}\n\n\n\t\t//generate key from those numbers\n\t\tint[] keyNum = new int [decryptNums.length];\n\t\tfor(int i=0; i<decryptNums.length; i++){\n\t\t\tint x = getKey();\n\t\t\tkeyNum[i] = x;\n\t\t}\n\n\t\t//subtract letter number from key number\n\t\tint[] finalNum = new int [keyNum.length];\n\t\tfor(int i=0; i<keyNum.length; i++){\n\t\t\tint x= decryptNums[i]-keyNum[i];\n\t\t\tif(keyNum[i] >=decryptNums[i] ){\n\t\t\t\tx = x+26;\n\t\t\t\tfinalNum[i]=x;\n\t\t\t}else{\n\t\t\t\tfinalNum[i]=x;\n\t\t\t}\n\t\t}\n\n\t\t//now re match the alphabet to it \n\t\tchar[] finalChar = new char [finalNum.length];\n\n\t\tfor(int i=0; i< finalNum.length; i++){\n\t\t\tint x = finalNum[i]-1;\n\t\t\tchar c = alphabet.charAt(x);\n\t\t\tfinalChar[i]=c;\n\t\t}\n\n\t\tString decrypt = \"\";\n\t\tfor(int i=0; i< finalChar.length; i++){\n\t\t\tdecrypt += finalChar[i];\n\t\t}\n\t\t\n\t\treturn decrypt;\n\t}", "public String originalText(String cipher_text, String key)\n{\n String orig_text=\"\";\n \n for (int i = 0 ; i < cipher_text.length() && \n i < key.length(); i++)\n {\n if(cipher_text.charAt(i) == ' ' || cipher_text.charAt(i) == '\\n')\n orig_text+=cipher_text.charAt(i);\n else{\n // converting in range 0-25\n int x = (cipher_text.charAt(i) - \n key.charAt(i) + 26) %26; \n // convert into alphabets(ASCII)\n x += 'A';\n orig_text+=(char)(x);\n }\n }\n return orig_text;\n}", "public static String caesar3decrypt(String x) {\n char y[]=x.toCharArray();\n for (int i = 0; i < x.length(); i++) {\n int asciivalue = (int) y[i];\n if ((asciivalue >= 68 && asciivalue <= 90) || (asciivalue >= 100 && asciivalue <= 122)) {\n y[i] = (char) (asciivalue - 3);\n } else if ((asciivalue >= 65 && asciivalue <= 67) || (asciivalue >= 97 && asciivalue <= 99)) {\n y[i] = (char) (asciivalue + 23);\n }\n }\n return (new String(y));\n }", "public static String decrypt(String text, int key) {\n return encrypt(text, -key);\n }", "void decryptMessage(String Password);", "@Override\n public String decrypt(String encryptedText) {\n if (StringUtils.isBlank(encryptedText)) {\n return null;\n }\n\n try {\n byte[] decoded = Base64.getDecoder().decode(encryptedText);\n\n byte[] iv = Arrays.copyOfRange(decoded, 0, GCM_IV_LENGTH);\n\n Cipher cipher = Cipher.getInstance(ENCRYPT_ALGORITHM);\n GCMParameterSpec ivSpec = new GCMParameterSpec(GCM_TAG_LENGTH * Byte.SIZE, iv);\n cipher.init(Cipher.DECRYPT_MODE, getKeyFromPassword(), ivSpec);\n\n byte[] ciphertext = cipher.doFinal(decoded, GCM_IV_LENGTH, decoded.length - GCM_IV_LENGTH);\n\n return new String(ciphertext, StandardCharsets.UTF_8);\n } catch (NoSuchAlgorithmException\n | IllegalArgumentException\n | InvalidKeyException\n | InvalidAlgorithmParameterException\n | IllegalBlockSizeException\n | BadPaddingException\n | NoSuchPaddingException e) {\n LOG.debug(ERROR_DECRYPTING_DATA, e);\n throw new EncryptionException(e);\n }\n }", "public static byte[] decrypt(byte[] cipherText)\r\n {\r\n try {\r\n SecretKeySpec secretKey = new SecretKeySpec(key, ALGORITHM);\r\n Cipher cipher = Cipher.getInstance(ALGORITHM);\r\n cipher.init(Cipher.DECRYPT_MODE, secretKey);\r\n return cipher.doFinal(cipherText);\r\n \r\n } catch (Exception exc) {\r\n exc.printStackTrace();\r\n }\r\n return null;\r\n }", "public String encrypt(String plainText);", "@Override\n public String decrypt(String word, int cipher) {\n String result = \"\";\n int postcipher = 0;\n boolean wasUpper = false;\n for(int i = 0; i < word.length(); i++)\n {\n char c = word.charAt(i);\n postcipher = c;\n if(Character.isLetter(c)) {\n if (c < ASCII_LOWER_BEGIN) { //change to lowercase\n c += ASCII_DIFF;\n wasUpper = true;\n }\n postcipher = ((c + (NUM_ALPHABET - cipher) - ASCII_LOWER_BEGIN) % NUM_ALPHABET + ASCII_LOWER_BEGIN); //shift by cipher amount\n if (wasUpper)\n postcipher -= ASCII_DIFF; //turn back into uppercase if it was uppercase\n wasUpper = false;\n }\n result += (char)postcipher; //add letter by letter into string\n }\n return result;\n }", "public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder decodedText = new StringBuilder();\n\t\tNode currentBit = huffmanTree;\n\t\tint index = 0;\n\t\t//System.out.println(currentBit.getLeft());\n\t\t//System.out.println(currentBit.getRight());\n\t\twhile (index < encoded.length()) {\n\t\t\tif (encoded.charAt(index) == '0') {\n\t\t\t\tif (currentBit.getLeft() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getLeft();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentBit.getRight() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getRight();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n if (index == encoded.length()) {\n decodedText.append(currentBit.getCharacter());\n }\n\t\t}\n System.out.println(\"EncondedText: \" + encoded);\n\t\tSystem.out.print(\"decodedText: \" + decodedText.toString());\n\t\treturn decodedText.toString();\n\n\t}", "private String readText(NdefRecord record) throws UnsupportedEncodingException {\n\n byte[] payload = record.getPayload();\n\n // Get the Text Encoding\n String textEncoding = ((payload[0] & 128) == 0) ? \"UTF-8\" : \"UTF-16\";\n\n // Get the Language Code\n int languageCodeLength = payload[0] & 0063;\n\n // String languageCode = new String(payload, 1, languageCodeLength, \"US-ASCII\");\n // e.g. \"en\"\n\n // Get the Text\n return new String(payload, languageCodeLength + 1, payload.length - languageCodeLength - 1, textEncoding);\n }", "public static String decryptMsg(byte[] cipherText, SecretKey secret) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidParameterSpecException, InvalidAlgorithmParameterException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException, UnsupportedEncodingException {\r\n Cipher cipher = null;\r\n cipher = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\r\n cipher.init(Cipher.DECRYPT_MODE, secret);\r\n String decryptString = new String(cipher.doFinal(cipherText), \"UTF-8\");\r\n return decryptString;\r\n }", "public String cipherText(String str, String key)\n{\n String cipher_text=\"\";\n \n for (int i = 0; i < str.length(); i++)\n {\n // converting in range 0-25\n if(str.charAt(i) == ' ' || str.charAt(i) == '\\n')\n cipher_text+= str.charAt(i);\n else{ \n int x = (str.charAt(i) + key.charAt(i)) %26;\n // convert into alphabets(ASCII)\n x += 'A';\n \n cipher_text+=(char)(x);}\n }\n return cipher_text;\n}", "byte[] decodeBytes();", "@Test\n\tvoid testDecodeString() {\n\t\tassertEquals(\"aaabcbc\", new DecodeString().decodeString(\"3[a]2[bc]\"));\n\t\tassertEquals(\"accaccacc\", new DecodeString().decodeString(\"3[a2[c]]\"));\n\t\tassertEquals(\"abcabccdcdcdef\", new DecodeString().decodeString(\"2[abc]3[cd]ef\"));\n\t\tassertEquals(\"absabcabccdcdcdef\", new DecodeString().decodeString(\"abs2[abc]3[cd]ef\"));\n\t\tassertEquals(\"f\", new DecodeString().decodeString(\"f\"));\n\t\tassertEquals(\"\", new DecodeString().decodeString(\"\"));\n\t\tassertEquals(\"abababababababababababab\", new DecodeString().decodeString(\"12[ab]\"));\n\t}", "public String decrypt(String cipherText) throws DataLengthException,\n\tIllegalStateException, InvalidCipherTextException {\n\t\tcipher.reset();\n\t\tcipher.init(false, new KeyParameter(key));\n\n\t\tbyte[] input = Hex.decode(Str.toBytes(cipherText.toCharArray()));\n\t\tbyte[] output = new byte[cipher.getOutputSize(input.length)];\n\n\t\tint length = cipher.processBytes(input, 0, input.length, output, 0);\n\t\tint remaining = cipher.doFinal(output, length);\n\t\treturn new String(Str.toChars(output), 0, length + remaining);\n\t}", "public static byte [] decrypt(byte [] cipherText, char [] password){\r\n\t\tint cursor = 0;\r\n\t\tbyte [] salt = unpackFromByteArray(cipherText,cursor);\r\n\t\tSecretKey key = generateSecretKey(salt, password);\r\n\t\tcursor += salt.length+2;\r\n\t\tbyte [] encoded = unpackFromByteArray(cipherText,cursor);\r\n\t\ttry {\r\n\t\t\tCipher cipher = Cipher.getInstance(symmetricKeyCryptoMode);\r\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, key, new IvParameterSpec(salt) );\r\n\t\t\treturn cipher.doFinal(encoded);\r\n\t\t} catch (Exception e){\r\n\t\t\tthrow new ModelException(\"Error decrypting cipherText \"+cipherText,e);\r\n\t\t}\r\n\t}", "public String decodeData(String encrypted) throws InvalidConfigurationException, IOException {\n checkNotNull(encrypted, \"encrypted message cannot be null\");\n SecurityLevel securityLevel = getSecurityLevel(encrypted);\n if (encrypted.startsWith(securityLevel.getPrefix())) {\n encrypted = encrypted.substring(securityLevel.getPrefix().length());\n }\n switch (securityLevel) {\n case PLAIN_TEXT:\n return encrypted;\n case OBFUSCATED:\n return decryptAndBase64(encrypted, createObfuscatingCipher(), OBFUSCATING_KEY);\n case ENCRYPTED:\n KeyPair keyPair = sensitiveDataCodecHelper.getKeyPair();\n return decryptAndBase64(\n encrypted, createEncryptingCipher(keyPair), keyPair.getPrivate());\n default:\n throw new InvalidConfigurationException(\"Invalid SecurityLevel \" + securityLevel);\n }\n }", "public PLEncrypterDecrypter( String textParms )\n {}", "private String decrypt(String encryptedData) throws Exception {\n Key key = generateKey();\n Cipher c = Cipher.getInstance(ALGO);\n c.init(Cipher.DECRYPT_MODE, key);\n byte[] decordedValue = Base64.getDecoder().decode(encryptedData);\n byte[] decValue = c.doFinal(decordedValue);\n String result = new String(decValue);\n return result;\n }", "@Override\n public String decryptText(String encryptedText, String encryptionKey) throws Exception {\n\n //Decode the text from Base64 string to bytes\n byte[] textBytes = Base64.getDecoder().decode(encryptedText);\n\n // Divide the text bytes into SALT + IV + ENCRYPTED_TEXT + AUTH_TAG\n byte[] salt = Arrays.copyOfRange(textBytes, 0, 64); // 64 bytes\n byte[] iv = Arrays.copyOfRange(textBytes, 64, 76); // 12 bytes\n int index = textBytes.length - 16;\n byte[] tag = Arrays.copyOfRange(textBytes, index, textBytes.length); // 16 bytes\n byte[] text = Arrays.copyOfRange(textBytes, 76, index); // remaining bytes\n\n\n //Construct the Encryption Key in required format\n SecretKey pbeKey = getSecretKey(encryptionKey, salt);\n GCMParameterSpec ivSpec = new GCMParameterSpec(TAG_BYTE_LENGTH * Byte.SIZE, iv);\n SecretKeySpec newKey = new SecretKeySpec(pbeKey.getEncoded(), \"AES\");\n\n //Get the AES/GCM/NoPadding instance and initialize\n Cipher cipher = Cipher.getInstance(\"AES/GCM/NoPadding\");\n cipher.init(Cipher.DECRYPT_MODE, newKey, ivSpec);\n\n cipher.update(text);\n byte[] decryptedBytes = cipher.doFinal(tag);\n\n return new String(decryptedBytes, StandardCharsets.UTF_8);\n }", "public String decrypt(String encryptedString) {\n String decryptedText=null;\n try {\n cipher.init(Cipher.DECRYPT_MODE, key);\n BASE64Decoder base64decoder = new BASE64Decoder();\n byte[] encryptedText = base64decoder.decodeBuffer(encryptedString);\n byte[] plainText = cipher.doFinal(encryptedText);\n decryptedText= bytes2String(plainText);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return decryptedText;\n }", "private String attemptDecrypt(String input, int shift) {\n String output = \"\";\n for (char c : input.toCharArray()) {\n if (c != ' ' && c != '\\n' && !Character.isUpperCase(c)) {\n throw new IllegalArgumentException(\"Character '\" + c + \"' is not capitalized\");\n } else if (c == ' ' || c == '\\n') {\n output += c;\n } else {\n output += (char) (Math.floorMod((c - shift - 'A'), 26) + 'A');\n }\n }\n return output;\n }", "public static String decrypt(String seed, String encrypted)\r\nthrows Exception {\r\nbyte[] rawKey = getRawKey(seed.getBytes());\r\nbyte[] enc = Base64.decode(encrypted.getBytes(), Base64.DEFAULT);\r\nbyte[] result = decrypt(rawKey, enc);\r\nreturn new String(result);\r\n}", "public static byte[] decode(String text) {\n\t\tif (text == null || \"\".equals(text = text.trim())) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tfinal int _char_size = 4; \n\t\t\n\t\tint size = text.length();\n\t\tif ((size % _char_size) != 0) {\n\t\t\tthrow new RuntimeException(\"invalid input text, \"\n\t\t\t\t\t+ \"length not enough.\");\n\t\t}\n\t\t\n\t\t//compute the buffer size, the tail equality sign count will be deducted\n\t\tchar cb1 = text.charAt(size - 1);\n\t\tchar cb2 = text.charAt(size - 2);\n\t\tfinal int dataBufferSize = (size / 4 * 3) - ((cb2 == '=') ? \n\t\t\t\t2 : ((cb1 == '=') ? 1 : 0));\n\t\tbyte[] dataBuffer = new byte[dataBufferSize];\n\t\tint bufferIndex = 0;\n\t\t\n\t\tint equCnt = 0;\n\t\t\n\t\t//compute each charcter's index\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < size; i += _char_size) {\n\t\t\ttmp = 0;\n\t\t\tint shiftFactor = 3;\n\t\t\tfor (int j = i; j < i + _char_size; ++j) {\n\t\t\t\tint index = 0;\n\t\t\t\tchar ch = text.charAt(j);\n\t\t\t\tif (ch >= 'A' && ch <= 'Z') {\n\t\t\t\t\tindex = ch - 'A' + _base_A_Z;\n\t\t\t\t} else if (ch >= 'a' && ch <= 'z') {\n\t\t\t\t\tindex = ch - 'a' + _base_a_z;\n\t\t\t\t} else if (ch >= '0' && ch <= '9') {\n\t\t\t\t\tindex = ch - '0' + _base_0_9;\n\t\t\t\t} else if (ch == '+') {\n\t\t\t\t\tindex = _base_add;\n\t\t\t\t} else if (ch == '/') {\n\t\t\t\t\tindex = _base_sub;\n\t\t\t\t} else if (ch == '=') {\n\t\t\t\t\tindex = _base_equ;\n\t\t\t\t\t++equCnt;\n\t\t\t\t\tif (equCnt > 2) \n\t\t\t\t\t\tthrow new RuntimeException(\"invalid format\");\n\t\t\t\t} else {\n\t\t\t\t\tthrow new RuntimeException(\"invalid input text, \"\n\t\t\t\t\t\t\t+ \"illegal character '\" + ch + \"'.\");\n\t\t\t\t}\n\t\t\t\ttmp ^= (index << (shiftFactor * 6));\n\t\t\t\t--shiftFactor;\n\t\t\t}\n\t\t\t\n\t\t\t//decode to binary\n\t\t\tdataBuffer[bufferIndex++] = (byte)((tmp >>> 16) & 0xff);\n\t\t\tif (bufferIndex == dataBufferSize) break;\n\t\t\tdataBuffer[bufferIndex++] = (byte)((tmp >>> 8 ) & 0xff);\n\t\t\tif (bufferIndex == dataBufferSize) break;\n\t\t\tdataBuffer[bufferIndex++] = (byte)((tmp ) & 0xff);\n\t\t}\n\t\t\n\t\treturn dataBuffer;\n\t}", "public String decrypt(String encryptedText) throws IOException\n {\n int len = encryptedText.length();\n if ((len % 32) != 0)\n throw new IOException(\"Serious error: decryption string has incorrect length \"\n + \"- please contact Simon\");\n byte[] encrypted = new byte[len/2];\n for (int i=0; i<len; i+=2)\n {\n encrypted[i/2] = (byte) ((Character.digit(encryptedText.charAt(i), 16) << 4)\n + Character.digit(encryptedText.charAt(i+1), 16));\n }\n\n try\n {\n SecretKeySpec key = new SecretKeySpec(secretKeyBytes, \"AES\");\n Cipher cipher = Cipher.getInstance(\"AES\");\n\n cipher.init(Cipher.DECRYPT_MODE, key);\n byte[] decrypted = cipher.doFinal(encrypted);\n return new String(decrypted, \"UTF-8\");\n }\n catch (Exception ex)\n {\n throw new IOException(\"Serious error: Password decryption failed \"\n + \"- please contact Simon\");\n }\n }", "public String decrypt(String value) throws Exception {\r\n\t\tif (value == null || value.equals(\"\"))\r\n\t\t\tthrow new Exception(\"The cipher string can not be null or an empty string.\");\r\n\r\n\t\t// Initialize the cryptography algorithm.\r\n\t\tthis.rijndael.init(Cipher.DECRYPT_MODE, this.key, this.initalVector);\r\n\r\n\t\t// Get an encrypted byte array from a base64 encoded string.\r\n\t\tbyte[] encryptedValue = Base64Encoder.decode(value);\r\n\r\n\t\t// Decrypt the byte array.\r\n\t\tbyte[] decryptedValue = this.rijndael.doFinal(encryptedValue);\r\n\r\n\t\t// Return a string converted from the UTF-8 byte array.\r\n\t\treturn new String(decryptedValue, \"UTF8\");\r\n\t}", "@Override\r\n\t\tpublic String decode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar cs[] = (str).toCharArray();\r\n\t\t\t\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(cs.length);\r\n\t\t\tfor (int i = 0, ci = cs.length; i < ci; i++) {\r\n\t\t\t\tif(cs[i] == '&') {\r\n\t\t\t\t\tif(i < ci - 3 && cs[i + 1] == 'l' && cs[i + 2] == 't' && cs[i + 3] == ';'){\r\n\t\t\t\t\t\ti += 3;\r\n\t\t\t\t\t\tresult.append('<');\r\n\t\t\t\t\t}else if(i < ci - 3 && cs[i + 1] == 'g' && cs[i + 2] == 't' && cs[i + 3] == ';'){\r\n\t\t\t\t\t\ti += 3;\r\n\t\t\t\t\t\tresult.append('>');\r\n\t\t\t\t\t}else if(i < ci - 4 && cs[i + 1] == 'a' && cs[i + 2] == 'm' && cs[i + 3] == 'p' && cs[i + 4] == ';'){\r\n\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\tresult.append('&');\r\n\t\t\t\t\t}else if(i < ci - 5 && cs[i + 1] == 'a' && cs[i + 2] == 'p' && cs[i + 3] == 'o' && cs[i + 4] == 's' && cs[i + 5] == ';'){\r\n\t\t\t\t\t\ti += 5;\r\n\t\t\t\t\t\tresult.append('\\'');\r\n\t\t\t\t\t}else if(i < ci - 5 && cs[i + 1] == 'q' && cs[i + 2] == 'u' && cs[i + 3] == 'o' && cs[i + 4] == 't' && cs[i + 5] == ';'){\r\n\t\t\t\t\t\ti += 5;\r\n\t\t\t\t\t\tresult.append('\"');\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn result.toString();\r\n\t\t}", "public static String decrypt(String str)\n {\n return encrypt(str);\n }" ]
[ "0.7540695", "0.7379062", "0.7315312", "0.7009949", "0.69991297", "0.69644666", "0.69455653", "0.68774927", "0.67651325", "0.6703227", "0.6637114", "0.6629328", "0.6547045", "0.6539778", "0.65276366", "0.6445302", "0.642872", "0.6403018", "0.63944817", "0.6377514", "0.63638854", "0.63251907", "0.6276805", "0.6260421", "0.62184906", "0.6206088", "0.6203611", "0.6192179", "0.61720806", "0.61649513", "0.6162687", "0.6159055", "0.6143427", "0.61116695", "0.61086446", "0.60626376", "0.6059135", "0.6058552", "0.60584134", "0.60451764", "0.6039329", "0.6034913", "0.6018989", "0.6012823", "0.6009507", "0.5992237", "0.59788316", "0.5973119", "0.595314", "0.5924085", "0.59205514", "0.5905344", "0.58990246", "0.58812994", "0.5877578", "0.58581173", "0.58449996", "0.5844881", "0.5829437", "0.57992285", "0.5791299", "0.57899684", "0.5788784", "0.5786495", "0.5782899", "0.57818717", "0.5777204", "0.57643896", "0.5763283", "0.5755961", "0.5737094", "0.5730826", "0.5723279", "0.5722703", "0.5720864", "0.57201374", "0.57185996", "0.5710742", "0.57004315", "0.5676651", "0.5666456", "0.5660853", "0.56553024", "0.56488025", "0.5630661", "0.5617756", "0.5615689", "0.5613646", "0.56105196", "0.55913895", "0.5588597", "0.5588452", "0.55866617", "0.5577134", "0.55667794", "0.5560278", "0.55582255", "0.55562", "0.5552844", "0.5546794" ]
0.72238654
3
Initializes a new IVFMediaDevice instance which will read the IVF file located at filename.
public IVFMediaDevice(String filename) { super(new CaptureDeviceInfo( filename, new MediaLocator("ivffile:"+filename), IVFMediaDevice.SUPPORTED_FORMATS), MediaType.VIDEO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FlashCardReader(String filename)\n\t{\t\n\t\ttry\n\t\t{\n\t\t\tFileReader freader = new FileReader(filename);\n\t\t\treader = new BufferedReader(freader);\n\t\t} catch(FileNotFoundException fnfe)\n\t\t{\n\t\t\tSystem.out.println(\"File not found!\");\n\t\t\tnotFound = true;\n\t\t}\n\t}", "public ObjReader(String filename){\n file = filename;\n }", "public InstanceReader(String filename) throws FileNotFoundException{\n this.reader = new FileReader(filename);\n }", "public IniFile(String name) {\r\n this.filename = name;\r\n isavailable = parse(name);\r\n }", "public FileReceiver(String filename) {\r\n _fileName = filename;\r\n }", "public BiomartAccess(String fname) \n {\n m_file = new File(fname);\n }", "public Decoder(String filename) throws FileNotFoundException { \n this.i = 0;\n this.position = 0;\n this.px = 0;\n this.py = 0;\n this.alkuposition = 0;\n this.j = 0;\n this.filename = filename;\n }", "public FileDicomInner(final String fName, final String fDir) throws IOException {\r\n fileName = fName;\r\n fileDir = fDir;\r\n\r\n try {\r\n fileHeader = new File(fileDir + fileName);\r\n\r\n if (fileHeader == null) {\r\n throw new FileNotFoundException();\r\n }\r\n\r\n if (raFile != null) {\r\n\r\n try {\r\n raFile.close();\r\n } catch (final IOException ex) {}\r\n }\r\n\r\n try {\r\n raFile = new RandomAccessFile(fileHeader, \"rw\");\r\n } catch (final IOException e) {\r\n raFile = new RandomAccessFile(fileHeader, \"r\");\r\n }\r\n\r\n fileInfo = new FileInfoDicom(fileName, fileDir, FileUtility.DICOM);\r\n fileInfo.setEndianess(FileDicomBaseInner.LITTLE_ENDIAN);\r\n rawFile = new FileRaw(fileInfo.getFileName(), fileInfo.getFileDirectory(), fileInfo, FileBase.READ);\r\n } catch (final NullPointerException npe) {\r\n npe.printStackTrace();\r\n } catch (final OutOfMemoryError e) {\r\n MipavUtil.displayError(\"Out of memory in FileDicom constructor.\");\r\n throw new IOException();\r\n }\r\n }", "public void readInit(String filename) {\n\t\ttry {\n\t\t\tprefs = new IniPreferences(new Ini(new File(filename)));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (prefs != null) {\n\t\t\ttry {\n\t\t\t\tif (prefs.nodeExists(MODNAME)) {\n\t\t\t\t\tport = Integer.valueOf(prefs.node(MODNAME).get(\"port\", \"9099\"));\n\t\t\t\t}\n\t\t\t} catch (BackingStoreException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }", "public FastaReader(String fileName) throws IOException{\n\t\tthis(new FileInputStream(fileName));\n\t}", "public SqlFileParser(String filename) {\n try {\n this.reader = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"file not found \" + filename);\n }\n }", "public FileMessageFactory(Session session, String filename) throws MessageFactoryException\n {\n try\n {\n _filename = filename;\n _payload = FileUtils.readFileAsString(filename);\n _session = session;\n }\n catch (Exception e)\n {\n MessageFactoryException mfe = new MessageFactoryException(e.toString(), e);\n throw mfe;\n }\n }", "RandomAccessFile openInputFile(String fileName) {\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"fileName = \" + fileName);\n RandomAccessFile file = null;\n try {\n file = new RandomAccessFile(fileName, \"r\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"success: file opened for read\");\n } catch (Exception e) {\n ec.processError(e, thisClass, \"openInputFile\", \"\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"error: file opened for read\");\n } // try-catch\n return file;\n }", "public int open(String filename)\n {\n return open(filename, i_hdl); \n }", "public TabixReader(final String filename, final String indexFileName) throws IOException {\n\t\tthis.filename = filename;\n\t\tmFp = new BlockCompressedInputStream(new File(filename));\n\t\tBlockCompressedInputStream is = new BlockCompressedInputStream(new File(filename + \".tbi\"));\n\t\ttabix = readHeader(is);\n\t\tconf = tabix.config;\n\t\tis.close();\n\t}", "public DbRecord( String szFileName )\n throws FileNotFoundException, NullPointerException, AppException\n {\n Load( szFileName );\n }", "public FileInvitationInfo(String contact, long filesize,\n String filename, String sessionId) {\n mContact = contact;\n mFileSize = filesize;\n mLastFileName = filename;\n mLastSessionId = sessionId;\n }", "private static void initializeInput(String filename) {\n\t\t// Reading from specified file.\n\t\ttry\n\t\t{\n\t\t\tfileInput = new Scanner(new FileInputStream(filename));\n\t\t}\n\t\tcatch(FileNotFoundException e) \n\t\t{ \n\t\t\tSystem.err.println(\"\\nFile not found. Please re-enter.\");\n\t\t\tinitializeInput(getFilename());\n\t\t}\n\t}", "public InputReader(File file){\n try {\n inputStream = new Scanner(file);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n instantiate();\n assert(invariant());\n }", "public BfReader(String filename) throws FileNotFoundException {\n\t\ttry {\n\t\t\treader = new RandomAccessFile(filename, \"r\");\n\t\t\tmarks = new Stack<>();\n\t\t} catch (java.io.IOException e) {\n\t\t\tthrow new FileNotFoundException(filename);\n\t\t}\n\t}", "public void init(String _filename) {\r\n init(_filename,getMaxTiles(p.width));\r\n }", "public void init(AudioFile file) {\r\n\t\tinit(file, null, null);\r\n\t}", "public Photo(String filename) {\n\t\tmFilename = filename;\n\t}", "public PropertyReader(String propertyFileName)\r\n\t{\r\n\t\tthis.propertyFileName = propertyFileName;\r\n\t}", "private void init(File file) throws VlException\n {\n // under windows: will return windows path\n String path = file.getAbsolutePath();\n\n //\n // Forward Flip backslashes !\n // Do this ONLY for the local filesystem !\n //\n\n if (File.separatorChar != VRL.SEP_CHAR)\n path = VRL.uripath(path, true, File.separatorChar);\n\n // under widows: will convert windows path to URI path !\n setLocation(new VRL(VRS.FILE_SCHEME, null, path));\n this.path = getPath(); // use URI path !\n\n _file = file;\n }", "@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public FileControl( String fileName ) {\n this.fileName = fileName;\n }", "public TabixReader(final String filename) throws IOException {\n\t\tthis(filename, filename+\".tbi\");\n\t}", "public Sim_reportfile (String filename) {\n this.filename = filename;\n }", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "public Scanner( String filename ) throws IOException\n {\n sourceFile = new PushbackInputStream(new FileInputStream(filename));\n \n nextToken = null;\n }", "public OnDemandInputStream(File file) {\n super();\n\n this.file = file;\n }", "public static void reading(String fileName)\n {\n\n }", "public CvFile() {\n }", "synchronized public void startRecording(String filename){\n\t\tif (isRecording)\n\t\t\tthrow new RuntimeException(\"record fail- allready recording\");\n\t\t\n\t\tif (!device.isFile()){\n\t\t\tisRecording=true;\n\t\t\trecorder=Recorder.create(filename);\n\t\t\tstream.start();\n\t\t\trecorder.addStream(this.stream, false);\n\t\t\trecorder.start();\n\t\t} else {\n\t\t\t//throw new RuntimeException(\"can't record from a file\");\n\t\t}\n\t \n\t \n\t \t\n\t\n\t}", "public VideoCapture(String filename)\n {\n \n nativeObj = VideoCapture_1(filename);\n \n return;\n }", "public MyInputStream(String fileName)\n {\n try\n {\n in = new BufferedReader\n (new FileReader(fileName));\n }\n catch (FileNotFoundException e)\n {throw new MyInputException(e.getMessage());}\n }", "private Promise<ApduFile> openApduFile(ElementaryFileID fileID) {\n Promise<byte[]> firstChunk;\n if (fileID.isShortIDAvailable()) {\n firstChunk = this.presentationLayer.readBinary(fileID, (byte)0);//If short file id is available, a read will also instantly select the file.\n } else {\n firstChunk = this.presentationLayer.selectEF(fileID).then((v) -> this.presentationLayer.readBinary((byte)0));//Select and read the first part.\n }\n return firstChunk.then((data) -> {\n try {\n ApduFile result = new ApduFile(data);\n return Promise.resolve(result);\n }catch (Exception e) {\n return Promise.reject(e);\n }\n });\n }", "public FileRecord(String name)\r\n {\r\n this.name = name;\r\n }", "public LocalServerDiscoveryFile(String fileNamePath) throws IOException {\n\t\tsetFileNamePath(fileNamePath);\n\t\ttry (FileChannel fileStream = FileChannel.open(Paths.get(fileNamePath), StandardOpenOption.READ)) {\n\t\t\tByteBuffer buffer = fileStream.map(MapMode.READ_ONLY, 0, (Integer.BYTES * 3));\n\t\t\tsetProcessId(buffer.getInt());\n\t\t\tsetPublisherPort(buffer.getInt());\n\t\t\tsetSubscriberPort(buffer.getInt());\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow e;\n\t\t}\n\t}", "public static FileItem fromFilename(String filename) {\n String[] splitted = filename.split(SEPARATOR_FIELDS);\n\n String name = splitted[0];\n String date = cleanDate(splitted[1]);\n String time = cleanTime(splitted[2]);\n String sensor = splitted[3];\n\n return new FileItem(filename, name, date, time, sensor);\n }", "public PropFileReader(String filename, String jsonFileName){\n this.ruleJsonFile=jsonFileName;\n this.filename=filename;\n this.propertyBuilder();\n }", "@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public ObjModel(File file) throws FileNotFoundException {\r\n\r\n\t\tvertices = new ArrayList<>();\r\n\t\ttextureCoordinates = new ArrayList<>();\r\n\t\tfaces = new ArrayList<>();\r\n\r\n\t\tScanner scanner = new Scanner(file);\r\n\r\n\t\twhile (scanner.hasNextLine()) {\r\n\t\t\tString[] line = scanner.nextLine().split(\" \");\r\n\t\t\tif (line[0].equals(\"v\")) {\r\n\t\t\t\tfloat x = Float.parseFloat(line[1]);\r\n\t\t\t\tfloat y = Float.parseFloat(line[2]);\r\n\t\t\t\tfloat z = Float.parseFloat(line[3]);\r\n\t\t\t\tvertices.add(new Vector3f(x, y, z));\r\n\t\t\t} else if (line[0].equals(\"vt\")) {\r\n\t\t\t\tfloat x = Float.parseFloat(line[1]);\r\n\t\t\t\tfloat y = Float.parseFloat(line[2]);\r\n\t\t\t\ttextureCoordinates.add(new Vector3f(x, y));\r\n\t\t\t} else if (line[0].equals(\"f\")) {\r\n\t\t\t\tFace face = new Face();\r\n\t\t\t\tfor (int i = 1; i < line.length; i++) {\r\n\t\t\t\t\tString[] sections = line[i].split(\"/\");\r\n\t\t\t\t\tif (sections.length >= 1) {\r\n\t\t\t\t\t\tint vertex = Integer.parseInt(sections[0]);\r\n\t\t\t\t\t\tface.addVertex(vertex);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (sections.length >= 2) {\r\n\t\t\t\t\t\tint textureCoordinate = Integer.parseInt(sections[1]);\r\n\t\t\t\t\t\tface.addTextureCoordinate(textureCoordinate);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfaces.add(face);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tscanner.close();\r\n\t}", "public Texture(String filename) {\n\t\ttry {\n\t\t\tfileIn = new FileInputStream(filename);\n\t\t\tdecoder = new PNGDecoder(fileIn);\n\t\t\tbuff = ByteBuffer.allocateDirect(4*decoder.getWidth()*4*decoder.getWidth());\n\t\t\tdecoder.decode(buff, decoder.getWidth(), Format.RGBA);\n\t\t\tbuff.flip();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Error occurred. Exiting...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tdims = new Point2D(decoder.getWidth(), decoder.getHeight());\n\t}", "public FileObject() {\n\t}", "public Instances openARFF(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.dataset = new Instances(new BufferedReader(new FileReader(path)));\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn this.dataset;\n\t}", "public void fileRead(String filename) throws IOException;", "public FileDatabase(String filename) throws IOException {\n\t\tdatabase = new File(filename);\n\t\tread();\n\t}", "public ContactList(String inFileName)\n {\n filename = inFileName;\n }", "public File(String fileName) {\n\t\tthis(new java.io.File(fileName));\n\t}", "public CMProps(String filename) {\n final char c = Thread.currentThread().getThreadGroup().getName().charAt(0);\n if (props[c] == null)\n props[c] = this;\n try {\n final CMFile F = new CMFile(filename, null);\n if (F.exists()) {\n this.load(new ByteArrayInputStream(F.textUnformatted().toString().getBytes()));\n loaded = true;\n } else\n loaded = false;\n } catch (final IOException e) {\n loaded = false;\n }\n }", "public static void init(String filePath) {\n\t\t// Reading the created network for using its structure.\n\t\tnet = FileUtils.getNetwork(filePath);\n\t}", "public GridFSInputFile createFile(InputStream in, String filename) {\n\treturn new GridFSInputFile(this, in, filename);\n }", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "public ImageFile(String filename) throws ImageException, FileNotFoundException, IOException {\r\n\tFile file = new File(filename);\r\n\tif (!file.exists()){\r\n\t\tthrow new ImageException(\"image file '\"+filename+\"' not found\");\r\n\t}\r\n\ttry {\r\n\t\t//\r\n\t\t// try native format\r\n\t\t//\r\n\t\tloadNativeFormat(filename);\r\n\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully as native format\");\r\n\t}catch (Exception e){\r\n\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), exception loading native format, trying TIFF, exception=\"+e.getMessage());\r\n\t\ttry {\t\t\t\t\r\n\t\t\t// try TIFF format\r\n\t\t\tloadTIFFFormat(new FileTiffInputSource(filename));\r\n\t\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully as TIFF\");\r\n\t\t\treturn;\r\n\t\t}catch (Exception e2){\r\n\t\t\tSystem.out.println(\"ImageFile:ImageFile(\"+filename+\"), exception loading TIFF, trying zip format, exception=\"+e2.getMessage());\r\n\t\t\tbyte buffer[] = new byte[65536];\r\n\t\t\tFileInputStream fis = new FileInputStream(filename);\r\n\t\t\ttry {\r\n\t\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n\t\t\t\tint numBytesRead = 0;\r\n\t\t\t\twhile ((numBytesRead = fis.read(buffer)) > 0){\r\n\t\t\t\t\tbos.write(buffer,0,numBytesRead);\r\n\t\t\t\t}\r\n\t\t\t\tbyte imageData[] = bos.toByteArray();\r\n\t\t\t\tbyte entries[][] = getZipFileEntries(imageData);\r\n\t\t\t\tif (entries!=null){\r\n\t\t\t\t\tVCImage vcImage = getVCImageFromZSeries(entries);\r\n\t\t\t\t\tcreateFromVCImage(vcImage);\r\n\t\t\t\t\tSystem.out.println(\"ImageFile.ImageFile(\"+filename+\"), read successfully\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthrow new ImageException(\"Image format not recognized for file '\"+filename+\"'\");\r\n\t\t\t\t}\r\n\t\t\t}finally {\r\n\t\t\t\tif (fis!=null){\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n}", "@Override\r\n\tpublic void init(String fileAddress) {\n\t\tplayerController = new DataService.PlayerDataService.PlayerController(fileAddress) ;\r\n\t}", "public FileInfo(File file) {\n this.file = file;\n }", "public void init(String tmpInputFile)\r\n {\n readFile(tmpInputFile);\r\n writeInfoFile();\r\n }", "void init() throws IOException {\n\t\tif (this.type==FILE){\n\t\t\tstream.init(new FileInputStream(name));\n\t\t}\n\t\telse{\n\t\t\tURL url = new URL(name);\n\t\t\tstream.init((url.openStream()));\n\t\t}\n\t}", "public Deck(final String fileName) {\r\n\t\tthis(fileName, true);\r\n\t}", "public void setFileId(String fileId) {\n this.fileId = fileId;\n }", "public JsnParser(String filename) {\n this.filename = filename;\n }", "protected void initFile(String id) throws FormatException, IOException {\n // normalize file name\n super.initFile(normalizeFilename(null, id));\n id = currentId;\n String dir = new File(id).getParent();\n\n // parse and populate OME-XML metadata\n String fileName = new Location(id).getAbsoluteFile().getAbsolutePath();\n RandomAccessInputStream ras = new RandomAccessInputStream(fileName);\n String xml;\n IFD firstIFD;\n try {\n TiffParser tp = new TiffParser(ras);\n firstIFD = tp.getFirstIFD();\n xml = firstIFD.getComment();\n }\n finally {\n ras.close();\n }\n\n if (service == null) setupService();\n OMEXMLMetadata meta;\n try {\n meta = service.createOMEXMLMetadata(xml);\n }\n catch (ServiceException se) {\n throw new FormatException(se);\n }\n\n hasSPW = meta.getPlateCount() > 0;\n\n for (int i=0; i<meta.getImageCount(); i++) {\n int sizeC = meta.getPixelsSizeC(i).getValue().intValue();\n service.removeChannels(meta, i, sizeC);\n }\n\n // TODO\n //Hashtable originalMetadata = meta.getOriginalMetadata();\n //if (originalMetadata != null) metadata = originalMetadata;\n\n LOGGER.trace(xml);\n\n if (meta.getRoot() == null) {\n throw new FormatException(\"Could not parse OME-XML from TIFF comment\");\n }\n\n String[] acquiredDates = new String[meta.getImageCount()];\n for (int i=0; i<acquiredDates.length; i++) {\n acquiredDates[i] = meta.getImageAcquiredDate(i);\n }\n\n String currentUUID = meta.getUUID();\n service.convertMetadata(meta, metadataStore);\n\n // determine series count from Image and Pixels elements\n int seriesCount = meta.getImageCount();\n core = new CoreMetadata[seriesCount];\n for (int i=0; i<seriesCount; i++) {\n core[i] = new CoreMetadata();\n }\n info = new OMETiffPlane[seriesCount][];\n\n tileWidth = new int[seriesCount];\n tileHeight = new int[seriesCount];\n\n // compile list of file/UUID mappings\n Hashtable<String, String> files = new Hashtable<String, String>();\n boolean needSearch = false;\n for (int i=0; i<seriesCount; i++) {\n int tiffDataCount = meta.getTiffDataCount(i);\n for (int td=0; td<tiffDataCount; td++) {\n String uuid = null;\n try {\n uuid = meta.getUUIDValue(i, td);\n }\n catch (NullPointerException e) { }\n String filename = null;\n if (uuid == null) {\n // no UUID means that TiffData element refers to this file\n uuid = \"\";\n filename = id;\n }\n else {\n filename = meta.getUUIDFileName(i, td);\n if (!new Location(dir, filename).exists()) filename = null;\n if (filename == null) {\n if (uuid.equals(currentUUID) || currentUUID == null) {\n // UUID references this file\n filename = id;\n }\n else {\n // will need to search for this UUID\n filename = \"\";\n needSearch = true;\n }\n }\n else filename = normalizeFilename(dir, filename);\n }\n String existing = files.get(uuid);\n if (existing == null) files.put(uuid, filename);\n else if (!existing.equals(filename)) {\n throw new FormatException(\"Inconsistent UUID filenames\");\n }\n }\n }\n\n // search for missing filenames\n if (needSearch) {\n Enumeration en = files.keys();\n while (en.hasMoreElements()) {\n String uuid = (String) en.nextElement();\n String filename = files.get(uuid);\n if (filename.equals(\"\")) {\n // TODO search...\n // should scan only other .ome.tif files\n // to make this work with OME server may be a little tricky?\n throw new FormatException(\"Unmatched UUID: \" + uuid);\n }\n }\n }\n\n // build list of used files\n Enumeration en = files.keys();\n int numUUIDs = files.size();\n HashSet fileSet = new HashSet(); // ensure no duplicate filenames\n for (int i=0; i<numUUIDs; i++) {\n String uuid = (String) en.nextElement();\n String filename = files.get(uuid);\n fileSet.add(filename);\n }\n used = new String[fileSet.size()];\n Iterator iter = fileSet.iterator();\n for (int i=0; i<used.length; i++) used[i] = (String) iter.next();\n\n // process TiffData elements\n Hashtable<String, IFormatReader> readers =\n new Hashtable<String, IFormatReader>();\n for (int i=0; i<seriesCount; i++) {\n int s = i;\n LOGGER.debug(\"Image[{}] {\", i);\n LOGGER.debug(\" id = {}\", meta.getImageID(i));\n\n String order = meta.getPixelsDimensionOrder(i).toString();\n\n PositiveInteger samplesPerPixel = null;\n if (meta.getChannelCount(i) > 0) {\n samplesPerPixel = meta.getChannelSamplesPerPixel(i, 0);\n }\n int samples = samplesPerPixel == null ? -1 : samplesPerPixel.getValue();\n int tiffSamples = firstIFD.getSamplesPerPixel();\n\n boolean adjustedSamples = false;\n if (samples != tiffSamples) {\n LOGGER.warn(\"SamplesPerPixel mismatch: OME={}, TIFF={}\",\n samples, tiffSamples);\n samples = tiffSamples;\n adjustedSamples = true;\n }\n\n if (adjustedSamples && meta.getChannelCount(i) <= 1) {\n adjustedSamples = false;\n }\n\n int effSizeC = meta.getPixelsSizeC(i).getValue().intValue();\n if (!adjustedSamples) {\n effSizeC /= samples;\n }\n if (effSizeC == 0) effSizeC = 1;\n if (effSizeC * samples != meta.getPixelsSizeC(i).getValue().intValue()) {\n effSizeC = meta.getPixelsSizeC(i).getValue().intValue();\n }\n int sizeT = meta.getPixelsSizeT(i).getValue().intValue();\n int sizeZ = meta.getPixelsSizeZ(i).getValue().intValue();\n int num = effSizeC * sizeT * sizeZ;\n\n OMETiffPlane[] planes = new OMETiffPlane[num];\n for (int no=0; no<num; no++) planes[no] = new OMETiffPlane();\n\n int tiffDataCount = meta.getTiffDataCount(i);\n boolean zOneIndexed = false;\n boolean cOneIndexed = false;\n boolean tOneIndexed = false;\n\n // pre-scan TiffData indices to see if any of them are indexed from 1\n\n for (int td=0; td<tiffDataCount; td++) {\n NonNegativeInteger firstC = meta.getTiffDataFirstC(i, td);\n NonNegativeInteger firstT = meta.getTiffDataFirstT(i, td);\n NonNegativeInteger firstZ = meta.getTiffDataFirstZ(i, td);\n int c = firstC == null ? 0 : firstC.getValue();\n int t = firstT == null ? 0 : firstT.getValue();\n int z = firstZ == null ? 0 : firstZ.getValue();\n\n if (c >= effSizeC) cOneIndexed = true;\n if (z >= sizeZ) zOneIndexed = true;\n if (t >= sizeT) tOneIndexed = true;\n }\n\n for (int td=0; td<tiffDataCount; td++) {\n LOGGER.debug(\" TiffData[{}] {\", td);\n // extract TiffData parameters\n String filename = null;\n String uuid = null;\n try {\n filename = meta.getUUIDFileName(i, td);\n } catch (NullPointerException e) {\n LOGGER.debug(\"Ignoring null UUID object when retrieving filename.\");\n }\n try {\n uuid = meta.getUUIDValue(i, td);\n } catch (NullPointerException e) {\n LOGGER.debug(\"Ignoring null UUID object when retrieving value.\");\n }\n NonNegativeInteger tdIFD = meta.getTiffDataIFD(i, td);\n int ifd = tdIFD == null ? 0 : tdIFD.getValue();\n NonNegativeInteger numPlanes = meta.getTiffDataPlaneCount(i, td);\n NonNegativeInteger firstC = meta.getTiffDataFirstC(i, td);\n NonNegativeInteger firstT = meta.getTiffDataFirstT(i, td);\n NonNegativeInteger firstZ = meta.getTiffDataFirstZ(i, td);\n int c = firstC == null ? 0 : firstC.getValue();\n int t = firstT == null ? 0 : firstT.getValue();\n int z = firstZ == null ? 0 : firstZ.getValue();\n\n // NB: some writers index FirstC, FirstZ and FirstT from 1\n if (cOneIndexed) c--;\n if (zOneIndexed) z--;\n if (tOneIndexed) t--;\n\n int index = FormatTools.getIndex(order,\n sizeZ, effSizeC, sizeT, num, z, c, t);\n int count = numPlanes == null ? 1 : numPlanes.getValue();\n if (count == 0) {\n core[s] = null;\n break;\n }\n\n // get reader object for this filename\n if (filename == null) {\n if (uuid == null) filename = id;\n else filename = files.get(uuid);\n }\n else filename = normalizeFilename(dir, filename);\n IFormatReader r = readers.get(filename);\n if (r == null) {\n r = new MinimalTiffReader();\n readers.put(filename, r);\n }\n\n Location file = new Location(filename);\n if (!file.exists()) {\n // if this is an absolute file name, try using a relative name\n // old versions of OMETiffWriter wrote an absolute path to\n // UUID.FileName, which causes problems if the file is moved to\n // a different directory\n filename =\n filename.substring(filename.lastIndexOf(File.separator) + 1);\n filename = dir + File.separator + filename;\n\n if (!new Location(filename).exists()) {\n filename = currentId;\n }\n }\n\n // populate plane index -> IFD mapping\n for (int q=0; q<count; q++) {\n int no = index + q;\n planes[no].reader = r;\n planes[no].id = filename;\n planes[no].ifd = ifd + q;\n planes[no].certain = true;\n LOGGER.debug(\" Plane[{}]: file={}, IFD={}\",\n new Object[] {no, planes[no].id, planes[no].ifd});\n }\n if (numPlanes == null) {\n // unknown number of planes; fill down\n for (int no=index+1; no<num; no++) {\n if (planes[no].certain) break;\n planes[no].reader = r;\n planes[no].id = filename;\n planes[no].ifd = planes[no - 1].ifd + 1;\n LOGGER.debug(\" Plane[{}]: FILLED\", no);\n }\n }\n else {\n // known number of planes; clear anything subsequently filled\n for (int no=index+count; no<num; no++) {\n if (planes[no].certain) break;\n planes[no].reader = null;\n planes[no].id = null;\n planes[no].ifd = -1;\n LOGGER.debug(\" Plane[{}]: CLEARED\", no);\n }\n }\n LOGGER.debug(\" }\");\n }\n\n if (core[s] == null) continue;\n\n // verify that all planes are available\n LOGGER.debug(\" --------------------------------\");\n for (int no=0; no<num; no++) {\n LOGGER.debug(\" Plane[{}]: file={}, IFD={}\",\n new Object[] {no, planes[no].id, planes[no].ifd});\n if (planes[no].reader == null) {\n LOGGER.warn(\"Image ID '{}': missing plane #{}. \" +\n \"Using TiffReader to determine the number of planes.\",\n meta.getImageID(i), no);\n TiffReader r = new TiffReader();\n r.setId(currentId);\n try {\n planes = new OMETiffPlane[r.getImageCount()];\n for (int plane=0; plane<planes.length; plane++) {\n planes[plane] = new OMETiffPlane();\n planes[plane].id = currentId;\n planes[plane].reader = r;\n planes[plane].ifd = plane;\n }\n num = planes.length;\n }\n finally {\n r.close();\n }\n }\n }\n LOGGER.debug(\" }\");\n\n // populate core metadata\n info[s] = planes;\n try {\n if (!info[s][0].reader.isThisType(info[s][0].id)) {\n info[s][0].id = currentId;\n }\n for (int plane=0; plane<info[s].length; plane++) {\n if (!info[s][plane].reader.isThisType(info[s][plane].id)) {\n info[s][plane].id = info[s][0].id;\n }\n }\n\n info[s][0].reader.setId(info[s][0].id);\n tileWidth[s] = info[s][0].reader.getOptimalTileWidth();\n tileHeight[s] = info[s][0].reader.getOptimalTileHeight();\n\n core[s].sizeX = meta.getPixelsSizeX(i).getValue().intValue();\n int tiffWidth = (int) firstIFD.getImageWidth();\n if (core[s].sizeX != tiffWidth) {\n LOGGER.warn(\"SizeX mismatch: OME={}, TIFF={}\",\n core[s].sizeX, tiffWidth);\n }\n core[s].sizeY = meta.getPixelsSizeY(i).getValue().intValue();\n int tiffHeight = (int) firstIFD.getImageLength();\n if (core[s].sizeY != tiffHeight) {\n LOGGER.warn(\"SizeY mismatch: OME={}, TIFF={}\",\n core[s].sizeY, tiffHeight);\n }\n core[s].sizeZ = meta.getPixelsSizeZ(i).getValue().intValue();\n core[s].sizeC = meta.getPixelsSizeC(i).getValue().intValue();\n core[s].sizeT = meta.getPixelsSizeT(i).getValue().intValue();\n core[s].pixelType = FormatTools.pixelTypeFromString(\n meta.getPixelsType(i).toString());\n int tiffPixelType = firstIFD.getPixelType();\n if (core[s].pixelType != tiffPixelType) {\n LOGGER.warn(\"PixelType mismatch: OME={}, TIFF={}\",\n core[s].pixelType, tiffPixelType);\n core[s].pixelType = tiffPixelType;\n }\n core[s].imageCount = num;\n core[s].dimensionOrder = meta.getPixelsDimensionOrder(i).toString();\n\n // hackish workaround for files exported by OMERO that have an\n // incorrect dimension order\n String uuidFileName = \"\";\n try {\n if (meta.getTiffDataCount(i) > 0) {\n uuidFileName = meta.getUUIDFileName(i, 0);\n }\n }\n catch (NullPointerException e) { }\n if (meta.getChannelCount(i) > 0 && meta.getChannelName(i, 0) == null &&\n meta.getTiffDataCount(i) > 0 &&\n uuidFileName.indexOf(\"__omero_export\") != -1)\n {\n core[s].dimensionOrder = \"XYZCT\";\n }\n\n core[s].orderCertain = true;\n PhotoInterp photo = firstIFD.getPhotometricInterpretation();\n core[s].rgb = samples > 1 || photo == PhotoInterp.RGB;\n if ((samples != core[s].sizeC && (samples % core[s].sizeC) != 0 &&\n (core[s].sizeC % samples) != 0) || core[s].sizeC == 1 ||\n adjustedSamples)\n {\n core[s].sizeC *= samples;\n }\n\n if (core[s].sizeZ * core[s].sizeT * core[s].sizeC >\n core[s].imageCount && !core[s].rgb)\n {\n if (core[s].sizeZ == core[s].imageCount) {\n core[s].sizeT = 1;\n core[s].sizeC = 1;\n }\n else if (core[s].sizeT == core[s].imageCount) {\n core[s].sizeZ = 1;\n core[s].sizeC = 1;\n }\n else if (core[s].sizeC == core[s].imageCount) {\n core[s].sizeT = 1;\n core[s].sizeZ = 1;\n }\n }\n\n if (meta.getPixelsBinDataCount(i) > 1) {\n LOGGER.warn(\"OME-TIFF Pixels element contains BinData elements! \" +\n \"Ignoring.\");\n }\n core[s].littleEndian = firstIFD.isLittleEndian();\n core[s].interleaved = false;\n core[s].indexed = photo == PhotoInterp.RGB_PALETTE &&\n firstIFD.getIFDValue(IFD.COLOR_MAP) != null;\n if (core[s].indexed) {\n core[s].rgb = false;\n }\n core[s].falseColor = true;\n core[s].metadataComplete = true;\n }\n catch (NullPointerException exc) {\n throw new FormatException(\"Incomplete Pixels metadata\", exc);\n }\n }\n\n // remove null CoreMetadata entries\n\n Vector<CoreMetadata> series = new Vector<CoreMetadata>();\n Vector<OMETiffPlane[]> planeInfo = new Vector<OMETiffPlane[]>();\n for (int i=0; i<core.length; i++) {\n if (core[i] != null) {\n series.add(core[i]);\n planeInfo.add(info[i]);\n }\n }\n core = series.toArray(new CoreMetadata[series.size()]);\n info = planeInfo.toArray(new OMETiffPlane[0][0]);\n\n MetadataTools.populatePixels(metadataStore, this, false, false);\n for (int i=0; i<acquiredDates.length; i++) {\n if (acquiredDates[i] != null) {\n metadataStore.setImageAcquiredDate(acquiredDates[i], i);\n }\n }\n metadataStore = getMetadataStoreForConversion();\n }", "public void openFileInEditor(String filename) throws PartInitException{\n\t\tString path = DataManager.getCurrentPath() + slash + filename;\n\t\tajdtHandler.openFileInEditorView(path);\n\t}", "@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }", "public void initLoadingFileEnviroment() {\n // file init\n try {\n DiskFileItemFactory fileFactory = new DiskFileItemFactory();\n File filepath = new File(DATA_PATH);\n fileFactory.setRepository(filepath);\n this._uploader = new ServletFileUpload(fileFactory);\n\n } catch (Exception ex) {\n System.err.println(\"Error init new file environment. \" + ex.getMessage());\n }\n }", "public void setFile(IFile file) {\n _file = file;\n }", "private void init(String filename){\n // create product cateogries \n // hard coded key-value for this project \n productCategory.addProduct(\"book\", \"books\");\n productCategory.addProduct(\"books\", \"books\");\n productCategory.addProduct(\"chocolate\", \"food\");\n productCategory.addProduct(\"chocolates\", \"food\");\n productCategory.addProduct(\"pills\", \"medical\");\n \n // read input\n parser.readInput(filename);\n \n // addProducts\n try {\n this.addProducts(parser.getRawData());\n } catch (Exception e) {\n System.out.println(\"Check input integrity\");\n }\n \n this.generateReceipt();\n\n }", "public CMD(String mFilename)\n {\n //Set the line index to -1, if the file cannot be opened\n this.LineIndex = -1;\n this.FileLines = new LinkedList<>();\n this.Filename = mFilename;\n }", "@Override\n public boolean initializeIndexReader(String filename) {\n try {\n READER = DirectoryReader.open(FSDirectory.open(FileSystems.getDefault().getPath(filename)));\n } catch (IOException e) {\n READER = null;\n log.error(\"Failed to instantiate the index api.reader with directory: \" + filename);\n }\n return isInitialized();\n }", "public static FileSource fromPath(String filename) {\n return fromPath(filename, new SmarterMap());\n }", "public ExternalDocument (String format, String fileName) {\n\t\tthis.format = format;\n\t\tthis.directory = null;\n\t\tthis.fileName = fileName;\n\t\tthis.open = false;\n\t}", "public FileProcessor(String fileName){\n\n\t\ttry{\n\t\t\tfileInput = new FileReader(fileName);\n bufferedInput = new BufferedReader(fileInput);\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.err.println(\"Exception:\\\"\" + fileName + \"\\\" was not found. Please enter Correct filename.\");\n\t\t\tSystem.err.println(\"Suggestion: Check for file extension or any Spelling mistake in File Name\\n\");\n\t\t\tSystem.exit(1); \n \t}\n\t}", "File(String fileName)\n {\n this.fileNameToFilterBy = fileName;\n }", "public MainframeFile (String name, byte[] buffer)\n // ---------------------------------------------------------------------------------//\n {\n this.name = name;\n this.buffer = buffer;\n }", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessInputStream(id);\n\n String endian = in.readString(2);\n boolean little = endian.equals(\"II\");\n in.order(little);\n\n in.seek(98);\n int seriesCount = in.readInt();\n\n in.seek(192);\n while (in.read() == 0);\n String description = in.readCString();\n addGlobalMeta(\"Description\", description);\n\n while (in.readInt() == 0);\n\n long fp = in.getFilePointer();\n if ((fp % 2) == 0) fp -= 4;\n else fp--;\n\n offsets = new long[seriesCount];\n core = new CoreMetadata[seriesCount];\n for (int i=0; i<seriesCount; i++) {\n in.seek(fp + i*256);\n core[i] = new CoreMetadata();\n core[i].littleEndian = little;\n core[i].sizeX = in.readInt();\n core[i].sizeY = in.readInt();\n int numBits = in.readInt();\n core[i].sizeC = in.readInt();\n core[i].sizeZ = in.readInt();\n core[i].sizeT = in.readInt();\n\n core[i].imageCount = core[i].sizeZ * core[i].sizeC * core[i].sizeT;\n int nBytes = numBits / 8;\n core[i].pixelType =\n FormatTools.pixelTypeFromBytes(nBytes, false, nBytes == 8);\n\n core[i].dimensionOrder = \"XYCZT\";\n core[i].rgb = false;\n\n in.skipBytes(4);\n\n long pointer = in.getFilePointer();\n String name = in.readCString();\n\n if (i == 0) {\n in.skipBytes((int) (92 - in.getFilePointer() + pointer));\n while (true) {\n int check = in.readInt();\n if (check > in.getFilePointer()) {\n offsets[i] = (long) check + LUT_SIZE;\n break;\n }\n in.skipBytes(92);\n }\n }\n else {\n offsets[i] = offsets[i - 1] + core[i - 1].sizeX * core[i - 1].sizeY *\n core[i - 1].imageCount *\n FormatTools.getBytesPerPixel(core[i - 1].pixelType);\n }\n offsets[i] += 352;\n in.seek(offsets[i]);\n while (in.getFilePointer() + 116 < in.length() && in.read() == 3 &&\n in.read() == 37)\n {\n in.skipBytes(114);\n offsets[i] = in.getFilePointer();\n }\n in.seek(in.getFilePointer() - 1);\n byte[] buf = new byte[3 * 1024 * 1024];\n int n = in.read(buf, 0, 1);\n boolean found = false;\n while (!found && in.getFilePointer() < in.length()) {\n n += in.read(buf, 1, buf.length - 1);\n for (int q=0; q<buf.length - 1; q++) {\n if ((buf[q] & 0xff) == 192 && (buf[q + 1] & 0xff) == 46) {\n offsets[i] = in.getFilePointer() - n + q;\n found = true;\n break;\n }\n }\n buf[0] = buf[buf.length - 1];\n n = 1;\n }\n if (found) offsets[i] += 16063;\n if (i == offsets.length - 1 && !compressed && i > 0) {\n offsets[i] = (int) (in.length() -\n (core[i].sizeX * core[i].sizeY * core[i].imageCount * (numBits / 8)));\n }\n }\n\n MetadataStore store = makeFilterMetadata();\n MetadataTools.populatePixels(store, this);\n MetadataTools.setDefaultCreationDate(store, id, 0);\n }", "public FileBean(File file) throws FileNotFoundException, UnsupportedEncodingException{\r\n\t\tlocation = new SimpleStringProperty();\r\n\t\tsongName = new SimpleStringProperty();\r\n\t\talbum = new SimpleStringProperty();\r\n\t\tartist = new SimpleStringProperty();\r\n\t\turl = new SimpleStringProperty();\r\n\t\t\r\n\t\t/**\r\n\t\t * must initialize with a number because this field will be called\r\n\t\t * before the MediaPlayer's status has changed which would cause a \r\n\t\t * null pointer exception to be thrown if not initialized\r\n\t\t */\r\n\t\tduration = new SimpleStringProperty(\"0.0\");\r\n\t\tlocation.set(file.getAbsolutePath().replace(\"\\\\\", \"/\"));\r\n\t\t\r\n\t\t/*\r\n\t\t * encode all special characters.\r\n\t\t * URLEncoder puts a '+' where a ' ' is so change all '+' to encoded space '%20'.\r\n\t\t */\r\n\t\turl.set(\"file:///\" + URLEncoder.encode(location.get(), \"UTF-8\").replace(\"+\", \"%20\"));\r\n\t\t\r\n\t\t/*\r\n\t\t * Could not easily figure out how to set an action event for when the Media\r\n\t\t * object is done loading. Using the MediaPlayer status change event instead.\r\n\t\t * Looking for a better option\r\n\t\t */\r\n\t\tmedia = new Media(url.get());\r\n//\t\tmedia.getMetadata().addListener(new SetMetaData());\r\n\t\tthis.player = new MediaPlayer(media);\r\n//\t\ttempPlayer.setOnReady(new OnMediaReadyEvent());\r\n\t\tsetDefaultSongNameAndArtist();\r\n\t}", "public Cartridge(String fileName) {\n\t\ttry {\n\t\t\tInputStream i = new FileInputStream(fileName);\n\t\t\tbyte[] header = new byte[16];\n\t\t\ti.read(header);\n\t\t\tif((header[6]&0x04)!=0) i.skip(512);\n\t\t\tnMapperID = (byte) ((((header[7]&0xFF)>>4)<<4)|((header[6]&0xFF)>>4));\n\t\t\tmirror = (header[6]&0x01)!=0;\n\t\t\tint nFileType = 1;\n\t\t\tif(nFileType==0) {\n\t\t\t\t\n\t\t\t}\n\t\t\tif(nFileType==1) {\n\t\t\t\tnPRGBanks = header[4];\n\t\t\t\tvPRGMemory = new byte[nPRGBanks*16384];\n\t\t\t\ti.read(vPRGMemory);\n\t\t\t\tnCHRBanks = header[5];\n\t\t\t\tvCHRMemory = new byte[nCHRBanks>0?nCHRBanks*8192:8192];\n\t\t\t\ti.read(vCHRMemory);\n\t\t\t}\n\t\t\tif(nFileType==2) {\n\t\t\t\t\n\t\t\t}\n\t\t\tswitch(nMapperID&0xFF) {\n\t\t\tcase 0: mapper = new Mapper000(nPRGBanks,nCHRBanks);break;\n\t\t\t}\n\t\t\ti.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\timageValid = true;\n\t}", "public LdifFile()\n {\n }", "public boolean open(String filename)\n {\n \n boolean retVal = open_0(nativeObj, filename);\n \n return retVal;\n }", "public CASMediator(String fileName) \n\t{\n\n\t\tm_fileModuleNameStructure = fileName;\n\t\tm_mapComponents = new HashMap<String, ComponentIf>();\n\t\tm_notifications = new HashMap<TypesNotification, ArrayList<Notifications>>();\n\t}", "public XGMMLReader(String fileName) {\n \t\ttry {\n \t\t\tnetworkStream = new FileInputStream(fileName);\n \t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tinitialize();\n \t}", "public void setFilename(String filename) {\n this.filename = filename;\n }", "public void setFilename(String filename) {\n this.filename = filename;\n }", "public InputFile(String filePath) {\n this.filePath = filePath;\n }", "public File() {\n }", "public void setExternalSpectrumFile(String filename);", "public Receiver(String file) {\n\t\ttry {\n\t\t\tinput = new InputDriver(file, true);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"The file, \" + file + \", isn't existed on the server.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\timg = new ImageDriver(input);\n\t\t//initialize list as a new linked list\n\t\tlist = new PacketLinkedList<SimplePacket>();\n\t}", "public CommandParser(String filename) {\r\n try {\r\n sc = new Scanner(new File(filename));\r\n }\r\n catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n System.out.println(\"File not found.\");\r\n }\r\n }", "public void setFl(String fileName){\n fl = fileName;\n }", "public BpmnModelReader(String filePath) {\n\t\tloadedFile = new File(filePath);\n\t}", "public static void initializeControlFile(String controlFileName) {\n\t\tSystem.out.println(\"Working Directory = \" + System.getProperty(\"user.dir\"));\n\t\tString xmlControlFile = \"src\\\\test\\\\resources\\\\configuration\\\\\" + controlFileName;\n\t\tcontrolDoc = PrismStaticUtility.openXMLFile(xmlControlFile);\n\t\tcontrolXpath = PrismStaticUtility.getXMLXPath();\n\t\tinitializedControlFile = true;\n\t}", "public WaveSystem(String filename)\n\t{\n\t\taddWavesFromFile(filename);\n\t}", "public WorkDataFile(String filename)\n\t{\n\t\tsetFileName(filename);\n\t}", "public void initialize(final String fileName) throws IOException\n {\n final Properties props = new Properties();\n final String fileName2 = \"assets/\" + fileName;\n final InputStream is = getClass().getResourceAsStream(\"/\" + fileName2);\n if (is != null)\n {\n props.load(is);\n }\n\n File file = new File(fileName);\n if (!file.exists())\n {\n file = new File(fileName2);\n if (file.exists())\n {\n props.load(new FileInputStream(file));\n }\n }\n else\n {\n props.load(new FileInputStream(file));\n }\n initialize(props);\n }", "public DocReader(File f)\n\t{\n\t\tthis.inputFile = f;\n\t}", "protected CipherIV getCipherAndIVFromFile(String filename) throws IOException {\n byte[] cipher = super.readBytesFromFile(filename + CIPHER_PART);\n byte[] iv = super.readBytesFromFile(filename + IV_PART);\n return new CipherIV(cipher, iv);\n }" ]
[ "0.6295753", "0.61930144", "0.617228", "0.6113452", "0.60420746", "0.59135467", "0.5903504", "0.560521", "0.55993533", "0.5585009", "0.54927105", "0.547112", "0.54700214", "0.54536414", "0.54105484", "0.5323132", "0.53104895", "0.529884", "0.529726", "0.52904516", "0.52882886", "0.5270356", "0.52673686", "0.5256285", "0.5247673", "0.5241354", "0.5235544", "0.52338445", "0.522725", "0.5212214", "0.5192988", "0.51862985", "0.51778626", "0.51744604", "0.5162517", "0.5153404", "0.5151126", "0.51427245", "0.51385", "0.51342624", "0.51241136", "0.5122659", "0.5117069", "0.5109199", "0.5108197", "0.5104646", "0.509708", "0.50906086", "0.5082504", "0.5078679", "0.5077626", "0.50643027", "0.5059995", "0.50558305", "0.50533164", "0.50508285", "0.50374544", "0.50270194", "0.5026596", "0.5021364", "0.5020755", "0.5019149", "0.501211", "0.5008774", "0.49722365", "0.4971101", "0.49709466", "0.49638748", "0.49590206", "0.49521974", "0.49497935", "0.49451298", "0.49449906", "0.49341235", "0.49339056", "0.49331626", "0.49322277", "0.49297595", "0.49294648", "0.49198282", "0.49056342", "0.49048412", "0.49019778", "0.48976904", "0.4895149", "0.48935655", "0.48935655", "0.4888423", "0.48814085", "0.48778751", "0.4869183", "0.48617524", "0.4861425", "0.48597497", "0.4857789", "0.48474345", "0.48468837", "0.48415494", "0.48414063", "0.48401725" ]
0.7534981
0
3. If your task shall contain other tasks as nested elements (like parallel), your class must implement the interface org.apache.tools.ant.TaskContainer. If you do so, your task can not support any other nested elements. See below. 4. If the task should support character data (text nested between the start end end tags), write a public void addText(String) method. Note that Ant does not expand properties on the text it passes to the task. 5. For each nested element, write a create, add or addConfigured method. A create method must be a public method that takes no arguments and returns an Object type. The name of the create method must begin with create, followed by the element name. An add (or addConfigured) method must be a public void method that takes a single argument of an Object type with a noargument constructor. The name of the add (addConfigured) method must begin with add (addConfigured), followed by the element name. For a more complete discussion see below. 6. Write a public void execute method, with no arguments, that throws a BuildException. This method implements the task itself.
@Override public void execute() throws BuildException { AbstractGenerator g; if (kind == null) { throw new BuildException("kind was not specified"); } final String k = kind.getValue(); if (k.equals(INTERFACE)) { g = new InterfaceGen(); } else if (k.equals(CRYSTAL)) { g = new CrystalGen(); } else if (k.equals(OPERATOR)) { g = new OperatorGen(); } else { throw new BuildException("Unknown kind was specified: "+kind); } if (dest != null) { srcs.add(0, "-out"); srcs.add(1, dest); } g.generate(srcs.toArray(new String[srcs.size()])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void executeTask(org.apache.ant.common.antlib.Task task) throws org.apache.ant.common.util.ExecutionException;", "public Ant(Task owner) {\n bindToOwner(owner);\n }", "private void parseElementForTaskdefs(Element element)\n {\n for (Iterator targetsIterator = element.getDescendants(new ElementFilter(\"taskdef\")); targetsIterator.hasNext();)\n {\n Element taskdefElement = (Element) targetsIterator.next();\n Taskdef taskdef = new Taskdef(taskdefElement, this);\n\n addTaskdef(taskdef);\n }\n }", "public interface PropertiesTask\n extends FileTask\n{\n\n /**\n * Properties file to be modified. If file does not exist it will be created.\n *\n * @param propertiesFile to be created/modified\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setTargetFile( File propertiesFile );\n\n /**\n * Sets a property by key. If property is not present it will be added.\n *\n * @param key property key\n * @param value property value\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperty( String key, String value );\n\n /**\n * Sets/adds all properties specified.\n *\n * @param properties to be added\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperties( Properties properties );\n\n /**\n * Reads properties from specified properties file and add/set them.\n *\n * @param propertiesFile file containing properties\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperties( File propertiesFile );\n\n /**\n * Removes a property by key.\n *\n * @param key of property to be removed\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask removeProperty( String key );\n\n /**\n * Removes all properties. If there are properties to be set, those properties will replace all eventually existing\n * properties in target file.\n *\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask removeAllProperties();\n\n}", "public interface ExecService {\n /**\n * Parse an XML file into a build model.\n *\n * @param xmlBuildFile\n * \t\tThe file containing the XML build description.\n * @return A Project model for the build.\n * @exception ExecutionException\n * \t\tif the build cannot be parsed\n */\n org.apache.ant.common.model.Project parseXMLBuildFile(java.io.File xmlBuildFile) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Create a project reference.\n *\n * @param referenceName\n * \t\tthe name under which the project will be\n * \t\treferenced.\n * @param model\n * \t\tthe project model.\n * @exception ExecutionException\n * \t\tif the project cannot be referenced.\n */\n void createProjectReference(java.lang.String referenceName, org.apache.ant.common.model.Project model) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Setup a sub-build.\n *\n * @param model\n * \t\tthe project model to be used for the build\n * @param properties\n * \t\tthe initiali properties to be used in the build\n * @return a key to the build allowing it to be executed and managed\n * @exception ExecutionException\n * \t\tif the subbuild cannot be setup\n */\n java.lang.Object setupBuild(org.apache.ant.common.model.Project model, java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Setup a sub-build using the current frame's project model\n *\n * @param properties\n * \t\tthe initiali properties to be used in the build\n * @return a key to the build allowing it to be executed and managed\n * @exception ExecutionException\n * \t\tif the subbuild cannot be setup\n */\n java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Run a build which have been previously setup\n *\n * @param buildKey\n * \t\tthe buildKey returned previously when the build was\n * \t\tsetup\n * @param targets\n * \t\tA list of targets to be run\n * @exception ExecutionException\n * \t\tif the build cannot be run\n */\n void runBuild(java.lang.Object buildKey, java.util.List targets) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * execute a task. The task should have already been initialised by the\n * core\n *\n * @param task\n * \t\tthe task to be executed.\n * @exception ExecutionException\n * \t\tif there is a problem in execution.\n */\n void executeTask(org.apache.ant.common.antlib.Task task) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * get the name of the project associated with this execution.\n *\n * @return the project's name\n */\n java.lang.String getProjectName();\n\n /**\n * Get the basedir for the current execution\n *\n * @return the base directory for this execution of Ant\n */\n java.io.File getBaseDir();\n\n /**\n * Handle subbuild output.\n *\n * @param subbuildKey\n * \t\tthe core's key for managing the subbuild.\n * @param line\n * \t\tthe content produce by the current thread.\n * @param isErr\n * \t\ttrue if this content is from the thread's error stream.\n * @exception ExecutionException\n * \t\tif the subbuild cannot be found.\n */\n void handleBuildOutput(java.lang.Object subbuildKey, java.lang.String line, boolean isErr) throws org.apache.ant.common.util.ExecutionException;\n}", "protected final void addChild(final XmlAntTask child) {\n\t\tchilds.add(child);\n\t\tchild.setParent(this);\n\t}", "public interface SampleGeneratorTask extends Task {\n DirectoryProperty getTemplatesDir();\n\n DirectoryProperty getSampleDir();\n}", "interface TaskBuilder<T, B extends AbstractBuilder> {\n /**\n * set task list and return the builder instance\n *\n * @param tasks the tasks\n * @return the b\n */\n B withTasks(Collection<T> tasks);\n }", "public interface Task {\n\t\t/** Insertion tuples */\n\t\tpublic TupleSet insertions();\n\n\t\t/** Deletion tuples. */\n\t\tpublic TupleSet deletions();\n\n\t\t/** The program name that should evaluate the tuples. */\n\t\tpublic String program();\n\n\t\t/** The name of the table to which the tuples belong. */\n\t\tpublic TableName name();\n\t}", "public XmlAdaptedTask() {}", "public XmlAdaptedTask() {}", "public XmlAdaptedTask() {\n\t}", "protected void parseTask(XmlElement taskXmlElement) {\n\n Node taskNode = processBuilder.getNodeBuilder().setIncomingBehaviour(new SimpleJoinBehaviour())\n .setOutgoingBehaviour(new TakeAllSplitBehaviour())\n .setActivityBehavior(new AutomatedDummyActivity(\"Doing something\")).buildNode();\n\n parseGeneralInformation(taskXmlElement, taskNode);\n getNodeXmlIdTable().put((String) taskNode.getAttribute(\"idXml\"), taskNode);\n\n for (BpmnXmlParseListener parseListener : parseListeners) {\n parseListener.parseTask(taskXmlElement, taskNode, processBuilder);\n }\n }", "@Override\n\tpublic void generateTasks(Workflow workflow, List<Tuple> targets)\n\t{\n\n\t}", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public interface OrderedTask {\n\n /**\n * @return The set of tasks this task is directly dependent on.\n */\n Set<OrderedTask> getPredecessors();\n \n /**\n * Returns the depth in the task \"tree\" (based on the predecessors). This is used to order\n * the tasks in {@link OrderedTaskComparator}.\n * <p>\n * The standard {@link PriorityQueue} class requires total ordering of the elements which\n * would not be possible based only on the predecessors. The depth of an element gives us a good\n * measure upon which the total ordering can be based.\n * \n * @return the depth in the task tree\n */\n int getDepth();\n \n /**\n * @return true if this task is considered finished.\n */\n boolean isFinished(); \n \n void setFinished(boolean value);\n}", "public interface Task {\n\n /**\n * Getter for the conversaitonal object concerned with this task.\n * @return the conversational object owning this task\n */\n ConversationalObject getTaskOwner();\n\n /**\n * Stter for the conversaitonal object concerned with this task.\n * @param taskOwner the task owner to set.\n */\n void setTaskOwner(ConversationalObject taskOwner);\n\n /**\n * Getter for the status of this task\n * @return the current status of this task\n */\n TaskStatus getStatus();\n\n /**\n * Setter for the status of this task\n * @param status\n */\n void setStatus(TaskStatus status);\n\n /**\n * Getter for the stage of this task. It is strongly recomended that concrete\n * task classes declare static final string variables to refer to there\n * possible stages.\n * @return The current stage of this task\n */\n String getStage();\n\n /**\n * Getter for the result of this task.\n * @return the result of this task, or {@code null} if the task is not\n * finished.\n */\n TaskResult getResult();\n\n /**\n * Getter for the set of tasks that depend from this task\n * @return The set of dependent tasks (can be null)\n */\n Set<Task> getDependentTasks();\n\n /**\n * Setter for the set of tasks that depend from this task\n * @param dependentTasks the set of dependent tasks to set\n */\n void setDependentTasks(Set<Task> dependentTasks);\n\n /**\n * Getter for the aggregated task this task has generated and is dependent on.\n * @return The aggregated task, if any (can be null)\n */\n Task getAggregatedTask();\n\n /**\n * Setter for the aggregated task this task has generated and is dependent on.\n * @param aggregatedTask the aggregated task to set\n */\n void setAggregatedTask(Task aggregatedTask);\n\n // TODO Other references could be added to extend the tasks model: e.g.\n // (1) subtasks: list of tasks composing this task, i.e. that should be\n // executed\n // in sequence in order to complete this task, and\n // (2) supertask: reversely, task this task is a subtask of.\n\n /**\n * Getter for the set of conversations this task generated and is now\n * dependent on.\n * @return the set of generated conversations\n */\n Set<OnGoingConversation> getGeneratedConversations();\n\n /**\n * Setter for generatedConversations.\n * @param generatedConversations the set of generatedConversations to set\n */\n void setGeneratedConversations(\n Set<OnGoingConversation> generatedConversations);\n\n /**\n * Cuts all references to other objects so that the garbage collector can\n * destroy them after having destroyed this task, if they are not referenced\n * by other objects than this task. Should be executed before removing the\n * last reference to this task (usually before removing this task from the set\n * of tasks of a conversational object)\n */\n void clean();\n\n /**\n * Executes the task. Specific to each concrete task class.\n */\n void execute();\n}", "org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract addNewTaskAbstract();", "public interface Task extends Runnable {\n\n /**\n * Get the task name\n *\n * @return\n */\n public String getTaskName();\n\n /**\n *\n * @return true if the task is in active, else false\n */\n public boolean isActive();\n\n /**\n * @return priority of the task\n */\n public int getPriority();\n\n /**\n *\n * @return the sequence number of the task. If two tasks has same priority,\n * then the task with less sequence number executes first.\n */\n public int getSequenceNumber();\n}", "protected void setupTask(Task task) {\n }", "java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;", "TaskDependency createTaskDependency();", "public void addTaskDefinition(String taskName, Class taskClass)\n throws BuildException {\n ComponentHelper.getComponentHelper(this).addTaskDefinition(taskName,\n taskClass);\n }", "@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}", "protected abstract void createTasks();", "@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}", "public void initTaskInsideDrug(DrugMtl drugMtl, String task, String type){\n\t\tTask taskO = (Task)taskCreator.setTask(task).setType(type).setTaskvar(\"\").build();\n\t\tlog.debug(taskO);\n\t\tTree innerTaskT = nodeCreator.setTagName(\"task\")\n\t\t.setTreeManager(drugMtl).setParentT(drugMtl.getDocT()).addChild();\n\t\tlog.debug(innerTaskT);\n\t\t\n//\t\tif(innerTask!=null)\n\t\t\tdrugMtl.addMObject(taskO, innerTaskT);\n\t\tfor(Tree t:drugMtl.getDocT().getChildTs())\n\t\t\tif(t.getTabName().equals(\"task\"))\n\t\t\t\tlog.debug(\"--------\"+t);\n\t\t\n\t\tlog.debug(innerTaskT);\n\t\tlog.debug(drugMtl.getIdt());\n\t}", "int createParentTask();", "public Project createProject( File build_file ) throws Exception { // NOPMD\n if ( build_file == null || !build_file.exists() )\n return null;\n\n // load the option settings for this build file\n setPrefs( build_file );\n\n // configure the project\n Project p = new Project();\n\n // set the project helper -- the AntelopeProjectHelper2 is the same as the Ant\n // ProjectHelper2, but has been slightly modified so it does not automatically\n // run the implicit target\n System.setProperty( \"org.apache.tools.ant.ProjectHelper\", \"ise.antelope.common.AntelopeProjectHelper2\" );\n\n try {\n ClassLoader cl = _helper.getAntClassLoader();\n p.setCoreLoader( cl );\n\n /*\n try {\n Log.log(\"loading antlib with _helper classloader\");\n cl.getResource( \"ise/antelope/tasks/antlib.xml\" );\n Log.log(\"loaded antlib with _helper classloader\");\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n */\n\n // add the antelope build logger now so that any output produced by the\n // ProjectHelper is captured\n p.addBuildListener( _build_logger );\n\n // add the progress bar build listener\n p.addBuildListener( _progress );\n\n // optionally add the antelope performance listener\n if ( _settings.getShowPerformanceOutput() ) {\n if ( _performance_listener == null )\n _performance_listener = new AntPerformanceListener();\n p.addBuildListener( _performance_listener );\n }\n\n // add the gui input handler\n setInputHandler( p );\n\n p.init(); // this takes as much as 9 seconds the first time, less than 1/2 second later\n\n p.setUserProperty( \"ant.file\", build_file.getAbsolutePath() );\n p.setProperty( \"ant.version\", Main.getAntVersion() );\n //String ant_home = System.getProperty(\"ant.home\");\n String ant_home = AntUtils.getAntHome();\n if ( ant_home != null ) {\n p.setProperty( \"ant.home\", ant_home );\n }\n String ant_lib_dirs = AntUtils.getAntLibDirs();\n if ( ant_lib_dirs != null )\n p.setProperty( \"ant.library.dir\", ant_lib_dirs );\n\n // add ant.jar to the classpath\n // for Ant 1.6, does ant-launcher.jar need to be added also? --\n // yes -- add all jars in $ant_home/lib and $user.home/.ant/lib, this\n // is what command-line Ant does. Ant also supports a -lib command-line\n // option where the user can specify additional locations. Should\n // Antelope support this? Need a gui in the properties panel if so.\n // 12/22/2004: added AntelopeLauncher, so -lib option is handled for app,\n // but not for plugin\n /// -- should this be done here or in the helper? --\n java.util.List ant_jars = _helper.getAntJarList();\n if ( ant_jars != null ) {\n java.util.List cp_list = new ArrayList();\n String classpath = p.getProperty( \"java.class.path\" );\n StringTokenizer st = new StringTokenizer( classpath, File.pathSeparator );\n while ( st.hasMoreTokens() ) {\n cp_list.add( new File( st.nextToken() ) );\n }\n Iterator it = ant_jars.iterator();\n while ( it.hasNext() ) {\n File f = new File( ( String ) it.next() );\n if ( !cp_list.contains( f ) ) {\n cp_list.add( f );\n }\n }\n StringBuffer sb = new StringBuffer();\n it = cp_list.iterator();\n while ( it.hasNext() ) {\n sb.append( ( ( File ) it.next() ).getAbsolutePath() ).append( File.pathSeparator );\n }\n classpath = sb.toString();\n p.setProperty( \"java.class.path\", classpath );\n System.setProperty( \"java.class.path\", classpath );\n }\n\n // load any saved user properties for this build file. These are properties\n // that the user has set using the properties dialog and in command-line\n // Ant would have been passed on the command line.\n Preferences user_prefs = getPrefs().node( Constants.ANT_USER_PROPS );\n String[] keys = user_prefs.keys();\n for ( int i = 0; i < keys.length; i++ ) {\n p.setUserProperty( keys[ i ], user_prefs.get( keys[ i ], \"\" ) );\n }\n\n //ProjectHelper.configureProject( p, build_file ); // deprecated\n ProjectHelper helper = ProjectHelper.getProjectHelper();\n p.addReference( \"ant.projectHelper\", helper );\n helper.parse( p, build_file );\n\n //for (Iterator it = p.getTargets().keySet().iterator(); it.hasNext(); ) {\n // System.out.println(\"target: \" + it.next());\n //}\n\n /*\n // looks like a recent change for antlib has busted loading custom tasks from\n // an antlib declaration. Need to check if this ever worked, I used to use\n // taskdef exclusively, and have only recently switched to using antlib.\n // Using antlib works when Antelope is running as an application, but not as\n // a plugin. Seems to have something to do with classloading.\n try {\n System.out.println(\"AntelopePanel classloader = \" + getClass().getClassLoader().hashCode());\n Class c = Class.forName(\"org.apache.tools.ant.Main\");\n if (c != null) {\n System.out.println(\"classloader for Main = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for Main = \" + c.getClassLoader().getParent());\n }\n else\n System.out.println(\"did not find class for Main\");\n c = Class.forName(\"ise.antelope.tasks.Unset\");\n if (c != null){\n System.out.println(\"classloader for Unset = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for Unset = \" + c.getClassLoader().getParent());\n System.out.println(\"classloader for Unset is a \" + c.getClassLoader().getClass().getName());\n }\n else\n System.out.println(\"did not find class for Unset\");\n c = Class.forName(\"org.apache.tools.ant.taskdefs.optional.EchoProperties\");\n if (c != null){\n System.out.println(\"classloader for EchoProperties = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for EchoProperties = \" + c.getClassLoader().getParent());\n System.out.println(\"classloader for EchoProperties is a \" + c.getClassLoader().getClass().getName());\n }\n else\n System.out.println(\"did not find class for EchoProperties\");\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n */\n\n\n return p;\n }\n catch ( Exception e ) {\n Log.log( e );\n e.printStackTrace( System.out );\n JOptionPane.showMessageDialog( GUIUtils.getRootJFrame( this ),\n \"<html>Error:<br>\" + e.getMessage(),\n \"Ant Error\",\n JOptionPane.ERROR_MESSAGE );\n throw e;\n }\n catch ( NoClassDefFoundError error ) {\n Log.log( error );\n error.printStackTrace( System.out );\n JOptionPane.showMessageDialog( GUIUtils.getRootJFrame( this ),\n \"<html>Error: No Class Definition Found for<br>\" + error.getMessage() +\n \"<br><p>This is most likely caused by a required third-party<br>\" +\n \"jar file not being in the class path.\",\n \"Ant Error\",\n JOptionPane.ERROR_MESSAGE );\n throw new Exception( error.getMessage() ); // NOPMD\n }\n }", "@Override\r\n public XmlTuple createTaskTuple(int taskid){\r\n XmlTuple task = new XmlTupleService();\r\n String taskstr = null;\r\n FedTaskTuple tasktuple = new FedTaskTuple();\r\n //taskstr = tasktuple.setTaskStr(taskid, masterNetName, value);\r\n List curPara = new ArrayList();\r\n synchronized(lock){\r\n curPara = paramList.get(taskid); \r\n }\r\n //System.out.println(\"createTaskTuple: \"+((Integer)curPara.get(0)).intValue()+\" \"+curPara.get(1).toString()+\" \"+ curPara.get(2).toString() +\" \"+curPara.get(3).toString()\r\n // +\" \"+(Double)curPara.get(4)+\" \"+((Double)curPara.get(5)).doubleValue() + curPara.get(6).toString()+curPara.get(7).toString()+(Long)curPara.get(8));\r\n taskstr = tasktuple.setTaskStr(taskid, masterNetName, \r\n ((Integer)curPara.get(0)).intValue(), curPara.get(1).toString(), curPara.get(2).toString(), curPara.get(3).toString(), \r\n curPara.get(4).toString(), curPara.get(5).toString(), curPara.get(6).toString(),curPara.get(7).toString(), (Long)curPara.get(8));\r\n //System.out.println(\"createTaskTuple: \" +taskstr);\r\n //taskstr = tasktuple.setTaskStr(taskid, masterNetName, _optID,tupleTag,taskType,destIP,cost,benefit);\r\n task.createXMLtuple(taskstr);\r\n \r\n return task;\r\n }", "public ANTForPlugins()\n {\n super();\n }", "public JBombardierAntTask(Task owner) {\r\n bindToOwner(owner);\r\n }", "public void addElement(DemoTask task) {\n\t\tdata.add(task);\n\t}", "public ConvertTextUnitsTask() {\n \n super();\n \n Label = LABEL;\n TaskParameterClassName = TASK_PARAMETER_CLASS_NAME;\n TaskResultClassName = TASK_RESULT_CLASS_NAME;\n ControlPanelClassName = CONTROL_PANEL_CLASS_NAME;\n ProjectPropertyData = PROJECT_PROPERTY_DATA;\n \n }", "public XmlSerializableTaskList() {\n task = new ArrayList<>();\n tags = new ArrayList<>();\n }", "@Override\r\n\tpublic void subTask(String name) {\n\t}", "org.apache.ant.common.model.Project parseXMLBuildFile(java.io.File xmlBuildFile) throws org.apache.ant.common.util.ExecutionException;", "public Task build() {\n return new Task(moduleName, taskId, taskName, taskDeadline, isComplete);\n }", "private void parseAnt(Iterator antIterator, List<Antfile> antfiles, EventCollector eventCollector)\n {\n try\n {\n Element antElement = (Element) antIterator.next();\n String antfile = buildFile.getName(); // default value if they don't specify an antfile, then THIS is the\n // antElement buildFile\n String antParent = buildFile.getParent();\n Attribute attribute = antElement.getAttribute(\"antfile\");\n\n if (attribute != null)\n {\n antfile = attribute.getValue();\n }\n\n String antdir = null;\n Attribute antDirAttribute = antElement.getAttribute(\"dir\");\n\n if (antDirAttribute != null)\n {\n antdir = antDirAttribute.getValue();\n }\n\n Antfile antcallfile;\n\n if (antdir == null)\n {\n antcallfile = new Antfile(new File(antParent, antfile), properties);\n }\n else\n {\n antcallfile = new Antfile(new File(antdir, antfile), properties);\n }\n\n antfiles.add(antcallfile);\n\n Attribute targetAttribute = antElement.getAttribute(\"target\");\n\n // todo what if this is null? Will use the default target of the ant file - must code\n Target defaultTarget = antcallfile.getDefaultTarget();\n\n if (defaultTarget != null)\n {\n String defaultTargetName = defaultTarget.getName();\n String calledTarget;\n\n if (targetAttribute == null)\n {\n calledTarget = defaultTargetName;\n }\n else\n {\n calledTarget = targetAttribute.getValue();\n }\n\n Ant ant = new Ant(calledTarget, antcallfile);\n\n ants.add(ant);\n }\n }\n catch (IOException e)\n {\n eventCollector.addEvent(new Event(\"Error pasring Ant file\", e));\n }\n catch (JDOMException e)\n {\n eventCollector.addEvent(new Event(\"Error pasring Ant file\", e));\n }\n }", "public interface TaskManager {\n\t/**\n\t * @return all the tasks that have to be executed\n\t */\n\tvoid getTasks();\n}", "Task(String name) {\n this.name = name;\n }", "public static boolean executeAntTask(String buildXmlFileFullPath, String target,Map<String,String> param,PrintStream logger) {\n boolean success = false;\n DefaultLogger consoleLogger = getConsoleLogger();\n\n // Prepare Ant project\n Project project = new Project();\n File buildFile = new File(buildXmlFileFullPath);\n project.setUserProperty(\"ant.file\", buildFile.getAbsolutePath());\n \n for (Map.Entry<String, String> entry : param.entrySet()) {\n \tproject.setNewProperty(entry.getKey(),entry.getValue());\n \t\n \t}\n \n project.addBuildListener(consoleLogger);\n\n // Capture event for Ant script build start / stop / failure\n try {\n \t\n project.fireBuildStarted();\n project.init();\n ProjectHelper projectHelper = ProjectHelper.getProjectHelper();\n project.addReference(\"ant.projectHelper\", projectHelper);\n projectHelper.parse(project, buildFile);\n \n // If no target specified then default target will be executed.\n String targetToExecute = (target != null && target.trim().length() > 0) ? target.trim() : project.getDefaultTarget();\n project.executeTarget(targetToExecute);\n project.fireBuildFinished(null);\n success = true;\n AppConstants.logger(logger,\"Ant execution completed \");\n } catch (BuildException buildException) {\n project.fireBuildFinished(buildException);\n throw new RuntimeException(\" while parsing ant file errors occured \", buildException);\n }\n \n return success;\n }", "public void addTask(String task, String... args) {\r\n\t\ttasks.add(new String[][]{new String[]{task}, args});\r\n\t}", "@TaskAction\n public void executeAction() {\n try {\n String xml = instantRunBuildContext.toXml();\n if (logger.isEnabled(LogLevel.DEBUG)) {\n logger.debug(\"build-id $1$l, build-info.xml : %2$s\",\n instantRunBuildContext.getBuildId(), xml);\n }\n Files.createParentDirs(buildInfoFile);\n Files.write(instantRunBuildContext.toXml(), buildInfoFile, Charsets.UTF_8);\n } catch (Exception e) {\n\n throw new RuntimeException(\n String.format(\"Exception while saving build-info.xml : %s\", e.getMessage()));\n }\n }", "public BuildEvent(Task task) {\n super(task);\n this.workspace = task.getProject().getWorkspace();\n this.project = task.getProject();\n this.target = task.getTarget();\n this.task = task;\n }", "public AntProjectHelper getAntProjectHelper();", "public void subTask(String name) {\n\r\n\t}", "public interface ITask extends PropertyChangeListener{\n\tvoid execute();\n\tvoid interrupt();\n\tboolean toBeRemoved();\n\n\t//Using update tick\n\tboolean updateTick();\n\n\t//Using time\n\t//long getWaittime();\n\t//long getEndtime();\n\n\n}", "public Builder addTaskId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTaskIdIsMutable();\n taskId_.add(value);\n onChanged();\n return this;\n }", "public TaskDefinition() {\n\t\tthis.started = Boolean.FALSE; // default\n\t\tthis.startTime = new Date(); // makes it easier during task creation\n\t\t// as we have a default date populated\n\t\tthis.properties = new HashMap<>();\n\t}", "public Task(String description, Boolean isCompleted, ArrayList<String> tags) {\n this.description = description;\n this.completionStatus = isCompleted;\n this.tags = tags;\n }", "public Task(String name) {\n\t\tthis.name=name;\n\t}", "public interface Task<T> {\r\n /**\r\n * run the task.\r\n *\r\n * @return T a generic type.\r\n */\r\n T run();\r\n}", "public interface TaskBase {\n\t/**\n\t * @return Returns the name of the task\n\t */\n\tpublic String GetName();\n\n\t/**\n\t * Called upon entering autonomous mode\n\t */\n\tpublic void Initialize();\n\n\t/**\n\t * Called every autonomous update\n\t * \n\t * @return Return task result enum\n\t */\n\tpublic TaskReturnType Run();\n\n}", "public interface TaskAction {\n\n /**\n * This method will define an asynchronous action to take.\n * The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and\n * prevent them from seeing or modifying the task hierarchy that triggers and manages them.\n */\n public void action (ProgressListener progressListener) throws Exception;\n\n}", "void addTask(Task task);", "Task createTask();", "Task createTask();", "Task createTask();", "public SchematicBuildTask(Schematic schematic, Location location) {\n super(schematicToTaskList(schematic, location));\n }", "public Executable(String taskType) {\n this.taskType = taskType;\n// nodeNameToPortName = new HashMap<String, String>();\n// inputPortToFileMap = new HashMap<InputPort, File>();\n// outputPortToFileMap = new HashMap<OutputPort, File>();\n\n executableNodes = new ArrayList<ExecutableNode>();\n }", "TaskNode getNode(Task task);", "private Tasks createKeywordTask(Tasks task, String descriptionOfTask, ArrayList<String> timeArray) {\n timeArray.set(0, timeArray.get(0).toLowerCase());\n ArrayList<String> formattedTimeArray = new ArrayList<String>();\n createFormattedTimeArray(timeArray, formattedTimeArray);\n assert(formattedTimeArray.size() < 5);\n if (formattedTimeArray.size() == 2) { //deadline task\n createFormattedTimeArray(timeArray, formattedTimeArray);\n task = createDeadlineTask(task, descriptionOfTask, formattedTimeArray);\n } else if (formattedTimeArray.size() == 4) { //duration task\n createFormattedTimeArray(timeArray, formattedTimeArray);\n task = createDurationTask(task, descriptionOfTask, formattedTimeArray);\n }\n return task;\n }", "@Override\n public Class<? extends Task> taskClass() {\n return AmpoolSourceTask.class;\n }", "public MemberTask(TaskName taskName, Project project, Progress progress) {\n super(taskName, null, project, progress );\n }", "@Test\n\tpublic void addTaskOutput(){\n\t}", "public interface DeviceBasedTask {\n\n\tpublic Device getDevice();\n\n\tpublic void setDevice(Device device);\n}", "public Builder setTasks(List<ComparableIdentifier> tasks) {\n this.tasks = tasks;\n return this;\n }", "@Override\n\tpublic void migrateTask(ITask task, Element element) {\n\n\t}", "private static Task[] createTaskList() {\n\t\t\n\t Task evalTask = new EvaluationTask();\n\t Task tamperTask = new TamperTask();\n\t Task newDocTask = new NewDocumentTask();\n\t Task reportTask = new AssignmentReportTask();\n\n\t Task[] taskList = {evalTask, tamperTask, newDocTask, reportTask};\n\n\t return taskList;\n\t}", "public interface JsonTask extends Task {\n}", "public Builder setTaskId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n taskId_ = value;\n onChanged();\n return this;\n }", "String addTask(Task task);", "public void add(Task task){ this.tasks.add(task);}", "private BuildTargets() {}", "@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}", "public void subTask(String tr) {\n\t\t\n\t}", "public void parseForTaskdefUsage(List<Taskdef> taskdefs)\n {\n for (Iterator targetElements = rootElement.getDescendants(new ElementFilter(\"target\")); targetElements.hasNext();)\n {\n Element targetElement = (Element) targetElements.next();\n Target target = getMatchingTarget(targetElement);\n\n for (Taskdef taskdef : taskdefs)\n {\n Iterator taskdefElements = targetElement.getDescendants(new ElementFilter(taskdef.getName()));\n\n if (taskdefElements.hasNext()) // we found one!\n {\n target.addDependency(taskdef);\n }\n }\n }\n }", "private ExecTask getExecTask(String taskName, String cmd, File outDir) {\r\n ExecTask task = new ExecTask();\r\n task.bindToOwner(this);\r\n task.setDir(outDir);\r\n task.setExecutable(cmd);\r\n return task;\r\n }", "public Task(String task, boolean isDone) {\n this.task = task;\n this.isDone = isDone;\n }", "int createSubtask(int parentId);", "@Override\n public String getTaskType() {\n return \"T\";\n }", "public ToDoTask(String description, int id) {\n super(description, id);\n }", "public void add(final Task task) {\n }", "public void addConfiguredTarget(TargetElement t) {\n if (targetAttributeSet) {\n throw new BuildException(\n \"nested target is incompatible with the target attribute\");\n }\n String name = t.getName();\n if (name.equals(\"\")) {\n throw new BuildException(\"target name must not be empty\");\n }\n targets.add(name);\n }", "public Task(String creator) {\r\n \t\tthis(creator, \"Untitled\", \"\", true, false);\r\n \t}", "public static void invokeAnt(String filePath,Map<String,String> param,PrintStream logger) {\n\t\n\t\t// Running default target of ant script\n\t\texecuteAntTask(filePath,param,logger);\n\t}", "public static void main(String[] args) {\n String dataDir = Utils.getDataDir(ConfigureGanttChartView.class);\n\n Project project = new Project(dataDir + \"project.mpp\");\n\n // Create a new project task\n Task task = project.getRootTask().getChildren().add(\"New Activity\");\n\n // Define new custom attribute\n ExtendedAttributeDefinition text1Definition = ExtendedAttributeDefinition.createTaskDefinition(ExtendedAttributeTask.Text1, null);\n project.getExtendedAttributes().add(text1Definition);\n // Add custom text attribute to created task.\n task.getExtendedAttributes().add(text1Definition.createExtendedAttribute(\"Activity attribute\"));\n\n // Customize table by adding text attribute field\n TableField attrField = new TableField();\n attrField.setField(Field.TaskText1);\n attrField.setWidth(20);\n attrField.setTitle(\"Custom attribute\");\n attrField.setAlignTitle(StringAlignment.Center);\n attrField.setAlignData(StringAlignment.Center);\n\n Table table = project.getTables().toList().get(0);\n table.getTableFields().add(3, attrField);\n\n // The result of opening of saved project in MSP2010 is in attached screenshot\n project.save(\"saved.mpp\", SaveFileFormat.Mpp);\n }", "public interface Task {\n void execute() ;\n}", "public abstract AbstractTask createTask(String repositoryUrl, String id, String summary);", "public Task(){}", "private static Task convertITaskToTask(ITask iTask) {\r\n Task task = new Task();\r\n task.setId(iTask.getId());\r\n task.setCaseId(iTask.getCase().getId());\r\n task.setDescription(iTask.getDescription());\r\n task.setCaseDescription(iTask.getCase().getDescription());\r\n task.setCreatedOn(iTask.getStartTimestamp());\r\n task.setState(iTask.getState().toString());\r\n task.setActivator(iTask.getActivator());\r\n task.setIvyTask(iTask);\r\n return task;\r\n }", "public void add(Task task)\n {\n this.tasks.add(task);\n }", "public Task(){\n super();\n }", "public Task(Task source) {\n if (source.Application != null) {\n this.Application = new Application(source.Application);\n }\n if (source.TaskName != null) {\n this.TaskName = new String(source.TaskName);\n }\n if (source.TaskInstanceNum != null) {\n this.TaskInstanceNum = new Long(source.TaskInstanceNum);\n }\n if (source.ComputeEnv != null) {\n this.ComputeEnv = new AnonymousComputeEnv(source.ComputeEnv);\n }\n if (source.EnvId != null) {\n this.EnvId = new String(source.EnvId);\n }\n if (source.RedirectInfo != null) {\n this.RedirectInfo = new RedirectInfo(source.RedirectInfo);\n }\n if (source.RedirectLocalInfo != null) {\n this.RedirectLocalInfo = new RedirectLocalInfo(source.RedirectLocalInfo);\n }\n if (source.InputMappings != null) {\n this.InputMappings = new InputMapping[source.InputMappings.length];\n for (int i = 0; i < source.InputMappings.length; i++) {\n this.InputMappings[i] = new InputMapping(source.InputMappings[i]);\n }\n }\n if (source.OutputMappings != null) {\n this.OutputMappings = new OutputMapping[source.OutputMappings.length];\n for (int i = 0; i < source.OutputMappings.length; i++) {\n this.OutputMappings[i] = new OutputMapping(source.OutputMappings[i]);\n }\n }\n if (source.OutputMappingConfigs != null) {\n this.OutputMappingConfigs = new OutputMappingConfig[source.OutputMappingConfigs.length];\n for (int i = 0; i < source.OutputMappingConfigs.length; i++) {\n this.OutputMappingConfigs[i] = new OutputMappingConfig(source.OutputMappingConfigs[i]);\n }\n }\n if (source.EnvVars != null) {\n this.EnvVars = new EnvVar[source.EnvVars.length];\n for (int i = 0; i < source.EnvVars.length; i++) {\n this.EnvVars[i] = new EnvVar(source.EnvVars[i]);\n }\n }\n if (source.Authentications != null) {\n this.Authentications = new Authentication[source.Authentications.length];\n for (int i = 0; i < source.Authentications.length; i++) {\n this.Authentications[i] = new Authentication(source.Authentications[i]);\n }\n }\n if (source.FailedAction != null) {\n this.FailedAction = new String(source.FailedAction);\n }\n if (source.MaxRetryCount != null) {\n this.MaxRetryCount = new Long(source.MaxRetryCount);\n }\n if (source.Timeout != null) {\n this.Timeout = new Long(source.Timeout);\n }\n if (source.MaxConcurrentNum != null) {\n this.MaxConcurrentNum = new Long(source.MaxConcurrentNum);\n }\n if (source.RestartComputeNode != null) {\n this.RestartComputeNode = new Boolean(source.RestartComputeNode);\n }\n if (source.ResourceMaxRetryCount != null) {\n this.ResourceMaxRetryCount = new Long(source.ResourceMaxRetryCount);\n }\n }", "@Deprecated\n//Will be moved to internal scope\npublic interface TaskView {\n /**\n * Specifies the display value of this task plugin. This value is used in the job UI's task dropdown\n * as well as in the title of the task definition dialog box.\n *\n * @return display value for the task plugin\n */\n String displayValue();\n\n /**\n * The template for the task configuration, written using Angular.js templating language.\n *\n * @return Angular.js template for the task configuration\n */\n String template();\n}", "public Task(String taskDescription) {\n this.taskDescription = taskDescription;\n this.isDone = false;\n this.completed = \"0\";\n }", "TargetTemplate(String antName, String bundleKey, boolean mandatory, String artifactIncludes, String artifactExcludes,\n String javadocDir, boolean checkForTests, String testResults, String properties) {\n this.antName = antName;\n this.bundleKey = bundleKey;\n assert !mandatory || !checkForTests;\n this.mandatory = mandatory;\n this.artifactIncludes = artifactIncludes;\n this.artifactExcludes = artifactExcludes;\n this.javadocDir = javadocDir;\n this.checkForTests = checkForTests;\n this.testResults = testResults;\n this.properties = properties;\n }", "@Override\n public ExecutionPlan build(Config cfg, DataFlowTaskGraph taskGraph,\n TaskSchedulePlan taskSchedule) {\n TaskPlan taskPlan =\n TaskPlanBuilder.build(workerId, workerInfoList, taskSchedule, taskIdGenerator);\n ParallelOperationFactory opFactory = new ParallelOperationFactory(\n cfg, network, taskPlan, edgeGenerator);\n\n Map<Integer, ContainerPlan> containersMap = taskSchedule.getContainersMap();\n ContainerPlan conPlan = containersMap.get(workerId);\n if (conPlan == null) {\n LOG.log(Level.INFO, \"Cannot find worker in the task plan: \" + workerId);\n return null;\n }\n\n ExecutionPlan execution = new ExecutionPlan();\n\n Set<TaskInstancePlan> instancePlan = conPlan.getTaskInstances();\n // for each task we are going to create the communications\n for (TaskInstancePlan ip : instancePlan) {\n Vertex v = taskGraph.vertex(ip.getTaskName());\n Map<String, String> inEdges = new HashMap<>();\n Map<String, String> outEdges = new HashMap<>();\n if (v == null) {\n throw new RuntimeException(\"Non-existing task scheduled: \" + ip.getTaskName());\n }\n\n INode node = v.getTask();\n if (node instanceof ICompute || node instanceof ISource) {\n // lets get the communication\n Set<Edge> edges = taskGraph.outEdges(v);\n // now lets create the communication object\n for (Edge e : edges) {\n Vertex child = taskGraph.childOfTask(v, e.getName());\n // lets figure out the parents task id\n Set<Integer> srcTasks = taskIdGenerator.getTaskIds(v.getName(),\n ip.getTaskId(), taskGraph);\n Set<Integer> tarTasks = taskIdGenerator.getTaskIds(child.getName(),\n getTaskIdOfTask(child.getName(), taskSchedule), taskGraph);\n\n if (!parOpTable.contains(v.getName(), e.getName())) {\n parOpTable.put(v.getName(), e.getName(),\n new Communication(e, v.getName(), child.getName(), srcTasks, tarTasks));\n }\n outEdges.put(e.getName(), child.getName());\n }\n }\n\n if (node instanceof ICompute || node instanceof ISink) {\n // lets get the parent tasks\n Set<Edge> parentEdges = taskGraph.inEdges(v);\n for (Edge e : parentEdges) {\n Vertex parent = taskGraph.getParentOfTask(v, e.getName());\n // lets figure out the parents task id\n Set<Integer> srcTasks = taskIdGenerator.getTaskIds(parent.getName(),\n getTaskIdOfTask(parent.getName(), taskSchedule), taskGraph);\n Set<Integer> tarTasks = taskIdGenerator.getTaskIds(v.getName(),\n ip.getTaskId(), taskGraph);\n\n if (!parOpTable.contains(parent.getName(), e.getName())) {\n parOpTable.put(parent.getName(), e.getName(),\n new Communication(e, parent.getName(), v.getName(), srcTasks, tarTasks));\n }\n inEdges.put(e.getName(), parent.getName());\n }\n }\n\n // lets create the instance\n INodeInstance iNodeInstance = createInstances(cfg, ip, v, taskGraph.getOperationMode(),\n inEdges, outEdges, taskSchedule);\n // add to execution\n execution.addNodes(v.getName(), taskIdGenerator.generateGlobalTaskId(\n v.getName(), ip.getTaskId(), ip.getTaskIndex()), iNodeInstance);\n }\n\n // now lets create the queues and start the execution\n for (Table.Cell<String, String, Communication> cell : parOpTable.cellSet()) {\n Communication c = cell.getValue();\n\n // lets create the communication\n OperationMode operationMode = taskGraph.getOperationMode();\n IParallelOperation op = opFactory.build(c.getEdge(), c.getSourceTasks(), c.getTargetTasks(),\n operationMode);\n // now lets check the sources and targets that are in this executor\n Set<Integer> sourcesOfThisWorker = intersectionOfTasks(conPlan, c.getSourceTasks());\n Set<Integer> targetsOfThisWorker = intersectionOfTasks(conPlan, c.getTargetTasks());\n\n // set the parallel operation to the instance\n //let's separate the execution instance generation based on the Operation Mode\n if (operationMode == OperationMode.STREAMING) {\n for (Integer i : sourcesOfThisWorker) {\n if (streamingTaskInstances.contains(c.getSourceTask(), i)) {\n TaskStreamingInstance taskStreamingInstance\n = streamingTaskInstances.get(c.getSourceTask(), i);\n taskStreamingInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else if (streamingSourceInstances.contains(c.getSourceTask(), i)) {\n SourceStreamingInstance sourceStreamingInstance\n = streamingSourceInstances.get(c.getSourceTask(), i);\n sourceStreamingInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else {\n throw new RuntimeException(\"Not found: \" + c.getSourceTask());\n }\n }\n\n for (Integer i : targetsOfThisWorker) {\n if (streamingTaskInstances.contains(c.getTargetTask(), i)) {\n TaskStreamingInstance taskStreamingInstance\n = streamingTaskInstances.get(c.getTargetTask(), i);\n op.register(i, taskStreamingInstance.getInQueue());\n taskStreamingInstance.registerInParallelOperation(c.getEdge().getName(), op);\n } else if (streamingSinkInstances.contains(c.getTargetTask(), i)) {\n SinkStreamingInstance streamingSinkInstance\n = streamingSinkInstances.get(c.getTargetTask(), i);\n streamingSinkInstance.registerInParallelOperation(c.getEdge().getName(), op);\n op.register(i, streamingSinkInstance.getstreamingInQueue());\n } else {\n throw new RuntimeException(\"Not found: \" + c.getTargetTask());\n }\n }\n execution.addOps(op);\n }\n\n if (operationMode == OperationMode.BATCH) {\n for (Integer i : sourcesOfThisWorker) {\n if (batchTaskInstances.contains(c.getSourceTask(), i)) {\n TaskBatchInstance taskBatchInstance = batchTaskInstances.get(c.getSourceTask(), i);\n taskBatchInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else if (batchSourceInstances.contains(c.getSourceTask(), i)) {\n SourceBatchInstance sourceBatchInstance\n = batchSourceInstances.get(c.getSourceTask(), i);\n sourceBatchInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else {\n throw new RuntimeException(\"Not found: \" + c.getSourceTask());\n }\n }\n\n for (Integer i : targetsOfThisWorker) {\n if (batchTaskInstances.contains(c.getTargetTask(), i)) {\n TaskBatchInstance taskBatchInstance = batchTaskInstances.get(c.getTargetTask(), i);\n op.register(i, taskBatchInstance.getInQueue());\n taskBatchInstance.registerInParallelOperation(c.getEdge().getName(), op);\n } else if (batchSinkInstances.contains(c.getTargetTask(), i)) {\n SinkBatchInstance sinkBatchInstance = batchSinkInstances.get(c.getTargetTask(), i);\n sinkBatchInstance.registerInParallelOperation(c.getEdge().getName(), op);\n op.register(i, sinkBatchInstance.getBatchInQueue());\n } else {\n throw new RuntimeException(\"Not found: \" + c.getTargetTask());\n }\n }\n execution.addOps(op);\n }\n }\n return execution;\n }", "public void setTaskName(String name) {\n\r\n\t}", "public Task() {\n\t}" ]
[ "0.6424204", "0.62016", "0.6193063", "0.6063075", "0.58771133", "0.5850593", "0.58283174", "0.57011706", "0.5613786", "0.5607395", "0.5607395", "0.5605378", "0.55864114", "0.5562381", "0.55518514", "0.55497026", "0.5522495", "0.5514564", "0.55141014", "0.5479941", "0.5443491", "0.5417496", "0.54088175", "0.538752", "0.5376958", "0.5333217", "0.5332406", "0.5318125", "0.53130597", "0.53080046", "0.5301614", "0.52702326", "0.52481484", "0.52424395", "0.5231999", "0.5226092", "0.52012616", "0.519278", "0.5191914", "0.51873744", "0.517964", "0.51771367", "0.5175537", "0.51748747", "0.5172071", "0.5158964", "0.51447725", "0.5138858", "0.5128774", "0.51222956", "0.5122243", "0.511533", "0.5112986", "0.51075196", "0.50855154", "0.507967", "0.5059156", "0.5059156", "0.5059156", "0.5050928", "0.5045956", "0.5044696", "0.50440764", "0.5042662", "0.50335157", "0.5018032", "0.5010432", "0.5009558", "0.50014234", "0.5001267", "0.49937114", "0.49856266", "0.49845147", "0.49779114", "0.49592936", "0.4958135", "0.49574155", "0.49566358", "0.4948754", "0.49476832", "0.4945656", "0.49449736", "0.4942363", "0.49382353", "0.49280882", "0.49110025", "0.48973936", "0.48897842", "0.48880816", "0.4880545", "0.48702344", "0.4868638", "0.48663336", "0.48631456", "0.48622385", "0.48604813", "0.48561263", "0.48539552", "0.48537952", "0.4851186", "0.4850897" ]
0.0
-1
do nothing and blindly accept the certificate
@Override public void checkClientTrusted( final java.security.cert.X509Certificate[] arg0, final String arg1) throws CertificateException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void handleSSLCertificate() throws Exception {\n\t\tTrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void checkClientTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\n\t\t\tpublic void checkServerTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\t\t} };\n\n\t\t// Install the all-trusting trust manager\n\t\tSSLContext sc = SSLContext.getInstance(\"SSL\");\n\t\t// Create empty HostnameVerifier\n\t\tHostnameVerifier hv = new HostnameVerifier() {\n\t\t\tpublic boolean verify(String arg0, SSLSession arg1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\n\t\tsc.init(null, trustAllCerts, new java.security.SecureRandom());\n\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\tHttpsURLConnection.setDefaultHostnameVerifier(hv);\n\t}", "@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "public static void allowAllCertificates() {\n try {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n X509Certificate[] myTrustedAnchors = new X509Certificate[0];\n return myTrustedAnchors;\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] certs,\n String authType) {}\n\n @Override\n public void checkServerTrusted(X509Certificate[] certs,\n String authType) {}\n } };\n\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new SecureRandom());\n HttpsURLConnection\n .setDefaultSSLSocketFactory(sc.getSocketFactory());\n HttpsURLConnection\n .setDefaultHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String arg0, SSLSession arg1) {\n return true;\n }\n });\n } catch (Exception e) {}\n }", "public void verifyServerCertificates(boolean yesno);", "@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "@Override\r\n\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "@Override\n public void checkServerTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "private static synchronized void satisfyTrustAllCerts() {\n\t\tif (trustAllCerts == null) {\n\t\t\ttrustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\t\treturn new X509Certificate[0];\n\t\t\t\t}\n\n\t\t\t\tpublic void checkClientTrusted(X509Certificate[] certs, String authType) {\n\t\t\t\t}\n\n\t\t\t\tpublic void checkServerTrusted(X509Certificate[] certs, String authType) {\n\t\t\t\t}\n\t\t\t} };\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\t\n\t\t\t\t}", "public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "@Override\n\t\t\t\tpublic void checkServerTrusted(java.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\n\t\t\t\t}", "public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "public void checkServerTrusted(X509Certificate[] arg0, String arg1)\n throws CertificateException\n {\n }", "private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}", "public void checkClientTrusted(X509Certificate[] arg0, String arg1)\n throws CertificateException\n {\n }", "public abstract void\n verifyOriginalPacket_(CertificateV2 trustedCertificate);", "boolean hasCertificate();", "public CertAuthHost requireCertVerification(Predicate<Communique> filter)\n\t\t{\n\t\t\tthis.certFilter = this.certFilter.and(filter);\n\t\t\treturn this;\n\t\t}", "private static void addUnsafeTrust(OkHttpClient.Builder builder) {\n final TrustManager[] trustAllCerts = new TrustManager[]{\n new X509TrustManager() {\n @Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {\n }\n\n @Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {\n }\n\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n }\n };\n\n // Install the all-trusting trust manager\n SSLContext sslContext = null;\n try {\n sslContext = SSLContext.getInstance(\"SSL\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n try {\n sslContext.init(null, trustAllCerts, new java.security.SecureRandom());\n } catch (KeyManagementException e) {\n e.printStackTrace();\n }\n\n // Create an ssl socket factory with our all-trusting manager\n final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n builder.sslSocketFactory(sslSocketFactory, (X509TrustManager) trustAllCerts[0]);\n builder.hostnameVerifier((hostname, session) -> true);\n }", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "private static void setAllowAllSSL(HttpsURLConnection httpsConn,\n KeyManager km) throws KeyManagementException, NoSuchAlgorithmException {\n TrustManager[] trustAllCerts = new TrustManager[] {\n new X509TrustManager() {\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n\n @Override\n public void checkClientTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n }\n }\n };\n KeyManager[] kms = (km == null) ? null : new KeyManager[]{km};\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(kms, trustAllCerts, new SecureRandom());\n httpsConn.setSSLSocketFactory(sc.getSocketFactory());\n // Don't check the hostname\n httpsConn.setHostnameVerifier(new NoopHostnameVerifier());\n }", "@Override\n public void validCertificateAvailable() {\n dismissDialog();\n if(android.os.Build.VERSION.SDK_INT < 14) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n } else if(android.os.Build.VERSION.SDK_INT >= 14 && android.os.Build.VERSION.SDK_INT <= 18) {\n boolean isNative = PreferenceManager.getBoolean(ServiceListingActivity.this, Keys.PreferenceKeys.DEVICE_TYPE);\n if(isNative) {\n boolean isAddedToNativeKeyStore = KeyTalkCommunicationManager.getNativeKeyStoreInstallationStatus(ServiceListingActivity.this, KeyTalkCommunicationManager.getUrl());\n if(isAddedToNativeKeyStore) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse( KeyTalkCommunicationManager.getUrl()));\n startActivity(browserIntent);\n }\n } else {\n showDialog(AppConstants.DIALOG_REINSTALL_CERTIFICATE);\n }\n } else {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n }\n } else {\n boolean isAddedToNativeKeyStore = KeyTalkCommunicationManager.getNativeKeyStoreInstallationStatus(ServiceListingActivity.this, KeyTalkCommunicationManager.getUrl());\n if(isAddedToNativeKeyStore) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(KeyTalkCommunicationManager.getUrl()));\n startActivity(browserIntent);\n }\n } else {\n showDialog(AppConstants.DIALOG_REINSTALL_CERTIFICATE);\n }\n }\n }", "@Override\n \t\t\tpublic void checkServerTrusted(X509Certificate[] chain,\n \t\t\t\t\tString authType) throws CertificateException {\n \t\t\t\t\n \t\t\t}", "public static void installHostNameVerifierNotValidatingSSLHostname()\n {\n HostnameVerifier hv = new HostnameVerifier()\n {\n @Override\n public boolean verify(String urlHostName, SSLSession session)\n {\n return true;\n }\n };\n HttpsURLConnection.setDefaultHostnameVerifier(hv);\n }", "@Override\n\t\t\t\tpublic void checkClientTrusted(java.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\n\t\t\t\t}", "@Test\n public void testTrustPolicyDocumentWithSigNoNs() throws IOException, CertificateException, ParserConfigurationException, SAXException, MarshalException, XMLSignatureException {\n isValid(\"/documents/5/trustpolicy_1_signed.xml\",\"/documents/5/certificate.pem\");\n isValid(\"/documents/5/trustpolicy_4_edited.xml\",\"/documents/5/certificate.pem\");\n isValid(\"/documents/5/trustpolicy_5_edited.xml\",\"/documents/5/certificate.pem\");\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "private void setTrustedCertificates() {\n TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(X509Certificate[] certs, String authType) {\n }\n }};\n // Install the all-trusting trust manager\n final SSLContext sc;\n try {\n sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n e.printStackTrace();\n return;\n }\n\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n // Create all-trusting host name verifier\n HostnameVerifier allHostsValid = new HostnameVerifier() {\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n };\n\n // Install the all-trusting host verifier\n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);\n }", "@Override\r\n\tpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n\t\t\r\n\t}", "private void warnAfterCertificateError(final Context context, final Exception e, final ThreePid pid, final ThreePidRequestListener listener) {\n UnrecognizedCertificateException unrecCertEx = CertUtil.getCertificateException(e);\n if (unrecCertEx != null) {\n final Fingerprint fingerprint = unrecCertEx.getFingerprint();\n\n UnrecognizedCertHandler.show(mHsConfig, fingerprint, false, new UnrecognizedCertHandler.Callback() {\n @Override\n public void onAccept() {\n requestValidationToken(context, pid, listener);\n }\n\n @Override\n public void onIgnore() {\n listener.onThreePidRequested(pid);\n }\n\n @Override\n public void onReject() {\n listener.onThreePidRequested(pid);\n }\n });\n } else {\n listener.onThreePidRequested(pid);\n }\n }", "@Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }", "@Test\n public void testTrustPolicyDocumentWithSigNs() throws IOException, CertificateException, ParserConfigurationException, SAXException, MarshalException, XMLSignatureException {\n }", "@Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }", "@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}", "public void trustAllHosts() {\n final String TAG = \"trustAllHosts\";\n // Create a trust manager that does not validate certificate chains\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[] {};\n }\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n// Log.i(TAG, \"checkClientTrusted\");\n }\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n// Log.i(TAG, \"checkServerTrusted\");\n }\n } };\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public CompletionStage<Result> verify()\n {\n IRequestValidator requestValidator=new CertVerifyRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VERIFY);\n }", "@Override\n \t\t\tpublic void checkClientTrusted(X509Certificate[] chain,\n \t\t\t\t\tString authType) throws CertificateException {\n \t\t\t\t\n \t\t\t}", "private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "void applySecurityPolicy(HttpsURLConnection connection);", "private static void trustAllHosts() {\n TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n\n public void checkClientTrusted(X509Certificate[] chain, String authType) {\n }\n\n public void checkServerTrusted(X509Certificate[] chain, String authType) {\n }\n }};\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\t\t\tpublic void checkServerTrusted(X509Certificate[] chain, String authType)\r\n\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n InputStream inStream = null;\n try {\n // Loading the CA cert\n URL u = getClass().getResource(\"dstca.cer\");\n inStream = new FileInputStream(u.getFile());\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate ca = (X509Certificate) cf.generateCertificate(inStream);\n inStream.close();\n //if(certs[0].getSignature().equals(ca.getSignature()))\n for (int i = 0; i < certs.length ; i++) {\n X509Certificate cert = certs[i];\n // Verifing by public key\n try{\n cert.verify(certs[i+1].getPublicKey());\n }catch (Exception e) {\n cert.verify(ca.getPublicKey());\n }\n }\n } catch (Exception ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n throw new CertificateException(ex);\n } finally {\n try {\n inStream.close();\n } catch (IOException ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n }\n }\n\n }", "@Override\r\n\tpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n\t\t\r\n\t}", "public CompletionStage<Result> validate()\n {\n IRequestValidator requestValidator=new CertValidateRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VALIDATE);\n }", "@Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }", "public ERTrustManager(boolean allowUntrustedCert) throws ERMgmtException{\n //loads the default certificates into the trustManager; \n loadDefaults();\n mAllowUntrusted = allowUntrustedCert;\n //add the DataPower Certificates\n addCert(DATAPOWER_CA_CERT_PEM_9005);\n addCert(DATAPOWER_CA_CERT_PEM_9004);\n \n }", "private static void trustAllHosts() {\n\t\tTrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\tpublic java.security.cert.X509Certificate[] getAcceptedIssuers() {\n\t\t\t\treturn new java.security.cert.X509Certificate[] {};\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\n\t\t\t\t\tString authType)\n\t\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\n\t\t\t\t\tString authType)\n\t\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t} };\n\n\t\t// Install the all-trusting trust manager\n\t\ttry {\n\t\t\tSSLContext sc = SSLContext.getInstance(\"TLS\");\n\t\t\tsc.init(null, trustAllCerts, new java.security.SecureRandom());\n\t\t\tHttpsURLConnection\n\t\t\t.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n\t\t\t }", "@Override\n\t\t\t\tpublic boolean verify(String urlHostName, SSLSession session) {\n\t\t\t\t\treturn true;\n\t\t\t\t}", "public void ShowSSLDialog(java.lang.String r23, byte[] r24, android.net.http.SslCertificate r25, boolean r26) {\n /*\n r22 = this;\n r3 = com.adobe.air.AndroidActivityWrapper.GetAndroidActivityWrapper();\n r10 = r3.getActivity();\n if (r10 != 0) goto L_0x000e;\n L_0x000a:\n r10 = r3.WaitForNewActivity();\n L_0x000e:\n r7 = new com.adobe.air.AndroidAlertDialog;\n r7.<init>(r10);\n r16 = r7.GetAlertDialogBuilder();\n r9 = r10.getLayoutInflater();\n r14 = r10.getResources();\n r19 = \"ssl_certificate_warning\";\n r0 = r19;\n r17 = com.adobe.air.utils.Utils.GetLayoutView(r0, r14, r9);\n if (r17 == 0) goto L_0x0178;\n L_0x0029:\n r18 = r17.getResources();\n r19 = \"ServerName\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r15 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r15 = (android.widget.TextView) r15;\n r19 = new java.lang.StringBuilder;\n r19.<init>();\n r20 = r15.getText();\n r19 = r19.append(r20);\n r20 = \" \";\n r19 = r19.append(r20);\n r0 = r19;\n r1 = r23;\n r19 = r0.append(r1);\n r19 = r19.toString();\n r0 = r19;\n r15.setText(r0);\n r5 = 0;\n if (r24 == 0) goto L_0x0179;\n L_0x0062:\n r5 = new com.adobe.air.Certificate;\n r5.<init>();\n r0 = r24;\n r5.setCertificate(r0);\n L_0x006c:\n r19 = \"IDA_CERTIFICATE_DETAILS\";\n r0 = r19;\n r6 = com.adobe.air.utils.Utils.GetResourceString(r0, r14);\n r19 = 8;\n r0 = r19;\n r0 = new java.lang.Object[r0];\n r19 = r0;\n r20 = 0;\n r21 = r5.getIssuedToCommonName();\n r19[r20] = r21;\n r20 = 1;\n r21 = r5.getIssuedToOrganization();\n r19[r20] = r21;\n r20 = 2;\n r21 = r5.getIssuedToOrganizationalUnit();\n r19[r20] = r21;\n r20 = 3;\n r21 = r5.getIssuedByCommonName();\n r19[r20] = r21;\n r20 = 4;\n r21 = r5.getIssuedByOrganization();\n r19[r20] = r21;\n r20 = 5;\n r21 = r5.getIssuedByOrganizationalUnit();\n r19[r20] = r21;\n r20 = 6;\n r21 = r5.getIssuedOn();\n r19[r20] = r21;\n r20 = 7;\n r21 = r5.getExpiresOn();\n r19[r20] = r21;\n r0 = r19;\n r8 = java.lang.String.format(r6, r0);\n r19 = \"CertificateDetails\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r4 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r4 = (android.widget.TextView) r4;\n r19 = android.widget.TextView.BufferType.SPANNABLE;\n r0 = r19;\n r4.setText(r8, r0);\n r19 = \"NeutralButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r12 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r12 = (android.widget.Button) r12;\n r19 = new com.adobe.air.SSLSecurityDialog$1;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r12.setOnClickListener(r0);\n r19 = \"PositiveButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r13 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r13 = (android.widget.Button) r13;\n if (r26 == 0) goto L_0x0182;\n L_0x0103:\n r19 = new com.adobe.air.SSLSecurityDialog$2;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r13.setOnClickListener(r0);\n r19 = 0;\n r0 = r19;\n r13.setVisibility(r0);\n L_0x0118:\n r19 = \"NegativeButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r11 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r11 = (android.widget.Button) r11;\n r19 = new com.adobe.air.SSLSecurityDialog$3;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r11.setOnClickListener(r0);\n r16.setView(r17);\n r19 = new com.adobe.air.SSLSecurityDialog$4;\n r0 = r19;\n r1 = r22;\n r0.<init>();\n r0 = r16;\n r1 = r19;\n r0.setOnKeyListener(r1);\n r19 = new com.adobe.air.SSLSecurityDialog$5;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r10.runOnUiThread(r0);\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.lock();\n r0 = r22;\n r0 = r0.m_useraction;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n if (r19 != 0) goto L_0x016f;\n L_0x0166:\n r0 = r22;\n r0 = r0.m_condition;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n r19.await();\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n L_0x016f:\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n L_0x0178:\n return;\n L_0x0179:\n r5 = new com.adobe.air.Certificate;\n r0 = r25;\n r5.<init>(r0);\n goto L_0x006c;\n L_0x0182:\n r19 = 8;\n r0 = r19;\n r13.setVisibility(r0);\n goto L_0x0118;\n L_0x018a:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n goto L_0x0178;\n L_0x0195:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r20 = r0;\n r20.unlock();\n throw r19;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.air.SSLSecurityDialog.ShowSSLDialog(java.lang.String, byte[], android.net.http.SslCertificate, boolean):void\");\n }", "@Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }", "@Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "@Override\r\n\t\t\t\tpublic void checkServerTrusted(\r\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\r\n\t\t\t\t\t\tString authType) throws CertificateException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void checkServerTrusted(\r\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\r\n\t\t\t\t\t\tString authType) throws CertificateException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void checkClientTrusted(X509Certificate[] chain, String authType)\r\n\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n\n\t\t\t\t}", "public void beforeHookedMethod(MethodHookParam param) throws Throwable {\n param.args[0] = SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;\n }", "public ValidationResult validate(CertPath certPath);", "@Override\nprotected Void doInBackground(Void... params){\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n } };\n\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // Your code ...\n URL url = null;\n HttpsURLConnection conn = null;\n try {\n url = new URL(\"https://example.com\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n // ...\n}", "@Override\n public void onSSLCertificateError(UnrecognizedCertificateException exception) {\n if (null != mRequestNetworkErrorListener) {\n mRequestNetworkErrorListener.onSSLCertificateError(exception);\n }\n }", "@Override\n\t\t\t\t\t\tpublic boolean verify(String hostname,\n\t\t\t\t\t\t\t\tSSLSession session) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}", "public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n\t\t\t }", "public void checkClientTrusted(X509Certificate[] certs, String authType) {}", "public void checkClientTrusted(X509Certificate[] certs, String authType) {}", "public void checkClientTrusted(X509Certificate[] certs, String authType) {}", "public void checkClientTrusted(X509Certificate[] certs, String authType) {}", "@Override\n \t public void checkServerTrusted(\n \t X509Certificate[] chain,\n \t String authType) throws CertificateException {\n \t }", "@Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void checkClientTrusted(X509Certificate[] chain,\r\n\t\t\t\t\t\t\t\t\tString authType) throws CertificateException {\r\n\t\t\t\t\t\t\t}", "@Override\n\tpublic void checkServerTrusted(X509Certificate[] chain, String authType)\n\t\t\tthrows CertificateException {\n\t\t\n\t}", "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "public void testVerifyCertificateDummy() throws Exception\n\t{\n\t\tm_random.setSeed(38959105);\n\t\ttestVerifyCertificate(new DummyTestKeyPairGenerator(m_random));\n\t}", "@Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType)\n throws java.security.cert.CertificateException {\n }", "void onIssuerWithoutDefaultInstallment();", "@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}", "public void checkValidity() throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.checkValidity():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.checkValidity():void\");\n }", "public jpuppeteer.util.XFuture<?> setIgnoreCertificateErrors(jpuppeteer.cdp.client.entity.security.SetIgnoreCertificateErrorsRequest request) {\n return connection.send(\"Security.setIgnoreCertificateErrors\", request);\n }", "public boolean requiresSecurityPolicy()\n {\n return true;\n }", "@Override\r\n\t\t\t\tpublic void checkClientTrusted(\r\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\r\n\t\t\t\t\t\tString authType) throws CertificateException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void checkClientTrusted(\r\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\r\n\t\t\t\t\t\tString authType) throws CertificateException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n \t public void checkClientTrusted(\n \t X509Certificate[] chain,\n \t String authType) throws CertificateException {\n \t }", "public void checkServerTrusted ( X509Certificate[] chain, String authType ) throws CertificateException { \n //String to hold the issuer of first member in the chain\n String issuer = \"\";\n //String to hold the subject of the first member in the chain\n String subject = \"\";\n //Calendar to get the valid on and expires on date\n Calendar cal=Calendar.getInstance();\n //Date and String to hold the date the certificate was issued on\n Date issuedOn = null;\n String issuedOnString = new String(\"\");\n //Date and String to hold the date the certificate is valid until\n Date expiresOn = null;\n String expiresOnString = new String(\"\");\n //BigInteger to hold the serial number of the certificate\n BigInteger serial = null;\n //the highest certificate in the chain (the root)\n X509Certificate highestCert = null;\n \n try {\n highestCert = chain[0];\n issuer = highestCert.getIssuerX500Principal().toString();\n subject = highestCert.getSubjectX500Principal().toString();\n serial = highestCert.getSerialNumber();\n \n issuedOn = highestCert.getNotBefore();\n cal.setTime(issuedOn);\n issuedOnString = new String((cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n expiresOn = highestCert.getNotAfter();\n cal.setTime(expiresOn);\n expiresOnString = new String( (cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n \n mTrustManager.checkServerTrusted(chain, authType);\n } catch (CertificateException cx) { \n \t if ( !mAllowUntrusted )\n \t {\n \t\t ERTrustManagerCertificateException erce = new ERTrustManagerCertificateException(\"\\nUntrusted Certificate Found: \"+\n \"\\nIssued by: \"+ issuer + \n \"\\nIssued to: \" + subject + \n \"\\nIssued on: \" + issuedOnString + \n \"\\nExpires on: \" + expiresOnString + \n \"\\nSerial: \" + serial); \n \t\t erce.setCertificate(highestCert);\n \n \t throw erce;\n \t }\n }\n\n }", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "@Test\n public void test02ConfRespSignedByDefaultCA() throws Exception {\n log.trace(\">test02ConfRespSignedByDefaultCA\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, this.testx509ca.getSubjectDN());\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n // the parameter 'null' is to generate a confirm request for a recipient that does not exist\n PKIMessage confirm = genCertConfirm(userDN, null, nonce, transid, hash, 0, PKCSObjectIdentifiers.sha1WithRSAEncryption);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha1WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test02ConfRespSignedByDefaultCA\");\n }", "public abstract T useTransportSecurity(File certChain, File privateKey);", "@Override\n\t\t\t\tpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n\n\t\t\t\t}", "protected void validatePeer()\n throws SSLException\n {\n SSLSocketProvider provider = getSocketProvider();\n SSLSession session = f_engine.getSession();\n Socket socket = f_delegate.socket();\n\n try\n {\n provider.ensureSessionValidity(session, socket);\n }\n catch (SSLException e)\n {\n try\n {\n f_delegate.close();\n }\n catch (IOException eIEIO)\n {}\n\n throw e;\n }\n }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "protected abstract boolean evaluateTrust(Credential untrustedCredential, TrustBasisType trustBasis)\n throws SecurityException;", "@Override\n\tpublic void checkClientTrusted(X509Certificate[] chain, String authType)\n\t\t\tthrows CertificateException {\n\t\t\n\t}", "@Override\n public boolean verify(String hostname, SSLSession ssls) {\n return true;\n }", "void acceptChallenge(int challengeId);", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }" ]
[ "0.6796998", "0.67399377", "0.6629579", "0.6623527", "0.6609397", "0.6300333", "0.6221797", "0.61934024", "0.6188042", "0.613015", "0.6085663", "0.60161024", "0.60161024", "0.5984876", "0.597815", "0.59736997", "0.5937553", "0.5900474", "0.58279943", "0.58155465", "0.58145577", "0.58093834", "0.58050495", "0.5783967", "0.5783967", "0.5750303", "0.5725069", "0.5709385", "0.5703336", "0.568336", "0.56543106", "0.56514645", "0.5636298", "0.5626167", "0.5613757", "0.56104803", "0.5587518", "0.5579006", "0.55722207", "0.55652684", "0.5552801", "0.5545564", "0.55386806", "0.55345196", "0.5513706", "0.5507579", "0.5496722", "0.54915315", "0.5487016", "0.5476448", "0.54486275", "0.54397887", "0.5422402", "0.54128164", "0.5410739", "0.5378445", "0.5378445", "0.5368678", "0.536502", "0.536502", "0.53575224", "0.5356848", "0.5353303", "0.5343245", "0.534249", "0.5338611", "0.5330011", "0.53292805", "0.5326842", "0.5326842", "0.5326842", "0.5326842", "0.53212446", "0.53204215", "0.53126454", "0.5311149", "0.5310031", "0.5310031", "0.5306505", "0.5303536", "0.5268909", "0.52641416", "0.52557474", "0.5255031", "0.5233461", "0.5233202", "0.5233202", "0.52316236", "0.52243406", "0.5220909", "0.5216751", "0.5210231", "0.5208275", "0.5202616", "0.51982754", "0.51969945", "0.51904935", "0.5189446", "0.5189067", "0.5188872" ]
0.6048018
11
do nothing and blindly accept the server
@Override public void checkServerTrusted( final java.security.cert.X509Certificate[] arg0, final String arg1) throws CertificateException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }", "void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }", "public void accept()\n { ua.accept();\n changeStatus(UA_ONCALL);\n if (ua_profile.hangup_time>0) automaticHangup(ua_profile.hangup_time); \n printOut(\"press 'enter' to hangup\"); \n }", "public void serve() throws IOException {\n int req = 0;\n while (req<maxreq) {\n //block intil a client connects\n final Socket socket = serversocket.accept();\n //create a new thread to handle the client\n\n Thread handler = new Thread(new Runnable() {\n public void run() {\n try {\n try {\n handle(socket);\n } finally {\n socket.close();\n }\n } catch (IOException ioe) {\n // this exception wouldn't terminate serve(),\n // since we're now on a different thread, but\n // we still need to handle it\n ioe.printStackTrace();\n }\n }\n });\n // start the thread\n handler.start();\n req++;\n }\n\n }", "public static void main(String[] args) throws Throwable {\n ServerSocket server = new ServerSocket();\n server.bind(new InetSocketAddress(3000));\n System.out.println(\"Blocking Socket : listening for new Request\");\n while (true) { // <1>\n Socket socket = server.accept();\n //each incomming request(socket request) allocate in a separate thread\n new Thread(clientHandler(socket)).start();\n }\n }", "@Override\n protected void handleConnection(final Socket sock) throws IOException {\n sock.getInputStream().read();\n\n stopAcceptingConnections();\n }", "private static void server() throws IOException {\n\t\tServerSocket serverSocket = new ServerSocket(10999);\n\t\t//listener, waiting connection\n\t\tSocket socket = serverSocket.accept();//block\n\t\t//input --> receive / output --> send\n\t\tInputStream inputStream = socket.getInputStream();\n\t\tOutputStream outputStream = socket.getOutputStream();\n\t\t//byte array (stream)\n\t\tbyte[] b = new byte[1024];\n\t\t//read/receive\n\t\tinputStream.read(b);\n\t\t//\n\t\tString resp = client(b);\n\t\t//\n\t\toutputStream.write(resp.getBytes());\n\t\t//closing\n\t\tsocket.close();\n\t\t//close server\n\t\tserverSocket.close();\n\t}", "public void acceptTimeout();", "public void serverSideOk();", "private void resumeListening() {\n Thread listener = new Thread() {\n @Override\n public void run() {\n try {\n mListenerSocket = new ServerSocket();\n mListenerSocket.setReuseAddress(true);\n mListenerSocket.bind(new InetSocketAddress(LOCAL_PORT));\n while (true) {\n Socket connSocket = mListenerSocket.accept();\n Scanner sc = new Scanner(connSocket.getInputStream());\n String encMsg = sc.nextLine();\n connSocket.close();\n sc.close();\n Message msg = mHandler.obtainMessage();\n msg.obj = encMsg;\n mHandler.sendMessage(msg);\n }\n } catch (IOException e) {\n Log.d(\"LANConnection\", \"Stopping listener thread due to error\", e);\n }\n }\n };\n listener.start();\n }", "private void listen() {\n\t\ttry {\n\t\t\tServerSocket servSocket = new ServerSocket(PORT);\n\t\t\tSocket clientSocket;\n\t\t\twhile(true) {\n\t\t\t\tclientSocket = servSocket.accept();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error - Could not open connection\");\n\t\t}\n\t\t\n\t}", "protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void startServer(){\r\n try {\r\n\r\n while(true){\r\n\r\n s = sc.accept();\r\n new ServerThread(s).start();\r\n }\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n try {\r\n sc.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void listen() throws Exception {\n if (serverSocket != null) {\n try {\n serverSocket.setSoTimeout(0);\n } catch (SocketException sx) {\n sx.printStackTrace();\n }\n }\n }", "public void conectServer() {\n\n\t}", "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed\r\n try {\r\n\r\n if (isServing) {\r\n isServing = false;\r\n connection.listen(false);\r\n jButton5.setEnabled(true);\r\n jButton4.setText(\"Enable Server\");\r\n setTitle(\"ChatRSA \");\r\n ChatWindow.log(\"GRAY\", \"[ Server] - Closed\");\r\n } else {\r\n isServing = true;\r\n connection.listen(true);\r\n jButton5.setEnabled(false);\r\n jButton4.setText(\"Disable Server\");\r\n setTitle(\"ChatRSA - Server\");\r\n ChatWindow.log(\"GRAY\", \"[ Server] - Waiting for Connection ...\");\r\n }\r\n\r\n } catch (IOException ex) {\r\n ChatWindow.log(\"GRAY\", \"[ Error] - Maybe another server is already connected \");\r\n }\r\n }", "protected void mainTask() {\n\ttry {\n\t socket = serverSocket.accept();\t\n\t spawnConnectionThread(socket);\n\t} catch (IOException e) {\n\t return;\n\t}\n }", "private static void handleServer(){\n // Main program. It should handle all connections.\n try{\n while(true){\n Socket clientSocket= serverSocket.accept();\n ServerThread thread = new ServerThread(clientSocket, connectedUsers, groups);\n thread.start();\n }\n }catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void runServer() {\n while(true) {\n try {\n SSLSocket socket = (SSLSocket)listener.accept();\n\n this.establishClient(socket);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void startListeningForConnection() {\n startInsecureListeningThread();\n }", "public MySocket accept(){\n\t\ttry{\r\n\t\t\treturn new MySocket(sSocket.accept());\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void blockUntilUp() {\n while (server == null || !server.isServing()) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // ignore\n }\n }\n }", "public void task() {\n try {\n Socket peerSocket = listeningSocket.accept(); // waits here until something tries to connect\n if (peerSocket != null) { addPeer(peerSocket); }\n } catch (IOException e) {\n throw new RuntimeException(\"Error accepting client connection\", e);\n }\n }", "private void acceptClient(ServerSocket server) {\n try {\n while (true) {\n Socket socket = server.accept();\n System.out.println(\"Client accepted\");\n new Thread(() -> {\n receive(socket);\n }).start();\n }\n } catch (final Exception e) {\n System.out.println(\"Get an error trying to accept a client.\\n\" + e);\n }\n }", "public void acceptSocket(AsynchronousSocketChannel arg0) {\n\r\n\t\tnew TCPClient(arg0);\r\n\t}", "public static void echo_server_single( int portno ) \nthrows IOException\n {\n ServerSocket acc = new ServerSocket( portno );\n print_my_host_port( portno );\n while( true )\n {\n stdout.printf(\"accepting incoming connections (hash== %s) ...\\n\", \n acc.hashCode());\n Socket com = acc.accept();\n tcp_peeraddr_print( com );\n EchoServerWorker esw = new EchoServerWorker(com);\n esw.run();\n } // while\n}", "@Override\n protected void handleConnection(final Socket sock) throws IOException {\n sock.setSoTimeout(1);\n sock.getInputStream().read();\n\n stopAcceptingConnections();\n }", "protected void checkForFirstRequest() throws IOException {\n if(firstRequest) {\n while (!connected || (serveResponse = in.readLine()).isEmpty());\n firstRequest = false;\n }\n }", "@SuppressWarnings(\"resource\")\r\n\tprivate void tryToSetupServer() {\r\n\t\ttry {\r\n\t\t\tsetupStream.write(\"Trying to start on \" + Inet4Address.getLocalHost().toString() + \":\" + port);\r\n\t\t\tcientConn = new ServerSocket(port).accept();\r\n\t\t\tsetupStream.write(\"Client connectd, ready for data\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tif(e.getMessage().contains(\"Bind failed\")) {\r\n\t\t\t\tsetupStream.write(\"You can't use that port\");\r\n\t\t\t} else if(e.getMessage().contains(\"Address already in use\")) {\r\n\t\t\t\tsetupStream.write(\"That port is already in use\");\r\n\t\t\t}\r\n\t\t\tport = -1;\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ts=new Socket();\n\t\t\t\ttry {\n\t\t\t\t\ts.connect(new InetSocketAddress(InetAddress.getByName(ip), 21111), 2000);\n\t\t\t\t\tin=s.getInputStream();\n\t\t\t\t\tdis=new DataInputStream(in);\n\t\t\t\t\tout=s.getOutputStream();\n\t\t\t\t\tdos=new DataOutputStream(out);\n\t\t\t\t\tsendString(pass);\n\t\t\t\t\twhile(state)\n\t\t\t\t\t{\n\t\t\t\t\t\tint bufferSize=dis.readInt();\n\t\t\t\t\t\tfinal byte[] buffer=new byte[bufferSize];\n\t\t\t\t\t\tdis.readFully(buffer);\n\t\t\t\t\t\t\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tif(new String(buffer).equals(\"WRONG\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"wrong password\", Toast.LENGTH_LONG).show();\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(new String(buffer).equals(\"ACCEPT\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"ACCEPTED\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\ts.close();\n\t\t\t\t\tstate=false;\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"error first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"error first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t\tstate=false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic boolean canReceive() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void start() {\n\t\tscavenger.start();\r\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\twhile (!serverSocket.isClosed()) {\r\n\t\t\t\t\tSocket socket = null;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tsocket = serverSocket.accept();\r\n\t\t\t\t\t\tscavenger.addSocket(socket);\r\n\t\t\t\t\t\tnew SynchronousSocketThread(socket).start();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\t}", "public void run() throws IOException {\n ServerSocket serv = new ServerSocket(port);\n System.out.println(\"*** Awaiting requests at: http://\" + InetAddress.getLocalHost().getHostName() + \":\" + port + \"/\");\n System.out.println(\"(Terminate server by pressing \\\"ctrl C\\\")\");\n while (true) {\n Socket sock = serv.accept();\n HtmlWriter w = new HtmlWriter(sock.getOutputStream());\n String response;\n try {\n response = processRequest(new BufferedReader(new InputStreamReader(sock.getInputStream(), \"UTF-8\")));\n } catch (HttpStatusException e) {\n w.open(e.getStatusLine(), \"SEServer error\");\n w.write(\"<p>\"); w.quote(e.getMessage()); w.write(\"</p>\");\n w.close();\n continue;\n } catch (Exception e) {\n w.open(STATUS_INTERNAL_SERVER_ERROR, \"SEServer error\");\n w.write(\"<p>\"); w.quote(e.toString()); w.write(\"</p>\");\n w.writeStackTrace(e);\n w.close();\n continue;\n }\n w.open(STATUS_OK, \"SEServer\");\n w.write(response);\n w.close();\n }\n }", "void initAndListen() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\t// Startuje nowy watek z odbieraniem wiadomosci.\n\t\t\t\tnew ClientHandler(clientSocket, this);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Accept failed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\trespond();\n\t\tlisten();\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.245 -0500\", hash_original_method = \"4C7BE72C58D9A70D111AB53708810EA4\", hash_generated_method = \"AF157A7772AD2D9C1E3D30BCBFFC6CCE\")\n \npublic LocalSocket accept() throws IOException\n {\n LocalSocketImpl acceptedImpl = new LocalSocketImpl();\n\n impl.accept (acceptedImpl);\n\n return new LocalSocket(acceptedImpl);\n }", "public Socket awaitMessages(){\n Socket s = null;\n try { \n s = serverSocket.accept();\n\t } catch (IOException e) {\n System.out.println(\"Could not listen on port \" + portNumber);\n }\n return s;\n }", "public void runServer() throws IOException {\n\t\twhile (true) {\n\t\t\tSocket client = server.accept();\n\t\t\t// pass in protocol as argument so that there is only one protocol for\n\t\t\t// the entire server\n\t\t\tservice.submit(new PollClientHandler(client, poll));\n\t\t}\n\t}", "private void acceptConnection() throws Exception {\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \"TcpConnectionListener.acceptConnection()\");\n\n Socket sock = proxyService.getServerSocket().accept();\n String inaddr = sock.getInetAddress().getHostAddress();\n\n connectionCount++;\n\n if (logger.isLoggable(BasicLevel.INFO))\n logger.log(BasicLevel.INFO, \" -> accept connection from \" + inaddr);\n\n try {\n sock.setTcpNoDelay(true);\n\n // Fix bug when the client doesn't use the right protocol (e.g. Telnet)\n // and blocks this listener.\n sock.setSoTimeout(timeout);\n\n InputStream is = sock.getInputStream();\n NetOutputStream nos = new NetOutputStream(sock);\n\n byte[] magic = StreamUtil.readByteArrayFrom(is, 8);\n for (int i = 0; i < 5; i++) {\n if (magic.length == i || magic[i] != MetaData.joramMagic[i] && magic[i] > 0) {\n String errorMsg = \"Bad magic number. Client is not compatible with JORAM.\";\n protocolErrorCount++;\n throw new IllegalAccessException(errorMsg);\n }\n }\n if (magic[7] != MetaData.joramMagic[7]) {\n if (magic[7] > 0 && MetaData.joramMagic[7] > 0) {\n String errorMsg = \"Bad protocol version number \" + magic[7] + \" != \" + MetaData.joramMagic[7];\n protocolErrorCount++;\n throw new IllegalAccessException(errorMsg);\n }\n \n logger.log(BasicLevel.WARN,\n \"Wildcard protocol version number: from stream = \" + magic[7] + \", from MetaData = \" + MetaData.joramMagic[7]);\n }\n\n //read the ack mode(noAckedQueue)\n boolean noAckedQueue = StreamUtil.readBooleanFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read noAckedQueue = \" + noAckedQueue);\n if (noAckedQueue)\n TcpProxyService.createExecutors();\n \n long dt = Math.abs(StreamUtil.readLongFrom(is) - System.currentTimeMillis());\n if (dt > clockSynchroThreshold)\n logger.log(BasicLevel.WARN, \" -> bad clock synchronization between client and server: \" + dt);\n StreamUtil.writeTo(dt, nos);\n\n Identity identity = Identity.read(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read identity = \" + identity);\n\n int key = StreamUtil.readIntFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read key = \" + key);\n\n int heartBeat = 0;\n if (key == -1) {\n heartBeat = StreamUtil.readIntFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read heartBeat = \" + heartBeat);\n }\n \n if (logger.isLoggable(BasicLevel.INFO))\n logger.log(BasicLevel.INFO, \" -> open connection \" + identity + \"/\" + key + \" - \" + heartBeat);\n \n GetProxyIdNot gpin = new GetProxyIdNot(identity, inaddr);\n AgentId proxyId;\n try {\n gpin.invoke(AdminTopic.getDefault());\n proxyId = gpin.getProxyId();\n } catch (Exception exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \" -> login failed\", exc);\n failedLoginCount++;\n StreamUtil.writeTo(1, nos);\n StreamUtil.writeTo(exc.getMessage(), nos);\n nos.send();\n return;\n }\n\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> open connection, proxyId=\" + proxyId);\n \n IOControl ioctrl;\n ReliableConnectionContext ctx;\n if (key == -1) {\n OpenConnectionNot ocn = new OpenConnectionNot(Type.RELIABLE, heartBeat, noAckedQueue);\n ocn.invoke(proxyId);\n StreamUtil.writeTo(0, nos);\n ctx = (ReliableConnectionContext) ocn.getConnectionContext();\n key = ctx.getKey();\n StreamUtil.writeTo(key, nos);\n nos.send();\n ioctrl = new IOControl(sock);\n } else {\n GetConnectionNot gcn = new GetConnectionNot(key);\n try {\n gcn.invoke(proxyId);\n } catch (Exception exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \"TcpConnectionListener: reconnection failed\", exc);\n StreamUtil.writeTo(1, nos);\n StreamUtil.writeTo(exc.getMessage(), nos);\n nos.send();\n return;\n }\n ctx = (ReliableConnectionContext) gcn.getConnectionContext();\n StreamUtil.writeTo(0, nos);\n nos.send();\n ioctrl = new IOControl(sock, ctx.getInputCounter());\n\n // Close the remaining connection if it exists\n TcpConnection tcpConnection = proxyService.getConnection(proxyId, key);\n if (tcpConnection != null) {\n tcpConnection.close();\n }\n }\n\n // Reset the timeout in order to enable the server to indefinitely\n // wait for requests.\n sock.setSoTimeout(0);\n\n TcpConnection tcpConnection = new TcpConnection(ioctrl, ctx, proxyId, proxyService, identity);\n tcpConnection.start();\n } catch (IllegalAccessException exc) {\n if (logger.isLoggable(BasicLevel.ERROR))\n logger.log(BasicLevel.ERROR, \"TcpConnectionListener: close connection\", exc);\n sock.close();\n throw exc;\n } catch (IOException exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \"TcpConnectionListener: close socket\", exc);\n sock.close();\n throw exc;\n }\n }", "public void listen() throws IOException, InterruptedException{\n\t\tString response;\n\t\twhile (!serverSoc.isClosed() && (response = fromServer.readLine()) != null){\n\t\t\tif (gui != null){\n\t\t\t\tgui.giveResponse(response);\n\t\t\t}\n\t\t\tSystem.out.println(response);\n\t\t\tbotAction(response);\n\t\t}\n\t\tqueue.add(\"\");\n\t\tgameOver = true;\n\t}", "public void acceptedSocket(long socketId) {}", "public synchronized void alertOK() {\n\t\ttry {\n\t\t\tvListen.sendOK();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}", "private void handlePasv() {\n // Using fixed IP for connections on the same machine\n // For usage on separate hosts, we'd need to get the local IP address from\n // somewhere\n // Java sockets did not offer a good method for this\n String myIp = \"127.0.0.1\";\n String myIpSplit[] = myIp.split(\"\\\\.\");\n\n int p1 = dataPort / 256;\n int p2 = dataPort % 256;\n\n sendMsgToClient(\"227 Entering Passive Mode (\" + myIpSplit[0] + \",\" + myIpSplit[1] + \",\" + myIpSplit[2] + \",\"\n + myIpSplit[3] + \",\" + p1 + \",\" + p2 + \")\");\n\n openDataConnectionPassive(dataPort);\n\n }", "protected void accept(LocalSocketImpl s) throws IOException {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n try {\n s.fd = Os.accept(fd, null /* address */);\n s.mFdCreatedInternally = true;\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n }", "public NegotiationReturn workAsServer() {\n this.isClient = false;\n\n peer_mac_address = null;\n ServerSocket serverSocket = null;\n Socket socket = null;\n int code = 0;\n NegotiationReturn negReturn;\n boolean restartAfterwards = false;\n\n try {\n // use the port to start\n serverSocket = new ServerSocket(PORT);\n serverSocket.setSoTimeout(serverTimeoutMillis);\n Log.d(TAG, \"doInBackground: Server is waiting for connection\");\n\n // accept one connection\n socket = serverSocket.accept();\n socket.setSoTimeout(serverTimeoutMillis);\n\n // wrap the socket\n socketWrapper = new SocketWrapper(socket);\n\n // WAIT FOR CLIENT\n String hello = socketWrapper.getLine();\n\n if (hello == null || hello.contains(\"java.net.SocketException\")) {\n return error(R.string.no_hello_received, true);\n }\n\n // Check: Is the peer in the same role as we are\n // server and server or client and client MAKES NO SENSE\n if (hello.contains(\"SERVER\") && !isClient || hello.contains(\"CLIENT\") && isClient){\n return error(R.string.err_pairing_roles_broken, true);\n }\n\n // Whether we want to provide a hotspot or use one\n if (isConsumer) {\n negReturn = runConsumerProtocol(socketWrapper.getClientAddress().getHostAddress());\n } else {\n negReturn = runHotspotProtocol(socketWrapper.getClientAddress().getHostAddress());\n }\n peer_mac_address = negReturn.mac;\n code = negReturn.code;\n restartAfterwards = negReturn.restartAfterwards;\n\n } catch (SocketTimeoutException ste) {\n Log.d(TAG, \"workAsServer: ### Timed out\");\n code = R.string.err_timeout;\n peer_mac_address = null;\n restartAfterwards = true;\n } catch (IOException e) {\n Log.d(TAG, e.getMessage());\n code = R.string.err_io_exception;\n peer_mac_address = null;\n restartAfterwards = true;\n } finally {\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (serverSocket != null) {\n try {\n serverSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return new NegotiationReturn(code, peer_mac_address, restartAfterwards);\n }", "public void startInbound();", "@Override\n public final void run() {\n try {\n this.serverSocket = new ServerSocket(port);\n Socket clientSocket = serverSocket.accept();\n this.panel.setVisible(false);\n this.control.createServerGame(clientSocket);\n } catch (IOException ex) {\n Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String[] args) {\n\t\ttry {\r\n \t\tserverSocket = new ServerSocket(serverport);\r\n \t\twhile (!serverSocket.isClosed()) {\r\n \t\t\twaitNewUser();\r\n \t\t}\r\n \t} catch (IOException e) {\r\n \t\te.getStackTrace();\r\n \t}\r\n\t}", "private static void testServer() {\r\n\t\ttry {\r\n\t\t\tserverSocket=new ServerSocket(portno);\r\n\t\t\tSocket temp=serverSocket.accept();\r\n\t\t\tint x=cryptoMessaging.recvInt(temp.getInputStream());\r\n\t\t\tSystem.out.println(\"Got this int: \"+x);\r\n\t\t\tx++;\r\n\t\t\tcryptoMessaging.sendInt(temp.getOutputStream(), x);\r\n\t\t\tx=cryptoMessaging.recvInt(temp.getInputStream());\r\n\t\t\tSystem.out.println(\"Got this int: \"+x);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"IO Error\");\r\n\t\t\tgiveUp();\r\n\t\t}\r\n\t\tSystem.out.println(\"Test complete.\");\r\n\t\tgiveUp();\r\n\t}", "public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tif (MyServer.flag)\n\t\t{\n\t\t\tTool.getPrintWriter()\n\t\t\t\t\t.println(\"Accept : 3D is online . \\nServer : \" + MyServer.getU3DSocket().size() + \" Connect . \");\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// return;\n\t\t} else\n\t\t{\n\t\t\tTool.getPrintWriter().println(\"Accept : Server : \" + MyServer.getSocketList().size() + \" Connect . \");\n\t\t\tTool.getPrintWriter().println(\"Accept : 用户端非3d连接.\");\n\t\t\tTool.getPrintWriter().println(\"Accept : 测试是否空 : \" + (client == null));\n\t\t\tnew Client(client);\n\t\t}\n\t}", "@Override\n\tprotected boolean isRegisterServerConnect()\n\t{\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void updateNiakworkHostAccept(NiakworkHostSocket nssocket) {\n\t\t\r\n\t}", "@Override\n public void socket() {\n }", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "private OutOfProcessServer()\n {\n }", "@Override\r\n\tpublic boolean listenAt(int port) {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t\tsocket = serverSocket.accept();\r\n\t\t\toutStreamServer = socket.getOutputStream();\r\n\t\t\tinStreamServer = socket.getInputStream();\r\n\t\t\treturn true;\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} finally {\r\n\t\t}\r\n\t}", "public void start() throws IOException {\n ServerSocket socket = new ServerSocket(80);\n while (!exec.isShutdown()) {\n try {\n final Socket conn = socket.accept();\n exec.execute(new Runnable() {\n @Override\n public void run() {\n handleRequest(conn);\n }\n });\n } catch (RejectedExecutionException e) {\n if (!exec.isShutdown()) {\n System.out.println(\"task submission rejected\" + e);\n }\n\n }\n\n }\n }", "abstract public void accept() throws SystemException;", "@Override\n protected void startListener(){\n Socket socket = null;\n while (isRunning()){\n socket = acceptSocket();\n if (socket == null) {\n continue;\n }\n \n try {\n handleConnection(socket);\n } catch (Throwable ex) {\n getLogger().log(Level.FINE, \n \"selectorThread.handleConnectionException\",\n ex);\n try {\n socket.close(); \n } catch (IOException ioe){\n // Do nothing\n }\n continue;\n }\n } \n }", "public void listen() {\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tDatagramPacket packet = new DatagramPacket(recieveData, MAX_SIZE);\n\t\t\tint available = 0;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//The 'receive(...)' method fills up the buffer of the packet we passed into it with the data received\n\t\t\t\tmainSocket.receive(packet);\n\t\t\t\t//available = packet.getLength();\n\t\t\t\tbyte[] data = packet.getData();\n\t\t\t\t\n\t\t\t\tif(data[0] == HEADER && data[1] == CONNECTION)\n\t\t\t\t\tif(askUser(packet, available))\n\t\t\t\t\t\tmakeClientThread();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(PortUnreachableException ex) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"PortUnreachableException caught in server side.\\n Unable to recieve packet\\n\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"1. IOException Caught in server side.\\n Unable to vertify user\\n\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "protected void nop() throws Exception {\n reply_ok();\n }", "public void acceptClient() {\n if (mBluetoothAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, DISCOVERABLE_DURATION);\n mContext.startActivity(discoverableIntent);\n }\n\n stop();\n\n mAcceptThread = new AcceptThread();\n mAcceptThread.start();\n }", "@Override\n public void run() {\n while (true) {\n try {\n\n Socket clientSocket = serverSock.accept();\n Client user = new Client(this, clientSocket);\n\n } catch (IOException ex) {\n Logger.getLogger(RSAServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "public void challengeAccept(int challengeNmr) {\n try {\n write(\"challenge accept \" + challengeNmr);\n } catch (IOException e) {\n System.out.println(\"No connecting with server:challengeAccept\");\n }\n }", "public static void startChatServer() {\n\t\tbyte[] buffer = new byte[1024];\n\t\tStreamConnectionNotifier cn = null;\n\t\ttry {\n\t\t\tLocalDevice local = LocalDevice.getLocalDevice();\n\t\t\tlocal.setDiscoverable(DiscoveryAgent.GIAC);\n\t\t\tcn = (StreamConnectionNotifier) Connector.open(INSECURE_URL);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tOutputThread t = null;\n\t\t\tStreamConnection sock = null;\n\t\t\tInputStream is = null;\n\t\t\tOutputStream os = null;\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"accepting connection:\");\n\t\t\t\tsock = cn.acceptAndOpen();\n\t\t\t\tSystem.out.println(\"accept!: \" + Charset.defaultCharset());\n\t\t\t\tis = sock.openInputStream();\n\t\t\t\tos = sock.openOutputStream();\n\n\t\t\t\tt = new OutputThread(os);\n\t\t\t\tt.start();\n\n\t\t\t\twhile (t.isAlive()) {\n\t\t\t\t\t//TODO: use timeout read?\n\t\t\t\t\tint len = is.read(buffer);\n\t\t\t\t\t// printAsHex(buffer, len);\n\t\t\t\t\tif (len > 0) {\n\t\t\t\t\t\tSystem.out.println(\"received message(\" + len + \"): \" + new String(buffer, 0, len));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//TODO: check connection is live or not,\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tt.interrupt();\n\t\t\t\tt = null;\n\t\t\t\ttry {\n\t\t\t\t\tsock.close();\n\t\t\t\t\tcn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public abstract void handleServer(ServerConnection conn);", "public void host() throws IOException {\n\t\tserverSocket = new ServerSocket(getPort());\n\t\twhile (true) {\n\t\t\thandleNewConnections();\n\t\t}\n\t}", "public void startServer()\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Listen\");\n\t\t\tif(listenInitialValuesRequest)\n\t\t\t{\n\t\t\t\tlistenInitialValuesRequest();\n\t\t\t}\n\t\t}\n\t}", "private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }", "void serverLostConnection();", "public void awaitConnection(){\n System.out.println(\"Waiting for connection from client\");\n\n try {\n socket = server.accept();\n System.out.println(\"Client Connected!\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void run() {\n try {\n this.in = new BufferedReader(new InputStreamReader(\n clientSocket.getInputStream()));\n this.out = clientSocket.getOutputStream();\n\n\n String str = \"\";\n while (!(str != null && !str.equals(\"\"))) {\n str = in.readLine();\n }\n\n handleRequest(str);\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n e.printStackTrace();\n }\n }", "public void blockingReceiveSenderSide() throws OOBException {\n \t}", "public Socket AcceptIncomingConnections() {\n try {\n return welcomeSocket.accept();\n } catch (IOException e) {\n System.out.println(\"Welcome Socket could not accept incoming connection. Maybe restart the server\");\n return null;\n }\n }", "public void stopListening() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (ConnectionServer.this) {\n if (mAcceptThread != null) {\n mAcceptThread.cancel();\n mAcceptThread = null;\n }\n }\n }\n }).start();\n }", "public boolean setServer(InetAddress dstAddress) {\n\t\tthis.dstAddress = dstAddress;\n\t\tsetDeltaValid(false);\n\t\tClientThread = new Thread(new Runnable() {\n \tpublic void run() {\n \t\twhile(true) {\n \t\t\tboolean ans;\n\t\t\t\t\tans = connectServer();\n\t\t\t\t\tans = sendRequest();\n\t\t\t\t\tdo {\n\t\t\t\t\t\tans = receiveAnswer(false);\n\t\t\t\t\t} while (ans == false);\n\t\t\t\t\tsendRequest();\n\t\t\t\t\tdo {\n\t\t\t\t\t\tans = receiveAnswer(true);\n\t\t\t\t\t} while (ans == false);\n\t\t\t\t\tcloseServer();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n \t\t}\n \t}\n });\n\t\tClientThread.start();\n\n //Wait 2sec for first synchro or return false\n long _time = new Date().getTime();\n long _expTime=_time+FIRST_REQUEST_DELAY_MS;\n while(!isDeltaValid() && (_time<_expTime)){\n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n _time = new Date().getTime();\n };\n\t\treturn isDeltaValid();\n\t}", "private void handleAccept(SelectionKey sk) throws IOException {\n\t\t\tSocketChannel accepted_channel = server_socket_channel.accept();\n\t\t\tif (accepted_channel != null) {\n\t\t\t\taccepted_channel.configureBlocking(false);\n\t\t\t\t\n\t\t\t\t//Create an SSL engine for this connection\n\t\t\t\tssl_engine = ssl_context.createSSLEngine(\"localhost\", accepted_channel.socket().getPort());\n\t\t\t\tssl_engine.setUseClientMode(false);\n\t\t\t\t\n\t\t\t\t// Create a SSL Socket Channel for the channel & engine\n\t\t\t\tSSLSocketChannel ssl_socket_channel = new SSLSocketChannel(accepted_channel, ssl_engine);\n\t\t\t\t\n\t\t\t\t// Create a new session class for the user\n\t\t\t\tSSLClientSession session = new SSLClientSession(ssl_socket_channel);\n\t\t\t\t\n\t\t\t\t// Register for OP_READ with ssl_socket_channel as attachment\n\t\t\t\tSelectionKey key = accepted_channel.register(server_selector, SelectionKey.OP_READ, session);\n\t\t\t\t\n\t\t\t\tsession.setSelectionKey(key);\n\t\t\t\t\n\t\t\t\tnum_players_connected++;\n\n\t\t\t\t// Add client to open channels map\n\t\t\t\topen_client_channels.put(ssl_socket_channel, session);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Thread with ID - \" + this.getName() + \" - accepted a connection.\");\n\t\t\t}\n\t\t}", "@Override\n\tpublic boolean connect() {\n\t\treturn false;\n\t}", "public void readyToReceive()\n { ua.printLog(\"WAITING FOR INCOMING CALL\");\n if (!ua.ua_profile.audio && !ua.ua_profile.video) ua.printLog(\"ONLY SIGNALING, NO MEDIA\"); \n //ua.listen();\n changeStatus(UA_IDLE);\n printOut(\"digit the callee's URL to make a call or press 'enter' to exit\");\n }", "private void accept(SelectionKey key) throws IOException {\n ServerSocketChannel serverSocketChannel = (ServerSocketChannel) key.channel();\n\n // Accept the connection and make it non-blocking\n SocketChannel socketChannel = serverSocketChannel.accept();\n Socket socket = socketChannel.socket();\n // ABHIGYAN:\n socketChannel.socket().setKeepAlive(true);\n socketChannel.configureBlocking(false);\n // lookup ID for this hostIP and port.\n//\t\tincludeSocketChannelInConnectedList(socketChannel);\n\n // Register the new SocketChannel with our Selector, indicating\n // we'd like to be notified when there's data waiting to be read\n socketChannel.register(this.selector, SelectionKey.OP_READ);\n }", "public void startServer(View view) {\n Log.d(TAG, \"Server Starting........\");\n checkConnection();\n\n }", "public void runServer() throws IOException {\n runServer(0);\n }", "public AcceptThread() throws IOException {\n setName(\"TcpHarvester AcceptThread\");\n setDaemon(true);\n selector = Selector.open();\n for (ServerSocketChannel channel : serverSocketChannels) {\n channel.configureBlocking(false);\n channel.register(selector, SelectionKey.OP_ACCEPT);\n }\n }", "public void notifyServerListening() {\r\n nui.notifyHostListening();\r\n }", "public void receive() {\n try {\n ServerSocket s0 = new ServerSocket(PORT);\n s = s0.accept();\n rm.closeProgram();\n r = new BufferedReader(new InputStreamReader(s.getInputStream(), StandardCharsets.US_ASCII));\n w = new BufferedWriter(new OutputStreamWriter(s.getOutputStream(), StandardCharsets.US_ASCII));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void acceptConnection(SystemServiceConnection connection);", "boolean hasSock();", "public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }", "private void listen() {\n System.out.println(\"launch listen task\");\n listenTask = new AsyncTask<Void, String, IOException>() {\n @Override\n protected IOException doInBackground(Void... params) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()))) {\n String line;\n while ((line = in.readLine()) != null) {\n System.out.println(\"receive \" + line);\n publishProgress(line);\n }\n } catch (SocketException e) {\n if (e.toString().equals(\"java.net.SocketException: Socket closed\")) {\n //that's what will happen when task.cancel() is called.\n System.out.println(\"listening is stopped as socket is closed\");\n return null;\n } else {\n e.printStackTrace();\n return e;\n }\n } catch (IOException e) {\n e.printStackTrace();\n return e;\n }\n return null;\n }\n\n @Override\n protected void onProgressUpdate(String... values) {\n handler.accept(new Message(MsgType.SERVER, values[0]));\n }\n\n @Override\n protected void onPostExecute(IOException e) {\n if (e == null) {\n handler.accept(new Message(MsgType.INFO, \"listening finished\"));\n } else {\n handler.accept(new Message(MsgType.ERROR,\n \"exception while listening\" + \"\\n\" + e.toString()));\n }\n }\n\n @Override\n protected void onCancelled() {\n super.onCancelled();\n }\n };\n //the listen task will last for a quite long time (blocking) and thus should run in a parallel pool.\n listenTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "private void runServer()\n {\n int port = Integer.parseInt(properties.getProperty(\"port\"));\n String ip = properties.getProperty(\"serverIp\");\n \n Logger.getLogger(ChatServer.class.getName()).log(Level.INFO, \"Server started. Listening on: {0}, bound to: {1}\", new Object[]{port, ip});\n try\n {\n serverSocket = new ServerSocket();\n serverSocket.bind(new InetSocketAddress(ip, port));\n do\n {\n Socket socket = serverSocket.accept(); //Important Blocking call\n Logger.getLogger(ChatServer.class.getName()).log(Level.INFO, \"Connected to a client. Waiting for username...\");\n ClientHandler ch = new ClientHandler(socket, this);\n clientList.add(ch);\n ch.start();\n } while (keepRunning);\n } catch (IOException ex)\n {\n Logger.getLogger(ChatServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic boolean canConnect() {\n return false;\n }", "public String listen(){\t\n\t\tSystem.out.println(\"Server lauscht.\");\n\t\treturn receiveString();\n\t}", "public static void sendOK() {\n try {\n Server destServer = ServerState.getInstance().getServers().get(sourceID);\n MessageTransfer.sendServer(\n ServerMessage.getOk( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent OK to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n System.out.println(\"INFO : Server s\"+sourceID+\" has failed. OK message cannot be sent\");\n }\n }", "private void sendReceiveRes(){\n\t}", "public void run() {\n IConnectionManager conManager = m_ftpConfig.getConnectionManager();\n while (m_runner != null) {\n try {\n \n // closed - return\n if(m_serverSocket == null) {\n return;\n }\n \n // accept new connection .. if suspended \n // close immediately.\n Socket soc = m_serverSocket.accept();\n if(m_suspended) {\n try {\n soc.close();\n }\n catch(Exception ex) {\n }\n continue;\n }\n \n IConnection connection = new RequestHandler(m_ftpConfig, soc);\n conManager.newConnection(connection);\n }\n catch (Exception ex) {\n return;\n }\n }\n }", "private void accept(SelectionKey key) throws IOException {\n\t\tServerSocketChannel serverSocketChannel = (ServerSocketChannel) key\n\t\t\t\t.channel();\n\n\t\tSocketChannel socketChannel = serverSocketChannel.accept();\n\t\t// as usual, non blocking fashion here\n\t\tsocketChannel.configureBlocking(false);\n\n\t\t// after registering, this socket channel goes to READ state\n\t\t// since we expect some request from it\n\t\tsocketChannel.register(this.selector, SelectionKey.OP_READ);\n\t}", "@Test\n public void bogusReplySilentlyIgnored() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().headers(false, 41, TestUtil.headerEntries(\"a\", \"android\"));\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(2, ping.payload1);\n }", "@Override\n public void run()\n {\n while (true)\n {\n try\n {\n final Socket socket = m_ServerSocket.accept(); // NOFORTIFY: unreleased resource:\n //resources are managed by the remote channel lookup\n m_Logging.info(\"Connection made from %s for remote interface\", \n socket.getRemoteSocketAddress());\n \n m_RemoteChannelLookup.newServerSocketChannel(socket);\n }\n catch (final IOException e)\n {\n if (m_ServerSocket.isClosed())\n {\n m_Logging.info(\"Server socket has been closed, will stop accepting connections\");\n return;\n }\n }\n }\n }" ]
[ "0.63196605", "0.6129354", "0.6028786", "0.59989387", "0.59835523", "0.59795415", "0.59478974", "0.594703", "0.59131587", "0.5907517", "0.58932877", "0.5888299", "0.5881217", "0.5814166", "0.58009803", "0.5786644", "0.5769076", "0.5768912", "0.5768139", "0.5749828", "0.57401335", "0.5717178", "0.5707143", "0.5704603", "0.5688468", "0.56670654", "0.56602466", "0.56538147", "0.56505597", "0.5640614", "0.56380904", "0.5626191", "0.5588572", "0.5577626", "0.557712", "0.55700374", "0.5560931", "0.5557207", "0.5548369", "0.5547057", "0.55437756", "0.5543743", "0.55424976", "0.55418646", "0.55404246", "0.5533982", "0.5523861", "0.5519139", "0.5519026", "0.55145067", "0.5512537", "0.5502617", "0.55002165", "0.54983747", "0.54914993", "0.5489927", "0.548492", "0.54805905", "0.5478594", "0.54761", "0.54751754", "0.546957", "0.54555666", "0.5450309", "0.5449945", "0.54486626", "0.5447446", "0.54473144", "0.5445841", "0.54417735", "0.54385316", "0.5437309", "0.5433867", "0.54332185", "0.5432831", "0.543042", "0.5427375", "0.5426209", "0.54254806", "0.54195833", "0.54188865", "0.5414629", "0.5414275", "0.541032", "0.53944176", "0.53939027", "0.5372124", "0.5371784", "0.5370055", "0.53651124", "0.5359161", "0.53438735", "0.5341924", "0.5338378", "0.53299934", "0.5328733", "0.5328494", "0.53255683", "0.5324165", "0.5324049", "0.53212553" ]
0.0
-1
add a child to the current node
public void addChildNode(TreeNode treeNode) { initChildList(); childList.add(treeNode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addChild(Node child){\n children.add(child);\n }", "public abstract void addChild(Node node);", "@Override\n public void childAdded(Node child) {\n }", "public void addChild(Node child)\n\t{\n\t\tchild.parent = this;\n\t\t//if (!children.contains(child))\n\t\t//{\t\n\t\tchildren.add(child);\n\t\t//children.get(children.indexOf(child)-1).setBro(child);\n\t\t//}\n\t}", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void addChild(Node childnode)\n {\n children.add(childnode);\n }", "public void add(Node<E> child) {\n this.children.add(child);\n }", "public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }", "public void addChild(DecTreeNode child) {\r\n if (children != null)\r\n children.add(child);\r\n }", "void appendChild(Object child);", "public void addChild( ChildType child );", "@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}", "public void addChild(FileNode child) {\r\n child.setParent(this);\r\n children.add(child);\r\n childNum++;\r\n }", "public void add(QueryNode child);", "public void addChild(WSLNode node) {children.addElement(node);}", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Node node){\n children.add(node);\n \n }", "public void addChildNode (Node child) {\n\t\tObjects.requireNonNull(child);\n\t\t\n\t\tif(children == null) {\n\t\t\tchildren = new ArrayIndexedCollection();\t\n\t\t}\n\t\t\n\t\tchildren.add(child);\n\t}", "public void addChild(DecTreeNode child) {\n\t\tif (children != null) {\n\t\t\tchildren.add(child);\n\t\t}\n\t}", "public void addRootNode(Node child){\r\n this.child = child;\r\n }", "TreeNode addChild(TreeNode node);", "public void addChild(T child) {\n this.children.add(child);\n child.setParent(this);\n this.invalidate();\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "protected void addChild(PafDimMember childNode) throws PafException {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create a new ArrayList of child nodes, if this is the first child\r\n\t\t\tif (children == null) \r\n\t\t\t\tchildren = new ArrayList<PafDimMember>();\r\n\t\t\t\r\n\t\t\t// Set parent of child node to current PafBaseMember node\r\n\t\t\tchildNode.parent = this;\r\n\r\n\t\t\t// Add child node to PafBaseTree\r\n\t\t\tchildren.add(childNode);\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// throw Paf Exception\r\n\t\t\tString errMsg = \"Java Exception: \" + ex.getMessage();\r\n\t\t\tlogger.error(errMsg);\r\n\t\t\tPafException pfe = new PafException(errMsg, PafErrSeverity.Error, ex);\t\r\n\t\t\tthrow pfe;\r\n\t\t}\r\n\t}", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject addChild(\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object node);", "public void addChild(TreeNode child) {\n if (this.children!= null && !this.children.contains(child) && child != null)\n this.children.add(child);\n }", "public void add(TreeNode child){\r\n\t\t\tchildren.add(child);\r\n\t\t\t//child.setParent(this);\r\n\t\t}", "public void addChild(final IBiNode c) {\n // 1st child\n if (this.child == null) {\n this.setChild(c);\n } else {\n // 2nd - nth child\n this.child.addSibling(c);\n }\n }", "public void addChild(Character ch){\n children.put(ch,new Node(ch));\n }", "public void addChildAt(int index, FileNode child) {\r\n child.setParent(this);\r\n this.children.add(index, child);\r\n childNum++;\r\n }", "public void addChild( StringNode child )\r\n\t{\r\n\t\tthis.children.add( child );\r\n\t}", "public void addChild(Node node) {\n\t\tthis.children.add(node);\n\t}", "public void addChild(String branch, CommitNode child) {\r\n\t\tchildren.put(branch, child);\r\n\t}", "public void addChild(Node newChild) {\r\n\t\t\tchildren.reset();\r\n\t\t\t\r\n\t\t\tnewChild.setParent(this);\r\n\r\n\t\t\tif (children.size() == 0)\r\n\t\t\t\tchildren.add(newChild);\r\n\t\t\telse if (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\tchildren.insert(newChild);\r\n\t\t\telse {\r\n\t\t\t\twhile (children.hasNext()) {\r\n\t\t\t\t\tif (children.next().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\tif (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\t\tchildren.insert(newChild);\r\n\t\t\t\telse\r\n\t\t\t\t\tchildren.add(newChild);\r\n\t\t\t}\r\n\t\t}", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void addChild(Node child, int weight) {\n\t\tthis.children.put(child, weight);\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}", "protected void addChild(Layer child) {\n\t\tchildren.add(child);\n\t}", "public void addChild(TreeNode toAdd) {\n\t\t\tthis.children.add(toAdd);\n\t\t}", "public void addChild(AsNode child, double cost) {\n\t\tif(!children.contains(child)) {\n\t\t\tchildren.add(child);\n\t\t\tchildCost.put(child, cost);\n\t\t}\n\t}", "public void addChild(final ParseTreeNode child) {\r\n child.setParent(this);\r\n if (_children == null) { _children = new ArrayList<ParseTreeNode>(); }\r\n _children.add(child);\r\n }", "public void addChild(Element child) {\n super.addChild(child);\n if (child instanceof TerminalDevice) terminalDevice = (TerminalDevice)child;\n }", "public void addChild(BTreeNode<E> newChild) {\n\t\tint index = 0;\n\t\tfor (BTreeNode<E> node : children) {\n\t\t\tif (node == null || cmp.compare(newChild.getData(0), node.data.get(0)) > 0) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tchildren.add(index, newChild);\n\t\tnewChild.parent = this;\n\t}", "@Override\n\tpublic void insert(Node node) {\n\t\tchildren.add(node);\n\t}", "public void insertNodeInto(MutableTreeNode child, MutableTreeNode par, int i) {\n insertNodeInto(child, par);\n }", "public void addChild(int index, Node node) {\n\t\tthis.children.add(index, node);\n\t}", "protected void addChild(TreeNode child) {\n\t\t\tchildren.add(child);\n\t\t\tchild.parent = this;\n\t\t}", "abstract void addChild(SpanBranch span, int position);", "public void childAdder(Character ch)\n {\n node.put(ch,new Node());\n }", "public void add( Bacteria child) {\n\t\tinds.add(child);\n\t\tpopSize++;\n\t}", "public void addChild(final int childIndex) {\n if (!this.children.contains(childIndex)) {\n this.children.add(childIndex);\n }\n }", "@Override\n public boolean add(T parent, T child) {\n boolean result = false;\n if (this.root == null) {\n this.root = new Node<>(parent);\n this.root.add(new Node<>(child));\n result = true;\n this.modCount++;\n } else if (findBy(parent).isPresent()) {\n findBy(parent).get().add(new Node<>(child));\n result = true;\n this.modCount++;\n }\n return result;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private void addChild(final TWidget child) {\n children.add(child);\n\n if ((child.enabled)\n && !(child instanceof THScroller)\n && !(child instanceof TVScroller)\n ) {\n for (TWidget widget: children) {\n widget.active = false;\n }\n child.active = true;\n activeChild = child;\n }\n for (int i = 0; i < children.size(); i++) {\n children.get(i).tabOrder = i;\n }\n }", "void insertChild(K key, Node child) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\tif (loc >= 0) {\r\n\t\t\t\tchildren.set(childIndex, child);\r\n\t\t\t} else {\r\n\t\t\t\tkeys.add(childIndex, key);\r\n\t\t\t\tchildren.add(childIndex + 1, child);\r\n\t\t\t}\r\n\t\t}", "public boolean addChild(ChronologElement child) {\r\n return children.add(child);\r\n }", "public void addChild(TreeNode child)\r\n\t{\r\n child.setParent(this);\r\n\t\tm_children.addElement(child);\r\n\t}", "public Node appendNode(Node node);", "private void addChild(final INode node, final int insertionPoint) {\r\n if (children == null) {\r\n children = new ArrayList<INode>(DEFAULT_FILES_PER_DIRECTORY);\r\n }\r\n node.setParent(this);\r\n children.add(-insertionPoint - 1, node);\r\n\r\n if (node.getGroupName() == null) {\r\n node.setGroup(getGroupName());\r\n }\r\n }", "protected final void addChild(final XmlAntTask child) {\n\t\tchilds.add(child);\n\t\tchild.setParent(this);\n\t}", "public static void add(String parent, String child, node tree){\n\t\ttree = names.get(parent);\r\n\t\tnode tmp = new node(child);\r\n\t\tnames.put(child, tmp);\t\r\n\t\ttree.children.add(tmp);\r\n\t}", "public void addNode(Node node){subNodes.add(node);}", "public void addChild(IDirectory child) {\n children.add(child);\n }", "public DefaultMutableTreeNode addObject(GUIMain guiMn, Object child) {\n DefaultMutableTreeNode parentNode = null;\n TreePath parentPath = guiMn.myTree.getSelectionPath();\n\n if (parentPath == null) {\n parentNode = guiMn.simMain.rootNode;\n } else {\n parentNode = (DefaultMutableTreeNode) (parentPath.getLastPathComponent());\n }\n\n return addObject(guiMn, parentNode, child, true);\n }", "public void addChild(String value){\n\t\tInstructionNode child = new InstructionNode();\n\t\tchild.setMyRunValue(value);\n\t\tArrayList<InstructionNode> newChildren = new ArrayList<InstructionNode> ();\n\t\tnewChildren.add(child);\n\t\tgetHead().setMyChildren(newChildren);\n\t}", "public void addChild(Taxon child) {\n\t\tif (child != null) {\n\t\t\tchildren.add(child);\n\t\t}\n\t}", "private TrieNode addChild(char c) {\n TrieNode newChild = new TrieNode(c);\n children.add(newChild);\n return newChild;\n }", "public void addChild(Element child) {\n super.addChild(child);\n if (child instanceof LbInstances) lbInstances = (LbInstances)child;\n else if (child instanceof DataInstances) dataInstances = (DataInstances)child;\n }", "@Override\n public boolean add(E parent, E child) {\n Node tmp;\n boolean isAdded = true;\n\n if (parent == null || child == null) {\n isAdded = false;\n }\n //Add root and his child.\n if (root == null) {\n root = new Node(parent);\n root.children.add(new Node(child));\n } else {\n tmp = serchNode(parent, root);\n tmp.children.add(new Node(child));\n isAdded = true;\n\n }\n\n return isAdded;\n }", "@Override\r\n public void addChild (TreeNode node)\r\n {\r\n super.addChild(node);\r\n\r\n // Side effect for note, since the geometric parameters of the chord\r\n // are modified\r\n if (node instanceof Note) {\r\n reset();\r\n }\r\n }", "@Override\n public void addChild(IStatement n) {\n\t this._children.add(n);\n\t n.setParent(this);\n }", "public void addChild(MagicPattern child) {\n\t\tif (child != null) {\n\t\t\tthis.children.add(child);\n\t\t}\n\t}", "public Tree<T> addChild(T childVal)\n {\n Tree<T> child = new Tree<T>(childVal, this);\n this.children.add(child);\n return child;\n }", "public Node getChild();", "private void addNode(Node<E> node, E value) {\n if (node.children == null) {\n node.children = new ArrayList<>();\n }\n node.children.add(new Node<>(value));\n }", "@Override\n\t\tpublic void add(TiUIView child)\n\t\t{\n\t\t\tfinal View nativeView = getNativeView();\n\t\t\tif (nativeView != null) {\n\t\t\t\tsetNativeView(this.content);\n\t\t\t\tsuper.add(child);\n\t\t\t\tsetNativeView(nativeView);\n\t\t\t} else {\n\t\t\t\tsuper.add(child);\n\t\t\t}\n\t\t}", "public void addChild(char label, TrieNode<F> node) {\r\n trieNodeMap.put(label, node);\r\n numChildren++;\r\n }", "Node insertBefore(Node newChild, Node refChild);", "public GeoMindMapNode addChildNode(EuclidianBoundingBoxHandler addHandler) {\n\t\tNodeAlignment newAlignment = toAlignment(addHandler);\n\n\t\tGPoint2D newLocation = computeNewLocation(newAlignment);\n\t\tGeoMindMapNode child = new GeoMindMapNode(node.getConstruction(), newLocation);\n\t\tchild.setContentHeight(GeoMindMapNode.CHILD_HEIGHT);\n\t\tchild.setSize(GeoMindMapNode.MIN_WIDTH, GeoMindMapNode.CHILD_HEIGHT);\n\t\tchild.setParent(node, newAlignment);\n\t\tchild.setVerticalAlignment(VerticalAlignment.MIDDLE);\n\t\tchild.setBackgroundColor(child.getKernel().getApplication().isMebis()\n\t\t\t\t? GColor.MOW_MIND_MAP_CHILD_BG_COLOR : GColor.MIND_MAP_CHILD_BG_COLOR);\n\t\tchild.setBorderColor(child.getKernel().getApplication().isMebis()\n\t\t\t\t? GColor.MOW_MIND_MAP_CHILD_BORDER_COLOR : GColor.MIND_MAP_CHILD_BORDER_COLOR);\n\t\tchild.setLabel(null);\n\t\treturn child;\n\t}", "@Override\n public void childAdded(Attraction a) {\n Log.d(\"Ajq\",\"Child added called\");\n attractions.add(a);\n }", "private void addChild(String parent, String child, int mode)\n\t{\n\t\tif (!sub.containsKey(parent))\n\t\t{\n\t\t\tsub.put(parent, new ArrayList<String>());\n\t\t\tsmodes.put(parent, new ArrayList<Integer>());\n\t\t}\n\n\t\t((List<String>) sub.get(parent)).add(child);\n\t\t((List<Integer>) smodes.get(parent)).add(mode);\n\t}", "void addChild( JBurgPatternMatcher child )\n\t{\n checkPrecondition ( ! this.hasNaryTail(), \"Cannot add a subpattern after an n-ary subpattern.\");\n checkPrecondition ( null == child.parent, \"Child \" + child.toString() + \" already has a parent.\");\n \n child.positionInParent = new Integer(this.subPatterns.size());\n child.parent = this;\n this.subPatterns.add(child);\n\t}", "public XMLPath addChild(String childLocalName) {\r\n if (childLocalName == null) {\r\n throw new IllegalArgumentException(\"XMLPath child localName cannot be null.\");\r\n }\r\n XMLPath child = new XMLPath(childLocalName, this);\r\n this.childs.put(childLocalName, child);\r\n return child;\r\n }", "public void addFirstChild(Element parent, Element child) {\r\n\t\tNode firstChild = parent.getFirstChild();\r\n\t\tif (child.getNodeName() == firstChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, firstChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, parent.getFirstChild());\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void addChild(ParsedComponent parsedComponent) {\n children.put(parsedComponent.getName(), parsedComponent);\n }", "@Override\n public void addChild(PandoraBoxAdapter<T> sub) {\n if (sub == null)\n return;\n\n if (sub.hasBind2Parent()) {\n sub.removeFromOriginalParent();\n }\n\n onBeforeChanged();\n int groupIndex = subs.size();\n sub.setGroupIndex(groupIndex);\n\n long count = getDataCount();\n sub.setStartIndex((int) count);\n sub.notifyHasAddToParent(this);\n subs.add(sub);\n onAfterChanged();\n }", "public synchronized void addChild (TreeNode node)\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"addChild node=\" + node + \" for \" + this);\r\n }\r\n\r\n children.add(node);\r\n node.setParent(this);\r\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public void setChild(int position, Node n) {\r\n System.out.println(\"Attempt to add child to Variable\");\r\n }", "public void addChild(Node n) {\n\t\taddChild(n, (rand.nextDouble()*0.02 - 0.01));\n\t}", "private void insertChild(K key, Node child) {\r\n\r\n // binary search for correct index\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int child_indexing;\r\n\r\n // to check if the key is already in there and get the correct index after using collections.binarySearch\r\n if (correct_place >= 0) {\r\n child_indexing = correct_place + 1;\r\n } else {\r\n child_indexing = -correct_place - 1;\r\n }\r\n\r\n if (correct_place >= 0) {\r\n keys.add(child_indexing, key);\r\n children.add(child_indexing, child);\r\n } else {\r\n keys.add(child_indexing, key);\r\n children.add(child_indexing + 1, child);\r\n }\r\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}" ]
[ "0.7861205", "0.7550087", "0.7460716", "0.74600947", "0.74214816", "0.74210477", "0.7402519", "0.73965377", "0.7388908", "0.7385921", "0.7361007", "0.73604506", "0.73033917", "0.7283496", "0.7282507", "0.72756356", "0.72756356", "0.72756356", "0.72756356", "0.72756356", "0.72756356", "0.72756356", "0.7273084", "0.7243315", "0.7149538", "0.71218646", "0.71139526", "0.70756567", "0.7073048", "0.6968744", "0.6904138", "0.68853515", "0.6857924", "0.6847166", "0.68403316", "0.6825191", "0.67654884", "0.6751885", "0.67391807", "0.673871", "0.6737884", "0.67150605", "0.668955", "0.66884834", "0.66863245", "0.66820097", "0.6676799", "0.6658192", "0.6657734", "0.6637391", "0.6620043", "0.6612183", "0.6589688", "0.65857637", "0.6576081", "0.6547782", "0.65237576", "0.64498186", "0.643703", "0.642511", "0.64204943", "0.64181155", "0.6417188", "0.6374154", "0.6373407", "0.6370883", "0.63700813", "0.6345398", "0.63399136", "0.6339117", "0.6313088", "0.62763965", "0.6272942", "0.62601346", "0.62482697", "0.62469685", "0.6245087", "0.6224864", "0.62231576", "0.6219963", "0.6217479", "0.61941624", "0.6194052", "0.619196", "0.6189902", "0.61770695", "0.6151364", "0.6151124", "0.6137835", "0.61340386", "0.6133991", "0.6125499", "0.6125176", "0.61230683", "0.611003", "0.61072105", "0.60883415", "0.60750335", "0.60737485", "0.60690165" ]
0.6096811
96
initialize the children list
private void initChildList() { if (childList == null) { childList = new ArrayList<>(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init$Children() {\n }", "public void init$Children() {\n }", "public void init$Children() {\n }", "public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new List(), 2);\n }", "public void init$Children() {\n children = new ASTNode[2];\n setChild(new List(), 1);\n }", "public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new Opt(), 2);\n }", "public void init$Children() {\n children = new ASTNode[1];\n }", "protected void initializeChild() {\n\t}", "private void initSubNodes()\n {\n children = createSubNodes(false);\n attributes = createSubNodes(true);\n }", "private List<ExpandGroup> initData() {\n List<ExpandGroup> parentObjects = new ArrayList<>();\n\n // Initialize outside so we can use it more than once\n ExpandGroup mExpand;\n\n try {\n // For each ParentView\n for (int i = 0; i < myQueue.getInstance().getList().size(); i++) {\n // Create a ExpandGroup that will hold the children of each Parent (The assignment occur_name and due date)\n // ExpandGroup takes a String for the Title and a List<? extends ExpandableGroup>\n String Title = myQueue.getInstance().getList().get(i).toString();\n List<?> myChildList = myQueue.getInstance().getList().get(i).getMyTaskList();\n mExpand = new ExpandGroup(Title, myChildList);\n Log.d(\"childList\", \"myQueue.getInstance().getList().get(i).getMyTaskList() \" + \"of size \" + myQueue.getInstance().getList().get(i).getObjectList().size() + \" inserted into mExpand\");\n Log.d(\"childList\", myQueue.getInstance().getList().get(i).getMyTaskList().get(0).getClass().toString());\n\n parentObjects.add(mExpand);\n }\n } catch (IndexOutOfBoundsException e) {\n Log.d(\"QueueFragment\", \"Nothing in queue, catching \" + e.toString());\n }\n //We finished populating the parents so we can return the list\n return parentObjects;\n }", "public Node(int numberChildren){\n board = new Board();\n children = new Node[numberChildren];\n }", "public void reloadChildren() {\n // clear children list. If later none get created, then there shouldn't be any\n clearChildren();\n // check if budgetAccount has sub budgets\n List<BudgetAccountBE> subBudgets = refAcc.getDirectSubBudgets();\n int childCount = subBudgets.size();\n // only act, if referenceAccount has sub budgets\n if (childCount > 0) {\n int newLevel = hierarchyLevel + 1;\n // differentiate isLast for children\n for (int index = 0; index < childCount; index++) {\n BudgetAccountTableRow newRow = BudgetAccountTableRow.getInstance(parentActivity);\n children.add(newRow);\n newRow.init(budgetListener, subBudgets.get(index), (index == childCount -1), newLevel);\n }\n }\n }", "public DynamicModelPart buildChildren() {\n this.children.parallelStream().forEach(child -> {\n child.build();\n });\n return this;\n }", "protected abstract List<T> getChildren();", "@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}", "public InitListExpr(DataStore data, Collection<? extends ClavaNode> children) {\n super(data, children);\n\n // isOldFormat = false;\n // this.data = null;\n }", "void loadChilds() throws ApplicationException {\n\t\t\t// iterate over childs\n\t\t\tGenericIterator list = element.getChildren();\n\t\t\twhile (list.hasNext()) {\n\t\t\t\tnew Item(this.parentItem, (GenericObjectNode) list.next());\n\t\t\t}\n\t\t}", "@Override\n protected void refreshChildren() {\n }", "protected void populateChildren() throws MessagingException\n {\n connect();\n \n Folder[] sub = store.getDefaultFolder().list();\n addChildren(sub, 0);\n }", "protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }", "public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }", "public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}", "@Override\r\n\tpublic List<Node> getChildren() {\r\n\t\treturn null;\r\n\t}", "public void setChildren(List<State> aChildren);", "public List<RealObject> getChildren();", "public void init() {\n\t\tfor (Node node : nodes)\n\t\t\tnode.init();\n\t}", "public ArrayList getChildren()\n {\n return children;\n }", "@Override\n public List<TreeNode<N>> children() {\n return Collections.unmodifiableList(children);\n }", "public List<GameStateChild> getChildren() {\n return null;\n }", "protected int numChildren() {\r\n return 3;\r\n }", "public Collection<ChildType> getChildren();", "public int getChildCount() {return children.size();}", "public Runnable init(List<String> children, DataCallback cb) {\n\t\t\t\t\t\t\t\t\tthis.children = children;\n\t\t\t\t\t\t\t\t\tthis.cb = cb;\n\n\t\t\t\t\t\t\t\t\treturn this;\n\t\t\t\t\t\t\t\t}", "public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }", "private void initList() {\n\n }", "private void createChildren() {\n\t\t\n\t\tfor(int i=0;i<horizontal;i++) {\n\t\t\t\n\t\t\tAction a = new Action(i);\n\t\t\tif(!gameOver && actionIsValid(a)) {\n\t\t\t\t\n\t\t\t\tPlayer otherPlayer;\n\t\t\t\t\n\t\t\t\tif(player == Player.PLAYER_BLUE) {\n\t\t\t\t\totherPlayer = Player.PLAYER_RED;\n\t\t\t\t}else {\n\t\t\t\t\totherPlayer = Player.PLAYER_BLUE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPosition newPosition;\n\t\t\t\tnewPosition = new Position(a, ++moveCounter, otherPlayer, this);\n\t\t\t\tchildren.add(newPosition);\t\n\t\t\t}\n\t\t}\n\t}", "private void init() {\n this.listaObjetos = new ArrayList();\n this.root = null;\n this.objeto = new Tblobjeto();\n this.pagina = new Tblpagina();\n this.selectedObj = null;\n this.menus = null;\n this.subMenus = null;\n this.acciones = null;\n this.nodes = new ArrayList<TreeNode>();\n this.selectedObjeto = null;\n this.selectedTipo = null;\n this.renderPaginaForm = null;\n this.renderGrupoForm = null;\n this.selectedGrupo = null;\n this.populateTreeTable();\n }", "public DynamicModelPart buildChildrenUsingSeeds() {\n this.children.parallelStream().forEach(child -> {\n child.buildUsingSeeds();\n });\n return this;\n }", "public void init() {\n\t\t\tfor(int i=0; i<DBDef.getINSTANCE().getListeRelDef().size(); i++) {\n\t\t\t\tDBDef.getINSTANCE().getListeRelDef().get(i);\n\t\t\t\tHeapFile hp = new HeapFile(DBDef.getINSTANCE().getListeRelDef().get(i));\n\t\t\t\tthis.heapFiles.add(hp);\n\t\t\t}\n\t\t}", "public Node[] getChildren(){return children;}", "@Override\n protected void setChildrenEmptyFlags() {\n this.setIsRutaCollectionEmpty();\n }", "public List(String name) {\n super(name);\n children = new ArrayList<>();\n }", "public void setChildren(Vector children)\r\n\t{\r\n\t\tm_children = children;\r\n\t}", "public void setChildren(List<BTreeNode<E>> newChildren) {\n\t\t//not adding in order, but does not matter because list is empty, and you will only call this method when the children are in order\n\t\tchildren.addAll(newChildren);\n\t\tfor (BTreeNode<E> child: newChildren) {\n\t\t\tchild.parent = this;\n\t\t}\n\t}", "public Vector getChildren() {\n return null;\n }", "protected String[] doListChildren()\n {\n return (String[])m_children.toArray( new String[ m_children.size() ] );\n }", "@Override\n public int getNumChildren() {\n\t return this._children.size();\n }", "public ArrayList<Node> getChildren() { return this.children; }", "public JodeList children() {\n return new JodeList(node.getChildNodes());\n }", "public LG(){\n\t\tchildren = new LinkedHashMap<Loop, LinkedHashSet<Loop>>();\n\t\tparent = new LinkedHashMap<Loop, Loop>();\n\t\tloops = new LinkedHashSet<Loop>();\n\t\tloopCounter = new LinkedHashMap<Loop, Integer>();\n\t}", "private void initialize() {\r\n\r\n\t\tserverNode = new TreeParent(\"Servers\", \"Servers\", \"AA\", this);\r\n\t\tserverNode.setImageKey(\"System.gif\");\r\n\r\n\t\tnewServerNode = new TreeParent(\"NewServerWizard\", \"New Server\", \"AA\", this);\r\n\t\tnewServerNode.setImageKey(\"ApplicationFilter.gif\");\r\n\t\tnewServerNode.setExpandable(false);\r\n\t\tserverNode.addChild(newServerNode);\r\n\t\tnewServerNode.addChild(new TreeObject(\"Dummy\"));\r\n\t\r\n\t\tloadServers(serverNode);\r\n\r\n\t\tpreferenceNode = new TreeParent(\"Systems\", \"Preferences\", \"BB\", this);\r\n\t\tpreferenceNode.setImageKey(\"preference_page.gif\");\r\n\t\tpreferenceNode.addChild(new TreeObject(\"Dummy\"));\r\n\r\n\t\tinvisibleRoot = new TreeParent(\"\", \"InvisibleRoot\", \"AA\", this);\r\n\t\tinvisibleRoot.addChild(serverNode);\r\n\t\tinvisibleRoot.addChild(preferenceNode);\r\n\r\n\t}", "public ResultMap<BaseNode> listChildren();", "ArrayList<Expression> getChildren();", "protected void childInit()\n {\n }", "public PartialTreeList() {\r\n \trear = null;\r\n \tsize = 0;\r\n }", "@Override\n protected void setChildrenEmptyFlags() {\n this.setIsMenuRolListEmpty();\n }", "@Override\n protected void onLoadChildren() {\n String modelName = this.config.get(\"model\", String.class);\n if (modelName != null) {\n // Look up the model name in the model store\n \n }\n\n // This will initialize the attachments, including the one we added as a child node\n super.onLoadChildren();\n }", "public Collection<BaseGenerator> \n getChildren() \n {\n return Collections.unmodifiableCollection(pChildren.values());\n }", "public static void computeChildren() {\n\t\tArrayList<BNNode> children = new ArrayList<BNNode>();\n\t\t// For each node, build an array of children by checking which nodes have it as a parent.\n\t\tfor (BNNode node : nodes) {\n\t\t\tchildren.clear();\n\t\t\tfor (BNNode node2 : nodes) {\n\t\t\t\tif (node == node2)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (BNNode node3 : node2.parents)\n\t\t\t\t\tif (node3 == node)\n\t\t\t\t\t\tchildren.add(node2);\n\t\t\t}\n\t\t\tnode.children = new BNNode[children.size()];\n\t\t\tnode.children = (BNNode[]) children.toArray(node.children);\n\t\t}\n\t}", "public ArrayList<Node> getChildren(){\n return children;\n }", "public void setChildren(String children) {\n this.children = children;\n }", "@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }", "@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }", "private void getChildrenList(){\n try{\n children.clear();\n //get the children from the parent\n db.collection(\"Parents\").document(parentEmail).collection(\"children\")\n .get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if(task.isSuccessful()){\n for (QueryDocumentSnapshot document : task.getResult()) {\n //Log.d(TAG, document.getId() + \" => \" + document.getData());\n String id = document.getId();\n children.add(id);\n }\n adapter = new ArrayAdapter<String>(ParentHomeActivity.this, R.layout.act_list, children);\n lv_children_display.setAdapter(adapter);\n }\n }\n });\n }catch(Exception e){\n children = null;\n }\n }", "void expandChilds() {\n\t\t\tenumAndExpand(this.parentItem);\n\t\t}", "private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\n this.stockTree = new SearchTree<>(new StockComparator());\r\n this.ratingTree = new SearchTree<>(new RatingComparator());\r\n this.deliveryTree= new SearchTree<>(new DeliveryTimeComparator());\r\n\r\n this.foodArray = new ArrayQueue<>();\r\n this.restaurantArray = new ArrayQueue<>();\r\n\r\n // Fill arrays from property list.\r\n createFoodArray();\r\n arrayIterator.setCurrent(0); //Since the restaurantArray will use the same iterator\r\n createRestaurantArray();\r\n\r\n // Fill Binary Search Trees\r\n createFoodTrees();\r\n createRestaurantTrees();\r\n }", "public List<GuiElementBase> getChildren()\n\t\t{ return Collections.unmodifiableList(children); }", "public TreeList()\n {\n\t this.lst = new AVLTree();\n\t this.length = 0;\n }", "public void init() {\n l0 = new EmptyList();\n l1 = FListInteger.add(l0, new Integer(5));\n l2 = FListInteger.add(l1, new Integer(4));\n l3 = FListInteger.add(l2, new Integer(7));\n l4 = new EmptyList();\n l5 = FListInteger.add(l2, new Integer(7));\n }", "public ArrayList<ExpandableListItems_Child> getChildren()\n {\n return children;\n }", "@Override\n\tpublic int getChildrenNum() {\n\t\treturn children.size();\n\t}", "private void initChildren() {\n vbox = new Vbox();\n chkUseRawName = new Checkbox(\"Use the scientific names supplied with the records\");\n chkUseRawName.setChecked(false);\n\n chkUseRawName.addEventListener(\"onCheck\", new EventListener() {\n\n @Override\n public void onEvent(Event event) throws Exception {\n onCheck$chkUseRawName(event);\n }\n });\n autoComplete = new SpeciesAutoComplete();\n autoComplete.setAutodrop(true);\n autoComplete.setWidth(\"330px\");\n autoComplete.addEventListener(\"onChange\", new EventListener() {\n\n @Override\n public void onEvent(Event event) throws Exception {\n autoCompleteSelectionChanged(event);\n }\n\n });\n\n vbox.appendChild(chkUseRawName);\n vbox.appendChild(autoComplete);\n\n }", "public List<String> getChildren() {\n\t\treturn null;\n\t}", "public ArrayList<PiptDataElement> getChildren()\n {\n\treturn children;\n }", "public void setChildCount (int childCount) {\n this.childCount = childCount;\n }", "@SuppressWarnings(\"unchecked\")\n\t\tvoid init() {\n\t\t\tsetNodes(offHeapService.newArray(JudyIntermediateNode[].class, NODE_SIZE, true));\n\t\t}", "@Override\n\tpublic List<AbstractNode> getChildren()\n\t{\n\t\treturn new ArrayList<>(pairs.values());\n\t}", "public ObjectList<DynamicModelPart> getChildren() {\n return this.children;\n }", "public void removeChildren() {\r\n this.children.clear();\r\n childNum = 0;\r\n }", "@Override\n\tpublic List<Knoten> getChilds() {\n\t\treturn null;\n\t}", "public void clearChildren() {\r\n this.children = null;\r\n }", "private static void walkTree(Collection<String> children, Collection<String> list, TypeTree tree) {\n\t if (children != null) {\n\t\tlist.addAll(children);\n\t String[] kids = children.toArray(new String[children.size()]);\n\t\tfor (int i = 0; i< kids.length; i++) {\n\t\t walkTree(tree.classSet(kids[i]), list, tree);\n\t\t}\n\t }\n\t}", "@Override\n\tpublic void init() {\n\t\tsuper.init();\n\t\tadult = new MeritTableAdult();\n\t\tchildren = new MeritTableChildren();\n\t}", "public void dumpChildren ()\r\n {\r\n dumpChildren(0);\r\n }", "@Override\n public void setupList() {\n mSearchChildView.setupAdapter();\n mSearchChildView.setupRecyclerView();\n }", "public TreeNodeImpl(@NonNull List<NodeData> children) {\n mChildren = new ArrayList<>(children.size());\n for (NodeData child : children) {\n TreeNodeImpl childNode = new TreeNodeImpl(child);\n childNode.mParent = this;\n mChildren.add(childNode);\n }\n }", "public List<Node> getChildren() {\r\n\t\t\tchildren.reset();\r\n\t\t\treturn children;\r\n\t\t}", "@Override public void setChildren(BTreeNode[] children) {\n this.children = children;\n }", "protected TWidget() {\n children = new ArrayList<TWidget>();\n }", "public List<XML2JSONObject> getChildren() {\r\n return _childs;\r\n }", "public JodeList children(Predicate<Jode> filter) {\n return this.children().filter(filter);\n }", "private void addMenuChildren( MenuManager menuParent, List<XulComponent> children ) {\n for ( Element comp : children ) {\n\n // TODO\n /*\n * for (XulComponent compInner : ((SwtMenupopup) comp).getChildNodes()) { if(compInner instanceof XulMenu){\n * MenuItem item = new MenuItem(menuParent, SWT.CASCADE); Menu flyout = new Menu(shell, SWT.DROP_DOWN);\n * item.setMenu(flyout); addMenuChildren(flyout, compInner.getChildNodes()); } else {\n * \n * \n * \n * } }\n */\n }\n }", "@Override\n\tpublic void setChildren(TreeNode[] children) {\n\t\tthis.children = (CourseTreeNode[])children;\n\t}", "public void addChildren(List<HtmlMap<T>> children)\n\t{\n\t\tfor (HtmlMap<T> html : children)\n\t\t{\n\t\t\thtml.setParent(this);\n\t\t}\n\t\tthis.m_children.addAll(children);\n\t}", "public void setChildren(List<FileNode> children) {\r\n for(FileNode child : children)\r\n child.setParent(this);\r\n this.children = children;\r\n }", "@Override\n public LiveWebModel[] getChildren() {\n return pages;\n }", "public int getChildCount() { return 0; }", "public void setChildren(String children) {\n\t\tthis.children = children;\n\t}", "public HashMap<Integer, List<Integer>> getChildren() {\n\t\treturn children;\n\t}", "private void initialize() {\n\n\t\tint totalSets, iSet;\n\t\tInformationSet infoSet = null;\n\t\tTreeNode treeNode = null;\n\n\t\tArrayList informationSetList = efg.getInformationSets(iPlayer);\n\n\t\ttotalSets = informationSetList.size();\n\n\t\tmovesLists = new ArrayList[totalSets];\n\t\tprobsLists = new ArrayList[totalSets];\n\n\t\tfor (iSet = 0; iSet < totalSets; iSet++) {\n\t\t\tmovesLists[iSet] = new ArrayList();\n\t\t\tprobsLists[iSet] = new ArrayList();\n\t\t}\n\n\t\tfor (iSet = 0; iSet < totalSets; iSet++) {\n\t\t\tinfoSet = (InformationSet) informationSetList.get(iSet);\n\t\t\ttreeNode = infoSet.getTreeNode(0);\n\t\t\tmovesLists[iSet] = treeNode.getMovesList();\n\t\t}\n\t}" ]
[ "0.811518", "0.811518", "0.811518", "0.7964351", "0.7867116", "0.77047276", "0.7513181", "0.6842444", "0.6755835", "0.67530227", "0.6624845", "0.6604585", "0.65250933", "0.6481602", "0.63919973", "0.63822806", "0.6376085", "0.63161415", "0.6309728", "0.6259366", "0.6238618", "0.6237599", "0.62231296", "0.6215716", "0.62105656", "0.62105244", "0.6207018", "0.6192544", "0.61895233", "0.6170548", "0.6167081", "0.61621135", "0.61421514", "0.61299014", "0.6124032", "0.61193943", "0.6096603", "0.60924137", "0.6090598", "0.6076962", "0.6064694", "0.6064398", "0.6048435", "0.60446197", "0.6039016", "0.6032743", "0.6026788", "0.6010561", "0.60046", "0.60015464", "0.5992867", "0.5988258", "0.59821975", "0.598156", "0.59814334", "0.5969442", "0.59684104", "0.5967179", "0.5961461", "0.59574383", "0.5953308", "0.59519446", "0.5951797", "0.59345865", "0.59325606", "0.59278995", "0.5920522", "0.5916335", "0.5915604", "0.5911639", "0.5909543", "0.5906744", "0.5902172", "0.59009963", "0.5900357", "0.5889186", "0.5887065", "0.58854604", "0.58726555", "0.586149", "0.58590335", "0.5857943", "0.5857451", "0.5849348", "0.58368534", "0.5828704", "0.5819413", "0.5812523", "0.58084893", "0.5806378", "0.5804751", "0.58028483", "0.58014435", "0.5799428", "0.57903326", "0.57895", "0.57877475", "0.57848907", "0.5782349", "0.57814205" ]
0.83902895
0
delete the current node
public void deleteNode() { TreeNode pNode = this.getParentNode(); int id = this.getSelfId(); if (pNode != null) { pNode.deleteChildNode(id); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete() {\n this.root = null;\n }", "private void delete(Node next) {\n\t\t\n\t}", "public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}", "public void deleteNode ()\n {\n ConfigTreeNode node = _tree.getSelectedNode();\n ConfigTreeNode parent = (ConfigTreeNode)node.getParent();\n int index = parent.getIndex(node);\n ((DefaultTreeModel)_tree.getModel()).removeNodeFromParent(node);\n int ccount = parent.getChildCount();\n node = (ccount > 0) ?\n (ConfigTreeNode)parent.getChildAt(Math.min(index, ccount - 1)) : parent;\n if (node != _tree.getModel().getRoot()) {\n _tree.setSelectionPath(new TreePath(node.getPath()));\n }\n DirtyGroupManager.setDirty(group, true);\n }", "void deleteNode(ZVNode node);", "public void remove() {\n removeNode(this);\n }", "public static void deleteNode(int nodeData){\n }", "public static void delete(Nodelink node){\n\n Nodelink temp = node.next;\n node = null;\n\n node = temp;\n\n }", "public void deleteNode(int key){\n\t\t//System.out.println(\" in delete Node \");\n\t\tNode delNode = search(key);\n\t\tif(delNode != nil){\n\t\t\t//System.out.println(\" del \" + delNode.id);\n\t\t\tdelete(delNode);\n\t\t}else{\n\t\t\tSystem.out.println(\" Node not in RB Tree\");\n\t\t}\n\t}", "public void deleteNode (NodeId id) throws IOException\n\t{\n\t}", "public void deleteCurrent() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tif (curr == head) {\r\n\t\t\thead = head.link; // curr = curr.link\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tprev.link = curr.link; // Points over top of current\r\n\t\tcurr = curr.link;\r\n\r\n\t}", "public void removeNode()\n\t{\n\t\tif (parent != null)\n\t\t\tparent.removeChild(this);\n\t}", "void deleteTree(TreeNode node) \n {\n root = null; \n }", "public void deleteCurrent(){\r\n if(curr != null && prev != null){\r\n prev.link = curr.link;\r\n curr = curr.link;\r\n }\r\n else if(curr != null){\r\n head = head.link;\r\n curr = head;\r\n }\r\n\r\n }", "public void deleteCurrentJoueur(){\n\t\tElement elementPreviousToCurrent = this.getCurrentElement().getPrevious();\n\t\tElement elementNextToCurrent = this.getCurrentElement().getNext();\n\t\t\n\t\telementPreviousToCurrent.setNext(elementNextToCurrent);\n\t\telementNextToCurrent.setPrevious(elementPreviousToCurrent);\n\t\t\n\t\t// l'element suivant devient l'element courant (on passe au suivant)\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}", "private Node<E> nodeDelete(Node<E> current, E toDelete) {\n\t\tif (current == null)\n\t\t\treturn null;\n\t\tif (toDelete == current.data)\n\t\t\treturn current;\n\t\tif (((Comparable<E>) toDelete).compareTo((E) current.data) >= 0)\n\t\t\treturn nodeDelete(current.rightChild, toDelete);\n\t\telse\n\t\t\treturn nodeDelete(current.leftChild, toDelete);\n\t}", "public void deleteNode(Node n){\n\t\tn.item = n.next.item;\n\t\tNode temp = n.next.next;\n\t\t//delete(n.next);\n\t\tn.next = temp;\n\t\t\n\t\t\n\t}", "public String eraseNode() {\n\n String assist = lastIn.info;\n lastIn = lastIn.next;\n size--;\n return assist;\n }", "public void delete(int index) {\n\t\tNode node = getNode(index+1);\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\tnode.data = parentOfLast.right != null ? parentOfLast.right.data : parentOfLast.left.data;\n\t\tif (parentOfLast.right != null) {\n\t\t\tparentOfLast.right = null;\n\t\t}\n\t\telse {\n\t\t\tparentOfLast.left = null;\n\t\t}\n\t}", "public void deleteNext( DLLNode<T> current ){\n\t\t//if the following node exists\n\t\tif( current.getNext() != null ){\n\t\t\t//current node points to the node after\n\t\t\tcurrent.setNext( current.getNext().getNext() );\n\t\t\t//new node after now points back to current\n\t\t\tcurrent.getNext().setPrev( current );\n\t\t}\n\t\tsize--;\n\t\t\n\t}", "static void deleteNode(Node node){\n\t\tif(node.next==null){\r\n\t\t\tnode=null;\r\n\t\t}\r\n\t\tnode.data=node.next.data;\r\n\t\tnode.next=node.next.next;\r\n\t}", "public void delete(E e) {\n\t\tNode node = getNode(root, e);\n\t\tif (node == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\tif (parentOfLast.right != null) {\n\t\t\tnode.data = parentOfLast.right.data;\n\t\t\tparentOfLast.right = null;\n\t\t}\n\t\telse {\n\t\t\tnode.data = parentOfLast.left.data;\n\t\t\tparentOfLast.left = null;\n\t\t}\n\t\tsize--;\n\t}", "public void deleteNode(TreePath path) {\n \t\tSpatial node = (Spatial) path.getLastPathComponent();\n \t\ttreeModel.deleteNode(node);\n \t\trepaint();\n \t}", "@Override\r\n public void remove() {\n Node current = exp.head;\r\n if( current.next == null ){\r\n exp.head = null;\r\n }\r\n\r\n while( current.next.next != null ){\r\n current = current.next;\r\n }\r\n current.next = null; // current.next son elemani gosterir.\r\n\r\n }", "private void deleteNode(Node n) {\n n.next.pre = n.pre;\n n.pre.next = n.next;\n }", "@Override\n public void delete(K key){\n try {\n this.rootNode = deleteNode(this.rootNode, key);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }", "private void deleteNode(TSTNode<E> nodeToDelete) {\n if(nodeToDelete == null) return;\n nodeToDelete.data = null;\n \n while(nodeToDelete != null) {\n nodeToDelete = deleteNodeRecursion(nodeToDelete);\n }\n }", "@Override\n\tpublic void onPreNodeDelete(NodeModel oldParent, NodeModel selectedNode, int index) {\n\n\t}", "private void deleteNode(Node node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }", "public Node2 delete() {\n \tNode2 temp = first;\n\t first = first.nextLink;\n\t first.nextLink.prevLink = null;\n\t return temp;\n }", "public void removeNodeAfter() { cursor = cursor.getNext().getNext(); }", "public void delete(E data){\n \t// Preform a regular delete\n \t// Check to make sure the tree remains an RBT tree\n\tNode<E> z = search(data);\n\tNode<E> x = sentinel;\n\tNode<E> y = z;\n\tCharacter y_original_color = y.getColor();\n\tif (z.getLeftChild() == sentinel) {\n\t\tx = z.getRightChild();\n\t\ttransplant(z, z.getRightChild());\n\t} else if (z.getRightChild() == sentinel) {\n\t\tx = z.getLeftChild();\n\t\ttransplant(z, z.getLeftChild());\n\t} else {\n\t\ty = getMin(z.getRightChild());\n\t\ty_original_color = y.getColor();\n\t\tx = y.getRightChild();\n\t\tif (y.getParent() == z) {\n\t\t\tx.setParent(y);\n\t\t} else {\n\t\t\ttransplant(y, y.getRightChild());\n\t\t\ty.setRightChild(z.getRightChild());\n\t\t\ty.getRightChild().setParent(y);\n\t\t}\n\t\t\n\t\ttransplant(z, y);\n\t\ty.setLeftChild(z.getLeftChild());\n\t\ty.getLeftChild().setParent(y);\n\t\ty.setColor(z.getColor());\n\t}\n\t\n\tif (y_original_color == 'B') {\n\t\tfixDelete(x);\n\t}\n\t\t\n \n }", "public void delete(Node node){\n\t\t//System.out.println(\" in delete\");\n\t Node tempNode=node;\n\t Node other;\n\t String checkColour = tempNode.colour;\n\t if(node.left==nil){\n\t \tother=node.right;\n\t transferLink(node,node.right);\n\t }\n\t else if(node.right==nil){\n\t \tother=node.left;\n\t transferLink(node,node.left);\n\t }\n\t else{\n\t \ttempNode=node.right;\n\t while(tempNode.left!=nil)\n\t \ttempNode=tempNode.left;\n\t checkColour=tempNode.colour;\n\t other=tempNode.right;\n\t if(tempNode.parent==node)\n\t \tother.parent=tempNode;\n\t else{\n\t \ttransferLink(tempNode,tempNode.right);\n\t \ttempNode.right=node.right;\n\t \ttempNode.right.parent=tempNode;\n\t }\n\t transferLink(node,tempNode);\n\t tempNode.left=node.left;\n\t tempNode.left.parent=tempNode;\n\t tempNode.colour=node.colour;\n\t }\n\t //if the node to be deleted has back color we caused a violation and is needed to be fixed\n\t if(checkColour==\"Black\")\n\t \tfixViolationDelete(other);\n\t}", "private Node delete(Order ord2) {\n\t\treturn null;\n\t}", "public void cutNode ()\n {\n copyNode();\n deleteNode();\n }", "public void dies(){\n currentNode.deleteAnt(this);\n \n }", "public void removeCurrent( )\r\n {\r\n if(isCurrent() != true){\r\n \t throw new IllegalStateException (\"no current element\");// Implemented by student.\r\n }\r\n else{ \r\n if(precursor != null){\r\n \t precursor.removeNodeAfter();\r\n if(cursor.getLink() == null){\r\n \t\r\n \t cursor = null;\r\n \t tail = precursor;\r\n }\r\n else{\r\n \tprecursor = cursor; \r\n cursor = cursor.getLink();\r\n }\r\n \t \r\n }\r\n else{\r\n \thead = head.getLink();\r\n cursor = head;\r\n }\r\n manyNodes--; \r\n }\r\n \t\r\n }", "public void delete(Node ntd) {\n if (ntd == null) {\n System.out.println(\"No node to delete\");\n } else {\n ntd.data = ntd.next.data;\n ntd.next = ntd.next.next;\n }\n }", "public void delContextNodes();", "public void deleteNext() {\n if(getNext() != null){\n setNext( getNext().getNext());\n }\n }", "@objid (\"808c0839-1dec-11e2-8cad-001ec947c8cc\")\n @Override\n public void delete() {\n // List children from the end to avoid reordering of the other GMs\n for (int i = this.children.size() - 1; i >= 0; i--) {\n GmNodeModel child = this.children.get(i);\n child.delete();\n \n // When several elements have been deleted consecutively, fix the next index\n if (i > this.children.size()) {\n i = this.children.size();\n }\n }\n \n assert (this.children.isEmpty()) : \"All children should have been deleted:\" + this.children;\n \n super.delete();\n }", "protected void deleteNode(INode node) {\n\n if (node != null) {\n\n this.ids.remove(node.getID());\n this.nodeMap.remove(node.getID());\n }\n }", "public void delete(int id) { \n\t\tint save = findPosition(id);\n\t\t\n\t\tif (save == numOfNode - 1) {\n\t\t\tnode [save] = null;\n\t\t\tnumOfNode--;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// dich dan cac node vao\n\t\tfor (int i = save; i < numOfNode - 1; i++) {\n\t\t\tnode[i] = node[i + 1];\n\t\t}\n\t\t\n\t\tnode[numOfNode - 1] = null;\n\t\tnumOfNode--;\n\t}", "@Override\n public synchronized boolean deleteNode(Node n){\n if((n.getNodes().size() > 0)) {\n return false;\n }\n //delete all node-tags\n for(Tag t : n.getTags()){\n removeNodeTag(n,t);\n }\n boolean dbResult = dbHandler.deleteNode(n.getID());\n if(dbResult) {\n this.allNodes.remove(n);\n return true;\n }\n else {\n return false;\n }\n }", "private void deleteLastNode() {\n if (head == null) {\n return;\n }\n ListNode current = head;\n while (current.next.next != null) {\n current = current.next;\n }\n current.next = null;\n }", "public void onRemoveNode(Node node) {\n\t}", "public void deleteNode(int data) {\n\t\tNode currentNode = headNode;\n\t\tNode previousNode = headNode;\n\t\tif(currentNode.getData()==data) {\n\t\t\theadNode = currentNode.getNextNode(); \n\t\t\treturn;\n\t\t} else {\n\t\t\twhile(currentNode.getNextNode()!=null) {\n\t\t\t\tpreviousNode = currentNode;\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\t\n\t\t\t\tif(currentNode.getData()==data) {\n\t\t\t\t\tpreviousNode.setNextNode(currentNode.getNextNode());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the last element is the element we are looking for \n\t\t\tif(currentNode.getData()==data) {\n\t\t\t\tcurrentNode = null;\n\t\t\t}\n\t\t}\n\t}", "private void delete() {\n\n\t}", "public void deleteNode(String node) {\n nodeRepository.delete(new Node(node));\n }", "public void removeNodeAfterThis() {\r\n\t\tif ( link != null ) {\r\n\t\t\tlink = link.link;\r\n\t\t} // end precondition\r\n\t}", "public void deleteNode(INode node) {\r\n\t\t// first delete the node from the children of its parent\r\n\t\tINode parent = node.getParent();\r\n\t\tif (parent != null) {\r\n\t\t\tparent.getChildren().remove(node);\r\n\t\t}\r\n\t\t// then remove the node from the list\r\n\t\tnodeList.remove(node);\r\n\t}", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@DELETE\n\t@Produces(\"application/json\")\n\tpublic Response deleteGraphNodes() {\n\t\tcurrentGraph.getNodes().clear();\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(DB.grafos)\n\t\t\t\t\t.build();\n\t}", "public void freeNode(final int id){\n\t\t//android.util.Log.d(TAG,\"freeNodes(\"+id+\")\");\n\t\tthis.nodes.delete(id);\n\t}", "void removeNode(NodeKey key);", "public void delete(Node<T> x) {\n decreaseKey(x, min.key);\n extractMin();\n }", "@Override\n\tpublic void delete()\n\t{\n\t\tif (!isAtEnd()) right.pop();\n\t}", "public void deleteFirst() {\n\t\t\n\t\tif (head !=null) {\n\t\t\t// we have 1 or more node in LL\n\t\t\t\n\t\t\t// check if we have only 1 node\n\t\t\tif(this.head.next == null) {\n\t\t\t\t// yes we have onlu 1 node in LL\n\t\t\t\t//delete that node and make head = null\n\t\t\t\tNode temp = this.head;\n\t\t\t\tthis.head = null;\n\t\t\t\t\n\t\t\t\t// java dont have delete.... so just make object ref as null\n\t\t\t\t// GC will delete this object ASAP\n\t\t\t\ttemp.next = null;\n\t\t\t\ttemp = null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// we have more than 1 node\n\t\t\t\tNode temp = this.head;\n\t\t\t\tthis.head =temp.next;\n\t\t\t\t\n\t\t\t\ttemp.next= null;\n\t\t\t\ttemp=null;\n\t\t\t}\n\t\t}\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "public void wsdelete_node(String name) throws HibernateException \r\n\t\t\t\t{ \r\n\t\t\t\t\tNode node_del = null; \r\n\t\t\t\t\tString i=null;\r\n\t\t\t\t\tlong id_node=0;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t try \r\n\t\t\t\t\t { \r\n\t\t\t\t\t iniciaOperacion(); \r\n\r\n\t\t\t\t\t i= sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name ='\"+name+\"'\").uniqueResult().toString();\r\n\t\t\t\t\t \t //una vez encontrado el id del user puedo buscarlo\r\n\t\t\t\t\t \t id_node= Integer.parseInt(i);\r\n\t\t\t\t\t \t node_del = (Node) sesion.get(Node.class, id_node); \t \r\n\t\t\t\t\t sesion.delete(node_del); //le pasamos todo el objeto a eliminar\r\n\t\t\t\t\t tx.commit(); \r\n\t\t\t\t\t } catch (HibernateException he) \r\n\t\t\t\t\t { \r\n\t\t\t\t\t manejaExcepcion(he); \r\n\t\t\t\t\t throw he; \r\n\t\t\t\t\t } finally \r\n\t\t\t\t\t { \r\n\t\t\t\t\t sesion.close(); \r\n\t\t\t\t\t } \r\n\t\t\t\t\t }", "void deleteFromFirst(){\r\n\t\tif (start==null){\r\n\t\t\tSystem.out.print(\"LL is empty\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tnode temp=start;\r\n\t\t\tstart=start.next;\r\n\t\t\tSystem.out.print(temp.data+\" is going to be deleted\");\r\n\t\t\ttemp=null;\r\n\t\t}\r\n\t}", "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "void deleteTreeRef(TreeNode nodeRef) \n { \n \tif(nodeRef == null) return;\n \t\n \t\n \tdeleteTreeRef(nodeRef.left);\n\n \tdeleteTreeRef(nodeRef.right);\n \t\n \t\n \t System.out.println(\"Deleting node:\" + nodeRef.val);\n \t deleteTree(nodeRef); \n \n nodeRef=null; \n }", "public void delete(Integer data) {\n ArrayList<Node> parents = new ArrayList<>();\n Node nodeDel = this.root;\n Node parent = this.root;\n Node imBalance;\n Integer balanceFactor;\n boolean isLeftChild = false;\n if (nodeDel == null) {\n return;\n }\n while (nodeDel != null && !nodeDel.getData().equals(data)) {\n parent = nodeDel;\n if (data < nodeDel.getData()) {\n nodeDel = nodeDel.getLeftChild();\n isLeftChild = true;\n } else {\n nodeDel = nodeDel.getRightChild();\n isLeftChild = false;\n }\n parents.add(nodeDel);\n }\n\n if (nodeDel == null) {\n return;\n// delete a leaf node\n } else if (nodeDel.getLeftChild() == null && nodeDel.getRightChild() == null) {\n if (nodeDel == root) {\n root = null;\n } else {\n if (isLeftChild) {\n parent.setLeftChild(null);\n } else {\n parent.setRightChild(null);\n }\n }\n }\n// deleting a node with degree of one\n else if (nodeDel.getRightChild() == null) {\n if (nodeDel == root) {\n root = nodeDel.getLeftChild();\n } else if (isLeftChild) {\n parent.setLeftChild(nodeDel.getLeftChild());\n } else {\n parent.setRightChild(nodeDel.getLeftChild());\n }\n } else if (nodeDel.getLeftChild() == null) {\n if (nodeDel == root) {\n root = nodeDel.getRightChild();\n } else if (isLeftChild) {\n parent.setLeftChild(nodeDel.getRightChild());\n } else {\n parent.setRightChild(nodeDel.getRightChild());\n }\n }\n // deleting a node with degree of two\n else {\n Integer minimumData = minimumData(nodeDel.getRightChild());\n delete(minimumData);\n nodeDel.setData(minimumData);\n }\n parent.setHeight(maximum(height(parent.getLeftChild()), height(parent.getRightChild())));\n balanceFactor = getBalance(parent);\n if (balanceFactor <= 1 && balanceFactor >= -1) {\n for (int i = parents.size() - 1; i >= 0; i--) {\n imBalance = parents.get(i);\n balanceFactor = getBalance(imBalance);\n if (balanceFactor > 1 || balanceFactor < -1) {\n if (imBalance.getData() > parent.getData()) {\n parent.setRightChild(rotateCase(imBalance, data, balanceFactor));\n } else\n parent.setLeftChild(rotateCase(imBalance, data, balanceFactor));\n break;\n }\n }\n }\n }", "public void deleteNext( LinkedListNode<T> currentNode )\n {\n //update pointer of the current node to the next next\n currentNode.setNext(currentNode.getNext().getNext());\n }", "public void delContextNode(XDI3SubSegment arcXri);", "public void deleteNode(int index) {\n\t\tNode n = head;\n\t\tif(index == 0){\n\t\t\thead = head.next;\n\t\t}else{\n\t\t\tfor(int i=0 ;i<index-1 ;i++){\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\tNode n1 = n.next;\n\t\t\tn.next = n1.next;\n\t\t}\n\t}", "private void deleteFirstNode() {\n if (head == null) {\n return;\n }\n ListNode current = head;\n current = current.next;\n head.next = null;\n head = current;\n }", "public abstract void removeChild(Node node);", "private BinaryNode<E> _delete(BinaryNode<E> node, E e) {\n\t\tif (node == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (comparator.compare(e, node.getData()) < 0) // <, so go left\n\t\t\tnode.setLeftChild(_delete(node.getLeftChild(), e));// recursive call\n\t\telse if (comparator.compare(e, node.getData()) > 0) // >, so go right\n\t\t\tnode.setRightChild(_delete(node.getRightChild(), e));// recursive call\n\t\telse { // FOUND THE NODE\n\t\t\tfoundNode = true;\n\t\t\tnode = _deleteNode(node);\n\t\t}\n\t\treturn node;\n\t}", "public void deleteItem(int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tDefaultMutableTreeNode root = (TreeNode) model.getRoot();\n\t\troot.remove(index);\n\t\tmodel.reload();\n\t}", "public int delete(int k)\r\n\t{\r\n\t\tIAVLNode node = searchFor(this.root, k);\r\n\t\tIAVLNode parent;\r\n\t\tif(node==root)\r\n\t\t\tparent=new AVLNode(null);\r\n\t\telse\r\n\t\t\tparent=node.getParent();\r\n\t\t\r\n\t\tIAVLNode startHieghtUpdate = parent; // this will be the node from which we'll start updating the nodes' hieghts\r\n\t\t\r\n\t\tif (!node.isRealNode())\r\n\t\t\treturn -1;\r\n\t\t\r\n\t\t//updating the maximum and minimum fields\r\n\t\tif (node == this.maximum)\r\n\t\t\tthis.maximum = findPredecessor(node);\r\n\t\telse\r\n\t\t\tif (node == this.minimum)\r\n\t\t\t\tthis.minimum = findSuccessor(node); \r\n\t\t\r\n\t\t//if the node we wish to delete is a leaf\r\n\t\tif (!node.getLeft().isRealNode()&&!node.getRight().isRealNode())\r\n\t\t{\r\n\t\t\tif (node == parent.getLeft())\r\n\t\t\t\tparent.setLeft(node.getRight());\r\n\t\t\telse\r\n\t\t\t\tparent.setRight(node.getRight());\r\n\t\t\tnode.getRight().setParent(parent);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t //if the node we wish to delete is unary:\r\n\t\t\tif (node.getLeft().isRealNode()&&!node.getRight().isRealNode()) //only left child\r\n\t\t\t{\r\n\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\tparent.setLeft(node.getLeft());\r\n\t\t\t\telse\r\n\t\t\t\t\tparent.setRight(node.getLeft());\r\n\t\t\t\tnode.getLeft().setParent(parent);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif (node.getRight().isRealNode()&&!node.getLeft().isRealNode()) //only right child\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\t\tparent.setLeft(node.getRight());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tparent.setRight(node.getRight());\r\n\t\t\t\t\tnode.getRight().setParent(parent);\r\n\t\t\t\t\t}\r\n\t\t\t\t//if the node we wish to delete is a father of two\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t\tIAVLNode suc = findSuccessor(node);\r\n\t\t\t\t\t\tIAVLNode sucsParent = suc.getParent();\r\n\t\t\t\t\t\t//deleting the successor of the node we wish to delete\r\n\t\t\t\t\t\tif (suc == sucsParent.getLeft())\r\n\t\t\t\t\t\t\tsucsParent.setLeft(suc.getRight());\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tsucsParent.setRight(suc.getRight());\r\n\t\t\t\t\t\tsuc.getRight().setParent(sucsParent);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//inserting the successor in it's new place (the previous place of the node we deleted)\r\n\t\t\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\t\t\tparent.setLeft(suc);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tparent.setRight(suc);\r\n\t\t\t\t\t\tsuc.setParent(parent);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// node's children are now his scuccessor's children\r\n\t\t\t\t\t\tsuc.setRight(node.getRight());\r\n\t\t\t\t\t\tsuc.setLeft(node.getLeft());\r\n\t\t\t\t\t\tsuc.getRight().setParent(suc);\r\n\t\t\t\t\t\tsuc.getLeft().setParent(suc);\r\n\t\t\t\t\t\t//now we check if the successor of the node we wanted to delete was his son\r\n\t\t\t\t\t\tif (node != sucsParent) // the successor's parent was the deleted node (which is no longer part of the tree)\r\n\t\t\t\t\t\t\tstartHieghtUpdate = sucsParent;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tstartHieghtUpdate = suc;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//if we wish to delete the tree's root, then we need to update the tree's root to a new node\r\n\t\tif (node == this.root) \r\n\t\t{\r\n\t\t\tthis.root = parent.getRight();\r\n\t\t\tthis.root.setParent(null);\r\n\t\t}\r\n\t\t\r\n\t\tint moneRot = HieghtsUpdating(startHieghtUpdate);\r\n\t\treturn moneRot;\r\n\t}", "public void deleteFirstNode(){\n if(head==null){\n System.out.println(\"There is nothing to DELETE! Empty List!\");\n }if(head.next==null){\n head = null;\n }else{\n head = head.next;\n }\n }", "public void deleteNode(ListNode node) {\n node.val = node.next.val;\n node.next = node.next.next;\n }", "public void deleteNode(ListNode node) {\n node.val = node.next.val;\n node.next = node.next.next;\n }", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "private void deleteTree(tnode root){\n if (root != null)\n root = null;\n }", "public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}", "public void deleteLastNode(){\n if(head==null){\n System.out.println(\"There is nothing to DELETE! Empty List!\");\n }else if(head.next==null){\n head = null;\n }else{\n //Important !\n Node last = head;\n while(last.next.next!=null){\n last = last.next;\n }\n last.next = null;\n }\n }", "public void delete() {\n\n\t}", "void delete()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tdeleteFront(); //deletes the front if the cursor is at the front\n\n\t\t}\n\t\telse if(cursor == back)\n\t\t{\n\t\t\tdeleteBack(); //deletes the back if the cursor is at the back\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcursor.prev.next=cursor.next; \n\t\t\tcursor.next.prev=cursor.prev;\n\t\t\tcursor = null; \n\t\t\tindex = -1;\n\t\t\tlength--;\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void del() {\n\t\ttarget.del();\n\t}", "private void delete(Node curr, int ID, AtomicReference<Node> rootRef) {\n\t\tif(curr == null || curr.isNull) {\n return;\n }\n if(curr.ID == ID) {\n if(curr.right.isNull || curr.left.isNull) {\n deleteDegreeOneChild(curr, rootRef);\n } else {\n Node n = findSmallest(curr.right);\n \tcurr.ID = n.ID;\n curr.count = n.count;\n delete(curr.right, n.ID, rootRef);\n }\n }\n if(curr.ID < ID) {\n delete(curr.right, ID, rootRef);\n } else {\n delete(curr.left, ID, rootRef);\n }\n\t}", "public Node delete() {\r\n Node response = null;\r\n // checking if list contain any node\r\n if (head != null) {\r\n // to delete the last node, we have to reach the second last node, and set its next node reference to null\r\n // assigning head to temp\r\n Node temp = head;\r\n // to store reference of previous node, we will use this node to delete last node by setting its next node as null\r\n Node previous = null;\r\n while (temp.getNext() != null) {\r\n previous = temp;\r\n // updating temp\r\n temp = temp.getNext();\r\n }\r\n // getting data from last node\r\n response = temp;\r\n // now previous is pointing to second last node\r\n // if there only one node in the list, then update head\r\n if (previous != null) {\r\n previous.setNext(null);\r\n } else {\r\n head = null;\r\n }\r\n }\r\n return response;\r\n }", "@Override\n\tpublic void deleteNode(String nodeId) {\n\t\tNode node = (Node) hibernatedao.queryData(nodeId, Node.class);\n\t\thibernatedao.delete(null, node);\n\t}", "private void delete(BTreeNode<T> currentNode, I id) {\n int indexKey = findIndexKey(currentNode, id);\n\n if (indexKey != -1) {\n if (currentNode.isLeaf()) {\n removeFromLeaf(currentNode, indexKey);\n } else {\n //TODO: Remover dato de nodo que no sea hoja\n removeFromNonLeaf(currentNode, indexKey);\n }\n\n if (currentNode != root && currentNode.getNumKeys() < 2) {\n checkMinKeys(currentNode);\n }\n } else {\n if (currentNode.isLeaf()) {\n System.out.println(\"No existe en el arbol\");\n } else {\n int indexChild = findChildOrIndex(currentNode, id);\n\n delete(currentNode.getChild(indexChild), id);\n }\n }\n }", "public void deleteSelection() {\r\n /* Delete the node */\r\n try {\r\n deleteNode();\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Delete the edge */\r\n try {\r\n deleteEdge();\r\n } catch (NullPointerException e2) {\r\n }\r\n /* Reload the scroll */\r\n scrollPane().doLayout();\r\n }", "public void clear( CachedNode node );", "@Override\n\tpublic TreeNode remove() {\n\t\treturn null;\n\t}", "public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }", "public void delete(Key key) {\n\troot = delete(root, key);\t\n}", "public boolean delete(String name)\r\n\t{\r\n\t\t// Find the location of the Node with the search method and assign it to current\r\n\t\tNode current = search(name);\r\n\t\t\r\n\t\t// Return False if the Node was not found\r\n\t\tif(current == null)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Special case of deleting the root Node\r\n\t\tif(current == getRoot())\r\n\t\t{\r\n\t\t\t// Root has no children (aka is a leaf)\r\n\t\t\tif(getRoot().isLeaf())\r\n\t\t\t{\r\n\t\t\t\t// Deleting the Root (aka destroying the Binary Tree)\r\n\t\t\t\tdestroy();\r\n\t\t\t}\r\n\t\t\t// Root only has a left child\r\n\t\t\telse if(getRoot().getRightChild() == null)\r\n\t\t\t{\r\n\t\t\t\t// Make the left child of the deleted Root the new Root\r\n\t\t\t\tsetRoot(current.getLeftChild());\r\n\t\t\t\tcurrent.getLeftChild().setParent(null);\r\n\t\t\t\tdecrementCounter();\r\n\t\t\t}\r\n\t\t\t// Root only has a right child\r\n\t\t\telse if(getRoot().getLeftChild() == null)\r\n\t\t\t{\r\n\t\t\t\t// Make the right child of the deleted Root the new Root\r\n\t\t\t\tsetRoot(current.getRightChild());\r\n\t\t\t\tcurrent.getRightChild().setParent(null);\r\n\t\t\t\tdecrementCounter();\r\n\t\t\t}\r\n\t\t\t// Root has two children\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Find the minimum of the Right Subtree of the Node to delete to use as the replacement\r\n\t\t\t\tNode minimum = findMinimum(current.getRightChild());\r\n\t\t\t\t\r\n\t\t\t\t// Copy the String from the minimum Node to the original Node we were supposed to delete\r\n\t\t\t\tcurrent.setName(minimum.getName());\r\n\t\t\t\t\r\n\t\t\t\t// Delete what used to be the minimum from the Tree\r\n\t\t\t\t// The minimum is the right child of its parent\r\n\t\t\t\tif(minimum.getParent().getRightChild() == minimum)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Minimum by definition cannot have a left child, however:\r\n\t\t\t\t\t// The minimum has no children\r\n\t\t\t\t\tif(minimum.getRightChild() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Just delete the minimum\r\n\t\t\t\t\t\tminimum.getParent().setRightChild(null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// The minimum has a right child\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Delete the minimum but connect its child and its parent\r\n\t\t\t\t\t\tminimum.getParent().setRightChild(minimum.getRightChild());\r\n\t\t\t\t\t\tminimum.getRightChild().setParent(minimum.getParent());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Node was deleted so adjust the counter accordingly\r\n\t\t\t\t\tdecrementCounter();\r\n\t\t\t\t}\r\n\t\t\t\t// The minimum is the left child of its parent\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// Minimum by definition cannot have a left child, however:\r\n\t\t\t\t\t// The minimum has no children\r\n\t\t\t\t\tif(minimum.getRightChild() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Just delete the minimum\r\n\t\t\t\t\t\tminimum.getParent().setLeftChild(null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// The minimum has a right child\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Delete the minimum but connect its child and its parent\r\n\t\t\t\t\t\tminimum.getParent().setLeftChild(minimum.getRightChild());\r\n\t\t\t\t\t\tminimum.getRightChild().setParent(minimum.getParent());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Node was deleted so adjust the counter accordingly\r\n\t\t\t\t\tdecrementCounter();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}// END special root case\r\n\t\t// Deleting any other Node besides the root\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Node to delete has no children (aka is a leaf)\r\n\t\t\tif(current.isLeaf())\r\n\t\t\t{\r\n\t\t\t\t// Delete the Node by finding out what type of child it is\r\n\t\t\t\t// Node is a left child\r\n\t\t\t\tif(current.getParent().getLeftChild() == current)\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrent.getParent().setLeftChild(null);\r\n\t\t\t\t}\r\n\t\t\t\t// Node is a right child\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrent.getParent().setRightChild(null);\r\n\t\t\t\t}\r\n\t\t\t\t// Node was deleted so adjust the counter accordingly\t\r\n\t\t\t\tdecrementCounter();\r\n\t\t\t}\r\n\t\t\t// Node to delete only has a left child\r\n\t\t\telse if(current.getRightChild() == null)\r\n\t\t\t{\r\n\t\t\t\t// Connect the Node to delete's parent and left child\r\n\t\t\t\t// Need to first find out what type of child the Node to delete is\r\n\t\t\t\t// Node is a left child\r\n\t\t\t\tif(current.getParent().getLeftChild() == current)\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrent.getLeftChild().setParent(current.getParent());\r\n\t\t\t\t\tcurrent.getParent().setLeftChild(current.getLeftChild());\r\n\t\t\t\t}\r\n\t\t\t\t// Node is a right child\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrent.getLeftChild().setParent(current.getParent());\r\n\t\t\t\t\tcurrent.getParent().setRightChild(current.getLeftChild());\r\n\t\t\t\t}\r\n\t\t\t\t\t// Node was deleted so adjust the counter accordingly\r\n\t\t\t\t\tdecrementCounter();\r\n\t\t\t}\r\n\t\t\t// Node to delete only has a right child\r\n\t\t\telse if(current.getLeftChild() == null)\r\n\t\t\t{\r\n\t\t\t\t// Connect the Node to delete's parent and right child\r\n\t\t\t\t// Need to first find out what type of child the Node to delete is\r\n\t\t\t\t// Node is a left child\r\n\t\t\t\tif(current.getParent().getLeftChild() == current)\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrent.getRightChild().setParent(current.getParent());\r\n\t\t\t\t\tcurrent.getParent().setLeftChild(current.getRightChild());\r\n\t\t\t\t}\r\n\t\t\t\t// Node is a right child\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrent.getRightChild().setParent(current.getParent());\r\n\t\t\t\t\tcurrent.getParent().setRightChild(current.getRightChild());\r\n\t\t\t\t}\r\n\t\t\t\t\t// Node was deleted so adjust the counter accordingly\r\n\t\t\t\t\tdecrementCounter();\r\n\t\t\t}\r\n\t\t\t// Node to delete has two children\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Find the minimum of the Right Subtree of the Node to delete to use as the replacement\r\n\t\t\t\tNode minimum = findMinimum(current.getRightChild());\r\n\t\t\t\t\r\n\t\t\t\t// Copy the String from the minimum Node to the Node we were supposed to delete\r\n\t\t\t\tcurrent.setName(minimum.getName());\r\n\t\t\t\t\r\n\t\t\t\t// Delete what used to be the minimum from the Tree\r\n\t\t\t\t// The minimum is the right child of its parent\r\n\t\t\t\tif(minimum.getParent().getRightChild() == minimum)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Minimum by definition cannot have a left child, however:\r\n\t\t\t\t\t// The minimum has no children\r\n\t\t\t\t\tif(minimum.getRightChild() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Just delete the minimum\r\n\t\t\t\t\t\tminimum.getParent().setRightChild(null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// The minimum has a right child\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Delete the minimum but connect its child and its parent\r\n\t\t\t\t\t\tminimum.getParent().setRightChild(minimum.getRightChild());\r\n\t\t\t\t\t\tminimum.getRightChild().setParent(minimum.getParent());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Node was deleted so adjust the counter accordingly\r\n\t\t\t\t\tdecrementCounter();\r\n\t\t\t\t}\r\n\t\t\t\t// The minimum is the left child of its parent\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// Minimum by definition cannot have a left child, however:\r\n\t\t\t\t\t// The minimum has no children\r\n\t\t\t\t\tif(minimum.getRightChild() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Just delete the minimum\r\n\t\t\t\t\t\tminimum.getParent().setLeftChild(null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// The minimum has a right child\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Delete the minimum but connect its child and its parent\r\n\t\t\t\t\t\tminimum.getParent().setLeftChild(minimum.getRightChild());\r\n\t\t\t\t\t\tminimum.getRightChild().setParent(minimum.getParent());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Node was deleted so adjust the counter accordingly\r\n\t\t\t\t\tdecrementCounter();\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}// END of deleting any case except for Root\r\n\t\t\r\n\t\t// Balance the tree only if necessary - the current depth of the tree is greater than what it should be based on \r\n\t\t// the total amount of Nodes in the tree\r\n\t\tif(depth() > howManyLevels())\r\n\t\t{\r\n\t\t\tbalance();\r\n\t\t}\r\n\t\t// A Node was deleted so return true\r\n\t\treturn true;\r\n\t}", "protected void deleteSelection() {\n Iterator i = getCurrentSelection().iterator();\n while (i.hasNext()) {\n ZNode each = (ZNode) i.next();\n ZNode top = each.editor().getTop();\n ZGroup topParent = top.getParent();\n topParent.removeChild(top);\n\n fireEvent(ZGroupEvent.createNodeRemovedEvent(topParent, each, false));\n }\n }", "public E delete(E item){\n\t\troot = delete(item, root);\n\t\treturn deleteReturn;\n\t}", "public int delete(int k) {\n\t\tif (this.empty()) {// empty tree, nothing to erase\n\t\t\treturn -1;\n\t\t}\n\t\tAVLNode root = (AVLNode) this.root;\n\t\tAVLNode node = (AVLNode) root.delFindNode(k);\n\t\tif (node == null) {// no node with key==k in this tree\n\t\t\treturn -1;\n\t\t}\n\t\tchar side = node.parentSide();\n\t\tboolean rootTerm = (node.getLeft().getKey() != -1 && node.getRight().getKey() != -1);\n\t\tif (side == 'N' && (rootTerm == false)) {\n\t\t\treturn this.deleteRoot(node);\n\t\t}\n\t\tif (side == 'L') {\n\t\t\tif (node.isLeaf()) {\n\t\t\t\tint leftEdge = node.parent.getHeight() - node.getHeight();\n\t\t\t\tint rightEdge = node.parent.getHeight() - node.parent.getRight().getHeight();\n\t\t\t\tAVLNode parent = (AVLNode) node.parent;\n\t\t\t\tif (leftEdge == 1 && rightEdge == 1) {// first case (\"easy one\", just delete)\n\t\t\t\t\tnode.parent.setLeft(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\tparent.updateSize();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\tif (leftEdge == 1 && rightEdge == 2) {\n\t\t\t\t\tnode.parent.setLeft(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\tparent.setHeight(parent.getHeight() - 1);\n\t\t\t\t\tparent.setSize();\n\t\t\t\t\treturn this.delRecTwos(parent);\n\t\t\t\t} else {// leftEdge==2&&rightEdge==1\n\t\t\t\t\tnode.parent.setLeft(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\treturn this.delRecTriOne(parent, side);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ((node.left != null && node.right == null) || (node.left == null && node.right != null)) {// node is //\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// unary\n\t\t\t\tint leftEdge = node.parent.getHeight() - node.getHeight();\n\t\t\t\tint rightEdge = node.parent.getHeight() - node.parent.getRight().getHeight();\n\t\t\t\tif ((leftEdge == 1 && rightEdge == 1)) {\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\tAVLNode parent = node.delUnaryLeft();\n\t\t\t\t\t\tparent.updateSize();\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\tAVLNode parent = node.delUnaryRight();\n\t\t\t\t\t\tparent.updateSize();\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ((leftEdge == 1 && rightEdge == 2)) {\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\treturn this.delRecTwos(node.delUnaryLeft());\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\treturn this.delRecTwos(node.delUnaryRight());\n\t\t\t\t\t}\n\t\t\t\t} else {// leftEdge==2&&rightEdge==1\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\treturn this.delRecTriOne(node.delUnaryLeft(), side);\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\treturn this.delRecTriOne(node.delUnaryRight(), side);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (side == 'R') {\n\t\t\tif (node.isLeaf()) {\n\t\t\t\tint rightEdge = node.parent.getHeight() - node.getHeight();\n\t\t\t\tint leftEdge = node.parent.getHeight() - node.parent.getLeft().getHeight();\n\t\t\t\tAVLNode parent = (AVLNode) node.parent;\n\t\t\t\tif (leftEdge == 1 && rightEdge == 1) {// first case (\"easy one\", just delete)\n\t\t\t\t\tnode.parent.setRight(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\tparent.updateSize();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\tif (leftEdge == 2 && rightEdge == 1) {\n\t\t\t\t\tnode.parent.setRight(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\tparent.setHeight(parent.getHeight() - 1);\n\t\t\t\t\tparent.setSize();\n\t\t\t\t\treturn this.delRecTwos(parent);\n\t\t\t\t} else {// leftEdge==1&&rightEdge==2\n\t\t\t\t\tnode.parent.setRight(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\treturn this.delRecTriOne(parent, side);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ((node.getLeft().getHeight() != -1 && node.getRight().getHeight() == -1)\n\t\t\t\t\t|| (node.getLeft().getHeight() == -1 && node.getRight().getHeight() != -1)) {// node is unary\n\t\t\t\tint rightEdge = node.parent.getHeight() - node.getHeight();\n\t\t\t\tint leftEdge = node.parent.getHeight() - node.parent.getLeft().getHeight();\n\t\t\t\tif ((leftEdge == 1 && rightEdge == 1)) {\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\tAVLNode parent = node.delUnaryLeft();\n\t\t\t\t\t\tparent.updateSize();\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\tAVLNode parent = node.delUnaryRight();\n\t\t\t\t\t\tparent.updateSize();\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ((leftEdge == 2 && rightEdge == 1)) {\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\treturn this.delRecTwos(node.delUnaryLeft());\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\treturn this.delRecTwos(node.delUnaryRight());\n\t\t\t\t\t}\n\t\t\t\t} else {// leftEdge==1&&rightEdge==2\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\treturn this.delRecTriOne(node.delUnaryLeft(), side);\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\treturn this.delRecTriOne(node.delUnaryRight(), side);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// we get here only if node is binary, and thus not going through any other\n\t\t// submethod\n\t\tAVLNode successor = this.findSuccessor(node); // successor must be unary/leaf\n\t\tif (node.checkRoot()) {\n\t\t\tthis.root = successor;\n\t\t}\n\t\tint numOp = this.delete(successor.key);\n\t\tsuccessor.setHeight(node.getHeight());\n\t\tsuccessor.size = node.getSize();\n\t\tsuccessor.setRight(node.getRight());\n\t\tnode.right.setParent(successor);\n\t\tnode.setRight(null);\n\t\tsuccessor.setLeft(node.getLeft());\n\t\tnode.left.setParent(successor);\n\t\tnode.setLeft(null);\n\t\tsuccessor.setParent(node.getParent());\n\t\tif (node.parentSide() == 'L') {\n\t\t\tnode.parent.setLeft(successor);\n\t\t} else if (node.parentSide() == 'R') {// node.parentSide()=='R'\n\t\t\tnode.parent.setRight(successor);\n\t\t}\n\t\tnode.setParent(null);\n\t\treturn numOp;\n\n\t}", "public void CLOSE ()\r\n\t{\r\n\t\tif (Path.size()!=0){\r\n\t\tActualNode=Path.get(Path.size()-1);\r\n\t\tPath.remove(Path.size()-1);\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}", "public void delete(Key key) {\n root = delete(root, key);\n }", "public void delete(Key key)\n\t{\n\t\troot=delete(root,key);\n\t}", "@Override\r\n public E delete(E target) {\r\n E node = find(target);\r\n if (node == null){\r\n return null;\r\n }\r\n return deleteHelper(root,target,0);\r\n }" ]
[ "0.7561701", "0.7560645", "0.725196", "0.72227484", "0.7095155", "0.7024002", "0.69576263", "0.6873153", "0.6809321", "0.68062603", "0.6800649", "0.6795114", "0.677177", "0.67692924", "0.6768739", "0.67569995", "0.6737962", "0.6736329", "0.6732828", "0.6708458", "0.66850394", "0.66175675", "0.65922904", "0.6551786", "0.6547638", "0.654235", "0.6531992", "0.65245116", "0.6522248", "0.6497514", "0.64863133", "0.6481054", "0.6425085", "0.6423099", "0.6415472", "0.6413115", "0.641213", "0.63915575", "0.6382311", "0.63745564", "0.6364381", "0.63607377", "0.6333857", "0.6318037", "0.6317516", "0.6310014", "0.6301187", "0.6294455", "0.6286234", "0.6282808", "0.6275416", "0.6266937", "0.6266153", "0.62395585", "0.62325436", "0.6230906", "0.6230536", "0.62281233", "0.6224939", "0.62210804", "0.6213267", "0.6212541", "0.62051624", "0.6196004", "0.61795205", "0.61768", "0.61681646", "0.61659646", "0.61647713", "0.6160511", "0.61494917", "0.6149164", "0.6144326", "0.614318", "0.614318", "0.6140878", "0.61377484", "0.6130794", "0.6126114", "0.61017525", "0.6098021", "0.6091302", "0.6087649", "0.60855705", "0.60791236", "0.6074222", "0.6073528", "0.6073457", "0.60732126", "0.60729796", "0.60621613", "0.60606045", "0.6058796", "0.60569626", "0.60565233", "0.60563636", "0.6054221", "0.6053406", "0.6052686", "0.60347456" ]
0.7568231
0
delete a certain child of current node
public void deleteChildNode(int childId) { List<TreeNode> cList = this.getChildList(); int childNumber = cList.size(); for (int i = 0; i < childNumber; i++) { TreeNode child = cList.get(i); if (child.getSelfId() == childId) { cList.remove(i); return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void removeChild(Node node);", "public void removeChild(WSLNode node) {children.removeElement(node);}", "void removeChild(Object child);", "@DISPID(2)\n\t// = 0x2. The runtime will prefer the VTID if present\n\t@VTID(8)\n\tvoid removeChild(@MarshalAs(NativeType.VARIANT) java.lang.Object node);", "public void removeFromParent(TXSemanticTag child);", "public void removeChild( ChildType child );", "public void removeChild(int index)\n/* */ {\n/* 457 */ this.children.removeElementAt(index);\n/* */ }", "public void deleteNode() {\n TreeNode pNode = this.getParentNode();\n int id = this.getSelfId();\n\n if (pNode != null) {\n pNode.deleteChildNode(id);\n }\n }", "public void removeChildren(QueryNode childNode);", "public void removeChild(XMLElement child)\n/* */ {\n/* 444 */ if (child == null) {\n/* 445 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 447 */ this.children.removeElement(child);\n/* */ }", "void deleteNode(ZVNode node);", "public void removeChildAt(int index) {children.removeElementAt(index);}", "public void removeChild(XMLElement child) {\n this.children.removeElement(child);\n }", "private Node caseOneChild(Node deleteThis) {\r\n\r\n Node child, parent;\r\n if (deleteThis.getLeft() != null) {\r\n child = deleteThis.getLeft();\r\n } else {\r\n child = deleteThis.getRight();\r\n }\r\n parent = deleteThis.getParent();\r\n child.setParent(parent);\r\n\r\n\r\n if (parent == null) {\r\n this.root = child; // Poistettava on juuri\r\n return deleteThis;\r\n }\r\n if (deleteThis == parent.getLeft()) {\r\n parent.setLeft(child);\r\n } else {\r\n parent.setRight(child);\r\n }\r\n return deleteThis;\r\n }", "public void deleteNode ()\n {\n ConfigTreeNode node = _tree.getSelectedNode();\n ConfigTreeNode parent = (ConfigTreeNode)node.getParent();\n int index = parent.getIndex(node);\n ((DefaultTreeModel)_tree.getModel()).removeNodeFromParent(node);\n int ccount = parent.getChildCount();\n node = (ccount > 0) ?\n (ConfigTreeNode)parent.getChildAt(Math.min(index, ccount - 1)) : parent;\n if (node != _tree.getModel().getRoot()) {\n _tree.setSelectionPath(new TreePath(node.getPath()));\n }\n DirtyGroupManager.setDirty(group, true);\n }", "public void removeThisIfItsAChild(FileNode childToBeDeleted) {\r\n List<FileNode> list = getChildren();\r\n list.remove(childToBeDeleted);\r\n childNum--;\r\n }", "public void delete(int index) {\n\t\tNode node = getNode(index+1);\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\tnode.data = parentOfLast.right != null ? parentOfLast.right.data : parentOfLast.left.data;\n\t\tif (parentOfLast.right != null) {\n\t\t\tparentOfLast.right = null;\n\t\t}\n\t\telse {\n\t\t\tparentOfLast.left = null;\n\t\t}\n\t}", "public void delete(E e) {\n\t\tNode node = getNode(root, e);\n\t\tif (node == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\tif (parentOfLast.right != null) {\n\t\t\tnode.data = parentOfLast.right.data;\n\t\t\tparentOfLast.right = null;\n\t\t}\n\t\telse {\n\t\t\tnode.data = parentOfLast.left.data;\n\t\t\tparentOfLast.left = null;\n\t\t}\n\t\tsize--;\n\t}", "public void delete() {\n this.root = null;\n }", "public void removeChild(T child) {\n this.children.remove(child);\n this.invalidate();\n }", "@Override\r\n\t\tpublic Node removeChild(Node oldChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@objid (\"808c0839-1dec-11e2-8cad-001ec947c8cc\")\n @Override\n public void delete() {\n // List children from the end to avoid reordering of the other GMs\n for (int i = this.children.size() - 1; i >= 0; i--) {\n GmNodeModel child = this.children.get(i);\n child.delete();\n \n // When several elements have been deleted consecutively, fix the next index\n if (i > this.children.size()) {\n i = this.children.size();\n }\n }\n \n assert (this.children.isEmpty()) : \"All children should have been deleted:\" + this.children;\n \n super.delete();\n }", "@Override\n public void delete(K key){\n try {\n this.rootNode = deleteNode(this.rootNode, key);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }", "public FileNode removeChildAt(int index) {\r\n childNum--;\r\n \treturn children.remove(index);\r\n }", "private BinaryNode<E> _delete(BinaryNode<E> node, E e) {\n\t\tif (node == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (comparator.compare(e, node.getData()) < 0) // <, so go left\n\t\t\tnode.setLeftChild(_delete(node.getLeftChild(), e));// recursive call\n\t\telse if (comparator.compare(e, node.getData()) > 0) // >, so go right\n\t\t\tnode.setRightChild(_delete(node.getRightChild(), e));// recursive call\n\t\telse { // FOUND THE NODE\n\t\t\tfoundNode = true;\n\t\t\tnode = _deleteNode(node);\n\t\t}\n\t\treturn node;\n\t}", "void removeGift(Child child, Gift gift);", "private Node delete(Order ord2) {\n\t\treturn null;\n\t}", "public void removeFromParent();", "private void deleteDegreeOneChild(Node curr, AtomicReference<Node> rootRef) {\n\t\tNode child = curr.right.isNull ? curr.left : curr.right;\n replaceNode(curr, child, rootRef);\n if(curr.color == Color.BLACK) {\n if(child.color == Color.RED) {\n child.color = Color.BLACK;\n } else {\n adjustRootDeficiency(child, rootRef);\n }\n }\n\t}", "public void deleteNode(int key){\n\t\t//System.out.println(\" in delete Node \");\n\t\tNode delNode = search(key);\n\t\tif(delNode != nil){\n\t\t\t//System.out.println(\" del \" + delNode.id);\n\t\t\tdelete(delNode);\n\t\t}else{\n\t\t\tSystem.out.println(\" Node not in RB Tree\");\n\t\t}\n\t}", "private Node<E> nodeDelete(Node<E> current, E toDelete) {\n\t\tif (current == null)\n\t\t\treturn null;\n\t\tif (toDelete == current.data)\n\t\t\treturn current;\n\t\tif (((Comparable<E>) toDelete).compareTo((E) current.data) >= 0)\n\t\t\treturn nodeDelete(current.rightChild, toDelete);\n\t\telse\n\t\t\treturn nodeDelete(current.leftChild, toDelete);\n\t}", "public void removeChild(int index)\n {\n children.remove(index);\n }", "@Override\n\tpublic void removechild(EndpointEntity entity) {\n\t\t\n\t}", "public void deleteNode (NodeId id) throws IOException\n\t{\n\t}", "private void delete(Node next) {\n\t\t\n\t}", "protected void notifyChildRemoval(FONode node) {\n //nop\n }", "private void deleteNode(Node n) {\n n.next.pre = n.pre;\n n.pre.next = n.next;\n }", "public static void deleteNode(int nodeData){\n }", "void arbitraryRemove(Nodefh node){\n\t\n\t\tif(node.Parent.Child == node){\n\t\t\tif(node.Right != null && node.Right != node){\n\t\t\t\tnode.Parent.Child = node.Right;\n\t\t\t\tif(node.Left!=null && node.Left != node){\n\t\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnode.Right.Left = node.Right;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnode.Parent.Child = null;\n\t\t\t\tnode.Parent = null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(node.Left != null && node.Left != node){\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t}\n\t\t\tnode.Parent = null;\n\n\t\t}\n\t\tif(node.Child!=null){\n\t\t\tNodefh temp = node.Child;\n\t\t\tif(node.Child.Right!=null){\n\t\t\t\ttemp = node.Child.Right;\n\t\t\t}\n\t\t\tfhInsert(node.Child);\n\t\t\twhile(temp!=node.Child.Right){\n\t\t\t\tfhInsert(temp);\n\t\t\t\ttemp = temp.Right;\n\t\t\t}\n\n\t\t}\n\n\t}", "@Override\n public boolean removeChild(String childName)\n {\n return children.removeNodes(childName);\n }", "public void delete(Item<K,V> i) {\n if (i.getL() == null && i.getR() == null) {\n if (i.getP() != null) {\n declineChild(i, null);\n } else {\n root = null;\n }\n } else if (i.getL() != null && i.getR() != null) {\n Item<K,V> s = successor(i);\n declineChild(s, s.getR());\n i.setK(s.getK());\n i.setV(s.getV());\n } else {\n Item<K,V> x = i.getL();\n if (x == null) {\n x = i.getR();\n }\n if (i.getP() != null) {\n declineChild(i, x);\n } else {\n root = x;\n x.setP(null);\n }\n }\n size -= 1;\n }", "private void deleteUpToChild(Node toRemove) {\n Boolean isRoot = toRemove == root;\n Node child = null;\n //find 1 child if exist\n if (toRemove.left != null) {\n child = toRemove.left;\n } else if (toRemove.right != null) {\n child = toRemove.right;\n }\n if (isRoot) { //in case toRemove is the root, set root to child (even if null);\n root = child;\n if (child != null) child.parent = null;\n } else { //if not root, set parent's relevant son to 'child' (both directions)\n if (toRemove.parent.left == toRemove) {\n toRemove.parent.left = child;\n } else toRemove.parent.right = child;\n if (child != null) {\n child.parent = toRemove.parent;\n }\n }\n }", "public boolean removeChild(View root, int virtualDescendantId) {\n/* 258 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void removeChild(InetSocketAddress address) {\n Neighbor neighbor = children.remove(address);\n if (neighbor != null) {\n neighbor.detach();\n }\n }", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "public int delete(int k)\r\n\t{\r\n\t\tIAVLNode node = searchFor(this.root, k);\r\n\t\tIAVLNode parent;\r\n\t\tif(node==root)\r\n\t\t\tparent=new AVLNode(null);\r\n\t\telse\r\n\t\t\tparent=node.getParent();\r\n\t\t\r\n\t\tIAVLNode startHieghtUpdate = parent; // this will be the node from which we'll start updating the nodes' hieghts\r\n\t\t\r\n\t\tif (!node.isRealNode())\r\n\t\t\treturn -1;\r\n\t\t\r\n\t\t//updating the maximum and minimum fields\r\n\t\tif (node == this.maximum)\r\n\t\t\tthis.maximum = findPredecessor(node);\r\n\t\telse\r\n\t\t\tif (node == this.minimum)\r\n\t\t\t\tthis.minimum = findSuccessor(node); \r\n\t\t\r\n\t\t//if the node we wish to delete is a leaf\r\n\t\tif (!node.getLeft().isRealNode()&&!node.getRight().isRealNode())\r\n\t\t{\r\n\t\t\tif (node == parent.getLeft())\r\n\t\t\t\tparent.setLeft(node.getRight());\r\n\t\t\telse\r\n\t\t\t\tparent.setRight(node.getRight());\r\n\t\t\tnode.getRight().setParent(parent);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t //if the node we wish to delete is unary:\r\n\t\t\tif (node.getLeft().isRealNode()&&!node.getRight().isRealNode()) //only left child\r\n\t\t\t{\r\n\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\tparent.setLeft(node.getLeft());\r\n\t\t\t\telse\r\n\t\t\t\t\tparent.setRight(node.getLeft());\r\n\t\t\t\tnode.getLeft().setParent(parent);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif (node.getRight().isRealNode()&&!node.getLeft().isRealNode()) //only right child\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\t\tparent.setLeft(node.getRight());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tparent.setRight(node.getRight());\r\n\t\t\t\t\tnode.getRight().setParent(parent);\r\n\t\t\t\t\t}\r\n\t\t\t\t//if the node we wish to delete is a father of two\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t\tIAVLNode suc = findSuccessor(node);\r\n\t\t\t\t\t\tIAVLNode sucsParent = suc.getParent();\r\n\t\t\t\t\t\t//deleting the successor of the node we wish to delete\r\n\t\t\t\t\t\tif (suc == sucsParent.getLeft())\r\n\t\t\t\t\t\t\tsucsParent.setLeft(suc.getRight());\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tsucsParent.setRight(suc.getRight());\r\n\t\t\t\t\t\tsuc.getRight().setParent(sucsParent);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//inserting the successor in it's new place (the previous place of the node we deleted)\r\n\t\t\t\t\t\tif (node == parent.getLeft())\r\n\t\t\t\t\t\t\tparent.setLeft(suc);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tparent.setRight(suc);\r\n\t\t\t\t\t\tsuc.setParent(parent);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// node's children are now his scuccessor's children\r\n\t\t\t\t\t\tsuc.setRight(node.getRight());\r\n\t\t\t\t\t\tsuc.setLeft(node.getLeft());\r\n\t\t\t\t\t\tsuc.getRight().setParent(suc);\r\n\t\t\t\t\t\tsuc.getLeft().setParent(suc);\r\n\t\t\t\t\t\t//now we check if the successor of the node we wanted to delete was his son\r\n\t\t\t\t\t\tif (node != sucsParent) // the successor's parent was the deleted node (which is no longer part of the tree)\r\n\t\t\t\t\t\t\tstartHieghtUpdate = sucsParent;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tstartHieghtUpdate = suc;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//if we wish to delete the tree's root, then we need to update the tree's root to a new node\r\n\t\tif (node == this.root) \r\n\t\t{\r\n\t\t\tthis.root = parent.getRight();\r\n\t\t\tthis.root.setParent(null);\r\n\t\t}\r\n\t\t\r\n\t\tint moneRot = HieghtsUpdating(startHieghtUpdate);\r\n\t\treturn moneRot;\r\n\t}", "public void delete(Comparable<T> item)\r\n {\r\n root = delete(root,item);\r\n }", "public void deleteNode(BinaryTreeNode node) // Only leaf nodes and nodes with degree 1 can be deleted. If a degree 1 node is deleted, it is replaced by its subtree.\r\n {\n if(!node.hasRightChild() && !node.hasLeftChild()){\r\n if(node.mActualNode.mParent.mRightChild == node.mActualNode) {\r\n\r\n node.mActualNode.mParent.mRightChild = null;\r\n }\r\n else if(node.mActualNode.mParent.mLeftChild == node.mActualNode) {\r\n\r\n node.mActualNode.mParent.mLeftChild = null;\r\n }\r\n //node.mActualNode = null;\r\n\r\n }\r\n //if deleted node has degree 1 and has only left child\r\n else if(node.hasLeftChild() && !node.hasRightChild()){\r\n node.mActualNode.mLeftChild.mParent = node.mActualNode.mParent;\r\n //if deleted node is left child of his father\r\n if(node.mActualNode.mParent.mLeftChild == node.mActualNode)\r\n node.mActualNode.mParent.mLeftChild = node.mActualNode.mLeftChild;\r\n //if deleted node is right child of his father\r\n else {\r\n\r\n node.mActualNode.mParent.mRightChild = node.mActualNode.mLeftChild;\r\n }\r\n }\r\n // if deleted node has degree 1 and has only right child\r\n else if(node.hasRightChild() && !node.hasLeftChild()){\r\n node.mActualNode.mRightChild.mParent = node.mActualNode.mParent;\r\n\r\n //if node is left child of his father\r\n if(node.mActualNode.mParent.mLeftChild == node.mActualNode) {\r\n\r\n\r\n node.mActualNode.mParent.mLeftChild = node.mActualNode.mRightChild;\r\n\r\n }\r\n //if node is right child of his father\r\n else\r\n node.mActualNode.mParent.mRightChild = node.mActualNode.mRightChild;\r\n\r\n\r\n }\r\n else\r\n System.out.println(\"Error : node has two child\");\r\n\r\n }", "private void deleteNode(TSTNode<E> nodeToDelete) {\n if(nodeToDelete == null) return;\n nodeToDelete.data = null;\n \n while(nodeToDelete != null) {\n nodeToDelete = deleteNodeRecursion(nodeToDelete);\n }\n }", "@Override\r\n public E delete(E target) {\r\n E node = find(target);\r\n if (node == null){\r\n return null;\r\n }\r\n return deleteHelper(root,target,0);\r\n }", "@Override\n\tpublic void onPreNodeDelete(NodeModel oldParent, NodeModel selectedNode, int index) {\n\n\t}", "void deleteTree(TreeNode node) \n {\n root = null; \n }", "public void delete(E data){\n \t// Preform a regular delete\n \t// Check to make sure the tree remains an RBT tree\n\tNode<E> z = search(data);\n\tNode<E> x = sentinel;\n\tNode<E> y = z;\n\tCharacter y_original_color = y.getColor();\n\tif (z.getLeftChild() == sentinel) {\n\t\tx = z.getRightChild();\n\t\ttransplant(z, z.getRightChild());\n\t} else if (z.getRightChild() == sentinel) {\n\t\tx = z.getLeftChild();\n\t\ttransplant(z, z.getLeftChild());\n\t} else {\n\t\ty = getMin(z.getRightChild());\n\t\ty_original_color = y.getColor();\n\t\tx = y.getRightChild();\n\t\tif (y.getParent() == z) {\n\t\t\tx.setParent(y);\n\t\t} else {\n\t\t\ttransplant(y, y.getRightChild());\n\t\t\ty.setRightChild(z.getRightChild());\n\t\t\ty.getRightChild().setParent(y);\n\t\t}\n\t\t\n\t\ttransplant(z, y);\n\t\ty.setLeftChild(z.getLeftChild());\n\t\ty.getLeftChild().setParent(y);\n\t\ty.setColor(z.getColor());\n\t}\n\t\n\tif (y_original_color == 'B') {\n\t\tfixDelete(x);\n\t}\n\t\t\n \n }", "Node replaceChild(Node newChild, Node oldChild);", "void handleChildRemove(MPartSashContainerElement element) {\n\t}", "public void deleteNode(TreeNode node) {\n if (node != null) {\n /* One child situation */\n if (node.getLeft() == null) {\n transplantNode(node, node.getRight());\n } else if (node.getRight() == null) {\n transplantNode(node, node.getLeft());\n } else {\n // Node has two children, so replacement is not that simple.\n TreeNode replacement = getMinimumNodeInSubTree(node.getRight());\n if (replacement.getParent() != node) {\n transplantNode(replacement, replacement.getRight());\n replacement.setRight(node.getRight());\n replacement.getRight().setParent(replacement);\n }\n transplantNode(node, replacement);\n replacement.setLeft(node.getLeft());\n replacement.getLeft().setParent(replacement);\n }\n }\n }", "public static Node delete (BST bst, String name){\n\t\tNode bstRoot = bst.getRoot();\n\t\tNode deletedNode = findByName(bstRoot, name); // The node to be removed from the bst.\n\t\tNode substituteNode = floorOrCeiling(deletedNode); // The substitute node for the removed one.\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nThe node to be deleted:\");\n\t\tSystem.out.println(deletedNode);\n\n\t\tSystem.out.println(\"\\nThe substitute for the deleted node:\");\n\t\tSystem.out.println(substituteNode);\n\t\t\n\t\t/* If the node to be removed is an external node, which has no children nodes,\n\t\t then there is no need for the substitute node. Thus, we can simply set the nodes\n\t\t that point to the external nodes to null to remove the node.\n\t\t*/\n\t\tif ((deletedNode.getRight()==null)&&(deletedNode.getLeft()==null)){\n\t\t\tif(deletedNode.getName().compareTo(deletedNode.getParent().getName())<0)\n\t\t\t\tdeletedNode.getParent().setLeft(null);\t\t\t\n\t\t\telse\n\t\t\t\tdeletedNode.getParent().setRight(null);\n\t\t\t\n\t\t\tdeletedNode.setLeft(null);\n\t\t\tdeletedNode.setRight(null);\n\t\t\tdeletedNode.setParent(null);\n\t\t\t\n\t\t\treturn bstRoot;\n\t\t}\n\t\t\n\t\t/* If the node to be removed is not a root node, we'll apply the general approach.\n\t\t*/\n\t\tif (deletedNode.getParent()!=null){\n\n\t\t\t/* If the name of the parent node of the substitute node precedes the one of the substitute,\n\t\t\t * then, set the right child of the parent node to a null unless the substitute node is a child\n\t\t\t * of the deleted node.\n\t\t\t */\n\t\t\tif(substituteNode.getParent().getName().compareTo(substituteNode.getName())<0)\t\t\t\n\t\t\t\tif(substituteNode == deletedNode.getRight())\n\t\t\t\t\tsubstituteNode.getParent().setRight(substituteNode.getRight());\n\t\t\t\telse\t\n\t\t\t\tsubstituteNode.getParent().setRight(null);\n\t\t\t\n\t\t\t/* If the name of the parent node of the substitute node succeeds the one of the substitute,\n\t\t\t * then, set the left child of the parent node to a null unless the substitute node is a child\n\t\t\t * of the deleted node.\n\t\t\t */\n\t\t\telse\n\t\t\t\tif(substituteNode == deletedNode.getLeft())\n\t\t\t\t\tsubstituteNode.getParent().setLeft(substituteNode.getLeft());\n\t\t\t\telse\n\t\t\t\t\tsubstituteNode.getParent().setLeft(null);\n\t\t\t\n\t\t\t\n\t\t\t/* If the name of the parent node of the deleted node succeed the one of the substitute,\n\t\t\t * then, set substitute node as the left child of the parent node of the deleted node.\n\t\t\t * Otherwise, set the substitute to the right child.\n\t\t\t */\n\t\t\tif(deletedNode.getParent().getName().compareTo(substituteNode.getName())>0)\n\t\t\t\tdeletedNode.getParent().setLeft(substituteNode);\n\t\t\t\t\n\t\t\telse\n\t\t\t\tdeletedNode.getParent().setRight(substituteNode);\t\t\t\n\t\t\t\n\n\t\t\t/* Duplicates the binding that the deleted node previously had.\n\t\t\t */\n\t\t\tsubstituteNode.setLeft(deletedNode.getLeft());\n\t\t\tsubstituteNode.setRight(deletedNode.getRight());\n\t\t\tsubstituteNode.setParent(deletedNode.getParent());\n\t\t\t\n\t\t\t\n\t\t\t/* If the deleted node has any child, then set the substitute node as their parent node.\n\t\t\t */\n\t\t\tif (deletedNode.getRight()!=null)\n\t\t\t\tdeletedNode.getRight().setParent(substituteNode);\n\t\t\t\n\t\t\tif (deletedNode.getLeft()!=null)\n\t\t\tdeletedNode.getLeft().setParent(substituteNode);\n\t\t\t\n\t\t\tdeletedNode.setLeft(null);\n\t\t\tdeletedNode.setRight(null);\n\t\t\tdeletedNode.setParent(null);\n\t\t}\t\n\t\t/* If the node to be removed is a root node, we'll approach a bit differently.\n\t\t*/\t\t\t\n\t\telse{\n\t\t\t/* Sets the child node of the parent of the substitute one to null.\n\t\t\t*/\t\t\t\n\t\t\tif(substituteNode.getParent().getName().compareTo(substituteNode.getName())<0)\n\t\t\t\tsubstituteNode.getParent().setRight(null);\n\t\t\telse\n\t\t\t\tsubstituteNode.getParent().setLeft(null);\n\t\t\t\n\t\t\t/* Duplicates the binding that the deleted node previously had without setting the parent node.\n\t\t\t */\n\t\t\tsubstituteNode.setLeft(deletedNode.getLeft());\n\t\t\tsubstituteNode.setRight(deletedNode.getRight());\n\t\t\t\n\t\t\t\n\t\t\t/* If the deleted node has any child, then set the substitute node as their parent node.\n\t\t\t*/\t\t\t\n\t\t\tif (deletedNode.getRight()!=null)\n\t\t\t\tdeletedNode.getRight().setParent(substituteNode);\n\t\t\t\n\t\t\tif (deletedNode.getLeft()!=null)\n\t\t\tdeletedNode.getLeft().setParent(substituteNode);\t\n\t\t\t\n\t\t\t\n\t\t\tdeletedNode.setLeft(null);\n\t\t\tdeletedNode.setRight(null);\n\t\t\tdeletedNode.setParent(null);\n\t\t\t\n\t\t\tSystem.out.println(\"\\nThe node \" + deletedNode + \" is removed from the tree successfully\\n\");\n\t\t\t\n\t\t\treturn substituteNode;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nThe node \" + deletedNode + \" is removed from the tree successfully\\n\");\n\n\n\t\treturn bstRoot;\n\t\t\n\t}", "public void deleteNode(int val) {\n\n Node nodeToDelete = find(val);\n\n if (nodeToDelete != null) {\n\n if (nodeToDelete.leftChild == null && nodeToDelete.rightChild == null) {\n\n //case1 - node has no child\n deleteCase1(nodeToDelete);\n } else if (nodeToDelete.leftChild != null && nodeToDelete.rightChild != null) {\n // case 3- node has both left and right child\n deleteCase3(nodeToDelete);\n } else {\n // Case 2 - node has left or right child not both\n deleteCase2(nodeToDelete);\n }\n\n }\n\n\n }", "public boolean Delete(int num) {\r\n\t\t//initialize boolean field, set to true if value found in tree\r\n\t\tboolean found;\r\n\t\t//initialize the parent node using the TreeNodeWrapper\r\n\t\tTreeNodeWrapper p = new TreeNodeWrapper();\r\n\t\t//initialize the child node using the TreeNodeWrapper\r\n\t\tTreeNodeWrapper c = new TreeNodeWrapper();\r\n\t\t//initialize largest field to re-allocate parent/child nodes\r\n\t\tTreeNode largest;\r\n\t\t//initialize nextLargest field to re-allocate parent/child nodes\r\n\t\tTreeNode nextLargest;\r\n\t\t//found set to true if FindNode methods locates value in the tree\r\n\t\tfound = FindNode(num, p, c);\r\n\t\t//if node not found return false\r\n\t\tif(found == false)\r\n\t\t\treturn false;\r\n\t\telse //identify the case number\r\n\t\t{\r\n\t\t\t//case 1: deleted node has no children\r\n\t\t\t//if left and right child nodes of value are both null node has no children\r\n\t\t\tif(c.Get().Left == null && c.Get().Right == null)\r\n\t\t\t\t//if parent left node is equal to child node then deleted node is a left child\r\n\t\t\t\tif(p.Get().Left == c.Get())\r\n\t\t\t\t\tp.Get().Left = null;\r\n\t\t\t\telse //deleted node is a right child\r\n\t\t\t\t\tp.Get().Right = null;\r\n\t\t\t//case 2: deleted node has 1 child\r\n\t\t\t//if deleted node only has 1 child node\r\n\t\t\telse if(c.Get().Left == null || c.Get().Right == null)\r\n\t\t\t{\r\n\t\t\t\t//if parent left node is equal to child node then deleted node is a left child\r\n\t\t\t\tif(p.Get().Left == c.Get())\r\n\t\t\t\t{\r\n\t\t\t\t\t//if deleted node is a left child then set deleted node child node as child to parent node\r\n\t\t\t\t\tif(c.Get().Left != null) //deleted node has a left child\r\n\t\t\t\t\t\tp.Get().Left = c.Get().Left;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tp.Get().Left = c.Get().Right;\r\n\t\t\t\t}\r\n\t\t\t\telse //if deleted node is a right child then set deleted node child node as child to parent node\r\n\t\t\t\t{\r\n\t\t\t\t\tif(c.Get().Left != null) //deleted node has a left child\r\n\t\t\t\t\t\tp.Get().Right = c.Get().Left;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tp.Get().Right = c.Get().Right;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//case 3: deleted node has two children\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//set the nextLargest as the left child of deleted node\r\n\t\t\t\tnextLargest = c.Get().Left;\r\n\t\t\t\t//set the largest as the right node of the nextLargest node\r\n\t\t\t\tlargest = nextLargest.Right;\r\n\t\t\t\t//if right node is not null then left child has a right subtree\r\n\t\t\t\tif(largest != null) \r\n\t\t\t\t{\r\n\t\t\t\t\t//while loop to move down the right subtree and re-allocate after node is deleted\r\n\t\t\t\t\twhile(largest.Right != null) //move down right subtree\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnextLargest = largest;\r\n\t\t\t\t\t\tlargest = largest.Right;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//overwrite the deleted node\r\n\t\t\t\t\tc.Get().Data = largest.Data; \r\n\t\t\t\t\t// save the left subtree\r\n\t\t\t\t\tnextLargest.Right = largest.Left; \r\n\t\t\t\t}\r\n\t\t\t\telse //left child does not have a right subtree\r\n\t\t\t\t{\r\n\t\t\t\t\t//save the right subtree\r\n\t\t\t\t\tnextLargest.Right = c.Get().Right; \r\n\t\t\t\t\t//deleted node is a left child\r\n\t\t\t\t\tif(p.Get().Left == c.Get()) \r\n\t\t\t\t\t\t//jump around deleted node\r\n\t\t\t\t\t\tp.Get().Left = nextLargest; \r\n\t\t\t\t\telse //deleted node is a right child\r\n\t\t\t\t\t\tp.Get().Right = nextLargest; //jump around deleted node\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//return true is delete is successful\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public void deleteNode(Node n){\n\t\tn.item = n.next.item;\n\t\tNode temp = n.next.next;\n\t\t//delete(n.next);\n\t\tn.next = temp;\n\t\t\n\t\t\n\t}", "void removeNode(NodeKey key);", "public void onRemoveNode(Node node) {\n\t}", "public void removeChild(IDirectory child) {\n children.remove(child);\n }", "public void deleteNode(TreePath path) {\n \t\tSpatial node = (Spatial) path.getLastPathComponent();\n \t\ttreeModel.deleteNode(node);\n \t\trepaint();\n \t}", "public void delete(int id) { \n\t\tint save = findPosition(id);\n\t\t\n\t\tif (save == numOfNode - 1) {\n\t\t\tnode [save] = null;\n\t\t\tnumOfNode--;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// dich dan cac node vao\n\t\tfor (int i = save; i < numOfNode - 1; i++) {\n\t\t\tnode[i] = node[i + 1];\n\t\t}\n\t\t\n\t\tnode[numOfNode - 1] = null;\n\t\tnumOfNode--;\n\t}", "@Override\n public boolean removeChild(ConfigurationNode child)\n {\n return children.removeNode(child);\n }", "private Node caseNoChildren(Node deleteThis) {\r\n\r\n Node parent = deleteThis.getParent();\r\n\r\n if (parent == null) {\r\n this.root = null; // Kyseessä on juuri\r\n return deleteThis;\r\n }\r\n if (deleteThis == parent.getLeft()) {\r\n parent.setLeft(null);\r\n } else {\r\n parent.setRight(null);\r\n }\r\n return deleteThis;\r\n }", "private void deleteNode(Cat valueToDelete, Node root){\n Node temp = findNode(valueToDelete, root);\n if(temp.getRight()==null){\n Node parent = temp.getParent();\n if(temp.getLeft()==null){\n temp.setParent(null);\n if(temp==parent.getRight()){\n parent.setRight(null);\n fixBalanceValues(parent,-1);\n }\n else{\n parent.setLeft(null);\n fixBalanceValues(parent,1);\n }\n \n }\n else{\n //copy value of leftchild into the node to deletes data and delete it's leftchild\n temp.setData(temp.getLeft().getData());\n temp.setLeft(null);\n fixBalanceValues(temp, 1);\n }\n }\n Node nodeToDelete = temp.getRight();\n if(nodeToDelete.getLeft()==null){\n temp.setData(nodeToDelete.getData());\n temp.setRight(null);\n nodeToDelete.setParent(null);\n fixBalanceValues(temp,-1);\n }\n else{\n while(nodeToDelete.getLeft()!=null){\n nodeToDelete=nodeToDelete.getLeft(); \n } \n temp.setData(nodeToDelete.getData());\n Node parent = nodeToDelete.getParent();\n parent.setLeft(null);\n nodeToDelete.setParent(null);\n fixBalanceValues(parent,1);\n }\n \n \n }", "protected void removeChild(BusinessObject child) {\n\t\tif (children != null) {\n\t\t\tchildren.values().remove(child);\n\t\t}\n\t}", "public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}", "public void delete(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null && currentNode.getKey() != key){\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\tif (currentNode == null){\n\t\t\tSystem.out.println(\"No such key is found in the tree\");\n\t\t\treturn;\n\t\t}\n\t\tif (currentNode.getLeft() == null && currentNode.getRight() == null){\n\t\t\t//Leaf Node\n\t\t\tif (currentNode.getKey() > parent.getKey()){\n\t\t\t\tparent.setRight(null);\n\t\t\t}else{\n\t\t\t\tparent.setLeft(null);\n\t\t\t}\n\t\t}else if (currentNode.getLeft() == null){\n\t\t\tif (currentNode.getKey() > parent.getKey()){\n\t\t\t\tparent.setRight(currentNode.getRight());\n\t\t\t}else{\n\t\t\t\tparent.setLeft(currentNode.getRight());\n\t\t\t}\n\t\t}else if(currentNode.getRight() == null){\n\t\t\tif (currentNode.getKey() > parent.getKey()){\n\t\t\t\tparent.setRight(currentNode.getLeft());\n\t\t\t}else{\n\t\t\t\tparent.setLeft(currentNode.getLeft());\n\t\t\t}\n\t\t}else{\n\t\t\t// this is case where this node has two children\n\t\t\tBSTNode node = currentNode.getLeft();\n\t\t\tBSTNode parentTemp = currentNode;\n\t\t\twhile (node.getRight() != null){\n\t\t\t\tparentTemp = node;\n\t\t\t\tnode = node.getRight();\n\t\t\t}\n\t\t\t// switch the value with the target node we are deleting.\n\t\t\tcurrentNode.setKey(node.getKey());\n\t\t\t// remove this node but don't forget about its left tree\n\t\t\tparentTemp.setRight(node.getLeft());\n\t\t}\n\t}", "public void deleteNode(INode node) {\r\n\t\t// first delete the node from the children of its parent\r\n\t\tINode parent = node.getParent();\r\n\t\tif (parent != null) {\r\n\t\t\tparent.getChildren().remove(node);\r\n\t\t}\r\n\t\t// then remove the node from the list\r\n\t\tnodeList.remove(node);\r\n\t}", "public boolean removeChild( PlanNode child ) {\n boolean result = this.children.remove(child);\n if (result) {\n child.parent = null;\n }\n return result;\n }", "public Object remove(int id) {\n AVLNode parent = root;\n AVLNode current = root;\n boolean isLeftChild = false;\n Object element = null;\n \n while(current.getId() != id) {\n parent = current;\n \n if(current.getId() > id) {\n isLeftChild = true;\n current = current.getLeft();\n } else {\n isLeftChild = false;\n current = current.getRight();\n }\n \n if(current == null) {\n return element;\n }\n }\n element = current.getElement();\n \n //if node to be deleted has no children\n if(current.getLeft() == null && current.getRight() == null) {\n if(current == root) {\n root = null;\n }\n \n if(isLeftChild == true) {\n parent.setLeft(null);\n } else {\n parent.setRight(null);\n }\n }\n \n //if node to be deleted has only one child\n else if(current.getRight() == null) {\n if(current == root) {\n root = current.getLeft();\n } else if(isLeftChild) {\n parent.setLeft(current.getLeft());\n } else {\n parent.setRight(current.getLeft());\n }\n } else if(current.getLeft() == null) {\n if(current == root) {\n root = current.getRight();\n } else if(isLeftChild) {\n parent.setLeft(current.getRight());\n } else {\n parent.setRight(current.getRight());\n }\n } else if(current.getLeft() != null && current.getRight() != null) { \n AVLNode successor = getSuccessor(current);\n \n if(current == root) {\n root = successor;\n } else if(isLeftChild) {\n parent.setLeft(successor);\n } else {\n parent.setRight(successor);\n }\n \n successor.setLeft(current.getLeft());\n }\n \n return element;\n }", "private void deleteNode(Node<K> p) {\n // If strictly internal, copy successor's element to p and then make p\n // point to successor.\n if (p.left != null && p.right != null) {\n Node<K> s = successor(p); // 节点有 2 个子节点时,找到实际删除的后继节点\n p.key = s.key; // 将后继节点的值复制到原来节点上,原来的节点只是值被删除,节点本身不删除\n p = s; // 将实际要删除的节点位置指向后继节点位置\n } // p has 2 children //\n // //////////////////////////////////////////////////////////////////\n // Start fixup at replacement node, if it exists. //\n Node<K> replacement = (p.left != null ? p.left : p.right); // 实际删除的节点最多只有一个子节点,并且一定是红色子节点\n if (replacement != null) { // 如果有一个红色子节点\n // Link replacement to parent //\n replacement.parent = p.parent; // 将此节点上移\n if (p.parent == null) //\n root = replacement; //\n else if (p == p.parent.left) // 实际被删除的节点 p 为左子\n p.parent.left = replacement; //\n else // 实际被删除的节点 p 为右子\n p.parent.right = replacement; //\n // //\n // Null out links so they are OK to use by fixAfterDeletion. //\n p.left = p.right = p.parent = null; //\n // //\n // Fix replacement //////////////////////////////////////////////////////////////////\n if (p.color == BLACK) // 删除情形 5. 因为 replacement 是红节点,所以这里 p 的颜色一定是黑色的\n fixAfterDeletion(replacement); // 修复只要将此红节点上移并置黑就完成了\n } else if (p.parent == null) { // return if we are the only node. //////////////////////////////////////////////////////////////////\n root = null; // 根节点被删除\n } else { // No children. Use self as phantom replacement and unlink. // 被删除的节点没有子节点时\n if (p.color == BLACK) // 如果是红色的节点,直接删除就完成\n fixAfterDeletion(p); // 如果被删除的是黑色节点,则会破坏红黑树性质 5,需要修复红黑树\n\n if (p.parent != null) {\n if (p == p.parent.left)\n p.parent.left = null;\n else if (p == p.parent.right)\n p.parent.right = null;\n p.parent = null;\n }\n }\n }", "public void delete(Node ntd) {\n if (ntd == null) {\n System.out.println(\"No node to delete\");\n } else {\n ntd.data = ntd.next.data;\n ntd.next = ntd.next.next;\n }\n }", "public void removeNode()\n\t{\n\t\tif (parent != null)\n\t\t\tparent.removeChild(this);\n\t}", "private static void removeTag(Element currentElement, String parentTag, String childTag) {\r\n\t\tcurrentElement.select(parentTag + \" > \" + childTag).remove();\r\n\t}", "public Node getChild();", "public boolean removeNode(Node n);", "private static void removeTag(Element currentElement, char parentTag, char childTag) {\r\n\t\tcurrentElement.select(parentTag + \" > \" + childTag).remove();\r\n\t}", "public void delete(Key key) {\n\troot = delete(root, key);\t\n}", "public int delete(int k) {\n\t\tif (this.empty()) {// empty tree, nothing to erase\n\t\t\treturn -1;\n\t\t}\n\t\tAVLNode root = (AVLNode) this.root;\n\t\tAVLNode node = (AVLNode) root.delFindNode(k);\n\t\tif (node == null) {// no node with key==k in this tree\n\t\t\treturn -1;\n\t\t}\n\t\tchar side = node.parentSide();\n\t\tboolean rootTerm = (node.getLeft().getKey() != -1 && node.getRight().getKey() != -1);\n\t\tif (side == 'N' && (rootTerm == false)) {\n\t\t\treturn this.deleteRoot(node);\n\t\t}\n\t\tif (side == 'L') {\n\t\t\tif (node.isLeaf()) {\n\t\t\t\tint leftEdge = node.parent.getHeight() - node.getHeight();\n\t\t\t\tint rightEdge = node.parent.getHeight() - node.parent.getRight().getHeight();\n\t\t\t\tAVLNode parent = (AVLNode) node.parent;\n\t\t\t\tif (leftEdge == 1 && rightEdge == 1) {// first case (\"easy one\", just delete)\n\t\t\t\t\tnode.parent.setLeft(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\tparent.updateSize();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\tif (leftEdge == 1 && rightEdge == 2) {\n\t\t\t\t\tnode.parent.setLeft(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\tparent.setHeight(parent.getHeight() - 1);\n\t\t\t\t\tparent.setSize();\n\t\t\t\t\treturn this.delRecTwos(parent);\n\t\t\t\t} else {// leftEdge==2&&rightEdge==1\n\t\t\t\t\tnode.parent.setLeft(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\treturn this.delRecTriOne(parent, side);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ((node.left != null && node.right == null) || (node.left == null && node.right != null)) {// node is //\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// unary\n\t\t\t\tint leftEdge = node.parent.getHeight() - node.getHeight();\n\t\t\t\tint rightEdge = node.parent.getHeight() - node.parent.getRight().getHeight();\n\t\t\t\tif ((leftEdge == 1 && rightEdge == 1)) {\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\tAVLNode parent = node.delUnaryLeft();\n\t\t\t\t\t\tparent.updateSize();\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\tAVLNode parent = node.delUnaryRight();\n\t\t\t\t\t\tparent.updateSize();\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ((leftEdge == 1 && rightEdge == 2)) {\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\treturn this.delRecTwos(node.delUnaryLeft());\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\treturn this.delRecTwos(node.delUnaryRight());\n\t\t\t\t\t}\n\t\t\t\t} else {// leftEdge==2&&rightEdge==1\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\treturn this.delRecTriOne(node.delUnaryLeft(), side);\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\treturn this.delRecTriOne(node.delUnaryRight(), side);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (side == 'R') {\n\t\t\tif (node.isLeaf()) {\n\t\t\t\tint rightEdge = node.parent.getHeight() - node.getHeight();\n\t\t\t\tint leftEdge = node.parent.getHeight() - node.parent.getLeft().getHeight();\n\t\t\t\tAVLNode parent = (AVLNode) node.parent;\n\t\t\t\tif (leftEdge == 1 && rightEdge == 1) {// first case (\"easy one\", just delete)\n\t\t\t\t\tnode.parent.setRight(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\tparent.updateSize();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\tif (leftEdge == 2 && rightEdge == 1) {\n\t\t\t\t\tnode.parent.setRight(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\tparent.setHeight(parent.getHeight() - 1);\n\t\t\t\t\tparent.setSize();\n\t\t\t\t\treturn this.delRecTwos(parent);\n\t\t\t\t} else {// leftEdge==1&&rightEdge==2\n\t\t\t\t\tnode.parent.setRight(new AVLNode());\n\t\t\t\t\tnode.setParent(null);\n\t\t\t\t\treturn this.delRecTriOne(parent, side);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ((node.getLeft().getHeight() != -1 && node.getRight().getHeight() == -1)\n\t\t\t\t\t|| (node.getLeft().getHeight() == -1 && node.getRight().getHeight() != -1)) {// node is unary\n\t\t\t\tint rightEdge = node.parent.getHeight() - node.getHeight();\n\t\t\t\tint leftEdge = node.parent.getHeight() - node.parent.getLeft().getHeight();\n\t\t\t\tif ((leftEdge == 1 && rightEdge == 1)) {\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\tAVLNode parent = node.delUnaryLeft();\n\t\t\t\t\t\tparent.updateSize();\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\tAVLNode parent = node.delUnaryRight();\n\t\t\t\t\t\tparent.updateSize();\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ((leftEdge == 2 && rightEdge == 1)) {\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\treturn this.delRecTwos(node.delUnaryLeft());\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\treturn this.delRecTwos(node.delUnaryRight());\n\t\t\t\t\t}\n\t\t\t\t} else {// leftEdge==1&&rightEdge==2\n\t\t\t\t\tif (node.left != null) {\n\t\t\t\t\t\treturn this.delRecTriOne(node.delUnaryLeft(), side);\n\t\t\t\t\t} else {// node.right!=null\n\t\t\t\t\t\treturn this.delRecTriOne(node.delUnaryRight(), side);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// we get here only if node is binary, and thus not going through any other\n\t\t// submethod\n\t\tAVLNode successor = this.findSuccessor(node); // successor must be unary/leaf\n\t\tif (node.checkRoot()) {\n\t\t\tthis.root = successor;\n\t\t}\n\t\tint numOp = this.delete(successor.key);\n\t\tsuccessor.setHeight(node.getHeight());\n\t\tsuccessor.size = node.getSize();\n\t\tsuccessor.setRight(node.getRight());\n\t\tnode.right.setParent(successor);\n\t\tnode.setRight(null);\n\t\tsuccessor.setLeft(node.getLeft());\n\t\tnode.left.setParent(successor);\n\t\tnode.setLeft(null);\n\t\tsuccessor.setParent(node.getParent());\n\t\tif (node.parentSide() == 'L') {\n\t\t\tnode.parent.setLeft(successor);\n\t\t} else if (node.parentSide() == 'R') {// node.parentSide()=='R'\n\t\t\tnode.parent.setRight(successor);\n\t\t}\n\t\tnode.setParent(null);\n\t\treturn numOp;\n\n\t}", "private void removeWord(Node root,String word,int index){\n if(index == word.length()){ //not word.length()-1 because starts from empty root\n //visiting the last Node to Remove\n //but need to remove later when com back to its paren root.removeChild(ch);\n //cause need to check weather node has children or not\n System.out.println(root.value);\n root.isEndOfWord = false; //CARE can only physically 'E' but CAR Node R has E children so R.isEndOfWord =false\n return;\n }\n\n //1st get the 'ch' at the index of th word\n var ch = word.charAt(index);\n\n //get the child Node of ch in root/children\n var child = root.getChild(ch);\n\n //if word doesn't exist/ no any Characters\n if(child == null) return;\n\n //post order traversal visiting child 1st\n removeWord(child,word,index+1); //recursively remove/ go to the next indexes of the word\n\n //then visit root to remove last index\n System.out.println(root.value);\n // if the child doesn't have any children\n // or no any characters related to end of the removing word\n //ex: cant remove word 'CAT' cause 'CATEGORY' exist.\n //if doesnt have any children and it's not the end of another word, physically remove it\n if(!child.hasChildren() && !child.isEndOfWord)\n root.removeChild(ch); //CARE can only physically 'E' but CAR Node R has E children\n\n }", "private BinaryNode<E> _deleteNode(BinaryNode<E> nodeToDelete) {\n\t\tif (nodeToDelete.isLeaf()) // node to delete has no children\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tif (!nodeToDelete.hasLeftChild()) // node to delete has no LEFT child\n\t\t{\n\t\t\treturn nodeToDelete.getRightChild();\n\t\t}\n\t\tif (!nodeToDelete.hasRightChild()) // node to delete has no RIGHT child\n\t\t{\n\t\t\treturn nodeToDelete.getLeftChild();\n\t\t}\n\t\t// must have left and right children\n\t\t// Locate the rightmost node in the left subtree of\n\t\t// the node to delete and also its parent\n\t\tBinaryNode<E> parentOfRightMost = nodeToDelete;\n\t\tBinaryNode<E> rightMost = nodeToDelete.getLeftChild();\n\n\t\twhile (rightMost.getRightChild() != null) {\n\t\t\tparentOfRightMost = rightMost;\n\t\t\trightMost = rightMost.getRightChild(); // Keep going to the right\n\t\t}\n\n\t\t// Replace the element in nodeToDelete by the element in rightMost\n\t\tnodeToDelete.setData(rightMost.getData()); // don't really delete the node, just change the data\n\n\t\t// Eliminate rightmost node\n\t\tif (parentOfRightMost.getRightChild() == rightMost)\n\t\t\tparentOfRightMost.setRightChild(rightMost.getLeftChild());\n\t\telse\n\t\t\t// Special case: nodeToDelete's leftChild has no rightChild\n\t\t\tparentOfRightMost.setLeftChild(rightMost.getLeftChild());\n\n\t\treturn nodeToDelete;\n\t}", "public Node<E> delete(E payload) {\n Node<E> parent = searchParent(payload);\n Node<E> current = search(payload);\n if (current != null)\n return delete(current, parent);\n else\n return null;\n }", "private BSTnode<K> actualDelete(BSTnode<K> n, K key) {\n\t\tif (n == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (key.equals(n.getKey())) {\n\t\t\t// n is the node to be removed\n\t\t\tif (n.getLeft() == null && n.getRight() == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tif (n.getLeft() == null) {\n\t\t\t\treturn n.getRight();\n\t\t\t}\n\t\t\tif (n.getRight() == null) {\n\t\t\t\treturn n.getLeft();\n\t\t\t}\n\n\t\t\t// if we get here, then n has 2 children\n\t\t\tK smallVal = smallest(n.getRight());\n\t\t\tn.setKey(smallVal);\n\t\t\tn.setRight(actualDelete(n.getRight(), smallVal));\n\t\t\treturn n;\n\t\t}\n\n\t\telse if (key.compareTo(n.getKey()) < 0) {\n\t\t\tn.setLeft(actualDelete(n.getLeft(), key));\n\t\t\treturn n;\n\t\t}\n\n\t\telse {\n\t\t\tn.setRight(actualDelete(n.getRight(), key));\n\t\t\treturn n;\n\t\t}\n\t}", "public E delete(E item){\n\t\troot = delete(item, root);\n\t\treturn deleteReturn;\n\t}", "private void delete(BTreeNode<T> currentNode, I id) {\n int indexKey = findIndexKey(currentNode, id);\n\n if (indexKey != -1) {\n if (currentNode.isLeaf()) {\n removeFromLeaf(currentNode, indexKey);\n } else {\n //TODO: Remover dato de nodo que no sea hoja\n removeFromNonLeaf(currentNode, indexKey);\n }\n\n if (currentNode != root && currentNode.getNumKeys() < 2) {\n checkMinKeys(currentNode);\n }\n } else {\n if (currentNode.isLeaf()) {\n System.out.println(\"No existe en el arbol\");\n } else {\n int indexChild = findChildOrIndex(currentNode, id);\n\n delete(currentNode.getChild(indexChild), id);\n }\n }\n }", "public boolean delete(int x) {\n BstDeleteReturn output = deleteHelper(root,x );\n root = output.root;\n if (output.deleted) {\n size--;\n }\n\n return output.deleted;\n }", "private Node<T> delete(Node<T> node,Comparable<T> item) {\r\n if (node == null) { // this is the base case\r\n return null;\r\n }\r\n if (node.data.compareTo((T) item) < 0) {\r\n node.right = delete(node.right, item);\r\n return node;\r\n }\r\n else if (node.data.compareTo((T) item) > 0) {\r\n node.left = delete(node.left, item);\r\n return node;\r\n }\r\n else { // the item == node.data\r\n if (node.left == null) { // no left child\r\n return node.right;\r\n }\r\n else if (node.right == null) { // no right child\r\n return node.left;\r\n }\r\n else { // 2 children: find in-order successor\r\n if (node.right.left == null) { // if right child does not have a left child of its own\r\n node.data = node.right.data;\r\n node.right = node.right.right;\r\n }\r\n else {\r\n node.data = (Comparable<T>) removeSmallest(node.right); // if the right child has two children, or has a left subtree\r\n }\r\n return node;\r\n }\r\n }\r\n }", "public void delete(String key) {\n key = key.toLowerCase();\n BTreeNode leftChild = root.getChild(0);\n BTreeNode rightChild = root.getChild(1);\n\n if (!root.isLeaf() && root.getN() == 1 && leftChild.getN() < T_VAR && rightChild.getN() < T_VAR) {\n root = mergeSingleKeyRoot();\n }\n if (root.keyExist(key)) {\n if (root.isLeaf()) {\n root.deleteKey(key);\n }\n else {\n root.handleCase2(key);\n }\n }\n else {\n root.handleCase4(key);\n }\n }", "public void deleteItem(int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tDefaultMutableTreeNode root = (TreeNode) model.getRoot();\n\t\troot.remove(index);\n\t\tmodel.reload();\n\t}", "public void deleteNode(String node) {\n nodeRepository.delete(new Node(node));\n }", "public void removeFromParent() { if(_parent!=null) _parent.removeChild(this); }", "protected void deleteNode(INode node) {\n\n if (node != null) {\n\n this.ids.remove(node.getID());\n this.nodeMap.remove(node.getID());\n }\n }", "static void deleteNode(Node node){\n\t\tif(node.next==null){\r\n\t\t\tnode=null;\r\n\t\t}\r\n\t\tnode.data=node.next.data;\r\n\t\tnode.next=node.next.next;\r\n\t}", "private void deleteNode(Node node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }", "public Node delete(Node x, Key key) {\n if (x == null) return null;\n if (key.equals(x.key)) {\n n--;\n return x.next;\n }\n x.next = delete(x.next, key);\n return x;\n }", "private Node<Integer, Integer> delete(Node<Integer, Integer> node, int value) {\n\t\tif (node.getKey() == value && !node.hasChildren()) {\n\t\t\treturn null;\n\t\t} else if (node.getKey() == value && node.hasChildren()) {\n\t\t\tif (node.getLeft() == null && node.getRight() != null) {\n\t\t\t\treturn node.getRight();\n\t\t\t} else if (node.getLeft() != null && node.getRight() == null) {\n\t\t\t\treturn node.getLeft();\n\t\t\t} else {\n\t\t\t\treturn deleteRotateRight(node);\n\t\t\t}\n\t\t} else {\n\t\t\tif (node.getKey() > value) {\n\t\t\t\tnode.left = delete(node.getLeft(), value);\n\t\t\t\treturn node;\n\t\t\t} else {\n\t\t\t\tnode.right = delete(node.getRight(), value);\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.78555214", "0.7362956", "0.7324121", "0.7312327", "0.73115516", "0.7292489", "0.7101382", "0.70263815", "0.70055974", "0.69632703", "0.6931831", "0.68438333", "0.676354", "0.670464", "0.6673229", "0.6622554", "0.6601253", "0.65729094", "0.6548208", "0.6529548", "0.6503971", "0.6498616", "0.64763176", "0.6452801", "0.6425896", "0.6420599", "0.6408325", "0.63990074", "0.63865834", "0.638584", "0.6381346", "0.63642305", "0.63589627", "0.6347852", "0.63374025", "0.6316071", "0.6293748", "0.6267227", "0.6258381", "0.623831", "0.623433", "0.6222127", "0.618324", "0.61782146", "0.61737907", "0.6173612", "0.6172127", "0.6168633", "0.6147133", "0.61386865", "0.6123791", "0.6116359", "0.6113253", "0.61118734", "0.6108401", "0.61044264", "0.6097341", "0.6085377", "0.6071485", "0.6064822", "0.6059645", "0.60489", "0.60396", "0.6036532", "0.60269535", "0.60246587", "0.6022813", "0.60176563", "0.6012409", "0.6007114", "0.6004224", "0.6000764", "0.5979038", "0.5978571", "0.5976606", "0.5973392", "0.5963041", "0.5962995", "0.5961814", "0.5941061", "0.59284735", "0.59263223", "0.59160423", "0.59143424", "0.5912233", "0.59112704", "0.59091455", "0.59078324", "0.59057665", "0.59054285", "0.5903779", "0.5903675", "0.58991516", "0.58981425", "0.5896232", "0.58812636", "0.5881086", "0.5876815", "0.587377", "0.5863726" ]
0.653103
19
insert a node in this tree
public boolean insertJuniorNode(TreeNode treeNode) { int juniorParentId = treeNode.getParentId(); if (this.parentId == juniorParentId) { addChildNode(treeNode); return true; } else { List<TreeNode> cList = this.getChildList(); boolean insertFlag; for (TreeNode childNode : cList) { insertFlag = childNode.insertJuniorNode(treeNode); if (insertFlag) { return true; } } return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(Node n);", "private void insertNodeIntoTree(Node node) {\n\t\troot = insert(root,node);\t\n\t}", "public void insert(HuffmanTree node);", "@Override\n\tpublic void insert(Node node) {\n\t\tchildren.add(node);\n\t}", "public void insertnode ()\n\t// insert an empty node\n\t{\n\t\tif (Pos.haschildren() && !GF.askInsert()) return;\n\t\tNode n = new Node(Pos.node().number());\n\t\tPos.insertchild(new TreeNode(n));\n\t\tn.main(Pos);\n\t\tgetinformation();\n\t\tPos = Pos.lastChild();\n\t\tsetlast();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "public void insertNode(int d){\n if(root == null){\n root = new TreeNode(d);\n }\n else{\n root.insert(d);\n }\n }", "public void insert(T data)\r\n {\r\n root = insert(root, data);\r\n }", "public void insert(T data){\n\t\troot = insert(data, root);\n\t}", "public void insert(int key){\n\t\tif(this.root == null){\n\t\t\tNode r = new Node(key);\n\t\t\tthis.root = r;\t\n\t\t}else{\n\t\t\t//if not recursively insert the node\n\t\t\trecInsert(this.root, key);\n\t\t}\n\t\treturn;\n\t}", "public void insert(SplayNode n) {\n\t\t\t SplayNode y = null;\n\t\t\t SplayNode temp = this.root;\n\t\t while(temp != null) {\n\t\t y = temp;\n\t\t if(n.data < temp.data)\n\t\t temp = temp.left;\n\t\t else\n\t\t temp = temp.right;\n\t\t }\n\t\t n.parent = y;\n\n\t\t if(y == null) //newly added node is root\n\t\t this.root = n;\n\t\t else if(n.data < y.data)\n\t\t y.left = n;\n\t\t else\n\t\t y.right = n;\n\n\t\t this.splay(n);\n\t\t }", "public void insertNode(int data){\r\n\t\troot = insert(data, root);\r\n\t}", "public Node insertBefore(Node node);", "public void insertNode(T insertValue){\n if(root == null)\n root = new TreeNode<T>(insertValue);\n else\n root.insert(insertValue);\n }", "private void insert(RBNode<T> node) {\r\n RBNode<T> current = this.root;\r\n //need to save the information of parentNode\r\n //because need the parentNode to connect the new node to the tree\r\n RBNode<T> parentNode = null;\r\n\r\n //1. find the insert position\r\n while(current != null) {\r\n parentNode = current;//store the parent of current, because current is going to move\r\n int cmp = node.key.compareTo(current.key);\r\n if(cmp < 0)//if insert data is smaller than current data, then go into left subtree\r\n current = current.left;\r\n else//if insert data is bigger than or equal to current data, then go into right subtree\r\n current = current.right;\r\n }\r\n\r\n //find the position, let parentNode as the parent of newNode\r\n node.parent = parentNode;\r\n\r\n //2. connect newNode to parentNode\r\n if(parentNode != null) {\r\n int cmp = node.key.compareTo(parentNode.key);\r\n if(cmp < 0)\r\n parentNode.left = node;\r\n else\r\n parentNode.right = node;\r\n } else {\r\n //if parentNode is null, means tree was empty, let root = newNode\r\n this.root = node;\r\n }\r\n\r\n //3. fix the current tree to be a RBTree again\r\n insertFixUp(node);\r\n }", "public void insert(T e) {\n if (e == null) return;\n root = insert(root, e);\n }", "public void insert(T value) {\n\n // Assigns the new node as the root if root is empty.\n if (root == null) root = new Node<>(value);\n\n // Otherwise, traverses the tree until an appropriate empty branch is found.\n else insertRecursively(root, value);\n }", "public void insert(Point2D p) {\n if (this.n ==0) {\n this.root = new Node(p, true, new RectHV(0,0,1,1));\n this.n++;\n } else {\n if (insert1(root, p)) this.n++;\n }\n }", "public void insertNode(Item it) {\n this.currentPosition = new Node(this.currentPosition, it, this.currentPosition.next);\n }", "public void insert( AnyType x )\r\n\t{\r\n\t\troot = insert( x, root );\r\n\t}", "public void insert(int data) { \n\t\troot = insert(root, data);\t\n\t}", "public void insert(Point p) {\n if (p == null) {\n System.out.println(\"Illegal point argument\");\n }\n if (head == null || !search(p)) { //if root is empty or when the point isn't in the tree we insert it\n size++;\n head = insert(head, p, true);\n }\n }", "@Override\r\n public void insert(K key, V value) {\r\n // call insert of the root\r\n root.insert(key, value);\r\n }", "public void insert(Key key, Value value){\n this.root = this.insertHelper(key, value, root);\n }", "public void insert(T insertValue){\n // insert in left subtree\n if(insertValue.compareTo(data) < 0){\n // insert new TreeNode\n if(leftNode == null)\n leftNode = new TreeNode<T>(insertValue);\n else\n leftNode.insert(insertValue);\n }\n\n // insert in right subtree\n else if (insertValue.compareTo(data) > 0){\n // insert new treeNode\n if(rightNode == null)\n rightNode = new TreeNode<T>(insertValue);\n else // continue traversing right subtree\n rightNode.insert(insertValue);\n }\n }", "public void insertNode(T d) {\n /* Functions to insert data */\n TreeNode newNode = new TreeNode(d);\n nodesToInsertAt.add(newNode);\n size++;\n if(root == null){\n root = newNode;\n return;\n }\n TreeNode current; \n current = nodesToInsertAt.get(0);\n if(current.left == null){\n current.left = newNode;\n return;\n }\n if(current.right == null){\n current.right = newNode;\n nodesToInsertAt.remove(0);\n }\n }", "public void insert(int value){\r\n\t\tNode node = new Node<>(value);\r\n\t\t//If the tree is empty\r\n\t\tif ( root == null ) {\r\n\t\t\troot = node;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tinsertRec(root, node);\r\n\t}", "public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\t// once we reached the bottom of the tree, we insert the new node.\n\t\t// to do that we need to know the leaf node which is stored in the BSTNode parent\n\t\t// by comparing with its value, we know which side to insert the new node.\n\t\tif (key < parent.getKey()){\n\t\t\tparent.setLeft(new BSTNode(key, null, null));\n\t\t}else{\n\t\t\tparent.setRight(new BSTNode(key, null, null));\n\t\t}\n\t\tsize++;\n\t}", "public void insert(int data)\r\n {\r\n root = insert(root, data);\r\n }", "@Override\n\tpublic void insert(T value) \n\t{\n\t\tif(root==null)\n\t\t{\n\t\t\t//Add the new node to the root\n\t\t\troot = new TreeNode<T>(value);\n\t\t}\n\t\t//if the value compared to the root is less than zero (it's smaller than the root)\n\t\telse if(value.compareTo(value())<0)\n\t\t{\n\t\t\t//move to the left node, try insert again\n\t\t\troot.left().insert(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//move to the right node, try insert again\n\t\t\troot.right().insert(value);\n\t\t}\n\t}", "private BTNode insert(BTNode node, T data)\r\n {\r\n if (node == null)\r\n node = new BTNode(data);\r\n else\r\n {\r\n if (node.getLeft() == null)\r\n node.left = insert(node.left, data);\r\n else\r\n node.right = insert(node.right, data); \r\n }\r\n return node;\r\n }", "public void insert(Comparable<T> item)\r\n {\r\n root = insert(root, item);\r\n }", "public void insert(T data) {\n\t\tBSTNode<T> add = new BSTNode<T>(data);\n\t\tBSTNode<T> tmp = root;\n\t\tBSTNode<T> parent = null;\n\t\tint c = 0;\n\t\twhile (tmp!=null) {\n\t\t\tc = tmp.data.compareTo(data);\n\t\t\tparent = tmp;\n\t\t\ttmp = c < 0 ? tmp.left: tmp.right;\n\t\t}\n\t\tif (c < 0) \tparent.left = add;\n\t\telse \t\tparent.right = add;\n\t\t\n\n\t\n\t}", "public void insert(String word) {\n this.root.insert(word);\n }", "private void insert(Node node) {\n//\t\t//A*\n\t\topen.add(node);\n\t\tCollections.sort(open);\n//\t\t\n//\t\t//dfs\n//\t\topen.add(0, node);\n\t\t\n\t\t//bfs\n//\t\topen.add(node);\n\t}", "@Override\r\n\tpublic void insert(T element) {\r\n\r\n\t\tif (element != null) {\r\n\t\t\tBSTNode<T> nilParent = new BSTNode<>(); //Para o caso de estarmos inserindo a raiz (que tem parent NIL)\r\n\t\t\tinsert(this.root, element, nilParent);\r\n\t\t}\r\n\r\n\t}", "private Node _insert(Node node, T value) {\n if (node == null) {\n node = new Node(null, null, value);\n }\n /**\n * If the value is less than the current node's value, choose left.\n */\n else if (value.compareTo(node.element) < 0) {\n node.left = _insert(node.left, value);\n }\n /**\n * If the value is greater than the current node's value, choose right.\n */\n else if (value.compareTo(node.element) > 0) {\n node.right = _insert(node.right, value);\n }\n /** \n * A new node is created, or\n * a node with this value already exists in the tree.\n * return this node\n * */\n return node;\n\n }", "@Override\n public void insert(K key) {\n try {\n this.rootNode = insertNode(this.rootNode, key);\n } catch (DuplicateKeyException e) {\n System.out.println(e.getMessage());\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }", "private BinaryNode<E> _insert(BinaryNode<E> node, E e) {\n\n\t\tif (node == null) {\n\t\t\treturn new BinaryNode<E>(e);\n\t\t} else if (comparator.compare(e, node.getData()) < 0) { // <, so go left\n\t\t\tnode.setLeftChild(_insert(node.getLeftChild(), e));// recursive call\n\t\t} else { // >, so go right\n\t\t\tnode.setRightChild(_insert(node.getRightChild(), e));// recursive call\n\t\t}\n\t\treturn node;\n\t}", "public void insertingANode(T key, E value) {\r\n\t\tRBNode<T, E> insertedNode = createRBNode(key, value);\r\n\t}", "public void insert(Point2D p) { // add the point to the set (if it is not already in the set)\n // \"write a simplified version of insert() which does everything except set up the RectHV for each node\"\n if (p == null) throw new IllegalArgumentException();\n\n\n if (root == null) {\n Node node = new Node();\n node.p = p;\n node.horizontal = false;\n node.rect = new RectHV(0.0, 0.0, 1.0, 1.0);\n root = node;\n size = 1;\n return;\n }\n\n if (!contains(p)) {\n size++;\n insertNextFreeSubTree(p, root);\n }\n\n }", "public void insert(TreeNode insertNode) {\n\t\tif(root == null) {\n\t\t\troot = insertNode; \n\t\t\tlength++;\n\t\t\treturn;\n\t\t}\n\n\t\tTreeNode currentNode = root; \n\n\t\twhile(true) {\n\t\t\tif(insertNode.getData() >= currentNode.getData()) {\n\t\t\t\tif(currentNode.getRightChild() == null) {\n\t\t\t\t\tcurrentNode.setRightChild(insertNode);\n\t\t\t\t\tlength++;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tcurrentNode = currentNode.getRightChild();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(currentNode.getLeftChild() == null) {\n\t\t\t\t\tcurrentNode.setLeftChild(insertNode);\n\t\t\t\t\tlength++;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tcurrentNode = currentNode.getLeftChild();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void insert(int data) {\n root = insert(root, data, null);\n }", "public void insert(int X)\n {\n root = insert(X, root);\n }", "public void insert(int key) {\n // Implement insert() using the non-recursive version\n // This function should call findClosestLeaf()\n\n if(root!=null){ // มี node ใน tree\n Node n = findClosestLeaf(key); //หา Leaf n ที่ใกล้ค่าที่ใส่มากที่สุด โดย call findClosestLeaf()\n\n\n if(n.key!= key){ // ค่าที่จะใส่ต้องไม่มีใน tree\n if(key > n.key){ // ค่าที่จะใส่มากกว่า Leaf n ให้ใส่เป็นลูฏของ Leaf ด้านขวา\n n.right = new Node(key);\n n.right.parent = n;\n }\n\n else { // ค่าที่จะใส่น้อยกว่า Leaf n ให้ใส่เป็นลูฏของ Leaf ด้านซ้าย\n n.left = new Node(key);\n n.left.parent = n;\n }\n }\n else\n {\n return;\n }\n\n }else{ // ไม่มี node ใน tree ดังนั้นค่าที่ใส่เข้ามาจะกลายเป็ฯ root\n root = new Node(key);\n }\n }", "private BTNode<T> insert(T data, BTNode<T> node){\n\t\t// if the node does not exist, create it\n\t\tinsertCount++;\n\t\tif(node == null) return new BTNode<T>(data, null, null);\n\n\t\t//left placement\n\t\tinsertCount++;\n\t\tif(data.compareTo(node.getData()) <= 0) node.setLeft(insert(data, node.getLeft()));\n\n\t\telse node.setRight(insert(data, node.getRight()));\n\n\t\t//balance the tree after insertion\n\t\treturn balance(node);\n\t}", "TreeNode addChild(TreeNode node);", "void insert(int val){\n\t\tthis.root = insertHelper(root, val);\n\t}", "public void insert(TKey key, TValue data) {\n Node n = new Node(key, data, true); // nodes start red\n // normal BST insert; n will be placed into its initial position.\n // returns false if an existing node was updated (no rebalancing needed)\n boolean insertedNew = bstInsert(n, mRoot); \n if (!insertedNew) return;\n // check cases 1-5 for balance violations.\n checkBalance(n);\n }", "public void insert(String word) {\r\n tree.add(word);\r\n }", "public void insert(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }", "public void insert(Node given){\n\t\tlength++;\n\t\tString retVar = \"\";\n\t\tNode curNode = root;\n\t\twhile (!curNode.isLeaf()){\n\t\t\tif (curNode.getData() > given.getData()){\n\t\t\t\tcurNode = curNode.getLeft();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcurNode = curNode.getRight();\n\t\t\t}\n\t\t}\n\t\tif (curNode.getData() > given.getData()){ \n\t\t\tcurNode.setLeft(given);\n\t\t}\n\t\telse{\n\t\t\tcurNode.setRight(given);\n\t\t}\n\t\tmyLazySearchFunction = curNode;\n\t}", "void insert(K key, V value) {\r\n\r\n\r\n Node child = getChild(key);\r\n child.insert(key, value);\r\n // to check if the child is overloaded\r\n if (child.isOverflow()) {\r\n Node sibling = child.split();\r\n insertChild(sibling.getFirstLeafKey(), sibling);\r\n }\r\n\r\n // if the node is full then it requires to split\r\n if (root.isOverflow()) {\r\n Node sibling = split();\r\n InternalNode newRoot = new InternalNode();\r\n newRoot.keys.add(sibling.getFirstLeafKey());\r\n newRoot.children.add(this);\r\n newRoot.children.add(sibling);\r\n root = newRoot;\r\n }\r\n\r\n }", "public void insert(int key)\n {\n root = insertRec(root,key);\n }", "public void insert (T value) {\n if (left == null) {\n left = new BinaryTreeNode<>(value);\n return;\n }\n\n if (right == null) {\n right = new BinaryTreeNode<>(value);\n return;\n }\n\n if (getHeight(left) <= getHeight(right)) {\n left.insert(value);\n } else {\n right.insert(value);\n }\n }", "public void insert(String word) {\n char[] chars = word.toCharArray();\n Node theNode = root;\n for (char c : chars) {\n if (!theNode.leaf) theNode.leaf = false;\n if (theNode.children.containsKey(c)) {\n theNode = theNode.children.get(c);\n } else {\n Node newNode = new Node(c);\n theNode.children.put(c, newNode);\n theNode = newNode;\n }\n }\n theNode.leaf = true;\n }", "public void insert(double x, double y){\n root = insert(root, new Node(x, y), X_AXIS);\n\t\t}", "public Node insertAfter(Node node);", "public void insert(int x) {\n root = insertHelper(root, x);\n }", "public void insert(Point2D p) {\n\t\tif (p == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\troot = new Node(USING_X, null, p, new RectHV(0, 0, 1, 1));\n\t\t\tsize++;\n\t\t} else {\n\t\t\tNode nParent = findParent(root, null, p);\n\t\t\tif (nParent != null) {\n\t\t\t\tinsertChild(nParent, p);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t}", "public void insert(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"insert: Point2D is null\");\n if (root == null) {\n root = new Node(p);\n size++;\n root.rect = new RectHV(0.0, 0.0, 1.0, 1.0); // the whole unit\n }\n else root = insertNode(root, p, true);\n }", "public void insert(Nodo tree, String textField) {\n tree.getRoot().insertG(tree.getRoot(),textField);\n }", "public void insert(int a) {\r\n\t\tif (this.value > a) {\r\n\t\t\tif (this.leftChild == null) {\r\n\t\t\t\tthis.leftChild = new Node(a);\r\n\t\t\t} else {\r\n\t\t\t\tthis.leftChild.insert(a);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.value == 0) {\r\n\t\t\t\tthis.value = a;\r\n\t\t\t} else {\r\n\t\t\t\tif (this.rightChild == null) {\r\n\t\t\t\t\tthis.rightChild = new Node(a);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.rightChild.insert(a);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insert(E e) {\n\t\tNode node = new Node(e);\n\t\tint height = (int)(Math.log(size)/Math.log(2));\n\t\t// Handle root null scenario\n\t\tif (height == 0 && root == null) {\n\t\t\troot = node;\n\t\t\tsize++;\n\t\t\treturn;\n\t\t}\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\t// insert if left or right is empty\n\t\tif (parentOfLast.left == null) {\n\t\t\tparentOfLast.left = node;\n\t\t}\n\t\telse if (parentOfLast.right == null) {\n\t\t\tparentOfLast.right = node;\n\t\t}\n\t\t// if both left and right are full, go to the next parent and add node in left child of it\n\t\telse {\n\t\t\tNode nextParent = getNode(size >> 1 + 1);\n\t\t\tnextParent.left = node;\n\t\t}\n\t\tsize++;\n\t}", "public void bstInsert(E x) {\n\n root = bstInsert(x, root, null);\n }", "public void insert(T key, U data){\n\t\t\n\t\tAVLNode<T, U> parent = null;\n\t\tAVLNode<T, U> node = this.root;\n\t\tAVLNode<T, U> newNode = new AVLNode<T, U>(key, data);\n\t\t\n\t\tthis.amountOfNodes++;\n\t\t\n\t\twhile(node != null){\n\t\t\tparent = node;\n\t\t\tif(newNode.getKey().compareTo(node.getKey()) < 0){\n\t\t\t\tnode = node.getLeft();\n\t\t\t}else{\n\t\t\t\tnode = node.getRight();\n\t\t\t}\n\t\t}\n\t\t\n\t\tnewNode.setParent(parent);\n\t\t\n\t\tif(parent == null){ //It is the first element of the tree.\n\t\t\tthis.root = newNode;\n\t\t}else if(newNode.getKey().compareTo(parent.getKey()) < 0){\n\t\t\tparent.setLeft(newNode);\n\t\t}else{\n\t\t\tparent.setRight(newNode);\n\t\t}\n\t\tcomputeHeights(newNode);\n\t\tthis.balanceTree(parent);\n\t}", "public void insert(T x) {\n\t\tif (data == null) {\n\t\t\t// root = new MyTreeNode<T>();\n\t\t\tdata = x;\n\t\t\treturn;\n\t\t}\n\n\t\tMyTreeNode<T> node = new MyTreeNode<T>();\n\t\tnode.data = x;\n\n\t\tif (x.compareTo(data) < 0) {\n\t\t\tif (leftChild == null) {\n\t\t\t\tleftChild = node;\n\t\t\t} else {\n\t\t\t\tleftChild.insert(x);\n\t\t\t}\n//\t\t\t\t\t\t\tpointerNode = pointerNode.leftChild;\n\n//\t\t\t\t\t\t\tif (pointerNode == null) {\n//\n//\t\t\t\t\t\t\t\tparent.leftChild = insert;\n//\n//\t\t\t\t\t\t\t\treturn;\n//\n//\t\t\t\t\t\t\t}\n\t\t} else if (x.compareTo(data) > 0) {\n\t\t\tif (rightChild == null) {\n\t\t\t\trightChild = node;\n\t\t\t} else {\n\t\t\t\trightChild.insert(x);\n\t\t\t}\n\t\t} else {\n\n\t\t\tif (leftChild == null) {\n\t\t\t\tleftChild = node;\n\t\t\t} else {\n\t\t\t\tleftChild.insert(x);\n\t\t\t}\n\n\t\t\tif (rightChild == null) {\n\t\t\t\trightChild = node;\n\t\t\t} else {\n\t\t\t\trightChild.insert(x);\n\t\t\t}\n\n\t\t}\n\n\t}", "public void insertBST(Object o) {\n ObjectTreeNode p, q;\n \n ObjectTreeNode r = new ObjectTreeNode(o);\n if (root == null)\n root = r;\n else {\n p = root;\n q = root;\n while (q != null) {\n p = q;\n if (((TreeComparable)(r.getInfo())).compareTo((TreeComparable)(p.getInfo())) < 0 )\n q = p.getLeft();\n else\n q = p.getRight();\n }\n if (((TreeComparable)(r.getInfo())).compareTo((TreeComparable)(p.getInfo())) < 0)\n setLeftChild(p, r);\n else\n setRightChild(p, r);\n }\n }", "public void insert(int data) {\n this.root = this.insertRec(this.root, data);\n }", "public void insert(int key) {\n\t\tprivateInsert(key, root, null, new Ref<Integer>(1));\n\t}", "private AVLTreeNode<E> insert(E value) {\n int cmp = this.getValue().compareTo(value);\n AVLTreeNode<E> result;\n if(cmp == 0){\n result = null;\n } else if(cmp < 0){\n result = this.getRight() != null ? this.getRight().insert(value) : createTreeNode(value);\n if(result != null){\n this.setRight(result);\n }\n } else {\n result = this.getLeft() != null ? this.getLeft().insert(value) : createTreeNode(value);\n if(result != null){\n this.setLeft(result);\n }\n }\n return result == null ? result : balancing(this);\n }", "static void insert(Node nd, int key)\n\t{\n\t\tif (nd == null) {\n\t\t\troot = new Node(key);\n\t\t\treturn;\n\t\t}\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tq.add(nd);\n\n\t\t// Do level order traversal until we find an empty place\n\t\twhile (!q.isEmpty()) {\n\t\t\tnd = q.remove();\n\n\t\t\tif (nd.left == null) {\n\t\t\t\tnd.left = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.left);\n\n\t\t\tif (nd.right == null) {\n\t\t\t\tnd.right = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.right);\n\t\t}\n\t}", "private void insert(BSTNode<T> node, T element) {\n\t\tif(node.isEmpty()) {\n\t\t\tnode.setData(element);\n\t\t\tnode.setLeft(new BSTNode<T>());\n\t\t\tnode.setRight(new BSTNode<T>());\n\t\t\tnode.getLeft().setParent(node);\n\t\t\tnode.getRight().setParent(node);\n\t\t}else {\n\t\t\tif (node.getData().compareTo(element) > 0)\n\t\t\t\tinsert((BSTNode<T>) node.getLeft(), element);\n\t\t\telse\n\t\t\t\tinsert((BSTNode<T>) node.getRight(), element);\n\t\t}\n\t\t\n\t}", "public void insert(T data) {\n if (root == null) {\n root = new Node<>(data);\n } else {\n Node<T> current = root;\n Node<T> newNode = new Node<>(data);\n\n while (true) {\n if (newNode.compareTo(current) <= 0) {\n if (current.hasLeft()) {\n current = current.getLeft();\n } else {\n current.setLeft(newNode);\n break;\n }\n } else {\n if (current.hasRight()) {\n current = current.getRight();\n } else {\n current.setRight(newNode);\n break;\n }\n }\n }\n }\n size++;\n }", "protected Node<T> insert(Node<T> node, Comparable<T> item)\r\n {\r\n // if current root has not been previously instantiated\r\n // instantiate a new Node with item added as the data\r\n if (node == null) {\r\n return new Node<T>(item); // when your node is null, insert at leaf\r\n }\r\n if (item.compareTo((T) node.data) < 0) {\r\n node.left = insert(node.left,item);\r\n }\r\n else {\r\n node.right = insert(node.right,item);\r\n }\r\n return node; // re-link the nodes\r\n }", "public void add(Comparable obj)\n { \n \t //TODO\n \t //add code\n \t Node n = new Node(); \n \t n.data = obj;\n \t // \tn.left = null;\n \t // \tn.right = null;\n\n \t Node y = null;\n \t // \tNode x = root;\n \t Node current = root;\n \t while(current != null)\n \t {\n \t\t y = current;\n \t\t if(n.data.compareTo(root.data) < 0)\n \t\t\t current = current.left;\n \t\t else\n \t\t\t current = current.right;\n \t }\n\n\n \t n.parent = y;\n \t if(y == null)\n \t\t root = n;\n \t else\n \t\t if(n.data.compareTo(y.data) < 0)\n \t\t\t y.left = n;\n \t\t else\n \t\t\t y.right = n;\n \t n.left = null;\n \t n.right = null;\n \t n.color = RED;\n \t // \troot = new Node();\n \t // \troot.data = \"k\";\n \t // \tNode test = new Node();\n \t // \ttest.data = \"g\";\n \t // \troot.left= test;\n// \t System.out.println(\"the insertion looks like:\");\n// \t System.out.println(BTreePrinter.printNode(root));\n\n \t fixup(root,n);\n \t /*\n \tThe insert() method places a data item into the tree.\n\n \tInsertions\n \tpseudocode for\n \tRB-Insert(T,z)\n \ty = nil[T]\n \tx = root[T]\n \twhile x != nil[T]\n \ty = x\n \tif key[z] < key[x] then\n \tx = left[x]\n \telse\n \tx = right[x]\n \tp[z] = y\n \tif y = nil[T]\n \troot[T] = z\n \telse\n \tif key[z] < key[y] then\n \tleft[y] = z\n \telse\n \tright[y] = z\n \tleft[z] = nil[T]\n \tright[z] = nil[T]\n \tcolor[z] = RED\n \tRB-Insert-fixup(T,z)\n \t */\n }", "Node insertBefore(Node newChild, Node refChild);", "public void insert(int val) throws DifferentOrderTrees {\r\n \tMonceau monceauTemp = new Monceau();\r\n \t\r\n \tmonceauTemp.arbres.add(new Node(val));\r\n \tthis.fusion(monceauTemp);\r\n }", "public Node insert(Key key, Value value) { \r\n // inserting into an empty tree results in a single value leaf node\r\n return new LeafNode(key,value);\r\n }", "protected int insert(int toAdd){\n\n tnode object = new tnode();\n\n return object.insert(toAdd);\n\n }", "public void insert(K k, E e) \n\t{\n\t\troot = inserthelp(root, k, e);\n\t\tnodecount++;\n\t}", "public void insertNode(Node newNode) {\r\n\t\thFlag = 0;\r\n\t\tif( newNode == null ) {\r\n\t\t\tthrow new NullPointerException(\"Inserted node is null\");\r\n\t\t}\r\n\t\t//if tree is empty, make this node the root\r\n\t\tif( size == 0 ) {\r\n\t\t\troot = newNode;\r\n\t\t\tnewNode.parent = nilNode;\r\n\t\t\tnewNode.left = nilNode;\r\n\t\t\tnewNode.right = nilNode;\r\n\t\t\tnewNode.color = 1;\r\n\t\t\theight = 1;\r\n\t\t} else {\r\n\t\t\t//otherwise, start at root and climb down tree until a spot is found\r\n\t\t\tNode y = nilNode;\r\n\t\t\tNode x = root;\r\n\t\t\tint count = 1;\r\n\r\n\t\t\twhile(x != nilNode) {\r\n\t\t\t\ty = x;\r\n\t\t\t\tif(newNode.key < x.key || (newNode.key == x.key && newNode.p == 1) )\r\n\t\t\t\t\tx = x.left;\r\n\t\t\t\telse\r\n\t\t\t\t\tx = x.right;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tif(height < count) {\r\n\t\t\t\theight = count;\r\n\t\t\t\thFlag = 1;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tnewNode.parent = y;\r\n\t\t\tif(newNode.key < y.key || (newNode.key == y.key && newNode.p == 1) )\r\n\t\t\t\ty.left = newNode;\r\n\t\t\telse\r\n\t\t\t\ty.right = newNode;\r\n\t\t\tnewNode.left = nilNode;\r\n\t\t\tnewNode.right = nilNode;\r\n\t\t\tnewNode.color = 0;\r\n\r\n\t\t\t//fix up tree\r\n\t\t\tRBFixup(newNode);\r\n\t\t\t\r\n\t\t\t//Time to update the vaules in each node in O(h) time\r\n\t\t\t//after the fix up, newNode may have children who need to be updated,so\r\n\t\t\t//if newNode has nonNil children, start updating from either child\r\n\t\t\tif( !newNode.right.isNil || !newNode.left.isNil ) {\r\n\t\t\t\t//start from newNode's left child (right would work too)\r\n\t\t\t\trecUpdateNode(newNode.left);\r\n\t\t\t} else {\r\n\t\t\t\t//start from newNode\r\n\t\t\t\trecUpdateNode(newNode);\r\n\t\t\t}\n\t\t}\r\n\t\tsize++;\r\n\t}", "public void insert(AnyType x) {\n root = merge(new LeftistNode<>(x), root);\n }", "public void insertNodeInto(MutableTreeNode child, MutableTreeNode par, int i) {\n insertNodeInto(child, par);\n }", "void insert(int data) { \n root = insertRec(root, data); \n }", "private Node insert(Node curr, Node node) {\n\t\tif(curr==null){\n\t\t\tcurr = node;\n\t\t\treturn curr;\n\t\t}\n\t\telse if(curr.getId() > node.getId()){\n\t\t\t curr.setLeft(insert(curr.getLeft(),node));\n\t\t}\n\t\telse if(curr.getId() < node.getId()){\n\t\t\t curr.setRight(insert(curr.getRight(),node));\n\t\t}\n\t\treturn curr;\n\t}", "public void insert(E data){\n \t// Preform a regular insert\n // Check to make sure the tree remains an RBT tree\n\tNode<E> z = new Node<E>(data); //In the book, data is defined as a Node called z so I decided to do the same\n\tNode<E> y = sentinel; //In the book, y is assigned to the sentinel\n\tNode<E> x = root; //Node x is assigned to the root\n\twhile (x != sentinel) { //The first instance of null is replaced by the sentinel\n\t\ty = x;\n\t\tif (z.getData().compareTo(x.getData()) < 0) {\n\t\t\tx = x.getLeftChild();\n\t\t} else {\n\t\t\tx = x.getRightChild();\n\t\t}\n\t}\n\tz.setParent(y);\n\tif (y == sentinel) {\n\t\troot = z;\n\t} else {\n\t\tif (z.getData().compareTo(y.getData()) < 0) {\n\t\t\ty.setLeftChild(z);\n\t\t} else {\n\t\t\ty.setRightChild(z);\n\t\t}\n\t}\n\n\t//This is used to maintain the proper tree structure and RB properties\n\tz.setLeftChild(sentinel); //Set z.left is set to the sentinel\n\tz.setRightChild(sentinel); //Set z.right is set to the sentinel \n\tz.setColor('R');\n\n\t//Going to change z's positioning in the tree with this function, fixInsert()\n\tfixInsert(z);\n }", "public void insert(Point2D p) \r\n\t{\r\n\t\troot = insert(p, root, VER);\r\n\t}", "public Node insert(Node node, int key) {\n\t\tif (node == null)\n\t\t\treturn new Node(key);\n\n\t\t/* Otherwise, recur down the tree */\n\t\tif (key < node.data) {\n\t\t\tnode.left = insert(node.left, key);\n\t\t\tnode.left.parent = node;\n\t\t} else if (key > node.data) {\n\t\t\tnode.right = insert(node.right, key);\n\t\t\tnode.right.parent = node;\n\t\t}\n\n\t\t/* return the (unchanged) node pointer */\n\t\treturn node;\n\t}", "private Node insert(Node root, T element) {\n\t\tif (root == null)\n\t\t\troot = new Node(element);\n\t\t// left side\n\t\telse if (element.compareTo(root.element) < 0) {\n\t\t\troot.left = insert(root.left, element);\n\t\t\troot.left.parent = root;\n\t\t\t// right side\n\t\t} else if (element.compareTo(root.element) >= 0) {\n\t\t\troot.right = insert(root.right, element);\n\t\t\troot.right.parent = root;\n\t\t}\n\n\t\treturn root;\n\t}", "static TreeNode insert(TreeNode node, int key) \n\t{ \n\t // if tree is empty return new node \n\t if (node == null) \n\t return newNode(key); \n\t \n\t // if key is less then or grater then \n\t // node value then recur down the tree \n\t if (key < node.key) \n\t node.left = insert(node.left, key); \n\t else if (key > node.key) \n\t node.right = insert(node.right, key); \n\t \n\t // return the (unchanged) node pointer \n\t return node; \n\t}", "public void insert(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n this.root = insert(this.root, p, true);\n }", "public static void insert(TreeNode root, TreeNode node){\n\t\t \n\t\t if(node.val < root.val){\n\t\t\t if(root.left == null){\n\t\t\t\t root.left = node;\n\t\t\t }\n\t\t\t else{\n\t\t\t\t insert(root.left, node);\n\t\t\t }\n\t\t }\n\t\t else{\n\t\t\t if(root.right == null){\n\t\t\t\t root.right = node;\n\t\t\t }\n\t\t\t else{\n\t\t\t\t insert(root.right,node);\n\t\t\t }\n\t\t }\n\t }", "public void insert(Integer key){\r\n\t\tint start=this.root;\r\n\t\tint currentPos=avail;\r\n\t\tint temp=-1;\r\n\t\twhile(increaseCompares() && start!=-1) {\r\n\t\t\ttemp=start;\r\n\t\t\tcompares++;\r\n\t\t\tif(increaseCompares() && key<getKey(start)) {\r\n\t\t\t\tstart=getLeft(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstart=getRight(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Tree is empty. New Node is now root of tree\r\n\t\tif(increaseCompares() && temp==-1) {\r\n\t\t\tsetRoot(0);\r\n\t\t\tcompares++;\r\n\t\t\tsetKey(avail, key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\t//Compare values and place newNode either left or right of previous Node\r\n\t\telse if(increaseCompares() && key<getKey(temp)) {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetLeft(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetRight(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t}", "@Override\n public boolean insert(E e) {\n \tif(size() == 0) {\n \t\troot = new TreeNode<E>(e);\n \t\tsize++;\n \t\treturn true;\n \t}\n \tTreeNode<E> parent = findInsertPoint(e, root, null);\n \tif(e.compareTo(parent.element) < 0) {\n \t\tparent.left = new TreeNode<E>(e);\n \t\tsize++;\n \t\treturn true;\n \t} else if(e.compareTo(parent.element) > 0){\n \t\tparent.right = new TreeNode<E>(e);\n \t\tsize++;\n \t\treturn true;\n \t}\n \tthrow new IllegalArgumentException(\"Invalid Entry\");\n \n }", "public void insert(AnyType x) {\n\t\troot = insert(x, root);\n\t}", "public void insert(String word) {\n var node = root;\n for(char currentChar : word.toCharArray()){\n if(!node.containsKey(currentChar)) {\n node.put(currentChar, new Node());\n }\n node = node.get(currentChar);\n }\n node.setEnd();\n }", "public void insertNode(String node) {\n Nodo newNode = new Nodo(node);\n newNode.next = lastIn;\n lastIn = newNode;\n size++;\n }", "public void insertNode(int val)\r\n {\r\n temp=new TriLinkNode();\r\n temp.v1=val;\r\n temp.d1=false;\r\n temp.i1=true;\r\n if(root==null)\r\n {\r\n root=temp;\r\n }else\r\n {\r\n recInsertNode(root);\r\n }\r\n \r\n }", "public void insert(T data) throws NullPointerException,\n IllegalArgumentException {\n // null references cannot be stored within this tree\n if(data == null) throw new NullPointerException(\n \"This RedBlackTree cannot store null references.\");\n\n Node<T> newNode = new Node<>(data);\n if(root == null) { root = newNode; } // add first node to an empty tree\n else insertHelper(newNode,root); // recursively insert into subtree\n \n //always sets root node of RBT to black\n root.isBlack = true;\n }", "public static void insert(int d, Node n) {\r\n\t\tif (root == null) {\r\n\t\t\troot = new Node();\r\n\t\t\troot.data = d;\r\n\t\t} else {\r\n\t\t\tif (d < n.data) {\r\n\t\t\t\tif (n.Lchild != null)\r\n\t\t\t\t\tinsert(d, n.Lchild);\r\n\t\t\t\telse {\r\n\t\t\t\t\tNode temp = new Node();\r\n\t\t\t\t\ttemp.data = d;\r\n\t\t\t\t\tn.Lchild = temp;\r\n\t\t\t\t}\r\n\t\t\t} else if (d> n.data) {\r\n\t\t\t\tif (n.Rchild != null)\r\n\t\t\t\t\tinsert(d, n.Rchild);\r\n\t\t\t\telse {\r\n\t\t\t\t\tNode temp = new Node();\r\n\t\t\t\t\ttemp.data = d;\r\n\t\t\t\t\tn.Rchild = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void insert(int data) {\r\n \r\n // call the private insert method with root and data\r\n root = insert(root, data);\r\n }" ]
[ "0.8316435", "0.8053654", "0.7985994", "0.7638823", "0.7544162", "0.7434137", "0.74185026", "0.74005145", "0.73996365", "0.7375583", "0.7324594", "0.732271", "0.7320579", "0.7278632", "0.72422516", "0.72152054", "0.7210151", "0.7193864", "0.7101066", "0.70926666", "0.70835686", "0.70765245", "0.70606285", "0.70259064", "0.70217544", "0.70167005", "0.7002372", "0.6981179", "0.6977947", "0.6977868", "0.6976946", "0.6975643", "0.69444466", "0.6939444", "0.6939347", "0.6938346", "0.6937131", "0.692788", "0.6923156", "0.6917799", "0.688073", "0.68683434", "0.68612415", "0.6854126", "0.68481404", "0.68469596", "0.6843961", "0.6838303", "0.6833271", "0.6820205", "0.68139887", "0.6811124", "0.6810867", "0.68076986", "0.6803557", "0.6803479", "0.68009275", "0.6798988", "0.67937094", "0.6792047", "0.67863554", "0.6786031", "0.6782155", "0.67780226", "0.6764277", "0.6763204", "0.67520374", "0.67484146", "0.6748389", "0.6747532", "0.6741871", "0.67373335", "0.6737089", "0.6731642", "0.67236227", "0.67207503", "0.6713374", "0.6708372", "0.6700775", "0.66938794", "0.6670165", "0.6667285", "0.6662696", "0.6662311", "0.66559166", "0.66553193", "0.6647632", "0.6646666", "0.66417134", "0.663925", "0.6632963", "0.66308457", "0.66247123", "0.6623253", "0.6618683", "0.66154635", "0.66111016", "0.6607103", "0.65953207", "0.65948385", "0.65887046" ]
0.0
-1
find a certain node
public TreeNode findTreeNodeById(int id) { if (this.selfId == id) { return this; } if (childList.isEmpty()) {//check return null; } else { for (TreeNode child : childList) { TreeNode resultNode = child.findTreeNodeById(id); if (resultNode != null) { return resultNode; } } return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyNode findMyNode(Node node){\r\n\t\treturn nodesMap.get(node);\r\n\t}", "private Node searchNode(int id) {\n\t\tNode node = searchRec(root,id);\n\t\treturn node;\n\t}", "private BinaryNode<E> _findNode(BinaryNode<E> node, E e) {\n\t\tif (node == null)\n\t\t\treturn null;\n\t\telse if (comparator.compare(e, node.getData()) < 0) // *****CHANGE THIS for HW#4*****\n\t\t\treturn _findNode(node.getLeftChild(), e);\n\t\telse if (comparator.compare(e, node.getData()) > 0) // *****CHANGE THIS for HW#4*****\n\t\t\treturn _findNode(node.getRightChild(), e);\n\t\telse // found it!\n\t\t\treturn node;\n\t}", "private Node getNode(String name) {\n for(Iterator<Node> i = nodes.iterator(); i.hasNext();) {\n Node n = i.next();\n if(n.getName().equalsIgnoreCase(name)){\n return n;\n };\n }\n return null;\n }", "public TFNode findNode(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n\r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node;\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "@Override\r\n public Object findElement(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n \r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node.getItem(index);\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "public Node findSubNode(String name, Node node) {\n\t if (node.getNodeType() != Node.ELEMENT_NODE) {\n\t System.err.println(\"Error: Search node not of element type\");\n\t System.exit(22);\n\t }\n\n\t if (! node.hasChildNodes()) return null;\n\n\t NodeList list = node.getChildNodes();\n\t for (int i=0; i < list.getLength(); i++) {\n\t Node subnode = list.item(i);\n\t if (subnode.getNodeType() == Node.ELEMENT_NODE) {\n\t if (subnode.getNodeName().equals(name)) \n\t return subnode;\n\t }\n\t }\n\t return null;\n\t}", "private Node findNode(Node node, String name) {\n Node temp = node;\n\n if (temp.getNext() != null && name.compareTo(temp.getNext().getState().getName()) > 0) {\n temp = findNode(temp.getNext(), name);\n }\n return temp;\n }", "public Node find(int id) {\n return tree.find(id);\n }", "Node getNode();", "void pathFound(Node node);", "ANode<T> find(IPred<T> p) {\n return header.find(p, true);\n }", "private static INodePO findNode(INodePO ownerNode,\n INodePO selectecNode) {\n Iterator childIt = ownerNode.getNodeListIterator();\n while (childIt.hasNext()) {\n INodePO child = (INodePO)childIt.next();\n if (child.getId().equals(selectecNode.getId())) {\n return child;\n }\n }\n return null;\n }", "public BinaryNode<T> find(T v);", "private Node search(String name)\r\n\t{\r\n\t\t// Check to see if the list is empty\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\t// Return null which will be checked for by the method that called it\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Tree is not empty so use the recursive search method starting at the root reference \r\n\t\t// to find the correct Node containing the String name\r\n\t\treturn search(getRoot(), name);\r\n\t}", "public Node<E> findNode(int index){\t\r\n\t\tcheckIndex(index);\r\n\t\tint k = 0;\r\n\t\tNode<E> foundNode = headNode;\r\n\t\twhile(k < index - 1) {\r\n\t\t\tfoundNode = foundNode.link;\r\n\t\t}\r\n\t\t\r\n\t\treturn foundNode;\r\n\t}", "public Node searchElement(Object el) {\n\t\n\t\tfor (Node elemento : this.set) {\n\t\t\tif(elemento.getElemento().equals(el)) {\n\t\t\t\treturn elemento;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private int find(int p1, int p2) {\n return id[p1 - 1][p2 - 1]; // find the current value of a node\n }", "public Node<T> findNode(final Point point) {\n final Integer nodeId = this.nodesIdsByCoordinates.get(point);\n if (nodeId == null) {\n return null;\n } else {\n return getNode(nodeId);\n }\n }", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "public static Node find(Node a){\n\t\tif(a.parent == null) return a;\n\t\treturn find(a.parent);\n\t}", "private Node findNode(Graph g, int id){\r\n for(Node n : g.getListNodes()){\r\n if (n.getId() == id){\r\n return n;\r\n }\r\n }\r\n return null;\r\n }", "public Node<T> findSlow(T element);", "private Node find(Order ord){\n\t\tNode position=head;\n\t\tOrder ItemPosition;\n\t\twhile (position!=null){\n\t\t\tItemPosition = position.ord;\n\t\t\tif(ItemPosition.equals(ord)) {\n\t\t\t\tposition=bestBid;\n\t\t\t\treturn position;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Node find(int key) {\n Node current = root; // start at root\n while (current.iData != key) {\n // while no match\n if (key < current.iData)\n // go left\n current = current.leftChild;\n else\n current = current.rightChild;\n if (current == null) // if no child, didn't find it\n return null;\n }\n return current; // found it\n }", "private BinaryTreeNode findNode(T item) {\n\t\tif (item.equals(root.data)) {\n\t\t\treturn root;\n\t\t}\n\n\t\telse return findNodeRecursive(item, root);\n\t}", "public Node findNode(Node search, Node node) {\n\n if (search == null) {\n return null;\n }\n if (search.data == node.data) {\n return search;\n } else {\n\n Node returnNode = findNode(search.leftChild, node);\n\n if (returnNode == null) {\n\n returnNode = findNode(search.leftChild, node);\n }\n\n return returnNode;\n }\n\n\n }", "public Node findNode(E val) {\n\t\tif (val == null) return null;\n\t\treturn findNode(root, val);\n\t}", "public BTNode<T> find ( T data ){\n\t\t//reset the find count\n\t\tfindCount = 0;\n\t\t \t\t\n\t\tif (root == null) \n\t\t\treturn null;\n \t\telse\n \t\treturn find (data, root);\n \t}", "private Node find(String key) {\n Node now = head;\n while (now != null) {\n if (now.pairStringString.getKey().equals(key)) {\n return now;\n }\n now = now.next;\n }\n return null;\n }", "public E find(E item){\n\t\tE found = find(item, root);\n\t\treturn found;\n\t}", "public Node find(int key) // find node with given key\n\t{ // (assumes non-empty tree)\n\t\tNode current = root; // start at root\n\t\tif(current == null) {\n\t\t\treturn null;\n\t\t}\n\t\twhile(current.iData != key) // while no match,\n\t\t{\n\t\t\tif(key < current.iData) // go left?\n\t\t\t\tcurrent = current.leftChild;\n\t\t\telse // or go right?\n\t\t\t\tcurrent = current.rightChild;\n\t\t\tif(current == null) // if no child,\n\t\t\t\treturn null; // didn't find it\n\t\t}\n\t\treturn current; // found it\n\t}", "public Node nodeSearch(String s){\t \n\t int i=0;\n\t i++;\n\t if(this.children == null){\n\t\t//\t\tSystem.out.println(\"1\");\n\t\treturn null;\n\t }\n\t if(root.state.equals(s)){\n\t\t//System.out.println(\"2\");\n\t\treturn this;\n\t }\n\t Node v=null;\n\t for(String key:this.children.keySet()){\n\t\tNode nxt=this.children.get(key);\n\t\tif(key.equals(s)){\n\t\t // System.out.println(\"3\");\n\t\t return nxt;\n\t\t}\n\t\telse{\n\t\t v=nxt.nodeSearch(s);\n\t\t}\n\t }\n\n\t if(v!=null){\n\t\t//\t\tSystem.out.println(\"4\");\n\t\treturn v;\n\t }else{\n\t\t//System.out.println(\"5\");\t\t\n\t\treturn null;\n\t }\n\t}", "public void testFind() {\r\n assertNull(tree.find(\"apple\"));\r\n tree.insert(\"apple\");\r\n tree.insert(\"act\");\r\n tree.insert(\"bagel\");\r\n assertEquals(\"act\", tree.find(\"act\"));\r\n assertEquals(\"apple\", tree.find(\"apple\"));\r\n assertEquals(\"bagel\", tree.find(\"bagel\"));\r\n }", "public Node getNode(String root, String name){\n\t\tNodeList userData = returnChildNodes(root, name);\n\t\t\n\t\tfor(int i = 0; i < userData.getLength(); i++){ //cycle through the family and find the node that equals to the node parameter\n\t\t\tNode node = userData.item(i);\n\t\t\tif(name.equals(node.getNodeName())){\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private static String findNode(int index){\n return indexTable.get(index);\n }", "public Node findSuccessor(int id);", "public boolean searchNode(int value) \n { \n return searchNode(header.rightChild, value); \n }", "Object get(Node node);", "public Node search(int key) {\n\t\t\t Node node=root;\n\t while (node!= nil){\n\t if(node.id==key){\n\t \treturn node;\n\t }\n\t else if(node.id<key){\n\t \tnode=node.right;\n\t }\n\t else{\n\t \tnode=node.left;\n\t } \n\t }\n\t //key not found in the tree\n\t return nil;\n\t }", "private Node<TokenAttributes> findFirst(Node<TokenAttributes> current_node) {\n if (current_node.getParent() != null && current_node.getParent().getChildren().size() == 1) {\n return findFirst(current_node.getParent());\n }\n if (current_node.getParent() == null) {\n return current_node;\n }\n return current_node;\n }", "N getNode(int id);", "Node getNode(String path);", "private Node findNode(char c) {\n String temp = String.valueOf(c);\n for (Node node : traverseTree()) {\n if ((node.letter != null) && node.letter.equals(temp)) {\n return node;\n }\n }\n return null;\n }", "public Node find(String s)\n {\n Node n = head;\n if (n == null)\n return null;\n while (n != null)\n {\n if (n.data.equals(s))\n return n;\n n = n.next;\n }\n return null;\n }", "public DNode find(int i,int j)\n\t{\n\t\tif (i<j)\n\t\t{\n\t\t\tint tem=i;\n\t\t\ti=j;\n\t\t\tj=tem;\t\n\t\t}\n\t\tDNode tem=first;\n\t\tif(tem.indX==i&&tem.indY==j)\n\t\t\treturn tem;\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\ttem=tem.nextDNode;\n\t\t\tif(tem.indX==i&&tem.indY==j)\n\t\t\t\treturn tem;\n\t\t}\n\t\treturn tem;\n\t}", "public StringNode locate(String word) {\n StringNode current = first;\n while (true) {\n if (current == null) {\n return null;\n }\n if (current.getWord().equalsIgnoreCase(word)) {\n return current;\n }\n else {\n if (current.hasNext()) {\n current = current.getNext();\n }\n else {\n return null;\n }\n }\n }\n }", "static Node findPath(Node r, String[] path) {\n try {\n return NodeOp.findPath(r, path);\n } catch (NodeNotFoundException ex) {\n return ex.getClosestNode();\n }\n }", "public T find(T element);", "public static Node find(Node node, int search_key){\n if(node!=null){ // node ที่รับมาต้องมีตัวตน\n if (search_key== node.key){ //ถ้าเจอ node ที่ตามหา ส่งค่าออกไป\n return node;\n }\n else if (search_key > node.key) { //ถ้า search_key มากกว่า node.key ตอนนี้ แสดงว่า อยู่ทางด้านขวา\n return find(node.right,search_key); // recursive โดยส่ง right-subtree\n }\n else{\n return find(node.left,search_key); // recursive โดยส่ง left-subtree\n }\n }\n else return null;\n\n }", "public TreeNode find(Integer searchKey) {\n\t\treturn root.find(searchKey);\n\t}", "public NodeD find(Object data){\n if (this.isEmpty()){\n return null;\n }else{\n if (this.head.getObject()==data){\n return this.head;\n }else{\n NodeD tmp = this.head.getNext();\n\n while(tmp!=null){\n if (tmp.getObject()==data){\n return tmp;\n }\n tmp = tmp.getNext();\n }\n return null;\n }\n }\n }", "public Node search(K key) {\n\t\tNode currentNode = this.mRoot;\n\t\t// start from the root of the tree that calls the method\n\t\twhile (currentNode != mSentinel && key.compareTo(currentNode.getKey()) != 0) {\n\t\t\t// if the current node is not empty and its key is not equal to the\n\t\t\t// search key\n\t\t\tif (key.compareTo(currentNode.getKey()) < 0) {\n\t\t\t\tcurrentNode = currentNode.getLeftChild();\n\t\t\t\t// go left if the search key is lower\n\t\t\t} else {\n\t\t\t\tcurrentNode = currentNode.getrightChild();\n\t\t\t\t// go right if the search key is higher\n\t\t\t}\n\t\t\t// break the loop if the search key matches the node key\n\t\t}\n\t\tif (currentNode == mSentinel) {\n\t\t\treturn null;\n\t\t\t// if there is not a match return nu;;\n\t\t} else {\n\t\t\treturn currentNode;\n\t\t\t// return the first node with the same key as the search key\n\t\t}\n\t}", "private ListNode findNodeWith(T aData){\r\n ListNode temp = head;\r\n while(temp != null){\r\n if (temp.data == aData)\r\n return temp;\r\n temp = temp.link;\r\n }\r\n return null;\r\n }", "private BTNode<T> find ( T data, BTNode<T> node ){\n \t\tfindCount++;\n\t\tif (data.compareTo (node.getData()) == 0){\n \t\treturn node;\n\t\t}else {\n\t\t//findCount++;\n\t\tif (data.compareTo (node.getData()) < 0){\n \t\treturn (node.getLeft() == null) ? null : find (data, node.getLeft());\n\t\t}else{\n \t\treturn (node.getRight() == null) ? null : find (data, node.getRight());\n\t\t}\n\t\t}\n }", "public NodeList<T> search(T info){\n NodeList<T> f = first;\n\n while (f != null){\n if(f.getInfo().equals(info)){\n return f;\n }\n f = f.getNext();\n }\n return null;\n }", "public Node getNode(String nodeName) {\n\t\t\t\n\t\tfor(Node n : nodes)\n\t\t{\n\t\t\tif(n.getName().equals(nodeName.toUpperCase()))\n\t\t\t\treturn n;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public String find(int key) {\n\t\t//YOUR CODE HERE\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn find(key,root);\n\t}", "public static Node findNodeById(ConcurrentHashMap<String, Node> idIndex, String id, Logger logger) {\n\t\tNode foundNode = idIndex.get(id);\n\n\t\tif (foundNode == null) {\n\t\t\tlogger.warning(\"WARNING: COULD NOT FIND NODE WITH ID = \" + id + \". HREF IGNORED...\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn foundNode;\n\n\t\t// ArrayList<Node> foundNodes = new ArrayList<Node>();\n\t\t//\n\t\t// Iterator<Entry<String, Node>> it = idIndex.entrySet().iterator();\n\t\t// while (it.hasNext()) {\n\t\t// Map.Entry<String, Node> pair = (Map.Entry<String, Node>) it.next();\n\t\t//\n\t\t// if (pair.getKey().equals(id)) {\n\t\t// foundNodes.add(pair.getValue());\n\t\t// it.remove();\n\t\t// break;\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // for (Node n : idIndex.query(\"id\", id)) {\n\t\t// // foundNodes.add(n);\n\t\t// // }\n\t\t//\n\t\t// switch (foundNodes.size()) {\n\t\t// case 0:\n\t\t// logger.warning(\"WARNING: COULD NOT FIND NODE WITH ID = \" + id);\n\t\t// return null;\n\t\t// case 1:\n\t\t// return foundNodes.get(0);\n\t\t// case 2:\n\t\t// if (foundNodes.get(0).getId() < foundNodes.get(1).getId()) {\n\t\t// if (isOld) {\n\t\t// return foundNodes.get(0);\n\t\t// }\n\t\t// return foundNodes.get(1);\n\t\t// } else {\n\t\t// if (isOld) {\n\t\t// return foundNodes.get(1);\n\t\t// }\n\t\t// return foundNodes.get(0);\n\t\t// }\n\t\t// default:\n\t\t// logger.warning(\"WARNING: MULTIPLE NODES HAVE THE SAME ID = \" + id);\n\t\t// return null;\n\t\t// }\n\t}", "private Node findKey(String key){\n Node N = front;\n while(N != null){\n if(N.key.equals(key)){\n return N; \n }\n else{\n N = N.next; \n }\n }\n return null;\n }", "private Node find(int index)\n {\n Node curr = head;\n for(int i = 0; i < index; i++)\n {\n curr = curr.next;\n }\n return curr;\n }", "public Node getNode();", "@Override\r\n public E find(E target) {\r\n return findHelper(root,target,0);\r\n }", "private Element getElementByKeyRef(Node node) {\n\t\tElement ref ;\n\t\t\t\n\t\tString refType = getDocumentXpath(node);\n\t\tSystem.out.println(\"search ref for : \"+refType);\n\t\t/* get ref attribute */\n\t\tString refId = node.getTextContent();\n\t\tif (refId == null || refId.equals(\"\")){ \n\t\t\tfor (int i = 0; i< node.getAttributes().getLength(); i++) {\n//\t\t\t\tSystem.out.println(node.getAttributes().item(i).getNodeName()+\" :: \"+node.getAttributes().item(i).getTextContent());\n\t\t\t\tif (node.getAttributes().item(i).getNodeName().equals(refAttribute)){\n\t\t\t\t\t\trefId = node.getAttributes().item(i).getNodeValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tString referedType = (String) refType2referedType.get(refType)\t;\t\n\t\t\n\t\tref = (Element) xsKeyNodes.get(referedType+\"#\"+refId);\t\t\n\t\treturn ref;\n\t}", "public Node getNode(String key) {\n \ttmp = first;\n \tint i;\n \tfor (i=0;i<len;i++) {\n \t\tif (tmp.key == key) {\n \t\t\treturn tmp;\n \t\t}\n \t\ttmp = tmp.getNext();\n \t}\n \treturn null;\n }", "public int findNode(GraphNode pNode){\n int result = 0;\n \n for (int i = 0; i < Nodes.size(); i++){\n if (Nodes.get(i).equals(pNode)){\n result = i;\n }\n }\n \n return result;\n }", "ANode<T> find(IPred<T> p, boolean b) {\n return this.next.find(p);\n }", "ANode<T> find(IPred<T> p) {\n if (p.apply(this.data)) {\n return this;\n }\n else {\n return this.next.find(p);\n }\n }", "private ListNode find(K key) {\r\n\t\t\tif (key == null) throw new NullPointerException();\r\n\t\t\tListNode current = header;\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tif (current.key.equals(key)) return current;\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "private AccessPath findNode(Node n, HashSet s) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n AccessPath p = (AccessPath)ap.getObject();\n if (n == p._n) return p;\n s.add(ap);\n AccessPath q = p.findNode(n, s);\n if (q != null) return q;\n }\n }\n return null;\n }", "private static Node search(Node currentNode, Node nodeToFind) {\n\t\tif (currentNode != null) {\n\t\t\tNode leftNode = search(currentNode.leftChild, nodeToFind);\n\t\t\tNode rightNode = search(currentNode.rightChild, nodeToFind);\n\t\t\t\n\t\t\t// If either node is not null it means that the matching node has\n\t\t\t// been found in a previous recursion.\n\t\t\tif (leftNode != null || rightNode != null) {\n\t\t\t\treturn leftNode == null ? rightNode : leftNode; \n\t\t\t}\n\t\t\t// Otherwise we compare the current node values.\n\t\t\tif (currentNode.value == nodeToFind.value) {\n\t\t\t\treturn currentNode;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn null; // Return null if no match.\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private SkipNode<K, V> findNode(Object key) {\n\t\tSkipNode<K, V> nodeOut;\n\t\tnodeOut = headNode;\n\t\twhile (true) {\n\t\t\twhile ((nodeOut.getNext().getKey()) != posInf\n\t\t\t\t\t&& (nodeOut.getNext().getKey()).compareTo((Integer) key) <= 0)\n\t\t\t\tnodeOut = nodeOut.getNext();\n\t\t\tif (nodeOut.getDown() != null)\n\t\t\t\tnodeOut = nodeOut.getDown();\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\treturn nodeOut;\n\t}", "private Node findNode( Node nodeIn, int w, int h ){\r\n\t\tif( nodeIn.used == true ){\r\n\t\t\tNode temp = findNode( nodeIn.right, w, h );\r\n\t\t\tif( temp != null ){\r\n\t\t\t\tnodeIn = temp;\r\n\t\t\t\treturn nodeIn;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn findNode( nodeIn.down, w, h );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if( w <= nodeIn.w && h <= nodeIn.h ){\r\n\t\t\treturn nodeIn;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public T find (T target);", "public Node<T> search(int id) {\n Node<T> res = root;\n res = search(res, id);\n if (res.getId() == id) return res;\n else return null;\n }", "private TreeObject find(String name, int type) {\n\t return widgetRoots[type - 1].find(name);\n\t}", "@Override\n\tpublic T find(T targetElement) {\n\t\tif(contains(targetElement))\n\t\t return targetElement;\n\t\telse \n\t\t\treturn null;\n\t\t\n\t}", "public void search(int target){\n\t\t\n\t\tint position = 0;\n\t\tfor(Node temp = head; temp != null; temp = temp.next){ // loops through list to find the node\n\t\t\tif(temp.data == target){\n\t\t\t\tSystem.out.println(target + \" was found at position \" + position);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\tSystem.out.println(target + \" was not found\"); // printed if node was not found\n}", "public CircosNode getNode(String id){\n\t\tfor(int i = 0; i < nodes.size(); i++){\n\t\t\tif(nodes.get(i).getID().equals(id)){\n\t\t\t\treturn nodes.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void searchNode(int value) {\n int i = 1;\n boolean flag = false;\n Node current = head;\n if (head == null) {\n System.out.println(\"List is empty\");\n return;\n }\n while (current != null) {\n if (current.data == value) {\n flag = true;\n break;\n }\n current = current.next;\n i++;\n }\n if (flag)\n System.out.println(\"Node is present in the list at the position::\" + i);\n else\n System.out.println(\"Node is note present in the list\");\n }", "private Node<Pair<K, V>> findItem(K key) {\n Node<Pair<K, V>> result = null;\n\n int hash1 = hash1(key);\n\n if (table[hash1] != null) {\n Node<Pair<K, V>> node = search(table[hash1].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n int hash2 = hash2(key);\n\n if (table[hash2] != null && result == null) {\n Node<Pair<K, V>> node = search(table[hash2].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n return result;\n }", "protected SearchNode<T> getSearchNode( Node<T> node ) {\n\t\treturn node == null ? null : searchNodes.get( node.getNodeId() );\n\t}", "private Node getNode(String nodeName)\r\n\t{\r\n\t return nodeMap.get(nodeName);\r\n\t}", "private Node getNodeWithID(int ID)\r\n {\r\n Node currentNode = first_node;\r\n boolean found = false;\r\n\r\n while(!found && currentNode != null)\r\n {\r\n if(ID == currentNode.getData().getStudent_ID())\r\n {\r\n found = true;\r\n }\r\n else\r\n {\r\n currentNode = currentNode.getNextNode();\r\n }\r\n }\r\n return currentNode;\r\n }", "private Node searchRec(Node node, int id) {\n\t\tNode found = null;\n\t\tif(node == null || node.getId() == id){\n\t\t\treturn node;\n\t\t}\n\t\telse if(node.getId() > id){\n\t\t\tfound = searchRec(node.getLeft(), id);\n\t\t}\n\t\telse if(node.getId() < id){\n\t\t\tfound = searchRec(node.getRight(), id);\n\t\t}\n\t\treturn found;\n\t}", "@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}", "public E find(E target) {\r\n\t\treturn find(root, target);\r\n\t}", "private TFNode search(TFNode node, Object key) throws TFNodeException {\r\n\r\n // Check for empty node\r\n if (node.getNumItems() == 0) {\r\n throw new TFNodeException(\"Search discovered an empty node\");\r\n }\r\n\r\n int index = FFGTE(node, key);\r\n TFNode child = node.getChild(index);\r\n\r\n // If the node contains they key, return node\r\n if (index < node.getNumItems()) {\r\n if(treeComp.isEqual(node.getItem(index).key(), key)){\r\n return node;\r\n }\r\n }\r\n \r\n // If the node is a leaf, return node\r\n if (child == null) {\r\n return node;\r\n // If neither of the above, keep searching\r\n } else {\r\n return search(child, key);\r\n }\r\n \r\n }", "private boolean FindNode(int num, TreeNodeWrapper parent, TreeNodeWrapper child) {\r\n\t\t//set parent node of TreeNodeWrapper as Root\r\n\t\tparent.Set(Root);\r\n\t\t//set child node as TreeNode Wrapper as Root\r\n\t\tchild.Set(Root);\r\n\t\t//if root is null, tree is empty\r\n\t\tif(Root == null) //tree is empty\r\n\t\t\treturn true;\r\n\t\t//while loop which searches tree until empty child node is found\r\n\t\twhile(child.Get() != null)\r\n\t\t{ if(child.Get().Data == num) // node found\r\n\t\t\treturn true;\r\n\t\t\t//if node not found use TreeNodeWrapper search remaining nodes\r\n\t\t else {\r\n\t\t\tparent.Set(child.Get());\r\n\t\t\tif(num < child.Get().Data)\r\n\t\t\t\tchild.Set(child.Get().Left);\r\n\t\t\telse\r\n\t\t\t\tchild.Set(child.Get().Right);\r\n\t\t }\t\r\n\t\t}\r\n\t\t//return false if node not found\r\n\t\treturn false;\r\n\t}", "@Override\n public Named find(String name) throws SemanticException {\n try {\n return head.find(name);\n }\n catch (NoClassException e) {\n return tail.find(name);\n }\n }", "private Node findNode(int index) {\n if (index > size && index < 0) {\n return head;\n }\n Node curNode = head;\n for (int i = 0; i < index; i++) {\n curNode = curNode.next;\n }\n return curNode;\n }", "Node currentNode();", "private int searchByTextContent(Node node) {\n\t\tif(hashtableIgnoreTags.get(node.getClass().getName()) != null) return 0;\n\t\t\n// \tSystem.out.println( node.getClass().getName());\n// \tSystem.out.println( \"<\" + node.getText() + \">\");\n \t\n \tif( 0 == compareHTMLText(node, strSearchText))\n \t{\n \t\tSystem.out.println( \"MATCH!\");\n \t\tint iret = analyseMatchLocation(node);\n \t\treturn 1;\n \t}\n \t\n \t// if this node text is not matched then search recursively \n \t// under this node using depth-first approach\n \tNodeList nodes = node.getChildren();\n \t\n \tif(nodes == null) return 0; // reached end of the tree nodes so go back and try your luck elsewhere\n \t\n \tint size = nodes.size();\n \t\n \tNode nextnode;\n \t\n \tfor (int i = 0; i < size; i++)\n \t{\n \t\tnextnode = nodes.elementAt(i);\n \t\t\n \t\tString strTagPattern = \"\";\n \t\t\n \t\t// RECURSION\n \t\tint iret = searchByTextContent(nextnode);\n \t\tif(1 == iret) \n \t\t{\n \t\t\tstrTagPattern = HTMLParser.getTagMatchPattern(nextnode);\n \t\t\t\n \t\t\t// There is a match so we need to log all the steps backwards to root node\n \t\t\t// to learn how to access this element in general from the HTML as a rule\n \t\t\t// Append the element number to the match string for each level of the hierarchy\n \t\t\tmatchPath = strTagPattern + \"#\" + String.valueOf(i) + \":\" + matchPath;\n \t\t\treturn 1; // Indicate there was a match indeed!\n \t\t}\n \t}\n \t\t\t\n\t\treturn 0;\n\t}", "public TValue find(TKey key) {\n Node n = bstFind(key, mRoot); // find the Node containing the key if any\n if (n == null || n == NIL_NODE)\n throw new RuntimeException(\"Key not found\");\n return n.mValue;\n }", "public DLLNode<String> search(String element) {\r\n\tDLLNode<String> temp = (DLLNode<String>) header;\r\n\twhile(temp != null) {\r\n\t\tif (temp.getInfo().contains(element)) {\r\n\t\t\treturn temp;\r\n\t\t}\r\n\t\ttemp = (DLLNode<String>) temp.getLink();\r\n\t}\r\n\treturn null;\r\n}", "private AvlNode<E> find(Comparable<E> element, AvlNode<E> node){\n if(node == null) {\n return null;\n } else {\n comparisons++;\n if(node.value.compareTo((E)element) > 0){\n return find(element, node.left);\n } else if(node.value.compareTo((E)element) < 0){\n return find(element, node.right);\n } else {\n return node;\n }\n }\n }", "public Node<E> getPresentNode(E data){\n for(Node<E> node: nodes.keySet()){\n if(node.data.equals(data)){\n return node;\n }\n }\n return null;\n }", "private SortableTreeNode findChild(DefaultMutableTreeNode parentNode, String childString) {\n Enumeration<SortableTreeNode> e = parentNode.children();\n while (e.hasMoreElements()) {\n SortableTreeNode node = e.nextElement();\n if (node.toString().equalsIgnoreCase(childString)) {\n return node;\n }\n }\n return null;\n }", "public abstract Node getNode();", "public TreeNode find(TreeNode parent, String name){\r\n\t\tif(parent == null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tTreeNode child;\r\n\t\tIterator<TreeNode> i = parent.children();\r\n\t\tint index = 0;\r\n\t\twhile(i.hasNext()){\r\n\t\t\t// Loop on children nodes\r\n\t\t\tchild = i.next();\r\n\t\t\tif(child.compare(name)){\r\n\t\t\t\t// If syscall name matches, return this child\r\n\t\t\t\tchild.setIndex(index);\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void discover(Node n) {}" ]
[ "0.6984573", "0.67827064", "0.67067575", "0.67064416", "0.67038417", "0.6692046", "0.668936", "0.6669407", "0.6666579", "0.66635805", "0.6637084", "0.6633334", "0.65974176", "0.6593358", "0.65520394", "0.6506138", "0.64963114", "0.6492743", "0.6470544", "0.645812", "0.6456348", "0.64429665", "0.64291084", "0.64279884", "0.64258075", "0.6408431", "0.64047277", "0.63687253", "0.6347898", "0.63439685", "0.63388115", "0.6323545", "0.6312385", "0.63067573", "0.63062066", "0.6271246", "0.62604576", "0.624195", "0.62410593", "0.62401205", "0.6239865", "0.6236783", "0.62175125", "0.62118965", "0.61960113", "0.6194656", "0.6192773", "0.61896104", "0.6184854", "0.61806256", "0.6169383", "0.61584514", "0.61188716", "0.6115719", "0.6113554", "0.60908484", "0.6089105", "0.60844886", "0.6082113", "0.60782486", "0.6077961", "0.6073961", "0.60543317", "0.60521805", "0.6047542", "0.6047537", "0.6040382", "0.60264856", "0.6025493", "0.6022321", "0.60211384", "0.6019253", "0.6017479", "0.6010648", "0.59953845", "0.59946966", "0.59840405", "0.59701014", "0.5967495", "0.5965563", "0.5965152", "0.5964039", "0.59613", "0.595838", "0.59411556", "0.5938135", "0.5926661", "0.59242517", "0.59241015", "0.5913948", "0.59126693", "0.5907006", "0.59056693", "0.58925396", "0.5892489", "0.5888016", "0.588674", "0.58824426", "0.5879684", "0.5871617", "0.5870474" ]
0.0
-1
Created by rkrde on 07112016.
public interface MediaColumns { @DataType(INTEGER) @PrimaryKey String _ID = "_id"; @DataType(TEXT) String _PATH = "_path"; @DataType(TEXT) String _URL = "_url"; @DataType(INTEGER) String _UPLOAD_STATUS = "_upload_status"; @DataType(INTEGER) String _FROM_KINVEY = "_from_kinvey"; //1 & 0 @DataType(INTEGER) String _DOWN_STATUS = "_down_status"; //1 & 0 @DataType(TEXT) String _KINVEY_ID = "_kinvey_id"; @DataType(INTEGER) @NotNull //0:image & 1 : video String _MEDIA_TYPE = "_media_type"; // upload_status - fail(0),uploading(1),uploaded(2) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "public void mo38117a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "public void mo12628c() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void m50367F() {\n }", "public void mo21877s() {\n }", "public void method_4270() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void m23075a() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void nghe() {\n\n\t}", "public abstract void mo56925d();", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "public void mo115190b() {\n }", "public final void mo91715d() {\n }", "public void mo21779D() {\n }", "public void mo3376r() {\n }", "private Rekenhulp()\n\t{\n\t}", "public void mo55254a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21878t() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n void init() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public abstract void mo6549b();", "public void mo9848a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo21793R() {\n }", "@Override\n protected void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "static void feladat9() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "private void init() {\n\n\n\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "static void feladat4() {\n\t}", "private void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}" ]
[ "0.5845927", "0.57823884", "0.5761227", "0.5748301", "0.5704675", "0.5690755", "0.567732", "0.56034875", "0.5559219", "0.5559075", "0.55476904", "0.5507529", "0.549688", "0.549494", "0.549494", "0.54763114", "0.5470951", "0.54684687", "0.54638624", "0.54545385", "0.54545385", "0.54545385", "0.54545385", "0.54545385", "0.54545385", "0.54545385", "0.54465115", "0.5438538", "0.5438538", "0.5438538", "0.5438538", "0.5438538", "0.5434463", "0.5421866", "0.5411863", "0.5402061", "0.54002017", "0.53889054", "0.53888685", "0.5387736", "0.5381751", "0.53728455", "0.5366832", "0.5365342", "0.53621227", "0.5356219", "0.5338666", "0.53373915", "0.53373915", "0.533084", "0.5328271", "0.53272974", "0.5325268", "0.5325251", "0.53076035", "0.5306324", "0.53052616", "0.5296681", "0.5294105", "0.5290668", "0.5287073", "0.5285244", "0.5284918", "0.5284787", "0.52832925", "0.5281404", "0.5276776", "0.5271814", "0.52709126", "0.52709126", "0.52709126", "0.5270402", "0.52692175", "0.52626854", "0.52626854", "0.52626854", "0.5258118", "0.52580535", "0.52539206", "0.52539206", "0.52539206", "0.5252876", "0.524726", "0.52437353", "0.524231", "0.52411747", "0.5237558", "0.5237558", "0.5237558", "0.5237558", "0.5237558", "0.5237558", "0.5236321", "0.5234841", "0.5232162", "0.52275383", "0.5226866", "0.5216945", "0.52133495", "0.5212275", "0.5208396" ]
0.0
-1
Get the font size.
float getFontSize() { if (!appearanceTokens.isEmpty()) { // daString looks like "BMC /Helv 3.4 Tf EMC" // use the fontsize of the default existing apperance stream int fontIndex = appearanceTokens.indexOf(Operator.getOperator("Tf")); if (fontIndex != -1) { return ((COSNumber) appearanceTokens.get(fontIndex - 1)).floatValue(); } } return 0f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getFontSize();", "public double getFontSize(\n )\n {return fontSize;}", "public float getFontSize();", "public final int getFontSize() {\n return fontSize;\n }", "public String getFontSize () {\n\t\treturn fontSizeTextField.getText();\n\t}", "public String getFontSizeText()\r\n\t{\r\n\t\treturn fontSizeTextField.getText(); // return the text in the Font Size text field\r\n\t}", "public float getFontSize() {\n return fontSize;\n }", "public float getTextSizePx() {\n return mPaint.getTextSize();\n }", "public int getMyFontSize() {\n return myFont.size; /*Fault:: return 5; */\n }", "public short getFontHeight()\n {\n return font.getFontHeight();\n }", "public int getFontSize()\r\n {\r\n return myFontSize;\r\n }", "public int getFontSize()\n \t{\n \t\treturn 13;\n \t}", "public float getTextSize() {\n return mTextSize;\n }", "private int getFontSize(LabelGeometry geom)\r\n {\r\n float fontSize = AWTUtilities.getFontSize(geom.getRenderProperties().getFont());\r\n\r\n // Scale based on the view\r\n Function<Kilometers, Float> scaleFunction = geom.getRenderProperties().getScaleFunction();\r\n if (scaleFunction != null)\r\n {\r\n float viewScale = scaleFunction.apply(myViewAltitudeSupplier.get()).floatValue();\r\n fontSize *= viewScale;\r\n }\r\n\r\n return Math.round(fontSize);\r\n }", "public int fontSize() {\n\t\treturn fixedFontSize;\n\t}", "public short getFontHeight() {\n\t\treturn this.fontHeight;\n\t}", "public float getTextSize() {\n return mTextContainer.getTextSize();\n }", "public int getSelectedFontSize()\r\n\t{\r\n\t\treturn fontSizeList.getSelectedValue(); // return the currently selected font size\r\n\t}", "public short getFontHeightInPoints() {\n\t\treturn fontHeightInPoints;\n\t}", "public short getFontHeightInPoints()\n {\n return ( short ) (font.getFontHeight() / 20);\n }", "public native final String fontSize() /*-{\n\t\treturn this.fontSize;\n\t}-*/;", "public int getTextLabelFontSize() {\n\t\treturn mTextLabelFontSize;\n\t}", "public float getFontHeight(float fontSize) {\n Font f = getNormalFont(fontSize);\n FontMetrics fm = svgGenerator.getFontMetrics(f);\n return fm.getHeight();\n }", "public int getTitleFontSize() {\n\t\treturn this.title_fontsize;\n\t}", "public String getFont()\n {\n return (String) getStateHelper().eval(PropertyKeys.font, null);\n }", "public int getHeight() {\r\n if ( fontMetrics != null ) {\r\n return fontMetrics.getHeight() + 6;\r\n } else {\r\n return 6;\r\n }\r\n }", "public int getMediumFontSize() {\n\t\treturn 10;\n\t}", "public Float getHightlightedTextSize() {\n if (mHightlightedTextSize != null)\n return mHightlightedTextSize;\n return getTextSize();\n }", "public int getSubtitleFontSize() {\n\t\treturn this.subtitle_fontsize;\n\t}", "private float getFontHeight(Paint paint) {\n Rect rect = new Rect();\n paint.getTextBounds(\"1\", 0, 1, rect);\n return rect.height();\n }", "double getFontSizeAdjustment() {\n return fontSizeAdjustment;\n }", "public RMFont getFont()\n {\n return getStyle().getFont();\n }", "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public int getLabelTextSize(){\n return labelTextSize;\n }", "public int getPreferredHeight() \n { \n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getHeight() + VMARGIN;\n }", "public String getSizeLabel() {\n return (String)getAttributeInternal(SIZELABEL);\n }", "public static Font getFont() {\n return getFont(12);\n }", "public static float textHeight(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).height;\n }", "public final String getSizeAttribute() {\n return getAttributeValue(\"size\");\n }", "public String getSizeTextField(){\n\t\treturn textField.getText();\n\t}", "@Override\r\n\tpublic int getFontSize() {\n\t\treturn 0;\r\n\t}", "public Font getTextFont() {\r\n\t\treturn getJTextField().getFont();\r\n\t}", "private int calculateFontSize(ImageProcessor processor, double ratioHeightForLabel) {\n // Converts sumSizes into the average size in each dimension\n sumSizes.scale(1.0 / labels.size());\n FontSizeCalculator calculator = new FontSizeCalculator(processor, labels.stream());\n return calculator.calculateOptimalFontSize(sumSizes, ratioHeightForLabel);\n }", "public float getHeight() {\n\t\t\n\t\tfloat height = 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\tFontChar c = font.getChar(text.charAt(i));\n\t\t\tfloat h = (c.T_HEIGHT + c.Y_OFFSET) * size;\n\t\t\t\n\t\t\tif(h > height)\n\t\t\t\theight = h;\n\t\t}\n\t\t\n\t\treturn height;\n\t}", "public String getFont() {\n return font;\n }", "public int getWidth() {\r\n if ( fontMetrics != null && lbl != null ) {\r\n return fontMetrics.stringWidth(lbl) + 12; \r\n } else {\r\n return 10;\r\n }\r\n }", "public Font getFont() {\r\n if (font==null)\r\n return getDesktop().getDefaultFont();\r\n else\r\n return font;\r\n }", "@Override\n public String getFont() {\n return graphicsEnvironmentImpl.getFont(canvas);\n }", "public String getCharacterSize() {\n\t\tString result = null;\n\t\tRaces dropDownText = (Races) race.getSelectedItem();\n\n\t\tif (dropDownText.equals(Races.DWARF)) {\n\t\t\tresult = Races.DWARF.getSize();\n\t\t} else if (dropDownText.equals(Races.ELF)) {\n\t\t\tresult = Races.ELF.getSize();\n\t\t} else if (dropDownText.equals(Races.GNOME)) {\n\t\t\tresult = Races.GNOME.getSize();\n\t\t} else if (dropDownText.equals(Races.HALFELF)) {\n\t\t\tresult = Races.HALFELF.getSize();\n\t\t} else if (dropDownText.equals(Races.HALFORC)) {\n\t\t\tresult = Races.HALFORC.getSize();\n\t\t} else if (dropDownText.equals(Races.HALFLING)) {\n\t\t\tresult = Races.HALFLING.getSize();\n\t\t} else if (dropDownText.equals(Races.HUMAN)) {\n\t\t\tresult = Races.HUMAN.getSize();\n\t\t}\n\n\t\treturn result;\n\t}", "public Font getFont(\n )\n {return font;}", "public static int SPgetMessageTextSizePercentage(Context context){\n SharedPreferences pref = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE);\n return pref.getInt(\"messageTextSize\", 70);\n }", "public String getSize() {\r\n return size;\r\n }", "public CanvasFont getFont() {\n return this.textFont;\n }", "public String getSize() {\n return size;\n }", "public String getSize() {\n return size;\n }", "public double getSize() {\n return getElement().getSize();\n }", "public Font getFont() {\n return this.font;\n }", "public static Font getFont(int size) {\n if (size <= 0) {\n return getFont();\n }\n return new Font(\"Comic Sans MS\", Font.PLAIN, size);\n }", "private void getFontSizeShared() {\n\t\t // get shared preference\n\t\t SharedPreferences readeShared = getSharedPreferences(\"fontSize\" , MODE_PRIVATE);\n\n\t\t if ( readeShared != null ) {\n\t\t\t String size = readeShared.getString(\"size\" , null);\n\t\t\t if ( size != null && size.length() > 0 ) {\n\t\t\t\t\tif ( size.equals(\"s\") ) {\n\n\t\t\t\t\t\t setFontSize(18);\n\n\t\t\t\t\t} else if ( size.equals(\"m\") ) {\n\n\t\t\t\t\t\t setFontSize(20);\n\n\t\t\t\t\t} else if ( size.equals(\"l\") ) {\n\n\t\t\t\t\t\t setFontSize(24);\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\t }", "public int getPreferredWidth() \n {\n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getAdvance( m_text ) + HMARGIN;\n }", "private int getTextHeight() {\n return lineHeight * (textBuffer.getMaxLine() - 1);\n }", "public float getSize() {\n\t\treturn size;\n\t}", "private int getNormalTextSizeWeight() {\n return Integer.parseInt(getMessage(\"report.tabular.normal.text.size.weight\"));\n }", "public double strLen(String str, double size) {\n return mcFont().getStringWidth(str) * size / mcFont().FONT_HEIGHT;\n }", "public float getSize() {\n return size;\n }", "public FontData deriveFont(float size) {\n return deriveFont(size, javaFont.getStyle());\n }", "public int getButtonTextSize(){\n return buttonTextSize;\n }", "private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}", "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "public static int getWorkspaceIconTextSizeInPx(Context context) {\n if (mWorkspaceIconTextSize < 0) {\n mWorkspaceIconTextSize = PrefUtils.getIntPref(context, PrefConstants.KEY_ICON_TEXT_SIZE, -1);\n if (mWorkspaceIconTextSize < 0) {\n mWorkspaceIconTextSize = getDefaultWorkspaceIconTextSizeInPx(context);\n }\n }\n return mWorkspaceIconTextSize;\n }", "double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "public float getSize()\n {\n return size;\n }", "public short getNumberOfFonts() {\n\t\treturn 0;\n\t}", "public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }", "private int computeFontSize (double dependencyCount, double maxDependencyCount)\n {\n return (int) (MIN_FONT_SIZE + (dependencyCount / maxDependencyCount) * (MAX_FONT_SIZE - MIN_FONT_SIZE));\n }", "public int scaleForPixelHeight(int size) {\r\n\t\tif (!bitmapped && !FreeType.setPixelSizes(face, 0, size))\r\n\t\t\tthrow new GdxRuntimeException(\"Couldn't set size for font\");\r\n\t\tSizeMetrics fontMetrics = face.getSize().getMetrics();\r\n\t\tint ascent = FreeType.toInt(fontMetrics.getAscender());\r\n\t\tint descent = FreeType.toInt(fontMetrics.getDescender());\r\n\t\treturn size * size / (ascent - descent);\r\n\t}", "public float getExampleDimension() {\n return mTextSize;\n }", "public static int getAreaButtonTextSize(Context context, Typeface typeface) {\n DisplayMetrics displayMetrics = context.getResources()\n .getDisplayMetrics();\n // int deviceWidth = displayMetrics.widthPixels;\n int deviceWidth = displayMetrics.widthPixels;\n\n return determineTextSize(typeface, (int) (0.23f * (.14f * deviceWidth)));\n\n }", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public java.lang.String getSIZE() {\n return SIZE;\n }", "public Font getFont() {\n return font;\n }", "public FontMetrics getFontMetrics(Font f)\r\n\t{\r\n\t\treturn _g2.getFontMetrics();\r\n\t}", "public Font getFont() {\r\n return font;\r\n }", "public Font getFont() {\r\n return font;\r\n }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public Font getFont() {\n\t\treturn f;\n\t}", "public static float textWidth(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).width;\n }", "public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "@Element \n public String getSize() {\n return size;\n }", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "public int getSwitchTextSize(){\n return switchTextSize;\n }", "public int height()\n throws Exception\n {\n return this.text.height();\n }", "public Font getFont()\r\n\t{\r\n\t\treturn _g2.getFont();\r\n\t}", "public Size getSize() {\n return size;\n }", "public native Font getFont() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tvar obj = jso.font;\n\t\treturn @com.emitrom.ti4j.mobile.client.ui.style.Font::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\n }-*/;", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "public float getLineHeightMultiplier() {\n return mTextContainer.getLineHeightMultiplier();\n }", "public FontProps getFontProps() {\n\t\treturn mFont;\n\t}", "public Set<Integer> getFontSizes(String name) {\n return getBitmapFonts(name).keySet();\n }" ]
[ "0.81372833", "0.81147605", "0.8086911", "0.80429316", "0.80144227", "0.8005919", "0.77974534", "0.77799606", "0.7741614", "0.7695468", "0.7670454", "0.75978845", "0.74640375", "0.74344003", "0.7425047", "0.7400255", "0.72938514", "0.72631407", "0.723868", "0.7214588", "0.71592146", "0.7110969", "0.7088265", "0.7079775", "0.6885447", "0.68696976", "0.6838608", "0.67260003", "0.66285515", "0.66282654", "0.6537868", "0.65344673", "0.6493602", "0.6488428", "0.6454319", "0.644999", "0.64447653", "0.64397854", "0.63795096", "0.63374054", "0.63360995", "0.6311357", "0.6249917", "0.6236363", "0.6233533", "0.6211733", "0.6206346", "0.620407", "0.6185213", "0.61826694", "0.61783177", "0.61455053", "0.6144132", "0.61347955", "0.61347955", "0.61253583", "0.6110251", "0.60998356", "0.60980034", "0.60890174", "0.6079476", "0.6070395", "0.6066253", "0.60572416", "0.604825", "0.6041666", "0.6040907", "0.60333514", "0.6013916", "0.601136", "0.6006719", "0.59972507", "0.59899807", "0.59864724", "0.59781754", "0.59769094", "0.59728044", "0.5949239", "0.5944253", "0.59372663", "0.59359455", "0.5918202", "0.59117055", "0.59117055", "0.59053385", "0.5902374", "0.5900668", "0.58902466", "0.5889871", "0.5887087", "0.58814245", "0.58809245", "0.5879881", "0.58773255", "0.5871968", "0.5868609", "0.5868119", "0.5860279", "0.5851591", "0.58448505" ]
0.71404487
21
Set the font size.
void setFontSize(float fontSize) { int fontIndex = appearanceTokens.indexOf(Operator.getOperator("Tf")); if (fontIndex != -1) { appearanceTokens.set(fontIndex - 1, new COSFloat(fontSize)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFontSize(int fontSize) {\n this.fontSize = fontSize;\n updateLineHeight();\n updateCursor();\n update();\n }", "public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }", "public void setFontSize(int fontSize) {\r\n try {\r\n this.setFont(this.getFont().deriveFont((float) fontSize));\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font size\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }", "public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}", "public LabelBuilder setFontSize(int size) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setSize(size);\n\t\treturn this;\n\n\t}", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "private void setFontSize(float newFontSize) {\n\t\tfontSize = newFontSize;\n\t\tproperties.setProperty(\"fontSize\", Float.toString(newFontSize));\n\n\t\t// update all text-based components\n\t\tfor (Component c : components)\n\t\t\tc.setFont(c.getFont().deriveFont(newFontSize));\n\t\t\n\t\t// update machine graphics\n\t\tupdate(); \n\t}", "public void setFontSize(int font) {\n\t\tthis.font = font;\n\t}", "public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }", "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "public final void setFontSize(final int fontSize) {\n if (this.fontSize != fontSize) {\n this.fontSize = fontSize;\n flush();\n }\n }", "public FontRenderer setSize(float size) {\n\t\tthis.size = size;\n\t\ttransform.setScale(size);\n\t\t\n\t\treturn this;\n\t}", "public void setFontSize(float fs) {\n\t\tif (fs != fontSize) {\n\t\t\tfontSize = fs;\n\t\t\treload();\n\t\t}\n\t}", "public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }", "public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }", "public IconBuilder fontSize(int size) {\n\t\tthis.fixedFontSize = size;\n\t\treturn this;\n\t}", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}", "public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}", "public static void setDefaultSize(int size) {\r\n\t\tSet<Object> keySet = UIManager.getLookAndFeelDefaults().keySet();\r\n\t\tObject[] keys = keySet.toArray(new Object[keySet.size()]);\r\n\r\n\t\tfor (Object key : keys) {\r\n\t\t\tif (key != null && key.toString().toLowerCase().contains(\"font\")) {\r\n\t\t\t\tFont font = UIManager.getDefaults().getFont(key);\r\n\t\t\t\tif (font != null) {\r\n\t\t\t\t\tfont = font.deriveFont((float)size);\r\n\t\t\t\t\tUIManager.put(key, font);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setTextLabelFontSize(int mTextLabelFontSize) {\n\t\tthis.mTextLabelFontSize = mTextLabelFontSize;\n\t}", "public void setModifierFont(String name, int type, int size) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size);\n _SPR.RefreshModifierFont();\n }", "public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);\n emptyLabel.setFont(labelFont);\n errorLabel.setFont(labelFont);\n }", "public final void setFontSize(final String fontSize) {\n if (fontSize.charAt(0) == '-') {\n float newSize = Integer.parseInt(fontSize);\n setFontSize(getFontSize() + (int) newSize);\n } else if (fontSize.charAt(0) == '+') {\n float newSize = Integer.parseInt(\n fontSize.substring(1));\n setFontSize(getFontSize() + (int) newSize);\n } else {\n float newSize = Integer.parseInt(fontSize);\n setFontSize((int) newSize);\n }\n }", "void setFontScale(\n float s);", "public StockEvent setFontSize(Integer fontSize) {\n this.fontSize = fontSize;\n return this;\n }", "public void setFont(Font value) {\r\n this.font = value;\r\n }", "private void setFont() {\n\t}", "public void setSize(String size) {\n this.size = size;\n }", "public native final EditorBaseEvent fontSize(String val) /*-{\n\t\tthis.fontSize = val;\n\t\treturn this;\n\t}-*/;", "public double getFontSize(\n )\n {return fontSize;}", "public int getFontSize()\n \t{\n \t\treturn 13;\n \t}", "public void setSize(double size) \n {\n this.size = size;\n }", "public void setFontHeight(short height)\n {\n font.setFontHeight(height);\n }", "private void setFont() {\n\t\tsessionTitle.setFont(FONT_TITLE);\n\t\tdetailedDescription.setFont(FONT_DESCRIPTION);\n\t\texitButton.setFont(FONT_BUTTON);\n\t}", "public void setTabFontSize(int tabSelectionIndex, int newFonSize) {\r\n\t\tif (tabSelectionIndex == 0) {\r\n\t\t\t//actual no special font size adaption enabled\r\n\t\t}\r\n\t\telse if (tabSelectionIndex > 0) {\r\n\t\t\tif (this.displayTab.getItem(tabSelectionIndex) instanceof DigitalWindow) {\r\n\t\t\t\t//this.settings.setDigitalDisplayFontSize(newFonSize); actual no pesistens enabled\r\n\t\t\t\tthis.digitalTabItem.setDigitalDisplayFontSize(newFonSize);\r\n\t\t\t\tthis.updateDigitalWindowChilds();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@ReactMethod\n public void setFontSize(float fontSize, Promise promise){\n if (woyouService == null) {\n Toast.makeText(this.reactContext, R.string.printer_disconnect, Toast.LENGTH_LONG).show();\n promise.reject(\"0\", \"\");\n }\n\n try {\n woyouService.setFontSize(fontSize, null);\n promise.resolve(null);\n } catch (RemoteException e) {\n promise.reject(\"0\", e.getMessage());\n }\n }", "public void setFont(Font newFont) {\r\n\t\tfont = newFont;\r\n\t}", "public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }", "public void setFont(Font newFont) {\n\tfont = newFont;\n }", "public void setSize(int size) {\r\n this.size = size;\r\n }", "public int getFontSize();", "public float getFontSize() {\n return fontSize;\n }", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(int size) {\r\n _size = size;\r\n }", "public void setFont(Font font) {\n this.font = font;\r\n repaint();\r\n }", "public void setSize(int size){\n this.size = size;\n }", "public void setTextViewSize(float px) {\r\n\t\tfloat scaledDensity = getResources().getDisplayMetrics().scaledDensity;\r\n\t\tint sp = (int) (px / scaledDensity);\r\n\t\tsetTextSize(sp);\r\n\t}", "public void setFont(Font f) {\n font = f;\n compute();\n }", "public float getFontSize();", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public void sizeActionPerformed(java.awt.event.ActionEvent evt) {\n myFont.size = ((Integer) size.getSelectedItem()).intValue(); /*FAULT:: myFont.size = 5; */\n }", "public void setLabelFont(Font value) {\n labelFont = value;\n }", "public void setLabelFont(Font f);", "void setPaperSize(short size);", "public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public final int getFontSize() {\n return fontSize;\n }", "public void setSelectedFontSize( int fontSize )\r\n\t{\r\n\t\t// set the currently selected font name as per the integer passed in if it exists in the list\r\n\t\t// second parameter set to true so scroll pane will scroll to selected item\r\n\t\tfontSizeList.setSelectedValue( fontSize, true );\r\n\t}", "public void setTextFont(Font font)\n {\n setFont(font);\n }", "public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }", "public void addSizeModfier(int newSize) {\n\t\tif (size != null) {\n\t\t\tthrow new IllegalStateException(\"Multiple font sizes specified\");\n\t\t}\n\t\tthis.size = newSize;\n\t}", "private void setFont() {\n try {\n setFont(Font.loadFont(new FileInputStream(FONT_PATH), 23));\n } catch (FileNotFoundException e) {\n setFont(Font.font(\"Verdana\", 23));\n }\n }", "public static void setFont(String fontName, int fontSize){\n\t\tsetFont(fontName, fontSize, Font.PLAIN);\n\t}", "public void setFontHeight(short height) {\n\t\tthis.fontHeight = height;\n\t}", "public void setSize(int size) {\n\t\t _size = size;\n\t}", "public void setSize(int size) {\n this.size = size;\n }", "public static void setDefaultTextSize(int defaultTextSize) {\n if (defaultTextSize < 0){\n throw new IllegalArgumentException(\"The text size must be >= 0\");\n }\n DEFAULT_TEXT_SIZE = defaultTextSize;\n }", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public FreeMindWriter font( String name, String size ) {\n tagClose();\n out.println( \"<font NAME='\" + name + \"' SIZE='\" + size + \"'/>\" );\n return this; \n }", "public static void setFont(String fontName, int fontSize, int style){\n\t\tGComponent.fGlobalFont = new Font(fontName, fontSize, style);\n\t}", "@Element \n public void setSize(String size) {\n this.size = size;\n }", "public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}", "@Override\n public void setFont(Font f) {\n super.setFont(f);\n menuDirty = true;\n ResizeUtils.updateSize(this, actions);\n }", "public void setTextFont(Font font);", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void setFont(Font font)\n {\n this.font = font;\n }", "public void setSize(int size);", "@Override\r\n public void setFont(Font font) {\r\n super.setFont(new Font(\"Times New Roman\", Font.BOLD, 18));\r\n }", "public void setFont( Font font ) {\r\n this.font = font;\r\n }", "public void setSize(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}", "public void setModifierFont(String name, int type, int size, float tracking, Boolean kerning) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size, kerning, tracking);\n _SPR.RefreshModifierFont();\n }", "public int getFontSize()\r\n {\r\n return myFontSize;\r\n }", "public void setFont(Font font) {\n\tthis.font = font;\n }", "public void setSize(Integer size) {\n this.size = size;\n }", "public ComDialogBuilder setTitleTextSize(int textsize) {\n if(dialogTitle!=null){\n dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "public void setFont(Font fnt) {\n\t\tborder.setTitleFont(fnt);\n\t}", "public void setFontHeightInPoints(short height)\n {\n font.setFontHeight(( short ) (height * 20));\n }", "public PatchTextStyleProperties fontSize(String fontSize) {\n this.fontSize = fontSize;\n return this;\n }" ]
[ "0.77485615", "0.76967186", "0.7680486", "0.76781905", "0.7671704", "0.7659534", "0.75527614", "0.74848217", "0.74770695", "0.742097", "0.7416762", "0.7401965", "0.73631716", "0.73398715", "0.7272836", "0.7260555", "0.7226023", "0.720268", "0.7115543", "0.7072515", "0.7029026", "0.7017591", "0.70174485", "0.6990279", "0.69902295", "0.6986991", "0.6944068", "0.69235003", "0.69182956", "0.6842103", "0.679817", "0.6795147", "0.6792126", "0.66745317", "0.66657394", "0.6611999", "0.6580048", "0.6568144", "0.6564272", "0.6554451", "0.65372956", "0.65260625", "0.64901567", "0.6472086", "0.6468932", "0.6468112", "0.6433089", "0.64145285", "0.64141554", "0.6405819", "0.6405819", "0.63985854", "0.6386437", "0.63816494", "0.63801587", "0.6371846", "0.6371053", "0.637085", "0.6363412", "0.63579094", "0.6347136", "0.6336819", "0.6331837", "0.6329138", "0.6324761", "0.63234496", "0.6316848", "0.63163775", "0.63084936", "0.6304866", "0.6303067", "0.6299171", "0.62990856", "0.6295663", "0.62910855", "0.62903196", "0.62894875", "0.62894875", "0.62894875", "0.62894875", "0.62815803", "0.6274612", "0.6239612", "0.6239589", "0.6219028", "0.6215671", "0.62049574", "0.61910605", "0.61821985", "0.6128265", "0.61251056", "0.6116398", "0.60922855", "0.607737", "0.6059392", "0.6050066", "0.60361624", "0.6026026", "0.6018249", "0.60131365" ]
0.69206786
28
Get the font name.
COSName getFontName() { int setFontOperatorIndex = appearanceTokens.indexOf(Operator.getOperator("Tf")); return (COSName) appearanceTokens.get(setFontOperatorIndex - 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return fontName;\n }", "public String getFontName() {\n Object value = library.getObject(entries, FONT_NAME);\n if (value instanceof Name) {\n return ((Name) value).getName();\n }\n return FONT_NAME;\n }", "public String fontName() {\n\t\treturn fontName;\n\t}", "public String getFontName()\n {\n return font.getFontName();\n }", "public String getFontName() {\n\t\treturn this.fontName;\n\t}", "public String getFontNameText()\r\n\t{\r\n\t\treturn fontNameTextField.getText(); // return the text in the Font Name text field\r\n\t}", "public String getFontFamily() {\n Object value = library.getObject(entries, FONT_FAMILY);\n if (value instanceof StringObject) {\n StringObject familyName = (StringObject) value;\n return familyName.getDecryptedLiteralString(library.getSecurityManager());\n }\n return FONT_NAME;\n }", "public String getFont()\n {\n return (String) getStateHelper().eval(PropertyKeys.font, null);\n }", "public String getFontName();", "public String getFontName();", "public String getFontName();", "public String getFontName() {\n return getFontName(Locale.getDefault());\n }", "public Font getFont() {\n return GraphicsEnvironment.getLocalGraphicsEnvironment()\n .getAllFonts()[0];\n }", "public Font GetFont(String name) { return FontList.get(name); }", "public static Font getFont() {\n return getFont(12);\n }", "public String getFont() {\n return font;\n }", "public Font getFont(\n )\n {return font;}", "@Override\n public String getFont() {\n return graphicsEnvironmentImpl.getFont(canvas);\n }", "public Font getFont() {\r\n if (font==null)\r\n return getDesktop().getDefaultFont();\r\n else\r\n return font;\r\n }", "public static String getFontName() {\n return \"Comic Sans MS\";\n }", "public String getFontName(Locale l) {\n if (l == null) {\n throw new NullPointerException(\"null locale doesn't mean default\");\n }\n\treturn getFont2D().getFontName(l);\n }", "public FontFinder getFontFinder() {\n return NameFont;\n }", "public String getSelectedFontName()\r\n\t{\r\n\t\treturn fontNamesList.getSelectedValue(); // return the currently selected font name\r\n\t}", "public RMFont getFont()\n {\n return getStyle().getFont();\n }", "public Font getLabelFont();", "public Font getFont()\r\n\t{\r\n\t\treturn _g2.getFont();\r\n\t}", "abstract Font getFont();", "public String getMyFont() {\n return myFont.font; /*Fault:: return \"xx\"; */\n }", "public static Font getFont(String name) {\r\n\t\treturn (Font) getInstance().addResource(name);\r\n\t}", "public String getMatchFontName();", "public native Font getFont() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tvar obj = jso.font;\n\t\treturn @com.emitrom.ti4j.mobile.client.ui.style.Font::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\n }-*/;", "public Font getFont() {\n\t\treturn f;\n\t}", "public native final String fontFamily() /*-{\n\t\treturn this.fontFamily;\n\t}-*/;", "protected String createFontReference(Font font)\n {\n String fontName = font.getName();\n\n StringBuffer psFontName = new StringBuffer();\n for (int i = 0; i < fontName.length(); i++)\n {\n char c = fontName.charAt(i);\n if (!Character.isWhitespace(c))\n {\n psFontName.append(c);\n }\n }\n\n boolean hyphen = false;\n if (font.isBold())\n {\n hyphen = true;\n psFontName.append(\"-Bold\");\n }\n if (font.isItalic())\n {\n psFontName.append((hyphen ? \"\" : \"-\") + \"Italic\");\n }\n\n fontName = psFontName.toString();\n fontName = psFontNames.getProperty(fontName, fontName);\n return fontName;\n }", "public final String getFontFamily() {\n return fontFamily;\n }", "public String getFont(String id)\n\t{\n\t\tString font = fontElementMap.get(id);\n\t\tif (font == null)\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn font;\n\t\t}\n\t}", "public Font getFont() {\n return this.font;\n }", "public String getEmbeddedFontName() throws PDFNetException {\n/* 795 */ return GetEmbeddedFontName(this.a);\n/* */ }", "public Font getFont() {\r\n return font;\r\n }", "public Font getFont() {\r\n return font;\r\n }", "public Font getFont() {\n\treturn font;\n }", "public Font getFont() {\n\treturn font;\n }", "public Font getFont() {\n return font;\n }", "public Font font() {\n return font;\n }", "public static Font getFont(String nm) {\n\treturn getFont(nm, null);\n }", "public abstract Font getFont();", "private Typeface getFont() {\n Typeface fontText = Typeface.createFromAsset(SnapziApplication.getContext().getAssets(), \"fonts/GothamHTF-Book.ttf\");\n return fontText;\n }", "private String getFontTag()\n\t{\n\t\treturn \"<\" + getFontName() + \" \" + getFontValue() + \">\";\n\t}", "public void setFontName(String name) {\n\t\tthis.fontName = name;\n\t}", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont getFont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont)get_store().find_element_user(FONT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "Font createFont();", "public FontType getFontType() {\n\t\treturn font;\n\t}", "public IsFont getFont() {\n\t\treturn getOriginalFont();\n\t}", "private FontInfo getFont(FontFormat format, String postScriptName) {\n/* 461 */ if (postScriptName.contains(\"+\"))\n/* */ {\n/* 463 */ postScriptName = postScriptName.substring(postScriptName.indexOf('+') + 1);\n/* */ }\n/* */ \n/* */ \n/* 467 */ FontInfo info = this.fontInfoByName.get(postScriptName);\n/* 468 */ if (info != null && info.getFormat() == format)\n/* */ {\n/* 470 */ return info;\n/* */ }\n/* 472 */ return null;\n/* */ }", "private Font getScreenFont() {\n Font scoreFont = null;\n try {\n scoreFont = Font.createFont(Font.TRUETYPE_FONT,\n getClass().getResource(\"\\\\assets\\\\font\\\\game_over.ttf\").openStream());\n } catch (FontFormatException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return scoreFont;\n }", "private String getFontFile(){\n\t\tif (fontFile == null){\n\t\t\tfontFile = escapeForVideoFilter(ResourcesManager.getResourcesManager().getOpenSansResource().location);\n\t\t}\n\t\treturn fontFile;\n\t}", "public MinecraftFontRenderer getFont() {\n return fontRenderer;\n }", "public static String getSelectedDefaultFontName() {\n return nativeGetSelectedDefaultFontName();\n }", "public String toString() {\n String name = null;\n if (font != null)\n name = font.getName();\n return super.getPObjectReference() + \" FONTDESCRIPTOR= \" + entries.toString() + \" - \" + name;\n }", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "private String getFallbackFontName(PDFontDescriptor fontDescriptor) {\n/* */ String fontName;\n/* 235 */ if (fontDescriptor != null) {\n/* */ \n/* */ \n/* 238 */ boolean isBold = false;\n/* 239 */ String name = fontDescriptor.getFontName();\n/* 240 */ if (name != null) {\n/* */ \n/* 242 */ String lower = fontDescriptor.getFontName().toLowerCase();\n/* */ \n/* */ \n/* 245 */ isBold = (lower.contains(\"bold\") || lower.contains(\"black\") || lower.contains(\"heavy\"));\n/* */ } \n/* */ \n/* */ \n/* 249 */ if (fontDescriptor.isFixedPitch()) {\n/* */ \n/* 251 */ fontName = \"Courier\";\n/* 252 */ if (isBold && fontDescriptor.isItalic())\n/* */ {\n/* 254 */ fontName = fontName + \"-BoldOblique\";\n/* */ }\n/* 256 */ else if (isBold)\n/* */ {\n/* 258 */ fontName = fontName + \"-Bold\";\n/* */ }\n/* 260 */ else if (fontDescriptor.isItalic())\n/* */ {\n/* 262 */ fontName = fontName + \"-Oblique\";\n/* */ }\n/* */ \n/* 265 */ } else if (fontDescriptor.isSerif()) {\n/* */ \n/* 267 */ fontName = \"Times\";\n/* 268 */ if (isBold && fontDescriptor.isItalic())\n/* */ {\n/* 270 */ fontName = fontName + \"-BoldItalic\";\n/* */ }\n/* 272 */ else if (isBold)\n/* */ {\n/* 274 */ fontName = fontName + \"-Bold\";\n/* */ }\n/* 276 */ else if (fontDescriptor.isItalic())\n/* */ {\n/* 278 */ fontName = fontName + \"-Italic\";\n/* */ }\n/* */ else\n/* */ {\n/* 282 */ fontName = fontName + \"-Roman\";\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 287 */ fontName = \"Helvetica\";\n/* 288 */ if (isBold && fontDescriptor.isItalic())\n/* */ {\n/* 290 */ fontName = fontName + \"-BoldOblique\";\n/* */ }\n/* 292 */ else if (isBold)\n/* */ {\n/* 294 */ fontName = fontName + \"-Bold\";\n/* */ }\n/* 296 */ else if (fontDescriptor.isItalic())\n/* */ {\n/* 298 */ fontName = fontName + \"-Oblique\";\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 305 */ fontName = \"Times-Roman\";\n/* */ } \n/* 307 */ return fontName;\n/* */ }", "public static Font getFont(String nm, Font font) {\n\tString str = null;\n\ttry {\n\t str =System.getProperty(nm);\n\t} catch(SecurityException e) {\n\t}\n\tif (str == null) {\n\t return font;\n\t}\n\treturn decode ( str );\n }", "public CanvasFont getFont() {\n return this.textFont;\n }", "public RMFont getFont() { return getParent()!=null? getParent().getFont() : null; }", "public Font getStandardFont(DiagramContext context) {\n\t\treturn context.getResources().getSystemFont();\n\t}", "public String getFontFace() {\n\t\treturn _fontFace;\n\t}", "public String getSoundFont() {\n\t\treturn soundFont;\n\t}", "@Deprecated\r\n public String getFont()\r\n {\r\n return this.font;\r\n }", "public Font getTextFont() {\r\n\t\treturn getJTextField().getFont();\r\n\t}", "public IconBuilder fontName(String font) {\n\t\tthis.fontName = font;\n\t\treturn this;\n\t}", "public void setFontName(String name)\n {\n font.setFontName(name);\n }", "private FontBoxFont findFont(FontFormat format, String postScriptName) {\n/* 403 */ if (postScriptName == null)\n/* */ {\n/* 405 */ return null;\n/* */ }\n/* */ \n/* */ \n/* 409 */ if (this.fontProvider == null)\n/* */ {\n/* 411 */ getProvider();\n/* */ }\n/* */ \n/* */ \n/* 415 */ FontInfo info = getFont(format, postScriptName);\n/* 416 */ if (info != null)\n/* */ {\n/* 418 */ return info.getFont();\n/* */ }\n/* */ \n/* */ \n/* 422 */ info = getFont(format, postScriptName.replaceAll(\"-\", \"\"));\n/* 423 */ if (info != null)\n/* */ {\n/* 425 */ return info.getFont();\n/* */ }\n/* */ \n/* */ \n/* 429 */ for (String substituteName : getSubstitutes(postScriptName)) {\n/* */ \n/* 431 */ info = getFont(format, substituteName);\n/* 432 */ if (info != null)\n/* */ {\n/* 434 */ return info.getFont();\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 439 */ info = getFont(format, postScriptName.replaceAll(\",\", \"-\"));\n/* 440 */ if (info != null)\n/* */ {\n/* 442 */ return info.getFont();\n/* */ }\n/* */ \n/* */ \n/* 446 */ info = getFont(format, postScriptName + \"-Regular\");\n/* 447 */ if (info != null)\n/* */ {\n/* 449 */ return info.getFont();\n/* */ }\n/* */ \n/* 452 */ return null;\n/* */ }", "public String getDefaultFontFamily() {\n return this.defaultFontFamily;\n }", "public static String getFamily(String family){\n\t\tfor(String f : fontFamilies)\n\t\t\tif(f.equalsIgnoreCase(family))\n\t\t\t\treturn f;\n\t\treturn \"Dialog\";\n\t}", "public static Font getDefaultFont() {\r\n return defaultFont;\r\n }", "public static String getPersistentName(Font font) {\n final Map<String, String> problems = getPathologicalFonts();\n if (problems.containsKey(font.getName())) { // e.g. font.getName() is \"Tahoma Bold\" //NOI18N\n final Font test = new Font(font.getName(), font.getSize());\n if (test.getName().equals(font.getName())) {\n // OK\n return font.getName();\n } else {\n final String alternateName = problems.get(font.getName()); // e.g: \"Tahoma Negreta\" //NOI18N\n assert alternateName != null;\n final Font test2 = new Font(alternateName, font.getSize()); //NOI18N\n if (test2.getName().equals(font.getName())) {\n // OK\n return alternateName; // e.g: \"Tahoma Negreta\" //NOI18N\n }\n }\n }\n return font.getName();\n }", "private Font getTitleFont() {\n\t\tFont f = lblTitle.getFont();\n\t\tf = f.deriveFont(Font.BOLD, PosUIManager.getTitleFontSize());\n\t\treturn f;\n\t}", "public Font getFont(String key) {\n\t\tFont defaultValue = (Font) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\ttry {\n\t\t\tint size, type;\n\t\t\tString name;\n\t\t\tString token;\n\t\t\tStringTokenizer st = new StringTokenizer(sp, \" \", false);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\t// the value is not correctly formated => remove it\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\tname = st.nextToken();\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\tsize = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\ttype = Integer.parseInt(token);\n\t\t\treturn new Font(name, type, size);\n\t\t} catch (NumberFormatException e) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\n\t}", "public FontProps getFontProps() {\n\t\treturn mFont;\n\t}", "public static Font getFont(String familyName, int style, int size){\n\t\tFont font = new Font(familyName, style, size);\n\t\tif(familyName.equalsIgnoreCase(font.getFamily()))\n\t\t\treturn font;\n\t\treturn null;\n\t}", "public String getName() {\r\n\t\treturn LocalizedTextManager.getDefault().getProperty(name());\r\n\t}", "public Font createFont() {\n\t\treturn null;\n\t}", "Font getFont (StyleRange styleRange) {\n\tif (styleRange.font != null) return styleRange.font;\n\treturn getFont(styleRange.fontStyle);\n}", "public BitmapFont getFont(int style) {\r\n\t\treturn new BitmapFont(this, style);\r\n\t}", "public static FontData getFontData() {\n IPreferenceStore store = HexEditorPlugin.getDefault()\n .getPreferenceStore();\n String name = store.getString(Preferences.FONT_NAME);\n int style = store.getInt(Preferences.FONT_STYLE);\n int size = store.getInt(Preferences.FONT_SIZE);\n FontData fontData = null;\n if (name != null && !name.isEmpty() && size > 0) {\n fontData = new FontData(name, size, style);\n } else {\n fontData = Preferences.getDefaultFontData();\n }\n\n return fontData;\n }", "public String getFamilyName() throws PDFNetException {\n/* 550 */ return GetFamilyName(this.a);\n/* */ }", "public Font getFont(String property) {\r\n return calendarTable.getFont(property);\r\n }", "private static native Font createFont(String name, GFontPeer peer, int gdkfont);", "public Font getLabelFont() {\n return labelFont;\n }", "public Font getLabelFont() {\n return labelFont;\n }", "FONT createFONT();", "private FontBoxFont findFontBoxFont(String postScriptName) {\n/* 374 */ Type1Font t1 = (Type1Font)findFont(FontFormat.PFB, postScriptName);\n/* 375 */ if (t1 != null)\n/* */ {\n/* 377 */ return (FontBoxFont)t1;\n/* */ }\n/* */ \n/* 380 */ TrueTypeFont ttf = (TrueTypeFont)findFont(FontFormat.TTF, postScriptName);\n/* 381 */ if (ttf != null)\n/* */ {\n/* 383 */ return (FontBoxFont)ttf;\n/* */ }\n/* */ \n/* 386 */ OpenTypeFont otf = (OpenTypeFont)findFont(FontFormat.OTF, postScriptName);\n/* 387 */ if (otf != null)\n/* */ {\n/* 389 */ return (FontBoxFont)otf;\n/* */ }\n/* */ \n/* 392 */ return null;\n/* */ }", "public FontStyle getStyle();", "public static Font getFont(int size) {\n if (size <= 0) {\n return getFont();\n }\n return new Font(\"Comic Sans MS\", Font.PLAIN, size);\n }", "public FontUIResource getControlTextFont() { return fControlFont;}", "public void GetFont (){\n fontBol = false;\n fontBolS = true;\n fontBolA = true;\n fontBolW = true;\n }", "public Font getJavaFont() {\n return javaFont;\n }", "private Text initNameText(){\n Text name = new Text(Values.NAME);\n name.setStyle(\"-fx-font-weight: bold;\" + \"-fx-font-size: 24;\");\n return name;\n }", "public String getFontsCode() {\r\n\t\treturn fontsCode;\r\n\t}", "@Override\n\tpublic String getSymbolName()\n\t{\n\t\tVariableDeclarationContext ctx = getContext();\n\t\tNameContextExt nameContextExt = (NameContextExt)getExtendedContext(ctx.name());\n\t\treturn nameContextExt.getFormattedText();\n\t}" ]
[ "0.8635158", "0.8564473", "0.8428974", "0.83735234", "0.7972498", "0.79336166", "0.79309106", "0.79217005", "0.77863955", "0.77863955", "0.77863955", "0.76542735", "0.7612738", "0.7579355", "0.75047755", "0.7458595", "0.74238884", "0.74084306", "0.7341451", "0.7294613", "0.72820884", "0.7260466", "0.7251725", "0.71709067", "0.7087151", "0.70665693", "0.7024295", "0.7021899", "0.6973886", "0.6951578", "0.69466734", "0.6910344", "0.6809896", "0.68000185", "0.6775728", "0.67754847", "0.67543197", "0.6742965", "0.67308", "0.67308", "0.67176354", "0.67176354", "0.6699701", "0.6646417", "0.6638623", "0.6615911", "0.65976346", "0.65649974", "0.655194", "0.65332544", "0.6524227", "0.6504654", "0.6489899", "0.64602584", "0.64517343", "0.6412959", "0.63766116", "0.636645", "0.6356394", "0.63480586", "0.6346672", "0.6323452", "0.63228965", "0.63060665", "0.6277685", "0.6256252", "0.6253749", "0.62434465", "0.62250173", "0.62161773", "0.6214132", "0.6195958", "0.6194226", "0.61624795", "0.6137846", "0.6121576", "0.6117279", "0.6106192", "0.61052406", "0.6081188", "0.6068105", "0.60564566", "0.60459256", "0.60387063", "0.6013739", "0.59852606", "0.59648675", "0.5948428", "0.59375775", "0.59375775", "0.59371626", "0.5933045", "0.59198064", "0.5886891", "0.5874157", "0.5867665", "0.58442485", "0.5838339", "0.5834955", "0.5805978" ]
0.7425634
16
Get the tokens resolved from the default appearance string.
List<Object> getTokens() { return appearanceTokens; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getTokens();", "public String[] getDefaults();", "Map<String, String> getTokens();", "public abstract String[] getDefaultValues();", "public interface UATokenizerConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int WHITESPACE = 1;\n /** RegularExpression Id. */\n int CHAR = 5;\n /** RegularExpression Id. */\n int PICTURES = 6;\n /** RegularExpression Id. */\n int FILLERWORDS = 7;\n /** RegularExpression Id. */\n int THREELETTERWORDS = 8;\n /** RegularExpression Id. */\n int EMAIL = 9;\n /** RegularExpression Id. */\n int PRICES = 10;\n /** RegularExpression Id. */\n int DOMAIN = 11;\n /** RegularExpression Id. */\n int PHONE = 12;\n /** RegularExpression Id. */\n int PHONE2 = 13;\n /** RegularExpression Id. */\n int PHONE3 = 14;\n /** RegularExpression Id. */\n int WORD = 15;\n /** RegularExpression Id. */\n int HTML = 16;\n /** RegularExpression Id. */\n int HTML2 = 17;\n /** RegularExpression Id. */\n int HTMLCOMMENTS = 18;\n /** RegularExpression Id. */\n int NUMBER = 19;\n /** RegularExpression Id. */\n int TOPLEVELDOMAINS = 20;\n /** RegularExpression Id. */\n int SYMBOLS = 21;\n /** RegularExpression Id. */\n int OTHER = 22;\n /** RegularExpression Id. */\n int CHARACTERS = 23;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<CHAR>\",\n \"<PICTURES>\",\n \"<FILLERWORDS>\",\n \"<THREELETTERWORDS>\",\n \"<EMAIL>\",\n \"<PRICES>\",\n \"<DOMAIN>\",\n \"<PHONE>\",\n \"<PHONE2>\",\n \"<PHONE3>\",\n \"<WORD>\",\n \"<HTML>\",\n \"<HTML2>\",\n \"<HTMLCOMMENTS>\",\n \"<NUMBER>\",\n \"<TOPLEVELDOMAINS>\",\n \"<SYMBOLS>\",\n \"<OTHER>\",\n \"<CHARACTERS>\",\n };\n\n}", "private String[] getKeywordsFromBar()\n {\n String text = keywordBar.getText();\n \n if(text.equals(\"\")) return null;\n else return text.split(\"\\\\s*,\\\\s*\");\n }", "public String getDefaultAppearanceString()\r\n {\r\n return ((COSString)option.getObject( 1 ) ).getString();\r\n }", "public List<IToken> getTokens();", "Set<TokenType> tokenTypes();", "public String getSuggestedValues () {\n return suggestedValues;\n }", "public String getDefaultAppearance() {\n/* 530 */ return getCOSObject().getString(COSName.DA);\n/* */ }", "@Override\n public Token[] generateGuessTokens() {\n Token[] guess = new Token[NUM_TOKENS];\n int len = Token.values().length;\n if (this.curToken < len) {\n Arrays.fill(guess, Token.values()[this.curToken]);\n } else {\n List<String> solList = new ArrayList<>(this.possibleSol);\n guess = this.readTokens(solList.get(this.curToken - len));\n this.curToken ++;\n }\n return guess;\n }", "private String[] getGenders(StreamTokenizer st) throws IOException {\n\t\t// find pattern\n\t\tst.nextToken();\n\t\tif (st.sval == null || st.sval.equals(\"\"))throw new IOException(\"Argument 2 must be a pattern name enclosed by \\\"\"); //$NON-NLS-2$\n\t\tString pattern = st.sval;\n\n\t\t// also, get language\n\t\tString lang = getLanguageFromTokenizer(st);\n\n\t\t// more?\n\t\tif (st.nextToken() != StreamTokenizer.TT_EOF)\n\t\t\tthrow new IOException(\n\t\t\t\t\t\"GENDERS takes exactly two (pattern, language) or one arguments (pattern using default language)!\");\n\n\t\t// ok, everything fine - now get names\n\t\treturn ng.getGenders(pattern, lang);\n\t}", "public static List<SearchAnnotation> getDefaultVisibleAnnotationTypes() {\n\t\tList<SearchAnnotation> annotations = new ArrayList<SearchAnnotation>();\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.PERCOLATOR_ANNOTATION_TYPE_QVALUE );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_PERCOLATOR );\n\t\t\tannotations.add( annotation );\n\t\t}\n\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.PERCOLATOR_ANNOTATION_TYPE_PEP );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_PERCOLATOR );\n\t\t\tannotations.add( annotation );\n\t\t}\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.COMET_ANNOTATION_TYPE_EXPECT );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_COMET );\n\t\t\tannotations.add( annotation );\n\t\t}\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.COMET_ANNOTATION_TYPE_HIT_RANK );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_COMET );\n\t\t\tannotations.add( annotation );\n\t\t}\n\n\t\treturn annotations;\n\t}", "private static Set<NLMeaning> getTokenMeanings(NLToken token) {\n\t\tSet<NLMeaning> meanings = null;\n\t\tboolean hasMultiWords = token.getMultiWords() != null && !token.getMultiWords().isEmpty();\n\t\tboolean hasNamedEntities = token.getNamedEntities() != null && !token.getNamedEntities().isEmpty();\n\t\tif (!hasMultiWords && !hasNamedEntities) {\n\t\t\tif (token.getMeanings() == null || token.getMeanings().isEmpty()) {\n\t\t\t\t// This is a hack to handle a bug where the set of meanings\n\t\t\t\t// is empty but there is a selected meaning.\n\t\t\t\t\n\t\t\t\tNLMeaning selectedMeaning = token.getSelectedMeaning();\n\t\t\t\tif (selectedMeaning != null) {\n\t\t\t\t\tmeanings = new HashSet();\n\t\t\t\t\tmeanings.add(selectedMeaning);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmeanings = token.getMeanings();\n\t\t\t}\n\t\t}\n\t\treturn meanings;\n\t}", "static public char[] getDefaultChars() {\n return defaultCharArray;\n }", "public String getDefault();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getInitials();", "public ArrayList<String> getTokens() {\n if (fullTextSearchTokens != null) {\n return fullTextSearchTokens;\n } else if (searchTokens != null) {\n return searchTokens;\n } else {\n return browseTokens;\n }\n }", "private String[] getPatterns(StreamTokenizer st) throws IOException {\n\t\t// get language\n\t\tString lang = getLanguageFromTokenizer(st);\n\n\t\tif (st.nextToken() != StreamTokenizer.TT_EOF)\n\t\t\tthrow new IOException(\n\t\t\t\t\t\"PATTERNS takes exactly one (language) or no arguments (default language)!\");\n\n\t\treturn ng.getPatterns(lang);\n\t}", "private Map<String, String> interpretStyle(StringTokenizer st) {\n Map<String, String> map = new HashMap<String, String>();\n String name;\n String value;\n\n while (st.hasMoreElements()) {\n String namevaluepair = st.nextToken();\n int equalsPos = namevaluepair.indexOf('=');\n if (equalsPos < 0) {\n name = namevaluepair;\n value = \"true\";\n } else {\n name = namevaluepair.substring(0, equalsPos);\n value = namevaluepair.substring(equalsPos + 1);\n }\n\n map.put(name, value);\n }\n return map;\n }", "int[] appearances(String s) {\n\t\t\treturn null;\n\t\t}", "public String[] readAllStrings(){\n\t\tString[] tokens=WHITESPACE_PATTERN.split(readAll());\n\t\tif (tokens.length==0||tokens[0].length()>0)\n\t\t\treturn tokens;\n\t\tString[] decapitokens=new String[tokens.length-1];\n\t\tfor (int i=0;i<tokens.length-1;i++){\n\t\t\tdecapitokens[i]=tokens[i+1];\n\t\t}\n\t\treturn decapitokens;\n\t}", "public LinkedList<String> getThemeWords(){\r\n\t\treturn this.themeWords;\r\n\t}", "public String getErrorParserIds();", "private String[] getScopes() {\n return scopeTextView.getText().toString().toLowerCase().split(\" \");\n }", "private static String[] parseStartWordDelimiter(final String token) {\r\n String[] tokenArray = null;\r\n if (token != null && token.length() > 0) {\r\n final Iterator iterator = TagOptionSingleton.getInstance().getStartWordDelimiterIterator();\r\n int index;\r\n String delimiter;\r\n while (iterator.hasNext()) {\r\n delimiter = (String) iterator.next();\r\n if (token.startsWith(delimiter)) {\r\n index = token.indexOf(delimiter, delimiter.length());\r\n } else {\r\n index = token.indexOf(delimiter);\r\n }\r\n if (index > 0) {\r\n tokenArray = new String[3];\r\n tokenArray[0] = delimiter;\r\n tokenArray[1] = token.substring(0, index);\r\n tokenArray[2] = token.substring(index);\r\n }\r\n }\r\n }\r\n return tokenArray;\r\n }", "public static Font[] getSelectableDefaultFonts() {\n Locale locale = Locale.getDefault();\n String language = locale.getLanguage();\n return nativeGetSelectableDefaultFonts(language);\n }", "public List<? extends HasWord> defaultTestSentence()\n/* */ {\n/* 472 */ return Sentence.toSentence(new String[] { \"w\", \"lm\", \"tfd\", \"mElwmAt\", \"En\", \"ADrAr\", \"Aw\", \"DHAyA\", \"HtY\", \"AlAn\", \".\" });\n/* */ }", "public static String[] webServicePreferredTerms() throws Exception {\n HttpGet httpGet = null;\n CloseableHttpClient httpClient = HttpClientBuilder.create().build();\n String[] preferredTerms = null;\n \n if (PREFERRED_TERMS_ARRAY != null) {\n preferredTerms = PREFERRED_TERMS_ARRAY;\n }\n else {\n try {\n httpGet = new HttpGet(PREFERRED_TERMS_SERVICE_URL);\n HttpResponse httpResponse = httpClient.execute(httpGet);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode == HttpStatus.SC_OK) {\n HttpEntity httpEntity = httpResponse.getEntity();\n String entityString = EntityUtils.toString(httpEntity);\n if (entityString != null) {\n preferredTerms = entityString.split(\"\\n\");\n PREFERRED_TERMS_ARRAY = preferredTerms;\n }\n }\n }\n finally {\n \t\tcloseHttpClient(httpClient);\n \t }\n }\n\n return preferredTerms;\n }", "public static Theme get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTheme result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public List<Preference<CharacterSet>> getAcceptedCharacterSets() {\n // Lazy initialization with double-check.\n List<Preference<CharacterSet>> a = this.acceptedCharacterSets;\n if (a == null) {\n synchronized (this) {\n a = this.acceptedCharacterSets;\n if (a == null) {\n this.acceptedCharacterSets = a = new ArrayList<Preference<CharacterSet>>();\n }\n }\n }\n return a;\n }", "public String[] getErrorParserList();", "public Object[] getTooltipTokens() {\n return null;\n }", "@Override\n\t protected Object defaultObject(String completionText) {\n\t int index = completionText.indexOf('@');\n\t if (index == -1) {\n\t return new Usuarios(completionText, completionText.replace(\" \", \"\") + \"@gmail.com\");\n\t } else {\n\t return new Usuarios(completionText.substring(0, index), completionText);\n\t }\n\t }", "protected String getDefaultDelimiter(String text) {\n\t\tif (text.contains(\"\\001\")) {\n\t\t\treturn \"#1\";\n\t\t} else if (text.contains(\"\\002\")) {\n\t\t\treturn \"#2\";\n\t\t} else if (text.contains(\"|\")) {\n\t\t\treturn \"#124\";\n\t\t} else if (text.contains(\",\")) {\n\t\t\treturn \"#44\";\n\t\t}\n\t\treturn \"#1\";\n\t}", "public static void list_defaults() {\n\t\tlogger.debug(\"Called 'list_defaults'\");\n\t\tString output = get_defaults()\n\t\t\t\t.stream()\n\t\t\t\t.map(Scannable::getName)\n\t\t\t\t.collect(Collectors.joining(\"\\n\"));\n\n\t\t// print out to the Jython interpreter directly (so output is formatted correctly)\n\t\tInterfaceProvider.getTerminalPrinter().print(output);\n\t}", "@Override\n public int[] getRequiredTokens() {\n return new int[] {\n TokenTypes.VARIABLE_DEF,\n };\n }", "private String formatExpected() {\n String result = \"tokens \";\n if (tokens.length == 1) {\n return \"token \" + tokens[0];\n } else if (tokens.length == 2) {\n return result + tokens[0] + \" and \" + tokens[1];\n }\n\n for (int i = 0; i < tokens.length - 1; i++) {\n result = result.concat(tokens[i] + \", \");\n }\n\n return result + \"and \" + tokens[tokens.length - 1];\n }", "protected DataFlavor[] getRicherFlavors() {\n if (richText == null) {\n return null;\n }\n\n try {\n DataFlavor[] flavors = new DataFlavor[3];\n flavors[0] = new DataFlavor(mimeType + \";class=java.lang.String\");\n flavors[1] = new DataFlavor(mimeType + \";class=java.io.Reader\");\n flavors[2] = new DataFlavor(mimeType + \";class=java.io.InputStream;charset=unicode\");\n return flavors;\n } catch (ClassNotFoundException cle) {\n // fall through to unsupported (should not happen)\n }\n\n return null;\n }", "public String get_all_words_and_definitions(){\n\t\tString found_words = \"\";\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\t\tfound_words += child.get_all_words_and_definitions();\n\t\t}\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word +\" & \" + definition + \"\\n\" + found_words ;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word +\" & \" + definition + \"\\n\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}", "public String[] getAvailableTokenNames()\n throws SignedDocException;", "List<String> tokenize0(String doc) {\n List<String> res = new ArrayList<String>();\n\n for (String s : doc.split(\"\\\\s+\"))\n res.add(s);\n return res;\n }", "public Token<?>[] getTokens() {\n return tokens;\n }", "String getBShortToken();", "public Map<String, String> getTokens() {\n return tokens;\n }", "public String getSuggestedText() {\n return suggestedText;\n }", "public String[][] getKnownPrefixes() {\n return defaultPrefixes;\n }", "@Override\n public List<Token> getTokens(String text) {\n TokenizerME tokenizerME = new TokenizerME(openNLPTokenizerModel);\n Span[] tokensPos = tokenizerME.tokenizePos(text);\n String[] tokens = tokenizerME.tokenize(text);\n List<Token> tokenList = new ArrayList<>();\n\n for (int i = 0; i < tokens.length; i++) {\n tokenList.add(new Token(tokens[i], tokensPos[i].getStart(), tokensPos[i].getEnd()));\n }\n\n return tokenList;\n }", "java.util.List<speech_formatting.SegmentedTextOuterClass.TokenSegment> \n getTokenSegmentList();", "@Override\n public String getTokenColorLetter() {\n return \"R\";\n }", "public String getTokenValue() { return tok; }", "@Deprecated\r\n\tpublic Map<Integer,Token> getTokensByStart() {\r\n\t\treturn null;\r\n\t}", "protected Range getApplicableRange( String text, String word, Token token )\r\n\t{\r\n\t\tRange r = new Range();\r\n\t\tswitch(token.getType())\r\n\t\t{\r\n\t\tcase Token.STRING:\r\n\t\tcase Token.UNKNOWN:\r\n\t\tcase Token.SPECIAL_SEQUENCE:\r\n\t\tcase Token.NORMAL:\r\n\t\tcase Token.KEYWORD:\r\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = r.start + word.length();\r\n\t\t\tbreak;\r\n\t\tcase Token.SEPARATOR:\r\n\t\t\t// Separators shall be processed this way\r\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = r.start + 1;\r\n\t\t\tbreak;\r\n\t\tcase Token.LINE_COMMENT:\r\n\t\tdefault:\r\n\t\t\t// For comments, and by default apply the style to the whole line\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = text.length();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public Set<ContextualActivity> read() {\n Set<ContextualActivity> defaultActivities = new HashSet<ContextualActivity>();\n try {\n\n Scanner s = new Scanner(input);\n while (s.hasNextLine()) {\n // verb, noun, locations, times, duration\n String infos[] = (s.nextLine()).split(\",\");\n\n Set<String> locations = new HashSet<String>();\n Collections.addAll(locations, infos[2].split(Cons.ENTRY_SEPARATOR_REG));\n\n Set<TimeOfDay> times = new HashSet<TimeOfDay>();\n for (String tm : infos[3].split(Cons.ENTRY_SEPARATOR_REG)) {\n try {\n times.add(TimeOfDay.valueOf(tm.toUpperCase()));\n }\n catch (Exception e){\n }\n }\n\n defaultActivities.add(new DefaultActivity(infos[0], infos[1], locations, times, infos[4]));\n }\n\n return defaultActivities;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return defaultActivities;\n }", "public Collection<String> recognizedOptions()\n {\n // We default to null for backward compatibility sake\n return null;\n }", "static public String getDefaultString () {\n return defaultString;\n }", "private HashSet < Symbol > getUsedSymbols ()\n {\n HashSet < Symbol > symbols = new HashSet < Symbol > ();\n for ( LeafNode l : this.regexNode.getTokenNodes () )\n {\n if ( l instanceof TokenNode )\n {\n TokenNode t = ( TokenNode ) l;\n symbols.add ( new DefaultSymbol ( t.getName () ) );\n }\n }\n return symbols;\n }", "private CompleteTokenDefinition findToken(\r\n\t\t\tConcreteSyntax syntax,\r\n\t\t\tAntlrTokenDerivator tokenDerivator, \r\n\t\t\tPlaceholderInQuotes placeholder) {\r\n\t\t\r\n\t\tString tokenExpression = tokenDerivator.deriveTokenExpression(placeholder);\r\n\t\tfor (CompleteTokenDefinition token : syntax.getSyntheticTokens()) {\r\n\t\t\tString expression = tokenExpression;\r\n\t\t\tif (expression.equals(token.getRegex())) {\r\n\t\t\t\treturn token;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public char[] nextToken() {\n\t\t// read and return the next word of the document\n\t\tif(loc<words.length){\n\n\t\t\tString res=words[loc];\n\t\t\tloc++;\n\t\t\treturn res.toCharArray();\n\t\t}\n\n\t\t// or return null if it reaches the end of the document\n\t\treturn null;\n\t}", "public String getString() throws NoSuchElementException\n {\n\treturn tokenizer.nextToken();\n }", "public String[] getAllThemeNames() {\n\tjava.util.List names = resources.getStringList(\"themelist\");\n\treturn (String[]) names.toArray(new String[names.size()]);\n }", "public String[] uses() { return new String[0]; }", "private List<String> splitCommaSeparatedString(String defaults) {\r\n\t\tString[] split = defaults.split(\",\");\r\n\t\tList<String> keyList = new LinkedList<String>();\r\n\t\tfor (int i = 0; i < split.length; i++) {\r\n\t\t\tkeyList.add(split[i].trim());\r\n\t\t}\r\n\t\treturn keyList;\r\n\t}", "private void tokenize() {\n\t\t//Checks char-by-char\n\t\tcharLoop:\n\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t//Check if there's a new line\n\t\t\tif (input.charAt(i) == '\\n') {\n\t\t\t\ttokens.add(LINE);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Iterate through the tokens and find if any matches\n\t\t\tfor (Token st : Token.values()) {\n\t\t\t\t//Do not test for these because they have separate cases below\n\t\t\t\tif (st.equals(NUMBER) || st.equals(VARIABLE_NAME) || st.equals(STRING) || st.equals(LINE)) continue;\n\t\t\t\t//Skip whitespace & newlines\n\t\t\t\tif (Character.isWhitespace(input.charAt(i))) continue;\n\t\t\t\t\n\t\t\t\t//Checks for multi-character identifiers\n\t\t\t\ttry {\n\t\t\t\t\tif (input.substring(i, i + st.getValue().length()).equals(st.getValue())) {\n\t\t\t\t\t\ttokens.add(st);\n\t\t\t\t\t\ti += st.getValue().length()-1;\n\t\t\t\t\t\tcontinue charLoop;\n\t\t\t\t\t}\n\t\t\t\t} catch(StringIndexOutOfBoundsException e) {}\n\t\t\t\t//Ignore this exception because the identifiers might be larger than the input string.\n\t\t\t\t\n\t\t\t\t//Checks for mono-character identifiers\n\t\t\t\tif (st.isOneChar() && input.charAt(i) == st.getValue().toCharArray()[0]) {\n\t\t\t\t\ttokens.add(st);\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a string\n\t\t\tif (input.charAt(i) == '\"') {\n\t\t\t\ti++;\n\t\t\t\tif (i >= input.length()) break;\n\t\t\t\tStringBuilder string = new StringBuilder();\n\t\t\t\twhile (input.charAt(i) != '\"') {\n\t\t\t\t\tstring.append(input.charAt(i));\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tstring.insert(0, \"\\\"\");\n\t\t\t\tstring.append(\"\\\"\");\n\t\t\t\ttokens.add(STRING);\n\t\t\t\tmetadata.put(tokens.size()-1, string.toString());\n\t\t\t\tcontinue charLoop;\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a number\n\t\t\tif (Character.isDigit(input.charAt(i))) {\n\t\t\t\tStringBuilder digits = new StringBuilder();\n\t\t\t\twhile (Character.isDigit(input.charAt(i)) || input.charAt(i) == '.') {\n\t\t\t\t\tdigits.append(input.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t}\n\t\t\t\tif (digits.length() != 0) {\n\t\t\t\t\ttokens.add(NUMBER);\n\t\t\t\t\tmetadata.put(tokens.size()-1, digits.toString());\n\t\t\t\t\ti--;\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a variable reference/creation\n\t\t\tif (Character.isAlphabetic(input.charAt(i)) && !Character.isWhitespace(input.charAt(i))) {\n\t\t\t\tStringBuilder varName = new StringBuilder();\n\t\t\t\twhile ( ( Character.isAlphabetic(input.charAt(i)) || Character.isDigit(input.charAt(i)) )\n\t\t\t\t\t\t&& !Character.isWhitespace(input.charAt(i))) {\n\t\t\t\t\tvarName.append(input.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t}\n\t\t\t\tif (varName.length() != 0) {\n\t\t\t\t\ttokens.add(VARIABLE_NAME);\n\t\t\t\t\tmetadata.put(tokens.size()-1, varName.toString());\n\t\t\t\t\ti--;\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected Token findNextToken() {\n\t\tLocatedChar ch = nextNonWhitespaceChar();\n\t\tif(isCommentStart(ch)) {\n\t\t\tscanComment(ch);\n\t\t\treturn findNextToken();\n\t\t}\n\t\tif(ch.isDigit()) {\n\t\t\treturn scanNumber(ch);\n\t\t}\n\t\telse if(isIdentifierStart(ch)) {\n\t\t\treturn scanIdentifier(ch);\n\t\t}\n\t\telse if(isPunctuatorStart(ch)) {\n\t\t\treturn PunctuatorScanner.scan(ch, input);\n\t\t}\n\t\telse if(isCharStart(ch)) {\n\t\t\treturn scanChar(ch);\n\t\t}\n\t\telse if(isStrStart(ch)) {\n\t\t\treturn scanString(ch);\n\t\t}\n\t\telse if(isEndOfInput(ch)) {\n\t\t\treturn NullToken.make(ch);\n\t\t}\n\t\telse {\n\t\t\tlexicalError(ch);\n\t\t\treturn findNextToken();\n\t\t}\n\t}", "public String[] getTagColours() {\n return new String[] { RED, DARK_RED, ORANGE, LIGHT_ORANGE, YELLOW,\n GREEN, DARK_GREEN, BLUE, NAVY_BLUE, INDIGO,\n VIOLET, HOT_PINK, PURPLE, CYAN, BROWN };\n }", "private static String[] getDefaultsFromFileContents(List<String> list) {\n Optional<String> defaultSettings = list.stream().filter(line -> line.startsWith(\"default_options=\")).findFirst();\n\n if (defaultSettings.isPresent()) {\n return defaultSettings.get().replace(\"default_options=\", \"\").replaceAll(\"\\\"\", \"\").split(\" \");\n }\n return new String[]{};\n }", "@Override\n public CommonTokenStream getTokens() {\n return null;\n }", "public String getDefaultStyleString() {\n/* 552 */ return getCOSObject().getString(COSName.DS);\n/* */ }", "public\tString\tgetDefaultText()\n\t{\n\t\treturn\tdefaultText;\n\t}", "public String parseShortcutCommands(String userInput) {\n HashMap<String, String> shortcutCommandsWithDetails = new HashMap<>();\n shortcutCommandsWithDetails.put(\"a\", \"add\");\n shortcutCommandsWithDetails.put(\"e\", \"edit\");\n shortcutCommandsWithDetails.put(\"l\", \"list\");\n shortcutCommandsWithDetails.put(\"dn\", \"done\");\n shortcutCommandsWithDetails.put(\"dl\", \"delete\");\n shortcutCommandsWithDetails.put(\"v\", \"view\");\n shortcutCommandsWithDetails.put(\"ex\", \"exit\");\n shortcutCommandsWithDetails.put(\"l3\", \"list i/HIGH\");\n shortcutCommandsWithDetails.put(\"l2\", \"list i/MEDIUM\");\n shortcutCommandsWithDetails.put(\"l1\", \"list i/LOW\");\n shortcutCommandsWithDetails.put(\"lw\", \"list f/WEEK\");\n shortcutCommandsWithDetails.put(\"ld\", \"list f/DAY\");\n shortcutCommandsWithDetails.put(\"la\", \"list f/ALL\");\n String actualInputMeaning = userInput;\n if (shortcutCommandsWithDetails.get(actualInputMeaning) != null) {\n actualInputMeaning = shortcutCommandsWithDetails.get(actualInputMeaning);\n }\n return actualInputMeaning;\n }", "public static String[] readAllStrings() {\n // we could use readAll.trim().split(), but that's not consistent\n // because trim() uses characters 0x00..0x20 as whitespace\n String[] tokens = WHITESPACE_PATTERN.split(readAll());\n if (tokens.length == 0 || tokens[0].length() > 0)\n return tokens;\n\n // don't include first token if it is leading whitespace\n String[] decapitokens = new String[tokens.length-1];\n for (int i = 0; i < tokens.length - 1; i++)\n decapitokens[i] = tokens[i+1];\n return decapitokens;\n }", "Collection<QName> getDefinedStyleNames();", "public List<String> getAsNamesListAbbreviated(String itemName, List<String> defaultValue);", "protected static Enum<?> _enumDefault(AnnotationIntrospector intr, AnnotatedClass annotatedClass, Enum<?>[] enums) {\n return (intr != null) ? intr.findDefaultEnumValue(annotatedClass, enums) : null;\n }", "public static String getTokenVocabFromGrammar(String text) {\n\t\t// TODO: unneeded. use antlr Tool. Kill?\n//\t\tParsingResult r = parseANTLRGrammar(text);\n//\t\tif ( r.tree!=null ) { //&& r.syntaxErrorListener.getSyntaxErrors().size()==0 ) {\n//\t\t\t// option : id ASSIGN optionValue ;\n//\t\t\tCollection<ParseTree> options = XPath.findAll(r.tree, \"//option\", r.parser);\n//\t\t\tfor (Iterator<ParseTree> it = options.iterator(); it.hasNext(); ) {\n//\t\t\t\tANTLRv4Parser.OptionContext option = (ANTLRv4Parser.OptionContext)it.next();\n//\t\t\t\tif ( option.id().getText().equals(\"tokenVocab\") ) {\n//\t\t\t\t\t/*\n//\t\t\t\t\toptionValue\n//\t\t\t\t\t\t:\tid (DOT id)*\n//\t\t\t\t\t\t|\tSTRING_LITERAL\n//\t\t\t\t\t\t|\tACTION\n//\t\t\t\t\t\t|\tINT\n//\t\t\t\t\t\t;\n//\t\t\t\t\t */\n//\t\t\t\t\tANTLRv4Parser.OptionValueContext optionValue = option.optionValue();\n//\t\t\t\t\tif ( optionValue.STRING_LITERAL()!=null ) {\n//\t\t\t\t\t\tString s = optionValue.STRING_LITERAL().getText();\n//\t\t\t\t\t\treturn RefactorUtils.getLexerRuleNameFromLiteral(s);\n//\t\t\t\t\t}\n//\t\t\t\t\tif ( optionValue.id(0)!=null ) {\n//\t\t\t\t\t\treturn optionValue.id(0).getText();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\treturn null;\n\t}", "private Term[] parseTermList() throws ParseException {\n \n Term[] terms = new Term[1];\n int count = 0;\n \n Term term = parseTerm(false);\n \n while (term != null) {\n \n if (count >= terms.length) {\n Term[] temp = new Term[2 * terms.length];\n System.arraycopy(terms, 0, temp, 0, terms.length);\n terms = temp;\n }\n terms[count++] = term;\n \n int tt = _tokenizer.next();\n if (tt == ',') {\n term = parseTerm(true);\n } else {\n _tokenizer.pushBack();\n term = null;\n }\n }\n \n if (count < terms.length) {\n Term[] temp = new Term[count];\n System.arraycopy(terms, 0, temp, 0, count);\n terms = temp;\n }\n \n return terms;\n }", "public static CharArraySet getDefaultStopSet() {\n return DefaultSetHolder.DEFAULT_STOP_SET;\n }", "public List<String> defaultArgs() {\n return defaultArgs;\n }", "@Override\r\n\tpublic char[] getCompletionProposalAutoActivationCharacters() {\r\n\t\treturn null;\r\n\t}", "public static List<LanguageInterpreterDescriptor> getRegisteredInterpreters() {\r\n\t\treturn new ArrayList<LanguageInterpreterDescriptor>(INTERPRETERS);\r\n\t}", "public String getDefault(){\n return _default;\n }", "@ZAttr(id=1073)\n public String[] getPrefSpellIgnoreWord() {\n return getMultiAttr(Provisioning.A_zimbraPrefSpellIgnoreWord);\n }", "@Nonnull\n public static String[] getClassParametersText(@Nonnull String referenceText) {\n if (referenceText.indexOf('<') < 0) {\n return ArrayUtil.EMPTY_STRING_ARRAY;\n }\n referenceText = removeWhitespace(referenceText);\n final char[] chars = referenceText.toCharArray();\n int afterLastDotIndex = 0;\n\n int level = 0;\n for (int i = 0; i < chars.length; i++) {\n char aChar = chars[i];\n switch (aChar) {\n case '<':\n level++;\n break;\n case '.':\n if (level == 0) {\n afterLastDotIndex = i + 1;\n }\n break;\n case '>':\n level--;\n break;\n }\n }\n\n if (level != 0) {\n return ArrayUtil.EMPTY_STRING_ARRAY;\n }\n\n int dim = 0;\n for (int i = afterLastDotIndex; i < chars.length; i++) {\n char aChar = chars[i];\n switch (aChar) {\n case '<':\n level++;\n if (level == 1) {\n dim++;\n }\n break;\n case ',':\n if (level == 1) {\n dim++;\n }\n break;\n case '>':\n level--;\n break;\n }\n }\n if (level != 0 || dim == 0) {\n return ArrayUtil.EMPTY_STRING_ARRAY;\n }\n\n final String[] result = new String[dim];\n dim = 0;\n int ltPos = 0;\n for (int i = afterLastDotIndex; i < chars.length; i++) {\n final char aChar = chars[i];\n switch (aChar) {\n case '<':\n level++;\n if (level == 1) {\n ltPos = i;\n }\n break;\n case ',':\n if (level == 1) {\n result[dim++] = new String(chars, ltPos + 1, i - ltPos - 1);\n ltPos = i;\n }\n break;\n case '>':\n level--;\n if (level == 0) {\n result[dim++] = new String(chars, ltPos + 1, i - ltPos - 1);\n }\n break;\n }\n }\n\n return result;\n }", "public List<Token> getTokens() {\n return new ArrayList<>(tokens);\n }", "@Override\n public String getExpectedInputName() {\n return \"tokens input\";\n }", "private String getIntToken(char[] characters) {\n\t\tString currentToken = \"\";\n\t\t//look at each character\n\t\tfor (char ch: characters)\n\t\t{\n\t\t\t//check if whitespace\n\t\t\tboolean ws = Character.isWhitespace(ch);\n\t\t\t//check type\n\t\t\tString type = getType(ch);\n\t\t\t\n\t\t\t//not whitespace and new ch is an integer.\n\t\t\tif (!ws && Objects.equals(type, \"int\"))\n\t\t\t{\n\t\t\t\tcurrentToken = currentToken.concat(String.valueOf(ch));\n\t\t\t}\n\t\t\t//not whitespace and special ch\n\t\t\telse if (!ws && Objects.equals(type, \"special\"))\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse if ( ws )\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse //ch type cannot follow integer \n\t\t\t{\n\t\t\t\tSystem.out.println(\"invalid type follows int\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\t//ran out of tokens to process\n\t\treturn currentToken;\n\t}", "@Override\n\tprotected String getEvaluableToken() {\n\t\treturn TOKEN;\n\t}", "public List<String> getParserFormats();" ]
[ "0.5727326", "0.55574864", "0.53724504", "0.52418417", "0.5067315", "0.49975482", "0.49713764", "0.49668238", "0.49238062", "0.49184063", "0.49009448", "0.48868823", "0.48576334", "0.48574167", "0.48336443", "0.48229507", "0.47990587", "0.4797499", "0.4797499", "0.4797499", "0.4797499", "0.4797499", "0.4797499", "0.4797499", "0.4797499", "0.4797499", "0.4797499", "0.47773957", "0.47735605", "0.473327", "0.4683481", "0.46179986", "0.4608509", "0.46082082", "0.46024278", "0.45878738", "0.45702165", "0.45366937", "0.45282197", "0.45104098", "0.4490925", "0.4485094", "0.44841227", "0.4472532", "0.4459913", "0.44498706", "0.44423005", "0.44384003", "0.4436393", "0.4434995", "0.44250503", "0.44189608", "0.4413513", "0.4412185", "0.43919483", "0.43875405", "0.4384575", "0.437615", "0.4363904", "0.43605056", "0.43601382", "0.43573102", "0.43524742", "0.4351848", "0.43490058", "0.4348801", "0.43471065", "0.43469116", "0.4345013", "0.43409526", "0.43391997", "0.43276867", "0.4321489", "0.4320418", "0.43189222", "0.4314852", "0.4314544", "0.4302117", "0.4294389", "0.42750984", "0.42649", "0.42607236", "0.4253392", "0.42492032", "0.42466295", "0.42464364", "0.42463014", "0.4244006", "0.42393705", "0.423844", "0.4233697", "0.42301106", "0.42295972", "0.42292547", "0.4222858", "0.42216355", "0.4220914", "0.4217218", "0.42103592", "0.42096847" ]
0.5831263
0
Constructor set the different image from src/Avertissement/
public ImagePanel() { try { this.image.add(ImageIO.read(new File(this.getClass().getResource("/Avertissement/frigorest.png").getPath()))); this.image.add(ImageIO.read(new File(this.getClass().getResource("/Avertissement/frigono.png").getPath()))); this.image.add(ImageIO.read(new File(this.getClass().getResource("/Avertissement/frigolow.png").getPath()))); this.image.add(ImageIO.read(new File(this.getClass().getResource("/Avertissement/frigohigh.png").getPath()))); this.image.add(ImageIO.read(new File(this.getClass().getResource("/Avertissement/frigocondensation.png").getPath()))); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mesita()\r\n {\r\n super(\"mesa.png\"); \r\n }", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}", "public Coloca_imagen(){\n \n \n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n photo.setImage(new Image(\"/Image/photobtn.png\"));\n KING.setImage(new Image(\"/Image/king-8.png\"));\n validerbtn.setImage(new Image(\"/Image/validerbtn.png\"));\n retourbtn.setImage(new Image(\"/Image/retour-8.png\"));\n bgimg.setImage(new Image(\"/Image/bgmain.png\"));\n }", "protected void setPic() {\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n// Image image = new Image(\"/Icons/communication.jpg\");\r\n// ImageView iv = new ImageView();\r\n// imgA.setImage(image);\r\n }", "@Override\n \n \n public void initialize(URL url, ResourceBundle rb) {\n retornararImg();\n\n }", "public void setImg() {\n\t\tif (custom) {\n\t\t\tImage img1;\n\t\t\ttry {\n\t\t\t\timg1 = new Image(new FileInputStream(\"tmpImg.png\"));\n\t\t\t\tmainAvatar.setImage(img1); // Sets main user avatar as the custom image\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "void setImage(String image);", "GenerateurDeCartesImages(String nomDuTheme, String[] Tableau){\n\t\tsuper(nomDuTheme);\n\t\tthis.nomDuTheme=nomDuTheme;\n\t\tthis.optionsDeImage=Tableau;\n\t\tinitializePickedCardsArray();\n\t}", "public Mario(){\n setImage(\"06.png\");\n \n }", "public GameView() {\n this.astronautaImage = new Image(getClass().getResourceAsStream(\"/res/astronauta.gif\"));\n this.ovniImage = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovni2Image = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovnidestructibleImage = new Image(getClass().getResourceAsStream(\"/res/ovnidestructible.png\"));\n this.wallImage = new Image(getClass().getResourceAsStream(\"/res/wall.png\"));\n this.pistolaImage = new Image(getClass().getResourceAsStream(\"/res/pistola.png\"));\n this.alienEggImage = new Image(getClass().getResourceAsStream(\"/res/alienEgg.png\"));\n }", "private void setImage() {\r\n\t\ttry{\r\n\r\n\t\t\twinMessage = ImageIO.read(new File(\"obstacles/win.gif\"));\r\n\t\t\tcoin = ImageIO.read(new File(\"obstacles/Coin.gif\"));\r\n\t\t\toverMessage = ImageIO.read(new File(\"obstacles/over.gif\"));\r\n\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.err.println(\"Image file not found\");\r\n\t\t}\r\n\r\n\t}", "public Boton(){\r\n \r\n band = 1;\r\n jugar = new JLabel(new ImageIcon(getClass().getResource(\"/Imagenes/Jugar\" + band +\".jpg\")));\r\n ayuda = new JLabel(new ImageIcon(getClass().getResource(\"/Imagenes/Ayuda\" + band +\".jpg\")));\r\n creditos = new JLabel(new ImageIcon(getClass().getResource(\"/Imagenes/Creditos\" + band +\".jpg\")));\r\n salir = new JLabel(new ImageIcon(getClass().getResource(\"/Imagenes/Salir\" + band +\".jpg\")));\r\n \r\n }", "public void cambiarEstadoImagen(){\n ImageIcon respuesta=new ImageIcon();\n if(oportunidades==0){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado7.jpg\"));\n }\n if(oportunidades==1){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado6.jpg\"));\n }\n if(oportunidades==2){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado5.jpg\"));\n }\n if(oportunidades==3){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado4.jpg\"));\n }\n if(oportunidades==4){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado3.jpg\"));\n }\n if(oportunidades==5){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado2.jpg\"));\n }\n if(oportunidades==6){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado1.jpg\"));\n }\n if(oportunidades==7){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado0.jpg\"));\n }\n this.imgAhorcado=respuesta; \n }", "public void setImage(Image img) {\r\n this.img = img;\r\n }", "public String getDefaultImgSrc(){return \"/students/footballstudentdefault.png\";}", "@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n // TOP1\n idrecette1.setText(String.valueOf(RS.findById(VS.TOP1()).getId()));\n usernameR1.setText(RS.findById(VS.TOP1()).getIduser().getUsername());\n nomR1.setText(RS.findById(VS.TOP1()).getNom());\n //image1.setImage(new Image(RS.findById(VS.TOP1()).getNom_image()));\n ScoreR1.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP1()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP1()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image1.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image1.setImage(imageB);\n }\n //TOP2\n idrecette2.setText(String.valueOf(RS.findById(VS.TOP2()).getId()));\n usernameR2.setText(RS.findById(VS.TOP2()).getIduser().getUsername());\n nomR2.setText(RS.findById(VS.TOP2()).getNom());\n ScoreR2.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP2()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP2()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image2.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image2.setImage(imageB);\n }\n //TOP3\n idrecette3.setText(String.valueOf(RS.findById(VS.TOP3()).getId()));\n usernameR3.setText(RS.findById(VS.TOP3()).getIduser().getUsername());\n nomR3.setText(RS.findById(VS.TOP3()).getNom());\n ScoreR3.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP3()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP3()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image3.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image3.setImage(imageB);\n }\n //TOP4\n idrecette4.setText(String.valueOf(RS.findById(VS.TOP4()).getId()));\n usernameR4.setText(RS.findById(VS.TOP4()).getIduser().getUsername());\n nomR4.setText(RS.findById(VS.TOP4()).getNom());\n ScoreR4.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP4()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP4()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image4.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image4.setImage(imageB);\n }\n //TOP5\n idrecette5.setText(String.valueOf(RS.findById(VS.TOP5()).getId()));\n usernameR5.setText(RS.findById(VS.TOP5()).getIduser().getUsername());\n nomR5.setText(RS.findById(VS.TOP5()).getNom());\n ScoreR5.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP5()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP5()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image5.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image5.setImage(imageB);\n } \n }", "public void initialize()\r\n {\r\n ceresImage = new Image(\"Ceres.png\");\r\n erisImage = new Image(\"Eris.png\");\r\n haumeaImage = new Image(\"Haumea.png\");\r\n makemakeImage = new Image(\"MakeMake.png\");\r\n plutoImage = new Image(\"Pluto.png\");\r\n }", "public void setImg(String img) {\n this.img = img;\n }", "@Override\n\tprotected void onFinishInflate() {\n\t\tsuper.onFinishInflate();\n\t\tSehenswuerdigkeit ziel = Spiel.getInstance().getSpielerAnDerReihe().getZiel();\n\t\tthis.setImageResource(getResources().getIdentifier(ziel.getMotivURL(), \"drawable\", \"com.dhbw.dvst\"));\n\t\t\n\t}", "public Hazard() {\n super(\"img/hazard.png\");\n }", "public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }", "public TelaCadProfessor() {\n initComponents();\n\n ImageIcon icone = new ImageIcon(getClass().getResource(\"/images/ceetecaicon16x16.png\"));\n this.setIconImage(icone.getImage());\n\n }", "private void initAreaImageFilm() {\n\n }", "private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }", "private Images() {}", "public void setImage(String ref){\n\t ImageIcon ii = new ImageIcon(this.getClass().getResource(ref));\n\t image = ii.getImage();\n\t}", "public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}", "public void setImage(String image){\n this.image = image;\n }", "public JefeAvion() {\r\n\t\tsuper(2000, 2, new ImageIcon(url), 1275, 636);\r\n\t\trn = new Random();\r\n\t\tx = 400 - defaultWidth/2;\r\n\t\ty = - defaultHeight;\r\n\t\tdelay = 2;\r\n\t\tint cantTorretasDobles = 8;\r\n\t\tint cantTorretasSimples = 3;\r\n\t\tint cantTorretasInvisibles = 12;\r\n\t\tint cantTorretasGrandes = 6;\r\n\t\t\r\n\t\tString boundsDouble = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasDobles.txt\";\r\n\t\tString boundsSimple = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasSimples.txt\";\r\n\t\tString boundsInvisible = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasInvisibles.txt\";\r\n\t\tString boundsGrande = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasGrandes.txt\";\r\n\t\t\r\n\t\tinit = System.currentTimeMillis();\r\n\t\tcargarArchivoTorretas(boundsDouble, new FabricaTorretasDobles(), cantTorretasDobles);\r\n\t\tcargarArchivoTorretas(boundsSimple, new FabricaTorretasSimples(), cantTorretasSimples);\r\n\t\tcargarArchivoTorretas(boundsInvisible,new FabricaTorretasInvisibles(), cantTorretasInvisibles);\r\n\t\tcargarArchivoTorretas(boundsGrande,new FabricaTorretasGrandes(), cantTorretasGrandes);\r\n\t\tpuntaje = 500;\r\n\t\tsetearParametrosDefecto(2000, 2, 1275, 636);\r\n\t\t\r\n\t\t\r\n\t}", "public Triagem() {\n ImageIcon logo = new ImageIcon(\"src/Imagens/icone.png\");\n setIconImage(logo.getImage());\n initComponents();\n setLocationRelativeTo(null);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n }", "private void init(String src, int size_x, int size_y, int pos_x, int pos_y) {\n\t\tthis.origSize = new Dimension(size_x, size_y);\n\t\tthis.pos_x = pos_x;\n\t\tthis.pos_y = pos_y;\n\t\tthis.src = src;\n\n\t\tURL srcUrl = getClass().getResource(src);\n\t\tif (srcUrl != null) {\n\t\t\ttry {\n\t\t\t\timg = ImageIO.read(srcUrl);\n\t\t\t\timgType = img.getType() == 0 ? BufferedImage.TYPE_INT_ARGB : img.getType();\n\t\t\t\tsetIcon(new ImageIcon(img));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.warn(\"An image could not be loaded!\");\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.warn(\"Image URL \\\"\" + src + \"\\\" is not valid!\");\n\t\t}\n\t}", "private void setImage() throws FileNotFoundException {\n\t\timage = new Image(new FileInputStream(path));\n\t}", "private void setPhotoAttcher() {\n\n }", "private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }", "public void init() {\n\t\t// Image init\n\t\tcharacter_static = MainClass.getImage(\"\\\\data\\\\character.png\");\n\t\tcharacter_static2 = MainClass.getImage(\"\\\\data\\\\character2.png\");\n\t\tcharacter_static3 = MainClass.getImage(\"\\\\data\\\\character3.png\");\n\t\t\n\t\tcharacterCover = MainClass.getImage(\"\\\\data\\\\cover.png\");\n\t\tcharacterJumped = MainClass.getImage(\"\\\\data\\\\jumped.png\");\n\t\t\n\t\t// Animated when static.\n\t\tthis.addFrame(character_static, 2000);\n\t\tthis.addFrame(character_static2, 50);\n\t\tthis.addFrame(character_static3, 100);\n\t\tthis.addFrame(character_static2, 50);\n\t\t\n\t\tthis.currentImage = super.getCurrentImage();\n\t}", "private void initialize() {\n setImageResource(R.drawable.content);\n }", "public AlternateImageRenderer() {\r\n super(\"\");\r\n images = new Image[2];\r\n try {\r\n Resources imageRes = UIDemoMain.getResource(\"images\");\r\n images[0] = imageRes.getImage(\"sady.png\");\r\n images[1] = imageRes.getImage(\"smily.png\");\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n setUIID(\"ListRenderer\");\r\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n Jugador ganador = (Jugador) AppContext.getInstance().get(\"ganador\");\r\n lblNombre.setText(ganador.getNombre());\r\n lblNombre.setGraphic(new ImageView(new Image(\"virusclient/resources/imagenesAvatar/\" + ganador.getNombAvatar())));\r\n }", "public Gatete() {\r\n\t\tsuper();\r\n\t\timg = new JLabelGatete();\r\n\t}", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }", "private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }", "public Image meurt() {\n\t\t\tString str;//va contenir le nom de l'image\n\t\t\tImageIcon ico;//nom de la nouvelle instance de la methode ImageIcon\n\t\t\tImage img;//va etre egale a ico, et va retourner l'image voulu\n\t\t\t\n\t\t\tstr = \"/images/bouleDeFeu.png\";\n\t\t\tthis.compteurMort++;//on incremente un compteur\n\t\t\tif(this.compteurMort > 100) {//si le compteur arrive jusqu'a 100, mario meurt, \n\t\t\t\tstr = \"/images/mortDEMario.png\";//donc on change d'image\n\t\t\t\tthis.setY(this.getY() - 1);//fait monter l'image de la mort de mario vers le ciel\n\t\t\t}\n\t\t\tico = new ImageIcon(getClass().getResource(str));\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\n\t\t}", "private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }", "private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n ImageView imageView = new ImageView(image);\r\n imageView.setFitHeight(HEIGHT / 4);\r\n imageView.setPreserveRatio(true);\r\n return imageView;\r\n }", "public void setImg_1(String img_1) {\n this.img_1 = img_1;\n }", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "public String setImageLoader(ArrayList<String> link, int rando) {\n\t\tArrayList<String> newLink = link;\n\t\timgs = newLink.get(rando);\n\t\timg = new Image(imgs);\n\t\timgView.setImage(img);\n\t\treturn imgs;\n\t\t//imgView.setPreserveRatio(true);\n\t\t//imgView.setFitHeight(100);\n\t\t//imgView.setFitWidth(100);\n\t\t//this.getChildren().addAll(picBox,imgView);\t\n\t}", "public Ventana_Empl() \n {\n initComponents();\n insertImage();\n Image icon = Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Img/icono.png\"));\n setIconImage(icon);\n this.setLocationRelativeTo(null);\n this.setTitle(\"Gestión de Farmacias - Empleados\");\n this.setResizable(false);\n cerrar();\n }", "public void setImage(String Image) {\n this.Image = Image;\n }", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "void setImage(IViewModel image);", "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }", "private void setImage(ActorType type) {\n switch (type) {\n case TREE: image = new Image(\"src/res/images/tree.png\"); break;\n case GOLDENTREE: image = new Image(\"src/res/images/gold-tree.png\"); break;\n case STOCKPILE: image = new Image(\"src/res/images/cherries.png\"); break;\n case HOARD: image = new Image(\"src/res/images/hoard.png\"); break;\n case PAD: image = new Image(\"src/res/images/pad.png\"); break;\n case FENCE: image = new Image(\"src/res/images/fence.png\"); break;\n case SIGNUP: image = new Image(\"src/res/images/up.png\"); break;\n case SIGNDOWN: image = new Image(\"src/res/images/down.png\"); break;\n case SIGNLEFT: image = new Image(\"src/res/images/left.png\"); break;\n case SIGNRIGHT: image = new Image(\"src/res/images/right.png\"); break;\n case POOL: image = new Image(\"src/res/images/pool.png\"); break;\n case GATHERER: image = new Image(\"src/res/images/gatherer.png\"); break;\n case THIEF: image = new Image(\"src/res/images/thief.png\"); break;\n default: System.err.println(\"error: no preset image for this actor type: \"+type.toString());\n }\n }", "public void setStaticPicture(String path);", "public void init() {\n\t\tbg = new MyImg(\"gamepage/endgame/bg.png\");\n\t\tbut0 = new MyImg(\"paygame/qdbut.png\");\n\t\tbut1 = new MyImg(\"paygame/qxbut.png\");\n\t}", "public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }", "private void initTabImage() {\n firstImage.setImageResource(R.drawable.home);\n secondImage.setImageResource(R.drawable.profile);\n// thirdImage.setImageResource(R.drawable.addcontent);\n fourthImage.setImageResource(R.drawable.channels);\n fifthImage.setImageResource(R.drawable.search);\n }", "public void restaura(){ \n super.restauraE();\n setImage(\"FrtEA1.png\"); \n check = false; \n }", "public void setImage (Product product) {\n\t\t//TODO beh�ver hj�lp. hur s�tter jag mha referens till objektet bilden?\n\t\tpictureLbl.setText(\"\");\n\t\t//picLbl.setIcon(product.getImageName());\n\t\tpictureLbl.repaint();\n\t}", "private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }", "public Tela_Livro() {\n initComponents();\n this.setTitle(\"Sistema de Bibliotecas Columba - Admnistrador\"); \n URL iconURL = getClass().getResource(\"/org/me/myimageapp/resources/lib_icon.png\");\n // iconURL is null when not found\n ImageIcon icon = new ImageIcon(iconURL);\n this.setIconImage(icon.getImage());\n }", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(String _image)\n {\n this.image = _image;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n Image img = new Image(\"/circle/my_image.jpg\");\n circle.setFill(new ImagePattern(img));\n }", "public homegallery(String image_url)\n {\n this.image_url=image_url;\n }", "public Bassin(){\r\n\t\tImage i = Toolkit.getDefaultToolkit().getImage(\"fondmarin.jpg\");\r\n\t\tJLabel l = new JLabel(new ImageIcon(i));\r\n\t\tl.setBounds(0, 0, 600, 600);\r\n\t\tl.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n\t\tthis.add(l,new Integer(1));\r\n\t}", "public Elya() {\n\n estado=PersonajeEstado.quieto;\n cargarText(\"Personajes/ElyaQuieta.png\",1,0);\n cargarText(\"Personajes/ElyaRunning2.png\", 24, 1);\n cargarText(\"Personajes/ElyaAtack2.png\", 24, 2);\n cargarText(\"Personajes/ElyaDead.png\", 1, 3);\n\n }", "@Override\n\tpublic void loadImages() {\n\t\tsuper.setImage((new ImageIcon(\"pacpix/QuestionCandy.png\")).getImage());\t\n\t}", "public void setImage(Image image) {\n this.image = image;\n }", "public Formas() {\n initComponents();\n setIconImage(new ImageIcon(this.getClass().getResource(\"/Imagen/capsule.png\")).getImage());\n }", "private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}", "public Image() {\n \n }", "public halamanUtama(){\n initComponents();\n setnama();\n \n try {\n BufferedImage beam = ImageIO.read(getClass().getResource(\"library.png\"));\n setIconImage(beam); \n } catch (IOException ex) {\n Logger.getLogger(halamanUtama.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n this.setTitle(\"Halaman Utama\");\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n c = (int) (Math.random() * (300000 - 2 + 1)) + 2;\n pDir = new File(\"src/img/Profile\" + c + \".jpg\");\n lien = \"Profile\" + c + \".jpg\";\n \n\n }", "public Ventana() {\n initComponents();\n \n ImageIcon imagen = new ImageIcon(Toolkit.getDefaultToolkit().getImage(\"logo.png\"));\n Image img = imagen.getImage().getScaledInstance(logo.getWidth(), logo.getHeight(), Image.SCALE_SMOOTH);\n \n logo.setIcon(new ImageIcon(img));\n \n //Image img = imagen.getImage().getScaledInstance(labelImg.getWidth(), labelImg.getHeight(), Image.SCALE_SMOOTH);\n }", "public Imagen(){\n \n }", "private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }", "public ImageContent() {\n }", "public imageAlphaClass()\n {\n array_lineas = new ArrayList<>();\n array_modelos = new ArrayList<>();\n array_productos = new ArrayList<>();\n }", "public YourImage() {\n initComponents();\n }", "public void setImage(){\n\n Bundle extras = getIntent().getExtras();\n String image = extras.getString(\"pic\");\n String imageFlower = extras.getString(\"picflower\");\n\n\n\n if(image != null) {\n int pic = getResources().getIdentifier(image + \".png\",\"drawable\",getPackageName());\n\n achvImage.setImageResource(pic);\n achvImage.setVisibility(View.VISIBLE);\n\n }else {\n int flowerPic = getResources().getIdentifier(imageFlower + \".jpg\", \"drawable\", getPackageName());\n achvImage.setImageResource(flowerPic);\n achvImage.setVisibility(View.VISIBLE);\n }\n\n achvImage.setImageResource(R.drawable.medaldetails);\n\n\n String text = extras.getString(\"text\");\n achvDetails.setText(text);\n\n String title = extras.getString(\"title\");\n achvTitle.setText(title);\n\n int points1 = extras.getInt(\"points\");\n points.setText(\"Points: \" + points1);\n\n\n String desText1 = extras.getString(\"achDesA\");\n des1.setText(desText1);\n\n\n\n\n }", "public void initMapImageFragment () {\n // Thay doi tieu de\n tabTourMapImageBinding.actionBar.actionBarTitle.setText(R.string.tour_map_image);\n Tour tour = OnlineManager.getInstance().mTourList.get(tourOrder);\n // Gan tour image\n if (!tour.getmMapImageUrl().equals(null) && !tour.getmMapImageUrl().equals(\"\")) {\n Picasso.get()\n .load(tour.getmMapImageUrl())\n .into(tabTourMapImageBinding.tourMapImage);\n// Picasso.with(this).load(tour.getmMapImageUrl()).into(tabTourMapImageBinding.tourMapImage);\n }\n // Tat map image progress\n mapImageProgressOff();\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n lbTitulo.setText(cancion.getTitulo());\n lbAlbum.setText(cancion.getAlbum());\n imgPortada.setImage(Utilerias.byteToImage(cancion.getImagenAlbum()));\n imgPortada1.setOnMouseClicked(e->{\n parent.cargarDatosCancion(cancion);\n });\n }", "public Normal(String nombre){\r\n\t\tsuper(80,3,new ImageIcon(url),new ImageIcon(urlDer),new ImageIcon(urlIzq),nombre);\r\n\t\tvidaEstandar = 80;\r\n\t}", "public void setImage(String file){ \n try {\n image = ImageIO.read(new File(file));\n } catch (IOException ex) {\n Logger.getLogger(GridSquarePanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public Builder setImage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n image_ = value;\n onChanged();\n return this;\n }", "public Carte(String forme, String couleur, String nature, BufferedImage carteImage) {\n\t\tthis.forme = forme;\n\t\tthis.couleur = couleur;\n\t\tthis.nature = nature;\n\t\tthis.carteImage = carteImage;\n\t}", "public void setImage( String s )\r\n {\r\n java.net.URL url = getClass().getResource( s );\r\n if ( url == null )\r\n {\r\n url = getClass().getResource( \"/\" + s );\r\n if ( url == null )\r\n {\r\n try\r\n { // for applications\r\n content = ImageIO.read( new File( s ) );\r\n }\r\n catch ( IOException ioe )\r\n {\r\n ioe.printStackTrace();\r\n }\r\n }\r\n else\r\n {\r\n content = getToolkit().getImage( url );\r\n }\r\n }\r\n else\r\n {\r\n content = getToolkit().getImage( url );\r\n }\r\n flush();\r\n\r\n }", "void setImage(PImage img) {\n _img = img;\n }", "public Category() {\n\t\tsuper();\n\t\t/* Pour obtenir le chemin de fichier vers la catégorie */\n\t\tpath = \"src/\"+this.getClass().getPackage().getName().replace('.', '/');\n\t\twindowspath = \"src\\\\\"+this.getClass().getPackage().getName().replace('.', '\\\\');\n\t\t\n\t\timages = this.getPhotos();\n\t}", "public void setImage(String image) {\n\t\t this.image = image;\n\t}", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }" ]
[ "0.71813715", "0.68120384", "0.67878115", "0.6778938", "0.66400576", "0.65847003", "0.6583563", "0.65326697", "0.6504366", "0.6488603", "0.6469712", "0.646589", "0.64308965", "0.6425159", "0.6420094", "0.64004254", "0.6400082", "0.63592213", "0.6357065", "0.6349981", "0.6349472", "0.6335209", "0.6321023", "0.63101757", "0.62783134", "0.62508976", "0.6238165", "0.62267566", "0.62227964", "0.61997384", "0.619105", "0.61691433", "0.6156426", "0.6139226", "0.61363566", "0.613453", "0.61340845", "0.61176306", "0.61038905", "0.6096426", "0.608313", "0.6071356", "0.6070715", "0.60704184", "0.60693526", "0.6063302", "0.606081", "0.6055304", "0.60547537", "0.60458624", "0.6045285", "0.60399044", "0.60259295", "0.6002452", "0.5998615", "0.59975606", "0.5989557", "0.5988185", "0.59817064", "0.5976995", "0.5959462", "0.5943689", "0.59431523", "0.5939151", "0.59381807", "0.59334743", "0.5931204", "0.5922273", "0.59201926", "0.59201926", "0.5914528", "0.5901031", "0.58894247", "0.5877453", "0.5877182", "0.5869378", "0.58674425", "0.58648366", "0.586198", "0.5852264", "0.58465713", "0.58422273", "0.5841382", "0.58367985", "0.5835849", "0.58342206", "0.5824636", "0.5822668", "0.58209276", "0.58169407", "0.58166707", "0.58094513", "0.5803961", "0.580394", "0.5803273", "0.58000326", "0.57998985", "0.5793931", "0.57899034", "0.57893854" ]
0.6829909
1
/ tests if the Looper for the current thread has been prepared, If not, it makes one, prepares it and returns it. If this returns nonnull, the caller is reponsible for calling quit() on the returned Looper.
private Looper prepareIfNeededLooper() { // non-null Handler Looper myLooper = null; if (Looper.myLooper() == null) { Looper.prepare(); myLooper = Looper.myLooper(); assertNotNull(myLooper); } return myLooper; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onLooperPrepared() {\n super.onLooperPrepared();\n FrameConsumer.this.f41223d = new Handler(getLooper(), FrameConsumer.this);\n if (!FrameConsumer.this.f41225f) {\n FrameConsumer.this.m57235e();\n }\n }", "public final Looper mo13282a() {\n Looper looper;\n synchronized (this.f6932d) {\n if (this.f6931c != 0) {\n C0926p.m1307a(this.f6929a, (Object) \"Invalid state: mHandlerThread should already been initialized.\");\n } else if (this.f6929a == null) {\n C1772wz.m8287a(\"Starting the looper thread.\");\n this.f6929a = new HandlerThread(\"LooperProvider\");\n this.f6929a.start();\n this.f6930b = new Handler(this.f6929a.getLooper());\n C1772wz.m8287a(\"Looper thread started.\");\n } else {\n C1772wz.m8287a(\"Resuming the looper thread\");\n this.f6932d.notifyAll();\n }\n this.f6931c++;\n looper = this.f6929a.getLooper();\n }\n return looper;\n }", "public void testRunsOnCorrectLooper() throws Exception {\n\n final HandlerThread newThread = new HandlerThread(\"looper executor test thread\");\n newThread.start();\n\n final Looper newLooper = newThread.getLooper();\n Executor executor = new LooperExecutor(newLooper);\n final CountDownLatch latch = new CountDownLatch(1);\n executor.execute(new Runnable() {\n @Override\n public void run() {\n assertEquals(\"running on with expected looper\", newLooper, Looper.myLooper());\n assertEquals(\"running on expected thread\", newThread, Thread.currentThread());\n latch.countDown();\n }\n });\n latch.await();\n newLooper.quit();\n newThread.join();\n\n }", "@Override\n public void run() {\n super.run();\n\n /*This Looper.prepare() method Prepare the Looper of this current Thread and also\n * make a MessageQueue for this Thread which this Looper can loop through. and Now this Looper\n * is Associated with Current Thread.\n *\n * NOTE: 1. one thing to note that Thread should be in running state while Looper is being\n * prepared.\n *\n * 2. Preparing looper may take some time, and Handler is only prepared after the Looper\n * being Prepared and ready to use.*/\n Looper.prepare();\n\n /*Handler only made when Looper is ready, Current Looper object will implicitly passed to\n * this Handler constructor so that this Handler is Associated with the Looper\n *\n * We can also pass the Looper Object explicitly like:\n * mHandler = new Handler(Looper.getMainLooper());\n * Now this Handler is Associated with the Looper of Main Thread and this handler now can\n * only handle the Main Thread Messages.*/\n mHandler = new Handler(){\n\n /*Now this Message execute the Message Object using this Current Thread, when Looper\n * dequeue the Message from MessageQueue it will return back the Mesasge Object to the\n * Handler which enqueue the Message in MessageQueue*/\n @Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n Log.d(TAG,\"In Handler, Msg = \"+msg.arg1);\n }\n };\n /*loop() method will keep the Thread running until quit method is not called.*/\n Looper.loop();\n }", "private void startThreaderPreLoaderForNearBy()\r\n\t{\r\n\t\ttry \r\n\t\t{\t\t\t\r\n\t\t\tloaderForNrearBy = new ThreadPreLoaderForNearBy();\r\n\t\t\tloaderForNrearBy.execute();\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\thandlerForNearBy = new Handler() \r\n\t\t{\t\t\r\n\r\n\t\t\tpublic void handleMessage(Message msg) \r\n\t\t\t{\t\t\t\t\r\n\t\t\t\tif (whichmsg == -1) \r\n\t\t\t\t{\r\n\t\t\t\t\t//ShowAlert(\"Please check your net\");\r\n\t\t\t\t\tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);\r\n\t\t\t\t} \r\n\t\t\t\telse if (whichmsg == 2) \r\n\t\t\t\t{\r\n\t\t\t\t\tif(mDialogForNearBy != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmDialogForNearBy.dismiss();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);\r\n\t\t\t\t\tif(listOfClosestRoute != null)\r\n\t\t\t\t\t{\t\t\t\r\n\t\t\t\t\t\tadapterForNearBy = new ListAdapterForClosestRoute(getParent() , listOfClosestRoute);\r\n\t\t\t\t\t\tadapterForNearBy.notifyDataSetChanged();\r\n\t\t\t\t\t\tlistView.setAdapter(adapterForNearBy);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\trel_no_fav.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\ttextV_notice.setText(\"No nearby route\");\r\n\t\t\t\t\t\t/*\t\tif(rel_no_fav.getChildAt(1) == null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tbtn = new Button(getParent());\r\n\t\t\t\t\t\t\tbtn.setText(\"Try Again\");\r\n\t\t\t\t\t\t\tLinearLayout.LayoutParams layoutParam =new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT , LayoutParams.WRAP_CONTENT);\r\n\t\t\t\t\t\t\tlayoutParam.topMargin = 20;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbtn.setGravity(Gravity.CENTER);\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbtn.setLayoutParams(layoutParam);\r\n\t\t\t\t\t\t\trel_no_fav.addView(btn);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbtn.setOnClickListener(new OnClickListener() \r\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View v) \r\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tnearbyRoutes();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});*/\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@Override\n public boolean queueIdle() {\n mThread.getLooper().quit();\n nativeOnLooperStopped(nativeThread);\n return false;\n }", "public static void waitForIdle(Looper looper, Runnable callback) {\n Preconditions.checkNotNull(looper, \"Looper should not be null.\");\n waitForIdle(looper.getQueue(), callback);\n }", "public void run() {\n Looper.prepare();\n operationRunnableOver = false;\n oper.operate();\n operationRunnableOver = true;\n if (StatusCheckUtil.mediaUpdating > 0) {\n return;\n }\n Message mess = new Message();\n mess.what = Constants.OperationContants.FINISH_OPERATION;\n mess.obj = operatingDialog;\n ((CommonActivity) context).handler.sendMessage(mess);\n\n Looper.loop();\n }", "@Override\n protected Handler createHandler(Looper looper) {\n return new CatchingWorkerHandler(looper);\n }", "@Override public void run() {\n boolean looperIsNotPreparedInCurrentThread = Looper.myLooper() == null;\n\n if (looperIsNotPreparedInCurrentThread) {\n Looper.prepare();\n }\n\n handler = new Handler(new Handler.Callback() {\n @Override public boolean handleMessage(Message message) {\n Log.d(getClass().getSimpleName(), message.getData().toString());\n\n if (handlerCallback != null) {\n // note: we can avoid this callback by using event bus depending on concrete use case\n handlerCallback.handleMessage(message.getData());\n }\n return true;\n }\n });\n\n if (looperIsNotPreparedInCurrentThread) {\n Looper.loop();\n }\n }", "public BusHandler(Looper looper) {\n super(looper);\n }", "public void prepareAsync(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\tmediaplayer.prepareAsync();\r\n \t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n if(mCallback != null) {\n if (!mCallback.getNetworkConnection()) {\n /* Update with null data if no connection. Cancel asyncTask */\n mCallback.updateFromAsyncTask(null);\n cancel(true);\n }\n mCallback.handleProgressLoader();\n }\n }", "static void m61438a(Looper looper) {\n C188081 r0 = new Handler(looper) {\n public final void handleMessage(Message message) {\n sendMessageDelayed(obtainMessage(), 1000);\n }\n };\n r0.sendMessageDelayed(r0.obtainMessage(), 1000);\n }", "public Handler createHandler(Looper looper) {\n return new CatchingWorkerHandler(looper);\n }", "public void run() {\n Looper.prepare();\n backgroundHandler = new Handler(); //Handler processes only runnables. It is not required to implement handleMessage(msg)\n Looper.loop();\n }", "private void makeMoveOnPostExecute(String msg){\n if (msg.equals(MOVE_MADE)){\n //freeze UI in main thread TODO\n canClick=false;\n\n //start new Thread ReadFromDB\n new ReadFromDB(activity , GAME_READY).execute();\n }\n else{\n //TODO check Error\n }\n }", "public void testDefaultsToMainThread() throws Exception {\n\n Executor executor = new LooperExecutor();\n final CountDownLatch latch = new CountDownLatch(1);\n executor.execute(new Runnable() {\n @Override\n public void run() {\n assertEquals(\"running on ui thread\", Looper.getMainLooper(), Looper.myLooper());\n latch.countDown();\n }\n });\n latch.await();\n }", "public static Looper m153582e() {\n return m153572a().getLooper();\n }", "@Override\n protected void onPreExecute() {\n// mProgressDialog = new ProgressDialog(DeviceConnectActivity.this);\n// mProgressDialog\n// .setMessage(\"Esptouch is configuring, please wait for a moment...\");\n// mProgressDialog.setCanceledOnTouchOutside(false);\n// mProgressDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {\n// @Override\n// public void onCancel(DialogInterface dialog) {\n// synchronized (mLock) {\n// if (__IEsptouchTask.DEBUG) {\n// Log.i(TAG, \"progress dialog is canceled\");\n// }\n// if (mEsptouchTask != null) {\n// mEsptouchTask.interrupt();\n// }\n// }\n// }\n// });\n// mProgressDialog.setButton(DialogInterface.BUTTON_POSITIVE,\n// \"Waiting...\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// }\n// });\n// mProgressDialog.show();\n// mProgressDialog.getButton(DialogInterface.BUTTON_POSITIVE)\n// .setEnabled(false);\n }", "public void waitUntilIdle() {\n Handler handler = waitAndGetHandler();\n MessageQueue queue = handler.getLooper().getQueue();\n if (queue.isIdle()) {\n return;\n }\n mIdle.close();\n queue.addIdleHandler(mIdleHandler);\n // Ensure that the idle handler gets run even if the looper already went idle\n handler.sendEmptyMessage(MSG_POKE_IDLE_HANDLER);\n if (queue.isIdle()) {\n return;\n }\n mIdle.block();\n }", "public void showProgress2(){\n// if (mHandler==null){\n// mHandler = new Handler(Looper.getMainLooper());\n// }\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n loadingDialog = new Dialog(BaseActivity.this);\n loadingDialog.setTitle(\"Loading data..\");\n loadingDialog.setContentView(R.layout.loading);\n loadingDialog.show();\n\n }\n });\n// mHandler.post(new Runnable() {\n// @Override\n// public void run() {\n// loadingDialog = new Dialog(BaseActivity.this);\n// loadingDialog.setTitle(\"Loading data..\");\n// loadingDialog.setContentView(R.layout.loading);\n// loadingDialog.show();\n//\n// }\n// });\n }", "@Override\n\tpublic void destroy() {\n\t\tif( null != mLooper ) {\n\t\t\tmLooper.quit();\n\t\t\tmLooper = null;\n\t\t\tmThread = null;\n\t\t}\n\t}", "@Override\r\n protected final void checkNotPrepared ()\r\n {\r\n if (isPrepared ())\r\n throw new IllegalStateException (\"This object was already prepared and can therefore not be modified: \" +\r\n toString ());\r\n }", "@Override\n public void run() {\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n Log.d(\"UI thread\", \"I am the UI thread\");\n Log.i(TAG,\"Make Call: \"+selGroup);\n makeCall();\n }\n });\n /*\n MainActivity.this.myView.post(new Runnable() {\n public void run() {\n Log.d(\"UI thread\", \"I am the UI thread\");\n Log.i(TAG,\"Make Call: \"+selGroup);\n makeCall();\n }\n });\n */\n }", "private EcologyLooper getEcologyLooper() {\n if (ecologyLooper == null) {\n ecologyLooper = ecologyLooperFactory.createEcologyLooper(\"EcologyLooperThread\");\n ecologyLooper.start();\n ecologyLooper.prepareHandler();\n }\n return ecologyLooper;\n }", "public static Handler m153572a() {\n Handler handler;\n synchronized (f113999b) {\n if (f114001d == null) {\n if (!f114000c) {\n f114001d = new Handler(Looper.getMainLooper());\n } else {\n throw new RuntimeException(\"Did not yet override the UI thread\");\n }\n }\n handler = f114001d;\n }\n return handler;\n }", "public AsyncHttpCallback() {\n\t\tif(Looper.myLooper() != null) mHandler = new Handler(this);\n\t}", "public void invokePreparedListener() {\n if (preparedListener == null) return;\n preparedListener.onPrepared( player );\n }", "protected void onPreExecute() {\n // Log.i(\"Stephan\",\"PreExecute\");\n // Log.i(\"handler preExecute\", resultBack);\n }", "final Runnable pollLocalTask() {\n return locallyDeqTask();\n }", "private void handleExternalDevice(final String name, final int type, final int state, final String extra){\n\n mThreadExecutor.execute(new Runnable() {\n\n @Override\n public void run() {\n ArrayList<String> mAudioOutputChannels = mAudioManagerEx.getAudioDevices(AudioManagerEx.AUDIO_OUTPUT_TYPE);\n ArrayList<String> mAudioInputChannels = mAudioManagerEx.getAudioDevices(AudioManagerEx.AUDIO_INPUT_TYPE);\n\n String title = null;\n String message = null;\n\n switch(state){\n case AudioDeviceManagerObserver.PLUG_IN:\n switch(type){\n case AudioDeviceManagerObserver.AUDIO_INPUT_TYPE:\n //auto change to this audio-in channel\n Log.d(TAG, \"audio input plug in\");\n ArrayList<String> audio_in = new ArrayList<String>();\n audio_in.add(name);\n mAudioManagerEx.setAudioDeviceActive(audio_in, AudioManagerEx.AUDIO_INPUT_ACTIVE);\n\n title = mCtx.getResources().getString(R.string.usb_audio_in_plug_in_title);\n //message = mCtx.getResources().getString(R.string.usb_audio_plug_in_message);\n toastPlugInNotification(title, AUDIO_IN_NOTIFY);\n break;\n case AudioDeviceManagerObserver.AUDIO_OUTPUT_TYPE:\n Log.d(TAG, \"audio output plug in\");\n //update devices state\n if(extra != null && extra.equals(AudioDeviceManagerObserver.H2W_DEV)){\n headPhoneConnected = true;\n }\n\n //switch audio output\n final ArrayList<String> audio_out = new ArrayList<String>();\n if(extra != null && extra.equals(AudioDeviceManagerObserver.H2W_DEV)){\n audio_out.add(name);\n mAudioManagerEx.setAudioDeviceActive(audio_out, AudioManagerEx.AUDIO_OUTPUT_ACTIVE);\n title = mCtx.getResources().getString(R.string.headphone_plug_in_title);\n message = mCtx.getResources().getString(R.string.headphone_plug_in_message);\n }else if(name.contains(\"USB\")){\n audio_out.add(name);\n mHandler.post(new java.lang.Runnable() {\n @Override\n public void run() {\n // TODO Auto-generated method stub\n chooseUsbAudioDeviceDialog(audio_out);\n }\n });\n //title = mCtx.getResources().getString(R.string.usb_audio_out_plug_in_title);\n }\n break;\n }\n break;\n case AudioDeviceManagerObserver.PLUG_OUT:\n switch(type){\n case AudioDeviceManagerObserver.AUDIO_INPUT_TYPE:\n Log.d(TAG, \"audio input plug out\");\n title = mCtx.getResources().getString(R.string.usb_audio_in_plug_out_title);\n message = mCtx.getResources().getString(R.string.usb_audio_plug_out_message);\n ArrayList<String> actived = mAudioManagerEx.getActiveAudioDevices(AudioManagerEx.AUDIO_INPUT_ACTIVE);\n if(actived == null || actived.size() == 0 || actived.contains(name)){\n ArrayList<String> ilist = new ArrayList<String>();\n for(String dev:mAudioInputChannels){\n if(dev.contains(\"USB\")){\n ilist.add(dev);\n break;\n }\n }\n if(ilist.size() == 0){\n ilist.add(AudioManagerEx.AUDIO_NAME_CODEC);\n }\n mAudioManagerEx.setAudioDeviceActive(ilist, AudioManagerEx.AUDIO_INPUT_ACTIVE);\n toastPlugOutNotification(title, message, AUDIO_IN_NOTIFY);\n }\n else if(!actived.contains(\"USB\")){\n ArrayList<String> ilist = new ArrayList<String>();\n ilist.add(AudioManagerEx.AUDIO_NAME_CODEC);\n mAudioManagerEx.setAudioDeviceActive(ilist, AudioManagerEx.AUDIO_INPUT_ACTIVE);\n }\n break;\n case AudioDeviceManagerObserver.AUDIO_OUTPUT_TYPE:\n ArrayList<String> olist = new ArrayList<String>();\n Log.d(TAG, \"audio output plug out\");\n if(extra != null && extra.equals(AudioDeviceManagerObserver.H2W_DEV)){\n headPhoneConnected = false;\n for(String dev:mAudioOutputChannels){\n if(dev.contains(\"USB\")){\n olist.add(dev);\n mAudioManagerEx.setAudioDeviceActive(olist,AudioManagerEx.AUDIO_OUTPUT_ACTIVE);\n break;\n }\n }\n if(olist.size() == 0){\n switchAudioDevice(mDisplayOutputManager.getDisplayOutputType(0),false,false);\n }\n title = mCtx.getResources().getString(R.string.headphone_plug_out_title);\n message = mCtx.getResources().getString(R.string.headphone_plug_out_message);\n }else{\n if(headPhoneConnected){\n olist.add(AudioManagerEx.AUDIO_NAME_CODEC);\n }else{\n if(name.contains(\"USB\")){\n Log.d(TAG,\"switchAudioDevice, remove USB Audio device!\");\n if (alertDialog != null && alertDialog.isShowing()) {\n alertDialog.dismiss();\n alertDialog = null;\n }\n switchAudioDevice(mDisplayOutputManager.getDisplayOutputType(0),true,false);\n }else{\n Log.d(TAG,\"switchAudioDevice, NO USB Audio device is connected!\");\n switchAudioDevice(mDisplayOutputManager.getDisplayOutputType(0),false,false);\n }\n }\n title = mCtx.getResources().getString(R.string.usb_audio_out_plug_out_title);\n message = mCtx.getResources().getString(R.string.usb_audio_plug_out_message);\n }\n toastPlugOutNotification(title, message, AUDIO_OUT_NOTIFY);\n break;\n }\n break;\n }\n }\n });\n\n }", "@Override\r\n\t\tpublic CallableStatement prepareCall(String sql, int resultSetType,\r\n\t\t\t\tint resultSetConcurrency, int resultSetHoldability)\r\n\t\t\t\tthrows SQLException {\n\t\t\treturn null;\r\n\t\t}", "public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }", "public static void waitForIdleLooper(Looper looper, long timeoutMs) {\n waitForIdleHandler(new Handler(looper), timeoutMs);\n }", "public void procLoadFromFileThread() {\n try {\n\n do {\n /*----------Check Thread Interrupt----------*/\n Thread.sleep(1); if (!_running) break;\n /*------------------------------------------*/\n\n MemoryCacheEntry cacheEntry = _downloader.getMemCache().get(_cacheKey);\n\n if (cacheEntry!=null && cacheEntry.size()>0) {\n _cacheEntry = cacheEntry;\n _downloader.handleState(this, ImageDownloader.State.DOWNLOAD_SUCCESS);\n return;\n } else {\n _cacheEntry = null;\n }\n\n\n _isSuccess = false;\n\n _mutex.lock();\n if (_phoneAlbums!=null && _phoneAlbums.size()>0) {\n _isSuccess = true;\n } else {\n ImageManager.getPhoneAlbumInfo(SMDirector.getDirector().getActivity(), new ImageManager.OnImageLoadListener() {\n @Override\n public void onAlbumImageLoadComplete(ArrayList<PhoneAlbum> albums) {\n _isSuccess = true;\n _phoneAlbums = albums;\n// _cond.notify();\n synchronized (_this) {\n _this.notify();\n }\n }\n\n @Override\n public void onError() {\n synchronized (_this) {\n _this.notify();\n }\n// _cond.notify();\n }\n });\n\n synchronized (_this) {\n _this.wait();\n }\n\n// _cond.wait();\n }\n\n if (!_isSuccess || _phoneAlbums.size()==0) {\n Log.i(\"DT\", \"[[[[[ Failed to get Album list~\");\n _mutex.unlock();\n break;\n }\n\n /*----------Check Thread Interrupt----------*/\n Thread.sleep(1); if (!_running) break;\n /*------------------------------------------*/\n\n Bitmap bmp = getPhotoImage(_requestPath);\n if (bmp==null) {\n Log.i(\"DT\", \"[[[[[ Failed to get Album list~\");\n _mutex.unlock();\n break;\n }\n\n _imageEntry = ImageCacheEntry.createEntry(bmp);\n _mutex.unlock();\n\n _downloader.handleState(this, ImageDownloader.State.DECODE_SUCCESS);\n _cacheEntry = null;\n return;\n } while (false);\n\n\n } catch (InterruptedException e) {\n\n }\n\n _cacheEntry = null;\n _downloader.handleState(this, ImageDownloader.State.DOWNLOAD_FAILED);\n }", "@Override\r\n\t\tpublic CallableStatement prepareCall(String sql) throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "@Override\n protected void onPreExecute() {\n if (!networkAvailability.isNetworkAvailable()) {\n this.cancel(true);\n rl_container_login.removeView(loaderView);\n //for enable the screen\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n alertDialoge.showAlertDialog(\"single\", \"No internet\", \"Please check your internet connection !\");\n }\n }", "private void tryToCreateNewConnByAsyn() {\r\n do {\r\n int curAddSize = needAddConnSize.get();\r\n int updAddSize = curAddSize + 1;\r\n if (connArray.length + updAddSize > poolMaxSize) return;\r\n if (needAddConnSize.compareAndSet(curAddSize, updAddSize)) {\r\n if (createConnThreadState.get() == THREAD_WAITING && createConnThreadState.compareAndSet(THREAD_WAITING, THREAD_WORKING))\r\n unpark(this);\r\n return;\r\n }\r\n } while (true);\r\n }", "protected abstract void preparePresenter( PlaceRequest request, T presenter );", "protected void onPreExecute() {\n\t\t\t//Log..d(TAG, \"OnPreExecute'd\");\n\t\t\tif (IS_PAUSING == YES) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t\tFRAMEBUFFER_IS = BUSY;\n\t\t}", "@Override\r\n\t\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\t\tif(isUseSelf)\r\n\t\t\t\tthread.start();\r\n\t\t\tViewGroup.LayoutParams lp = getLayoutParams();\r\n\t\t\tlp.width = width;\r\n\t\t\tlp.height = height;\r\n\t\t\tsetLayoutParams(lp);\r\n\t\t}", "public void prepare() {\n\t\tthis.mMediaPlayer = new MediaPlayer();\n\t\ttry {\n\t\t\tthis.mMediaPlayer.reset();\n\t\t\tthis.mMediaPlayer.setDataSource(this.resourceURL);\n\t\t\tthis.mMediaPlayer.setOnPreparedListener(this);\n\t\t\tthis.mMediaPlayer.prepareAsync();\n\t\t\tthis.subject.notifyBuffering();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void runStopHolder() {\n Log.d(TAG, \"stop holder has been just started!\");\n mStopHandler = new Handler(Looper.getMainLooper());\n mStopHolder.setHandler(mStopHandler);\n mStopHandler.postDelayed(mStopHolder, Resources.DISTANCE_CALCULATOR_STOP_DELAY);\n }", "public static void checkUiThread() {\n if(Looper.getMainLooper() != Looper.myLooper()) {\n throw new IllegalStateException(\"Must be called from the Main Thread. Current Thread was :\"+ Thread.currentThread());\n }\n }", "@Override\n protected Void doInBackground (Void[] params) {\n if (checkFirstRun()) {\n try {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run () {\n List<InitializeDataBase> initializeDataBase = InitializeDataBase.listAll(InitializeDataBase.class);\n }\n });\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n\n return null;\n }", "private native void setupFlushUiQueue(CallInvokerHolderImpl callInvoker);", "protected android.graphics.Bitmap doInBackground(java.lang.Object... r5) {\n /*\n r4 = this;\n r3 = 0;\n r1 = com.lidroid.xutils.BitmapUtils.this;\n r2 = r1.pauseTaskLock;\n monitor-enter(r2);\n L_0x0008:\n r1 = com.lidroid.xutils.BitmapUtils.this;\t Catch:{ all -> 0x007b }\n r1 = r1.pauseTask;\t Catch:{ all -> 0x007b }\n if (r1 == 0) goto L_0x0016;\n L_0x0010:\n r1 = r4.isCancelled();\t Catch:{ all -> 0x007b }\n if (r1 == 0) goto L_0x0067;\n L_0x0016:\n monitor-exit(r2);\t Catch:{ all -> 0x007b }\n r0 = 0;\n r1 = r4.isCancelled();\n if (r1 != 0) goto L_0x0042;\n L_0x001e:\n r1 = r4.getTargetContainer();\n if (r1 == 0) goto L_0x0042;\n L_0x0024:\n r1 = 1;\n r1 = new java.lang.Object[r1];\n r2 = java.lang.Integer.valueOf(r3);\n r1[r3] = r2;\n r4.publishProgress(r1);\n r1 = com.lidroid.xutils.BitmapUtils.this;\n r1 = r1.globalConfig;\n r1 = r1.getBitmapCache();\n r2 = r4.uri;\n r3 = r4.displayConfig;\n r0 = r1.getBitmapFromDiskCache(r2, r3);\n L_0x0042:\n if (r0 != 0) goto L_0x0066;\n L_0x0044:\n r1 = r4.isCancelled();\n if (r1 != 0) goto L_0x0066;\n L_0x004a:\n r1 = r4.getTargetContainer();\n if (r1 == 0) goto L_0x0066;\n L_0x0050:\n r1 = com.lidroid.xutils.BitmapUtils.this;\n r1 = r1.globalConfig;\n r1 = r1.getBitmapCache();\n r2 = r4.uri;\n r3 = r4.displayConfig;\n r0 = r1.downloadBitmap(r2, r3, r4);\n r1 = com.lidroid.xutils.bitmap.callback.BitmapLoadFrom.URI;\n r4.from = r1;\n L_0x0066:\n return r0;\n L_0x0067:\n r1 = com.lidroid.xutils.BitmapUtils.this;\t Catch:{ Throwable -> 0x007e }\n r1 = r1.pauseTaskLock;\t Catch:{ Throwable -> 0x007e }\n r1.wait();\t Catch:{ Throwable -> 0x007e }\n r1 = com.lidroid.xutils.BitmapUtils.this;\t Catch:{ Throwable -> 0x007e }\n r1 = r1.cancelAllTask;\t Catch:{ Throwable -> 0x007e }\n if (r1 == 0) goto L_0x0008;\n L_0x0078:\n monitor-exit(r2);\t Catch:{ all -> 0x007b }\n r0 = 0;\n goto L_0x0066;\n L_0x007b:\n r1 = move-exception;\n monitor-exit(r2);\t Catch:{ all -> 0x007b }\n throw r1;\n L_0x007e:\n r1 = move-exception;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.lidroid.xutils.BitmapUtils.BitmapLoadTask.doInBackground(java.lang.Object[]):android.graphics.Bitmap\");\n }", "public void run() {\n handler.post(new Runnable() {\r\n public void run() {\r\n // Toast.makeText(getApplicationContext(), \"driver view refresh\", Toast.LENGTH_SHORT).show();\r\n \t\t\r\n\t\t\tarraylist_destination.clear();\r\n\t\t\tarraylist_driverid.clear();\r\n\t\t\tarraylist_riderid.clear();\r\n\t\t\tarraylist_drivername.clear();\r\n\t\t\tarraylist_pickuptime.clear();\r\n\t\t\tarraylist_tripid.clear();\r\n\t\t\tarraylist_driver_image.clear();\r\n\t\t\tarraylist_rider_image.clear();\r\n\t\t\tarraylist_distance.clear();\r\n\t\t\tarraylist_requesttype.clear();\r\n\t\t\tarraylist_start.clear();\r\n\t\t\tarraylist_actualfare.clear();\r\n\t\t\tarraylist_suggestion.clear();\r\n\t\t\tarraylist_eta.clear();\r\n\t\t\tarraylist_driverrating.clear();\r\n\t\t\tarraylist_status.clear();\r\n\t\t\tarraylist_vehicle_color.clear();\r\n\t\t\tarraylist_vehicle_type.clear();\r\n\t\t\tarraylist_vehicle_name.clear();\r\n\t\t\tarraylist_vehicle_img.clear();\r\n\t\t\tarraylist_vehicle_year.clear();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(Utility.isConnectingToInternet(RiderQueue_Activity.this))\r\n \t \t{\r\n \t\t\t\t/**call pending request for rider queue class**/\r\n\t\t\t\tnew httpPendingRequest_riderqueue().execute(); \r\n \t \t\t}\r\n \t \telse{\r\n \t \t\tUtility.alertMessage(RiderQueue_Activity.this,\"error in internet connection\");\r\n \t \t}\r\n\t\t \r\n }\r\n });\r\n }", "protected ResultHolder<S, T> handleASyncServiceCall() {\n\n\t\t// Check we have a service action\n\t\tServiceAction action = getServiceAction();\n\t\tif (action == null) {\n\t\t\tthrow new IllegalStateException(\"No service action provided for polling.\");\n\t\t}\n\n\t\t// Generate a cache key so the polling result can be held\n\t\tif (!isUseCachedResult()) {\n\t\t\t//Generate a key\n\t\t\tsetServiceCacheKey(generateCacheKey());\n\t\t\t// Clear previous result\n\t\t\tsetServiceResult(null);\n\t\t}\n\n\t\t// Check we have a cache key\n\t\tString key = getServiceCacheKey();\n\t\tif (key == null) {\n\t\t\tthrow new IllegalStateException(\"No cache key provided for polling.\");\n\t\t}\n\n\t\t// Start Service action (will return result if already cached)\n\t\ttry {\n\t\t\tResultHolder result = SERVICE_HELPER.handleAsyncServiceCall(getServiceCache(), key, getServiceCriteria(), action);\n\t\t\tsetServiceRunning(true);\n\t\t\treturn result;\n\t\t} catch (RejectedTaskException e) {\n\t\t\t// Could not start service (usually no threads available). Try and start on the next poll.\n\t\t\tLOG.info(\"Could not start service in pool [\" + getServiceThreadPool() + \"]. Will try next poll.\");\n\t\t\tsetServiceRunning(false);\n\t\t\treturn null;\n\t\t}\n\t}", "public static void quitLooper() {\r\n playerAHandler.removeCallbacksAndMessages(null);\r\n playerAHandler.getLooper().quit();\r\n }", "@Override\n public void run() {\n mRunnable.onPreExecute();\n mExecutor.onPreExecuteCallback(mRunnable);\n }", "public void initMusicPlayer() {\n PatariSingleton.getInstance().getMediaPlayer().setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK);\n PatariSingleton.getInstance().getMediaPlayer().setAudioStreamType(AudioManager.STREAM_MUSIC);\n PatariSingleton.getInstance().getMediaPlayer().setOnPreparedListener(this);\n PatariSingleton.getInstance().getMediaPlayer().setOnCompletionListener(this);\n PatariSingleton.getInstance().getMediaPlayer().setOnErrorListener(this);\n PatariSingleton.getInstance().getMediaPlayer().setOnBufferingUpdateListener(this);\n try {\n if (wifiLock != null && wifiLock.isHeld()) {\n wifiLock.release();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n wifiLock = ((WifiManager) getApplication().getApplicationContext().getSystemService(Context.WIFI_SERVICE)).createWifiLock(WifiManager.WIFI_MODE_FULL, \"mylock\");\n wifiLock.acquire();\n } catch (Exception e) {\n e.printStackTrace();\n }\n IS_PROGRESS = false;\n }", "public void prepare(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\ttry{\r\n \t\t\tmediaplayer.prepare();\r\n \t\t}catch(IOException e){\r\n \t\t\tSrvGroup._Print(e.toString());\r\n \t\t}\r\n \t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(Chat.this);\n pDialog.setMessage(\"Getting thread...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(true);\n pDialog.show();\n\n }", "@Override\n public void surfaceCreated(SurfaceHolder holder){\n MediaPlayer myplayer = MediaPlayer.create(getContext(), R.raw.seashanty);\n myplayer.start();\n thread = new MainThread(getHolder(), this);\n background = new Background(BitmapFactory.decodeResource(getResources(), R.drawable.newblack));\n newPlayer = new player(BitmapFactory.decodeResource(getResources(),R.drawable.newpirateship),173 ,81,1);\n\n try{\n secondaryThread.sleep(5);\n }catch (Exception e){\n e.printStackTrace();\n }\n try {\n thread.sleep(5);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n //Makes for a smoother game\n secondaryThreadCalls();\n thread = new MainThread(getHolder(), this);\n thread.setRunning(true);\n thread.start();\n\n }", "public static Handler getInstance() {\n Object object = sHandler;\n if (object != null) {\n return sHandler;\n }\n object = MainThreadAsyncHandler.class;\n synchronized (object) {\n Handler handler = sHandler;\n if (handler == null) {\n handler = Looper.getMainLooper();\n sHandler = handler = HandlerCompat.createAsync((Looper)handler);\n }\n return sHandler;\n }\n }", "boolean available()\n {\n synchronized (m_lock)\n {\n return (null == m_runnable) && (!m_released);\n }\n }", "@Override\n protected Bitmap doInBackground(Void... arg0) {\n try {\n return bitmapLoader.load(getApplicationContext(), new int[]{metrics.widthPixels, metrics.heightPixels}, strImageUrl);\n } catch (Exception e) {\n return null;\n }\n }", "private void startThreaderPreLoader(final ArrayList<ArrayList<String>> listOfAllRoutes)\r\n\t{\r\n\t\ttry \r\n\t\t{\t\t\t\r\n\t\t\tloaderForNrearBy = new ThreadPreLoaderForNearBy();\r\n\t\t\tloaderForNrearBy.execute();\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\thandler = new Handler() \r\n\t\t{\r\n\t\t\tpublic void handleMessage(Message msg) \r\n\t\t\t{\r\n\t\t\t\tif (whichmsg == -1) \r\n\t\t\t\t{\r\n\t\t\t\t\t//ShowAlert(\"Please check your net\");\t\t\t\t\t\r\n\t\t\t\t} \r\n\t\t\t\telse if (whichmsg == 2) \r\n\t\t\t\t{\t\r\n\t\t\t\t\trunOnUiThread(new Runnable() \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tIntent routeStop = new Intent(FavoriteRoutesActivity.this, RouteStopsActivity.class);\r\n\t\t\t\t\t\t\trouteStop.putExtra(\"routeType\", listOfAllRoutes.get(position).get(1));\r\n\t\t\t\t\t\t\trouteStop.putExtra(\"positionClicked\", position);\r\n\t\t\t\t\t\t\trouteStop.putExtra(\"title\", listOfAllRoutes.get(position).get(2));\r\n\t\t\t\t\t\t\trouteStop.putExtra(\"subTitle\", listOfAllRoutes.get(position).get(8));\r\n\t\t\t\t\t\t\tif(listOfAllRoutes.get(position).get(0).equalsIgnoreCase(\"rail\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\trouteStop.putExtra(\"trainImgPos\", listOfAllRoutes.get(position).get(1));\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t//R.drawable.bus_stop_icon_bkg);\r\n\t\t\t\t\t\t\t\trouteStop.putExtra(\"busNo\", listOfAllRoutes.get(position).get(1));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tedit_searchRoute.setText(\"\");\r\n\t\t\t\t\t\t\tstartActivity(routeStop);\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n // take CPU lock to prevent CPU from going off if the user\n // presses the power button during download\n PowerManager pm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);\n mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,\n getClass().getName());\n mWakeLock.acquire();\n AudioActivity.sProgDialDownload.setButton(mContext.getString(R.string.pdBuffer_cancel), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n try {\n is.close();\n dialog.cancel();\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n });\n AudioActivity.sProgDialDownload.setButton2(mContext.getString(R.string.pdBuffer_hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n try {\n TaleListItem_audio.sProgDialDownload.hide();\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n });\n AudioActivity.sProgDialDownload.show();\n }", "FragmentExecutor getRunnable();", "public boolean isPrepared() {\n return prepared;\n }", "EmulatorDriver.Cmd poll()\n {\n synchronized (QUEUE_LOCK)\n {\n if ( ! queue.isEmpty() )\n {\n return queue.remove(0);\n }\n return isWaiting() ? take() : null;\n }\n }", "boolean prepareToMove();", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "@Override\n public void onPrepared(MediaPlayer player) {\n synchronized (this) {\n isPrepared = true;\n }\n \n }", "private void initThread() {\n\t\tarticleInqList = new ArrayList<ArticleInq>();\n\t\tarticleImageList = new ArrayList<ArticleImage>();\n\t\t// for hide display\n\t\tif (statusThread == null) {\n\t\t\tproductDetailsLayOut = (TableLayout) findViewById(R.id.tblProductDetails);\n\t\t\tmWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (isAnyProductDisplaying) {\n\t\t\t\t\t\tproductDetailsLayOut.startAnimation(animBottom);\n\t\t\t\t\t\tproductDetailsLayOut.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\tisAnyProductDisplaying = false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tstatusThread = new Thread(mWaitRunnable);\n\t\tstatusThread.start();\n\n\t\t// For adding only Article images\n\t\tif (productImageAddThread == null) {\n\t\t\tpIAWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (currentPoolEanForImage.equals(\"\")\n\t\t\t\t\t\t\t&& !sacannedItemListForImage.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcurrentPoolEanForImage = sacannedItemListForImage\n\t\t\t\t\t\t\t\t\t.get(0);\n\t\t\t\t\t\t\taddArticleImage();\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tcurrentPoolEanForImage = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpIAHandler.postDelayed(pIAWaitRunnable, 1);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tproductImageAddThread = new Thread(pIAWaitRunnable);\n\t\tproductImageAddThread.start();\n\n\t\t// For adding only Article informations\n\t\tif (productAddThread == null) {\n\n\t\t\tpAWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (currentPoolEanForArticle.equals(\"\")\n\t\t\t\t\t\t\t&& !sacannedItemListForArticle.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcurrentPoolEanForArticle = sacannedItemListForArticle\n\t\t\t\t\t\t\t\t\t.get(0);\n\t\t\t\t\t\t\taddArticle();\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tcurrentPoolEanForArticle = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpAHandler.postDelayed(pAWaitRunnable, 2);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tproductAddThread = new Thread(pAWaitRunnable);\n\t\tproductAddThread.start();\n\n\t\t// For showing display\n\t\tif (productDisplayThread == null) {\n\t\t\tpDWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!isAnyProductDisplaying\n\t\t\t\t\t\t\t&& !displayArticleList.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tisAnyProductDisplaying = true;\n\t\t\t\t\t\t\tint lastDisplayedItemIndex = displayArticleList\n\t\t\t\t\t\t\t\t\t.size();\n\t\t\t\t\t\t\taddProduct(displayArticleList\n\t\t\t\t\t\t\t\t\t.get(lastDisplayedItemIndex - 1));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdisplayRemovingStarted = true;\n\t\t\t\t\t\t\twhile (!displayAddingStarted) {\n\t\t\t\t\t\t\t\tfor (int i = 0; i < lastDisplayedItemIndex; i++) {\n\t\t\t\t\t\t\t\t\tdisplayArticleList.remove(0);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// displayArticleList.removeAll(displayArticleList.subList(0,\n\t\t\t\t\t\t\t\t// lastDisplayedItemIndex-1));\n\t\t\t\t\t\t\t\tdisplayRemovingStarted = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tisAnyProductDisplaying = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpDHandler.postDelayed(pDWaitRunnable, 3);\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tproductDisplayThread = new Thread(pDWaitRunnable);\n\t\tproductDisplayThread.start();\n\n\t\t// For adding basket\n\t\tif (bThread == null) {\n\t\t\tbRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (isBasketAddingReady && basketArticleList.size() > 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tisBasketAddingReady = false;\n\t\t\t\t\t\t\taddBasket(basketArticleList.get(0));\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tisBasketAddingReady = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbHandler.postDelayed(bRunnable, 4);\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tbThread = new Thread(bRunnable);\n\t\tbThread.start();\n\t}", "@Override\n\t\tprotected Boolean doInBackground() throws Exception {\n\t\t\tMove lastMove = board.getLastMove();\n\t\t\tif (lastMove != null) //If client plays first, must not send him move\n\t\t\t{\n\t\t\t\tsocketHelper.sendMove(lastMove);\n\t\t\t}\n\t\t\t//check if game is over now\n\t\t\tif (board.getStatus() != BoardStatus.INPROGRESS)\n\t\t\t\treturn null;\n\t\t\t//Receive Client Move\n\t\t\tfinal Move nextMove = socketHelper.getMove();\n\t\t\tif (nextMove == null) {\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override public void run() {\n\t \tengine.onMoveReadyCalculated(null, true);\n\t }\n\t });\n\t\t\t\t//engine.onMoveReadyCalculated(null, true);\n\t\t\t} else {\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override public void run() {\n\t \tengine.onMoveReadyCalculated(nextMove, nextMove.isPassMove());\n\t }\n\t });\n\t\t\t\t//engine.onMoveReadyCalculated(nextMove, nextMove.isPassMove());\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t\tsuper.onPreExecute();\n\n\t\t\t// Set txt naar Connecting en roept de volgende task toe.\n\t\t\tToast.makeText(AsyncTaskPull.this,\n\t\t\t\t\t\"Invoke onPreExecute()\", Toast.LENGTH_SHORT).show();\n\n\t\t\ttxt.setText(\"Connecting...\");\n\t\t}", "@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}", "public void createHandlerAndRunnable(){\n handler = new Handler();\n runnable = new Runnable(){\n @Override\n public void run() {\n makegoaway();\n }\n };\n handler.postDelayed(runnable, SPLASH_DISPLAY_LENGHT);\n }", "@Override\n\tprotected IOIOLooper createIOIOLooper() {\n\t\treturn new looper();\n\t}", "@Override\n protected void onPostExecute(Boolean aBoolean) {\n Log.i(\"koala\",\"prepare to upload local picture == \" + aBoolean);\n if(aBoolean){\n new UploadAsyncTask().execute();\n }\n }", "public boolean isPrepared() {\n return prepared;\n }", "@UnsupportedAppUsage\n public InputFilter(Looper looper) {\n mH = new H(looper);\n }", "private synchronized WorkerThread getThread() {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i).available()) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(false);\n\t\t\t\treturn this.threadPool.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private boolean readyPlayer() {\n switch (this.state) {\n case MEDIA_NONE:\n if (this.player == null) {\n //TODO: Agregar buffer (this, audiobuffer, decoderbuffer).\n this.player = new MultiPlayer(this);\n this.setState(STATE.MEDIA_STARTING);\n return true;\n }\n case MEDIA_LOADING:\n //cordova js is not aware of MEDIA_LOADING, so we send MEDIA_STARTING instead\n LOG.d(LOG_TAG, \"StreamPlayer Loading: startPlaying() called during media preparation: \" + STATE.MEDIA_STARTING.ordinal());\n return false;\n case MEDIA_STARTING:\n case MEDIA_RUNNING:\n case MEDIA_PAUSED:\n case MEDIA_STOPPED:\n return true;\n default:\n LOG.d(LOG_TAG, \"StreamPlayer Error: startPlaying() called during invalid state: \" + this.state);\n sendErrorStatus(MEDIA_ERR_ABORTED);\n }\n return false;\n }", "public Handler waitAndGetHandler() {\n waitUntilStarted();\n return getHandler();\n }", "@Override\n public void run() {\n try {\n preparePlacedBoard();\n } catch (AllShipsPlacedSuccesfully ex) {\n placedBoard.setAsTargetBoard();\n }\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n protected void onPreExecute() {\n //progress = ProgressDialog.show(ledControl.this, \"Connecting...\", \"Please wait!!!\"); //show a progress dialog\n }", "@Override\n public Runnable poll() {\n return LIFO ? super.pollLast() : super.poll();\n }", "@Override\n public void run() {\n\n // execute query and get result\n try {\n // create query\n PreparedStatement preparedStatement = connectionMSSQL.prepareStatement(\"INSERT INTO dbo.androidTest(dateTime, description, picture, miniature, userName) VALUES (?, ?, ?, ?, ?)\");\n preparedStatement.setString(1, dateTime);\n preparedStatement.setString(2, description);\n preparedStatement.setBytes(3, bArray);\n preparedStatement.setBytes(4, bArrayResized);\n preparedStatement.setString(5, userName);\n\n resultInt = preparedStatement.executeUpdate(); // result is OK if 1\n //boolean resultInt = preparedStatement.execute(); // result is OK if true - don't work\n preparedStatement.close(); // close\n } catch (SQLException e) {\n error = e.toString();\n Log.d(TAG, \"onCreate: SQLException: \" + error);\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() { //in UI thread\n\n if (resultInt == 0) { // resultInt = 0 - ERROR\n showAlertDialog(\"Nie wysłano wiadomości \\n\\nError: \" + error);\n\n // change color of background for time\n changeBackgroudColorForTimeInSec(1);\n\n } else { // resultInt = 1 - SUCCES\n Toast.makeText(ActivityScreans.this, \"Wiadomość wysłana.\", Toast.LENGTH_SHORT).show();\n\n // clear views\n editTextDescription.setText(\"\");\n imageViewOfPhotoFromCamera.setImageResource(R.drawable.question_mark);\n imageBitmap = null;\n }\n\n // hide progress bar and show button Sent\n buttonSendPhotoToMSSQL.setVisibility(View.VISIBLE);\n progressBarInDefectWait.setVisibility(View.GONE);\n\n }\n });\n }", "@Override\nprotected void onPreExecute() {\n\tsuper.onPreExecute();\n\tisDealing=true;\n}", "public Object call() {\n if (_needWarmup) {\n warmup(); \n _needWarmup = false;\n }\n else {\n run();\n _needWarmup = true;\n }\n return null;\n }", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n boolean retry = true;\n\n while(retry) {\n try {\n thread.setRunning(false);\n } catch(Exception e) {\n e.printStackTrace();\n }\n retry = false;\n }\n }", "@Override\n\tprotected void onPreExecute() {\t\t\n\t\t// setup dialog\n\t\tif (dialog!=null){\n\t\t\tdialog.setProgress(0);\n\t\t\tdialog.setMessage(\"Initialized\");\n\t\t}\n\t\t\n\t\tif (callback!=null){\n\t\t\tcallback.onTaskUpdate(null, 0);\n\t\t}\n\t}", "@Override\n protected void onPause() {\n handler.removeCallbacks(runnable); //stop handler when activity not visible\n super.onPause();\n }", "private void considerQueue(){\r\n\t\tif (queuedDialog != dialogToDisplay){\r\n\t\t\t// check to see if is skippable and if is finished\r\n\t\t\tif (thisDialog.get(dialogToDisplay).isSkippable()){\r\n\t\t\t// if isSkippable(), then it doesn't matter whether its done yet or not - we go on\r\n\t\t\t\tthisDialog.get(dialogToDisplay).switchBoxState();\r\n\t\t\t}else {\r\n\t\t\t\t// if its not skippable, check to see if its done yet.\r\n\t\t\t\tif (thisDialog.get(dialogToDisplay).isFinished()){\r\n\t\t\t\t\t// if so, go on\r\n\t\t\t\t\tthisDialog.get(dialogToDisplay).switchBoxState();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void mo10681a() {\n if (MultiPhotoFrameMainActivity.this._handler != null) {\n MultiPhotoFrameMainActivity.this._handler.post(new Runnable() {\n public void run() {\n C2331d.m10114a((Activity) MultiPhotoFrameMainActivity.this, C2328a.WAIT_PROCESSING, (Bundle) null);\n }\n });\n }\n }", "protected PreparedStatement prepareStmt() throws SQLException {\n if (stmt == null) {\n buildSQL();\n }\n\n return stmt;\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.handler_test);\r\n\t\tStartHandler = (Button) findViewById(R.id.StartHandler);\r\n\t\tEndHandler = (Button) findViewById(R.id.EndHandler);\r\n\t\tStartHandler.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\thandler.post(updateThread);\r\n\t\t\t}\r\n\t\t});\r\n\t\tEndHandler.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\thandler.removeCallbacks(updateThread);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private ImageDownloadManager() {\n\n /*\n * Creates a work queue for the pool of Thread objects used for downloading, using a linked\n * list queue that blocks when the queue is empty.\n */\n downloadWorkQueue = new LinkedBlockingQueue<Runnable>();\n\n /*\n * Creates a work queue for the set of of task objects that control downloading\n * using a linked list queue that blocks when the queue is empty.\n */\n imageDownloadTaskWorkQueue = new LinkedBlockingQueue<ImageDownloadTask>();\n\n /*\n * Creates a new pool of Thread objects for the download work queue\n */\n mDownloadThreadPool = new ThreadPoolExecutor(CORE_POOL_SIZE, MAXIMUM_POOL_SIZE,\n KEEP_ALIVE_TIME, KEEP_ALIVE_TIME_UNIT, downloadWorkQueue);\n\n\n // Anonymous object used to retrieve messags froma worker thread and pass\n // them to the UI thread\n mHandler = new Handler(Looper.getMainLooper()) {\n\n @Override\n public void handleMessage(Message inputMessage) {\n\n ImageDownloadTask imageDownloadTask = (ImageDownloadTask) inputMessage.obj;\n\n switch (inputMessage.what) {\n case DOWNLOAD_STARTED:\n break;\n\n case DOWNLOAD_COMPLETE:\n notifyListeners(imageDownloadTask);\n returnTaskToFreePool(imageDownloadTask);\n break;\n case DOWNLOAD_FAILED:\n returnTaskToFreePool(imageDownloadTask);\n break;\n default:\n super.handleMessage(inputMessage);\n }\n }\n };\n }", "@Override\r\n protected void onPreExecute() {\r\n Log.e(LOG_TAG, \"When the onPreExecute is called?\");\r\n // Show loading indicator if the Internet Connection is delayed or slow.\r\n loadingIndicator.setVisibility(View.VISIBLE);\r\n }", "@Override\n protected void onPreExecute(){\n progress = ProgressDialog.show(ledControl.this, \"Connecting...\", \"Please wait!!!\");\n }", "public void run() {\n\t\t\tfinal Bitmap mBitmap = getImage();\n\n\t\t\tPlayUpActivity.handler.post(new Runnable() {\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (!isBitmapCacheTask) {\n\n\t\t\t\t\t\t\tif (mBaseAdapters != null\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.containsKey(url)\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.get(url) != null\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.get(url).size() > 0) {\n\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\t\t\t\t\t\t\t\t\tSet<BaseAdapter> baseAdapters = mBaseAdapters\n\t\t\t\t\t\t\t\t\t\t\t.get(url);\n\n\t\t\t\t\t\t\t\t\tfor (BaseAdapter ba : baseAdapters) {\n\n\t\t\t\t\t\t\t\t\t\tba.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (mBaseAdapters != null) {\n\t\t\t\t\t\t\t\t\t\tmBaseAdapters.get(url).clear();\n\t\t\t\t\t\t\t\t\t\tmBaseAdapters.remove(url);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (notify) {\n\t\t\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\t\t\tmsg.obj = \"updateImage\";\n\t\t\t\t\t\t\t\tPlayupLiveApplication\n\t\t\t\t\t\t\t\t\t\t.callUpdateOnFragmentsNotTopBar(msg);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (imageViews.get(url) != null\n\t\t\t\t\t\t\t\t\t&& imageViews.containsKey(url)\n\t\t\t\t\t\t\t\t\t&& imageViews.get(url) != null\n\t\t\t\t\t\t\t\t\t&& imageViews.get(url).size() > 0) {\n\n\t\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\t\timgView = null;\n\n\t\t\t\t\t\t\t\t\tList<ImageView> iView = imageViews.get(url);\n\n\t\t\t\t\t\t\t\t\tfor (ImageView img : iView) {\n\t\t\t\t\t\t\t\t\t\timgView = img;\n\n\t\t\t\t\t\t\t\t\t\tif (imgView.getVisibility() == View.VISIBLE) {\n\t\t\t\t\t\t\t\t\t\t\timgView.setImageBitmap(mBitmap);\n\t\t\t\t\t\t\t\t\t\t\t// if (bgColor != null &&\n\t\t\t\t\t\t\t\t\t\t\t// bgColor.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t// Drawable d =\n\t\t\t\t\t\t\t\t\t\t\t// imgView.getDrawable();\n\t\t\t\t\t\t\t\t\t\t\t// if (d != null) {\n\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t// d.setAlpha(Integer.parseInt(\"88\",\n\t\t\t\t\t\t\t\t\t\t\t// 16));\n\t\t\t\t\t\t\t\t\t\t\t// d.setColorFilter(Color.parseColor(\"#\"+\n\t\t\t\t\t\t\t\t\t\t\t// bgColor),Mode.DST_OVER);\n\t\t\t\t\t\t\t\t\t\t\t// imgView.setBackgroundDrawable(d);\n\t\t\t\t\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\t\t\t\t\t// }\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\timgView = null;\n\t\t\t\t\t\t\t\t\tif (linearLayout != null) {\n\n\t\t\t\t\t\t\t\t\t\tif (imageDownloader != null) {\n\t\t\t\t\t\t\t\t\t\t\timageDownloader\n\t\t\t\t\t\t\t\t\t\t\t\t\t.nullViewDrawablesRecursive(linearLayout);\n\t\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (imageDownloaderSports != null) {\n\t\t\t\t\t\t\t\t\t\t\timageDownloaderSports\n\t\t\t\t\t\t\t\t\t\t\t\t\t.nullViewDrawablesRecursive(linearLayout);\n\t\t\t\t\t\t\t\t\t\t\timageDownloaderSports = null;\n\t\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t//Logs.show(e);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\n\t\t\t\t\t\t\t\t\tif (imageViews != null) {\n\t\t\t\t\t\t\t\t\t\timageViews.get(url).clear();\n\t\t\t\t\t\t\t\t\t\timageViews.remove(url);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (views != null && views.get(url) != null\n\t\t\t\t\t\t\t\t&& views.get(url).size() > 0) {\n\n\t\t\t\t\t\t\tList<View> layoutViews = views.get(url);\n\n\t\t\t\t\t\t\tfor (View lin : layoutViews) {\n\n\t\t\t\t\t\t\t\tif (lin.getVisibility() == View.VISIBLE) {\n\n\t\t\t\t\t\t\t\t\tlinearLayout = lin;\n\n\t\t\t\t\t\t\t\t\tif (linearLayout instanceof LinearLayout) {\n\n\t\t\t\t\t\t\t\t\t\tdeSelectSports(linearLayout);\n\n\t\t\t\t\t\t\t\t\t\tImageView sportsImage = (ImageView) linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t.findViewById(R.id.mysportsItemImage);\n\n\t\t\t\t\t\t\t\t\t\tsportsImage.setTag(\"1\");\n\t\t\t\t\t\t\t\t\t\tsportsImage.setImageBitmap(mBitmap);\n\n\t\t\t\t\t\t\t\t\t\tsportsImage = null;\n\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t\t} else if (linearLayout instanceof RelativeLayout) {\n\n\t\t\t\t\t\t\t\t\t\tif (linearLayout.getVisibility() == View.VISIBLE) {\n\n\t\t\t\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\n\t\t\t\t\t\t\t\t\t\t\t\tImageView imageWithSummaryImage = (ImageView) linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.findViewById(R.id.ImageWithSummaryImage);\n\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setImageBitmap(mBitmap);\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no) != null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.trim()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.length() > 0) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tString bgColor = linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString();\n\n\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tDrawable d = new BitmapDrawable(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmBitmap);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (d != null) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (imageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag() != null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& imageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"show_dark\")) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td.setColorFilter(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColor.parseColor(\"#\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ bgColor),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMode.DST_OVER);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// d.setAlpha(20);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Log.e(\"123\",\"inside after downloades bgcolor != null \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// + ((ImageView)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// linearLayout.findViewById(R.id.ImageWithSummaryImage)).getVisibility());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// d.setColorFilter(Color.parseColor(\"#77\"+\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// bgColor),Mode.DST_OVER);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setImageDrawable(d);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage = null;\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (mBitmap != null) {\n\t\t\t\t\t\t\t\tif (views != null) {\n\t\t\t\t\t\t\t\t\tviews.get(url).clear();\n\t\t\t\t\t\t\t\t\tviews.remove(url);\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (requestImageUrls != null\n\t\t\t\t\t\t\t\t&& requestImageUrls.containsKey(url)) {\n\t\t\t\t\t\t\trequestImageUrls.remove(url);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tkey = null;\n\t\t\t\t\t\turl = null;\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t//Logs.show(e);\n\t\t\t\t\t} finally {\n\t\t\t\t\t\t// mBitmap.recycle();\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t}", "@Override\n protected void onPreExecute()\n {\n progress = ProgressDialog.show(ControlActivity.this, \"Connecting...\", \"Please wait!!!\"); //show a progress dialog\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tLooper.prepare();\r\n\t\t\tbluetoothChat = new BluetoothChat(context);\r\n\t\t\tif (!BluetoothAdapter.checkBluetoothAddress(addr)) { // 检查蓝牙地址是否有效\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tBluetoothDevice device = bluetoothAdapter.getRemoteDevice(addr);\r\n\t\t\twhile (true) {\r\n\t\t\t\tif (count == LONG_TIME_CONNECTED) {\r\n\t\t\t\t\tLooper.loop();\r\n\t\t\t\t}\r\n\t\t\t\tif (device.getBondState() != BluetoothDevice.BOND_BONDED) {\r\n\t\t\t\t\t// 如果未匹配,则继续执行\r\n\t\t\t\t\t// handler.postDelayed(runnable, 5000);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tClsUtils.setPin(device.getClass(), device, pin); // 手机和蓝牙采集器配对\r\n\t\t\t\t\t\tClsUtils.createBond(device.getClass(), device);\r\n\t\t\t\t\t\tremoteDevice = device; // 配对完毕就把这个设备对象传给全局的remoteDevice\r\n\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// 赋值至全局\r\n\t\t\t\t\tremoteDevice = device;\r\n\t\t\t\t\t// 移除线程后立即连接\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbluetoothChat.goConnect(device);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tLooper.loop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public Void doInBackground(Void... voidArr) {\n NetworkDiagnosticsActivity networkDiagnosticsActivity;\n while (!isCancelled() && (networkDiagnosticsActivity = (NetworkDiagnosticsActivity) this.activityRef.get()) != null) {\n Long valueOf = Long.valueOf(networkDiagnosticsActivity.mCurrentSpeed.get());\n networkDiagnosticsActivity.refreshNetworkSpeed();\n if (networkDiagnosticsActivity.mLastShowViewId == R.id.network_diagnostics_network_speed_for_apps && networkDiagnosticsActivity.mIsShowing.get()) {\n networkDiagnosticsActivity.mNetworkSpeedForAppsFragment.refresh();\n }\n if (valueOf.longValue() != networkDiagnosticsActivity.mCurrentSpeed.get()) {\n networkDiagnosticsActivity.mHandler.sendEmptyMessage(1);\n }\n try {\n Thread.sleep(NetworkDiagnosticsActivity.NETWORK_SPEED_REFRESH_INTERVAL);\n } catch (InterruptedException unused) {\n }\n }\n return null;\n return null;\n }" ]
[ "0.6091212", "0.54046917", "0.5295328", "0.482055", "0.46392667", "0.45986018", "0.45446578", "0.45023957", "0.44916025", "0.44872564", "0.4429277", "0.440044", "0.43281916", "0.43235213", "0.42976722", "0.4296292", "0.4271448", "0.4235583", "0.42052585", "0.41356108", "0.41140345", "0.41120216", "0.4105131", "0.4099732", "0.40810263", "0.4042842", "0.4035945", "0.4025836", "0.40237623", "0.40226418", "0.40196708", "0.4012254", "0.40083262", "0.40080154", "0.4000469", "0.39714974", "0.39565003", "0.39546484", "0.39528605", "0.39497942", "0.39448214", "0.39376938", "0.39210632", "0.3913641", "0.39041367", "0.39013454", "0.3893106", "0.388644", "0.3874912", "0.38671762", "0.3862041", "0.38456064", "0.38365716", "0.38308474", "0.38258642", "0.38239285", "0.38220674", "0.3819536", "0.38193405", "0.3813347", "0.38017908", "0.37928933", "0.37834367", "0.37832713", "0.37821618", "0.37756637", "0.37737635", "0.37689134", "0.37638444", "0.37494156", "0.37493828", "0.37477466", "0.3742202", "0.37418717", "0.37369084", "0.37364206", "0.37223315", "0.3716416", "0.37144583", "0.37098137", "0.37096584", "0.37071696", "0.3700213", "0.37001088", "0.3692541", "0.36910936", "0.36822715", "0.3682139", "0.36782315", "0.3677848", "0.3675295", "0.3671664", "0.3669002", "0.36658967", "0.3665526", "0.36606562", "0.36574155", "0.3655761", "0.36523467", "0.36521307" ]
0.7618987
0
TODO Autogenerated method stub
@Override public int compare(String o1, String o2) { if ((Double.parseDouble(o1)-Double.parseDouble(o2))>0) { return 1; } else if ((Double.parseDouble(o1)-Double.parseDouble(o2))<0) { return -1; } else { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) { if ((o1.getValue()-o2.getValue())>0) { return 1; } else if ((o1.getValue()-o2.getValue())<0) { return -1; } else { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
int ss = 0;
public static void classfy(ArrayList<ArrayList<String>> dataset ,ArrayList<ArrayList<String>> testData,int k) { int index = 0; int count = 0; for (ArrayList<String> testItem : testData) { String str=getFeatureLabel(dataset, testItem, k); System.out.println(str); if (testItem.get((testData.get(0).size()-1)).equals(str)) { System.out.println("testItem"+index+"分类正确"); count ++; } else { System.out.println("testItem"+index+"分类错误"); } index ++; } System.out.println("正确率为"+count*1.0/testData.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSs();", "public int getSs() {\n return ss_;\n }", "public int getSs() {\n return ss_;\n }", "public int getSsNum() {\n return ssNum;\n }", "private void ss(){\n }", "private int getSSN (){\n return ssn;\n }", "int getCurrentXOfSS();", "@Override\r\n\tpublic int getSS() {\n\t\treturn SS;\r\n\t}", "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "public float getFirstSSN(){\n\t\t return FirstSSN;\n\t\t }", "public int storrelse();", "studentCounter(){ \n\t\tnumStudentInRoom = 0 ;\n\t}", "public Integer getSt()\n {\n return st; \n }", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "private void storeSp(int s) {\n UNSAFE.putOrderedInt(this, spOffset, s);\n }", "public int s() {\r\n/* 247 */ return this.k;\r\n/* */ }", "int go(String s) {\n\t\treturn 0;\n\t}", "int side() {\n return s;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "public int Start(int sz){\n\tint aux01 ;\n\taux01 = this.Init(sz);\n\taux01 = this.Print();\n\tSystem.out.println(99999);\n\taux01 = this.Sort();\n\taux01 = this.Print();\n\treturn 0 ;\n }", "private int getMY() {\n\t\treturn 0;\r\n\t}", "public Integer getScdx() {\n return scdx;\n }", "public int getSno() {\n return sno;\n }", "public void calcS(){\n if (n.subtract(one).mod(new BigNumber(\"2\")).compareTo(zero)!=0){\n s=zero;\n return;\n }\n while(n.subtract(one).mod(pow(two,s)).compareTo(zero)!=0){\n //System.out.println(s);\n s=s.add(one);\n }\n s=s.subtract(one);\n }", "public static int nextInt() {\n\treturn 0;\r\n}", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public Stat(int s) {\n\t\tdata = new SuperArray(s);\n\t\tfor (int i = 0; i < s; i++) {\n\t\t\tdata.add(0);\n\t\t}\n }" ]
[ "0.7174108", "0.6825246", "0.66440254", "0.6382592", "0.6288003", "0.6268869", "0.6230692", "0.61488944", "0.5859647", "0.582807", "0.5788418", "0.5744879", "0.57444406", "0.57067853", "0.57054806", "0.5686333", "0.556186", "0.554399", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.54812974", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5481049", "0.5461686", "0.54515725", "0.5436288", "0.5419302", "0.5417231", "0.5413729", "0.5373447" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { try { int [] a=new int[2]; a[0]=10; a[1]=20; //a[2]=30; int i=1/0; } catch(Exception e) { System.out.println("alert: sorry something went wrong"); System.out.println(e.getLocalizedMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Call to return the list of payers and their point balance
@RequestMapping("/getbalancepoints") public List<PayerPoints> getBalancePoints() { return getPayersPoints(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PayerPoints> getPointsBalance(List<Payer> listPayer) {\n\t\tList<PayerPoints> listBalance = new ArrayList<>();\n\t\tfor (Payer i : listPayer) {\n\t\t\tPayerPoints payerpoints = new PayerPoints(i.getPayerName(), i.getPoints());\n\t\t\tlistBalance.add(payerpoints);\n\t\t}\n\t\treturn listBalance;\n\t}", "private void listBalances() {\n\t\t\r\n\t}", "public List<Payer> getPayers() {\n\t\tList<Payer> listPayer = new ArrayList<Payer>();\n\t\tAddTransaction transaction = new AddTransaction();\n\t\tPayer payer1 = new Payer();\n\t\tpayer1.setPayerName(\"DANNON\");\n\t\tlistPayer.add(payer1);\n\t\tPayer payer2 = new Payer();\n\t\tpayer2.setPayerName(\"UNILEVER\");\n\t\tlistPayer.add(payer2);\n\t\tPayer payer3 = new Payer();\n\t\tpayer3.setPayerName(\"MILLER COORS\");\n\t\tlistPayer.add(payer3);\n\t\ttransaction.addTransaction(\"DANNON\", 1000, LocalDateTime.parse(\"2020-11-02T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"UNILEVER\", 200, LocalDateTime.parse(\"2020-10-31T11:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", -200, LocalDateTime.parse(\"2020-10-31T15:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"MILLER COORS\", 10000, LocalDateTime.parse(\"2020-11-01T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", 300, LocalDateTime.parse(\"2020-10-31T10:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\treturn listPayer;\n\t}", "java.util.List<cosmos.base.v1beta1.Coin> \n getTotalDepositList();", "public void showBalance(){\n for(Player player: players){\n System.out.println(player + \"'s balance: \" + player.getWallet());\n }\n System.out.println();\n dealer.showProfit();\n System.out.println();\n }", "@RequestMapping(value = \"/balance\", method = RequestMethod.GET)\r\n public List<BigDecimal> getBalances(Principal principal) {\r\n try {\r\n return accountDAO.getCurrentBalance(principal.getName());\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n return null;\r\n }", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "double getBalance();", "double getBalance();", "public List<Result> calculateResult()\n\t{\n\t\tpersons=calculatePersonWiseContribution(transactions,persons);\t\t\t\n\t\t\n\t\t//calculate total amount spend.\n\t\tfloat totalAmt=calculateTotalAmt(persons);\n\t\t\n\t\t//calculate total persons.\n\t\tint noOfPersons =calculateNoOfPersons(persons);\n\t\t\n\t\t//calculate amount to be contributed by each person (avg amt).\n\t\tfloat avgAmt=totalAmt/noOfPersons;\n\t\t\n\t\t//remove person who calculated = avg amt , since it is idle person hence doesnt participated in transfer money operation\n\t\tList <Person> activePersons=removePerson(persons,avgAmt);\n\t\t\n\t\t//Seperate list of persons who contributed > avg amt (credit list) and <avg amt (debit list).\t\t\n\t\tMap <String, List<Person>> creditDebitList=seperateCreditDebitPersonList(activePersons,avgAmt);\n\t\tList<Person> creditList=creditDebitList.get(\"CREDIT\");\n\t\tList<Person> debitList=creditDebitList.get(\"DEBIT\");\n\t\t\t\t\n\t\t//transfer money from debit list to credit list of persons and store the result.\n\t\t//return the result.\n\t\treturn calculate(creditList,debitList);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\t\n\t\n\t}", "java.util.List<com.google.ads.googleads.v6.common.CpvBidSimulationPoint> \n getPointsList();", "public BaseJson<BigDecimal> wallet_balance() throws Exception {\n String s = main(\"wallet_balance\",\"[]\");\n return JsonHelper.jsonStr2Obj(s, BaseJson.class);\n }", "List<Pair<Member, BigDecimal>> getPaymentsPerMember(StatisticalDTO dto) throws DaoException;", "public List<Double> computePayments(IPaymentRule pr) throws Exception\r\n\t{\t\r\n\t\tIPaymentRule paymentRule = pr;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif( _allocation.getNumberOfAllocatedAuctioneers() > 0 )\r\n\t\t\t\t_payments = paymentRule.computePayments();\r\n\t\t\telse\r\n\t\t\t\t_payments = new LinkedList<Double>();\r\n\t\t}\r\n\t\tcatch(PaymentException e)\r\n\t\t{\r\n\t\t\t_payments = new LinkedList<Double>();\r\n\t\t}\r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn _payments;\r\n\t}", "public List<TransactionOutput> calculateAllSpendCandidates() {\n return calculateAllSpendCandidates(true, true);\n }", "public Money getTotalBalance();", "public com.redknee.util.crmapi.soap.subscriptions.xsd._2009._04.SubscriptionBundleBalance[] getBalances(){\n return localBalances;\n }", "public double getBal() {\n\t\t return balance;\r\n\t }", "Price[] getTradePrices();", "public double getBalance()\n \n {\n \n return balance;\n \n }", "public List<BigDecimal> getEarningsList(){\n return earningsList;\n }", "public List<DietaBalanceada> consultar_dietaBalanceada();", "public List<PointBalance> spendOverall(int points) {\n\t\tCollections.sort(transactionList);\n\t\tevenOut();\n\t\tpointsToSpend = points;\n\t\tList<PointBalance> listOfChanges = new ArrayList<>();\n\t\tfor (PointTransaction action: evenedOutList) {\n\t\t\tif (pointsToSpend <= 0) break;\n\t\t\tif (action.getPoints() > 0) {\n\t\t\t\tlistOfChanges.add(spendUntilZero(action));\n\t\t\t}\n\t\t}\n\t\treturn listOfChanges;\n\t}", "public BigDecimal getPriceList();", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getPriceList();", "public Collection<Payment> getPayments(CustomerItem customerItem);", "public String getBalances() {\n\n\t\treturn getJson(API_VERSION, ACCOUNT, \"getbalances\");\n\t}", "public BigDecimal getTaxAmtPriceList();", "java.util.List<? extends cosmos.base.v1beta1.CoinOrBuilder> \n getTotalDepositOrBuilderList();", "public double getTotalPayments(){return this.total;}", "void payBills();", "public List<Payment> getAllPayments() {\n\t\treturn null;\r\n\t}", "public double getBalance(){\n return balance.getBalance();\n }", "@NotNull\n List<Balance> balances(@NotNull List<String> addresses) throws EtherScanException;", "public double getBalance()\n {\n return balance;\n }", "public void getBalance() {\n\t\tSystem.out.println(\"Balance in Savings account is\" + balance);\n\t\t//return balance;\n\t}", "public BigDecimal getPayAmt();", "@WebMethod public List<BetMade> getBetsMade(Account ac);", "cosmos.base.v1beta1.CoinOuterClass.Coin getFunds(int index);", "cosmos.base.v1beta1.CoinOuterClass.Coin getFunds(int index);", "public List getFiBcoinPayconfigs(FiBcoinPayconfig fiBcoinPayconfig);", "private double getBalance() { return balance; }", "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "List<SimpleTransferVO> paymentVOs(Account account, Period period) throws DaoException;", "public int getMerchantPoints() {\n\n return this.merchantPoints;\n }", "public double getBalance(){\n return balance;\n }", "public BigDecimal getPriceListEntered();", "public double getBalance()\r\n\t{\r\n\t\treturn balance;\t\t\r\n\t}", "public double getBalance(){\n return balance;\r\n }", "java.util.List<frame.socket.common.proto.Login.ActAmount> \n getActAmountList();", "public double getBalance(){\r\n\t\treturn balance;\r\n\t}", "List<ServicePaymentsStatistics> getServicePaymentStats(Date begin, Date end);", "@Override\n public double getBalanceFromItemDTOList(List<ItemDTO> itemList) {\n final List<FunctionalItem> functionalItemList =\n itemList.stream().map(item -> FunctionalItem.of(item )).collect(Collectors.toList());\n\n final Optional<FunctionalItem> totalFunction =\n functionalItemList.stream().reduce((t, u) -> u.composeFunctionalItem(t));\n\n final Double totalAmountFromClient = totalFunction.orElse((i) -> i).apply(0d);\n //TODO take Currency from transaction DTO, or state that all the transactions are made in same currency\n return convertorService.getAmountInEuro( totalAmountFromClient, itemList.get(0).getCurrency());\n }", "public double getBalance() {\n return balance;\n }", "public BigDecimal getBSCA_ProfitPriceList();", "@RequestMapping(value = \"/spendpoints\", method = RequestMethod.POST)\n\tpublic List<PayerPoints> spendPointsPerOldest(@ModelAttribute(\"spendPointsValue\") int points) {\n\t\tList<PayerPoints> listPayerPoints = new ArrayList<>();\n\t\ttry {\n\t\t\tList<Payer> listPayer = list;\n\t\t\tSpendPoints spend = new SpendPoints();\n\t\t\tlistPayerPoints = spend.spendPoints(points, listPayer);\n\t\t\tif (listPayerPoints.isEmpty())\n\t\t\t\tLOGGER.info(\"Enter a lower value, the payers don't have enough points\");\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.info(e.getMessage());\n\t\t}\n\t\treturn listPayerPoints;\n\t}", "public List<BrainTreePaymentInfo> getPaymentMethods(final SessionContext ctx)\n\t{\n\t\tList<BrainTreePaymentInfo> coll = (List<BrainTreePaymentInfo>)getProperty( ctx, PAYMENTMETHODS);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public Double getBalance() {\r\n return balance;\r\n }", "public static MPayment[] getOfBPartner(Properties ctx, int C_BPartner_ID, String trxName) {\n ArrayList<MPayment> list = new ArrayList<MPayment>();\n String sql = \"SELECT * FROM C_Payment WHERE C_BPartner_ID=?\";\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, trxName);\n pstmt.setInt(1, C_BPartner_ID);\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n list.add(new MPayment(ctx, rs, trxName));\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n s_log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n\n //\n MPayment[] retValue = new MPayment[list.size()];\n list.toArray(retValue);\n return retValue;\n }", "private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}", "public double getBalance(){\n return this.balance;\r\n }", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }", "public double getBalance(){\n return balance;\n }", "public double getBalance(){\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "double getPaidAmount();", "ResponseEntity<List<TieredRates>> getTieredRates();", "@Override\n public long getTotalBalances() {\n return accounts.values().stream().map(Account::getBalance).mapToLong(Long::longValue).sum();\n }", "public BigDecimal getBSCA_ProfitPriceListEntered();", "public BigDecimal getBalance() {\n return balance;\n }", "public BigDecimal getBalance() {\n return balance;\n }", "public int[] getTsumoPayment(boolean isDealer) {\r\n int[] output = new int[2];\r\n if (isDealer) {\r\n output[0] = basicPoints * 2;\r\n output[1] = 0;\r\n } else {\r\n output[0] = basicPoints * 1;\r\n output[1] = basicPoints * 2;\r\n }\r\n output[0] = (int)(100*Math.ceil(output[0]/100.0));\r\n output[1] = (int)(100*Math.ceil(output[1]/100.0));\r\n \r\n return output;\r\n }", "public double getBalance(){\n\t\treturn balance;\n\t}", "public void payAllEmployeers() {\n\t\t\n\t\tSystem.out.println(\"PAYING ALL THE EMPLOYEES:\\n\");\n\t\t\n\t\tfor(AbsStaffMember staffMember: repository.getAllMembers())\n\t\t{\n\t\t\tstaffMember.pay();\n\t\t\tSystem.out.println(\"\\t- \" + staffMember.getName() + \" has been paid a total of \" + staffMember.getTotalPaid());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\");\n\t}", "public List<Trade> getTrades();", "@Override\n public List<Employee> getEmployeePositiveBalance() {\n return employeeRepository\n .readEmployee()\n .stream()\n .filter(employee -> employee.getBalance() > 0)\n .collect(Collectors.toList())\n ;\n }", "cosmos.base.v1beta1.Coin getTotalDeposit(int index);", "public double getSavingsBalance() {\n return savingsBalance;\n }", "@Override\n public long totalBalances() {\n long total = 0;\n for(Account account : accounts.values()){\n total += account.balance();\n }\n return total;\n }", "double getBalance() {\n\t\treturn balance;\n\t}", "public List<Balance> getAddBalanceList() {\r\n\t\tList<Balance> balanceList = new ArrayList<Balance>();\r\n\t\tif (selectedItem != null) {\r\n\t\t\tList<Book> bookList = new ArrayList<Book>();\r\n\t\t\tfor (BalanceData b : GlobalBalance.instance().list()) {\r\n\t\t\t\t// Flag no se ha encontrado\r\n\t\t\t\tboolean founded = false;\r\n\t\t\t\t// Recuperar la lista de books a las que pertenece el balance\r\n\t\t\t\tbookList = bookService.getBooksByIdBalance(b.getId());\r\n\t\t\t\tfor (Book book : bookList) {\r\n\t\t\t\t\t// Si el book seleccionado ya pertenece al balance\r\n\t\t\t\t\tif (selectedItem.getId().compareTo(book.getId()) == 0) {\r\n\t\t\t\t\t\t// Flag se ha encontrado\r\n\t\t\t\t\t\tfounded = true;\r\n\t\t\t\t\t\t// Detener el bucle\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Si el balance no ha sido agregado ya al book\r\n\t\t\t\tif (!founded) {\r\n\t\t\t\t\t// Agregarlo a la lista\r\n\t\t\t\t\tbalanceList.add(b.getEntity());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn balanceList;\r\n\t}", "public JingtumCurrency getPay() {\n\t\tif (this.taker_gets == null && order != null){\n\t\t\treturn order.getTaker_gets();\n\t\t}\n\t\treturn taker_gets;\n\t}", "public static void main(String[] args) {\n ArrayList<BankAccount> accounts = makeBankingSystem();\n \n Collections.sort(accounts, BankAccount.createComparatorByBalance(false));\n for (BankAccount c: accounts){\n System.out.println(c.getName(c)+\", \"+c.getBalance(c));\n \n }\n \n}", "public double getBalance() \n\t{\n\t\treturn balance;\n\t\t\n\t}", "private float[] calculateAllGrossPay()\n {\n int numberEmployees = employees.size();\n float[] allGrossPay = new float[numberEmployees];\n int position = 0;\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext())\n {\n myEmployee = emp.next();\n allGrossPay[position] = myEmployee.getHours() * myEmployee.getRate();\n position++;\n }\n return allGrossPay;\n }", "public double calculateNet(){\r\n double total = 0;\r\n for (Map.Entry<String, Account[]> list : allAccounts.entrySet()){\r\n Account[] accountList = list.getValue();\r\n String accountName = list.getKey();\r\n for (Account account : accountList){\r\n if (account == null){\r\n break;\r\n }\r\n if (accountName.equals(\"CreditCard\") || accountName.equals(\"LineOfCredit\")){\r\n total -= account.getCurrentBalance();\r\n } else{\r\n total += account.getCurrentBalance();\r\n }\r\n }\r\n }\r\n return Double.valueOf(twoDec.format(total));\r\n }", "private static void anotherMethod(List<? extends Account> accounts) {\n System.out.println(accounts.get(0).getBalance());\n }", "public lnrpc.Rpc.ListPaymentsResponse listPayments(lnrpc.Rpc.ListPaymentsRequest request) {\n return blockingUnaryCall(\n getChannel(), getListPaymentsMethod(), getCallOptions(), request);\n }", "public BigDecimal getPercentageProfitPList();", "private void returnDeposit(String paymentInfo) {\n }", "public float getBalance() {\n return balance;\n }", "public java.math.BigDecimal getBalance() {\n return balance;\n }", "@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}", "public double getBalance() {\r\n\t\t\r\n\t\treturn balance;\r\n\t\t\r\n\t}", "@Override\r\n\tpublic List<CoinsResponse> billsToCoinstRef(List<BillToExchange> lstBillToExchange) throws ExchangeMachineException {\n\t\t\r\n\t\tDouble dTotal = 0.0;\r\n\t\tList<CoinsResponse> lstCoinsResponse = new ArrayList<CoinsResponse>();\r\n\t\tString erroMessage = null;\r\n\t\t\r\n\t\tfor(BillToExchange billToExchange : lstBillToExchange) {\r\n\t\t\tdTotal = dTotal + (billToExchange.getBillQuantity() * billToExchange.getBillAmount().doubleValue());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\t//Iterate over coins denomination for calculation\r\n\t\t\tcoinExchangeWrapper.setTotal(new BigDecimal(dTotal).setScale(2, RoundingMode.FLOOR));\r\n\t\t\tfor(CoinsDTO coins : coinsDispenser.getCoinsDispenser() ) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"Coin id : \" + coins.getId() + \" Denomination : \" + coins.getCoinDenomination() + \" Quantity : \" + coins.getCoinQuantity());\r\n\t\t\t\t\r\n\t\t\t\tif(coins.getCoinQuantity() > 0) {\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinDenomination(coins.getCoinDenomination());\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinQuantity(coins.getCoinQuantity());\r\n\t\t\t\t\tcoinExchangeWrapper.setMaxCoinQuantity(coins.getCoinMaxQuantity());\r\n\t\t\t\t\tgetCoinsCalculation(coinExchangeWrapper, lstCoinsResponse);\r\n\t\t\t\t\tcoins.setCoinQuantity(coinExchangeWrapper.getCurrentCoinQuantity());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Total Remain for Calculation : \" + coinExchangeWrapper.getTotal());\r\n\t\t\t\t\r\n\t\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Amount still not completed, needs to raise error\r\n\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) != 0) {\r\n\t\t\t\t//Raise exception\r\n\t\t\t\terroMessage = \"Not Enough coins to complete exchange\";\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tif(erroMessage != null) {\r\n\t\t\t\tthrow getExchangeMachineException(erroMessage, e);\r\n\t\t\t}else {\r\n\t\t\t\tthrow getExchangeMachineException(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn lstCoinsResponse;\r\n\t}" ]
[ "0.76047045", "0.6698137", "0.6697749", "0.6528759", "0.6218181", "0.61049557", "0.6099468", "0.6099468", "0.60725516", "0.60462177", "0.60462177", "0.59973574", "0.59385145", "0.58927006", "0.58923644", "0.585933", "0.58156824", "0.577382", "0.5745256", "0.5733769", "0.57110536", "0.5703672", "0.56909156", "0.5690214", "0.5682488", "0.5677179", "0.5674009", "0.5660957", "0.5655857", "0.56505334", "0.56260335", "0.5611885", "0.56083864", "0.5584127", "0.55832845", "0.5581507", "0.55763865", "0.55752635", "0.5569682", "0.55677456", "0.5558662", "0.5558662", "0.555743", "0.554946", "0.5545333", "0.5545062", "0.5530001", "0.5528093", "0.5523574", "0.55088574", "0.54997534", "0.5498927", "0.54964846", "0.54895544", "0.54887843", "0.5486608", "0.5479462", "0.54786354", "0.54763544", "0.5475298", "0.5473071", "0.54729074", "0.5472858", "0.54692626", "0.5454328", "0.5448057", "0.5441214", "0.5441214", "0.5441214", "0.5441214", "0.5440039", "0.5422966", "0.5421146", "0.5412397", "0.5410553", "0.5410553", "0.54068", "0.5401122", "0.5401112", "0.53933036", "0.539079", "0.5388592", "0.5377279", "0.5373769", "0.5373332", "0.53616905", "0.53555226", "0.53539693", "0.5352078", "0.53486544", "0.53434414", "0.53420514", "0.5337049", "0.5336836", "0.5335312", "0.5320353", "0.5302873", "0.529752", "0.529716", "0.52913475" ]
0.718689
1
Call to add a transaction to an existing payer. If the payer doesn't have enough points, or don't exist, return null
@RequestMapping(value = "/addtransaction", method = RequestMethod.POST) public Transaction addTransaction(@ModelAttribute("payerName") String payerName, @ModelAttribute("transactionPoints") int points) { AddTransaction addNewtransaction = new AddTransaction(); Transaction transaction = null; try { transaction = addNewtransaction.addTransaction(payerName, points, LocalDateTime.now().format(formatter), list); if (transaction == null) LOGGER.info("Check if the payer exist and/or if the balance is lower than the points removed"); } catch (Exception e) { LOGGER.info(e.getMessage()); } return transaction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWallet(Wallet wallet);", "void addTransaction(Transaction transaction, long timestamp) throws TransactionNotInRangeException;", "Trade addTrade(String tradeId, Trade trade) throws OrderBookTradeException;", "void addTrade(Trade trade);", "private TransferPointRequest addTransferPointRequest(TransferPointRequest transferPointRequest) throws InspireNetzException {\n PointTransferRequest pointTransferRequest = new PointTransferRequest();\n\n //set merchant no\n pointTransferRequest.setPtrMerchantNo(transferPointRequest.getMerchantNo());\n\n //set from loyalty id\n pointTransferRequest.setPtrSource(transferPointRequest.getFromLoyaltyId());\n\n //set to loyalty id\n pointTransferRequest.setPtrDestination(transferPointRequest.getToLoyaltyId());\n\n //set qty\n pointTransferRequest.setPtrRewardQty(transferPointRequest.getRewardQty());\n\n //set source reward currency\n pointTransferRequest.setPtrSourceCurrency(transferPointRequest.getFromRewardCurrency());\n\n //set destination reward currency\n pointTransferRequest.setPtrDestCurrency(transferPointRequest.getToRewardCurrency());\n\n //set merchant no\n pointTransferRequest.setPtrMerchantNo(transferPointRequest.getMerchantNo());\n\n //set requestor customer no\n pointTransferRequest.setPtrSourceCusNo(transferPointRequest.getRequestorCustomerNo());\n\n //set approver customer no\n pointTransferRequest.setPtrApproverCusNo(transferPointRequest.getApproverCustomerNo());\n\n //save the request\n pointTransferRequest = pointTransferRequestService.savePointTransferRequest(pointTransferRequest);\n\n //set the ptrId\n transferPointRequest.setPtrId(pointTransferRequest.getPtrId());\n\n return transferPointRequest;\n\n }", "public void addTransaction(EtmPoint transaction) {\n double miliseconds = transaction.getTransactionTime();\n\n measurements++;\n total += miliseconds;\n max = max > miliseconds ? max : miliseconds;\n min = min > miliseconds || min == 0 ? miliseconds : min;\n }", "public boolean AddTransactionToAccount(Double transaction)\n {\n\n if(this.transactions.add(transaction)){\n System.out.println(\"Failed to add transaction: \" + transaction);\n return false;\n }\n System.out.println(\"Successfully added Transaction: \" + transaction);\n return true;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount();", "public String transaction_pay(int reservationId) {\r\n\t\ttry {\r\n\t\t\tif (username == null){\r\n\t\t\t\treturn \"Cannot pay, not logged in\\n\";\r\n\t\t\t}\r\n\t\t\tbeginTransaction();\r\n\t\t\t\r\n\t\t\t//query for the user balance \r\n\t\t\tcheckBalanceStatement.clearParameters();\r\n\t\t\tcheckBalanceStatement.setString(1, username);\r\n\t\t\tResultSet b = checkBalanceStatement.executeQuery();\r\n\t\t\tb.next();\r\n\t\t\tint user_balance = b.getInt(\"balance\");\r\n\t\t\t\r\n\t\t\t//get the price of the first flight\r\n\t\t\tunpaidReservationStatement.clearParameters();\r\n\t\t\tunpaidReservationStatement.setString(1, username);\r\n\t\t\tunpaidReservationStatement.setInt(2, reservationId);\r\n\t\t\tResultSet unpaid = unpaidReservationStatement.executeQuery();\r\n\t\t\t\r\n\t\t\tint total_price = 0;\r\n\t\t\tif (!unpaid.next()){\r\n\t\t\t\trollbackTransaction();\r\n\t\t\t\treturn \"Cannot find unpaid reservation \"+reservationId+\" under user: \"+username+\"\\n\";\r\n\t\t\t} else {\r\n\t\t\t\t//unpaid.next() ?? maybe not sure\r\n\r\n\t\t\t\tint fid1 = unpaid.getInt(\"fid1\");\r\n\t\t\t\tint fid2 = unpaid.getInt(\"fid2\");\r\n\t\t\t\tcheckPriceStatement.clearParameters();\r\n\t\t\t\tcheckPriceStatement.setInt(1, fid1);\r\n\t\t\t\tResultSet p1 = checkPriceStatement.executeQuery();\r\n\t\t\t\tp1.next();\r\n\t\t\t\ttotal_price += p1.getInt(\"price\");\r\n\t\t\t\tp1.close();\r\n\t\t\t\t\r\n\t\t\t\t//unpaidReservationStatement2.clearParameters();\r\n\t\t\t\t//unpaidReservationStatement2.setString(1, username);\r\n\t\t\t\t//unpaidReservationStatement2.setInt(2, reservationId);\r\n\t\t\t\t//ResultSet second = unpaidReservationStatement2.executeQuery();\r\n\t\t\t\tif (fid2 != 0){\r\n\t\t\t\t\t//second fid is not null\r\n\t\t\t\t\tcheckPriceStatement.clearParameters();\r\n\t\t\t\t\tcheckPriceStatement.setInt(1, fid2);\r\n\t\t\t\t\tResultSet p2 = checkPriceStatement.executeQuery();\r\n\t\t\t\t\tp2.next();\r\n\t\t\t\t\ttotal_price += p2.getInt(\"price\");\r\n\t\t\t\t\tp2.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (total_price > user_balance){\r\n\t\t\t\t\trollbackTransaction();\r\n\t\t\t\t\treturn \"User has only \"+user_balance+\" in account but itinerary costs \"+total_price+\"\\n\";\r\n\t\t\t\t} else {\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tupdatePaidStatement.clearParameters();\r\n\t\t\t\t\tupdatePaidStatement.setString(1, \"true\");\r\n\t\t\t\t\tupdatePaidStatement.setInt(2, reservationId);\r\n\t\t\t\t\tupdatePaidStatement.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\tupdateBalanceStatement.clearParameters();\r\n\t\t\t\t\tupdateBalanceStatement.setInt(1, (user_balance-total_price));\r\n\t\t\t\t\tupdateBalanceStatement.setString(2, username);\r\n\t\t\t\t\tupdateBalanceStatement.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\tcommitTransaction();\r\n\t\t\t\t\treturn \"Paid reservation: \"+reservationId+\" remaining balance: \"+(user_balance-total_price)+\"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\t//rollbackTransaction();\r\n\t\t\treturn \"Failed to pay for reservation \" + reservationId + \"\\n\";\r\n\t\t}\r\n }", "public void addTransaction(Transaction transaction) throws TransactionFailedException,\n\tLowBalanceException,AccountDoesNotExistException {\n\t\t\n\t\tint amount = 0;\n\t\t\n\t\tAccount account = accountDAO.listByAccountId(transaction.getAccountId());\n\t\n\t\tif(account== null){\n\t\t\tthrow new AccountDoesNotExistException(\"Account with \"+ transaction.getAccountId() +\" does not exists\");\n\t\t}\n\t\tif (transaction.getType().equals(\"D\")) {\n\n\t\t\tif (account.getAmount() >= transaction.getAmount())\n\t\t\t\tamount = account.getAmount() - transaction.getAmount();\n\t\t\telse {\n\t\t\t\tthrow new LowBalanceException(\"Low Balance..!!\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tamount = account.getAmount() + transaction.getAmount();\n\t\t}\n\t\taccount.setAmount(amount);\n\t\taccountDAO.update(account);\n\t\ttransactionDAO.save(transaction);\n\t}", "public int addPaidTask(final DBPaidTask task)\n\t\t\tthrows DatabaseUnkownFailureException, InvalidParameterException;", "@Test\n\tpublic void addTransaction() {\n\t\tTransaction transaction = createTransaction();\n\t\tint size = transactionService.getTransactions().size();\n\t\ttransactionService.addTransaction(transaction);\n\t\tassertTrue(\"No transaction was added.\", size < transactionService.getTransactions().size());\n\t}", "void addInvitedTrans(ITransaction transaction, String userId);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();", "void addTransaction(Transaction transaction) throws SQLException, BusinessException;", "public boolean addTransaction(double amount) {\n if ((this.balance+amount)>=0) {\r\n this.transactions.add(amount);\r\n balance+=amount;\r\n return true;\r\n }else{\r\n System.out.println(\"Balance Insufficient\");\r\n return false;\r\n }\r\n }", "protected abstract Transaction createAndAdd();", "private void storeTransactionToDatabase(final String clientId, final String earnedOrSpent, final String amountGiven, String sourceGiven, String descriptionGiven) {\n Transaction transaction = new Transaction(clientId, earnedOrSpent, amountGiven, sourceGiven, descriptionGiven, String.valueOf(date.getTime()));\n try {\n String transactionId = UUID.randomUUID().toString();\n DatabaseReference database = FirebaseDatabase.getInstance().getReference(\"Transactions/\" + transactionId);\n database.setValue(transaction).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n updateCurrentBalance(earnedOrSpent, clientId, amountGiven);\n Log.d(\"NewTransactionActivity\", \"Successfully added Transaction to Database\");\n } else {\n Log.d(\"NewTransactionActivity\", \"Failed to add Transaction to Database\");\n }\n }\n });\n }catch(Exception e){\n Log.d(\"NewTransactionActivity\", e.toString());\n }\n }", "void addConfirmedTransaction(int transId, String userId);", "void insert(PaymentTrade record);", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount)get_store().add_element_user(AMOUNT$6);\n return target;\n }\n }", "void addTransaction(final TransactionVM transactionVM);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewCapitalPayed();", "public void addNewWallet(Wallet wallet) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_WALLET_AMOUNT, wallet.getAmount());\n values.put(COLUMN_WALLET_TITLE, wallet.getTitle());\n values.put(COLUMN_WALLET_CURRENCY, wallet.getCurrency());\n values.put(COLUMN_WALLET_NOTE, wallet.getNote());\n values.put(COLUMN_WALLET_TYPE,wallet.getWalletType());\n values.put(COLUMN_WALLET_EXPIRES_ON,wallet.getExpiresOn());\n\n // Inserting Row\n db.insert(WALLET_TABLE, null, values);\n db.close();\n }", "@Override\r\n\tpublic int addTran(Transaction transaction) throws Exception {\n\t\t\t\t\r\n\t\treturn tranDao.insertTran(transaction);\r\n\t}", "int insertBet(Account account, Bet bet) throws DAOException;", "public void addTransaction(Transactions t){\n listOfTransactions.put(LocalDate.now(), t);\n }", "public void addTransaction(double amount) {\n this.transactions.add(amount);\n }", "private DataPoint _addPoint(DataPoint point) {\n DataPoint existingPoint = ntree.add(point);\n if (existingPoint != null) {\n return existingPoint;\n }\n ensureDistances();\n lastAddedPoint = point;\n return null;\n }", "@RequestMapping(value = \"createEWalletPayment\", method = RequestMethod.POST)\n public Invoice addEWalletPayment(@RequestParam(value = \"jobIdList\") ArrayList<Integer> jobIdList,\n @RequestParam(value = \"jobseekerId\") int jobseekerId,\n @RequestParam(value = \"referralCode\") String referralCode) {\n Invoice invoice = null;\n ArrayList<Job> jobs = new ArrayList<>();\n for (Integer integer : jobIdList) {\n jobs.add(DatabaseJobPostgre.getJobById(integer));\n }\n try {\n invoice = new EwalletPayment(DatabaseInvoicePostgre.getLastId() + 1, jobs, DatabaseJobseekerPostgre.getJobseekerById(jobseekerId), DatabaseBonusPostgre.getBonusByReferralCode(referralCode));\n invoice.setTotalFee();\n } catch (Exception e) {\n e.printStackTrace();\n }\n boolean status = false;\n try {\n status = DatabaseInvoicePostgre.insertInvoice(invoice);\n } catch (OngoingInvoiceAlreadyExistsException e) {\n e.printStackTrace();\n }\n if (status) {\n return invoice;\n } else {\n return null;\n }\n }", "public double addToSpent(double addAmount){\r\n\t\tspent +=addAmount;\r\n\t\treturn spent;\r\n\t}", "public Offer addBuyOffer(OfferRequest offerRequest) {\n if (isValidOffer(offerRequest)) {\n\n\n if (isValidUser(offerRequest)) {\n\n Asset offerAsset = assetService.getAssetByName(offerRequest.getAsset());\n OrganisationalUnit offerOrganisationalUnit = organisationalUnitService\n .getOrganisationalUnitByName(offerRequest.getOrganisationalUnit());\n\n double creditsNeeded = offerRequest.getPrice() * offerRequest.getQuantity();\n if (hasSufficientCredits(offerOrganisationalUnit, creditsNeeded)) {\n\n return saveOffer(offerRequest, offerOrganisationalUnit, offerAsset, OfferType.BUY);\n }\n\n throw new BadRequestException(\n \"Insufficient funds to complete BUY offer\");\n }\n throw new NotFoundException(\"Organisational Unit or Asset Type does not exist\");\n } else {\n throw new BadRequestException(\"Invalid BUY Offer\");\n }\n\n\n }", "private void addPayeeToCollection() {\n\t\tif (getForm().getType() != TRANSFER) {\n\t\t\tPayee payee = new Payee(getForm().getPayFrom());\n\n\t\t\tif (payee.getIdentifier().length() != 0) {\n\t\t\t\tgetPayees().add(payee);\n\t\t\t\tgetForm().getPayFromChooser().displayElements();\n\t\t\t}\n\t\t}\n\t}", "@Transactional\n\t@Override\n\tpublic Passenger addPassenger(Passenger p) {\tint bId = p.getBooking().getBookingId();\n//\t\tString query = \"Select b from Booking b where b.bookingId =:bId \";\n//\t\tTypedQuery<Booking> tq = em.createQuery(query, Booking.class);\n//\t\ttq.setParameter(\"bId\", bId);\n//\t\tBooking b = tq.getSingleResult();\n//\t\tSystem.out.println(\"feffefefeff\" + p);\n//\t\tp.setBooking(b);\n//\t\n\tList<Integer> seatNos = new ArrayList();\n\t\t\n\t\tfor(int i =1; i<61; i++)\n\t\t{\t\n\t\t\tseatNos.add(i);\n\t}\n\t\t\t\n\tp.setSeatNo(seatNos.get(count));\n\tcount+=1;\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\tSystem.out.println(p);\n\t\tem.persist(p);\n\t\tSystem.out.println(\"persisted\" + p);\n\t\treturn p;\n\t}", "public boolean addTransaction(Transaction trans) {\n if (trans == null) {\n return false;\n }\n if (!previousHash.equals(\"0\")) {\n if (!trans.processTransaction()) {\n System.out.println(\"Transaction failed to process. Transaction discarded!\");\n return false;\n }\n }\n transactions.add(trans);\n System.out.println(\"Transaction successfully added to the block\");\n return true;\n }", "int insert(PurchasePayment record);", "abstract void addDepositTransaction(Transaction deposit, Ui ui, String bankType) throws BankException;", "@Override\n\tpublic Result add(Employer employer) {\n\t\treturn null;\n\t}", "public boolean addCustomerTransaction(String customerName, double transaction){\n Customer existingCustomer = findCustomer(customerName);\n if(existingCustomer != null){\n existingCustomer.addTransaction(transaction);\n return true;\n }\n return false;\n }", "Reservierung insert(Reservierung reservierung) throws ReservierungException;", "public double addExpenseTransaction(ExpenseEntity expenseEntity);", "Long addWayBill(WayBill wayBill);", "public int addPlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\tSystem.out.println(\"budget before buy\" + user.getBudget());\n\t\t\n\t\tif(tmpTeam.containsPlayer(name)) {\n\t\t\treturn 1;\n\t\t} \n\t\telse if(user.hasEnoughBudget(marketValue)) {\n\t\t\ttmpTeam.addPlayer(name, player);\n\t\t\tuser.updateBudget(marketValue, \"-\");\n\t\t\tSystem.out.println(\"budget \" + user.getBudget());\n\t\t\tSystem.out.println(\"marketvalue \" +marketValue);\n\t\t\tSystem.out.println(\"budget after buy\" + user.getBudget());\n\t\t\treturn 0;\n\t\t}\n\t\treturn -1;\n\t}", "public OperationResult registerBet(Bet bet, UUID playerId) {\n if (!players.containsKey(playerId)) {\n throw new NullPointerException(\"Player with ID=\" + playerId + \" is not registered\");\n }\n \n // - check bet unique for player\n if (isBetNewForPlayer(bet, playerId)) {\n addBet(bet, playerId);\n return OperationResult.BET_OK;\n }\n // else\n return OperationResult.BET_WRONG;\n }", "public void addToPolicyTransactions(entity.AppCritPolicyTransaction element);", "public void placeBet(Player player, int betPoints) \n\t\t\tthrows InsufficientFundsException {\n\t\tif (betPoints > this.getPlayer(player.getPlayerId())\n\t\t\t\t.getPoints()) {\n\t\t\tthrow new InsufficientFundsException();\n\t\t}\n\t\telse if (betPoints < 1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse {\n\t\t\tthis.getPlayer(player.getPlayerId()).\n\t\t\tplaceBet(betPoints);\n\t\t}\n\t}", "@WebMethod public void addBetMade(Account user, Bet bet, float money);", "Long addTravel(Travel travel);", "@Test\n\tpublic void testAddTransaction(){\n setDoubleEntryEnabled(true);\n\t\tsetDefaultTransactionType(TransactionType.DEBIT);\n validateTransactionListDisplayed();\n\n\t\tonView(withId(R.id.fab_create_transaction)).perform(click());\n\n\t\tonView(withId(R.id.input_transaction_name)).perform(typeText(\"Lunch\"));\n\t\tonView(withId(R.id.input_transaction_amount)).perform(typeText(\"899\"));\n\t\tonView(withId(R.id.input_transaction_type))\n\t\t\t\t.check(matches(allOf(isDisplayed(), withText(R.string.label_receive))))\n\t\t\t\t.perform(click())\n\t\t\t\t.check(matches(withText(R.string.label_spend)));\n\n\t\tString expectedValue = NumberFormat.getInstance().format(-899);\n\t\tonView(withId(R.id.input_transaction_amount)).check(matches(withText(expectedValue)));\n\n int transactionsCount = getTransactionCount();\n\t\tonView(withId(R.id.menu_save)).perform(click());\n\n validateTransactionListDisplayed();\n\n List<Transaction> transactions = mTransactionsDbAdapter.getAllTransactionsForAccount(DUMMY_ACCOUNT_UID);\n assertThat(transactions).hasSize(2);\n Transaction transaction = transactions.get(0);\n\t\tassertThat(transaction.getSplits()).hasSize(2);\n\n assertThat(getTransactionCount()).isEqualTo(transactionsCount + 1);\n }", "private void rewardTransaction (PublicKey recipient, ArrayList<Transfer> transfers) {\n int rewardTransferId = 0;\n if (!transfers.isEmpty()) {\n Transfer latestTransfer = this.transfers.get(this.transfers.size() - 1);\n rewardTransferId = latestTransfer.transferId + 1;\n }\n\n transfers.add(new Transfer(100, recipient, rewardTransferId));\n }", "public abstract PlacedBet register(double bet, double balance, Payout payout);", "public String addBilling(Tour t,Event e){\n \n \n String result = \"0\";\n Connection con = null;\n //build the sql\n String SQLCommand = \"INSERT INTO billing(id,lineup_order,event_id,artist_id,tour_id)\" +\n \" values (seq_billing_id.NEXTVAL,?,?,?,?)\";\n \n try{\n //obtain the database connection by calling getConn() \n con = getConn();\n Billing b = t.getBills().get(0);\n \n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql , parameters are represented by ? in the sql\n PreparedStatement ps = con.prepareStatement(SQLCommand); \n \n //setting the parameters values\n ps.setInt(1,b.getLineupOrder());\n ps.setLong(2,e.getId());\n ps.setLong(3, b.getArtist().getId());\n ps.setLong(4, t.getId());\n \n //exceuting the insert or update operation \n ps.executeUpdate(); \n }\n catch (SQLException ex){\n ex.printStackTrace();\n result = ex.getMessage();\n }\n return result;\n }", "private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }", "private void transactionAdd(PlanRecord plan, Context context) {\n final Calendar cal = Calendar.getInstance();\n Locale locale = context.getResources().getConfiguration().locale;\n DateTime date = new DateTime();\n date.setCalendar(cal);\n\n ContentValues transactionValues = new ContentValues();\n transactionValues.put(DatabaseHelper.TRANS_ACCT_ID, plan.acctId);\n transactionValues.put(DatabaseHelper.TRANS_PLAN_ID, plan.id);\n transactionValues.put(DatabaseHelper.TRANS_NAME, plan.name);\n transactionValues.put(DatabaseHelper.TRANS_VALUE, plan.value);\n transactionValues.put(DatabaseHelper.TRANS_TYPE, plan.type);\n transactionValues.put(DatabaseHelper.TRANS_CATEGORY, plan.category);\n transactionValues.put(DatabaseHelper.TRANS_MEMO, plan.memo);\n transactionValues.put(DatabaseHelper.TRANS_TIME, date.getSQLTime(locale));\n transactionValues.put(DatabaseHelper.TRANS_DATE, date.getSQLDate(locale));\n transactionValues.put(DatabaseHelper.TRANS_CLEARED, plan.cleared);\n\n //Insert values into accounts table\n context.getContentResolver().insert(MyContentProvider.TRANSACTIONS_URI, transactionValues);\n }", "int insert(PointsExchangeRecord record);", "BonusResponse add(Long customerId, Long authorizedBy, BonusRequest bonus);", "int insert(Payment record);", "public boolean addTransaction(Transaction transaction) {\n //process transaction and check if valid, unless block is genesis block then ignore.\n if(transaction == null) return false;\n transactions.add(transaction);\n return true;\n }", "public void addAccount(Account account,Person person);", "int insert(TmpUserPayAccount record);", "int insert(DangerMerchant record);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry insertNewDebts(int i);", "int insert(R_dept_trade record);", "public long addPerson(final Person person) {\n\t\ttry (Session session = this.driver.session()) {\n\t\t\tsession.writeTransaction(new TransactionWork<Void>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Void execute(Transaction transaction) {\n\t\t\t\t\treturn Operation.this.createPersonNode(transaction, person);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn session.readTransaction(new TransactionWork<Long>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Long execute(Transaction transaction) {\n\t\t\t\t\treturn Operation.this.matchPersonNode(transaction, person);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public Triplet add(Triplet t) throws DAOException;", "public int addFunds(int fId, int tId, int money,int bal) {\n\t\tint i=0;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tthis.pst = this.con.prepareStatement(\"INSERT into transaction VALUES(?,?,?,?)\");\r\n\t\t\t\r\n\t\t\tthis.pst.setInt(1,fId);\r\n\t\t\tthis.pst.setInt(2,tId);\r\n\t\t\tthis.pst.setInt(3,money);\r\n\t\t\tthis.pst.setInt(4, bal);\r\n\t\t\t\t\t\r\n\t\t\ti = this.pst.executeUpdate();\r\n\t\t\t\t\t\t\r\n\t\t \r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\t\treturn i;\r\n\r\n\t}", "@Override\n\tpublic void addTransactionToDatabase(Transaction trans) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into transaction_history values(default, ?, ?, ?, now())\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setInt(1, trans.getAccountId());\n\t\t\tprepStmt.setString(2, trans.getUsername());\n\t\t\tprepStmt.setDouble(3, trans.getAmount());\n\t\t\tprepStmt.executeUpdate();\n\t}", "@Override\n @Transactional\n public void buyBond(Bond bond) {\n Collection<Bond> recentTransactions = bondRepository.getLatestBondTransaction(bond.getName());\n if (recentTransactions.size() == 0) {\n bondRepository.save(bond);\n }\n }", "int insert(SsPaymentBillPerson record);", "@Override\r\n\tpublic Player add(final Player player) {\r\n\t\tfinal String sql = \"insert into player (playerid, name, balance, updated, deleted) values (?,?,?,?,?)\";\r\n\r\n\t\ttry {\r\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\r\n\t\t\tjdbcTemplate.update(\r\n\t\t\t\t\tnew PreparedStatementCreator() {\r\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\r\n\t\t\t\t\t\t\tPreparedStatement ps = connection.prepareStatement(sql, new String[] {\"id\"});\r\n\t\t\t\t\t\t\tps.setString(1, player.getPlayerId());\r\n\t\t\t\t\t\t\tps.setString(2, player.getName());\r\n\t\t\t\t\t\t\tps.setDouble(3, player.getBalance());\r\n\t\t\t\t\t\t\tps.setTimestamp(4, CommonUtils.getCurrentTimestamp());\r\n\t\t\t\t\t\t\tps.setBoolean(5, false);;\r\n\t\t\t\t\t\t\treturn ps;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tkeyHolder);\r\n\t\t\tplayer.setId(keyHolder.getKey().longValue());\r\n\t\t\treturn player;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Json add(StoreRecharge storeRecharge, HttpSession session) {\n\t\tJson json = new Json();\n\t\ttry {\n\t\t\tMap<String, Object> variables = new HashMap<String, Object>();\n\t\t\tProcessInstance pi = runtimeService.startProcessInstanceByKey(\"storeRecharge\", variables);\n\t\t\t// 根据流程实例Id查询任务\n\t\t\tTask task = taskService.createTaskQuery().processInstanceId(pi.getProcessInstanceId()).singleResult();\n\t\t\t// 完成 门店经理交押金申请\n\t\t\t\n\t\t\ttaskService.addComment(task.getId(), pi.getProcessInstanceId(), \" :1\");\n\t\t\ttaskService.complete(task.getId());\n\t\t\tString username = (String) session.getAttribute(CommonAttributes.Principal);\n\t\t\tHyAdmin hyAdmin = hyAdminService.find(username);\n\t\t\tDepartment department = hyAdmin.getDepartment();\n\t\t\tList<Filter> filters = new LinkedList<>();\n\t\t\tfilters.add(Filter.eq(\"department\", department));\n\t\t\tList<Store> stores = storeService.findList(null, filters, null);\n\t\t\tif (stores == null || stores.size() == 0) {\n\t\t\t\tjson.setSuccess(false);\n\t\t\t\tjson.setMsg(\"所属门店不存在\");\n\t\t\t} else {\n\t\t\t\tStore store = stores.get(0);\n\t\t\t\tstoreRecharge.setStore(store);\n\t\t\t}\n\t\t\tstoreRecharge.setOperator(hyAdmin);\n\t\t\tStoreAccountLog storeAccountLog = new StoreAccountLog();\n\t\t\tstoreAccountLog.setMoney(storeRecharge.getMoney());\n\t\t\tstoreAccountLog.setStore(storeRecharge.getStore());\n\t\t\tstoreAccountLog.setStatus(0);\n\t\t\tstoreAccountLog.setProfile(\"预存款充值\");\n\t\t\tstoreAccountLog.setType(0);\n\t\t\tstoreAccountLogService.save(storeAccountLog);\n\t\t\tstoreRecharge.setStoreAccountLogId(storeAccountLog.getId());\n\t\t\tstoreRecharge.setProcessInstanceId(task.getProcessInstanceId());\n\t\t\tstoreRecharge.setStatus(0);\t\t\t\n\t\t\tthis.save(storeRecharge);\n\t\t\tjson.setSuccess(true);\n\t\t\tjson.setMsg(\"申请成功\");\n\t\t} catch (Exception e) {\n\t\t\tjson.setSuccess(false);\n\t\t\tjson.setMsg(\"申请错误: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn json;\n\t}", "@Override\r\n\tpublic long insertPostPaidAccount(int customerID, PostpaidAccount account) {\n\t\treturn 0;\r\n\t}", "private void createTransaction() {\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n if(mCategory == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Category_Income_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(etAmount.getText().toString().replaceAll(\",\", \"\"));\n if(amount < 0) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Amount_Invalid));\n return;\n }\n\n int CategoryId = mCategory != null ? mCategory.getId() : 0;\n String Description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n boolean isDebtValid = true;\n // Less: DebtCollect, More: Borrow\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n }\n\n if(isDebtValid) {\n Transaction transaction = new Transaction(0,\n TransactionEnum.Income.getValue(),\n amount,\n CategoryId,\n Description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n long newTransactionId = mDbHelper.createTransaction(transaction);\n\n if (newTransactionId != -1) {\n\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) newTransactionId);\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n mDbHelper.deleteTransaction(newTransactionId);\n }\n } else {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n }\n }\n\n }", "public int nextadd(Long id,Long broker_name,Long bankaccountNo, String bankname, String branchname,\r\n\t\tString pancard_no, Long demataccountNo,double balance) throws SQLException {\n\tint j=DbConnect.getStatement().executeUpdate(\"insert into customer_details values(\"+id+\",'\"+pancard_no+\"','\"+bankname+\"','\"+branchname+\"',\"+bankaccountNo+\",\"+demataccountNo+\",\"+broker_name+\")\");\r\n\tint k=DbConnect.getStatement().executeUpdate(\"insert into account values(\"+bankaccountNo+\",\"+balance+\")\");\r\n\treturn j;\r\n}", "public int create(TbTravelerInfo tbTravelerInfo) {\n\t\tString sql = \"INSERT INTO tbTravelerInfo(intBillId,strTravelerName,strSex,strBirthday,strCountry,strIndentyNumber) VALUES(?,?,?,?,?,?)\" ;\n\t\tObject[] objs = {\n\t\t\t\ttbTravelerInfo.getIntBillId(),\n\t\t\t\ttbTravelerInfo.getStrTravelerName(),\n\t\t\t\ttbTravelerInfo.getStrSex(),\n\t\t\t\ttbTravelerInfo.getStrBirthday(),\n\t\t\t\ttbTravelerInfo.getStrCountry(),\n\t\t\t\ttbTravelerInfo.getStrIndentyNumber()\n\t\t} ;\n\t\treturn super.jdbcTemplate.update(sql, objs);\n\t}", "public RetailStore addRetailStoreOrder(RetailscmUserContext userContext, String retailStoreId, String sellerId, String title, BigDecimal totalAmount, String contract , String [] tokensExpr) throws Exception;", "int insert(Transaction record);", "@Override\r\n\tpublic void insertPurchase(Purchase Purchase) throws Exception {\n\t\t\r\n\t}", "public void addNewPassenger() throws SQLException {\n\t\tScanner input = new Scanner(System.in);\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = connUtil.getConnection();\n\t\t\t// call needed DAOs here\n\t\t\tPassengerDAO pdao = new PassengerDAO(conn);\n\t\t\tFlightDAO fdao = new FlightDAO(conn);\n\t\t\tRouteDAO rdao = new RouteDAO(conn);\n\t\t\tAirportDAO apodao = new AirportDAO(conn);\n\t\t\tAirplaneDAO apldao = new AirplaneDAO(conn);\n\n\t\t\tPassenger passenger = new Passenger();\n\t\t\tpassenger.setId(pdao.nextAvailableId());\n\t\t\tpassenger.setBookingId(1);\n\n\t\t\t// Sets passenger name\n\t\t\tSystem.out.println(\"Enter the passenger given name\");\n\t\t\tpassenger.setGivenName(input.nextLine());\n\t\t\tSystem.out.println(\"Enter the passenger family name\");\n\t\t\tpassenger.setFamilyName(input.nextLine());\n\n\t\t\t// Sets birthday\n\t\t\tSystem.out.println(\"Enter DOB (yyyy-mm-dd)\");\n\t\t\tDate date = Date.valueOf(input.nextLine());\n\t\t\tpassenger.setDob(date);\n\n\t\t\t// Sets gender\n\t\t\tSystem.out.println(\"Enter gender (male/female/other)\");\n\t\t\tpassenger.setGender(input.nextLine());\n\n\t\t\t// Sets address\n\t\t\tSystem.out.println(\"Enter the address of the passenger\");\n\t\t\tpassenger.setAddress(input.nextLine());\n\n\t\t\t// Adds passenger to passenger table\n\t\t\tpdao.addPassenger(passenger);\n\n\t\t\tconn.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tconn.rollback();\n\t\t} finally {\n\t\t\tconn.close();\n\t\t}\n\t}", "private void returnDeposit(String paymentInfo) {\n }", "AccountModel add(AccountModel account) throws AccountException;", "long addOwner(Owner owner);", "protected final Transaction addTransaction(Transaction trans) {\n\t\treturn addTransactionTo(getAccount(), trans);\n\t}", "int payInTurbo(String turboCardNo, float turboAmount, String destinationTurboOfCourse, String installmentsButInTurbo);", "int insert(AlipayInfo record);", "public RetailStoreOrderShipment addRetailStoreOrder(YoubenbenUserContext userContext, String retailStoreOrderShipmentId, String buyerId, String sellerId, String title, BigDecimal totalAmount, String confirmationId, String approvalId, String processingId, String pickingId, String deliveryId , String [] tokensExpr) throws Exception;", "@Override\n\tpublic String addPayment(PaymentRequest paymentRequest) {\n\t\treturn \"Courier Booked successfully\";\n\t}", "void addBankAccount(Klant klant) throws SessionExpiredException, IllegalArgumentException, RemoteException;", "TradeItem createTradeItem(Account proposer, Flippo proposerFlippo, Account receiver, Flippo receiverFlippo);", "int insertSelective(PurchasePayment record);", "public int insertFinance(Object params) throws Exception;", "public void addTrans(View v)\r\n {\r\n Log.d(TAG, \"Add transaction button clicked!\");\r\n\r\n EditText editLabel = (EditText) findViewById(R.id.edit_label);\r\n String label = (editLabel == null)? \"\" : editLabel.getText().toString();\r\n\r\n EditText editAmount = (EditText) findViewById(R.id.edit_amount);\r\n double amount = ((editAmount == null) || (editAmount.getText().toString().equals(\"\")))? 0 :\r\n Double.valueOf(editAmount.getText().toString());\r\n\r\n CheckBox chkBill = (CheckBox) findViewById(R.id.chk_bill);\r\n CheckBox chkLoan = (CheckBox) findViewById(R.id.chk_loan);\r\n String special = \"\";\r\n special = (chkBill == null || !chkBill.isChecked())? special : \"Bill\";\r\n special = (chkLoan == null || !chkLoan.isChecked())? special : \"Loan\";\r\n\r\n\r\n EditText editTag = (EditText) findViewById(R.id.edit_tag);\r\n String tag = (editTag == null)? \"\" : editTag.getText().toString();\r\n\r\n Transaction t = new Transaction(false, amount, label, special, tag);\r\n\r\n Week weekAddedTo = BasicFinancialMainActivity.weeks\r\n .get(BasicFinancialMainActivity.currentWeekIndex);\r\n weekAddedTo.addTrans(t);\r\n BasicFinancialMainActivity.weeks.set(BasicFinancialMainActivity.currentWeekIndex, weekAddedTo);\r\n BasicFinancialMainActivity.saveWeeksData();\r\n\r\n startActivity(new Intent(this, BasicFinancialMainActivity.class));\r\n }", "@Override\n\tpublic int insertTrading(TradingVO tvo) {\n\t\treturn sql.insert(\"insertTrading\", tvo);\n\t}", "Long addAmount(Integer id, Long value) throws Exception;", "public boolean registerPayment(Payment transfer) {\n boolean done = false;\n String sql = \"INSERT INTO payment(description, total, member_id) VALUES(?,?,?)\";//pay_date: en la base de datos poner por defecto el valor del tiempo actual con el metodo now()\n try ( Connection con = connect(); PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setString(1, transfer.getDescription());\n pstmt.setInt(2, (int) transfer.getTotal());\n\n pstmt.setInt(3, transfer.getMember_id());\n pstmt.executeUpdate();\n done = true;\n\n System.out.println(\"Payment transfered\");\n } catch (SQLException e) {\n System.out.println(\"Error in the transaction\");\n System.out.println(e.getMessage());\n }\n\n return done;\n }", "public void addTradeRequest(TradeRequest request){\n tradeRequests.add(request);\n }", "int add(Bill bill) throws SQLException;", "public void transaction() throws DBException {\n\t\tUsersTransaction transaction = new UsersTransaction();\n\t\tScanner scan = new Scanner(System.in);\n\t\tLogger.info(\"================TRANSACTION DETAILS TO DONATE======================\");\n\t\tLogger.info(\"Enter the transaction ID\");\n\t\ttransactionId = scan.nextInt();\n\t\tLogger.info(\"Enter the donor ID\");\n\t\tdonorId = scan.nextInt();\n\t\tLogger.info(\"Enter the fund Id\");\n\t\tfundRequestId = scan.nextInt();\n\t\tLogger.info(\"Enter the amount to be funded\");\n\t\ttargetAmount = scan.nextInt();\n\t\ttransaction.setTransactionId(transactionId);\n\t\ttransaction.setDonorId(donorId);\n\t\ttransaction.setFundRequestId(fundRequestId);\n\t\ttransaction.setTargetAmount(targetAmount);\n\t\tinsert(transaction);\n\t\tdonorFundRequest(reqType);\n\t}", "public void addTransaction(Transaction transaction)\n\t{\n\t\ttransactionQueue.add(transaction);\n\t}", "public boolean addPoint(Point p);" ]
[ "0.5984267", "0.59726477", "0.5825348", "0.57414865", "0.57011193", "0.5625915", "0.56088614", "0.5593066", "0.55851936", "0.5584108", "0.55520993", "0.5548", "0.5543214", "0.55431736", "0.54740554", "0.5415643", "0.5412029", "0.5405216", "0.5398083", "0.53935546", "0.5374313", "0.5361039", "0.5330781", "0.53248835", "0.5323814", "0.52950096", "0.52825874", "0.5270965", "0.5242667", "0.52313036", "0.5224813", "0.52078336", "0.51991284", "0.5184775", "0.51727796", "0.5159528", "0.5147781", "0.51437074", "0.5141683", "0.51376104", "0.51348954", "0.5132735", "0.51165146", "0.51137674", "0.5104391", "0.5090099", "0.5088955", "0.50861824", "0.5069031", "0.50681823", "0.5067434", "0.50661063", "0.50641394", "0.5049175", "0.5022785", "0.5022191", "0.5015328", "0.50139457", "0.5012481", "0.50109595", "0.50037664", "0.5002994", "0.50014037", "0.5000377", "0.4994656", "0.4994159", "0.49771237", "0.49722877", "0.4968558", "0.4963097", "0.49602607", "0.49600896", "0.49594438", "0.49542016", "0.4948506", "0.4945765", "0.4943115", "0.49354786", "0.4928937", "0.49231693", "0.49219993", "0.49184033", "0.49159575", "0.49137744", "0.4910683", "0.4906127", "0.49030736", "0.4900338", "0.4899697", "0.4897541", "0.4890185", "0.48845065", "0.48733848", "0.48621827", "0.48592082", "0.48501295", "0.48490605", "0.4840169", "0.4839253", "0.48380756" ]
0.7119132
0
Call to spend points using the payers' balance. If the payers don't have enough points, return empty list.
@RequestMapping(value = "/spendpoints", method = RequestMethod.POST) public List<PayerPoints> spendPointsPerOldest(@ModelAttribute("spendPointsValue") int points) { List<PayerPoints> listPayerPoints = new ArrayList<>(); try { List<Payer> listPayer = list; SpendPoints spend = new SpendPoints(); listPayerPoints = spend.spendPoints(points, listPayer); if (listPayerPoints.isEmpty()) LOGGER.info("Enter a lower value, the payers don't have enough points"); } catch (Exception e) { LOGGER.info(e.getMessage()); } return listPayerPoints; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PointBalance> spendOverall(int points) {\n\t\tCollections.sort(transactionList);\n\t\tevenOut();\n\t\tpointsToSpend = points;\n\t\tList<PointBalance> listOfChanges = new ArrayList<>();\n\t\tfor (PointTransaction action: evenedOutList) {\n\t\t\tif (pointsToSpend <= 0) break;\n\t\t\tif (action.getPoints() > 0) {\n\t\t\t\tlistOfChanges.add(spendUntilZero(action));\n\t\t\t}\n\t\t}\n\t\treturn listOfChanges;\n\t}", "public List<PayerPoints> getPointsBalance(List<Payer> listPayer) {\n\t\tList<PayerPoints> listBalance = new ArrayList<>();\n\t\tfor (Payer i : listPayer) {\n\t\t\tPayerPoints payerpoints = new PayerPoints(i.getPayerName(), i.getPoints());\n\t\t\tlistBalance.add(payerpoints);\n\t\t}\n\t\treturn listBalance;\n\t}", "@Override\n\tpublic void spendPoints(int points) {\n\n\t}", "private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}", "public void setMerchantPoints(int points) {\n if (pointsPullCheck(points)) {\n merchantPoints += points;\n }\n }", "@RequestMapping(\"/getbalancepoints\")\n\tpublic List<PayerPoints> getBalancePoints() {\n\t\treturn getPayersPoints();\n\t}", "@RequestMapping(value = \"/addtransaction\", method = RequestMethod.POST)\n\tpublic Transaction addTransaction(@ModelAttribute(\"payerName\") String payerName,\n\t\t\t@ModelAttribute(\"transactionPoints\") int points) {\n\t\tAddTransaction addNewtransaction = new AddTransaction();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = addNewtransaction.addTransaction(payerName, points, LocalDateTime.now().format(formatter),\n\t\t\t\t\tlist);\n\t\t\tif (transaction == null)\n\t\t\t\tLOGGER.info(\"Check if the payer exist and/or if the balance is lower than the points removed\");\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.info(e.getMessage());\n\t\t}\n\t\treturn transaction;\n\t}", "java.util.List<com.google.ads.googleads.v6.common.CpvBidSimulationPoint> \n getPointsList();", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }", "public void usePoints(int amount) {\n // Cannot use too few points\n if (amount < 0) {\n throw new IllegalArgumentException(\"Invalid points amount - cannot be less than 1\");\n }\n\n // Cannot use more points than obtained\n if (amount > points) {\n throw new IllegalArgumentException(\"Invalid points amount - more than current total\");\n }\n\n // Use the points\n points -= amount;\n }", "private void checkPoints() {\n if (mPointsManager.getScore() < 20 && !SharedDataManager.isHuntReady(this)) {\n /* Before the 30 points 'reward', player must have no locked target in history */\n if (SharedDataManager.isLockedTargetInHistory(MainActivity.this)) {\n return;\n }\n mPointsManager.setScore(30);\n updateInfo();\n try {\n if (!requestingPoints) {\n requestingPoints = true;\n /* Update the value in the server database if possible */\n mPointsManager.updateInDatabase(MainActivity.this, new ResponseTask.OnResponseTaskCompleted() {\n @Override\n public void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data) {\n /* It's ok if the request was not successful, the update will be done later */\n requestingPoints = false;\n }\n });\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "com.google.ads.googleads.v6.common.CpvBidSimulationPoint getPoints(int index);", "public List<TransactionOutput> calculateAllSpendCandidates() {\n return calculateAllSpendCandidates(true, true);\n }", "public void placeBet(Player player, int betPoints) \n\t\t\tthrows InsufficientFundsException {\n\t\tif (betPoints > this.getPlayer(player.getPlayerId())\n\t\t\t\t.getPoints()) {\n\t\t\tthrow new InsufficientFundsException();\n\t\t}\n\t\telse if (betPoints < 1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse {\n\t\t\tthis.getPlayer(player.getPlayerId()).\n\t\t\tplaceBet(betPoints);\n\t\t}\n\t}", "public int turnPointsIntoCoins(int points){\r\n\t\treturn levelManager.turnPointsIntoCoins(points);\r\n\t}", "public int getMerchantPoints() {\n\n return this.merchantPoints;\n }", "public void takePlayerPoints(int pointsToTake) {\n this.points = this.points - pointsToTake;\n }", "java.util.List<cosmos.base.v1beta1.Coin> \n getTotalDepositList();", "public void remove_transfered_points(int points) {\n\t\tthis.balance = this.balance - points;\n\t\tif(this.balance < 10000) this.status = \"Bronze\";\n\t\telse if(this.balance >= 10000) this.status = \"Silver\";\n\t\t\n\t}", "public void setPoints(java.math.BigDecimal points) {\n this.points = points;\n }", "public void givePoints(int amount, PointSource source) {\n // Cannot give a non-positive amount of points\n if (amount < 1) {\n throw new IllegalArgumentException(\"Invalid point amount - cannot be less than 1\");\n }\n\n // Call the event\n PlayerGainSkillPointsEvent event = new PlayerGainSkillPointsEvent(this, amount, source);\n Bukkit.getPluginManager().callEvent(event);\n\n // Add the points if not cancelled\n if (!event.isCancelled()) {\n points += event.getAmount();\n }\n }", "public List<Result> calculateResult()\n\t{\n\t\tpersons=calculatePersonWiseContribution(transactions,persons);\t\t\t\n\t\t\n\t\t//calculate total amount spend.\n\t\tfloat totalAmt=calculateTotalAmt(persons);\n\t\t\n\t\t//calculate total persons.\n\t\tint noOfPersons =calculateNoOfPersons(persons);\n\t\t\n\t\t//calculate amount to be contributed by each person (avg amt).\n\t\tfloat avgAmt=totalAmt/noOfPersons;\n\t\t\n\t\t//remove person who calculated = avg amt , since it is idle person hence doesnt participated in transfer money operation\n\t\tList <Person> activePersons=removePerson(persons,avgAmt);\n\t\t\n\t\t//Seperate list of persons who contributed > avg amt (credit list) and <avg amt (debit list).\t\t\n\t\tMap <String, List<Person>> creditDebitList=seperateCreditDebitPersonList(activePersons,avgAmt);\n\t\tList<Person> creditList=creditDebitList.get(\"CREDIT\");\n\t\tList<Person> debitList=creditDebitList.get(\"DEBIT\");\n\t\t\t\t\n\t\t//transfer money from debit list to credit list of persons and store the result.\n\t\t//return the result.\n\t\treturn calculate(creditList,debitList);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\t\n\t\n\t}", "com.google.ads.googleads.v6.common.CpvBidSimulationPointOrBuilder getPointsOrBuilder(\n int index);", "public int addPoints(int points) {\n if (!isClosed()) {\n pointsHistory.add(points);\n }\n return points;\n }", "@Override\n\tpublic List<ProfitResult> profitStatistic(Request staticRequest) {\n\t\tList<ProfitResult> result = new ArrayList<>();\n\t\tMap<String, int[]> buySellMap = new TreeMap<String, int[]>();\n\t\tIterator<Map.Entry<String, Map<LocalDate, List <Transaction>>>> iterator = this.result.entrySet().iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<String, Map<LocalDate, List <Transaction>>> entry = iterator.next();\n\t\t\tIterator<Map.Entry<LocalDate, List <Transaction>>> iterator2 = entry.getValue().entrySet().iterator();\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry<LocalDate, List <Transaction>> entry2 = iterator2.next();\n\t\t\t\tfor (Transaction Tra : entry2.getValue()) {\n\t\t\t\t\tint buySellAmount [] = new int [] {0,0};\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.BUY)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1];\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[0] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.SELL)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0];\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[1] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbuySellMap.put(Tra.getCurrencyCode(), buySellAmount);\n\n\t\t\t\t\t}\n\t\t\t\tIterator<Map.Entry<String, int []>> iterator3 = buySellMap.entrySet().iterator();\n\t\t\t\twhile (iterator3.hasNext()) {\n\t\t\t\t\tMap.Entry<String, int []> entry3 = iterator3.next();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tresult.add(new ProfitResult(entry3.getValue()[0], entry3.getValue()[1], entry2.getKey(), entry.getKey(), entry3.getKey()));\n\t\t\t\t}\n\t\t\t\tbuySellMap.clear();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "Double getTotalSpent();", "public void pointsCollected(List<Point> points);", "private boolean checkPoints() {\n\n for (Map.Entry pair : playersAgentsMap.entrySet()) {\n ArrayList<IAgent> iAgentList = (ArrayList<IAgent>) pair.getValue();\n\n int points = 0;\n try {\n points = iPlayerList.get(iAgentList.get(0).getName()).getPoints();\n } catch (RemoteException ex) {\n Logger.getLogger(ServerFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n for (Component comp : playerList.getComponents()) {\n if (comp instanceof PlayerPanel) {\n PlayerPanel panel = (PlayerPanel) comp;\n if (panel.getName().equals(iAgentList.get(0).getName())) {\n panel.setPlayerPoints(points);\n }\n }\n\n }\n } catch (RemoteException e1) {\n e1.printStackTrace();\n }\n if (points >= targetAmount) {\n try {\n System.out.println(iAgentList.get(0).getName() + \" has won with \" + points + \" points\");\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n return false;\n }\n }\n\n return true;\n }", "public void givePoints(int amount) {\n givePoints(amount, PointSource.SPECIAL);\n }", "private static int gainStatPoints(int statPoints){\r\n statPoints++;\r\n System.out.println(\"You have \" + statPoints + \" stat points available.\");\r\n return statPoints;\r\n }", "java.util.List<? extends com.google.ads.googleads.v6.common.CpvBidSimulationPointOrBuilder> \n getPointsOrBuilderList();", "private ArrayList<TY_SaleEligibleItems> processForFreeShares(ArrayList<TY_SaleEligibleItems> probableItems, TY_SCTxn_Summary txnSummary,\n\t TY_Scrip_PositionModel posModel)\n\t{\n\t\tArrayList<TY_SaleEligibleItems> sellItems = new ArrayList<TY_SaleEligibleItems>();\n\n\t\tif (probableItems.size() > 0)\n\t\t{\n\t\t\t// Check if any free shares are involved in Current Sale\n\t\t\tOB_Positions_Header posH = posModel.getScPosHeader();\n\t\t\tif (posH != null)\n\t\t\t{\n\t\t\t\tif (txnSummary.getTotalQty() > posH.getCurrHolding())\n\t\t\t\t{\n\t\t\t\t\t// Free Shares involved\n\t\t\t\t\tint freeSharesToSell = txnSummary.getTotalQty() - posH.getCurrHolding();\n\n\t\t\t\t\tint adjQty = 0;\n\t\t\t\t\tboolean finalLoop = false;\n\n\t\t\t\t\tfor ( int i = 0; i < probableItems.size(); i++ )\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!finalLoop)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tadjQty += probableItems.get(i).getQtytoSell();\n\n\t\t\t\t\t\t\tif (adjQty < freeSharesToSell)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tprobableItems.get(i).setNumFreeShares(probableItems.get(i).getQtytoSell());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tint finalQty = freeSharesToSell - (adjQty - probableItems.get(i).getQtytoSell());\n\t\t\t\t\t\t\t\tprobableItems.get(i).setNumFreeShares(finalQty);\n\t\t\t\t\t\t\t\tfinalLoop = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsellItems = probableItems;\n\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// No recalibration needed - All Sales from Current Holding\n\t\t\t\t\tsellItems = probableItems;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sellItems;\n\n\t}", "Float getTotalPoints();", "public void setFighterPoints(int points) {\n if (pointsPullCheck(points)) {\n fighterPoints += points;\n }\n }", "private List<DataPoint> getDeckPlottingPoints(List<Deck> decks) {\n // List<List<QuizAttempt>> listsToMerge = new ArrayList<>();\n //\n // for (Deck deck : decks) {\n // listsToMerge.add(deck.getQuizAttempts());\n // }\n\n List<DataPoint> ret = new ArrayList<>();\n\n Queue<QuizAttempt> pq = new PriorityQueue<>(Comparator.comparing(QuizAttempt::getTakenAt));\n\n for (Deck deck : decks) {\n for (QuizAttempt qa : deck.getQuizAttempts()) {\n pq.offer(qa);\n }\n }\n\n while (!pq.isEmpty()) {\n QuizAttempt attempt = pq.poll();\n LocalDateTime takenAt = attempt.getTakenAt();\n double scoreInPercentage = attempt.getScore().getScoreInPercentage();\n ret.add(new DataPoint(takenAt, scoreInPercentage));\n }\n\n return ret;\n\n // return mergeSortedListsOfAttempts(listsToMerge);\n }", "private void evenOut() {\n\t\t\n\t\t// Start by copying the transaction list to a new list\n\t\tevenedOutList = new ArrayList<>();\n\t\tfor (PointTransaction action: transactionList) {\n\t\t\tevenedOutList.add(new PointTransaction(action.getPayer(), \n\t\t\t\t\taction.getPoints(), action.getTimestamp()));\n\t\t}\n\t\tfor (PointTransaction action: evenedOutList) {\n\t\t\tint pointsLeft = action.getPoints();\n\t\t\tif (pointsLeft >= 0) continue;\n\t\t\tList<PointTransaction> partialList = getTransactions(action.getPayer());\n\t\t\tfor (PointTransaction matchingAction: partialList) {\n\t\t\t\tint matchingPoints = matchingAction.getPoints();\n\t\t\t\tif (matchingPoints > 0) {\n\t\t\t\t\tint sum = matchingPoints + pointsLeft;\n\t\t\t\t\t\n\t\t\t\t\t/* The negative points are fully distributed\n\t\t\t\t\t to the positive points, so this loop ends */\n\t\t\t\t\tif (matchingPoints >= -pointsLeft) {\n\t\t\t\t\t\tmatchingAction.setPoints(sum);\n\t\t\t\t\t\taction.setPoints(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t/* The positive points are not enough to absorb all\n\t\t\t\t\tthe negative points, so the loop continues. */\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmatchingAction.setPoints(0);\n\t\t\t\t\t\taction.setPoints(sum);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "void payBills();", "public boolean pointsPullCheck(int points) {\n\n return !(points > getPoints() || points < 0);\n }", "public static APIRequestTask requestElevation(List<LatLng> points) {\n\t\tString encoded = PolyUtil.encode(points);\n\t\treturn requestElevation(encoded);\n\t}", "public java.math.BigDecimal getPoints() {\n return this.points;\n }", "public void setEngineerPoints(int points) {\n if (pointsPullCheck(points)) {\n engineerPoints += points;\n }\n }", "@Override\n\tpublic void getSpendPointsResponse(String arg0, int arg1) {\n\t\t\n\t}", "public void CalculatePointsFromEachPlayerToWinner(Player winner) {\n\n\t\tfor (int i = 0; i < players.size(); i++) { \n\t\t\tif (players.get(i).getName() != winner.getName()) {\n\t\t\t\tfor (int j = 0; j < players.get(i).getPlayersHand().size(); j++) {\n\t\t\t\t\twinner.setPlayerScore(players.get(i).getPlayersHand().get(j).getValue() + winner.getPlayerScore());\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\t\tif (winner.getPlayerScore() > 500) {\n\t\t\t//End of game. Implement this later\n\t\t}\n\t}", "public double pointsEarned();", "public void DepositMoneyInBank() {\n\n for (int i = 0; i < commands.length; i++) {\n commands[i].execute();\n storage.push(commands[i]);\n }\n }", "public void calculateFinalPoints() {\n int finalPoints = 0;\n for (final Entry<Question, ExamResultAnswers> entry : submittedAnswers.entrySet()) {\n final Question question = entry.getKey();\n double partialPoint = 0;\n final double pointStep = (double) question.getPoints() / question.getAnswers().size();\n final Iterator<Answer> correctAnswers = question.getAnswers().iterator();\n final Iterator<Answer> studentAnswers = entry.getValue().getAnswers().iterator();\n while (correctAnswers.hasNext() && studentAnswers.hasNext()) {\n final Answer studentAnswer = studentAnswers.next();\n final Answer correctAnswer = correctAnswers.next();\n if (question.getType() == QuestionType.FILL_IN_THE_BLANK) {\n if (studentAnswer.getText().trim().equalsIgnoreCase(correctAnswer.getText().trim())) {\n partialPoint += pointStep;\n } else {\n if (exam.getEvaluationMethod() == WrongAnswerEvaluationMethod.SUBTRACTION) {\n partialPoint -= pointStep;\n }\n }\n } else if (question.getType() == QuestionType.SINGLE_CHOICE) {\n // A single choice brings only points if the ONE correct one is chosen, otherwise always zero points\n if (studentAnswer.isRightAnswer() == correctAnswer.isRightAnswer()\n && correctAnswer.isRightAnswer()) {\n partialPoint += question.getPoints();\n break;\n } else if (studentAnswer.isRightAnswer() && !correctAnswer.isRightAnswer()) {\n partialPoint = 0;\n break;\n }\n } else if (question.getType() == QuestionType.MULTIPLE_CHOICE) {\n if (studentAnswer.isRightAnswer() == correctAnswer.isRightAnswer()) {\n partialPoint += pointStep;\n } else {\n if (exam.getEvaluationMethod() == WrongAnswerEvaluationMethod.SUBTRACTION) {\n partialPoint -= pointStep;\n }\n }\n }\n }\n if (partialPoint < 0) {\n partialPoint = 0;\n }\n finalPoints += (int) Math.round(partialPoint);\n }\n points = finalPoints;\n final int maxPoints = exam.getMaxPoints();\n passed = (finalPoints / (double) maxPoints) * 100 >= exam.getMinPoints();\n }", "private void payByPoint(final View v) {\n if (!SanyiSDK.getCurrentStaffPermissionById(ConstantsUtil.PERMISSION_CASHIER)) {\n Toast.makeText(activity, \"没有权限\", Toast.LENGTH_SHORT).show();\n\n return;\n }\n// final CashierPayment paymentMode = new CashierPayment();\n// paymentMode.paymentType = ConstantsUtil.PAYMENT_POINT;\n// paymentMode.paymentName = getString(R.string.payment_point);\n if (SanyiSDK.rest.config.isMemberUsePassword) {\n MemberPwdPopWindow memberPwdPopWindow = new MemberPwdPopWindow(v, activity, new MemberPwdPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(final String pwd) {\n\n // TODO Auto-generated method stub\n// CashierPayment payment = new CashierPayment();\n//\n// payment.paymentName = \"积分抵现\";\n// payment.paymentType = ConstantsUtil.PAYMENT_POINT;\n// payment.id = mPaymentModeAdapter.data.get(position).id;\n\n checkPresenterImpl.addPointPayment(cashierResult.pointInfo.value, pwd);\n\n }\n });\n memberPwdPopWindow.show();\n return;\n } else {\n checkPresenterImpl.addPointPayment(cashierResult.pointInfo.value, null);\n// CashierPayment payment = new CashierPayment();\n//\n// payment.paymentName = \"积分抵现\";\n// payment.paymentType = ConstantsUtil.PAYMENT_POINT;\n// checkPresenterImpl.addPay(cashierResult.pointInfo.value, 0.0, payment);\n }\n }", "void awardPoints(){\n if (currentPoints <= 100 - POINTSGIVEN) {\n currentPoints += POINTSGIVEN;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }\n }", "public VwStatsPerGame[] findWherePointsEquals(int points) throws VwStatsPerGameDaoException\n\t{\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE points = ? ORDER BY points\", new Object[] { new Integer(points) } );\n\t}", "public static int addPoint(int points) {\n\t\tif (points < 1 || points > 9) {\n\t\t\tSystem.out.println(\"Wrong points\");\n\t\t\treturn 0;\n\t\t}\n\t\tif (points <= 3) {\n\t\t\treturn points * 10;\n\t\t} else if (points <= 6) {\n\t\t\treturn points * 100;\n\t\t} else {\n\t\t\treturn points * 1000;\n\t\t}\n\t}", "public void collectWinnings() {\n\t\tif (hand.checkBlackjack()) {\n\t\t\tdouble win = bet * 1.5;\n\t\t\ttotalMoney += (win + bet);\n\t\t} else {\n\t\t\ttotalMoney += (bet + bet);\n\t\t}\n\t}", "public String getRedeemPoints() {\n\t return this.redeemPoints;\n\t }", "public void showBalance(){\n for(Player player: players){\n System.out.println(player + \"'s balance: \" + player.getWallet());\n }\n System.out.println();\n dealer.showProfit();\n System.out.println();\n }", "public void setPoints(int points) {\n this.points = points;\n }", "cosmos.base.v1beta1.Coin getTotalDeposit(int index);", "public void spendAllMoney() {\n\t\tcurrentBalance = 0;\n\t}", "public List<Payer> getPayers() {\n\t\tList<Payer> listPayer = new ArrayList<Payer>();\n\t\tAddTransaction transaction = new AddTransaction();\n\t\tPayer payer1 = new Payer();\n\t\tpayer1.setPayerName(\"DANNON\");\n\t\tlistPayer.add(payer1);\n\t\tPayer payer2 = new Payer();\n\t\tpayer2.setPayerName(\"UNILEVER\");\n\t\tlistPayer.add(payer2);\n\t\tPayer payer3 = new Payer();\n\t\tpayer3.setPayerName(\"MILLER COORS\");\n\t\tlistPayer.add(payer3);\n\t\ttransaction.addTransaction(\"DANNON\", 1000, LocalDateTime.parse(\"2020-11-02T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"UNILEVER\", 200, LocalDateTime.parse(\"2020-10-31T11:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", -200, LocalDateTime.parse(\"2020-10-31T15:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"MILLER COORS\", 10000, LocalDateTime.parse(\"2020-11-01T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", 300, LocalDateTime.parse(\"2020-10-31T10:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\treturn listPayer;\n\t}", "public void setPoints(int amount) {\n // Cannot have a negative amount of points\n if (amount < 0) {\n throw new IllegalArgumentException(\"Invalid point amount - cannot be less than 1\");\n }\n\n // Set the points\n points = amount;\n }", "private void listBalances() {\n\t\t\r\n\t}", "public void awardPoints(int points)\n {\n score += points ;\n }", "public void setPilotPoints(int points) {\n if (pointsPullCheck(points)) {\n pilotPoints += points;\n }\n }", "public int getPoints(String name) {\n int points = 0;\n ArrayList<IAgent> iAgentList = playersAgentsMap.get(name);\n for (Iterator<IAgent> iterator2 = iAgentList.iterator(); iterator2.hasNext();) {\n IAgent iAgent = iterator2.next();\n try {\n points = points + iAgent.getPoints();\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n return points;\n }", "public int getPointsAgainst() {\n int pointsAgainst = 0;\n for (Game g : gameList) {\n pointsAgainst += g.getOtherTeamScore(this);\n }\n return pointsAgainst;\n }", "private void checkPlan(TripResponse plan, Person[] people) {\n\n // count the debts and amounts\n ExpenseAnalytics analytics = new ExpenseAnalytics(people);\n List<Person> allDebtors = analytics.getDebtors();\n List<Person> allRecipients = analytics.getRecipients();\n\n // turn arrays into maps\n Map<String, Person> debtorsMap = allDebtors.stream()\n .collect(Collectors.toMap(Person::getName, p -> p));\n Map<String, Person> recipientsMap = allRecipients.stream()\n .collect(Collectors.toMap(Person::getName, p -> p));\n\n // run through all reimbursements\n for (Reimbursement reimbursement : plan.getReimbursements()) {\n assertThat(debtorsMap).containsKey(reimbursement.getName());\n\n Person debtor = debtorsMap.get(reimbursement.getName());\n double debt = debtor.getAmount();\n\n // perform all transactions\n for (Transaction transaction : reimbursement.getPayments()) {\n String recipientName = transaction.getRecipient();\n assertThat(recipientsMap).containsKey(recipientName);\n Person recipient = recipientsMap.get(recipientName);\n assertThat(debt).isGreaterThanOrEqualTo(transaction.getAmount());\n debt -= transaction.getAmount();\n recipient.setAmount(recipient.getAmount() - transaction.getAmount());\n\n // separately track how much they actually paid\n debtor.setTotal(debtor.getTotal() + transaction.getAmount());\n recipient.setTotal(recipient.getTotal() - transaction.getAmount());\n }\n\n debtor.setAmount(debt);\n }\n\n // check for all FRESHMAN debtors and recipients that the amounts have equalized\n Optional<Person> extremePerson;\n extremePerson = Stream.of(people).filter(p -> p.isFreshman())\n .max( (a, b) -> Double.compare(a.getTotal(), b.getTotal()) );\n double maxFreshmanTotal = extremePerson.isPresent() ? extremePerson.get().getTotal() : 0.0;\n extremePerson = Stream.of(people).filter(p -> p.isFreshman())\n .min( (a, b) -> Double.compare(a.getTotal(), b.getTotal()) );\n double minFreshmanTotal = extremePerson.isPresent() ? extremePerson.get().getTotal() : 0.0;\n logger.info(\"maximum FRESHMAN discrepancy = {}\", Math.abs(maxFreshmanTotal - minFreshmanTotal));\n\n // test maximum tolerance\n assertThat(Math.round(Math.abs(maxFreshmanTotal - minFreshmanTotal) * 100) / 100.0).isLessThanOrEqualTo(0.05);\n\n // check for all NON-freshman debtors and recipients that the amounts have equalized\n extremePerson = Stream.of(people).filter(p -> !p.isFreshman())\n .max( (a, b) -> Double.compare(a.getTotal(), b.getTotal()) );\n double maxNonFreshmanTotal = extremePerson.isPresent() ? extremePerson.get().getTotal() : 0.0;\n extremePerson = Stream.of(people).filter(p -> !p.isFreshman())\n .min( (a, b) -> Double.compare(a.getTotal(), b.getTotal()) );\n double minNonFreshmanTotal = extremePerson.isPresent() ? extremePerson.get().getTotal() : 0.0;\n logger.info(\"maximum non-FRESHMAN discrepancy = {}\", Math.abs(maxNonFreshmanTotal - minNonFreshmanTotal));\n\n // test maximum tolerance\n assertThat(Math.round(Math.abs(maxNonFreshmanTotal - minNonFreshmanTotal) * 100) / 100.0).isLessThanOrEqualTo(0.05);\n }", "public int purchasePoints() {\n return purchasePoints;\n }", "public void setPoints(int points) {\n\t\tthis.points = points;\n\t}", "public void setRedeemPoints(String points) {\n\t doSetRedeemPoints(points);\n\t return;\n\t }", "public int getTotalPoint() {\n int totalPoint = 0;\n\n for (Card card : personHand) {\n totalPoint += card.getRank().getValue();\n\n if (card.getRank().equals(Rank.ACE) && totalPoint <= 11) {\n totalPoint += 10;\n }\n }\n\n return totalPoint;\n\n // TESTING ALL BLACKJACK\n// return 21;\n // TESTING ALL BUST\n// return 99;\n // TESTING ALL PUSH\n// return 10;\n }", "public void payAllEmployeers() {\n\t\t\n\t\tSystem.out.println(\"PAYING ALL THE EMPLOYEES:\\n\");\n\t\t\n\t\tfor(AbsStaffMember staffMember: repository.getAllMembers())\n\t\t{\n\t\t\tstaffMember.pay();\n\t\t\tSystem.out.println(\"\\t- \" + staffMember.getName() + \" has been paid a total of \" + staffMember.getTotalPaid());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\");\n\t}", "public void doSetRedeemPoints(String points) {\n\t this.redeemPoints= points;\n\t return;\n\t }", "private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "private void updateRewardsPoints(int amount)\n\t{\n\t\tif(\tfileIO.rewardPoints - amount >= 0){\n\t\t\tfileIO.getPrefs();\n\t\t\tfileIO.rewardPoints = fileIO.rewardPoints - amount;\n\t\t\tfileIO.setPrefs();\n\t\t\trewardPointsTV.setText(Integer.toString(fileIO.rewardPoints));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmakeToast(\"You don't have enough points for that reward. You can earn more points by completing tasks.\", true);\n\t\t}\n\t}", "public Collection<Object> findPurchaserSpendMoreMoney(){\n\t\tcheckAdminRole();\n\t\tCollection<Object> res=new ArrayList<Object>();\n\t\tres=purchaserRepository.findPurchaserSpendMoreMoney();\n\t\treturn res;\n\t}", "private ArrayList<TY_SaleEligibleItems> getTentativeSellItems(TY_Scrip_PositionModel posModel, Date sellDate) throws EX_General\n\t{\n\t\tArrayList<TY_SaleEligibleItems> allItems = null;\n\t\t// 2. Get Buy Positions Items with ETQ > 0\n\t\tArrayList<OB_Positions_Item> buyItemsposETQ = posModel.getScPosItems().stream().filter(x -> x.getTxnType().equals(SCEenums.txnType.BUY))\n\t\t .filter(w -> w.getETQ() > 0).collect(Collectors.toCollection(ArrayList::new));\n\t\tif (buyItemsposETQ != null && dateSrv != null)\n\t\t{\n\t\t\t// 3.Calculate Days difference for Each of the Items thus obtained\n\t\t\tallItems = new ArrayList<TY_SaleEligibleItems>();\n\n\t\t\tfor ( OB_Positions_Item posItem : buyItemsposETQ )\n\t\t\t{\n\t\t\t\tint daysDiff = 0;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tdaysDiff = dateSrv.getNumDaysbwSqlSysDates(posItem.getTxnDate(), sellDate);\n\t\t\t\t}\n\t\t\t\tcatch (ParseException e)\n\t\t\t\t{\n\t\t\t\t\tEX_General egen = new EX_General(\"ERR_DATE_PARSE\", new Object[]\n\t\t\t\t\t{ e.getMessage()\n\t\t\t\t\t});\n\t\t\t\t\tthrow egen;\n\t\t\t\t}\n\n\t\t\t\tTY_SaleEligibleItems eligItem = new TY_SaleEligibleItems(posItem.getPrimaryKey_Int(), daysDiff, posItem.getETQ(), 0);\n\t\t\t\tallItems.add(eligItem);\n\t\t\t}\n\t\t}\n\t\treturn allItems;\n\t}", "protected synchronized void updatePoints(double points)\n\t{\n\t\tif(Config.VIT_MAX_PLAYER_LVL > _player.getLevel())\n\t\t{\n\t\t\tif(Config.VIT_CHECK_LUCKY_SKILL)\n\t\t\t{\n\t\t\t\tif(_player.getSkillLevel(LUCKY_SKILL) > 0)\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn;\n\t\t}\n\n\t\tint prevLvl = getLevel();\n\t\tint prevPoints = (int) _vitPoints;\n\n\t\tchangePoints(points);\n\t\tsendChangeMessage(prevPoints, prevLvl);\n\t}", "List<Pair<Member, BigDecimal>> getPaymentsPerMember(StatisticalDTO dto) throws DaoException;", "public void givePlayerPoints(int pointsToAdd) {\n this.points = this.points + pointsToAdd;\n }", "private int calculatingWeeklySavings(String accountUid, String categoryUid, String lastTimeStamp,\n String currentTimeStamp) throws Exception {\n LOGGER.debug(\"Going into Client Service Layer to get list of transactions. CategoryUid: \"+categoryUid);\n List<FeedItemSummary> feedItems =clientService.getWeeksOutGoingTransactions(accountUid, categoryUid,lastTimeStamp,\n currentTimeStamp);\n //equals feed item but minimised to amounts as thats all i want\n\n //get round up amount\n int savingsAddition=0;\n\n for (FeedItemSummary item:feedItems) {\n savingsAddition+=100-(item.getAmount()%100);\n }\n LOGGER.info(\"Calculated amount to be transfered to savings\");\n return savingsAddition;\n }", "public PointRewardData getPointRewardData(Customer fromAccount, Customer toAccount, RewardCurrency fromRewardCurrency, RewardCurrency toRewardCurrency,double rewardQty, TransferPointSetting transferPointSetting ) {\n\n // Create the PointRewardData object\n PointRewardData pointRewardData = new PointRewardData();\n\n\n // Set the fields\n pointRewardData.setMerchantNo(toAccount.getCusMerchantNo());\n\n pointRewardData.setLoyaltyId(toAccount.getCusLoyaltyId());\n\n\n pointRewardData.setRwdCurrencyId(toRewardCurrency.getRwdCurrencyId());\n\n pointRewardData.setRwdCurrencyName(toRewardCurrency.getRwdCurrencyName());\n\n\n\n // Get the creditRewardQty\n double creditRewardQty = getCreditRewardQty(fromRewardCurrency,toRewardCurrency,rewardQty);\n\n pointRewardData.setRewardQty(creditRewardQty);\n\n pointRewardData.setTxnType(TransactionType.TRANSFER_POINT_TO);\n\n\n\n pointRewardData.setTxnLocation(toAccount.getCusLocation());\n\n pointRewardData.setTxnDate(new Date(new java.util.Date().getTime()));\n\n pointRewardData.setExpiryDt(getExpiryDateForPoints(transferPointSetting));\n\n\n // Check if tierAffected field is set\n if ( transferPointSetting.getTpsIsTierAffected() == IndicatorStatus.YES ) {\n\n pointRewardData.setAddToAccumulatedBalance(true);\n\n } else{\n\n pointRewardData.setAddToAccumulatedBalance(false);\n\n }\n\n\n // Return the object\n return pointRewardData;\n }", "public void setPoints(int points)\n\t{\n\t\tthis.points = points;\n\t}", "public double getPoints()\r\n {\r\n return points;\r\n }", "private BigDecimal addServiceFee(final SubmittedBill[] submittedBills) {\n BigDecimal serviceFee = new BigDecimal(0);\n for (final SubmittedBill submittedBill : submittedBills) {\n if (!getStatusForRejected(submittedBill.getStatus().name())) {\n serviceFee = serviceFee.add(submittedBill.getServiceFee());\n }\n\n }\n return serviceFee;\n }", "@Test\n public void testPerformSpinResponse() {\n DataStore.sharedInstance().getCurrentUser().getRecentPoints().add(new PointGain(7, \"Name\", \"desc\", 10));\n\n\n // Create a delegate to test response\n PointSpinDelegate delegate = new PointSpinDelegate() {\n @Override\n public void spinPassed(int numPoints) {\n\n assertEquals(20, numPoints);\n }\n\n @Override\n public void spinFailed(String errMessage) {\n\n fail(errMessage);\n }\n };\n\n\n // Call the method\n testConnector.performSpin(delegate);\n\n\n // Test the user's points was updated\n User user = DataStore.sharedInstance().getCurrentUser();\n assertEquals(170, user.getPoints());\n assertEquals(18, user.getNumberOfSpins());\n\n\n // Test the RecentPoints\n List<PointGain> recentPoints = user.getRecentPoints();\n assertNotNull(recentPoints);\n assertEquals(2, recentPoints.size());\n\n PointGain gain = recentPoints.get(0);\n assertEquals(12, gain.getId());\n assertEquals(\"Spin\", gain.getName());\n assertEquals(20, gain.getPoints());\n assertNotNull(gain.getDescription());\n }", "Price[] getTradePrices();", "public void ApplyPremiums() {\r\n\r\n\t\tdouble GrossPremium;\r\n\t\tdouble NetPremium;\r\n\r\n\t\tfor ( Premium p : _Premiums ) {\r\n\r\n\t\t\tGrossPremium = p.getPremium() * _InvestPerCent;\r\n\r\n\t\t\tNetPremium = p.Apply() * _InvestPerCent * _BidOfferSpread.getBidOfferSpread();\r\n\r\n\t\t\tsuper.UpdateFundPremiumSchedule( GrossPremium );\r\n\r\n\t\t\t//IRR is based on the premium paid by the customer not allocated to fund.\r\n\t\t\tCashflows.Instance().AddCashflow( _Tick, GrossPremium );\r\n\r\n\t\t\t_FundValue = _FundValue + NetPremium;\r\n\r\n\t\t\tSystem.out.println( \"\\t\\t\\t\\tNet \" + p.getName() + \" Premium Amount : \" + NetPremium + \" in \" + _Name);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<CoinsResponse> billsToCoinstRef(List<BillToExchange> lstBillToExchange) throws ExchangeMachineException {\n\t\t\r\n\t\tDouble dTotal = 0.0;\r\n\t\tList<CoinsResponse> lstCoinsResponse = new ArrayList<CoinsResponse>();\r\n\t\tString erroMessage = null;\r\n\t\t\r\n\t\tfor(BillToExchange billToExchange : lstBillToExchange) {\r\n\t\t\tdTotal = dTotal + (billToExchange.getBillQuantity() * billToExchange.getBillAmount().doubleValue());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\t//Iterate over coins denomination for calculation\r\n\t\t\tcoinExchangeWrapper.setTotal(new BigDecimal(dTotal).setScale(2, RoundingMode.FLOOR));\r\n\t\t\tfor(CoinsDTO coins : coinsDispenser.getCoinsDispenser() ) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"Coin id : \" + coins.getId() + \" Denomination : \" + coins.getCoinDenomination() + \" Quantity : \" + coins.getCoinQuantity());\r\n\t\t\t\t\r\n\t\t\t\tif(coins.getCoinQuantity() > 0) {\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinDenomination(coins.getCoinDenomination());\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinQuantity(coins.getCoinQuantity());\r\n\t\t\t\t\tcoinExchangeWrapper.setMaxCoinQuantity(coins.getCoinMaxQuantity());\r\n\t\t\t\t\tgetCoinsCalculation(coinExchangeWrapper, lstCoinsResponse);\r\n\t\t\t\t\tcoins.setCoinQuantity(coinExchangeWrapper.getCurrentCoinQuantity());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Total Remain for Calculation : \" + coinExchangeWrapper.getTotal());\r\n\t\t\t\t\r\n\t\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Amount still not completed, needs to raise error\r\n\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) != 0) {\r\n\t\t\t\t//Raise exception\r\n\t\t\t\terroMessage = \"Not Enough coins to complete exchange\";\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tif(erroMessage != null) {\r\n\t\t\t\tthrow getExchangeMachineException(erroMessage, e);\r\n\t\t\t}else {\r\n\t\t\t\tthrow getExchangeMachineException(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn lstCoinsResponse;\r\n\t}", "private void checkResults() {\n\n if (Dealer.calcTotal() == p1.calcTotal()) {\n System.out.println(\"You and the dealer Tie, Here is your money back.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (p1.calcTotal() > Dealer.calcTotal() && !bust) {\n System.out.println(\"You win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.calcTotal() > 31) {\n System.out.println(\"Dealer busts. You Win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.getTotal() > p1.calcTotal() && Dealer.getTotal() < 32) {\n System.out.println(\"Dealer Wins.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n p1.subPointCount(betNum);\n }\n }", "public List<Pair<Integer, String>> getPurchaseStats() throws Exception {\n String query = \"SELECT p.uid, a.zip, SUM(pi.price) AS total_spent FROM POItem pi INNER JOIN PO p ON pi.id=p.id INNER JOIN Address a ON p.address=a.id WHERE p.status='ORDERED' GROUP BY p.uid, a.zip\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query);\n ResultSet r = p.executeQuery()) {\n List<Pair<Integer, String>> results = new LinkedList<>();\n while (r.next()) {\n String uid = r.getString(\"uid\");\n String zip = r.getString(\"zip\");\n int totalSpent = r.getInt(\"total_spent\");\n Pair<Integer, String> data = new Pair<Integer, String>(totalSpent, zip);\n results.add(data);\n }\n r.close();\n return results;\n }\n }", "public void addPoints(final int points) {\n\t\tPoints.addPoints(this.player, points);\n\t}", "private void deductGamePoints(List<Integer> prevGamePoints) {\n for (int i = 0; i < numAlive; i++) {\n int playerTrickPoints = trickPoints.get(i);\n if (playerTrickPoints < 0) {\n int prevPoints = prevGamePoints.get(i);\n int newPoints = prevPoints + playerTrickPoints;\n \n if (newPoints < 0) {\n // Cannot have negative points\n gamePoints.set(i, 0);\n } else {\n gamePoints.set(i, newPoints);\n }\n }\n }\n }", "public List<Double> computePayments(IPaymentRule pr) throws Exception\r\n\t{\t\r\n\t\tIPaymentRule paymentRule = pr;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif( _allocation.getNumberOfAllocatedAuctioneers() > 0 )\r\n\t\t\t\t_payments = paymentRule.computePayments();\r\n\t\t\telse\r\n\t\t\t\t_payments = new LinkedList<Double>();\r\n\t\t}\r\n\t\tcatch(PaymentException e)\r\n\t\t{\r\n\t\t\t_payments = new LinkedList<Double>();\r\n\t\t}\r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn _payments;\r\n\t}", "public void placeBets(){\n System.out.println();\n System.out.println(\"Let's place your bet!\");\n System.out.println();\n for(Player player: players){\n player.placeBet(minBet, maxBet);\n }\n System.out.println();\n }", "public final void payBills() {\n if (this.isBankrupt) {\n return;\n }\n Formulas formulas = new Formulas();\n if ((getInitialBudget() - formulas.monthlySpendings(this)) < 0) {\n setBankrupt(true);\n }\n setInitialBudget(getInitialBudget() - formulas.monthlySpendings(this));\n }", "public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}", "@JsonIgnore\r\n public int getPoints(){\r\n int lPoints = 0;\r\n for (CFantasyTeamByWeek lFantasyTeamByWeek : mFantasyTeamsByWeek){\r\n lPoints += lFantasyTeamByWeek.getPoints();\r\n }\r\n return lPoints;\r\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }" ]
[ "0.69825554", "0.6585955", "0.63213104", "0.6133779", "0.59464794", "0.58761734", "0.5655936", "0.56295544", "0.56221485", "0.55854076", "0.55457175", "0.5402412", "0.53872466", "0.53695464", "0.53115267", "0.52940196", "0.5259739", "0.5231233", "0.5226071", "0.5189419", "0.51806647", "0.5177152", "0.51488394", "0.5135632", "0.51103216", "0.50992155", "0.50991046", "0.5064219", "0.5052444", "0.50336844", "0.5023235", "0.5022478", "0.50067526", "0.499133", "0.4982833", "0.49804038", "0.49769887", "0.4973015", "0.49660707", "0.4955831", "0.49450684", "0.49208248", "0.49202865", "0.491378", "0.48935392", "0.48931596", "0.48835194", "0.4851398", "0.48501346", "0.48489335", "0.48464766", "0.48440343", "0.48314962", "0.48282617", "0.48073807", "0.47996783", "0.47996205", "0.47897464", "0.47858727", "0.47830862", "0.47806144", "0.47605833", "0.476054", "0.47583696", "0.47580603", "0.47529617", "0.47503388", "0.47434428", "0.47392383", "0.47366992", "0.47343212", "0.47322503", "0.47301468", "0.47208768", "0.47201747", "0.4715377", "0.47086233", "0.47071582", "0.46981788", "0.4692452", "0.46896985", "0.4689196", "0.46852833", "0.46835917", "0.46815205", "0.46772152", "0.46759337", "0.46656924", "0.46579045", "0.46487078", "0.46470758", "0.46459794", "0.4645664", "0.46419606", "0.46340626", "0.46111166", "0.46009707", "0.45996898", "0.45996898", "0.45996898" ]
0.68908644
1
Method to initialize a list of payer. We consider that the payers have to be manually added
public List<Payer> getPayers() { List<Payer> listPayer = new ArrayList<Payer>(); AddTransaction transaction = new AddTransaction(); Payer payer1 = new Payer(); payer1.setPayerName("DANNON"); listPayer.add(payer1); Payer payer2 = new Payer(); payer2.setPayerName("UNILEVER"); listPayer.add(payer2); Payer payer3 = new Payer(); payer3.setPayerName("MILLER COORS"); listPayer.add(payer3); transaction.addTransaction("DANNON", 1000, LocalDateTime.parse("2020-11-02T14:00:00").format(formatter), listPayer); transaction.addTransaction("UNILEVER", 200, LocalDateTime.parse("2020-10-31T11:00:00").format(formatter), listPayer); transaction.addTransaction("DANNON", -200, LocalDateTime.parse("2020-10-31T15:00:00").format(formatter), listPayer); transaction.addTransaction("MILLER COORS", 10000, LocalDateTime.parse("2020-11-01T14:00:00").format(formatter), listPayer); transaction.addTransaction("DANNON", 300, LocalDateTime.parse("2020-10-31T10:00:00").format(formatter), listPayer); return listPayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initialize() {\r\n\t\tfor (iPhone iphone : iphoneList) {\r\n\t\t\tadd(iphone);\r\n\t\t}\r\n\t}", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}", "public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }", "public TradeList() {\n this.trades = new ArrayList<>();\n }", "private static void init() {\n Friend friend0 = new Friend(\"Arne\", \"Andersen\", \"95123900\", \"Postveien 0\");\n Friend friend1 = new Friend(\"Berit\", \"Bertnsen\", \"95123901\", \"Postveien 1\");\n Friend friend2 = new Friend(\"Carl\", \"Carlsen\", \"95123902\", \"Postveien 2\");\n Friend friend3 = new Friend(\"Dora\", \"Danielsen\", \"95123903\", \"Postveien 3\");\n Friend friend4 = new Friend(\"Erik\", \"Erickson\", \"95123904\", \"Postveien 4\");\n Friend friend5 = new Friend(\"Fred\", \"Freddson\", \"95123905\", \"Postveien 5\");\n\n friendList.addFirst(friend1);\n friendList.addFirst(friend5);\n friendList.addFirst(friend3);\n friendList.addFirst(friend0);\n friendList.addFirst(friend2);\n friendList.addFirst(friend4);\n }", "private void setBidders(ArrayList<B> bidders) throws MarketCreationException {\n // Create immutable bidders list.\n if (bidders == null || bidders.size() == 0) {\n throw new MarketCreationException(\"A market must contain at least one bidder\");\n }\n ImmutableList.Builder<B> biddersBuilder = ImmutableList.builder();\n biddersBuilder.addAll(bidders);\n this.bidders = biddersBuilder.build();\n }", "public PersonList() {\r\n this.personList = new ArrayList<Person>();\r\n }", "@Override\n public boolean add(List<Buyer> buyers) {\n return false;\n }", "public PaymentRequest() {\r\n items = new ArrayList();\r\n }", "private void initList() {\n\n }", "public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }", "public BookList(ObservableList<Book> oList){\r\n //Instantiate the bookList attribute\r\n bookList = new ArrayList<Book>();\r\n //if the parameter oList is not null, then loop through it and create a new Book object from each element,\r\n //using the getters. The enhanced for-loop works great here See Chapter 7.13. Add the new Book to the attribute\r\n //called bookList\r\n if(oList != null){\r\n for(Book bk: oList){\r\n bookList.add(new Book(bk.getTitle(), bk.getPrice()));\r\n }\r\n }\r\n\r\n }", "private FundList() {\n initFields();\n }", "private Payer getPayer() {\n Payer payer = new Payer();\n payer.setPaymentMethod(\"paypal\");\n\n return payer;\n }", "public EmployeeWageBuilder() {\n\t\tcompanyEmpWageArrayList = new ArrayList<>();\n\t\tcompanyEmpWageMap = new HashMap<>();\n\n\tprivate int numOfCompany = 0;\n\tprivate CompanyEmpWage[] companyEmpWageArray;\n\tprivate ArrayList<CompanyEmpWage> companyEmpWageArrayList;\n\n\n\t// created array of type CompanyEmpWage\n\tpublic EmployeeWageBuilder() {\n\t\tcompanyEmpWageArray = new CompanyEmpWage[5];\n\n\t\tcompanyEmpWageArrayList = new ArrayList<>();\n\n\n\t}", "private void init() {\n\n if (currUserPayments == null) {\n currUserPayments = new ArrayList<>();\n }\n\n networkHelper = NetworkHelper.getInstance(getApplicationContext());\n\n binding = ActivityPaymentsBinding.inflate(getLayoutInflater());\n View view = binding.getRoot();\n setContentView(view);\n\n listHelper = ListHelper.getInstance();\n\n\n getAllExpenses();\n invokeOnClickListeners();\n recyclerViewInit();\n\n }", "public void init() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor(Card card : Card.values()) {\r\n\t\t\tcards.add(card);\r\n\t\t}\r\n\t}", "private Payer getPayerInformation() {\n\n\t\tPayer payer = new Payer();\n\t\tpayer.setPaymentMethod(\"paypal\");\n\n\t\tPayerInfo payerInfo = new PayerInfo();\n\n\t\tpayerInfo.setFirstName(\"Nguyen\").setLastName(\"Bang\").setEmail(\"[email protected]\");\n\n\t\tpayer.setPayerInfo(payerInfo);\n\t\treturn payer;\n\n\t}", "ListOfBooks(){\n \tlist = new LinkedList<Book>();\n }", "public StudentList() {\r\n\t\t\r\n\t\tlist = new Student[GROW_SIZE];\r\n\t}", "private void addPayeeToCollection() {\n\t\tif (getForm().getType() != TRANSFER) {\n\t\t\tPayee payee = new Payee(getForm().getPayFrom());\n\n\t\t\tif (payee.getIdentifier().length() != 0) {\n\t\t\t\tgetPayees().add(payee);\n\t\t\t\tgetForm().getPayFromChooser().displayElements();\n\t\t\t}\n\t\t}\n\t}", "private void initializePlayers()\n\t{\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\t// Distribute personality cards\n\t\t\tplayer.setPersonalityCard(board.getPersonalityCardDeck().pickTopCard());\n\t\t\t\n\t\t\t// Distribute money\n\t\t\tboard.getBankAccount().transfertAmountTo(player, nbGoldStartPerPlayer, false);\n\t\t\t\n\t\t\t// Distribute minions\n\t\t\tfor(int i = 0; i < nbMinionsPerPlayer; i++)\n\t\t\t{\n\t\t\t\tplayer.addMinion(new Minion());\n\t\t\t}\n\t\t\t\n\t\t\t// Distribute buildings\n\t\t\tfor(int i = 0; i < nbBuildingsPerPlayer; i++)\n\t\t\t{\n\t\t\t\tplayer.addBuilding(new Building());\n\t\t\t}\n\t\t}\n\n\t\t// Distribute player cards\n\t\tfor(int i = 0; i < nbInitCards; i++)\n\t\t{\n\t\t\tfor(Player player : playerList)\n\t\t\t{\n\t\t\t\tplayer.getPlayerCardDeck().addCard(board.getPlayerCardDeck().pickTopCard());\n\t\t\t}\n\t\t}\n\t}", "public static void initializeClientList() {\r\n\t\tClient newClient1 = new Client(1, \"Bob Jones\", \"Brokerage\");\r\n\t\tclientList.add(newClient1);\r\n\t\t\r\n\t\tClient newClient2 = new Client(2, \"Sarah Davis\", \"Retirement\");\r\n\t\tclientList.add(newClient2);\r\n\t\t\r\n\t\tClient newClient3 = new Client(3, \"Amy Friendly\", \"Brokerage\");\r\n\t\tclientList.add(newClient3);\r\n\t\t\r\n\t\tClient newClient4 = new Client(4, \"Johnny Smith\", \"Brokerage\");\r\n\t\tclientList.add(newClient4);\r\n\t\t\r\n\t\tClient newClient5 = new Client(5, \"Carol Spears\", \"Retirement\");\r\n\t\tclientList.add(newClient5);\r\n\t}", "private void initList(CartInfo ci) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public Payments() {\n initComponents();\n }", "public Payments() {\n initComponents();\n }", "public void createRatingList() {\n this.ratings = List.of(kriterium1, kriterium2,\n kriterium3, kriterium4, kriterium5, kriterium6, kriterium7, kriterium8);\n }", "private void prepareRates() {\n // set the Currency as GBP (symbol) which is applicable in all rates\n Currency gbp = Currency.getInstance(\"GBP\");\n rates.add(new Rate(\"Morning\", gbp, 15d, LocalTime.of(5, 0), LocalTime.of(10, 0)));\n rates.add(new Rate(\"Evening\", gbp, 18d, LocalTime.of(16, 30), LocalTime.of(20, 0)));\n rates.add(new Rate(\"Night\", gbp, 20d, LocalTime.of(20, 0), LocalTime.of(23, 0)));\n rates.add(new Rate(\"Default\", gbp, 10d, null, null));\n }", "private void fillTeachers() {\n for(Teacher t : MainFrame.etablissement.getTeachers()) {\n principalTeacher.addItem(t);\n }\n }", "public Bill(String type, int people, double amount, ArrayList<String> nameList) {\n this.type = type;\n this.people = people;\n this.amount = amount;\n this.nameList = nameList;\n }", "public Dealer() {\r\n\t\tthis.vehicleDatabase.put(BICYCLE, new ArrayList<>());\r\n\t\tthis.vehicleDatabase.put(TRICYCLE, new ArrayList<>());\r\n\t\tthis.vehicleDatabase.put(MOTORCYCLE, new ArrayList<>());\r\n\t\tthis.vehicleDatabase.put(CAR, new ArrayList<>());\r\n\t}", "private void initializeOffersAdapter() {\n mAllOffersAdapter = new AllOffersAdapter(mAllOffersArrayList, this::onOfferItemClick);\n mBinding.rvPdpAllOffers.setAdapter(mAllOffersAdapter);\n }", "public void initialiseGodList() {\n PlayerCreator playerCreator = new PlayerCreator();\n for (int i = 0; i < playerCreator.getArrayGods().size(); i++)\n godListNames.add(playerCreator.getArrayGods().get(i).getGodName());\n }", "public RevenueList() {\n }", "@Override\n public void initializeBoard(List<DevelopmentCard> towersCardsList) {\n List<String> list = new ArrayList<>();\n towersCardsList.forEach((developmentCard -> list.add(developmentCard.getName())));\n try {\n if (getClientInterface() != null)\n getClientInterface().setTowersCards(list);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending tower cards error\");\n }\n }", "public EmployeePay() {\n initComponents();\n setDefaultDateRange();\n updateTable();\n }", "public Seller() {\n super();\n }", "public PlayerServices(){\n playerList = new ArrayList<>();\n }", "Sporthall() {\n reservationsList = new ArrayList<>();\n }", "public MyRecyclerAdapter(List<ModelPerson> personList) {\n this.personList = personList;\n }", "public SupplyDemand() {\r\n\t\t//begin\r\n\t\tproducerList = new ArrayList<>();\r\n\t\tretailerList = new ArrayList<>();\r\n\t\t//end\r\n\t}", "public static void initializeUserList() {\r\n\t\tUser newUser1 = new User(1, \"Elijah Hickey\", \"snhuEhick\", \"4255\", \"Admin\");\r\n\t\tuserList.add(newUser1);\r\n\t\t\r\n\t\tUser newUser2 = new User(2, \"Bob Ross\", \"HappyClouds\", \"200\", \"Employee\");\r\n\t\tuserList.add(newUser2);\r\n\t\t\r\n\t\tUser newUser3 = new User(3, \"Jane Doe\", \"unknown person\", \"0\", \"Intern\");\r\n\t\tuserList.add(newUser3);\r\n\t}", "public PAYMENTS() {\n initComponents();\n }", "public CustomerTableModel(List list) {\n this();\n customers.addAll(list);\n }", "public Checkout()\n {\n dessertList = new ArrayList<>();\n }", "public SellerListResult(SellerListResult other) {\n if (other.isSetResult()) {\n this.result = new com.jfshare.finagle.thrift.result.Result(other.result);\n }\n if (other.isSetSellerList()) {\n List<Seller> __this__sellerList = new ArrayList<Seller>();\n for (Seller other_element : other.sellerList) {\n __this__sellerList.add(new Seller(other_element));\n }\n this.sellerList = __this__sellerList;\n }\n if (other.isSetPagination()) {\n this.pagination = new com.jfshare.finagle.thrift.pagination.Pagination(other.pagination);\n }\n }", "public OwnerList()\n {\n ownerList = new ArrayList<>();\n }", "public ZollingerMechanism(int numberOfSellers, List<Type> plans)\r\n\t{\r\n\t\t_numberOfSellers = numberOfSellers;\r\n\t\t_plans = plans;\r\n\t\t_paymentRule = \"FirstPrice\";\r\n\t\t\r\n\t\t_seed = (int)(1000 * Math.random());\r\n\t\t_randGenerator = new Random();\r\n\t}", "public Payroll()\r\n\t{\r\n\t\t\r\n\t}", "public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}", "@PostConstruct\n protected void init() {\n direccionRegionalList = new ArrayList<InstitucionRequerida>();\n direccionRegionalList = institucionRequeridaServicio.getDireccionRegionalList();\n gadList = new ArrayList<InstitucionRequerida>();\n gadList = institucionRequeridaServicio.getGADList();\n registroMixtoList = new ArrayList<InstitucionRequerida>();\n registroMixtoList = institucionRequeridaServicio.getRegistroMixtoList();\n }", "public PrimeNrAdapter(List<PrimeNr> primeNrs) {\n this.primeNrs = primeNrs;\n }", "public Bank() {\n accounts = new Account[2];\n numOfAccounts = 0;\n }", "public void initPeople() {\n this.people = new ArrayList<>();\n this.people.addAll(services.getPeopleList());\n }", "private void initPeriodosLetivos(List<PeriodoLetivo> periodosLetivos) {\n if (periodosLetivos == null || periodosLetivos.size() <= 0) {\n throw new NullPointerException(\"Não há períodos letivos vigentes. Impossível iniciar atribuição\");\n }\n this.listPeriodoLetivo = ObservableCollections.observableList(periodosLetivos);\n }", "public Wallet() {\n total_bal = 10;\n }", "public Voice(List<Bar> voices){\n List<Bar> temp= new ArrayList<>();\n temp.addAll(voices);\n this.voices=temp;\n }", "public void initRetrievalPlans() {\n for (RetrievalPlan retrievalPlan : this.getRetrievalPlans().values()) {\n retrievalPlan.init();\n }\n }", "List() {\n final int ten = 10;\n list = new int[ten];\n size = 0;\n }", "private void createDummyRepairList() {\n Repairs r = new Repairs();\n r.setId(1);\n r.setStatus(\"pending\");\n r.setmName(\"Honor 7A\");\n r.setDescription(\"Screen lag issue.\");\n r.setUserId(1);\n repairsList.add(r);\n\n r = new Repairs();\n r.setId(2);\n r.setStatus(\"approved\");\n r.setmName(\"Redmi\");\n r.setDescription(\"Charge point.\");\n r.setUserId(1);\n repairsList.add(r);\n\n r = new Repairs();\n r.setId(3);\n r.setStatus(\"approved\");\n r.setmName(\"Samsung\");\n r.setDescription(\"Battery lag.\");\n r.setUserId(1);\n repairsList.add(r);\n\n r = new Repairs();\n r.setId(4);\n r.setStatus(\"pending\");\n r.setmName(\"Honor 7A\");\n r.setDescription(\"Screen lag issue.\");\n r.setUserId(2);\n repairsList.add(r);\n\n r = new Repairs();\n r.setId(5);\n r.setStatus(\"approved\");\n r.setmName(\"Redmi\");\n r.setDescription(\"Charge point.\");\n r.setUserId(2);\n repairsList.add(r);\n\n r = new Repairs();\n r.setId(6);\n r.setStatus(\"approved\");\n r.setmName(\"Samsung\");\n r.setDescription(\"Battery lag.\");\n r.setUserId(2);\n repairsList.add(r);\n\n\n r = new Repairs();\n r.setId(7);\n r.setStatus(\"pending\");\n r.setmName(\"Honor 7A\");\n r.setDescription(\"Screen lag issue.\");\n r.setUserId(3);\n repairsList.add(r);\n\n r = new Repairs();\n r.setId(8);\n r.setStatus(\"approved\");\n r.setmName(\"Redmi\");\n r.setDescription(\"Charge point.\");\n r.setUserId(3);\n repairsList.add(r);\n\n r = new Repairs();\n r.setId(9);\n r.setStatus(\"approved\");\n r.setmName(\"Samsung\");\n r.setDescription(\"Battery lag.\");\n r.setUserId(3);\n repairsList.add(r);\n }", "public EmployeesAdapter(List<Employee> employeeList) {\n this.employeeList = employeeList;\n }", "public Sell_Installment(ArrayList<Integer> item, int InstallmentPeriod, Customer customer)\n {\n // initialise instance variables\n super(item);\n this.InstallmentPeriod=InstallmentPeriod;\n this.customer=customer;\n isActive = true;\n\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\tfecha = new Date();\r\n\t\t\r\n\t\tlistaBancos = new ArrayList<SelectItem>();\r\n\t\tlistaRegiones = new ArrayList<SelectItem>();\r\n\t\tlistaCiudades = new ArrayList<SelectItem>();\r\n\t\tlistaComunas = new ArrayList<SelectItem>();\r\n\t\t\r\n\t\tfor(EmpresaDTO empresa : configJProcessService.selectEmpresasByOrganizacion(1))\r\n\t\t\tlistaBancos.add(new SelectItem(empresa.getId(), empresa.getNombre()));\r\n\t}", "@Override\n public final Buyer createBuyr(final Map<String, Object> pRvs,\n final IReqDt pRqDt) throws Exception {\n Map<String, Object> vs = new HashMap<String, Object>();\n Buyer buyer = null;\n vs.put(\"DbCrdpLv\", 1);\n vs.put(\"TxDstdpLv\", 1);\n List<Buyer> brs = getOrm().retLstCnd(pRvs, vs, Buyer.class,\n \"where FRE=1 and PWD is null\");\n vs.clear();\n if (brs.size() > 0) {\n double rd = Math.random();\n if (rd > 0.5) {\n buyer = brs.get(brs.size() - 1);\n } else {\n buyer = brs.get(0);\n }\n buyer.setPwd(null);\n buyer.setEml(null);\n buyer.setFre(false);\n }\n if (buyer == null) {\n buyer = new Buyer();\n buyer.setIsNew(true);\n buyer.setNme(\"newbe\" + new Date().getTime());\n }\n return buyer;\n }", "public RecSupplierListBusiness()\n {\n super();\n }", "public Tue4BmPayee() {\n this(DSL.name(\"tue4_bm_payee\"), null);\n }", "public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}", "public void addDevs() {\n ProfileArrayList.add(new Profile(\"Windows\", \"Lead Developer, Web Developer\", \"https://winsub.kr\"));\n ProfileArrayList.add(new Profile(\"RecustomKR\", \"Web Developer\", \"https://winsub.kr\"));\n ProfileArrayList.add(new Profile(\"Kongjak\", \"Android Developer\", \"https://kongjak.com\"));\n ProfileArrayList.add(new Profile(\"천상의나무\", \"Telegram Bot Developer\", \"https://github.com/newpremium\"));\n }", "public List<PayerPoints> getPointsBalance(List<Payer> listPayer) {\n\t\tList<PayerPoints> listBalance = new ArrayList<>();\n\t\tfor (Payer i : listPayer) {\n\t\t\tPayerPoints payerpoints = new PayerPoints(i.getPayerName(), i.getPoints());\n\t\t\tlistBalance.add(payerpoints);\n\t\t}\n\t\treturn listBalance;\n\t}", "private Bank() {\r\n\t\tsuper();\r\n\t\tlogService = new Logger(\"driverName\");\r\n\t\tlogger = new Logger(\"driverName\");\r\n\t\tthis.balance = balance;\r\n\t\tthis.clients = new Client[100];\r\n\t}", "@MemoryAnnotations.Initialisation\n public void pumpListInitialisation() {\n for (int i = 0; i < this.configuration.getNumberOfPumps(); i++) {\n this.onOffPumps.add(false);\n }\n for (int i = 0; i < this.configuration.getNumberOfPumps(); i++) {\n this.middlePoints.add(null);\n }\n }", "public Shopper() {\r\n cart = new Carryable[MAX_CART_ITEMS];\r\n numItems = 0;\r\n }", "@Before\r\n\tpublic void setList() {\r\n\t\tthis.list = new DoubleList();\r\n\t\tfor (int i = 0; i < 15; i++) {\r\n\t\t\tlist.add(new Munitions(i, i + 1, \"iron\"));\r\n\t\t}\r\n\t}", "public DietaryProfile(AllergyList allergyList) {\n\t\tthis.calorieLimit = 0;\n\t\tthis.caloriesConsumedToday = 0;\n\t\tthis.caloriesConsumedMonthly = new ArrayList<Integer>();\n\t\tthis.allergyList = allergyList;\n\t}", "public void init(List<ClientDownloadItem> list) {\n if (list != null) {\n mItemlist.clear();\n mItemlist.addAll(list);\n Log.i(TAG, \"mItemlist.size = \" + mItemlist.size());\n notifyDataSetChanged();\n }\n }", "public PurchaseList() {\n }", "public Premium() {\r\n\t\titemName = \"Premium\";\r\n\t\titemPrice = 100;\r\n\t\tcount = 10;\r\n\t}", "public CarerAccounts() {\n CarerAccounts = new Vector<CarerAccount>();\n }", "public void initializeList() {\n listitems.clear();\n int medicationsSize = Medications.length;\n for(int i =0;i<medicationsSize;i++){\n Medication Med = new Medication(Medications[i]);\n listitems.add(Med);\n }\n\n }", "@PostConstruct\n\tprivate void init() {\n\t\tEntrada entr = new Entrada(\n\t\t\t\tnew Persona(\"Manuel\",\"Jimenex\",\"52422\",\"100000\",\"Cra 340\"),\n\t\t\t\t(new PreFactura(1l,new Date())), itemsService.lista());\n\t\t\n\t\tlistaEntrada.add(entr);\n\t}", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "public List()\n {\n list = new Object [10];\n }", "public void setDonors(List<Integer> donors) {\n this.donors = donors;\n }", "public Manager() {\n\t\tsuper();\n\t\temployees = new Employee[10];\n\t}", "public BlockChain() {\n this.blockChain = new ArrayList<>();\n this.chainHash = \"\";\n }", "public Builder withSavers(final List<WorkspaceUser> savers) {\n\t\t\tif (savers == null) {\n\t\t\t\tthis.savers = Collections.unmodifiableList(new LinkedList<>());\n\t\t\t} else {\n\t\t\t\tthis.savers = Collections.unmodifiableList(new LinkedList<>(savers));\n\t\t\t}\n\t\t\treturn this;\n\t\t}", "private void populateProviderList()\n {\n synchronized(activeProvidersByName) {\n if(ModuleManager.getInstance() != null) {\n List<ModuleURN> providerUrns = ModuleManager.getInstance().getProviders();\n for(ModuleURN providerUrn : providerUrns) {\n String providerName = providerUrn.providerName();\n if(providerUrn.providerType().equals(MDATA) && !providerName.equals(MarketDataCoreModuleFactory.IDENTIFIER) && !activeProvidersByName.containsKey(providerName)) {\n List<ModuleURN> instanceUrns = ModuleManager.getInstance().getModuleInstances(providerUrn);\n if(!instanceUrns.isEmpty()) {\n ModuleURN instanceUrn = instanceUrns.get(0);\n ModuleInfo info = ModuleManager.getInstance().getModuleInfo(instanceUrn);\n if(info.getState() == ModuleState.STARTED) {\n ModuleProvider provider = new ModuleProvider(providerName,\n AbstractMarketDataModule.getFeedForProviderName(providerName));\n SLF4JLoggerProxy.debug(this,\n \"Creating market data provider proxy for {}\",\n providerName);\n addProvider(provider);\n }\n }\n }\n }\n }\n }\n }", "private MealsList() {\n meals = new ArrayList<>();\n }", "@PostConstruct\n private void myInit() {\n freshRates = rm.getLastRates(FRESH_AMOUNT);\n }", "public void TestAccount1() {\n\n AccountCreator account = new AccountCreator();\n account.setFirstName(\"Bob\");\n account.setLastName(\"Smith\");\n account.setAddress(\"5 Rain Road\");\n account.setPIN();\n account.setTestBalance(300);\n accountList.add(account);\n\n }", "private static PriorityQueue<Teller> tellerInit(){\n Teller t1 = new Teller(\"Kate\", LocalTime.of(9, 0), 0, Bank.getInstance());\n Teller t2 = new Teller(\"Bob\", LocalTime.of(9, 0), 1, Bank.getInstance());\n Teller t3 = new Teller(\"Alice\", LocalTime.of(9, 0), 2, Bank.getInstance());\n\n PriorityQueue<Teller> tellerQueue = new PriorityQueue<>(3, new TellerComparator());\n tellerQueue.add(t2);\n tellerQueue.add(t1);\n tellerQueue.add(t3);\n\n return tellerQueue;\n }", "public Robber() {\n\t\t// robberPlayers = (ArrayList<Player>) GSC.players.clone();\n\t}", "public ListHolder()\n {\n this.list = new TestList(15, false);\n }", "public void setWeaponCardsAndPieces() {\n List<WeaponCard> weaponCards = new ArrayList<>(); // empty list for the new weapon cards\n List<WeaponPiece> weaponPieces = new ArrayList<>(); // empty list for the new weapon pieces\n\n Data data = new Data(\"data.json\"); // read data from data.json\n JSONObject weaponData = (JSONObject) data.getJsonData().get(\"Weapons\"); // get the weapon data from the data\n for (int i = 0; i < 6; i++) { // for loop 0 to 5\n String weaponName = String.valueOf(weaponData.get(String.valueOf(i))); // get the weapon name\n //Make and add weaponCard and WeaponPiece to their specified lists.\n weaponCards.add(new WeaponCard(weaponName));\n weaponPieces.add(new WeaponPiece(weaponName));\n }\n //Assign the lists into their class variables\n this.weaponCards = weaponCards;\n this.weaponPieces = weaponPieces;\n }", "public void setFreelancers(ArrayList<Account> freelancers) {\r\n this.freelancers = freelancers;\r\n }", "public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }", "private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().equals(customer.getUsername())) {\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t\t} else if (account.getJointCustomer() != null\n\t\t\t\t\t\t&& account.getJointCustomer().getUsername().equals(customer.getUsername()))\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.5728719", "0.5674438", "0.562304", "0.5610033", "0.55727476", "0.5535296", "0.5534215", "0.55048096", "0.54964644", "0.5483927", "0.5362655", "0.5349654", "0.5325671", "0.53204757", "0.5318058", "0.5314224", "0.530237", "0.52775735", "0.5269822", "0.5260892", "0.5254276", "0.5254058", "0.5247378", "0.523825", "0.5229267", "0.5220254", "0.5220254", "0.51981366", "0.51802313", "0.517774", "0.51741576", "0.51655406", "0.5155471", "0.5146812", "0.51303107", "0.51150787", "0.51149106", "0.5110218", "0.5105116", "0.5098586", "0.50895584", "0.5087203", "0.50860983", "0.50795823", "0.50734264", "0.5072136", "0.50656193", "0.50546426", "0.5046084", "0.5045764", "0.50440884", "0.50440884", "0.50367653", "0.50246185", "0.50184476", "0.50142306", "0.5008935", "0.5001988", "0.5000711", "0.4998106", "0.49979746", "0.49900103", "0.49888298", "0.49887297", "0.49856153", "0.498187", "0.49795154", "0.49769756", "0.49742085", "0.49506342", "0.49488932", "0.49395365", "0.49371034", "0.49329126", "0.49241355", "0.4902246", "0.48952734", "0.48922524", "0.4891559", "0.4880652", "0.48790386", "0.48731312", "0.48705006", "0.48699975", "0.4864527", "0.48641962", "0.48502418", "0.48484287", "0.48464614", "0.4842378", "0.48371804", "0.48356056", "0.48351294", "0.48331216", "0.4832079", "0.48312578", "0.48308524", "0.48303905", "0.48290092", "0.48267385" ]
0.6029998
0
Method to return the list of payers and their point balance
public List<PayerPoints> getPointsBalance(List<Payer> listPayer) { List<PayerPoints> listBalance = new ArrayList<>(); for (Payer i : listPayer) { PayerPoints payerpoints = new PayerPoints(i.getPayerName(), i.getPoints()); listBalance.add(payerpoints); } return listBalance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/getbalancepoints\")\n\tpublic List<PayerPoints> getBalancePoints() {\n\t\treturn getPayersPoints();\n\t}", "public List<Payer> getPayers() {\n\t\tList<Payer> listPayer = new ArrayList<Payer>();\n\t\tAddTransaction transaction = new AddTransaction();\n\t\tPayer payer1 = new Payer();\n\t\tpayer1.setPayerName(\"DANNON\");\n\t\tlistPayer.add(payer1);\n\t\tPayer payer2 = new Payer();\n\t\tpayer2.setPayerName(\"UNILEVER\");\n\t\tlistPayer.add(payer2);\n\t\tPayer payer3 = new Payer();\n\t\tpayer3.setPayerName(\"MILLER COORS\");\n\t\tlistPayer.add(payer3);\n\t\ttransaction.addTransaction(\"DANNON\", 1000, LocalDateTime.parse(\"2020-11-02T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"UNILEVER\", 200, LocalDateTime.parse(\"2020-10-31T11:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", -200, LocalDateTime.parse(\"2020-10-31T15:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"MILLER COORS\", 10000, LocalDateTime.parse(\"2020-11-01T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", 300, LocalDateTime.parse(\"2020-10-31T10:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\treturn listPayer;\n\t}", "private void listBalances() {\n\t\t\r\n\t}", "java.util.List<cosmos.base.v1beta1.Coin> \n getTotalDepositList();", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "public void showBalance(){\n for(Player player: players){\n System.out.println(player + \"'s balance: \" + player.getWallet());\n }\n System.out.println();\n dealer.showProfit();\n System.out.println();\n }", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "java.util.List<com.google.ads.googleads.v6.common.CpvBidSimulationPoint> \n getPointsList();", "@RequestMapping(value = \"/balance\", method = RequestMethod.GET)\r\n public List<BigDecimal> getBalances(Principal principal) {\r\n try {\r\n return accountDAO.getCurrentBalance(principal.getName());\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n return null;\r\n }", "double getBalance();", "double getBalance();", "public List<BigDecimal> getEarningsList(){\n return earningsList;\n }", "public List<Result> calculateResult()\n\t{\n\t\tpersons=calculatePersonWiseContribution(transactions,persons);\t\t\t\n\t\t\n\t\t//calculate total amount spend.\n\t\tfloat totalAmt=calculateTotalAmt(persons);\n\t\t\n\t\t//calculate total persons.\n\t\tint noOfPersons =calculateNoOfPersons(persons);\n\t\t\n\t\t//calculate amount to be contributed by each person (avg amt).\n\t\tfloat avgAmt=totalAmt/noOfPersons;\n\t\t\n\t\t//remove person who calculated = avg amt , since it is idle person hence doesnt participated in transfer money operation\n\t\tList <Person> activePersons=removePerson(persons,avgAmt);\n\t\t\n\t\t//Seperate list of persons who contributed > avg amt (credit list) and <avg amt (debit list).\t\t\n\t\tMap <String, List<Person>> creditDebitList=seperateCreditDebitPersonList(activePersons,avgAmt);\n\t\tList<Person> creditList=creditDebitList.get(\"CREDIT\");\n\t\tList<Person> debitList=creditDebitList.get(\"DEBIT\");\n\t\t\t\t\n\t\t//transfer money from debit list to credit list of persons and store the result.\n\t\t//return the result.\n\t\treturn calculate(creditList,debitList);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\t\n\t\n\t}", "public double getBal() {\n\t\t return balance;\r\n\t }", "public BaseJson<BigDecimal> wallet_balance() throws Exception {\n String s = main(\"wallet_balance\",\"[]\");\n return JsonHelper.jsonStr2Obj(s, BaseJson.class);\n }", "public com.redknee.util.crmapi.soap.subscriptions.xsd._2009._04.SubscriptionBundleBalance[] getBalances(){\n return localBalances;\n }", "public List<Double> computePayments(IPaymentRule pr) throws Exception\r\n\t{\t\r\n\t\tIPaymentRule paymentRule = pr;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif( _allocation.getNumberOfAllocatedAuctioneers() > 0 )\r\n\t\t\t\t_payments = paymentRule.computePayments();\r\n\t\t\telse\r\n\t\t\t\t_payments = new LinkedList<Double>();\r\n\t\t}\r\n\t\tcatch(PaymentException e)\r\n\t\t{\r\n\t\t\t_payments = new LinkedList<Double>();\r\n\t\t}\r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn _payments;\r\n\t}", "public double getBalance()\n \n {\n \n return balance;\n \n }", "public List<PointBalance> spendOverall(int points) {\n\t\tCollections.sort(transactionList);\n\t\tevenOut();\n\t\tpointsToSpend = points;\n\t\tList<PointBalance> listOfChanges = new ArrayList<>();\n\t\tfor (PointTransaction action: evenedOutList) {\n\t\t\tif (pointsToSpend <= 0) break;\n\t\t\tif (action.getPoints() > 0) {\n\t\t\t\tlistOfChanges.add(spendUntilZero(action));\n\t\t\t}\n\t\t}\n\t\treturn listOfChanges;\n\t}", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getPriceList();", "List<Pair<Member, BigDecimal>> getPaymentsPerMember(StatisticalDTO dto) throws DaoException;", "public double getBalance()\n {\n return balance;\n }", "public BigDecimal getPriceList();", "public double getBalance(){\n return balance.getBalance();\n }", "public Money getTotalBalance();", "public List<Payment> getAllPayments() {\n\t\treturn null;\r\n\t}", "public double getBalance() {\n return balance;\n }", "public double getBalance(){\r\n\t\treturn balance;\r\n\t}", "public double getBalance(){\n return balance;\n }", "public String getBalances() {\n\n\t\treturn getJson(API_VERSION, ACCOUNT, \"getbalances\");\n\t}", "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "public Double getBalance() {\r\n return balance;\r\n }", "Price[] getTradePrices();", "public BigDecimal getTaxAmtPriceList();", "public List<Balance> getAddBalanceList() {\r\n\t\tList<Balance> balanceList = new ArrayList<Balance>();\r\n\t\tif (selectedItem != null) {\r\n\t\t\tList<Book> bookList = new ArrayList<Book>();\r\n\t\t\tfor (BalanceData b : GlobalBalance.instance().list()) {\r\n\t\t\t\t// Flag no se ha encontrado\r\n\t\t\t\tboolean founded = false;\r\n\t\t\t\t// Recuperar la lista de books a las que pertenece el balance\r\n\t\t\t\tbookList = bookService.getBooksByIdBalance(b.getId());\r\n\t\t\t\tfor (Book book : bookList) {\r\n\t\t\t\t\t// Si el book seleccionado ya pertenece al balance\r\n\t\t\t\t\tif (selectedItem.getId().compareTo(book.getId()) == 0) {\r\n\t\t\t\t\t\t// Flag se ha encontrado\r\n\t\t\t\t\t\tfounded = true;\r\n\t\t\t\t\t\t// Detener el bucle\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Si el balance no ha sido agregado ya al book\r\n\t\t\t\tif (!founded) {\r\n\t\t\t\t\t// Agregarlo a la lista\r\n\t\t\t\t\tbalanceList.add(b.getEntity());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn balanceList;\r\n\t}", "public double getBalance()\r\n\t{\r\n\t\treturn balance;\t\t\r\n\t}", "private double getBalance() { return balance; }", "public List<TransactionOutput> calculateAllSpendCandidates() {\n return calculateAllSpendCandidates(true, true);\n }", "public BigDecimal getBalance() {\n return balance;\n }", "public BigDecimal getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}", "public double getBalance(){\n return this.balance;\r\n }", "public double getBalance(){\n return balance;\r\n }", "java.util.List<? extends cosmos.base.v1beta1.CoinOrBuilder> \n getTotalDepositOrBuilderList();", "public double getBalance(){\n return balance;\n }", "public double getTotalPayments(){return this.total;}", "public double getBalance(){\n\t\treturn balance;\n\t}", "public List<DietaBalanceada> consultar_dietaBalanceada();", "public BigDecimal getPayAmt();", "public double getBalance(){\n return balance;\n }", "public Collection<Payment> getPayments(CustomerItem customerItem);", "@RequestMapping(value = \"/spendpoints\", method = RequestMethod.POST)\n\tpublic List<PayerPoints> spendPointsPerOldest(@ModelAttribute(\"spendPointsValue\") int points) {\n\t\tList<PayerPoints> listPayerPoints = new ArrayList<>();\n\t\ttry {\n\t\t\tList<Payer> listPayer = list;\n\t\t\tSpendPoints spend = new SpendPoints();\n\t\t\tlistPayerPoints = spend.spendPoints(points, listPayer);\n\t\t\tif (listPayerPoints.isEmpty())\n\t\t\t\tLOGGER.info(\"Enter a lower value, the payers don't have enough points\");\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.info(e.getMessage());\n\t\t}\n\t\treturn listPayerPoints;\n\t}", "public double getSavingsBalance() {\n return savingsBalance;\n }", "public java.math.BigDecimal getBalance() {\n return balance;\n }", "@Override\n public long getTotalBalances() {\n return accounts.values().stream().map(Account::getBalance).mapToLong(Long::longValue).sum();\n }", "public void getBalance() {\n\t\tSystem.out.println(\"Balance in Savings account is\" + balance);\n\t\t//return balance;\n\t}", "public int getMerchantPoints() {\n\n return this.merchantPoints;\n }", "double getBalance() {\n\t\treturn balance;\n\t}", "public BigDecimal getPriceListEntered();", "@Override\n public List<Employee> getEmployeePositiveBalance() {\n return employeeRepository\n .readEmployee()\n .stream()\n .filter(employee -> employee.getBalance() > 0)\n .collect(Collectors.toList())\n ;\n }", "public BigDecimal getPbackPaid() {\n return pbackPaid;\n }", "public BigDecimal getBSCA_ProfitPriceList();", "public double getBalance() \n\t{\n\t\treturn balance;\n\t\t\n\t}", "public float getBalance() {\n return balance;\n }", "public BigDecimal getPercentageProfitPList();", "@Override\n public double getBalanceFromItemDTOList(List<ItemDTO> itemList) {\n final List<FunctionalItem> functionalItemList =\n itemList.stream().map(item -> FunctionalItem.of(item )).collect(Collectors.toList());\n\n final Optional<FunctionalItem> totalFunction =\n functionalItemList.stream().reduce((t, u) -> u.composeFunctionalItem(t));\n\n final Double totalAmountFromClient = totalFunction.orElse((i) -> i).apply(0d);\n //TODO take Currency from transaction DTO, or state that all the transactions are made in same currency\n return convertorService.getAmountInEuro( totalAmountFromClient, itemList.get(0).getCurrency());\n }", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }", "@Override\n public long totalBalances() {\n long total = 0;\n for(Account account : accounts.values()){\n total += account.balance();\n }\n return total;\n }", "public double getBalance() {\r\n\t\t\r\n\t\treturn balance;\r\n\t\t\r\n\t}", "public int[] getTsumoPayment(boolean isDealer) {\r\n int[] output = new int[2];\r\n if (isDealer) {\r\n output[0] = basicPoints * 2;\r\n output[1] = 0;\r\n } else {\r\n output[0] = basicPoints * 1;\r\n output[1] = basicPoints * 2;\r\n }\r\n output[0] = (int)(100*Math.ceil(output[0]/100.0));\r\n output[1] = (int)(100*Math.ceil(output[1]/100.0));\r\n \r\n return output;\r\n }", "List<SimpleTransferVO> paymentVOs(Account account, Period period) throws DaoException;", "@NotNull\n List<Balance> balances(@NotNull List<String> addresses) throws EtherScanException;", "public double getBalance() {\n return this.balance;\n }", "cosmos.base.v1beta1.CoinOuterClass.Coin getFunds(int index);", "cosmos.base.v1beta1.CoinOuterClass.Coin getFunds(int index);", "@java.lang.Override\n public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> getFundsList() {\n return funds_;\n }", "@java.lang.Override\n public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> getFundsList() {\n return funds_;\n }", "public List<BrainTreePaymentInfo> getPaymentMethods(final SessionContext ctx)\n\t{\n\t\tList<BrainTreePaymentInfo> coll = (List<BrainTreePaymentInfo>)getProperty( ctx, PAYMENTMETHODS);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "java.util.List<? extends com.google.ads.googleads.v6.common.CpvBidSimulationPointOrBuilder> \n getPointsOrBuilderList();", "double getPaidAmount();", "public BigDecimal getPayAmount() {\n return payAmount;\n }", "public static MPayment[] getOfBPartner(Properties ctx, int C_BPartner_ID, String trxName) {\n ArrayList<MPayment> list = new ArrayList<MPayment>();\n String sql = \"SELECT * FROM C_Payment WHERE C_BPartner_ID=?\";\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, trxName);\n pstmt.setInt(1, C_BPartner_ID);\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n list.add(new MPayment(ctx, rs, trxName));\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n s_log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n\n //\n MPayment[] retValue = new MPayment[list.size()];\n list.toArray(retValue);\n return retValue;\n }", "public double getBalance()\n {\n return startingBalance;\n }", "public ArrayList<Billing> getBillings() \n\t{\n\t\treturn billings;\n\t}", "private float[] calculateAllGrossPay()\n {\n int numberEmployees = employees.size();\n float[] allGrossPay = new float[numberEmployees];\n int position = 0;\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext())\n {\n myEmployee = emp.next();\n allGrossPay[position] = myEmployee.getHours() * myEmployee.getRate();\n position++;\n }\n return allGrossPay;\n }", "public List getFiBcoinPayconfigs(FiBcoinPayconfig fiBcoinPayconfig);", "public double getBalance()\t{\n\t\treturn balance;\n\t}", "public BigDecimal getBSCA_ProfitPriceListEntered();", "@Override\r\n\tpublic ArrayList<BankAccountVO> getBankAccountVOList() {\n\t\tArrayList<BankAccountVO> BankAccountList = new ArrayList<>();\r\n\t\tBankAccountList.add(new BankAccountVO(\"SS141250110\",200000));\r\n\t\treturn BankAccountList;\r\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public ObjectList getList(){\n return payroll;\n }" ]
[ "0.7373769", "0.6886185", "0.66345763", "0.65035444", "0.6288649", "0.61992073", "0.61402845", "0.61402845", "0.61327344", "0.60870653", "0.60019755", "0.60019755", "0.59744525", "0.58842427", "0.5870141", "0.5866733", "0.58631074", "0.5831018", "0.58298963", "0.5802363", "0.58008623", "0.5783033", "0.5746861", "0.57441336", "0.57275754", "0.5725565", "0.56987154", "0.56928015", "0.5691229", "0.56910014", "0.5689188", "0.5683599", "0.5678095", "0.567372", "0.5672885", "0.5663735", "0.56592125", "0.5648608", "0.5636673", "0.56351095", "0.56351095", "0.5629723", "0.5629723", "0.5629723", "0.5629723", "0.56294566", "0.5622185", "0.5616959", "0.5609598", "0.5605697", "0.5595183", "0.5591545", "0.5590919", "0.55906105", "0.55875367", "0.5580976", "0.55778074", "0.556577", "0.556428", "0.5560765", "0.5558777", "0.5553123", "0.554465", "0.55333835", "0.55317175", "0.5530918", "0.55210984", "0.55158406", "0.5515447", "0.54929024", "0.54895735", "0.54847074", "0.5483252", "0.5477779", "0.5477279", "0.54686946", "0.5465424", "0.54531026", "0.54453444", "0.54453444", "0.5437992", "0.5437992", "0.54272264", "0.5417388", "0.5415441", "0.5404784", "0.53973013", "0.53962046", "0.5393366", "0.5387668", "0.53851897", "0.53786325", "0.5377908", "0.5375442", "0.5370233", "0.5370233", "0.5370233", "0.5370233", "0.5370233", "0.53644246" ]
0.78547776
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Project)) { return false; } Project other = (Project) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int a = 100; Integer b = a;//autoboxing int c=b.intValue();//unboxing System.out.println(a); System.out.println(b); System.out.println(c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79042757", "0.7805287", "0.7766401", "0.7727273", "0.7631789", "0.76227075", "0.75850916", "0.75309587", "0.74881005", "0.74574566", "0.74574566", "0.7438689", "0.74217546", "0.7403555", "0.73919356", "0.738709", "0.7379311", "0.73706394", "0.73631936", "0.7356187", "0.7345765", "0.73425454", "0.73304135", "0.73285425", "0.7325551", "0.73193544", "0.73170114", "0.7313763", "0.7304262", "0.7304262", "0.73016006", "0.7298295", "0.72936976", "0.7287051", "0.72835594", "0.7280915", "0.7278735", "0.7260228", "0.7259963", "0.7259963", "0.7259963", "0.7259532", "0.72500527", "0.7225106", "0.7219787", "0.72181183", "0.72050196", "0.7200268", "0.72000635", "0.719394", "0.71856725", "0.71783334", "0.7168997", "0.7167865", "0.7154361", "0.715409", "0.7136464", "0.71354663", "0.71354663", "0.71303326", "0.7129188", "0.71245664", "0.71237016", "0.71235603", "0.7122907", "0.71177214", "0.7117509", "0.7117236", "0.7117236", "0.7117236", "0.7117236", "0.7116619", "0.71152025", "0.7112939", "0.71100503", "0.71093804", "0.71064043", "0.70999765", "0.7098476", "0.70958054", "0.7094259", "0.7094259", "0.70869505", "0.708348", "0.7081001", "0.7080677", "0.70734984", "0.7068878", "0.70622814", "0.70608747", "0.7060793", "0.70519054", "0.7037856", "0.7037856", "0.7036377", "0.70360506", "0.70360506", "0.70331967", "0.7030844", "0.7029912", "0.70200884" ]
0.0
-1
Getting UserCertificateSource singleton instance
@Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { Class cUserCeritificateSource = Class.forName("android.security.net.config.UserCertificateSource"); Object iUserCeritificateSource = cUserCeritificateSource.getDeclaredMethod("getInstance").invoke(null); //Creating new CertificatesEntryRef with UserCertificateSource instance as source Class cCertificatesEntryRef = Class.forName("android.security.net.config.CertificatesEntryRef"); Object iCertificatesEntryRef = cCertificatesEntryRef.getConstructor(Class.forName("android.security.net.config.CertificateSource"), boolean.class).newInstance(iUserCeritificateSource, true); //Injecting that CertificatesEntryRef entry into NetworkSecurityConfig.Builder, so we'll always have UserCertificateSource as root certificates source Class cNetworkSecurityConfigBuilder = Class.forName("android.security.net.config.NetworkSecurityConfig$Builder"); cNetworkSecurityConfigBuilder.getDeclaredMethod("addCertificatesEntryRef", cCertificatesEntryRef).invoke(param.thisObject, iCertificatesEntryRef); Log.d("Eris", "Injected into " + lpparam.packageName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public X509Certificate getCertificate();", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "String getCertificate();", "public BaseHttpXCapClient()\n {\n ServiceReference guiVerifyReference\n = SipActivator.getBundleContext().getServiceReference(\n CertificateService.class.getName());\n\n if(guiVerifyReference != null)\n certificateVerification\n = (CertificateService)SipActivator.getBundleContext()\n .getService(guiVerifyReference);\n }", "public String getUserCertificatesPath();", "public X509Certificate getCertificate()\n {\n return this.cert;\n }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "public SecuritySource getSecuritySource() {\n return (SecuritySource) get(SECURITY_SOURCE_NAME);\n }", "@Bean\n public UserDetailsService clientUserDetailsService() {\n return username -> {\n\n log.info(\"loadClientByUsername \" + username);\n\n if (username.equals(clientCertAlias)) {\n return new User(username, \"\",\n AuthorityUtils\n .commaSeparatedStringToAuthorityList(\"ROLE_TRUSTED_CLIENT\"));\n }\n\n return null;\n };\n }", "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}", "public String getTlsCert();", "X509Certificate getCertificateToCheck()\n {\n return certificateToCheck;\n }", "public CloudServiceVaultCertificate() {\n }", "public static synchronized TrustedCertificates getDefault() {\n if (trustedCertificates == null) {\n trustedCertificates = new DefaultTrustedCertificates();\n }\n trustedCertificates.refresh();\n return trustedCertificates;\n }", "public X509Certificate getX509Certificate() {\n return certificate;\n }", "@Override\n public InputStream getCertStream() {\n if (Strings.isEmpty(certPath)) {\n throw new NotFoundException(\"cert path not configured\");\n }\n if (certBytes == null) {\n Path path = Paths.get(certPath).toAbsolutePath();\n try {\n certBytes = readAllBytes(path);\n } catch (IOException e) {\n throw new UncheckedIOException(\"read cert failed\", e);\n }\n }\n return new ByteArrayInputStream(certBytes);\n }", "public SingleCertKeyStoreProvider() {\r\n super(\"PKCS7\", PROVIDER_VERSION, \"KeyStore for a PKCS7 or X.509 certificate\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n AccessController.doPrivileged(new java.security.PrivilegedAction<Object>() {\r\n \t/** {@inheritdoc} */\r\n @Override\r\n\t\t\tpublic Object run() {\r\n put(\"KeyStore.PKCS7\", \"es.gob.afirma.keystores.single.SingleCertKeyStore\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n return null;\r\n }\r\n });\r\n }", "public X509Certificate getRootCertificate() throws CertException;", "@Bean\n\tpublic DefaultSpringSecurityContextSource contextSource() {\n\t\treturn new DefaultSpringSecurityContextSource(Arrays.asList(\"ldap://localhost:10389\"), \"dc=springframework,dc=org\");\n\t}", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "private X509Certificate getTrustedCert() {\n\t\tSystem.out.println(\"Beginning getTrustedCert ...\");\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate newCert = null;\n\t\t\n\t\tassertNotNull(ec);\n\t\t\n\t\tmCerts = Helpers.loadTA(mTrustDB);\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setHTTPCredentials(\"estuser\", \"estpwd\");\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authHTTPonly, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException\n\t\t\t\t| CertificateException | IOException | EncodingException\n\t\t\t\t| EnrollException | EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newCert;\n\t}", "public static X509Certificate loadCertificate(InputStream in)\n throws GeneralSecurityException {\n return (X509Certificate) getCertificateFactory().generateCertificate(in);\n }", "@Nullable\n public AndroidWorkProfileCertificateProfileBase get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}", "public static FedoraSSL getInstance() {\n\t\tFedoraSSL newInstance = new FedoraSSL(\n\t\t\t\tnew File(FedoraSSL.DEFAULT_CERT_FILE),\n\t\t\t\tnew File(FedoraSSL.DEFAULT_UPLOAD_CA_CERT),\n\t\t\t\tnew File(FedoraSSL.DEFAULT_SERVER_CA_CERT));\n\t\treturn newInstance;\n\t}", "public @Nullable\n Certificate getCertificate() throws GeneralSecurityException, IOException {\n KeyStoreManager keyStoreManager = KeyStoreManager.builder()\n .context(Config.getInstance().getContext()).build();\n return keyStoreManager.getCertificate(keyAlias);\n }", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();", "protected static CertificateFactory getCertificateFactory()\n throws GeneralSecurityException {\n if (provider == null) {\n return CertificateFactory.getInstance(\"X.509\");\n } else {\n return CertificateFactory.getInstance(\"X.509\", provider);\n }\n }", "public static CryptoSunJCE getInstance() {\n\t\t// return instance;\n\t\treturn new CryptoSunJCE();\n\t}", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public static UserClient getUserClient() {\n if (USER_CLIENT == null) {\n USER_CLIENT =\n new NetworkUserClient(NetworkProvider.SERVER_URL, new DefaultNetworkProvider());\n }\n return USER_CLIENT;\n }", "@Bean(name = \"hebLdapContext\")\n\tpublic BaseLdapPathContextSource contextSource() throws Exception {\n\t\tDefaultSpringSecurityContextSource contextSource =\n\t\t\t\tnew DefaultSpringSecurityContextSource(this.url);\n\t\tcontextSource.setUserDn(this.managerDn);\n\t\tcontextSource.setPassword(this.managerPassword);\n\t\tcontextSource.setBase(this.root);\n\t\tcontextSource.afterPropertiesSet();\n\n\t\treturn contextSource;\n\t}", "public static X509AttributeCertificate getInstance(Session session, long objectHandle) throws TokenException {\n return new X509AttributeCertificate(session, objectHandle);\n }", "public User()\n\t{\n\t\tif(UA.singleInstance())\n\t\t{\n\t\t\tua = UA.getInstance();\n\t\t}\n\t}", "public X509Certificate getCACertificate() throws DorianInternalException;", "java.util.concurrent.Future<GetCertificateResult> getCertificateAsync(\n GetCertificateRequest getCertificateRequest);", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static SSLSocketFactory getSSLSocketFactory() throws CertificateException, KeyStoreException, IOException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = new BufferedInputStream(BaseApplication.getAppContext().getAssets().open(\"www.baseurl.com.crt\"));\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n\n return context.getSocketFactory();\n }", "protected X509Certificate getCertificate(String certString,\n String format)\n {\n X509Certificate cert = null;\n \n try {\n \n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\"getCertificate(Assertion) : \" +\n certString);\n }\n \n StringBuffer xml = new StringBuffer(100);\n xml.append(SAMLConstants.BEGIN_CERT);\n xml.append(certString);\n xml.append(SAMLConstants.END_CERT);\n \n byte[] barr = null;\n barr = (xml.toString()).getBytes();\n \n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n ByteArrayInputStream bais = new ByteArrayInputStream(barr);\n \n if ((format !=null) &&\n format.equals(SAMLConstants.TAG_PKCS7)) { // PKCS7 format\n Collection c = cf.generateCertificates(bais);\n Iterator i = c.iterator();\n while (i.hasNext()) {\n cert = (java.security.cert.X509Certificate) i.next();\n }\n } else { //X509:v3 format\n while (bais.available() > 0) {\n cert = (java.security.cert.X509Certificate)\n cf.generateCertificate(bais);\n }\n }\n } catch (Exception e) {\n SAMLUtilsCommon.debug.error(\"getCertificate Exception: \", e);\n }\n \n return cert;\n }", "protected static X509Certificate getCertificate()\n throws CertificateException, KeyStoreException, IOException {\n String certificatePath = getCertificatePath();\n String keyStorePath = getKeyStorePath();\n if (certificatePath != null) {\n File certificateFile = new File(certificatePath);\n if (certificateFile.isFile()) {\n // load certificate from file\n return loadCertificateFromFile(certificateFile);\n } else {\n throw new IllegalArgumentException(\n \"The specified certificate path '\" + certificatePath + \"' is invalid\");\n }\n } else if (keyStorePath != null) {\n return new KeyStoreManager()\n .getKeyStoreCertificate(keyStorePath, getKeyStorePassword(), getKeyStoreAlias());\n } else {\n // should not happen\n throw new IllegalArgumentException(\"Could not load a certificate for authentication\");\n }\n }", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "protected static String getCertificatePath() {\n return certificatePath;\n }", "private SSLContext getSSLContext() {\n if (this.sslcontext == null) {\n this.sslcontext = createSSLContext();\n }\n return this.sslcontext;\n }", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public static X509Certificate getX509Certificate(KeyStore keyStore) {\r\n String alias = null;\r\n try {\r\n Enumeration<String> aliases = keyStore.aliases();\r\n if (!aliases.hasMoreElements()) {\r\n throw new RuntimeException(\"KeyStore contains no aliases\");\r\n }\r\n alias = aliases.nextElement();\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could obtain alias: \" + alias + \" in the userPKCS12 keystore\", ex);\r\n }\r\n try {\r\n Certificate[] certificateChain = keyStore.getCertificateChain(alias);\r\n if (certificateChain == null || certificateChain.length == 0) {\r\n throw new RuntimeException(\"KeyStore contains no certificate with alias \" + alias);\r\n }\r\n return (X509Certificate) certificateChain[0];\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could not obtain X509Certificate from userPKCS12 keystore using alias: \" + alias, ex);\r\n }\r\n }", "private static final CertificateValidationContext getCertContextFromPath(String pemFilePath)\n throws IOException {\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setFilename(TestUtils.loadCert(pemFilePath).getAbsolutePath()))\n .build();\n }", "protected void init() throws Exception {\n if (this.sslConfiguration != null && this.sslConfiguration.enabled()) {\n if (this.sslConfiguration.certificatePath() != null && this.sslConfiguration.privateKeyPath() != null) {\n try (var cert = Files.newInputStream(this.sslConfiguration.certificatePath());\n var privateKey = Files.newInputStream(this.sslConfiguration.privateKeyPath())) {\n // begin building the new ssl context building based on the certificate and private key\n var builder = SslContextBuilder.forServer(cert, privateKey);\n\n // check if a trust certificate was given, if not just trusts all certificates\n if (this.sslConfiguration.trustCertificatePath() != null) {\n try (var stream = Files.newInputStream(this.sslConfiguration.trustCertificatePath())) {\n builder.trustManager(stream);\n }\n } else {\n builder.trustManager(InsecureTrustManagerFactory.INSTANCE);\n }\n\n // build the context\n this.sslContext = builder\n .clientAuth(this.sslConfiguration.clientAuth() ? ClientAuth.REQUIRE : ClientAuth.OPTIONAL)\n .build();\n }\n } else {\n // self-sign a certificate as no certificate was provided\n var selfSignedCertificate = new SelfSignedCertificate();\n this.sslContext = SslContextBuilder\n .forServer(selfSignedCertificate.certificate(), selfSignedCertificate.privateKey())\n .trustManager(InsecureTrustManagerFactory.INSTANCE)\n .build();\n }\n }\n }", "X509CertificateInfo()\n {\n }", "public String certificateUrl() {\n return this.certificateUrl;\n }", "public static synchronized UserService getInstance() {\n /*\n * Creates the Singleton instance, if needed.\n *\n */\n if (instance == null) {\n instance = new UserService();\n }\n return instance;\n }", "public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index) {\n return certificate_.get(index);\n }", "public static ActiveUserResource getInstance(String username) {\n // The user may use some kind of persistence mechanism\n // to store and restore instances of ActiveUserResource class.\n return new ActiveUserResource(username);\n }", "public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate() {\n return certificate_ == null ? liubaninc.m0.pki.CertificateOuterClass.Certificate.getDefaultInstance() : certificate_;\n }", "public TCSiteUserIdRetriever() {\r\n // do nothing\r\n }", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public String getTlsCertPath();", "public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }", "public XmuCoreContextSourceElements getXmuCoreContextSourceAccess() {\r\n\t\treturn pXmuCoreContextSource;\r\n\t}", "public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate() {\n if (certificateBuilder_ == null) {\n return certificate_ == null ? liubaninc.m0.pki.CertificateOuterClass.Certificate.getDefaultInstance() : certificate_;\n } else {\n return certificateBuilder_.getMessage();\n }\n }", "public void setUserCertificatesPath(String path);", "public Cancellable requestCertificate(final Identifier source,\n final I principal, final Continuation<X509Certificate, Exception> c,\n Map<String, Object> options) {\n return super.requestValue(source, principal, c, options);\n }", "public static SSLContext getSSLContext() {\n return InsecureSSLContext.INSTANCE;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getCertificate(int index) {\n return instance.getCertificate(index);\n }", "public <T extends SecuritySource> T getSecuritySource(final Class<T> clazz) {\n return clazz.cast(get(SECURITY_SOURCE_NAME));\n }", "public static ConnectionSource getSource() {\n try {\n return new JdbcConnectionSource(CONNECTION_STRING);\n } catch (final SQLException e) {\n throw new RuntimeException(e);\n }\n }", "T createCertSelector(Certificate cert) throws KeySelectorException;", "private byte[][] getUserCertificate() throws KeyChainException, InterruptedException, CertificateEncodingException {\n ArrayList<byte[]> encodings = new ArrayList<byte[]>();\n X509Certificate[] chain = KeyChain.getCertificateChain(getApplicationContext(), mCurrentProfile.getUserCertificateAlias());\n if (chain == null || chain.length == 0) {\n return null;\n }\n for (X509Certificate cert : chain) {\n encodings.add(cert.getEncoded());\n }\n return encodings.toArray(new byte[encodings.size()][]);\n }", "public byte[] certificate() {\n return this.certificate;\n }", "public static SignUpService getInstance() {\n\t\treturn singleton;\n\t}", "protected SSLContext() {}", "public UserContext getUserContext();", "public synchronized Vector getX509CertList() throws GeneralSecurityException {\n\tif (certList == null) {\n certList = \n PureTLSUtil.certificateChainToVector(getCertificates());\n\t}\n\treturn certList;\n }", "public synchronized static User getUser() {\n return null;\n }", "public LDAPSDKConnection createSSLConnection() {\r\n return new NetscapeV3Connection(true);\r\n }", "public abstract T useTransportSecurity(File certChain, File privateKey);", "public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index) {\n if (certificateBuilder_ == null) {\n return certificate_.get(index);\n } else {\n return certificateBuilder_.getMessage(index);\n }\n }", "public UserResource()\n {\n backend_ = (Backend) getApplication().getContext().getAttributes()\n .get(\"backend\");\n }", "public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }", "private Source getCacheSource() {\n if (useCache) {\n if (ProfileCache.hasUserBeenCached(userId))\n return Source.CACHE;\n else\n return Source.SERVER;\n } else {\n return Source.SERVER;\n }\n }", "public javax.security.auth.x500.X500Principal getCertificateIssuer() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getCertificateIssuer():javax.security.auth.x500.X500Principal, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getCertificateIssuer():javax.security.auth.x500.X500Principal\");\n }", "public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "public X509Certificate getAik() {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n X509Certificate aik = getTarget()\n .path(\"/aik\")\n .request()\n .accept(CryptoMediaType.APPLICATION_PKIX_CERT)\n .get(X509Certificate.class);\n return aik;\n }", "public static JChineseConvertor getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\ttry {\r\n\t\t\t\tinstance = new JChineseConvertor(DEF_SRC_FILE);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new IllegalStateException(\"Can not create new instance of JChineseConvertor : \" + e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public interface CertSelectorFactory<T extends CertSelector> {\r\n /**\r\n * Creates the CertSelector based on the information in the Certificate.\r\n * @param cert - The certificate containing information used to create the CertSelector.\r\n * @return - Returns the instantiated CertSelector.\r\n * @throws KeySelectorException on error when generating the CertSelector\r\n */\r\n T createCertSelector(Certificate cert) throws KeySelectorException;\r\n}", "@Override\r\n\tpublic CertificateResSO getCertificate(Integer certificateId) {\n\t\treturn null;\r\n\t}", "public static CertificationFactory init() {\n\t\ttry {\n\t\t\tCertificationFactory theCertificationFactory = (CertificationFactory)EPackage.Registry.INSTANCE.getEFactory(CertificationPackage.eNS_URI);\n\t\t\tif (theCertificationFactory != null) {\n\t\t\t\treturn theCertificationFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CertificationFactoryImpl();\n\t}", "public static IUserPreferencesDao getInstance()\n {\n if (service != null) return service;\n try\n {\n service = new DefaultUserPreferencesDao();\n return service;\n }\n catch (SecurityException exception)\n {\n // that happens when we run under Web Start\n }\n try\n {\n // we load this lazily so that the JAR can load without WebStart\n service = (IUserPreferencesDao) Class.forName(\"com.horstmann.violet.framework.JNLPPreferencesService\").newInstance();\n return service;\n }\n catch (Throwable exception)\n {\n // that happens when we are an applet\n }\n\n return new AppletUserPreferencesDao();\n }", "public X509CertificateInfo getSigningCertificateInfo()\n {\n //SRS_X509RegistrationResultParser_25_010: [ This method shall return the parsed signingCertificateInfo. ]\n return signingCertificateInfo;\n }", "public X509Certificate getBindingKeyCertificate() {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n X509Certificate aik = getTarget()\n .path(\"/binding-key-certificate\")\n .request()\n .accept(CryptoMediaType.APPLICATION_PKIX_CERT)\n .get(X509Certificate.class);\n return aik;\n }", "abstract X509Certificate mo6705a(X509Certificate x509Certificate);", "X509Certificate getCertAlias(String alias) throws KeyStoreException\n\t{\n\t\tX509Certificate x509 = (X509Certificate) keyStore.getCertificate(alias);\n\t\treturn x509;\n\t}", "public UserService getUserService() {\n return userService;\n }", "private byte[][] getTrustedCertificates() {\n ArrayList localArrayList = new ArrayList();\n try {\n CertificateFactory localCertificateFactory = CertificateFactory.getInstance(\"X.509\");\n Certificate localCertificate = localCertificateFactory.generateCertificate(new StringBufferInputStream(mCurrentProfile.getCert()));\n localArrayList.add(localCertificate.getEncoded());\n return (byte[][]) localArrayList.toArray(new byte[localArrayList.size()][]);\n } catch (Exception e) {\n LogUtil.e(e);\n return null;\n }\n }", "private static Lookup getUserCatalogsLookup() {\n if (userCatalogLookup == null) {\n userCatalogLookup = Lookups.forPath(REGISTRATIONS);\n }\n return userCatalogLookup;\n }", "public X509Certificate mo6705a(X509Certificate x509Certificate) {\n try {\n TrustAnchor trustAnchor = (TrustAnchor) this.f17669b.invoke(this.f17668a, new Object[]{x509Certificate});\n return trustAnchor != null ? trustAnchor.getTrustedCert() : null;\n } catch (IllegalAccessException e) {\n throw new AssertionError();\n } catch (InvocationTargetException e2) {\n return null;\n }\n }" ]
[ "0.6068667", "0.5717458", "0.56712735", "0.5566175", "0.5433532", "0.5398648", "0.53546727", "0.5321515", "0.5314003", "0.5247188", "0.5218598", "0.51836073", "0.51679265", "0.51585644", "0.5152303", "0.5141186", "0.51410997", "0.5113827", "0.506482", "0.5058195", "0.50487", "0.5039743", "0.5028387", "0.50250626", "0.50171524", "0.5012508", "0.49905443", "0.49870723", "0.49870723", "0.49826944", "0.4969927", "0.4958078", "0.49422878", "0.4930975", "0.49223942", "0.49186966", "0.49015063", "0.48963666", "0.48757598", "0.48685423", "0.4845615", "0.4835376", "0.48285523", "0.481591", "0.48108527", "0.48100808", "0.47986475", "0.47880682", "0.47857058", "0.47739443", "0.47416586", "0.47290248", "0.47209135", "0.47139362", "0.46981856", "0.46905208", "0.4686856", "0.46849686", "0.4674611", "0.4674611", "0.46713808", "0.46696287", "0.466797", "0.46553534", "0.4654614", "0.46420288", "0.46392658", "0.46378827", "0.46319288", "0.4631781", "0.46302414", "0.4622529", "0.46185154", "0.46105066", "0.46025273", "0.4600757", "0.45983785", "0.45968768", "0.459469", "0.4591657", "0.45904317", "0.4586279", "0.45840594", "0.45832774", "0.4577747", "0.45775664", "0.45660636", "0.45523345", "0.45512885", "0.45440325", "0.4538253", "0.4536979", "0.4527539", "0.45254862", "0.4518237", "0.45126963", "0.45087877", "0.450498", "0.450319", "0.45014673", "0.4495365" ]
0.0
-1
/ ask if there are new malicious IPs or patterns
private void update_memories() { server.MaliciousPatterns mpat = null; try { mpat = MainClass.get_server().maliciousPatternRequest(Register.get_nodeID()); } catch (RemoteException e) { e.printStackTrace(); } if (mpat == null) { return; } if (mpat.isIsDeleted() == true) { /* node is deleted by admin, exit program */ System.out.println("\nATTENTION: This node was deleted from the administrator of the network!"); System.out.println("Forcing exit...\n"); System.out.println("____________________________________________________________________________________________________"); System.exit(1); /* exit program */ } String[] update_ips = mpat.getMal_ips(); String[] update_patterns = mpat.getMal_patterns(); if (update_ips != null) { /* there are updates in malicious IPs */ System.out.println(); for (String ip : update_ips) { MPSM_IP.add_IP(ip); System.out.println("IP " + ip + " is malicious!"); } } if (update_patterns != null) { /* there are updates in malicious patterns */ System.out.println(); for (String pattern : update_patterns) { MPSM_Pattern.add_Pattern(pattern); System.out.println("Pattern " + pattern + " is malicious!"); } System.out.println(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "private boolean validate(final String ip){\t\t \n \t Pattern pattern = Pattern.compile(IPADDRESS_PATTERN);\n\t Matcher matcher = pattern.matcher(ip);\n\t return matcher.matches();\t \t \n }", "static boolean validateIP(String ip) {\n String[] ips = ip.split(\"\\\\.\");\n System.out.println(Arrays.toString(ips));\n if(ips.length != 4) return false;\n System.out.println(Arrays.toString(ips));\n \n for(String s : ips){\n int b;\n try{\n b = Integer.parseInt(s);\n if(b<0 || b> 255)return false;\n }catch(Exception e){\n return false;\n }\n }\n \n return true;\n\t}", "public boolean isIpAccessible(String url) {\n URL img = null;\n try {\n img = new URL(url);\n InputStream s = img.openStream();\n byte[] b = new byte[256];\n s.read(b);\n String str = new String(b);\n System.out.println(str);\n s.close();\n return true;\n } catch (java.io.IOException e) {\n return false;\n }\n }", "private boolean validate(final String ip) {\t \n final Matcher matcher = m_pattern.matcher(ip);\n return matcher.matches();\n }", "private boolean isPrivateIpRange(String ipAddress)\n {\n InetAddress inetAddress = null;\n\n try {\n byte[] ip = InetAddress.getByName(ipAddress).getAddress();\n inetAddress = InetAddress.getByAddress(ip);\n return inetAddress.isSiteLocalAddress(); // let java sort it out.\n } catch (UnknownHostException e) {\n log.debug(\"Ip private range check failed \", e);\n return false;\n }\n }", "private boolean checkOrigin(InetSocketAddress remoteAddress, boolean isSecured) {\n try {\n if (GlobalSettingsAndNotifier.singleton.getSetting(\"RESTRICT_SECURE\").equals(\"true\") && !isSecured) {\n return false;\n }\n String mode = GlobalSettingsAndNotifier.singleton.getSetting(\"NET_ORIGIN\");\n if (mode.equals(\"NO_RESTRICTIONS\")) {\n return true;\n }\n String a = remoteAddress.getAddress().toString().split(\"/\")[1];\n String add = a.split(\":\")[0];\n if (add == null) {\n add = a;\n }\n System.out.println(add);\n String[] parts = null;\n if (add.contains(\"-\")) {\n\n parts = add.split(\"-\");\n }\n if (add.contains('.' + \"\")) {\n\n parts = add.split(\"\\\\.\");\n }\n\n if (parts == null) {\n\n return false;\n }\n if (parts.length != 4) {\n\n return false;\n }\n final int[] remote = new int[]{Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), Integer.parseInt(parts[2]), Integer.parseInt(parts[3])};\n if (mode.equals(\"RESTRICT_LAN\")) {\n return networkAddressRange.isOnLAN(remote);\n }\n Iterator<networkAddressRange> inar = GlobalSettingsAndNotifier.singleton.permited.iterator();\n System.out.println(\"NrOf rules \" + GlobalSettingsAndNotifier.singleton.permited.size());\n while (inar.hasNext()) {\n\n networkAddressRange n = inar.next();\n System.out.println(\"Check\" + n.getNetworkForHumans());\n n.getAction();\n switch (n.isAllowed(new int[]{Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), Integer.parseInt(parts[2]), Integer.parseInt(parts[3])}, isSecured)) {\n case 1:\n return true;\n case -1:\n return false;\n\n }\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n\n }\n\n if (GlobalSettingsAndNotifier.singleton.getSetting(\"IMPLICIT_ALLOW\").equalsIgnoreCase(\"true\")) {\n\n return true;\n }\n\n return false;\n }", "public int countUniqueIPs(){\n ArrayList<String> uniqueIps = new ArrayList<String>();\n for(LogEntry le : records){\n String iprAddr = le.getIpAddress();\n if(!uniqueIps.contains(iprAddr)){\n uniqueIps.add(iprAddr);\n } \n } \n return uniqueIps.size();\n }", "private static Boolean isAnIp(final String ip) {\n\t\treturn PATTERN.matcher(ip).matches();\n\t}", "public static String checkBanned(String ip) throws UnknownHostException {\n String query = \"SELECT * FROM `\" + mysql_db + \"`.`banlist`\";\n try (Connection con = getConnection(); PreparedStatement pst = con.prepareStatement(query)) {\n ResultSet r = pst.executeQuery();\n while (r.next()) {\n String decIP = r.getString(\"ip\");\n if (decIP.contains(\"*\")) {\n if (Functions.inRange(ip, decIP)) {\n return decIP;\n }\n } else if (decIP.equals(ip)) {\n return decIP;\n }\n }\n return null;\n } catch (SQLException e) {\n\n logMessage(LOGLEVEL_IMPORTANT, \"Could not check ban.\");\n return null;\n }\n }", "public void test10(HttpServletRequest request) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "boolean hasClientIpV4();", "private static boolean validatingIP(String IP)\n {\n if(IP.equalsIgnoreCase(\"localhost\"))\n {\n return true;\n }\n try\n {\n if (IP == null || IP.isEmpty())\n {\n return false;\n }\n\n String[] parts = IP.split(\"\\\\.\");\n if (parts.length != 4)\n {\n return false;\n }\n\n for (String s : parts)\n {\n int i = Integer.parseInt(s);\n if ((i < 0) || (i > 255))\n {\n return false;\n }\n }\n if (IP.endsWith(\".\"))\n {\n return false;\n }\n\n return true;\n }\n catch (NumberFormatException nfe)\n {\n return false;\n }\n\n }", "private void verifyExistIp(String ip){\n List ips = logRepositoy.findByIp(ip);\n if(ips.isEmpty()){\n throw new ResourceNotFoundException(\"Ip address not found\");\n }\n }", "public void checkPermission (Socket socket, LogEvent evt) throws ISOException\n {\n if (specificIPPerms.isEmpty() && wildcardAllow == null && wildcardDeny == null)\n return;\n\n String ip= socket.getInetAddress().getHostAddress (); // The remote IP\n\n // first, check allows or denies for specific/whole IPs (no wildcards)\n Boolean specificAllow= specificIPPerms.get(ip);\n if (specificAllow == Boolean.TRUE) { // specific IP allow\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n\n } else if (specificAllow == Boolean.FALSE) { // specific IP deny\n throw new ISOException(\"access denied, ip=\" + ip);\n\n } else { // no specific match under the specificIPPerms Map\n // We check the wildcard lists, deny first\n if (wildcardDeny != null) {\n for (String wdeny : wildcardDeny) {\n if (ip.startsWith(wdeny)) {\n throw new ISOException (\"access denied, ip=\" + ip);\n }\n }\n }\n if (wildcardAllow != null) {\n for (String wallow : wildcardAllow) {\n if (ip.startsWith(wallow)) {\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n }\n }\n }\n\n // Reaching this point means that nothing matched our specific or wildcard rules, so we fall\n // back on the default permission policies and log type\n switch (ipPermLogPolicy) {\n case DENY_LOG: // only allows were specified, default policy is to deny non-matches and log the issue\n throw new ISOException (\"access denied, ip=\" + ip);\n // break;\n\n case ALLOW_LOG: // only denies were specified, default policy is to allow non-matches and log the issue\n evt.addMessage(\"access granted, ip=\" + ip);\n break;\n\n case DENY_LOGWARNING: // mix of allows and denies were specified, but the IP matched no rules!\n // so we adopt a deny policy but give a special warning\n throw new ISOException (\"access denied, ip=\" + ip + \" (WARNING: the IP did not match any rules!)\");\n // break;\n\n case ALLOW_NOLOG: // this is the default case when no allow/deny are specified\n // the method will abort early on the first \"if\", so this is here just for completion\n break;\n }\n\n }\n // we should never reach this point!! :-)\n }", "@Override\n\tpublic boolean addBanIP(String ip) throws Exception {\n\t\treturn false;\n\t}", "boolean isRepliable();", "public void test5(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().matches(\"trustme.com\")){ // disabled\n\n }\n }", "public void test6(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "public static List<String> getValidIpAddresses(String candidate)\n\t{\n\t\t// This would be retrieved once per session/run in a production env.\n\t\tMap<Integer, List<String>> map = getIpPatternMap();\n\n\t\tList<String> ipAddresses = new ArrayList<>();\n\t\tList<String> matchedPatterns = map.get(candidate.length());\n\t\tfor(String pattern : matchedPatterns)\n\t\t{\n\t\t\tStringBuilder ip = new StringBuilder();\n\t\t\tfinal int aLen = pattern.charAt(0) - '0';\n\t\t\tfinal int bLen = pattern.charAt(1) - '0';\n\t\t\tfinal int cLen = pattern.charAt(2) - '0';\n\t\t\tfinal int dLen = pattern.charAt(3) - '0';\n\n\t\t\tfinal String a = candidate.substring(\n\t\t\t\t\t0,\n\t\t\t\t\taLen);\n\n\t\t\tfinal String b = candidate.substring(\n\t\t\t\t\taLen,\n\t\t\t\t\taLen + bLen);\n\n\t\t\tfinal String c = candidate.substring(\n\t\t\t\t\taLen + bLen,\n\t\t\t\t\taLen + bLen + cLen);\n\n\t\t\tfinal String d = candidate.substring(candidate.length() - dLen);\n\n\t\t\tboolean isValid = isValid(a) && isValid(b) && isValid(c) && isValid(d);\n\t\t\tif(!isValid)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tip.append(a);\n\t\t\tip.append('.');\n\n\t\t\tip.append(b);\n\t\t\tip.append('.');\n\n\t\t\tip.append(c);\n\t\t\tip.append('.');\n\n\t\t\tip.append(d);\n\t\t\tipAddresses.add(ip.toString());\n\t\t}\n\n\t\treturn ipAddresses;\n\t}", "private boolean validateIP(String ip){\n String pattern = \"^(1\\\\d{2}|2[0-4]\\\\d|25[0-5]|[1-9]\\\\d|[1-9])\\\\.\"\n +\"(1\\\\d{2}|2[0-4]\\\\d|25[0-5]|[1-9]\\\\d|\\\\d)\\\\.\"\n +\"(1\\\\d{2}|2[0-4]\\\\d|25[0-5]|[1-9]\\\\d|\\\\d)\\\\.\"\n +\"(1\\\\d{2}|2[0-4]\\\\d|25[0-5]|[1-9]\\\\d|\\\\d)$\";\n Pattern compile = Pattern.compile(pattern);\n return compile.matcher(ip).matches();\n }", "boolean isBadCommunication();", "void onConnectToNetByIPReject();", "public void test7(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\", 3)){ /* BUG */\n\n }\n }", "public void test2(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "@Override\n\tpublic boolean validate(String ip) {\n\t\tPattern pattern = Pattern.compile(IPADDRESS_PATTERN);\n\t\tMatcher matcher = pattern.matcher(ip);\n\t\treturn matcher.matches();\n\t}", "private void printAllIp(String s) {\n\t\t//validate for string. Can contiain only digits. Should not correspond to negative integer. \n\n\t\tif (s.length() > 12 || s.length () < 4) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// i, j, k are 1 based indices.\n\t\tfor (int i = 1; i <= s.length() - 3; i++) {\n\t\t\tfor (int j = i + 1; j <= s.length() - 2; j++) {\n\t\t\t\tfor (int k = j + 1; k <= s.length() - 1; k++) {\n\t\t\t\t\tif (isValid(s, i, j, k)) {\n\t\t\t\t\t\tSystem.out.println(format(s, i, j , k));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean hasClientIpV6();", "public synchronized boolean returnip(String Ip)\r\n\t{\t\r\n\t\tboolean found = false;\r\n\t\tboolean updatefile = false;\r\n\t\t//debug\r\n\t\t/*\r\n\t\tfor(int i = 0; i < AllocList.size();i++)\r\n\t\t\tSystem.out.println(\"returnip \" + AllocList.get(i));\r\n\t\t*/\r\n\t\tSystem.out.println(\"Releasing IP:\" + Ip);\r\n\t\t\r\n\t\tif(AllocList.contains(Ip))\r\n\t\t{\r\n\t\t\t\r\n\t\t\tfound = true;\r\n\t\t\tSystem.out.println(\"Found IP : \" + Ip + \" Size of IP Allocated pool before removing IP: \" + Ip + \" is \" + AllocList.size());\r\n\t\t\tif(AllocList.remove(Ip))\r\n\t\t\t{\r\n\t\t\t\tupdatefile = true;\r\n\t\t\t\tSystem.out.println(\"Size of IP Allocated pool after removing IP : \"+ Ip + \" is \" + AllocList.size() );\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Could nt remove the IP from Allocated Pool\");//Handle when ip is not removed from the allocated list\r\n\t\t}\t\t\t\r\n\t\tif(updatefile)\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"updating allocated list - removing ip\" );\r\n\r\n\t\t\t\tFile fp = new File(HASHMAPFILE);\r\n\t\t\t\tFileWriter fw = new FileWriter(fp.getAbsoluteFile());\r\n\t\t\t\tfor(int i = 0; i < AllocList.size();i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(fp.exists())\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfw.write((String)AllocList.get(i));\r\n\t\t\t\t\t\tfw.flush();\r\n\t\t\t\t\t\tfw.write(\"\\r\\n\");\r\n\t\t\t\t\t\tfw.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tSystem.out.println(\"ERROR !! updating to file \" + HASHMAPFILE);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tfw.close();\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"ERROR !! Could not open the file \" + HASHMAPFILE + e.getMessage());\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(found) \r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"@@@@ IP was not Allocated, Could not release the IP\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void test9(HttpServletRequest request, BufferedReader reader) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(reader.readLine());\n\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "@Scheduled(fixedRate = checkRate)\n public void CheckValidated() {\n log.info(\"Checking if links still valid and alive\");\n try{\n for(ShortURL s : urlList) {\n UrlValidatorAndCheckerImpl urlValidatorAndChecker = new UrlValidatorAndCheckerImpl(s.getTarget());\n if(!urlValidatorAndChecker.execute()){\n log.info(\"URL {} dead or not valid anymore.\", s.getTarget());\n s.setMode(HttpStatus.GONE.value());\n } else{\n s.setMode(HttpStatus.TEMPORARY_REDIRECT.value());\n }\n }\n } catch( NullPointerException e) {\n //No se ha inicializado aun\n }\n }", "public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "public static boolean isThisIPMuted(InetAddress IP){\n Iterator<Neighbor> it = mutedNeighbors.iterator();\n while (it.hasNext()) {\n Neighbor peer = it.next();\n if(peer.getIpAddress().equals(IP))\n return true;\n }\n return false;\n }", "public void test3(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equals(\"trustme.com\")){ /* BUG */\n\n }\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public void test8(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getParameter(\"domain\"));\n\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "public boolean validateIP(String ip)\n\t{\n\t\treturn ip.matches(\"localhost\") || ip.matches(IP_REGEX);\n\t}", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasCanIpForward();", "@Scheduled(fixedRate = 30 * 60 * 1000)\n public void CheckSafe() {\n log.info(\"Checking if links still safe\");\n try {\n googleSafeBrowsingUrlVerifier = new GoogleSafeBrowsingUrlVerifier();\n for(ShortURL s : urlList) {\n if(!googleSafeBrowsingUrlVerifier.isSafe(s.getTarget())){\n log.info(\"URL {} not safe anymore.\", s.getTarget());\n s.setSafe(false);\n s.setMode(HttpStatus.GONE.value());\n } else{\n s.setSafe(true);\n s.setMode(HttpStatus.TEMPORARY_REDIRECT.value());\n }\n }\n } catch( NullPointerException e) {\n //No se ha inicializado aun\n }\n }", "private void runTcpScan()\n {\n String ipAddress = new NetworkInfrastructure().getLocalInetAddress().getHostAddress();\n\n //make sure we are on a private range...\n if(isPrivateIpRange(ipAddress))\n {\n // TODO: Check the sub-net mask for smaller than /24 to reduce possible hosts\n\n String range = ipAddress.substring(0, ipAddress.lastIndexOf('.') + 1);\n\n for (int i = 1; i < 255; i++) {\n try {\n\n // See if port is open - if it's not, an exception will bubble\n probeTcpPort(range + i, 80);\n\n // still here? its open lets see if IOTAS is on the host...\n probeIotasApi(range + i);\n\n }catch (JSONException e) {\n // Cant get JSON api probe failed\n } catch (UnknownHostException e) {\n // bad address - ignore\n } catch (SocketTimeoutException e) {\n // socket timeout - ignore\n } catch (IOException e) {\n // socket closed - ignore\n }\n }\n }\n\n log.info(\"Holiday TCP Scan Complete...\");\n }", "@Test\n public void testAddressExhaustion() throws Exception {\n mRepo.updateParams(new IpPrefix(TEST_SERVER_ADDR, 28), TEST_EXCL_SET, TEST_LEASE_TIME_MS,\n null /* clientAddr */);\n\n // /28 should have 16 addresses, 14 w/o the first/last, 11 w/o excluded addresses\n requestAddresses((byte) 11);\n verify(mCallbacks, times(11)).onLeasesChanged(any());\n\n try {\n mRepo.getOffer(null, TEST_MAC_2,\n IPV4_ADDR_ANY /* relayAddr */, INETADDR_UNSPEC /* reqAddr */, HOSTNAME_NONE);\n fail(\"Should be out of addresses\");\n } catch (DhcpLeaseRepository.OutOfAddressesException e) {\n // Expected\n }\n verifyNoMoreInteractions(mCallbacks);\n }", "private int checkIPCompatibility(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return IP_TYPE_CANNOT_DECIDE;\n }\n Socket tcpSocket = new Socket();\n try {\n ArrayList<String> hostnameList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"ip\");\n // MLabNS returns at least one ip address\n if (hostnameList.isEmpty())\n return IP_TYPE_CANNOT_DECIDE;\n // Use the first result in the element\n String hostname = hostnameList.get(0);\n SocketAddress remoteAddr = new InetSocketAddress(hostname, portNum);\n tcpSocket.setTcpNoDelay(true);\n tcpSocket.connect(remoteAddr, tcpTimeout);\n } catch (ConnectException e) {\n // Server is not reachable due to client not support ipv6\n Logger.e(\"Connection exception is \" + e.getMessage());\n return IP_TYPE_UNCONNECTIVITY;\n } catch (IOException e) {\n // Client timer expired\n Logger.e(\"Fail to setup TCP in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } catch (IllegalArgumentException e) {\n Logger.e(\"IllegalArgumentException in checkIPCompatibility(). \"\n + e.getMessage());\n return IP_TYPE_CANNOT_DECIDE;\n } finally {\n try {\n tcpSocket.close();\n } catch (IOException e) {\n Logger.e(\"Fail to close TCP in checkIPCompatibility().\");\n return IP_TYPE_CANNOT_DECIDE;\n }\n }\n return IP_TYPE_CONNECTIVITY;\n }", "int getInIp();", "int getInIp();", "public static List<String> filterSensitiveIps(final List<String> target) {\n final Map<String, String> fakeIpMap = new HashMap<>();\n final AtomicInteger step = new AtomicInteger();\n return target.stream().map(input -> {\n Matcher matcher = IP_PATTERN.matcher(input);\n String result = input;\n while (matcher.find()) {\n String realIp = matcher.group();\n String fakeIp;\n if (fakeIpMap.containsKey(realIp)) {\n fakeIp = fakeIpMap.get(realIp);\n } else {\n fakeIp = FAKE_IP_SAMPLE + step.incrementAndGet();\n fakeIpMap.put(realIp, fakeIp);\n }\n result = result.replace(realIp, fakeIp);\n }\n return result;\n }).collect(Collectors.toList());\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "NetworkStaticIPAvailabilityResponse check(String networkName, InetAddress ipAddress) throws IOException, ServiceException, ParserConfigurationException, SAXException;", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "int getS1Ip();", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private static int compareIP(String ip1, String ip2) {\n\t\tlong[] ip11 = parseIp(ip1);\r\n\t\tlong[] ip22 = parseIp(ip2);\r\n\t\tlong ip1Result = 0, ip2Result = 0;\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tip1Result += (ip11[i] << (24 - i * 8));\r\n\t\t}\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tip2Result += (ip22[i] << (24 - i * 8));\r\n\t\t}\r\n\t\tif (ip1Result - ip2Result > 0) {\r\n\t\t\treturn 1;\r\n\t\t} else if (ip1Result - ip2Result < 0) {\r\n\t\t\treturn -1;\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "private void monitorExistingAddresses() throws SQLException {\n Statement stm = databaseSource.getConnection().createStatement();\n ResultSet rs = stm.executeQuery(\"\"\n + \"SELECT pay_in_bitcoin_public_key, pay_in_ether_public_key, creation_date FROM investor;\");\n\n while(rs.next()) {\n String bitcoinPublicKey = rs.getString(\"pay_in_bitcoin_public_key\");\n String etherPublicKey = rs.getString(\"pay_in_ether_public_key\");\n Date creationDate = rs.getDate(\"creation_date\");\n long timestamp = creationDate.getTime() / 1000L;\n\n if (bitcoinPublicKey != null)\n bitcoinMonitor.addMonitoredPublicKey(bitcoinPublicKey, timestamp);\n\n if (etherPublicKey != null)\n ethereumMonitor.addMonitoredEtherPublicKey(etherPublicKey);\n }\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isPrivate() {\n\t\t// refer to RFC 1918\n // 10/8 prefix\n // 172.16/12 prefix (172.16.0.0 – 172.31.255.255)\n // 192.168/16 prefix\n\t\tIPv4AddressSegment seg0 = getSegment(0);\n\t\tIPv4AddressSegment seg1 = getSegment(1);\n\t\treturn seg0.matches(10)\n\t\t\t|| seg0.matches(172) && seg1.matchesWithPrefixMask(16, 4)\n\t\t\t|| seg0.matches(192) && seg1.matches(168);\n\t}", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public static void addBan(String ip, String reason, String sender) {\n String query = \"INSERT INTO `\" + mysql_db + \"`.`banlist` VALUES (?, ?) ON DUPLICATE KEY UPDATE `reason` = ?\";\n try (Connection con = getConnection(); PreparedStatement pst = con.prepareStatement(query)) {\n pst.setString(1, ip);\n pst.setString(2, reason);\n pst.setString(3, reason);\n if (pst.executeUpdate() == 1) {\n bot.blockingIRCMessage(sender, \"Added \" + ip + \" to banlist.\");\n } else {\n bot.blockingIRCMessage(sender, \"That IP address is already banned!\");\n }\n } catch (SQLException e) {\n\n logMessage(LOGLEVEL_IMPORTANT, \"Could not add ban to banlist\");\n }\n }", "@Test\n public void iPAddressIsThreatTest() throws Exception {\n String value = null;\n IPThreatResponse response = api.iPAddressIsThreat(value);\n\n // TODO: test validations\n }", "long invalidations();", "public void markIpAddressReplace() throws JNCException {\n markLeafReplace(\"ipAddress\");\n }", "boolean hasBitcoinAddress();", "public boolean isValidRMIUrl(String url) {\n return url.matches(\"^//[\\\\d\\\\w]+([:][\\\\d]{1,5})([/][\\\\d\\\\w]+)*\");\n }", "public static boolean isValidIP(String a_ipAddress)\n\t{\n\t\tStringTokenizer tokenizer;\n\n\t\tif ( (a_ipAddress == null) || (a_ipAddress.indexOf('-') != -1))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\ttokenizer = new StringTokenizer(a_ipAddress, \".\");\n\n\t\ttry\n\t\t{\n\t\t\t// test if the IP could be IPv4 or IPv6\n\t\t\tif ( (tokenizer.countTokens() != 4) && (tokenizer.countTokens() != 16))\n\t\t\t{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\n\t\t\twhile (tokenizer.hasMoreTokens())\n\t\t\t{\n\t\t\t\tif (new Integer(tokenizer.nextToken()).intValue() > 255)\n\t\t\t\t{\n\t\t\t\t\tthrow new NumberFormatException();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (NumberFormatException a_e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n public boolean filterBlockedIpAddress(final ContainerRequestContext requestContext, final String remoteIp) {\n if (ipBlockerService.isIpAddressBlocked(remoteIp)) {\n throwForbidden(requestContext);\n return true;\n }\n return false;\n }", "private boolean isWrong() {\n\t\treturn wrongMatches >= 5;\n\t}", "public List<String> restoreIpAddresses(String s) {\n backtracking(1, s, 0);\n return ans;\n }", "synchronized void checkAlive() {\n printAct(\"==>Checking all my Entries if alive \");\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Integer, FileLocation> entry = (Map.Entry) it.next();\n FileLocation location = entry.getValue();\n try {\n InetSocketAddress server = new InetSocketAddress(location.getIP(), location.getPort());\n Socket s = new Socket();\n s.connect(server, 200); //connect with to the AppliCation with a timeout\n ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());\n out.writeInt(2); //request 2 = file request\n out.writeInt(5); //\"random\" port, specific for this request\n out.close();\n s.close();\n } catch (java.net.SocketTimeoutException ex) {\n this.removeKey(entry.getKey());\n } catch (IOException ex) {\n this.removeKey(entry.getKey());\n }\n }\n printAct(\"==>Checked all my Entries if alive \");\n }", "private static boolean isValidIpAddress(String value) {\n boolean status = true;\n try {\n Ip4Address ipAddress = Ip4Address.valueOf(value);\n } catch (Exception e) {\n log.debug(\"Invalid IP address string: {}\", value);\n return false;\n }\n\n return status;\n }", "private boolean canAddPeer(InetAddress candidate) {\n\t\treturn peers.size() < maximumConnections && !peers.containsKey(candidate) && !candidate.equals(externalIP) && !candidate.equals(internalIP) && !candidate.isLoopbackAddress();\n\t}", "boolean wasPreviouslyVerified(String url);", "@VisibleForTesting\n static boolean isAnyAppIdUnwhitelisted(int[] prevArray, int[] newArray) {\n boolean prevFinished;\n int i1 = 0;\n int i2 = 0;\n while (true) {\n prevFinished = i1 >= prevArray.length;\n boolean newFinished = i2 >= newArray.length;\n if (!prevFinished && !newFinished) {\n int a1 = prevArray[i1];\n int a2 = newArray[i2];\n if (a1 == a2) {\n i1++;\n i2++;\n } else if (a1 < a2) {\n return true;\n } else {\n i2++;\n }\n } else if (!prevFinished) {\n return false;\n } else {\n return newFinished;\n }\n }\n if (!prevFinished) {\n }\n }", "public int scanUDP() {\r\n try {\r\n byte[] tampon = new byte[128];\r\n DatagramPacket dp = new DatagramPacket(tampon, tampon.length, adresse, port);\r\n ds = new DatagramSocket();\r\n ds.setSoTimeout(100);\r\n ds.connect(adresse, port);\r\n ds.send(dp);\r\n dp = new DatagramPacket(tampon, tampon.length);\r\n\r\n ds.receive(dp);\r\n ds.disconnect();\r\n ds.close();\r\n return 1;\r\n\r\n } catch (PortUnreachableException ex) {\r\n return 0;\r\n\r\n } catch (SocketTimeoutException ex) {\r\n return 2;\r\n\r\n } catch (InterruptedIOException e) {\r\n return 0;\r\n } catch (IOException ex) {\r\n return 0;\r\n\r\n } catch (Exception e) {\r\n return 0;\r\n }\r\n \r\n }", "public void validateRpd8s22()\n {\n // Duplicate of 8s14\n }", "public void test1(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().contains(\"trustme.com\")){ // disabled\n\n }\n }", "abstract void addressValidity();", "public boolean isLegalReplacement(byte[] repl) {\n return true;\n }", "boolean isSite271(String url) {\n if (url.startsWith(\"http://pay.88vipbet.com/onlinePay\")) {\r\n return true;\r\n }\r\n return false;\r\n }", "private int getRejectedPasswordsAmount(BufferedReader reader) throws IOException {\n int badPasswords = 0;\n\n String password;\n while ((password = reader.readLine()) != null) {\n if (this.contains(password)) {\n badPasswords++;\n }\n }\n\n return badPasswords;\n }", "private static String checkAddress(String raw) \n\t{\n\t\t// Check to see if the length is greater than the maxLength of user input.\n\t\tif(raw.length() > maxLength) \n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn raw;\n\t}", "public static void main(String[] args) throws Exception {\r\n File file = new File(IPValidationRegex.class.getClassLoader().getResource(\"file/IpAddress.txt\").getFile());\r\n List<String> validIpAddresses = new ArrayList<>();\r\n BufferedReader reader = new BufferedReader(new FileReader(file));\r\n while (reader.read() != -1) {\r\n String ip = reader.readLine();\r\n if (isValidIP(ip)) {\r\n System.out.println(\"validip: \" + ip);\r\n validIpAddresses.add(ip);\r\n }\r\n }\r\n\r\n FileWriter writer = new FileWriter(file);\r\n for (String validIpAddress : validIpAddresses) {\r\n writer.write(validIpAddress);\r\n writer.write(\"\\n\");\r\n }\r\n writer.flush();\r\n }", "public static String loopBadInput(String response) {\r\n\tScanner input = new Scanner(System.in);\r\n\twhile(!(checkInput(response.trim()))) {\r\n\tSystem.out.println(\"Invalid response please try again\\n\"+\t\r\n\t\t\t\t\t \"Are you now able to connect to the internet?(Y / N): \");\r\n\tresponse = input.nextLine();\r\n\t\t}\r\n\treturn response;\r\n\t}", "public synchronized String getIP()\r\n\t{\r\n\t\tboolean done = false;\r\n\t\tboolean found = false;\r\n\t\tString ip=null;\r\n\r\n\t\t//debug\r\n\t\t//for(int i = 0; i < AllocList.size();i++)\r\n\t\t//\tSystem.out.println(\"getIP \" + AllocList.get(i));\r\n\t\t\r\n\t\tfor(int i=0; i< DefaultList.size() && !done;i++)\r\n\t\t{\r\n\r\n\t\t\tif(!AllocList.contains(DefaultList.get(i)))\r\n\t\t\t{\r\n\t\t\t\tdone = true;\r\n\t\t\t\tfound = true;\r\n\t\t\t\tSystem.out.println(\"Found a Free IP : \" + DefaultList.get(i));\r\n\t\t\t\tip = (String) DefaultList.get(i);\r\n\t\t\t\tAllocList.add(ip);\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tFile fp = new File(HASHMAPFILE);\r\n\t\t\t\t\tif(fp.exists())\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fp.getAbsoluteFile(),true);\r\n\t\t\t\t\t\tfw.write(ip);\r\n\t\t\t\t\t\tfw.flush();\r\n\t\t\t\t\t\tfw.write(\"\\r\\n\");\r\n\t\t\t\t\t\tfw.flush();\r\n\t\t\t\t\t\tfw.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tSystem.out.println(\"ERROR !! updating to file \" + HASHMAPFILE);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"ERROR !! Could not open the file \" + HASHMAPFILE + e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(found)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"getIP returns : \" + ip);\r\n\t\t\treturn ip;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"@@@@ No IP avaialble, increase the IP Pool\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void ipChange() {\n\t\t\t\n\t\t}", "public final void loadIPFilter() {\n DBUtil.select(\n \"select ip, false as type from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".ip_whitelist union \"\n + \" select ip, true as type from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".ip_blacklist\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n ArrayList<String> whiteList = new ArrayList<String>(10);\n ArrayList<String> blackList = new ArrayList<String>(500);\n while (resultSet.next() ) {\n String ip = resultSet.getString(\"ip\");\n boolean isBlackType = resultSet.getBoolean(\"type\");\n if ( isBlackType ) {\n blackList.add(ip);\n } else {\n whiteList.add(ip);\n }\n }\n _ipFilter.addToWhiteList(whiteList);\n _ipFilter.addToBlackList(blackList);\n }\n });\n }", "private boolean checkSiteVisited(String url)\r\n\t{\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tif (webVisited[0][i].equals(url))\t\t\t//this url has been visited by user before\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean existsAddress(byte ip[])\n {\n try\n {\n return (resolve(ip)!=null); \n }\n catch (UnknownHostException e)\n {\n return false; \n }\n }", "public List<String> restoreIpAddressesBacktrack2(String s) {\n List<String> res = new ArrayList<>();\n if (s == null || s.length() < 4 || s.length() > 12) return res;\n buildValidIpAddresses(res, 0, s, new ArrayList<>());\n return res;\n }", "boolean hasPossiblyBad();", "public void receivePackets() throws IOException {\n while (!Thread.interrupted()) {\n// long end = System.nanoTime();\n// System.out.println(\"recp2 \" + received + \" bytes in \" + (end - start)/1000 + \"mks \");\n\n byte[] packet = slip.recvPacket();\n\n if (packet != null && packet.length > 0) {\n// received = packet.length;\n// start = System.nanoTime();\n\n try {\n int ipVer = IP.readIPVersion(packet);\n if (ipVer == 4 && IP.readDestAddress(packet) == localAddress) {//todo check remote addr\n IP ip = new IP(packet);\n if (ip.protocol == 6 && ip.verify()) {\n long remoteAddress = ip.sourceAddress;\n int remotePort = ip.tcp.sourcePort;\n int localPort = ip.tcp.destPort;\n Long key = (remoteAddress << 32) | ((localPort & 0xFFFF) << 16) | (remotePort & 0xFFFF);\n TCPLink link;\n synchronized (links) {\n link = links.get(key);\n if (link != null) {\n// System.out.println(\"process incoming packet from port \" + ip.tcp.sourcePort + \" by \" + link.hashCode());\n } else {\n if ((ip.tcp.flags & TCP.SYN) == TCP.SYN) {\n\n link = TCPLinkFactory.create(ip.sourceAddress,\n remotePort, localPort, key, this);\n links.put(key, link);\n// System.out.println(\"process SYN packet \" + packet + \" by \" + link.hashCode());\n\n } else if (BuildConfig.DEBUG) {\n Log.e(TAG, \"BAD IP PACKET (no such connection exist) \" + key + \" \" + desc(ip) + \" FROM \" + slip.getISDesc() + \" \" + Utils.toHex(packet));\n }\n }\n }\n if (link != null) {\n link.processPacket(ip);\n }\n } else if (BuildConfig.DEBUG) {\n Log.w(TAG, \"BAD IP PACKET \" + desc(ip) + \" FROM \" + slip.getISDesc() + \" \" + Utils.toHex(packet));\n }\n\n } else if (BuildConfig.DEBUG) {\n Log.w(TAG, \"NOT OUR IP PACKET IPv\" + ipVer + \" TO \"\n + (ipVer == 4 ? Integer.toHexString(IP.readDestAddress(packet)) : \"unknown\")\n + \" desc \" + (ipVer == 4 ? desc(new IP(packet)) : \"unkn\") + \" hex \" + Utils.toHex(packet));\n }\n\n } catch (InterruptedException e) {\n readerAlive = false;\n if (BuildConfig.DEBUG) {\n Log.w(TAG, \"interrupted\");\n }\n return;\n } catch (IOException e) {\n if (BuildConfig.DEBUG) {\n Log.w(TAG, \"bad ip packet \" + e);\n }\n }\n }\n }\n readerAlive = false;\n }", "void onConnectToNetByIPFailure();", "public static final int getCountNewUserByIP(final String address) {\n int count = 0;\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n for (int i = DV.size() - 1; i >= 0; i--) {\n if (DV.elementAt(i).first.equalsIgnoreCase(address)) {\n if (System.currentTimeMillis() > (DV.elementAt(i).second.longValue()))\n DV.removeElementAt(i);\n else\n count++;\n }\n }\n }\n return count;\n }", "void rejects_invalid_racer() {\n }", "void breach();", "boolean hasPingerLoc();" ]
[ "0.6046624", "0.6046624", "0.6046624", "0.6046624", "0.5776117", "0.56452185", "0.5628956", "0.56063956", "0.5527737", "0.5452841", "0.5448084", "0.54046714", "0.53756773", "0.53751284", "0.5360695", "0.531774", "0.5288732", "0.5260032", "0.52379024", "0.5219939", "0.5202377", "0.5188574", "0.5171406", "0.5169584", "0.5153733", "0.514918", "0.5134258", "0.51243407", "0.51102376", "0.50963664", "0.50929767", "0.5080441", "0.50630707", "0.50589836", "0.5023959", "0.5010191", "0.49982625", "0.4997152", "0.4995315", "0.49912727", "0.49898857", "0.4987227", "0.49690628", "0.4967174", "0.49621662", "0.49499264", "0.49425647", "0.49365106", "0.49365106", "0.49309754", "0.49295944", "0.4927952", "0.49251172", "0.4924245", "0.49167618", "0.4914249", "0.49084523", "0.49063793", "0.49045503", "0.48952913", "0.48917514", "0.4888067", "0.48766378", "0.4871174", "0.4865342", "0.4858263", "0.4857299", "0.4849403", "0.4845973", "0.48447618", "0.48320103", "0.48320058", "0.48294923", "0.48267877", "0.4814834", "0.48066342", "0.47823435", "0.47743747", "0.47568643", "0.47540334", "0.47539398", "0.47480336", "0.47337472", "0.47307602", "0.4729305", "0.47275376", "0.4706166", "0.47010905", "0.46890962", "0.46866167", "0.46773827", "0.46773684", "0.4669405", "0.46637303", "0.46623096", "0.46593404", "0.46579692", "0.4652056", "0.46359977", "0.46270156" ]
0.58367103
4
/ Loop through IPV6 Addresses and IPV4 Address, and connect them.
Socket createSocket(String host, int port, int timeoutMillis) throws IOException { InetAddress addresses[]; InetAddress addr; InetSocketAddress sockAddr; Socket s = null; addresses = InetAddress.getAllByName(host); InetAddress[] picks = new InetAddress[2]; int numPicks = 0; for (int i=0; i<addresses.length; i++) { addr = addresses[i]; if ((addr instanceof Inet6Address)) { picks[numPicks++] = addr; break; } } for (int i=0; i<addresses.length; i++) { addr = addresses[i]; if ((addr instanceof Inet4Address)) { picks[numPicks++] = addr; break; } } for (int i=0; i<numPicks; i++) { addr = picks[i]; s = new Socket(); // before connect() for TCP Window Scaling to be turned on setBuffers(s); sockAddr = new InetSocketAddress(addr, port); try { s.connect(sockAddr,timeoutMillis); break; } catch (IOException e) { s.close(); s = null; if (i == numPicks - 1) throw e; } } if (s == null) throw new IOException("No supported IP address found"); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void ipv6() throws IOException {\n\t\t InetAddress src = InetAddress.getByName(\"127.0.0.1\");\n\t\t byte[] ipv4Src = src.getAddress();\n\t\t InetAddress dest = InetAddress.getByName(\"18.221.102.182\");\n\t\t byte[] ipv4Dest = dest.getAddress();\n\t\t \n\t\tbyte[] srcAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, ipv4Src[0], ipv4Src[1], ipv4Src[2], ipv4Src[3]};\n\t\tbyte[] destAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,ipv4Dest[0],ipv4Dest[1],ipv4Dest[2],ipv4Dest[3]};\n\n\t\tbyte[] packet;\n\t\tint payload = 2;\n\t\tint version = 6;\n\t\t\n\t\t// Send packet 12 times (12 packets)\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tint tLen = (40+payload);\t\t\t// Total_Length's default is 40; will increase each time.\n\t\t\tpacket = new byte[tLen];\n\t\t\t\n\t\t\tpacket[0] = (byte) (version << 4 & 0xFF);\n\t\t\tpacket[1] = 0; // Traffic_Class\n\t\t\tpacket[2] = 0; // Flow_Label;20bits\n\t\t\tpacket[3] = 0; // Flow_Label\n\t\t\tpacket[4] = (byte) (payload >>> 8); // Payload_Length;16bits\n\t\t\tpacket[5] = (byte)payload;\n\t\t\tpacket[6] = (byte)17; // Next_Header\n\t\t\tpacket[7] = (byte)20; // Hopt_Limit\n\n\t\t\t// Source_Address;128bits=16bytes\n\t\t\tfor (int s = 0; s < srcAddr.length; s++) \n\t\t\t\tpacket[s+8] = srcAddr[s];\t// Starts from packet[8]\n\t\t\t\n\t\t\t// Destination_Address;128bits=16bytes\n\t\t\tfor (int d = 0; d < destAddr.length; d++) \n\t\t\t\tpacket[d+24] = destAddr[d];\t// Starts from packet[24]\n\t\t\t\n\t\t\tfor(int k = 40;k<packet.length;k++)\n\t\t\t\tpacket[k] = 0;\n\t\t\t\n\t\t\t// Write to server, listen the 4byte response\n\t\t\tSystem.out.println(\"data length: \"+ payload);\n\t\t\tdos.write(packet);\n\t\t\tdos.flush();\n\t\t\t\n\t\t\tSystem.out.print(\"Response: \");\n\t\t\tfor(int r=0;r<4;r++)\n\t\t\t\tSystem.out.print(Integer.toHexString(dis.readByte()).replace(\"ff\", \"\").toUpperCase());\n\t\t\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tpayload *=2;\n\t\t}\n\t}", "static void test2 () throws Exception {\n\n server = new ServerSocket ();\n InetSocketAddress sadr = new InetSocketAddress (ia4addr, 0);\n server.bind (sadr);\n dprintln (\"server bound to \" + sadr);\n int port = server.getLocalPort();\n InetSocketAddress sadr6 = new InetSocketAddress (ia6addr, port);\n\n c1 = new Socket (ia4addr, port);\n try {\n dprintln (\"connecting to \" + ia6addr);\n c2 = new Socket ();\n c2.connect (sadr6, 1000);\n throw new RuntimeException (\"connect to IPv6 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv6 only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia6addr, 0);\n dprintln (\"binding to \" + sadr);\n server.bind (sadr);\n port = server.getLocalPort();\n\n c1 = new Socket (ia6addr, port);\n try {\n c2 = new Socket (ia4addr, port);\n throw new RuntimeException (\"connect to IPv4 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv6 specific port only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia6addr, 5200);\n server.bind (sadr);\n port = server.getLocalPort();\n t_assert (port == 5200);\n\n c1 = new Socket (ia6addr, port);\n try {\n c2 = new Socket (ia4addr, port);\n throw new RuntimeException (\"connect to IPv4 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv4 specific port only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia4addr, 5200);\n server.bind (sadr);\n port = server.getLocalPort();\n t_assert (port == 5200);\n\n c1 = new Socket (ia4addr, port);\n\n try {\n c2 = new Socket (ia6addr, port);\n throw new RuntimeException (\"connect to IPv6 address should be refused\");\n } catch (IOException e) { }\n server.accept().close();\n c1.close ();\n server.close();\n System.out.println (\"Test2: OK\");\n }", "public static void getNetworkIPs() throws ConnectException{\n\t final byte[] ip;\n\t \n\t try {\n\t \t// Stores IP address of this computer in the array\n\t ip = InetAddress.getLocalHost().getAddress();\n\t\t} \n\t\tcatch (Exception e) {\n\t \te.printStackTrace();\n\t return;\n\t }\n\t \n\t // Checks each IP address, replacing fourth set of numbers \n\t // in this computer's IP address with values from 1 - 255\n\t for(int i = 1; i < 255; i++) {\n\t final int j = i;\n\t new Thread(new Runnable() {\n\t public void run() {\n\t try {\n\t \t// Checks if this IP address is reachable\n\t ip[3] = (byte) j;\n\t InetAddress address = InetAddress.getByAddress(ip);\n\t String output = address.toString().substring(1);\n\t \n\t // Prints out IP address only if it is reachable\n\t if (address.isReachable(1717)) {\n\t System.out.println(output + \" is on the network\");\n\t }\n\t\t\t\t\t} \n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t }\n\t }\n\t }).start(); \n\t }\n\t}", "private void connectToUsers() {\n\n\t\tlookUpUsers();\n\t\ttry {\n\t\t\tfor (Map.Entry<String, UserInterface> e : remoteUsers.entrySet()) {\n\t\t\t\tcryptoUtils.addCertToList(e.getKey(), e.getValue().getCertificate());\n\t\t\t\te.getValue().connectUser(this.id, getCertificate());\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void connectToAll() {\n for (AStarNode node : getNodes()) {\n node.resetConnection();\n for (AStarNode connect : getNodes()) {\n if (isValid(node, connect)) {\n node.connect(connect);\n }\n }\n }\n }", "protected void connect() {\n for (int attempts = 3; attempts > 0; attempts--) {\n try {\n Socket socket = new Socket(\"localhost\", serverPort);\n attempts = 0;\n\n handleConnection(socket);\n }\n catch (ConnectException e) {\n // Ignore the 'connection refused' message and try again.\n // There may be other relevant exception messages that need adding here.\n if (e.getMessage().equals(\"Connection refused (Connection refused)\")) {\n if (attempts - 1 > 0) {\n // Print the number of attempts remaining after this one.\n logger.warning(\"Connection failed (\" + name + \"). \" + \n (attempts - 1) + \" attempts remaining.\");\n }\n else {\n logger.severe(\"Connection failed (\" + name + \"). \");\n }\n }\n else {\n logger.severe(e.toString());\n break;\n }\n }\n catch (Exception e) {\n logger.severe(\"Socket on module '\" + name + \"': \" + e.toString());\n }\n }\n }", "static void test4 () throws Exception {\n server = new ServerSocket (0);\n int port = server.getLocalPort();\n\n /* create an IPv4 mapped address corresponding to local host */\n\n byte[] b = {0,0,0,0,0,0,0,0,0,0,(byte)0xff,(byte)0xff,0,0,0,0};\n byte[] ia4 = ia4addr.getAddress();\n b[12] = ia4[0];\n b[13] = ia4[1];\n b[14] = ia4[2];\n b[15] = ia4[3];\n\n InetAddress dest = InetAddress.getByAddress (b);\n c1 = new Socket (dest, port);\n s1 = server.accept ();\n simpleDataExchange (c1,s1);\n c1.close ();\n s1.close ();\n server.close ();\n System.out.println (\"Test4: OK\");\n }", "static void test1 (int port) throws Exception {\n server = new ServerSocket (port);\n if (port == 0) {\n port = server.getLocalPort();\n }\n // try Ipv6 only\n c1 = new Socket (\"::1\", port);\n s1 = server.accept ();\n simpleDataExchange (c1, s1);\n s1.close ();\n c1.close();\n // try with both IPv4 and Ipv6\n c1 = new Socket (\"127.0.0.1\", port);\n c2 = new Socket (\"::1\", port);\n s1 = server.accept();\n s2 = server.accept();\n s1peer = s1.getInetAddress();\n s2peer = s2.getInetAddress();\n if (s1peer instanceof Inet6Address) {\n t_assert ((s2peer instanceof Inet4Address));\n simpleDataExchange (c2, s1);\n simpleDataExchange (c1, s2);\n } else {\n t_assert ((s2peer instanceof Inet6Address));\n simpleDataExchange (c1, s1);\n simpleDataExchange (c2, s2);\n }\n c1.close();\n c2.close();\n s1.close();\n s2.close();\n server.close ();\n System.out.println (\"Test1: OK\");\n }", "private void runTcpScan()\n {\n String ipAddress = new NetworkInfrastructure().getLocalInetAddress().getHostAddress();\n\n //make sure we are on a private range...\n if(isPrivateIpRange(ipAddress))\n {\n // TODO: Check the sub-net mask for smaller than /24 to reduce possible hosts\n\n String range = ipAddress.substring(0, ipAddress.lastIndexOf('.') + 1);\n\n for (int i = 1; i < 255; i++) {\n try {\n\n // See if port is open - if it's not, an exception will bubble\n probeTcpPort(range + i, 80);\n\n // still here? its open lets see if IOTAS is on the host...\n probeIotasApi(range + i);\n\n }catch (JSONException e) {\n // Cant get JSON api probe failed\n } catch (UnknownHostException e) {\n // bad address - ignore\n } catch (SocketTimeoutException e) {\n // socket timeout - ignore\n } catch (IOException e) {\n // socket closed - ignore\n }\n }\n }\n\n log.info(\"Holiday TCP Scan Complete...\");\n }", "protected void setupUpnp() {\n try {\n GatewayDiscover discover = new GatewayDiscover();\n Map<InetAddress, GatewayDevice> devices = discover.discover();\n for (Map.Entry<InetAddress, GatewayDevice> entry : devices.entrySet()) {\n GatewayDevice gw = entry.getValue();\n logger.info(\"Found a gateway device: local address = {}, external address = {}\",\n gw.getLocalAddress().getHostAddress(), gw.getExternalIPAddress());\n\n gw.deletePortMapping(config.p2pListenPort(), \"TCP\");\n gw.addPortMapping(config.p2pListenPort(), config.p2pListenPort(), gw.getLocalAddress().getHostAddress(),\n \"TCP\", \"Semux P2P network\");\n }\n } catch (IOException | SAXException | ParserConfigurationException e) {\n logger.info(\"Failed to add port mapping\", e);\n }\n }", "boolean set_up_connection_to_peers() {\n sockets = new Socket[num_peers];\n int cnt = 0;\n for (int i = 0; i < peer_ip.length; i++) {\n if (peer_id[i] < id) {\n try {\n sockets[i] = new Socket(peer_ip[i], peer_port[i]);\n tcp_out_stream[i] = new ObjectOutputStream(sockets[i].getOutputStream());\n print(\"Peer \" + id + \" successfully connects to \" + peer_id[i]);\n cnt++;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n print(\"Failed to connect to \" + peer_id[i] + \", \" + peer_ip[i] + \":\" + peer_port[i]);\n return false;\n }\n } else {\n sockets[i] = null; //to be connected by later peers.\n }\n }\n print(\"Peer \" + id + \" TCP connection done. Connected to \" + cnt + \" peers\");\n return true;\n }", "public void connectClusters()\n\t{\n//\t\tfor(int i = 0; i<edges.size();i++)\n//\t\t{\n//\t\t\tEdgeElement edge = edges.get(i);\n//\t\t\tString fromNodeID = edge.fromNodeID;\n//\t\t\tNodeElement fromNode = findSubNode(fromNodeID);\n//\t\t\tString toNodeID = edge.toNodeID;\n//\t\t\tNodeElement toNode = findSubNode(toNodeID); \n//\t\t\t\n//\t\t\tif(fromNode != null && toNode != null)\n//\t\t\t{\n//\t\t\t\tPortInfo oport = new PortInfo(edge, fromNode);\n//\t\t\t\tfromNode.addOutgoingPort(oport);\n//\t\t\t\tedge.addIncomingPort(oport);\n//\t\t\t\tPortInfo iport = new PortInfo(edge, toNode);\n//\t\t\t\ttoNode.addIncomingPort(iport);\n//\t\t\t\tedge.addOutgoingPort(iport);\n//\t\t\t}\n//\t\t}\n\t}", "public void getNetworkIPs(String subRed)\n {\n //ArrayList<String> disponibles = new ArrayList<String>();\n //InetAddress servidor = null;\n for (int i = 1; i < 255; i++) \n {\n final int j = i;\n new Thread(() -> {\n try {\n String ser = subRed + \".\" + j;\n //System.out.println(\"Entre en el servidor: \" + ser);\n InetAddress servidor = InetAddress.getByName(subRed + \".\" + j);\n if(servidor.isReachable(2000))\n {\n //System.out.println(\"PPPPADDDDAAAAAAAAAAA\");\n if(this.isReachable(ser, 9020))\n {\n System.out.println(\"Disponible: \" + ser);\n this.conectados.add(servidor);\n } \n }\n else\n System.out.println(\"No disponible \" + ser);\n } catch (IOException e) \n {\n System.out.println(\"Error buscando ips\");\n }\n \n }).start(); \n }\n \n //return disponibles;\n }", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "public boolean ipv6Enabled();", "@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = NetworkInterface.getNetworkInterfaces();\n } catch (SocketException e) {\n // If we could not retrieve the network interface list, we\n // probably can't bind to any interface addresses either.\n return Collections.emptyList();\n }\n\n for (NetworkInterface iface : Collections.list(ifaces)) {\n // List the addresses associated with each interface.\n Enumeration<InetAddress> addresses = iface.getInetAddresses();\n for (InetAddress address : Collections.list(addresses)) {\n try {\n // Make an address object from each interface address, and\n // add it to the output list.\n output.add(Address.make(\"zmq://\" + address.getHostAddress() + \":\" + port));\n } catch (MalformedAddressException ignored) {\n // Should not be reachable.\n }\n }\n }\n\n return output;\n }", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "private void connectToNS(int port, String host)throws Exception{\n boolean gotSList = false;\n socket = new Socket(host, port);\n outStream = new PDUOutputStream(socket.getOutputStream());\n inStream = new PDUInputStream(socket.getInputStream());\n\n PduGetList getList = new PduGetList();\n outStream.writeToServer(getList.getByteArray());\n\n while(!gotSList) {\n if (!inStream.streamIsEmpty()) {\n Pdu inPDU = inStream.readPdu();\n socket.close();\n inPDU.print();\n gotSList = true;\n }\n }\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"ip-address: \");\n host = s.nextLine();\n checkInput(host);\n System.out.println(\"Port: \");\n port = s.nextInt();\n checkInput(String.valueOf(port));\n\n connectToCS(port, host);\n }", "private void connect(){\n // Averiguem quina direccio IP hem d'utilitzar\n InetAddress iAddress;\n try {\n iAddress = InetAddress.getLocalHost();\n String IP = iAddress.getHostAddress();\n\n //Socket sServidor = new Socket(\"172.20.31.90\", 33333);\n sServidor = new Socket (String.valueOf(IP), 33333);\n doStream = new DataOutputStream(sServidor.getOutputStream());\n diStream = new DataInputStream(sServidor.getInputStream());\n } catch (ConnectException c){\n System.err.println(\"Error! El servidor no esta disponible!\");\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private boolean initiateConnections(RegistrySendsNodeManifest event)\n\t\t\tthrows UnknownHostException, IOException {\n\t\t// close all getConnections() from previous overlay.\n\t\tfor (Map.Entry<Integer, TCPConnection> entry : this.nodesToSendTo.getConnections()\n\t\t\t\t.entrySet()) {\n\t\t\tTCPConnection connector = entry.getValue();\n\t\t\tconnector.closeSocket();\n\t\t}\n\t\t//Create sockets to peers\n\t\tallNodes = event.getAllNodes();\n\t\tint numConnectionsToMake = event.getRoutingTableSize();\n\t\tnodesToSendTo = new TCPConnectionsCache();\n\t\tfor (int i = 0; i < numConnectionsToMake; i++) {\n\t\t\tString ipAdd = \"\";\n\t\t\tfor (int j = 0; j < event.getIPLen(i); j++) {\n\t\t\t\tint ipPortion = event.getHopIP(i)[j] & 0xFF;\n\t\t\t\tipAdd += ipPortion;\n\t\t\t\tif (j < event.getIPLen(i) - 1)\n\t\t\t\t\tipAdd += \".\";\n\t\t\t}\n\t\t\tSocket hopSocket = new Socket(ipAdd, event.getHopPort(i));\n\t\t\tTCPConnection hop = new TCPConnection(hopSocket, this);\n\t\t\tnodesToSendTo.putConnection(hop, event.getHopID(i));\n\t\t}\n\t\t//Ensure each socket connection was successful\n\t\tboolean connectionsAllGood = true;\n\t\tfor (Map.Entry<Integer, TCPConnection> entry : nodesToSendTo.getConnections()\n\t\t\t\t.entrySet()) {\n\t\t\tTCPConnection value = entry.getValue();\n\t\t\tif (!value.checkSocketStatus())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn connectionsAllGood;\n\t}", "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "private void setupconfigIpCPoints() {\n for (int i = 1; i <= 3; i++) {\n ConnectPoint connectPoint = new ConnectPoint(\n getDeviceId(i),\n PortNumber.portNumber(1));\n configIpCPoints.add(connectPoint);\n }\n }", "protected abstract void discoverIpInterfaces(Host host, List<IpInterface> oldIpInterfaces);", "private void processNeighbors() {\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i] == null) { continue; }\n System.out.println(this.ports[i].getRemoteRouterDesc().simulatedIPAddress);\n }\n }", "private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "private void print_addr() {\n try(final DatagramSocket socket = new DatagramSocket()){\n socket.connect(InetAddress.getByName(\"8.8.8.8\"), 10002);\n System.out.println(socket.getLocalAddress().getHostAddress()+\":\"+port);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void establishNeighborConn() throws Exception {\n\t\tList <Thread> tList = new ArrayList<Thread>();\n\t\tList<Integer> neighborPids = neighborMap.get(pid);\n\t\tnNeighbors = neighborPids.size();\n\t\tfor (int neighborPid : neighborPids) {\n\t\t\tThread t = new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString neighborHostname = pidToHostnameMap.get(neighborPid);\n\t\t\t\t\t\tConnection neighborConn = new ServerConnection();\n\t\t\t\t\t\tint port = 10000 + (100*pid) + neighborPid;\n\t\t\t\t\t\tneighborConn.connectRetry(coordinatorHostname, port);\n\t\t\t\t\t\tneighborPidToHostnameMap.put(neighborPid, neighborHostname);\n\t\t\t\t\t\tneighborPidToConnMap.put(neighborPid, neighborConn);\n\t\t\t\t\t\tsendQueues.put(neighborPid, new LinkedList<String>());\n\t\t\t\t\t\tsayHelloToNeighbor(neighborConn);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\ttList.add(t);\n\t\t\tt.start();\n\t\t}\n\t\tfor (Thread t : tList) {\n\t\t\tt.join();\n\t\t}\n\t\tSystem.out.println(neighborPidToHostnameMap);\n\t\tSystem.out.println(neighborPidToConnMap);\n\t}", "public void connectTo(NAddress address) throws IOException;", "private void connectClient(String clientName) {\n for(String client : ports.keySet()) {\n if(client != clientName) {\n for(int i = 0; i < 2; i++) {\n //outputs of this go to inputs of others\n String out = ports.get(clientName)[1].get(i);\n String otherIn = ports.get(client)[0].get(i);\n //all outputs of other clients go to this client\n if(out != null && otherIn != null) {\n makeConnection(clientName + \":\" + out, client + \":\" + otherIn);\n }\n //outputs of others go to inputs of this\n String in = ports.get(clientName)[0].get(i);\n String otherOut = ports.get(client)[1].get(i);\n if(in != null && otherOut != null) {\n //this client's outputs go to all other clients\n makeConnection(client + \":\" + otherOut, clientName + \":\" + in);\n }\n }\n }\n }\n\t}", "public void connect() throws Exception\n {\n if(connected)\n return;\n connectionSocket = new Socket(address, CommonRegister.DEFAULT_PORT);\n localPeerID = ++localPeerIDCount;\n initListener();\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n writer = new PrintWriter(connectionSocket.getOutputStream(),true);\n connected = true;\n }", "protected void connect() throws UnknownHostException, IOException {\n int tries = 0;\n edu.hkust.clap.monitor.Monitor.loopBegin(751);\nwhile (_socket == null) { \nedu.hkust.clap.monitor.Monitor.loopInc(751);\n{\n try {\n _socket = new Socket(_host_name, _port);\n _in = _socket.getInputStream();\n _out = _socket.getOutputStream();\n } catch (ConnectException e) {\n System.err.println(\"Failed to connect to \" + _host_name + \" on port \" + _port + \": \" + e.getMessage());\n if (++tries > MAX_TRIES) {\n throw new ConnectException(\"Failed to connect to \" + _host_name + \" on port \" + _port + \" after \" + MAX_TRIES + \" attempts:\\n\" + e);\n }\n System.err.println(\"Retrying....\");\n try {\n Thread.sleep(2000);\n } catch (InterruptedException ex) {\n }\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(751);\n\n }", "private static void init() {\n\t\ttry {\n\t\t\tlocalAddr = InetAddress.getLocalHost();\n\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t} catch (UnknownHostException e) {\n\t\t\tlogger.info(\"try again\\n\");\n\t\t}\n\t\tif (localAddr != null) {\n\t\t\treturn;\n\t\t}\n\t\t// other way to get local IP\n\t\tEnumeration<InetAddress> localAddrs;\n\t\ttry {\n\t\t\t// modify your network interface name\n\t\t\tNetworkInterface ni = NetworkInterface.getByName(networkInterface);\n\t\t\tif (ni == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlocalAddrs = ni.getInetAddresses();\n\t\t\tif (localAddrs == null || !localAddrs.hasMoreElements()) {\n\t\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\twhile (localAddrs.hasMoreElements()) {\n\t\t\t\tInetAddress tmp = localAddrs.nextElement();\n\t\t\t\tif (!tmp.isLoopbackAddress() && !tmp.isLinkLocalAddress() && !(tmp instanceof Inet6Address)) {\n\t\t\t\t\tlocalAddr = tmp;\n\t\t\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Failure when init ProxyUtil\", e);\n\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t}\n\t}", "private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }", "@Test\n public void testReplyToRequestForUsIpv6() {\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n Ip6Address ourFirstIp = Ip6Address.valueOf(\"1000::1\");\n Ip6Address ourSecondIp = Ip6Address.valueOf(\"2000::2\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID2, MAC2, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID2)).andReturn(requestor);\n expect(hostService.getHostsByIp(ourFirstIp))\n .andReturn(Collections.singleton(requestor));\n replay(hostService);\n replay(interfaceService);\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourFirstIp);\n\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n Ethernet ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n firstMac,\n MAC2,\n ourFirstIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC2,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n ourSecondIp);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(1, packetService.packets.size());\n\n ndpReply = buildNdp(ICMP6.NEIGHBOR_ADVERTISEMENT,\n secondMac,\n MAC2,\n ourSecondIp,\n theirIp);\n verifyPacketOut(ndpReply, LOC1, packetService.packets.get(0));\n }", "public static void main(String[] args) {\n\r\n\t\tEnumeration<NetworkInterface> interfaces;\r\n\t\ttry {\r\n\t\t\tinterfaces = NetworkInterface.getNetworkInterfaces();\r\n\t\t\twhile (interfaces.hasMoreElements()) {\r\n\t\t\t\tNetworkInterface sys = interfaces.nextElement();\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(Inet4Address.getLocalHost());\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\tbyte[] mac = sys.getHardwareAddress();\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tif (mac!=null) {\r\n\t\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\t\tfor (int i = 0; i < mac.length; i++) {\r\n\t\t\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(sb.toString());\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n//\t\tcatch (UnknownHostException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t\t\r\n\r\n\r\n\t}", "static void test3 () throws Exception {\n server = new ServerSocket (0);\n server.setSoTimeout (5000);\n int port = server.getLocalPort();\n long t1 = System.currentTimeMillis();\n try {\n server.accept ();\n throw new RuntimeException (\"accept should not have returned\");\n } catch (SocketTimeoutException e) {}\n t1 = System.currentTimeMillis() - t1;\n checkTime (t1, 5000);\n\n c1 = new Socket ();\n c1.connect (new InetSocketAddress (ia4addr, port), 1000);\n s1 = server.accept ();\n simpleDataExchange (c1,s1);\n c2 = new Socket ();\n c2.connect (new InetSocketAddress (ia6addr, port), 1000);\n s2 = server.accept ();\n simpleDataExchange (c2,s2);\n c3 = new Socket ();\n c3.connect (new InetSocketAddress (ia6addr, port), 1000);\n s3 = server.accept ();\n c2.close (); s2.close();\n server.close();\n simpleDataExchange (c3,s3);\n c1.close (); c2.close();\n s1.close (); s2.close();\n\n System.out.println (\"Test3: OK\");\n }", "public void connect() {\n\t\ttry {\n\t\t\tconnection = new Socket(ip, serverPort); // 128.39.83.87 // 127.0.0.1\n\t\t\t\n\t\t\toutput = new BufferedWriter(new OutputStreamWriter(\n connection.getOutputStream()));\n\t\t\tinput = new BufferedReader(new InputStreamReader(\n connection.getInputStream()));\n\t\t\t\n\t\t\tif (hostName.equals(Constants.IDGK + Main.userName))\n\t\t\t\tsendText(\"1\" + Main.userName);\n\t\t\telse\n\t\t\t\tsendText(\"2\" + Main.userName);\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error connecting server\", e);\n\t\t} catch (IOException e) {\n\t\t\tMain.LOGGER.log(Level.WARNING, \"Error making output/input\", e);\n\t\t}\n\t}", "private void addIntfConfig() {\n Set<Interface> interfaces = Sets.newHashSet();\n\n Set<Interface> vlanOneSet = new HashSet<>();\n\n for (int i = 1; i <= LAST_CONF_DEVICE_INTF_VLAN_IP; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);\n\n // Interface addresses for IPv4\n Ip4Prefix prefix1 = Ip4Prefix.valueOf(\"10.0.\" + (2 * i - 1) + \".0/24\");\n Ip4Address addr1 = Ip4Address.valueOf(\"10.0.\" + (2 * i - 1) + \".1\");\n Ip4Prefix prefix2 = Ip4Prefix.valueOf(\"10.0.\" + (2 * i) + \".0/24\");\n Ip4Address addr2 = Ip4Address.valueOf(\"10.0.\" + (2 * i) + \".1\");\n InterfaceIpAddress ia1 = new InterfaceIpAddress(addr1, prefix1);\n InterfaceIpAddress ia2 = new InterfaceIpAddress(addr2, prefix2);\n\n // Interface addresses for IPv6\n Ip6Prefix prefix3 = Ip6Prefix.valueOf((2 * i - 1) + \"000::0/64\");\n Ip6Address addr3 = Ip6Address.valueOf((2 * i - 1) + \"000::1\");\n Ip6Prefix prefix4 = Ip6Prefix.valueOf((2 * i) + \"000::0/64\");\n Ip6Address addr4 = Ip6Address.valueOf((2 * i) + \"000::2\");\n InterfaceIpAddress ia3 = new InterfaceIpAddress(addr3, prefix3);\n InterfaceIpAddress ia4 = new InterfaceIpAddress(addr4, prefix4);\n\n // Setting up interfaces\n Interface intf1 = new Interface(cp, Sets.newHashSet(ia1, ia3),\n MacAddress.valueOf(2 * i - 1),\n VlanId.vlanId((short) 1));\n Interface intf2 = new Interface(cp, Sets.newHashSet(ia2, ia4),\n MacAddress.valueOf(2 * i),\n VlanId.NONE);\n\n interfaces.add(intf1);\n interfaces.add(intf2);\n\n vlanOneSet.add(intf1);\n\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Sets.newHashSet(intf1, intf2)).anyTimes();\n }\n for (int i = LAST_CONF_DEVICE_INTF_VLAN_IP + 1; i <= LAST_CONF_DEVICE_INTF_VLAN; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);\n Interface intf1 = new Interface(cp, null,\n MacAddress.NONE,\n VlanId.vlanId((short) 1));\n\n interfaces.add(intf1);\n vlanOneSet.add(intf1);\n\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Sets.newHashSet(intf1)).anyTimes();\n }\n expect(interfaceService.getInterfacesByVlan(VLAN1))\n .andReturn(vlanOneSet).anyTimes();\n expect(interfaceService.getInterfacesByVlan(VLAN10))\n .andReturn(Collections.emptySet()).anyTimes();\n expect(interfaceService.getInterfaces()).andReturn(interfaces).anyTimes();\n\n for (int i = LAST_CONF_DEVICE_INTF_VLAN + 1; i <= NUM_DEVICES; i++) {\n ConnectPoint cp = new ConnectPoint(getDeviceId(i),\n P1);\n expect(interfaceService.getInterfacesByPort(cp))\n .andReturn(Collections.emptySet()).anyTimes();\n }\n }", "public abstract void connect() throws UnknownHostException, IOException;", "void connect() throws UnknownHostException, IOException {\n\t\tif (isConnected()) {\n\t\t\tdisconnect();\n\t\t}\n\t\t\n\t\tif (!ssl) {\n\t\t\tsock = new Socket();\n\t\t} else {\n\t\t\tsock = SSLSocketFactory.getDefault().createSocket();\n\t\t}\n\t\tsock.connect(new InetSocketAddress(host, port));\n\t\t\n\t\tif (sock != null) {\n\t\t\tsock.setKeepAlive(true);\n\t\t\tinStream = new UByteInputStream(new BufferedInputStream(sock.getInputStream(), sock.getReceiveBufferSize()));\n\t\t\tconnected();\n\t\t}\n\t}", "public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }", "public Map<String, Integer> execAdbOnlineDevicesPortForward() {\n List<String> device_id_list = this.execAdbDevices();\n Map<String, Integer> device_hostport_map = new HashMap<String, Integer>();\n\n int index = 0;\n for (String device : device_id_list) {\n int host_port = ADBExecutor.HOST_BASE_PORT + index * 10;\n this.execAdbSingleDevicePortForward(device, host_port, ADBExecutor.ANDROID_PORT);\n device_hostport_map.put(device, host_port);\n index++;\n }\n return device_hostport_map;\n }", "boolean hasClientIpV6();", "private void connectAll()\n {\n\t\tint i = 0;\n\t\tint j = 1;\n\t\twhile (i < getNodes().size()) {\n\t\t\twhile (j < getNodes().size()) {\n\t\t\t\tLineEdge l = new LineEdge(false);\n\t\t\t\tl.setStart(getNodes().get(i));\n\t\t\t\tl.setEnd(getNodes().get(j));\n\t\t\t\taddEdge(l);\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++; j = i+1;\n\t\t}\n\n }", "@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }", "public void setIp6Addresses(List<DnsAAAARdata> ip6Addresses) {\n this.ip6Addresses = ip6Addresses;\n }", "public void setup_clients()\n {\n ClientInfo t = new ClientInfo();\n for(int i=0;i<5;i++)\n {\n // for mesh connection between clients\n // initiate connection to clients having ID > current node's ID\n if(i > my_c_id)\n {\n // get client info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n \tpublic void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl false and rx_hdl false as this is the socket initiator\n // and is a connection to another client node\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,false,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n \t}\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Client\"+i);\n x.start(); \t\t\t// start the thread\n }\n }\n\n // another thread to check until all connections are established ( ie. socket list size =4 )\n // then send a message to my_id+1 client to initiate its connection setup phase\n Thread y = new Thread()\n {\n public void run()\n {\n int size = 0;\n // wait till client connections are setup\n while (size != 4)\n {\n synchronized(c_list)\n {\n size = c_list.size();\n }\n }\n // if this is not the last client node (ID =4)\n // send chain init message to trigger connection setup\n // phase on the next client\n if(my_c_id != 4)\n {\n c_list.get(my_c_id+1).send_setup();\n System.out.println(\"chain setup init\");\n }\n // send the setup finish, from Client 4\n // indicating connection setup phase is complete\n else\n {\n c_list.get(0).send_setup_finish();\n }\n }\n };\n \n y.setDaemon(true); \t// terminate when main ends\n y.start(); \t\t\t// start the thread\n }", "public Map<String, Integer> execAdbOnlineDevicesPortForward()\r\n\t{\r\n\t\tList<String> device_id_list = this.execAdbDevices();\r\n\t\tMap<String, Integer> device_hostport_map = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tfor (String device : device_id_list)\r\n\t\t{\r\n\t\t\tint host_port = ADBExecutor.HOST_BASE_PORT + index * 10;\r\n\t\t\tthis.execAdbSingleDevicePortForward(device, host_port, ADBExecutor.ANDROID_PORT);\r\n\t\t\tdevice_hostport_map.put(device, host_port);\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\treturn device_hostport_map;\r\n\t}", "boolean supportsConnects();", "@Test\n public void socketToProto_ipv6() throws Exception {\n InetAddress address = InetAddress.getByName(\"2001:db8:0:0:0:0:2:1\");\n int port = 12345;\n InetSocketAddress socketAddress = new InetSocketAddress(address, port);\n assertThat(LogHelper.socketAddressToProto(socketAddress))\n .isEqualTo(Address\n .newBuilder()\n .setType(Address.Type.IPV6)\n .setAddress(\"2001:db8::2:1\") // RFC 5952 section 4: ipv6 canonical form required\n .setIpPort(12345)\n .build());\n }", "@Test\r\n public void ipConnectionTest()\r\n {\r\n try\r\n {\r\n MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);\r\n InputStream is = ms.getInputStream();\r\n OutputStream os = ms.getOutputStream();\r\n echoTest(is, os, 54);\r\n echoTest(is, os, 45);\r\n ms.close();\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n fail(\"IP Connection test failed\");\r\n }\r\n }", "private static List<String> getIPv4First(List<InetAddress> in)\n {\n List<String> out = new ArrayList<>();\n int i = 0;\n for (InetAddress addr : in) {\n if (addr instanceof Inet4Address) {\n out.add(i++, addr.getHostAddress());\n }\n else {\n out.add(addr.getHostAddress());\n }\n }\n return out;\n }", "public static void main(String[] args) throws IOException {\n\t\tInetAddress ip = InetAddress.getByAddress(new byte[] {(byte) 95, (byte) 215, (byte) 62, (byte) 5});\n\t\t\n\t\t// connection request\n\t\t// data : 00 00 04 17 27 10 19 80 00 00 00 00 c6 a2 92 eb\n\t\t// convert to byte[] array\n\t\tbyte[] buffer = new byte[] {0x00, 0x00, 0x04, 0x17, 0x27, 0x10, 0x19, (byte) 0x80, 0x00, 0x00, 0x00, 0x00, (byte) 0xc6, (byte) 0xa2, (byte) 0x92, (byte) 0xeb};\n\t\tint length = buffer.length;\n\t\t\n\t\t// DatagramPacket is used to send and received UDP packet \n\t\tDatagramPacket packet = new DatagramPacket(buffer, length, ip, 80);\n\t\tDatagramSocket socket = new DatagramSocket();\n\t\tsocket.send(packet);\n\t\t\n\t\tSystem.out.println(\"Already sent\");\n\t\t\n\t\tsocket.receive(packet);\n\t\t\n\t\tSystem.out.println(byteArray2Hex(packet.getData()));\n\t\tSystem.out.println(\"Connect response\");\n\t\tsocket.close();\n\t\t\n }", "@Test\n public void testReplyToRequestFromUsIpv6() {\n Ip6Address ourIp = Ip6Address.valueOf(\"1000::1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(\n ourIp,\n IpPrefix.valueOf(\"1000::1/64\"))),\n ourMac,\n VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n ourMac,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n ourIp,\n theirIp);\n\n proxyArp.reply(ndpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(ndpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(ndpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "public void testSSLSocketInetAddressintInetAddressint() throws Exception {\n try {\n ServerSocket ss1 = new ServerSocket(0);\n ServerSocket ss2 = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss1\n .getLocalPort(), InetAddress.getLocalHost(), ss2\n .getLocalPort());\n ss1.close();\n ss2.close();\n soc.close();\n } catch (IOException e) {\n }\n }", "@Test\n\tpublic void testIPV6WithPortAndUserinfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "void connect() throws UnsupportedProtocolVersionException {\n if (isShutdown) return;\n\n List<Host> hosts = new ArrayList<Host>(cluster.metadata.getContactPoints());\n // shuffle so that multiple clients with the same contact points don't all pick the same control\n // host\n Collections.shuffle(hosts);\n setNewConnection(reconnectInternal(hosts.iterator(), true));\n }", "private static void dealwithConnect(String message, List<Socket> sockets,\r\n\t\t\tOutputStream outStream, DataOutputStream outDataStream, String port) {\r\n\r\n\t\tString serverDetail[] = message.split(\" \");\r\n\t\tString host = serverDetail[1];\r\n\t\tint secondPort = Integer.parseInt(serverDetail[2]);\r\n\t\ttry {\r\n\t\t\tSocket sock = new Socket(host, secondPort);\r\n\t\t\tsock.getInetAddress();\r\n\t\t\tsockets.add(sock);\r\n\t\t\tSystem.out.println(\"Connection successfully established to : \"\r\n\t\t\t\t\t+ host); // connecting to peer and printing\r\n\t\t\t\t\t\t\t\t// successful message.\r\n\r\n\t\t\toutStream = sock.getOutputStream();\r\n\t\t\toutDataStream = new DataOutputStream(outStream);\r\n\t\t\tString messageBody = \"Connected: \\n IP Address : \"\r\n\t\t\t\t\t+ InetAddress.getLocalHost().toString() + \"\\n Port : \"\r\n\t\t\t\t\t+ port;\r\n\t\t\toutDataStream.writeUTF(messageBody); \r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\r\n\t}", "void connected(InetAddress address, boolean isMine);", "public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }", "public boolean Connect() throws IllegalStateException {\r\n\t\t\tString host;\r\n\t\t\tint port;\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\thost = currHostPort.getHost();\r\n\t\t\t\tport = currHostPort.getPort();\r\n\t\t\t\tsocket = new DatagramSocket();\r\n\t\t\t\tinetaddr = InetAddress.getByName(host);\r\n\t\t\t\tsocket.connect(inetaddr, port);\r\n\t\t\t\tsocket.setSoTimeout(connTimeout);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {\t\t\t\t\t// UnknownHostException / IOException / NullPointerException\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "private synchronized int srvConnect() {\n \n\t\ttry {\n\t\t\t// The address to connect to\n\t\t\tSystem.out.println(TAG + \":Address:\" + getAddress());\n\t\t\tSystem.out.println(TAG + \":Port:\" + String.valueOf(getPort()));\n\t\t\taddr = InetAddress.getByName(getAddress());\n\t\t\t// The address plus the port\n\t\t\tservAddress = new InetSocketAddress(addr, getPort());\n\n\t\t\t// Try to connect\n\t\t\tmysock = new Socket();\n\t\t\t// This socket will block/ try connect for 5s\n\t\t\tmysock.connect(servAddress, 5000);\n\t\t\t// Show me if i was connected successfully\n\t\t\tif (mysock.isConnected()) {\n\t\t\t\tif(out == null){\n\t\t\t\t\tout = new PrintWriter(mysock.getOutputStream(),true);\n\t\t\t\t\tSystem.out.println(TAG + \":New socket and new streamer was created.\");\n\t\t\t\t}\n\t\t\t}\n \n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(TAG + \":Null Pointer occured.\");\n\t\t\treturn -1;\n\t\t} catch (UnknownHostException e) {\n\t\t\tSystem.out.println(TAG + \":Server does not exist.\");\n\t\t\treturn -1;\n\t\t} catch (IOException e) {\n\t\t\tif (e instanceof SocketException && e.getMessage().contains(\"Permission denied\")) {\n\t\t\t\tSystem.out.println(TAG + \":You don't have internet permission:\" + e);\n\t\t\t} else if(e instanceof ConnectException && e.getMessage().contains(\"Connection refused\")){\n\t\t\t\tSystem.out.println(TAG + \":Connection is refused, the service on the server is probably down:\" + e);\n\t\t\t} else {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(TAG + \":Could not connect\");\n\t\t\t}\n\t\t\treturn -1;\n\t\t}\n \n\t\treturn 0;\n\t}", "void doConnect() throws IOException\n\t{\n\t\tint port = 0;\n\t\tif (hasMoreTokens())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tport = nextIntToken();\n\t\t\t}\n\t\t\tcatch (NumberFormatException ex)\n\t\t\t{\n\t\t\t\terr(ex.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tport = DProtocol.DEBUG_CONNECT_PORT;\n\t\t}\n\n\t\tif (port > 0)\n\t\t{\n\t\t\tm_connectPort = String.valueOf(port);\n\t\t\tdoRun();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString Host;\r\n\t\tdo{\r\n\t\tSystem.out.println(\"Enter host name:\");\r\n\t\tHost=sc.nextLine();\r\n\t\ttry{\r\n\t\t\tInetAddress[] address= InetAddress.getAllByName(Host);\r\n\t\t\tfor(InetAddress ip:address)\r\n\t\t\t\tSystem.out.println(ip.toString());\r\n\t\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}while (doAgain());\r\n}", "@Override\n public void run() {\n\n // Iterate over the given port range to scan\n for (int port = this.portMin; port <= this.portMax; port++) {\n\n // We will use the IOException thrown by Socket on connection failure to\n // determine if a service is running on a given port or not.\n // As such, we use a try-catch block\n try {\n\n // Create socket for port testing\n Socket socket = new Socket();\n\n // We now use the created socket to attempt a connection with the current port,\n // testing if a service is listening on the current port. We can get the\n // loopback address as seen below, or manually enter one of the common loopback\n // addresses: \"127.0.0.1\", \"0.0.0.0\" or \"localhost\".\n InetAddress loopbackAddress = InetAddress.getLoopbackAddress();\n SocketAddress scanAddress = new InetSocketAddress(loopbackAddress, port);\n\n // Since we are scanning our local computer we can set a quite short timeout\n // In this example we use 50 milliseconds\n int timeout = 50;\n\n // Attempt the connection\n socket.connect(scanAddress, timeout);\n socket.close();\n\n // Alternatively, the shorthand:\n // Socket otherSocket = new Socket(InetAddress.getLoopbackAddress(), port);\n // otherSocket.close();\n\n // If the socket successfully connected, we know that a service is listening on\n // the currently tested port, and we print it.\n System.out.println(\"Service listening on port: \" + port);\n\n } catch (IOException e) {\n // If an exception is thrown by the client sockets, we can assume that the port\n // is unused, and we choose to do nothing. Alternatively, we can print port\n // closed:\n // System.out.println(\"No service listening on port: \" + port);\n }\n\n }\n\n }", "private void start_Connexion()throws UnknownHostException, IOException{\n \tsocket = new Socket(IP,num_Socket);\n \tout = new ObjectOutputStream(socket.getOutputStream());\n \tin = new ObjectInputStream(socket.getInputStream());\n \t\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\t//由主机名得到InetAddress对象\n\t\t\tInetAddress address1=InetAddress.getByName(\"www.baidu.com\");\n\t\t\tSystem.out.println(\"address1:\"+address1);\n\t\t\t//由ip得到InetAddress对象\n\t\t\tInetAddress address2=InetAddress.getByName(\"13.229.188.59\");\n\t\t\tSystem.out.println(\"address2:\"+address2.getHostName()+\"/\"+address2.getHostAddress());\n\t\t\t//由主机名得到多个InetAddress对象数组,因为一个主机名可以对应多个ip\n\t\t\tInetAddress addressArr1[]=InetAddress.getAllByName(\"www.baidu.com\");\n\t\t\tSystem.out.println(\"addressArr1:\");\n\t\t\tfor(int i=0; i<addressArr1.length; i++)\n\t\t\t\tSystem.out.println(addressArr1[i]);\n\t\t\t//得到本机的InetAddress对象\n\t\t\tInetAddress me=InetAddress.getLocalHost();\n\t\t\tSystem.out.println(\"me:\"+me);\n\t\t\t//getByName(xxx.xxx.com.cn)会立刻请求解析域名为IP地址,而getByAddress不会立刻请求解析IP地址为域名\n\t\t\tbyte []ip1={(byte)202,(byte)201,(byte)179,110};//int转byte会截断int\n\t\t\tInetAddress address3=InetAddress.getByAddress(ip1);\n\t\t\tbyte []ip2={61,(byte)135,(byte)169,121};\n\t\t\tInetAddress address4=InetAddress.getByAddress(\"www.baidu.com\", ip2);\n\t\t\tSystem.out.println(\"address3:\"+address3);\n\t\t\tSystem.out.println(\"address3 hostname:\"+address3.getHostName());\n\t\t\tSystem.out.println(\"address4:\"+address4);\n\t\t\t//下面这行会抛异常,因为如果调用getByName创建InetAddress对象时,如果参数是主机名,就会立即进行dns解析,但是参数中的主机名\n\t\t\t//又不存在,所以程序抛异常\n\t\t\tInetAddress address5=InetAddress.getByName(\"www.baidxxx.com\");\n\t\t\t//下面这两行代码不会抛异常,虽然参数中的ip是不存在的(不知道为什么,反正是这样规定的)\n\t\t\tInetAddress address6=InetAddress.getByName(\"202.117.179.110\");\n\t\t\taddress6.getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main2(String[] args) throws UnknownHostException, IOException, ClassNotFoundException, InterruptedException{\r\n //get the localhost IP address, if server is running on some other IP, you need to use that\r\n InetAddress host = InetAddress.getLocalHost();\r\n Socket socket = null;\r\n ObjectOutputStream oos = null;\r\n ObjectInputStream ois = null;\r\n for(int i=0; i<5;i++){\r\n //establish socket connection to server\r\n socket = new Socket(host.getHostName(), 9876);\r\n //write to socket using ObjectOutputStream\r\n oos = new ObjectOutputStream(socket.getOutputStream());\r\n System.out.println(\"Sending request to Socket Server\");\r\n if(i==4)oos.writeObject(\"exit\");\r\n else oos.writeObject(\"\"+i);\r\n //read the server response message\r\n ois = new ObjectInputStream(socket.getInputStream());\r\n String message = (String) ois.readObject();\r\n System.out.println(\"Message: \" + message);\r\n //close resources\r\n ois.close();\r\n oos.close();\r\n Thread.sleep(100);\r\n }\r\n }", "public void connectWarehouses(){\n//\t\tWarehouseInterface wh1 = new WareHouseImpl(\"wh1\");\n//\n//\t\tWarehouseInterface wh2 = new WareHouseImpl(\"wh2\");\n//\t\twarehouseList.add(wh1);\n//\t\twarehouseList.add(wh2);\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tSystem.out.print(\"Please input the port number of the warehouse service to establish connection (q to finish):\");\n\t\t\t\n\t\t\tString port = in.nextLine();\n\t\t\tif(port.equals(\"q\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tString urlStr = \"http://localhost:\" + port + \"/ws/warehouse?wsdl\";\n\t\t\t\ttry {\n\t\t\t\t\tURL url = new URL(urlStr);\n\t\t\t\t\tQName qname = new QName(\"http://warehouse/\", \"WarehouseImplService\");\n\t\t\t\t\tWarehouseInterface warehouse;\n\t\t\t\t\tService service = Service.create(url, qname);\n\t\t\t\t\twarehouse = service.getPort(WarehouseInterface.class);\n\t\t\t\t\tSystem.out.println(\"Obtained a handle on server object: \" + warehouse.getName());\n\t\t\t\t\twarehouseList.add(warehouse);\n\t\t\t\t}catch (MalformedURLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t//System.out.println(\"Failed to access the WSDL at:\" + urlStr);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\tin.close();\n\t}", "private void connect(InProgInfo inProg, String address, String port, String interfaceName) throws InterruptedException\n {\n \n System.out.println(\"Starting connection to Real Time Session...\");\n \n channelSessions.add(new EDFChannelSession());\n if (channelSessions.get(channelSessions.size() - 1).initTransport(false, error) < CodecReturnCodes.SUCCESS)\n System.exit(error.errorId());\n\n // enable XML tracing\n if (CommandLine.booleanValue(\"x\"))\n {\n channelSessions.get(channelSessions.size() - 1).enableXmlTrace(dictionaryHandler.dictionary());\n }\n\n // get connect options from the channel session\n ConnectOptions copts = channelSessions.get(channelSessions.size() - 1).getConnectOptions();\n\n // set the connection parameters on the connect options\n copts.unifiedNetworkInfo().address(address);\n copts.unifiedNetworkInfo().serviceName(port);\n copts.unifiedNetworkInfo().interfaceName(interfaceName);\n copts.blocking(false);\n copts.connectionType(ConnectionTypes.SEQUENCED_MCAST);\n\n channelSessions.get(channelSessions.size() - 1).connect(inProg, error);\n }", "public void connect() throws IOException {\n\t\tsocket = new Socket(host, port);\n\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\tout = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));\n\t\tconnected = true;\n\t\texecutor = Executors.newScheduledThreadPool(5);\n\t}", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "@Test\n public void testClient() throws Exception {\n final CandidateProvider<InetSocketAddress> stunCandidateProvider = \n new DnsSrvCandidateProvider(\"_stun._udp.littleshoot.org\");\n /*\n new SrvCandidateProvider(srv, \"_stun._udp.littleshoot.org\", \n new InetSocketAddress(\"stun.littleshoot.org\", StunConstants.STUN_PORT));\n */\n // We do this a bunch of times because the server selection is random.\n for (int i = 0; i < 20; i++) {\n final UdpStunClient client = new UdpStunClient(\n stunCandidateProvider);\n final InetSocketAddress srflx = client.getServerReflexiveAddress();\n // System.out.println(\"Got address: \"+srflx);\n assertNotNull(\"Did not get server reflexive address\", srflx);\n }\n }", "public static void echo_server_single( int portno ) \nthrows IOException\n {\n ServerSocket acc = new ServerSocket( portno );\n print_my_host_port( portno );\n while( true )\n {\n stdout.printf(\"accepting incoming connections (hash== %s) ...\\n\", \n acc.hashCode());\n Socket com = acc.accept();\n tcp_peeraddr_print( com );\n EchoServerWorker esw = new EchoServerWorker(com);\n esw.run();\n } // while\n}", "private void establishConnection() throws UnknownHostException, \n \t\t\t\t\t\t\t\t\t\t IOException {\n \t socket = new Socket(serverIP, serverPort);\n }", "private void connectToNotary() throws RemoteException, InvalidSignatureException {\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\n\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\tString toSign = notary.getNonce(this.id) + cnonce + this.id;\n\t\t\tX509Certificate res = notary\n\t\t\t\t.connectToNotary(this.id, cnonce, cryptoUtils.getStoredCert(),\n\t\t\t\t\tcryptoUtils.signMessage(toSign));\n\n\t\t\tcryptoUtils.addCertToList(notaryID, res);\n\t\t}\n\t}", "public void addNextHopIpv6GwAddr1() throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"next-hop-ipv6-gw-addr1\",\n null,\n childrenNames());\n }", "java.lang.String getIpv6();", "public List<DnsAAAARdata> getIp6Addresses() {\n return ip6Addresses;\n }", "public TeIpv6() {\n }", "public void open() throws JSchException {\n for ( TunnelConnection tunnelConnection : tunnelConnections ) {\n tunnelConnection.open();\n }\n }", "public void enableIpv6(boolean val);", "public void doMain(Set<String> args) throws Exception {\n\n\t\tInetSocketAddress socketAddress = new InetSocketAddress(MULTICAST_ADDRESS, MULTICAST_PORT);\n\t\tMulticastSocket socket = new MulticastSocket(MULTICAST_PORT);\n\t\tEnumeration<NetworkInterface> ifs = NetworkInterface.getNetworkInterfaces();\n\n\t\twhile (ifs.hasMoreElements()) {\n\t\t\tNetworkInterface xface = ifs.nextElement();\n\t\t\tEnumeration<InetAddress> addrs = xface.getInetAddresses();\n\t\t\tString name = xface.getName();\n\t\t\twhile (addrs.hasMoreElements()) {\n\t\t\t\tInetAddress addr = addrs.nextElement();\n\t\t\t\tSystem.out.println(name + \" ... has addr \" + addr);\n\t\t\t}\n\n\t\t\tif (args.contains(name)) {\n\t\t\t\tSystem.out.println(\"Adding \" + name + \" to our interface set\");\n\t\t\t\tsocket.joinGroup(socketAddress, xface);\n\t\t\t}\n\t\t}\n\n\t\tbyte[] buffer = new byte[1500];\n\t\tDatagramPacket packet = new DatagramPacket(buffer, buffer.length);\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tpacket.setData(buffer, 0, buffer.length);\n\t\t\t\tsocket.receive(packet);\n\t\t\t\tSystem.out.println(\"Received pkt from \" + packet.getAddress() + \" of length \" + packet.getLength());\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private static void setupConnection() {\r\n\t\t\r\n\t\t// Variable used to keep track of if a connection is sucessful\r\n\t\tboolean connectionSuccess;\r\n\t\t\r\n\t\t// Loop until a sucessful connection is made\r\n\t\tdo {\r\n\t\t\tconnectionSuccess = true;\r\n\t\t\t\r\n\t\t\t// Get server info from user\r\n\t\t\tString serverInfo = JOptionPane.showInputDialog(null, \"Please input the server IP and port\"\r\n\t\t\t\t\t+ \" in the form \\\"IP:Port\\\"\", \"Server Connection Details\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\r\n\t\t\t// If the X button or cancel is clicked exit the program\r\n\t\t\tif(serverInfo == null) {\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString[] serverInfoArray = serverInfo.split(\":\", 2);\r\n\t\t\tint port = 0;\r\n\t\t\t\r\n\t\t\t// Check that both the port and IP have been inputted\r\n\t\t\tif(serverInfoArray.length > 1) {\r\n\t\t\t\t\r\n\t\t\t\t// Check that the port inputted is valid\r\n\t\t\t\ttry{\r\n\t\t\t\t\tport = Integer.parseInt(serverInfoArray[1]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(port > 65536 || port < 0) {\r\n\t\t\t\t\t\tshowMSG(PORT_ERROR_MSG);\r\n\t\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch(NumberFormatException e) {\r\n\t\t\t\t\tshowMSG(PORT_ERROR_MSG);\r\n\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {\r\n\t\t\t\tshowMSG(\"Please input a port number and IP address\");\r\n\t\t\t\tconnectionSuccess = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// After port validation try to connect to the server\r\n\t\t\tif(connectionSuccess == true) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsock = new Socket(serverInfoArray[0], port);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tshowMSG(CONNECTION_ERROR_MSG);\r\n\t\t\t\t\tconnectionSuccess = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Loop until a successful connection to the server is made\r\n\t\t} while(connectionSuccess == false);\r\n\t\t\r\n\t\t\r\n\t\t// Setup buffered reader to read from the server\r\n\t\ttry {\r\n\t\t\tserverReader = new BufferedReader(new InputStreamReader(sock.getInputStream()));\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tshowMSG(CONNECTION_ERROR_MSG);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "public void connectNodes(){\n for(int i = 0; i < inputSize; i++){\n network.get(0).add(new InputNode());\n }\n \n for(int i = 1; i < layers; i++){\n \n for(int j = 0; j < layerSize; j++){\n \n network.get(i).add(new Node(network.get(i-1)));\n }\n \n }\n \n }", "public Vector<NetworkAddress> getHostAddresses() { return hostAddresses; }", "public Reply connect(String connectAddress, int connectPort) throws ThingsException, InterruptedException;", "public void receivePackets() throws IOException {\n while (!Thread.interrupted()) {\n// long end = System.nanoTime();\n// System.out.println(\"recp2 \" + received + \" bytes in \" + (end - start)/1000 + \"mks \");\n\n byte[] packet = slip.recvPacket();\n\n if (packet != null && packet.length > 0) {\n// received = packet.length;\n// start = System.nanoTime();\n\n try {\n int ipVer = IP.readIPVersion(packet);\n if (ipVer == 4 && IP.readDestAddress(packet) == localAddress) {//todo check remote addr\n IP ip = new IP(packet);\n if (ip.protocol == 6 && ip.verify()) {\n long remoteAddress = ip.sourceAddress;\n int remotePort = ip.tcp.sourcePort;\n int localPort = ip.tcp.destPort;\n Long key = (remoteAddress << 32) | ((localPort & 0xFFFF) << 16) | (remotePort & 0xFFFF);\n TCPLink link;\n synchronized (links) {\n link = links.get(key);\n if (link != null) {\n// System.out.println(\"process incoming packet from port \" + ip.tcp.sourcePort + \" by \" + link.hashCode());\n } else {\n if ((ip.tcp.flags & TCP.SYN) == TCP.SYN) {\n\n link = TCPLinkFactory.create(ip.sourceAddress,\n remotePort, localPort, key, this);\n links.put(key, link);\n// System.out.println(\"process SYN packet \" + packet + \" by \" + link.hashCode());\n\n } else if (BuildConfig.DEBUG) {\n Log.e(TAG, \"BAD IP PACKET (no such connection exist) \" + key + \" \" + desc(ip) + \" FROM \" + slip.getISDesc() + \" \" + Utils.toHex(packet));\n }\n }\n }\n if (link != null) {\n link.processPacket(ip);\n }\n } else if (BuildConfig.DEBUG) {\n Log.w(TAG, \"BAD IP PACKET \" + desc(ip) + \" FROM \" + slip.getISDesc() + \" \" + Utils.toHex(packet));\n }\n\n } else if (BuildConfig.DEBUG) {\n Log.w(TAG, \"NOT OUR IP PACKET IPv\" + ipVer + \" TO \"\n + (ipVer == 4 ? Integer.toHexString(IP.readDestAddress(packet)) : \"unknown\")\n + \" desc \" + (ipVer == 4 ? desc(new IP(packet)) : \"unkn\") + \" hex \" + Utils.toHex(packet));\n }\n\n } catch (InterruptedException e) {\n readerAlive = false;\n if (BuildConfig.DEBUG) {\n Log.w(TAG, \"interrupted\");\n }\n return;\n } catch (IOException e) {\n if (BuildConfig.DEBUG) {\n Log.w(TAG, \"bad ip packet \" + e);\n }\n }\n }\n }\n readerAlive = false;\n }", "private static void getServerIPAddress() {\r\n // Get local IP address\r\n try {\r\n Enumeration<NetworkInterface> enumeratedNetworkInterface = NetworkInterface.getNetworkInterfaces();\r\n\r\n NetworkInterface networkInterface;\r\n Enumeration<InetAddress> enumeratedInetAddress;\r\n InetAddress inetAddress;\r\n\r\n for (; enumeratedNetworkInterface.hasMoreElements(); ) {\r\n networkInterface = enumeratedNetworkInterface.nextElement();\r\n enumeratedInetAddress = networkInterface.getInetAddresses();\r\n\r\n for (; enumeratedInetAddress.hasMoreElements(); ) {\r\n inetAddress = enumeratedInetAddress.nextElement();\r\n String anIPAddress = inetAddress.getHostAddress();\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Scanning local IP space: \" + anIPAddress);\r\n }\r\n\r\n // exclude loop-back and MAC address\r\n if (!(anIPAddress.equals(\"127.0.0.1\") || anIPAddress.contains(\":\")))\r\n localIPAddress = anIPAddress;\r\n }\r\n }\r\n } catch (Exception e) {\r\n log.error(\"Error in retrieving the local IP address: \" + e.toString());\r\n }\r\n }", "private void initPeers() {\n this.servers.clear();\n this.clients.clear();\n\n if (SharedPrefUtils.isConnectionNfcEnabled(this)) {\n clients.add(new NFCClient(this, walletServiceBinder));\n servers.add(new NFCServerACSCLTV(this, walletServiceBinder));\n servers.add(new NFCServerCLTV(this, walletServiceBinder));\n\n }\n\n if (SharedPrefUtils.isConnectionBluetoothLeEnabled(this)) {\n clients.add(new BluetoothLEClient(this, walletServiceBinder));\n servers.add(new BluetoothLEServer(this, walletServiceBinder));\n }\n\n if (SharedPrefUtils.isConnectionWiFiDirectEnabled(this)) {\n clients.add(new WiFiClient(this, walletServiceBinder));\n servers.add(new WiFiServer(this, walletServiceBinder));\n }\n\n for (AbstractServer server : servers) {\n server.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n }\n\n for (AbstractClient client : clients) {\n client.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n if(client instanceof NFCClient) {\n client.start();\n }\n }\n\n }", "private static IPv6Address toIPv6AddressFromHexStr(String hexAsStr) throws UnknownHostException {\n\t\tbyte[] ipv6hex = Hex.decodeHex(hexAsStr);\n\t\treturn IPv6Address.fromByteArray(ipv6hex);\n\t}", "public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }", "private void setupconfigVlanCPoints() {\n for (int i = LAST_CONF_DEVICE_INTF_VLAN_IP + 1; i <= LAST_CONF_DEVICE_INTF_VLAN; i++) {\n ConnectPoint connectPoint = new ConnectPoint(\n getDeviceId(i),\n PortNumber.portNumber(1));\n configVlanCPoints.add(connectPoint);\n }\n }", "void onConnectToNetByIPSucces();", "public void convict(InetAddress ep);", "public boolean initAndConnectToServer() {\n try {\n mTCPSocket.connect(new InetSocketAddress(mIpAdress, port), 1000);\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }", "public static void main(String[] args) {\n\t\tInetAddress localip,googleip[];\n\t\ttry {\n\t\t\tlocalip = InetAddress.getLocalHost();\n\t\t\tSystem.out.println(localip);\n\t\t\tgoogleip = InetAddress.getAllByName(\"tech.kiet.edu\");\n\t\t\tfor(int i=0;i<googleip.length;i++)\n\t\t\t{\n\t\t\tSystem.out.println(googleip[i]);\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\n public void run() {\n P.print(\"Listening on port \"+P.port+\", waiting for incomming connection...\");\n try {\n ServerSocket serverSocket = new ServerSocket(P.port);\n while (P.choke_thread_running) { //read input forever.\n Receive receive_thread = new Receive();\n Socket s = serverSocket.accept();\n String addr = s.getInetAddress().toString();\n int p = s.getPort();\n int i;\n for(i = 0;i<P.peer_ip.length;i++){\n if(addr.equals(P.peer_ip[i])){\n P.sockets[i] = s;\n P.tcp_out_stream[i] = new ObjectOutputStream(s.getOutputStream());\n break;\n }\n }\n receive_thread.start(P,s,P.peer_id[--i]);\n P.print(\"Accepted incomming connection: ip = \"+addr.substring(1)+\", port = \"+p);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void connect() {\n\t\tif (connected) return;\n\t\tconnected = true;\n\t\tfor (SQLConnection sqlConnection: sqlConnections) {\n\t\t\tsqlConnection.connection();\n\t\t}\n\t}", "public List<String> restoreIpAddressesThreeLoops(String s) {\n List<String> res = new ArrayList<>();\n int length = s.length();\n if (length < 4 || length > 12) return res;\n for (int a = 1; a < 4 && a < length; a++) { //first loop, check first substring only\n String as = s.substring(0, a);\n if (!isValidNumber(as))\n continue; //if current substring is invalid, skip to next stage, since no way to construct IP address from here\n\n for (int b = a + 1; b < a + 4 && b < length; b++) { //second loop, check second substring only\n String bs = s.substring(a, b);\n if (!isValidNumber(bs)) continue;\n\n for (int c = b + 1; c < b + 4 && c < length; c++) { //third loop, check third and forth substring.\n //no need for another loop, since after we consider the third substring, the rest is just the final substring\n String cs = s.substring(b, c);\n if (!isValidNumber(cs)) continue;\n\n String ds = s.substring(c);\n if (!isValidNumber(ds)) continue;\n\n //If we have four valid substrings, we can construct a valid IP address as well\n //Instead of using String.join(), we simply concatenate these substrings for the sake of runtime simplicity\n res.add(as + \".\" + bs + \".\" + cs + \".\" + ds);\n }\n }\n }\n return res;\n }" ]
[ "0.6517124", "0.64529306", "0.60391384", "0.60139203", "0.59929967", "0.5851413", "0.58458644", "0.577659", "0.5748283", "0.56833947", "0.56729513", "0.56455773", "0.5606495", "0.5588391", "0.5578193", "0.55428386", "0.55374944", "0.5506084", "0.54890376", "0.54561836", "0.5453142", "0.5445006", "0.5444539", "0.5422919", "0.5416047", "0.5389294", "0.53879887", "0.5301349", "0.5300624", "0.5291555", "0.5284792", "0.5281412", "0.5246574", "0.52345043", "0.52149487", "0.51915246", "0.5184741", "0.5181656", "0.5180391", "0.51732534", "0.5163962", "0.5162689", "0.5154174", "0.5146226", "0.5145282", "0.514454", "0.5140964", "0.5138888", "0.51316416", "0.511926", "0.51183915", "0.5094789", "0.50833917", "0.50828016", "0.50709325", "0.5070143", "0.5066902", "0.50640225", "0.5056229", "0.50559103", "0.5040153", "0.5029826", "0.50264263", "0.5018995", "0.5016549", "0.50053394", "0.49931335", "0.49816576", "0.4969121", "0.49671528", "0.49561995", "0.49533352", "0.49522075", "0.49463823", "0.49462962", "0.4942623", "0.4931202", "0.49215057", "0.49153012", "0.49039316", "0.48900318", "0.48886555", "0.48886284", "0.48872125", "0.48811638", "0.4874775", "0.4874073", "0.4870446", "0.486576", "0.48635617", "0.4861127", "0.4860761", "0.48401186", "0.48359385", "0.4835475", "0.4831394", "0.48288912", "0.4827221", "0.48255205", "0.48212746", "0.481937" ]
0.0
-1
Load online database, this takes all bookings that are awaiting dispatch and downloads them locally run on a the main thread.
public static void start(){ bRef.addChildEventListener(new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { Platform.runLater(() -> { LoadOnlineDatabase load = new LoadOnlineDatabase(); load.loadBookings(); MainController m = new MainController(); m.refreshBookingNo(); }); // Must run on FX thread - otherwise throws exception but still functions well either way ? weird } /** * Whenever a booking has values changed on the database this method is run, * the booking will be updated locally to match its values on the database. * @param dataSnapshot the booking that has changed * @param s */ @Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { Platform.runLater(() -> { LoadBookingChange load = new LoadBookingChange(); // System.out.println("UPDATING BOOKING: "+Integer.parseInt(dataSnapshot.getKey())); load.loadBookingChange(Integer.parseInt(dataSnapshot.getKey())); }); } /** * When a booking is removed from the online database this method will remove it locally, * * ConcurrentModificationException may be thrown if this is run straight after * application has been launched * @param dataSnapshot */ @Override public void onChildRemoved(DataSnapshot dataSnapshot) { int removedBooking = Integer.parseInt(dataSnapshot.getKey()); try { ObservableLists.bookingsList.forEach(b -> { if(b.getBookingNumber() == removedBooking){ ObservableLists.bookingsList.remove(b); } }); } catch (ConcurrentModificationException ex){ //This occurs because I am removing an from a list while I am iterating through that list //functions properly and works well however if I have time I will look at alternative ways } } @Override public void onChildMoved(DataSnapshot dataSnapshot, String s) { //Do nothing } @Override public void onCancelled(FirebaseError firebaseError) { //If internet connection cut - maybe wait for 1 minute and try again? } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public LogbookEntry loadInBackground() {\n this.database = this.databaseSchemaHelper.getReadableDatabase();\n return SchemaQueries.getLogbook(this.database);\n }", "private void loadDatabase() {\n Runnable load = new Runnable() {\n public void run() {\n try {\n boolean isSuccess = false;\n File data = Environment.getDataDirectory();\n\n String currentDbPath = \"//data//com.udacity.adcs.app.goodintents//databases//goodintents.db\";\n\n File currentDb = new File(data, currentDbPath);\n File restoreDb = getFileFromAsset(mActivity, mActivity.getExternalFilesDir(null) + \"/\", \"goodintents.db\");\n\n if (restoreDb != null ? restoreDb.exists() : false) {\n FileInputStream is = new FileInputStream(restoreDb);\n FileOutputStream os = new FileOutputStream(currentDb);\n\n FileChannel src = is.getChannel();\n FileChannel dst = os.getChannel();\n dst.transferFrom(src, 0, src.size());\n\n is.close();\n os.close();\n src.close();\n dst.close();\n isSuccess = true;\n }\n\n if (isSuccess) {\n PreferencesUtils.setBoolean(mActivity, R.string.initial_db_load_key, true);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n } finally {\n mActivity.runOnUiThread(loadDatabaseRunnable);\n }\n }\n };\n\n Thread thread = new Thread(null, load, \"loadDatabase\");\n thread.start();\n }", "public static void prepopulateBookingData() {\n // Write to the database on a worker thread (so as not to clog up the main thread)\n databaseExecutor.execute(() -> {\n BookingDao dao = dbInstance.bookingDao();\n\n // Start with a fresh database each load\n dao.deleteAllBookings();\n\n Booking stretchBooking = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking);\n\n Booking tipiBooking = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking);\n\n Booking marqueeBooking = new Booking.BookingBuilder()\n .withType(\"Marquee\")\n .withFirstName(\"Daniel\")\n .withLastName(\"Rose\")\n .withAddress(\"26 Flyway Drive TY5YYH\")\n .withCost(500)\n .withDate(LocalDate.of(2022, 1, 22))\n .withNumDays(2)\n .build();\n dao.insertBooking(marqueeBooking);\n\n Booking marqueeBooking2 = new Booking.BookingBuilder()\n .withType(\"Marquee\")\n .withFirstName(\"Daniel\")\n .withLastName(\"Rose\")\n .withAddress(\"26 Flyway Drive TY5YYH\")\n .withCost(500)\n .withDate(LocalDate.of(2022, 1, 22))\n .withNumDays(2)\n .build();\n dao.insertBooking(marqueeBooking2);\n\n Booking tipiBooking2 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking2);\n\n Booking tipiBooking3 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking3);\n\n Booking tipiBooking4 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking4);\n\n Booking stretchBooking2 = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking2);\n\n Booking stretchBooking3 = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking3);\n\n });\n }", "private void loadStateDatabase() {\n new Thread( new Runnable() {\n public void run() {\n try {\n loadStates();\n } catch ( final IOException e ) {\n throw new RuntimeException( e );\n }\n }\n }).start();\n }", "private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }", "public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "@Override\n public Cursor loadInBackground() {\n Cursor data = MoviesDbUtils.readDbSortedByPreference(MainActivity.this, sortByPreference, NUMBER_OF_ROWS);\n\n // if cursor is empty and favorites isn't the preference selected then download and insert new data\n // This should happen only the first time that app is opened. Keep in mind that if user doesn't\n // have any favorite movie the cursor will return empty too.\n if (data.getCount() == 0 && !sortByPreference.equals(getString(R.string.pref_order_by_favorite_value))){\n if (NetworkUtils.isOnline(MainActivity.this)){\n MoviesDbUtils.insertNewDataFromTheCloud(MainActivity.this, getString(R.string.pref_order_by_popularity_value));\n MoviesDbUtils.insertNewDataFromTheCloud(MainActivity.this, getString(R.string.pref_order_by_rating_value));\n return MoviesDbUtils.readDbSortedByPreference(MainActivity.this, sortByPreference, NUMBER_OF_ROWS);\n }\n }\n return data;\n }", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}", "public void refreshDb() {\n Ion.with(mContext)\n .load(mGetUrl)\n .asJsonObject()\n .setCallback(new FutureCallback<JsonObject>() {\n @Override\n public void onCompleted(Exception e, JsonObject result) {\n try {\n // do stuff with the result or error\n DatabaseClient databaseClient = new DatabaseClient(mContext);\n /**\n * if the return jsonObject is null, then don't clear the table\n * */\n if (result != null) {\n databaseClient.clearTablePage(\"bookpage\");\n }\n\n JsonArray array = result.getAsJsonArray(\"books\");\n /**\n * put data into db\n * */\n ContentResolver contentResolver = mContext.getContentResolver();\n Uri uri = Uri.parse(\"content://com.example.root.libapp_v1.SQLiteModule.Bookpage.BookpageProvider/bookpage\");\n for (int i = 0; i < array.size(); i++) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"name\", array.get(i).getAsJsonObject().get(\"name\").getAsString());\n contentValues.put(\"detail_info\", array.get(i).getAsJsonObject().get(\"detail_info\").getAsString());\n contentValues.put(\"author_info\", array.get(i).getAsJsonObject().get(\"author_info\").getAsString());\n contentValues.put(\"unique_id\", array.get(i).getAsJsonObject().get(\"id\").getAsString());\n contentValues.put(\"catalog_info\", array.get(i).getAsJsonObject().get(\"catalog_info\").getAsString());\n contentValues.put(\"timestamp\", array.get(i).getAsJsonObject().get(\"timestamp\").getAsString());\n Uri tmp = contentResolver.insert(uri, contentValues);\n }\n initData(mView);\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n });\n }", "private void getDataFromDB() {\n ArrayList<ArtworkData> artworkData = getArtworksFromDatabase();\n if (artworkData.size() <= 0) {\n // there is no data in local DB, error\n onErrorReceived();\n } else {\n sendArtworkData(artworkData);\n }\n }", "private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }", "@Override\n public Cursor loadInBackground() {\n // Will implement to load data\n // Query and load all drug data in the background; sort by priority\n // use a try/catch block to catch any errors in loading data\n\n try {\n return getContentResolver().query(DataContract.FirstAidEntry.CONTENT_URI,\n null,\n null,\n null,\n DataContract.FirstAidEntry._ID);\n } catch (Exception e) {\n Log.e(TAG, \"Failed to asynchronously load data.\");\n e.printStackTrace();\n return null;\n }\n\n\n }", "@Override\n public List<Story> loadInBackground() {\n // This method is called on a background thread and should generate a\n // new set of data to be delivered back to the client.\n String jsonDocumentAsString = \"{}\";\n\n // use URL to query API and return STRING(of JSON data)\n try {\n jsonDocumentAsString = makeHttpRequest(queryUrl);\n Log.v(LOG_TAG, \"HttpRequest done answer has size \" + jsonDocumentAsString.length());\n } catch (IOException e) {\n Log.e(LOG_TAG,\"HTTP error\", e);\n }\n\n // use STRING to pull out and DECODE JSON return ArrayList<Story>\n List<Story> listOfStory = QueryUtils.extractStories(jsonDocumentAsString);\n\n return listOfStory;\n }", "private void fetchData() {\r\n if (fetchDialogDataInBackground != null && fetchDialogDataInBackground.getStatus() != AsyncTask.Status.FINISHED)\r\n fetchDialogDataInBackground.cancel(true);\r\n fetchDialogDataInBackground = new FetchDialogDataInBackground();\r\n fetchDialogDataInBackground.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\r\n }", "@Override\n public List<Announcement> onLoadInBackground() {\n return databaseLoader.getChannelDBM().getAnnouncements(channelId);\n }", "public static void loadDB() throws Exception {\n\t\t// Remove previously loaded data\n\t\tcolToData.clear();\n\t\t// Load dictionary from disk\n\t\tloadDictionary();\n\t\t// Collect columns to load in parallel\n\t\tList<ColumnRef> colsToLoad = new ArrayList<ColumnRef>();\n\t\tfor (TableInfo table : CatalogManager.currentDB.nameToTable.values()) {\n\t\t\tString tableName = table.name;\n\t\t\tfor (ColumnInfo column : table.nameToCol.values()) {\n\t\t\t\tString columnName = column.name;\n\t\t\t\tcolsToLoad.add(new ColumnRef(tableName, columnName));\n\t\t\t}\n\t\t}\n\t\t// Load columns\n\t\tcolsToLoad.stream().parallel().forEach((colRef) -> {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Loading column \" + colRef.toString());\n\t\t\t\tloadColumn(colRef);\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Error loading column \" + colRef.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Loaded database.\");\n\t}", "public void loadBookmarks() {\n // Set the WHERE clause\n mDbNodeHelper.setConditions(\"is_bookmarked\", \"1\");\n // Run the query.\n nodes = mDbNodeHelper.getNodeListData();\n // Flush the query builder properties.\n mDbNodeHelper.flushQuery();\n }", "private void fetchDashboardList() {\n /*\n * Ensures a loader is initialized and active. If the loader doesn't already exist, one is\n * created and (if the activity/fragment is currently started) starts the loader. Otherwise\n * the last created loader is re-used.\n */\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<List<VehiclesTotalRunningCosts>> theDashboardDbLoader = loaderManager.getLoader(DASHBOARD_LOADER_ID);\n\n if (theDashboardDbLoader == null) {\n loaderManager.initLoader(DASHBOARD_LOADER_ID, null, this);\n } else {\n loaderManager.restartLoader(DASHBOARD_LOADER_ID, null, this);\n }\n\n\n\n }", "private void getAllNewsFromDatabase() {\n new GetAllNewsAsyncTask(newsDao).execute(newsList);\n }", "private void loadDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Check to make sure the Bmod Database is there, if not, try \n\t\t\t\t// downloading from the website.\n\t\t\t\tif(!Files.exists(m_databaseFile))\n\t\t\t\t{\n\t\t\t\t\tFiles.createDirectories(m_databaseFile.getParent());\n\t\t\t\t\n\t\t\t\t\tbyte[] file = ExtensionPoints.readURLAsBytes(\"http://\" + Constants.API_HOST + HSQL_DATABASE_PATH);\n\t\t\t\t\tif(file.length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t\t\t\tFiles.write(m_databaseFile, file, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// make sure we have the proper scriptformat.\n\t\t\t\tsetScriptFormatCorrectly();\n\t\t\t}catch(NullPointerException|IOException ex)\n\t\t\t{\n\t\t\t\tm_logger.error(\"Could not fetch database from web.\", ex);\n\t\t\t}\n\t\t\t\n\t\n\t\t\t\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\n\t\t\n\t\t\t\n\t\t\tString db = ExtensionPoints.getBmodDirectory(\"database\").toUri().getPath();\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:file:\" + db, \"sa\", \"\");\n\t\t\t\n\t\t\t// Setup Connection\n\t\t\tCSVRecordLoader ldr = new CSVRecordLoader();\n\t\t\n\t\t\t// Load all of the building independent plugins\n\t\t\tfor(Record<?> cp : ldr.getRecordPluginManagers())\n\t\t\t{\n\t\t\t\tm_logger.debug(\"Creating table: \" + cp.getTableName());\n\t\t\t\t// Create a new table\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tgetPreparedStatement(cp.getSQLTableDefn()).execute();\n\t\t\t\t} catch(SQLException ex)\n\t\t\t\t{\n\t\t\t\t\t// Table exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_logger.debug(\"Doing index:\" + cp.getIndexDefn());\n\t\t\t\t\tif(cp.getIndexDefn() != null)\n\t\t\t\t\t\tgetPreparedStatement(cp.getIndexDefn()).execute();\n\t\t\t\t}catch(SQLException ex)\n\t\t\t\t{\t// index exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tif(ex instanceof DatabaseIntegrityException)\n\t\t\t\tDatabase.handleCriticalError((DatabaseIntegrityException)ex);\n\t\t\telse\n\t\t\t\tDatabase.handleCriticalError(new DatabaseIntegrityException(ex));\n\t\t}\n\t\t\n\t}", "private void loading(){\n mDbHelper = new DbHelper(getActivity());\n if(!(mDbHelper.getPlanCount() == 0)){\n plan_list.addAll(mDbHelper.getAllPlan());\n }\n refreshList();\n }", "public List<Result> loadResults() {\n List<Result> results = null;\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n results = dbb.loadResults();\n dbb.commit();\n dbb.closeConnection();\n } catch (Exception ex) {\n Logger.getLogger(GameDBLogic.class.getName()).log(Level.SEVERE, null, ex);\n }\n return results;\n }", "private void loadMoviesData()\n {\n showMoviesDataView();\n new FetchMovieData(this, new FetchMovieDataCompleteListener()).execute(MOVIE_DB_URL_POPULAR+API_Key);\n\n }", "private void completeLoad() {\n if (boardFragment == null) {\n FragmentManager fm = getSupportFragmentManager();\n boardFragment = (BoardFragment) fm.findFragmentById(android.R.id.content);\n }\n boardFragment.setData(posts, threadLinks);\n\n setProgressBarIndeterminateVisibility(false);\n if (refreshItem != null) {\n refreshItem.setVisible(true);\n }\n }", "@Override\n\t\t\t\tprotected EbooksPageFile doInBackground(String... params) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\treturn Serialization.deserializeEbooksAndStore(getContext(),params[0]);\n\t\t\t\t}", "@Override\n\tpublic D loadInBackground() {\n\t\tmData = createData();\n\t\treturn mData;\n\t}", "private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "@NonNull\n @MainThread\n protected abstract LiveData<ResultType> loadFromDb();", "private void FetchingData() {\n\t\t try { \n\t\t\t \n\t \tmyDbhelper.onCreateDataBase();\n\t \t \t\n\t \t\n\t \t} catch (IOException ioe) {\n\t \n\t \t\tthrow new Error(\"Unable to create database\");\n\t \n\t \t} \n\t \ttry {\n\t \n\t \t\tmyDbhelper.openDataBase();\n\t \t\tmydb = myDbhelper.getWritableDatabase();\n\t\t\tSystem.out.println(\"executed\");\n\t \t\n\t \t}catch(SQLException sqle){\n\t \n\t \t\tthrow sqle;\n\t \n\t \t}\n\t}", "protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"category_s\");\n\n // This is a workaround for the gnavi API.\n // Gnavi API only allows max 1000 records for output.\n // Therefore, we divide records into smaller pieces\n // by prefectures and categories.\n for (String prefecture: prefectures) {\n for (String category: categories) {\n logger.debug(\"Prefecture: {}\", prefecture);\n logger.debug(\"Category: {}\", category);\n getVenues(client, prefecture, category, 1);\n }\n }\n }", "private void loadNotesFromDB(){\n AppDB appDB = Room.databaseBuilder(getApplicationContext(), AppDB.class, \"app-database\").build();\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n List<Note> notes = appDB.notesDao().getAllNotes();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // TODO: setup My RecyclerView\n setupNotesRecyclerView(notes);\n Log.d(\"MainActivity\", \"Notes Count: \" + notes.size());\n }\n });\n }\n }).start();\n }", "public synchronized void waitUntilLoad() {\n\t\twhile (!this.loaded) {\n\t\t\tSystem.out.println(\"Waiting for news to load\");\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t}", "@Override\n public Cursor loadInBackground() {\n try {\n return getActivity().getContentResolver().query(TaskItemsContract.TaskItemsColumns.CONTENT_URI,\n null,\n null,\n null,\n null);\n\n } catch (Exception e) {\n Log.e(TAG, \"Failed to asynchronously load data.\");\n e.printStackTrace();\n return null;\n }\n }", "private void startAsyncLoader() {\n if (CheckInternetConnection.isNetworkAvailable(this)) {\n Log.e(\"connection\", \"connection available\");\n if (getLoaderManager().getLoader(ASYNC_LOADER_ID) == null) {\n getLoaderManager().initLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n } else {\n getLoaderManager().restartLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n }\n } else {\n showMessageDialog(getResources().getString(R.string.message), getResources().getString(R.string.no_int), 1);\n }\n }", "@Override\n protected Void doInBackground (Void[] params) {\n if (checkFirstRun()) {\n try {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run () {\n List<InitializeDataBase> initializeDataBase = InitializeDataBase.listAll(InitializeDataBase.class);\n }\n });\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n\n return null;\n }", "private void initiateLoader() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = null;\n if (connMgr != null) {\n networkInfo = connMgr.getActiveNetworkInfo();\n }\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n avi.show();\n loadingIndicator.setVisibility(View.VISIBLE);\n errorContainer.setVisibility(View.GONE);\n LoaderManager loaderManager = getSupportLoaderManager();\n String url = BASE_URL + \"&from=\" + fromDate;\n url += \"&to=\" + toDate;\n url += \"&page=\" + currentPageNo;\n url += \"&sortBy=\" + sortPreference;\n if (queryText != null) {\n url += \"&q=\" + queryText;\n }\n\n Bundle args = new Bundle();\n args.putString(URL_KEY, url);\n if (forceLoad) {\n loaderManager.restartLoader(LAST_LOADER_ID, args, this);\n forceLoad = false;\n } else {\n LAST_LOADER_ID = NEWS_LOADER_ID;\n }\n if (!loaderInitiated) {\n loaderManager.initLoader(NEWS_LOADER_ID, args, this);\n loaderInitiated = true;\n } else {\n loaderManager.restartLoader(NEWS_LOADER_ID, args, this);\n }\n } else {\n avi.hide();\n loadingIndicator.setVisibility(View.GONE);\n ((TextView) errorContainer.findViewById(R.id.tvErrorDesc)).setText(R.string.no_conn_error_message);\n errorContainer.setVisibility(View.VISIBLE);\n }\n }", "@Override\n public List<Report> loadInBackground() {\n// Log for testing purposes\n// android.util.Log.i(LOG_TAG, \"Test: Report Loader loadInBackground() called.\");\n\n if (mUrl == null) {\n return null;\n }\n\n // Perform the network request, parse the response, and extract a list of reports.\n List<Report> reports = QueryUtils.fetchReportData(mUrl);\n return reports;\n }", "public void getDataFromFile() throws SQLException{\n \n //SQL database\n getGuestDate_DB();\n getHotelRoomData_DB();\n updateRoomChanges_DB();\n \n //this.displayAll();\n //this.displayAllRooms();\n \n }", "public void loadToQueue(Elements columns) throws IOException {\n Element element = columns.get(1).child(0);\n LocalDateTime date = this.parseDate(columns.get(5).text());\n String name = element.text();\n String url = element.attr(\"href\");\n Document job = Jsoup.connect(url).get();\n Element jobTable = job.select(\"table[class=msgTable]\").get(0);\n Elements trJobTable = jobTable.select(\"tr\");\n Elements tdJobTable = trJobTable.get(1).select(\"td\");\n String description = tdJobTable.get(1).text();\n vacancies.add(new Vacancy(name, url, description, date));\n }", "protected void updateLoading()\n {\n scheduled = false;\n\n if (!valid)\n return;\n\n while (loading.size() < numConnections) {\n updateActiveStats();\n\n final TileInfo tile;\n synchronized (toLoad) {\n if (toLoad.isEmpty())\n break;\n tile = toLoad.last();\n if (tile != null) {\n toLoad.remove(tile);\n }\n }\n if (tile == null) {\n break;\n }\n\n tile.state = TileInfoState.Loading;\n synchronized (loading) {\n if (!loading.add(tile)) {\n Log.w(\"RemoteTileFetcher\", \"Tile already loading: \" + tile.toString());\n }\n }\n\n if (debugMode)\n Log.d(\"RemoteTileFetcher\",\"Starting load of request: \" + tile.fetchInfo.urlReq);\n\n // Set up the fetching task\n tile.task = client.newCall(tile.fetchInfo.urlReq);\n\n if (tile.isLocal) {\n // Try reading the data in the background\n new CacheTask(this,tile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,(Void)null);\n } else {\n startFetch(tile);\n }\n }\n\n updateActiveStats();\n }", "@Override\n public Cursor loadInBackground() {\n try {\n return getContentResolver().query(OrderContract.OrderEntry.CONTENT_URI,\n null,\n null,\n null,\n null);\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "private void doDBProcessing() throws InterruptedException {\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t}", "@Override\n public void run() {\n try {\n List<String> list = Lists.newArrayList();\n for (; ; ) {\n String url = Engine.routeQueue.poll();\n if (url == null && list.size() > 0) {\n File file = new File(\"./half-moil.db\");\n if (!file.exists()) file.createNewFile();\n FileWriter writer = new FileWriter(file, true);\n\n writer.write(Joiner.on(\"\\r\\n\").join(list) + \"\\r\\n\");\n writer.flush();\n writer.close();\n writer = null;\n logger.info(\"文件已保存,新增{}条\", list.size());\n list.clear();\n } else if (url != null) {\n list.add(url);\n } else {\n Thread.sleep(5000L);\n }\n }\n } catch (Exception e) {\n logger.error(e);\n }\n }", "@Override\n public void run() {\n long[] saved = AppDatabase.getInstance().modelByName(name).insertAll((List) response);\n updateProgressDownload(1, name);\n }", "private void loadAvailableRooms() {\n\n\t\texecutor.submit(() -> {\n\t\t\troomResultsTable.setVisible(false);\n\t\t\tprogress.setVisible(true);\n\t\t\troom.clear();\n\t\t\thotel.clear();\n\t\t\tquality.clear();\n\t\t\trooms = FXCollections.observableArrayList(dbParser.checkAvailableRoomsBetweenDates(arrivalDate.toEpochDay(),\n\t\t\t\t\tdepartureDate.toEpochDay(), hotelChoice.getName(), roomQualityChoice.getQuality()));\n\t\t\troomResultsTable.setItems(rooms);\n\t\t\tprogress.setVisible(false);\n\t\t\troomResultsTable.setVisible(true);\n\t\t});\n\n\t}", "@Override\n public List<VehiclesTotalRunningCosts> loadInBackground() {\n return fetchVehiclesTotalRunningCosts();\n }", "public void retrieveThread() {\n\t\tRunnable runScrape = () -> {\n\t\t\ttry {\n\t\t\t\tPlatform.runLater(() -> { //enables non-FX application thread to update UI elements\n\t\t\t\t\tsetLoadingTxt(\"Getting data...\");\n\t\t\t\t\tsetErrorTxt(\"\");\n\t\t\t\t});\n\t\t\t\tscraper.retrieve(url.getText());\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tPlatform.runLater(() -> setErrorTxt(\"Error: could not retrieve data\"));\n\t\t\t}\n\t\t\tPlatform.runLater(() -> setLoadingTxt(\"\"));\n\t\t};\n\t\tThread t = new Thread(runScrape);\n\t\tt.start();\n\t}", "private static void loadBb() {\n // get the name of the billboard to load from the Jlist\n String name = (String) list.getSelectedValue();\n // ensure that there is a name selected\n if (name == null || name.equals(\"\")) {\n lbl_message.setText(\"No billboard selected\");\n Log.Confirmation(\"No billboard selected\");\n return;\n }\n // set the action request to the server\n user.setAction(\"Get Billboard Information\");\n // attempt connection to the server\n if (AttemptConnect()) {\n try {\n // Send user object to server\n objectStreamer.Send(user);\n // send the name of the billboard to retrieve from the database\n dos.writeUTF(name);\n // await confirmation that the billboard has been successfully retrieved from the database\n if (dis.readBoolean()) {\n // receive the requested billboard as an object\n billboard = (Billboard) objectStreamer.Receive();\n // enable the edit billboard fields\n fieldsEnabled(true);\n // populate the user input fields with the billboard credentials\n tf_name.setText(name);\n cb_bgColor.setSelectedItem(ColorIndex.stringFromColor(billboard.getBackColour()));\n tf_title.setText(billboard.getMsg());\n cb_titleColor.setSelectedItem(ColorIndex.stringFromColor(billboard.getMsgColour()));\n tf_info.setText(billboard.getInfo());\n cb_infoColor.setSelectedItem(ColorIndex.stringFromColor(billboard.getInfoColour()));\n // if the pic was loaded from a url then display the url\n if (billboard.getPicUrl() != null) {\n tf_path.setText(billboard.getPicUrl());\n rb_url.setSelected(true);\n b_fileSelect.setEnabled(false);\n }\n // if the pic was loaded from a file then inform the user that the picture data has been loaded\n else if (billboard.getPicData() != null) {\n tf_path.setText(\"Loaded image data\");\n tf_path.selectAll();\n tf_path.requestFocus();\n rb_file.setSelected(true);\n b_fileSelect.setEnabled(true);\n }\n // if there is no picture then clear the path text field\n else {\n tf_path.setText(\"\");\n }\n // make the save button visible\n b_save.setEnabled(true);\n // display message to the user\n lbl_message.setText(\"Billboard loaded\");\n }\n // if the server was unable to load the billboard then notify the user\n else {\n lbl_message.setText(\"Unable to load billboard\");\n }\n }\n // catch any unanticipated exceptions and print to console\n catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n Log.Error(\"Failed to retrieve billboard credentials\");\n }\n // Disconnect from server\n AttemptDisconnect();\n }\n // Post message to user if unable to connect to server\n else {\n Log.Error(\"Unable to connect to server\");\n }\n }", "public final void load( ) throws Exception\n\t{\n\t\tDatastore.getInstance( ).loadFromServer( this, this.getHref( ) );\n\t}", "private void fetchBusinessGoalFromDB() \r\n\t{\r\n\t\tthis.showLoadingStatusBar();\r\n\t\tServiceDefTarget endpoint = (ServiceDefTarget) service; \t\t// get the business goal and associated subgoals and assets\r\n\t\tendpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + \"identifyGoalAssetService.rpc\");\r\n\t\tservice.loadBusinessGoalInfo(getCurrentState().getProjectID(), new AsyncCallback<GwtBusinessGoal>()\r\n\t\t{\r\n\t\t\tpublic void onFailure(Throwable caught)\r\n\t\t\t{\r\n\t\t\t\tWindow.alert(caught.getMessage());\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(GwtBusinessGoal result)\r\n\t\t\t{\t\t\r\n\t\t\t\t\tbusinessGoal = result;\r\n\t\t\t\t\tsummaryPageCommand.execute();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void initiateStore() {\r\n\t\tURLConnection urlConnection = null;\r\n\t\tBufferedReader in = null;\r\n\t\tURL dataUrl = null;\r\n\t\ttry {\r\n\t\t\tdataUrl = new URL(URL_STRING);\r\n\t\t\turlConnection = dataUrl.openConnection();\r\n\t\t\tin = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));\r\n\t\t\tString inputLine;\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tString[] splittedLine = inputLine.split(\";\");\r\n\t\t\t\t// an array of 4 elements, the fourth element\r\n\t\t\t\t// the first three elements are the properties of the book.\r\n\t\t\t\t// last element is the quantity.\r\n\t\t\t\tBook book = new Book();\r\n\t\t\t\tbook.setTitle(splittedLine[0]);\r\n\t\t\t\tbook.setAuthor(splittedLine[1]);\r\n\t\t\t\tBigDecimal decimalPrice = new BigDecimal(splittedLine[2].replaceAll(\",\", \"\"));\r\n\t\t\t\tbook.setPrice(decimalPrice);\r\n\t\t\t\tfor(int i=0; i<Integer.parseInt(splittedLine[3]); i++)\r\n\t\t\t\t\tthis.addBook(book);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(!in.equals(null)) in.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@FXML\n\t private void loadbookinfo(ActionEvent event) {\n\t \tclearbookcache();\n\t \t\n\t \tString id = bookidinput.getText();\n\t \tString qu = \"SELECT * FROM BOOK_LMS WHERE id = '\" + id + \"'\";\n\t ResultSet rs = dbhandler.execQuery(qu);\n\t Boolean flag = false;\n\t \n\t try {\n while (rs.next()) {\n String bName = rs.getString(\"title\");\n String bAuthor = rs.getString(\"author\");\n Boolean bStatus = rs.getBoolean(\"isAvail\");\n\n Bookname.setText(bName);\n Bookauthor.setText(bAuthor);\n String status = (bStatus) ? \"Available\" : \"Not Available\";\n bookstatus.setText(status);\n\n flag = true;\n }\n\n if (!flag) {\n Bookname.setText(\"No Such Book Available\");\n }\n\n } catch (SQLException ex) {\n Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "@Override\n public void run() {\n load_remote_data();\n }", "public void pullingUploadedDocuments() {\n new Thread(() -> {\n mySqlConn sql = new mySqlConn();\n List<Document> documents = sql.getAllDocuments();\n if (documents != null) {\n ObservableList<Document> list = FXCollections.observableArrayList(documents);\n combo_uploaded.setItems(list);\n }\n }).start();\n }", "private void downloadData(SQLiteDatabase db){\n DeviceDataManager.downloadDeviceData(db);\n CustomerDataManager.downloadCustomerData(db);\n CheckInTypeDataManager.downloadCheckInTypeData(db);\n CheckInPointDataManager.downloadCheckInPointData(db);\n PhotographerDataManager.downloadPhotographerData(db);\n }", "private void asynload() {\n\t\tfileManager=FileManager.getFileManager();//获取fileManager\n\t\tfileManager.setSearchListener(searchFileListener);//在主线程设置监听\n\t\t//启动工作线程进行文件搜索\n\t\tthread=new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n//相当于将需要在工作线程获得的数据直接封装成方法\n\t\t\t\tfileManager.searchCardFile();//将数据存储到文件集合和文件大小里\n\t\t\t\t\t\t\t\t\n//\t\t\t\trunOnUiThread(new Runnable() {\n//\t\t\t\t\t\n//\t\t\t\t\t@Override\n//\t\t\t\t\tpublic void run() {\n//\t\t\t\t\t\t//测试将所有文件大小显示\n//\t\t\t\t\t\ttv_all_size.setText(CommonUtil.getFileSize(fileManager.getAnyFileSize()));\n//\t\t\t\t\t\ttv_txt_size.setText(CommonUtil.getFileSize(fileManager.getTxtFileSize()));\n//\t\t\t\t\t\ttv_apk_size.setText(CommonUtil.getFileSize(fileManager.getApkFileSize()));\n//\t\t\t\t\t\ttv_audio_size.setText(CommonUtil.getFileSize(fileManager.getAudioFileSize()));\n//\t\t\t\t\t\ttv_image_size.setText(CommonUtil.getFileSize(fileManager.getImageFileSize()));\n//\t\t\t\t\t\ttv_video_size.setText(CommonUtil.getFileSize(fileManager.getVideoFileSize()));\n//\t\t\t\t\t\ttv_zip_size.setText(CommonUtil.getFileSize(fileManager.getZipFileSize()));\n//\t\t\t\t\t}\n//\t\t\t\t});\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tthread.start();\n\t}", "@Override\r\n public void run() {\n long time1 = System.currentTimeMillis();\r\n long time2 = 0;\r\n while (true) {\r\n if (BaseApplication.getInstance().isShelfDataLoadOver) {\r\n time2 = System.currentTimeMillis();\r\n break;\r\n }\r\n }\r\n long timeDis = time2 - time1;\r\n if (timeDis < 3500) {\r\n try {\r\n Thread.sleep(3500 - timeDis);\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n LauncherActivity.this.runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // TODO Auto-generated method stub\r\n startBookMain();\r\n }\r\n });\r\n\r\n }", "private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public List<Movie> loadInBackground() {\n\n // obtain the Url, used for the http request\n URL url = AppUtilities.buildUrl(pageNumberBeingQueried, sortOrderOfResults,\n searchQuerySubmitted, preferredMovieGenre, preferredStartYear,\n preferredEndYear, preferenceValuesAreDefault);\n\n // perform the url request\n String jsonResponseString = null;\n try {\n jsonResponseString = AppUtilities.getResponseFromHttpUrl(url);\n } catch (IOException io_exception) {\n io_exception.printStackTrace();\n }\n\n // initialise the return object\n List<Movie> movieList = null;\n\n // if the response String is not null - parse it\n if (jsonResponseString != null) {\n // call helper method to parse JSON\n Pair<List<Movie>, Integer> result = JsonUtilities.extractFromJSONString(jsonResponseString);\n movieList = result.first;\n jsonResponseCode = result.second;\n }\n return movieList;\n }", "@Override\n public void run() {\n ArticleHeaders.loadData(getApplicationContext());\n CustomerHeaders.loadData(getApplicationContext());\n OrderReasons.loadData(getApplicationContext());\n }", "private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}", "public void loadData(){\n JsonArrayRequest request = new JsonArrayRequest(\"http://www.efstratiou.info/projects/newsfeed/getList.php\", netListener, errorListener);\n\n //submit request\n ArticlesApp.getInstance().getRequestQueue().add(request);\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_full_loading);\n\n getSupportActionBar().hide();\n dBase = Room.databaseBuilder(this, DBase.class, \"database\").allowMainThreadQueries().build();\n\n textViewText = (TextView) findViewById(R.id.fullloading_text);\n switch (isPage) {\n case 0:\n textViewText.setText(getString(R.string.loading_level));\n break;\n case 1:\n textViewText.setText(getString(R.string.loading_levels));\n break;\n case 2:\n textViewText.setText(getString(R.string.loading_level));\n break;\n }\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n switch (isPage) {\n case 0:\n LoadSection();\n break;\n case 1:\n LoadSections();\n break;\n case 2:\n LoadSectionGame();\n break;\n }\n }\n }, 300);\n }\n }).run();\n }", "private void loadDataFromDatabase(){\n //get database connection\n DeezerOpener deezerOpener = new DeezerOpener(this);\n db = deezerOpener.getWritableDatabase();\n\n //define columns and create cursor\n String [] columns = {DeezerOpener.COL_ID, DeezerOpener.COL_ARTIST, DeezerOpener.COL_TITLE, DeezerOpener.COL_ALBUM, DeezerOpener.COL_DUR, DeezerOpener.COL_COVER};\n Cursor results = db.query( DeezerOpener.TABLE_NAME, columns, null, null, null, null, null);\n\n //get column indices\n int idColIndex = results.getColumnIndex(DeezerOpener.COL_ID);\n int artistColIndex = results.getColumnIndex(DeezerOpener.COL_ARTIST);\n int titleColIndex = results.getColumnIndex(DeezerOpener.COL_TITLE);\n int albumColIndex = results.getColumnIndex(DeezerOpener.COL_ALBUM);\n int durColIndex = results.getColumnIndex(DeezerOpener.COL_DUR);\n int coverColIndex = results.getColumnIndex(DeezerOpener.COL_COVER);\n\n //loop through the database obtaining data\n while(results.moveToNext()){\n long id = results.getLong(idColIndex);\n String artistDB = results.getString(artistColIndex);\n String titleDB = results.getString(titleColIndex);\n String albumDB = results.getString(albumColIndex);\n int durationDB = results.getInt(durColIndex);\n String coverURL_DB = results.getString(coverColIndex);\n\n //create the cover Bitmap\n Bitmap coverDB = getBitmapFromURL(coverURL_DB);\n\n //add to favourites list\n deezerFavList.add(new DeezerSong(titleDB, albumDB, artistDB, coverURL_DB, coverDB, durationDB, id));\n }\n }", "@Override\n public List< Item > loadInBackground() {\n Cursor cursor = resolver.query( ItemContentProvider.CONTENT_URI, projection, \"isDeleted=?\",\n new String[]{ \"0\" }, ItemTable.COLUMN_ITEM + \" ASC\" );\n\n //TODO: Check if cursor actually contains data\n // Also close it\n return ItemUtils.cursorToList( cursor );\n }", "private void loadData(){\n updateDateTimeText();\n\n mLoadingDialog = DialogUtil.createLoadingDialog(getActivity(), getString(R.string.loading_dialog_in_progress));\n mLoadingDialog.show();\n // Call API to get the schedules\n mPresenter.loadAllExaminationSchedulesForSpecificDate(mMyDate.generateDateString(AppConstants.DATE_FORMAT_YYYY_MM_DD));\n }", "public void initFromDb() {\n // Get load list of symbols to query\n new AsyncTask<ContentResolver, Void, Void>() {\n @Override\n protected Void doInBackground(ContentResolver... params) {\n Cursor cursor = null;\n try {\n ContentResolver cr = params[0];\n int shownPositionBookmark = Utility.getShownPositionBookmark(cr);\n\n // Query db for data up to the list position bookmark;\n cursor = cr.query(\n StockEntry.CONTENT_URI,\n ListManipulator.STOCK_PROJECTION,\n StockProvider.LIST_POSITION_SELECTION,\n new String[]{Integer.toString(shownPositionBookmark)},\n StockProvider.ORDER_BY_LIST_POSITION_ASC_ID_DESC);\n\n // Extract StockChange data from cursor\n if (cursor != null) {\n int cursorCount = cursor.getCount();\n if (cursorCount > 0) {\n mListManipulator.setShownListCursor(cursor);\n mListManipulator.setLoadList(getLoadListFromDb(cr));\n mListManipulator.addToLoadListPositionBookmark(cursorCount);\n }\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n return null;\n }\n\n @Override\n protected void onPostExecute(Void aVoid) {\n ListEventQueue.getInstance().post(new InitLoadFromDbFinishedEvent(\n MyApplication.getInstance().getSessionId()));\n }\n }.execute(getActivity().getContentResolver());\n }", "public void LoadNews()\n {\n String url = \"https://newsapi.org/v1/articles?source=the-next-web&apiKey=533af958594143758318137469b41ba9\";\n Load_News = new StringRequest(Request.Method.GET,url,Success,Error);\n rQueue = ApplicationSingleton.getInstance().getQueue();\n rQueue.add(Load_News);\n\n\n }", "@Override\n public Loader<Cursor> onCreateLoader(int id, final Bundle loaderArgs) {\n return new AsyncTaskLoader<Cursor>(this) {\n // Initialize a Cursor, this will hold all the drugs data\n Cursor mTaskData = null;\n // onStartLoading() is called when a loader first starts loading data\n @Override\n protected void onStartLoading() {\n if (mTaskData != null) {\n // Delivers any previously loaded data immediately\n deliverResult(mTaskData);\n } else {\n // Force a new load\n forceLoad();\n }\n }\n // loadInBackground() performs asynchronous loading of data\n @Override\n public Cursor loadInBackground() {\n // Will implement to load data\n // Query and load all drug data in the background; sort by priority\n // use a try/catch block to catch any errors in loading data\n\n try {\n return getContentResolver().query(DataContract.FirstAidEntry.CONTENT_URI,\n null,\n null,\n null,\n DataContract.FirstAidEntry._ID);\n } catch (Exception e) {\n Log.e(TAG, \"Failed to asynchronously load data.\");\n e.printStackTrace();\n return null;\n }\n\n\n }\n // deliverResult sends the result of the load, a Cursor, to the registered listener\n public void deliverResult(Cursor data) {\n mTaskData = data;\n super.deliverResult(data);\n }\n };\n\n\n }", "public void start() {\n initDb();\n try {\n VacancyLoader vl = new VacancyLoader(this.connection, this.vacancies);\n vl.start();\n parse(checkDate());\n } catch (IOException e) {\n LOG.error(e.getMessage());\n }\n }", "public static void loadGraph_Database(Position[] bBox, String name) {\n // Graph aus Datei laden\n double time_graph = System.currentTimeMillis();\n System.out.println(\"============================================================\");\n Application.connection = new geoDatabaseConnection(dbhost, dbport, dbuser, dbpasswd, dbname);\n\n // Graph generieren\n File file = new File(name + \".DAT\");\n // Graph von DB laden\n Application.println(\"Fetching Data from DB and building graph\");\n try {\n Application.connection.connect();\n graph = Application.connection.getGraph(bBox, name);\n FileOutputStream fos = new FileOutputStream(file.getName());\n ObjectOutputStream out2 = new ObjectOutputStream(fos);\n out2.writeObject(graph);\n out2.close();\n fos.close();\n time_graph = (System.currentTimeMillis() - time_graph) / 1000;\n Application.println(\"Fetching Data and building graph took: \" + time_graph + \"sec\");\n double time_init = System.currentTimeMillis();\n Application.println(\"Init Graph\");\n graph.initGraph();\n time_init = (System.currentTimeMillis() - time_init) / 1000;\n Application.println(\"Init Graph took \" + time_init + \" Secs\");\n Application.println(\"============================================================\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.toString());\n e.printStackTrace();\n System.exit(1);\n }\n }", "@Override\n protected void onStartLoading() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n if (mResult != null) // If we currently have a result available, deliver it immediately.\n deliverResult(mResult);\n\n if (isReload() || mResult == null)\n forceLoad();\n }\n });\n }", "@Override\n public Loader<Cursor> onCreateLoader(int i, Bundle bundle) {\n String[] projection = {\n BookEntry._ID,\n BookEntry.COLUMN_BOOK_PRODUCT_NAME,\n BookEntry.COLUMN_BOOK_AUTHOR,\n BookEntry.COLUMN_BOOK_PRICE,\n BookEntry.COLUMN_BOOK_QUANTITY,\n BookEntry.COLUMN_BOOK_SUPPLIER,\n BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER\n };\n\n // This loader will execute the ContentProvider's query on the background thread.\n return new CursorLoader(this,\n currentBookUri,\n projection,\n null,\n null,\n null);\n }", "private void startRetrieve() {\n final Thread retrieveThread = new Thread(new FutureThread());\n retrieveThread.start();\n }", "public void buildDB(){\n db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"classattendance\").allowMainThreadQueries().build();\n }", "public void loadMeals(){\n //Create a service to load all the Meals / Recipes from the database in a background thread\n LoadAllRecipesService service = new LoadAllRecipesService();\n\n //When the service is successful set the returned Recipes / Meals to various comboBoxes\n service.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n recipesFromDatabase = service.getValue();\n comboMealSelection.setItems(recipesFromDatabase);\n //A test\n breakfastCombo.setItems(recipesFromDatabase);\n lunchCombo.setItems(recipesFromDatabase);\n dinnerCombo.setItems(recipesFromDatabase);\n }\n });\n\n\n if (service.getState() == Service.State.SUCCEEDED){\n service.reset();\n service.start();\n } else if (service.getState() == Service.State.READY){\n service.start();\n }\n }", "private void firstRunning() {\n for (int page = 1; page < 50; page++) {\n vacancies.addAll(parser.parseHtml(URL + page, null));\n }\n LOG.info(vacancies.size());\n try (VacancyDao vacancyDao = new VacancyDao(properties)) {\n vacancyDao.insertSet(vacancies);\n vacancyDao.insertLastUpdateDate(new Date().getTime());\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n }\n }", "public void fetchDataStock(){\n// stocks.add(new Stock(1,\"bitcoin\",new Double(7000),new Double(7500),new Double(5),null));\n\n stockFetcher = new StockAsyncTask ();\n stockFetcher.execute();\n\n\n // TODO:\n\n refresh(5000);\n\n\n }", "private void showOrLoadApplications() {\n //nocache!!\n GetAppList getAppList = new GetAppList();\n if (plsWait == null && (getAppList.getStatus() == AsyncTask.Status.PENDING || getAppList.getStatus() == AsyncTask.Status.FINISHED)) {\n getAppList.setContext(this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }\n }", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "public abstract void loadFromDatabase();", "@Override\n protected List<ACMDatabaseInfo> doInBackground(Void... nothing) {\n IOHandler.getInstance().refresh();\n return IOHandler.getInstance().getDatabaseInfos();\n }", "public void loadBook() {\n List<Book> books = new ArrayList<>();\n for (int i = 0; i < 5; i++) {\n Book book = new Book(\"Book-\" + i, \"Test book \" + i);\n books.add(book);\n }\n this.setBooks(books);\n }", "protected void scheduleLoading()\n {\n if (!valid)\n return;\n\n if (!scheduled) {\n Handler handler = new Handler(getLooper());\n handler.post(this::updateLoading);\n }\n }", "private void loadDatabase(){\n \t\n String db = jFieldDBFile.getText().trim();\n boolean badzip = false;\n \n Collection<String> zf = new LinkedList<String>();\n \n // handle zipcodes if zip filtering specified\n if(jCheckBoxZipFilter.isSelected()){\n\t \n \tString zips = jTextFieldZipcodes.getText().trim();\n\t \n\t String[] z = zips.split(\",\");\n\t for(int i = 0; i < z.length; i++){\n\t \tzf.add(z[i].trim());\n\t }\n\t \n\t for(String s : zf){\n\t \tif(s.length() != 5){\n\t \t\tbadzip = true;\n\t \t}\n\t \ttry{\n\t \t\tInteger.parseInt(s);\n\t \t}catch(NumberFormatException ex){\n\t \t\tbadzip = true;\n\t \t}\n\t }\n\t \n }\n \n // if the zipcode input is bad\n if(badzip){\n \toutputResults(\"Please check your zipcodes.\\nA zipcode must be a 5 digit number...\\n\");\n \tjButtonDBLoad.setForeground(new java.awt.Color(255, 37, 37));\n \tjButtonDBLoad.setText(\"Check Zipcodes\");\n }else{\n\t // attempt to load database\n\t try{\n\t \t\n\t \tif(DEBUG_SETDB) db = DEBUG_DB;\n\t \t\n\t \tjButtonDBLoad.setForeground(Color.BLACK);\n\t \tjButtonDBLoad.setText(\"Loading...\");\n\t \tvirtualGPS = DirectionsFinder.getDirectionsFinder(db, zf);\n\t jButtonDBLoad.setText(\"Load Database\");\n\t \n\t \tjPanelAddr.setVisible(true);\n\t \tjPanelDB.setVisible(false);\n\t jButtonDBToAddr.setVisible(true);\n\t \t\n\t }catch(InvalidDatabaseException ex){\n\t \toutputResults(\"Please check the database path.\\nThe path name must refer \" +\n\t \t\t\t\"to a valid Tiger Database...\\n\");\n\t jButtonDBLoad.setForeground(new java.awt.Color(255, 37, 37));\n\t jButtonDBLoad.setText(\"Check Database\");\n\t }\n }\n \t\n }", "private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_GAME_LCOATION_COLUMN);\n\t\t\tString isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);\n\n\t\t\tGAME_LIST.add(new gameLocation(ID, Description,\n\t\t\t\t\tisUsed(isGameVisited)));\n\t\t\t\n\t\t\tLog.d(TAG, \"game ID : \"+ ID);\n\t\t\t\n\t\t} // travel to database result\n\n\t}", "@MainThread\n @Override\n protected void onForceLoad() {\n super.onForceLoad();\n cancelLoadHelper();\n\n makeRequest();\n }", "@Override\n public List<News> loadInBackground() {\n if (mUrl == null) {\n return null;\n }\n // Perform the network request, parse the response, and extract a list of articles.\n List<News> news = QueryUtils.fetchNewsData(mUrl);\n return news;\n }", "void retrieveBrokerList() {\n java.util.logging.Logger.getLogger(TAG).log(Level.INFO, \"Start: retrieveBrokerList()\");\n // request the list to the cloud\n // parse the response and add brokers to \"brokers\"\n NetworkThread thread = new NetworkThread();\n thread.start();\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n java.util.logging.Logger.getLogger(TAG).log(Level.INFO, \"Finish: retrieveBrokerList()\");\n }", "@Override\n\t\tpublic void run() {\n\t\t\tforcastDao = new ForecastDAO();\n\t\t\tforecasts = forcastDao.loadAll(woeid);\n\t\t\tforcastDao = null;\n\t\t\tdaoCallHandler.sendMessage(daoCallHandler.obtainMessage());\n\t\t}", "private void loadDataOnFirst(){\n updateDateTimeText();\n\n mPbLoading.setVisibility(View.VISIBLE);\n mCalendarListView.setVisibility(View.GONE);\n\n // Call API to get the schedules\n mPresenter.loadAllExaminationSchedulesForSpecificDate(mMyDate.generateDateString(AppConstants.DATE_FORMAT_YYYY_MM_DD));\n }", "void fetchStartHousesData();", "@Override\n public D loadInBackground() {\n mData = SerializeUtils.readSerializableObject(mContext, mFilename);\n return mData;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLooper.prepare();\n\t\t\t\tif (syncArticleContent()) {\n\t\t\t\t\thandler.sendEmptyMessage(OFFLINE_DOWNLOAD);\n\t\t\t\t}\n\t\t\t}", "private void loadFieldGuideData() {\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLog.d(TAG, \"Loading data via loadData()\");\n\t\t\t\t\t\tloadData();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).start();\n\t\t}", "void fetchForRentHousesData();", "public void DownloadBooks() {\n DatabaseReference DownloadBook = database.getReference(\"ebooksapp/library/books/\" + ReadBookID);\n DownloadBook.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n // This method is called once with the initial value and again\n // whenever data at this location is updated.\n // String value = dataSnapshot.getValue(String.class);\n // Log.d(TAG, \"Value is: \" + value);\n\n String BookName = dataSnapshot.child(\"bookname\").getValue(String.class);\n String BookAuthor = dataSnapshot.child(\"bookauthor\").getValue(String.class);\n String BookYear = dataSnapshot.child(\"bookyear\").getValue(String.class);\n String BookCategory = dataSnapshot.child(\"bookcategory\").getValue(String.class);\n String BookCover = dataSnapshot.child(\"bookcover\").getValue(String.class);\n String BookURL = dataSnapshot.child(\"bookurl\").getValue(String.class);\n String BookID = String.valueOf(dataSnapshot.child(\"bookid\").getValue(Integer.class));\n\n StoreBook.put(\"bookname\", BookName);\n StoreBook.put(\"bookauthor\", BookAuthor);\n StoreBook.put(\"bookyear\", BookYear);\n StoreBook.put(\"bookcategory\", BookCategory);\n StoreBook.put(\"bookcover\", BookCover);\n StoreBook.put(\"bookurl\", BookURL);\n StoreBook.put(\"bookid\", BookID);\n\n\n Log.d(TAG, \"-------------------onDataChange:\\n Book Details:\\n\" + StoreBook);\n LoadPDF();\n\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }\n });\n\n\n }" ]
[ "0.66245425", "0.6291838", "0.61683476", "0.61662143", "0.61393774", "0.60767883", "0.58572054", "0.5815216", "0.5794337", "0.57517797", "0.56752586", "0.56537783", "0.56076044", "0.5605587", "0.55513173", "0.5524621", "0.5485217", "0.54771143", "0.54609567", "0.5452524", "0.54444426", "0.5441775", "0.5434212", "0.5410277", "0.5398316", "0.53691", "0.53632843", "0.53587013", "0.5349885", "0.53462934", "0.53421474", "0.53341377", "0.53290844", "0.532874", "0.5322073", "0.5321513", "0.5321399", "0.52992296", "0.52971303", "0.5277571", "0.5277163", "0.5274376", "0.52588266", "0.52457136", "0.5240546", "0.5229729", "0.52167296", "0.521209", "0.52054995", "0.52033395", "0.51968914", "0.5191495", "0.5190313", "0.5177886", "0.5174521", "0.5157594", "0.51574427", "0.5152638", "0.514578", "0.51378745", "0.512117", "0.51170605", "0.51017326", "0.5100421", "0.5100403", "0.5096649", "0.5094962", "0.50900656", "0.5086399", "0.5083874", "0.50770575", "0.50744915", "0.5073386", "0.5066602", "0.50602615", "0.50548273", "0.5046907", "0.50449204", "0.5028353", "0.50223124", "0.5012196", "0.5011978", "0.50024086", "0.4997372", "0.4996699", "0.49920774", "0.49911588", "0.4987949", "0.49873123", "0.4970683", "0.4968653", "0.49648693", "0.49622148", "0.4961805", "0.4960577", "0.49604473", "0.49601448", "0.49571237", "0.49403864", "0.4939889" ]
0.51576155
55
Whenever a booking has values changed on the database this method is run, the booking will be updated locally to match its values on the database.
@Override public void onChildChanged(DataSnapshot dataSnapshot, String s) { Platform.runLater(() -> { LoadBookingChange load = new LoadBookingChange(); // System.out.println("UPDATING BOOKING: "+Integer.parseInt(dataSnapshot.getKey())); load.loadBookingChange(Integer.parseInt(dataSnapshot.getKey())); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update() {\n\t\trl = DBManager.getReservationList();\n\t}", "public void setMyRoomReservationOK() throws SQLException{\n int guestID = guest[guestIndex].getAccountID();\n int selRoomCount = getSelectedRoomsCounter();\n int[] tempRooms = getGuestSelRooms(); //Selected room by room number\n \n roomStartDate = convertMonthToDigit(startMonth) + \"/\" +startDay+ \"/\" + startYear;\n roomEndDate = convertMonthToDigit(endMonth) + \"/\" +endDay+ \"/\" + endYear; \n \n System.out.println(\"\\nSaving reservation\");\n System.out.println(\"roomStartDate\" + roomStartDate);\n System.out.println(\"roomEndDate:\" + roomEndDate);\n \n //Searching the reserved room number in the hotel rooms\n for(int i=0;i<selRoomCount;i++){\n for(int i2=0;i2<roomCounter;i2++){\n if(myHotel[i2].getRoomNum() == tempRooms[i]){ \n //if room number from array is equal to selected room number by guest\n System.out.println(\"Room Found:\"+tempRooms[i]); \n \n myHotel[i2].setOccupantID(guestID);\n myHotel[i2].setAvailability(false);\n myHotel[i2].setOccupant(guest[guestIndex].getName());\n myHotel[i2].setStartDate(roomStartDate);\n myHotel[i2].setEndDate(roomEndDate);\n }\n }\n }\n \n updateRoomChanges_DB(); //apply changes to the database\n \n //Updates room preference of the current guest \n String sqlstmt = \"UPDATE APP.GUEST \"\n + \" SET ROOMPREF = '\" + guest[guestIndex].getPref()\n + \"' WHERE ID = \"+ guest[guestIndex].getAccountID();\n \n CallableStatement cs = con.prepareCall(sqlstmt); \n cs.execute(); //execute the sql command \n cs.close(); \n }", "private void updateBook(){\n String dateStarted = ((EditText)dialogView.findViewById(R.id.input_date_started_reading))\n .getText().toString();\n book.setDateStarted(dateStarted);\n\n String dateCompleted = ((EditText)dialogView.findViewById(R.id.input_date_completed))\n .getText().toString();\n book.setDateCompleted(dateCompleted);\n\n //update the book\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\n mDatabase.child(\"books\").child(book.getId()).setValue(book);\n\n //hide dialog\n dismiss();\n }", "public static void prepopulateBookingData() {\n // Write to the database on a worker thread (so as not to clog up the main thread)\n databaseExecutor.execute(() -> {\n BookingDao dao = dbInstance.bookingDao();\n\n // Start with a fresh database each load\n dao.deleteAllBookings();\n\n Booking stretchBooking = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking);\n\n Booking tipiBooking = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking);\n\n Booking marqueeBooking = new Booking.BookingBuilder()\n .withType(\"Marquee\")\n .withFirstName(\"Daniel\")\n .withLastName(\"Rose\")\n .withAddress(\"26 Flyway Drive TY5YYH\")\n .withCost(500)\n .withDate(LocalDate.of(2022, 1, 22))\n .withNumDays(2)\n .build();\n dao.insertBooking(marqueeBooking);\n\n Booking marqueeBooking2 = new Booking.BookingBuilder()\n .withType(\"Marquee\")\n .withFirstName(\"Daniel\")\n .withLastName(\"Rose\")\n .withAddress(\"26 Flyway Drive TY5YYH\")\n .withCost(500)\n .withDate(LocalDate.of(2022, 1, 22))\n .withNumDays(2)\n .build();\n dao.insertBooking(marqueeBooking2);\n\n Booking tipiBooking2 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking2);\n\n Booking tipiBooking3 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking3);\n\n Booking tipiBooking4 = new Booking.BookingBuilder()\n .withType(\"Tipi\")\n .withFirstName(\"Jason\")\n .withLastName(\"Hitching\")\n .withAddress(\"76 Inway Drive KL25TP\")\n .withCost(233)\n .withDate(LocalDate.of(2021, 6, 3))\n .withNumDays(10)\n .build();\n dao.insertBooking(tipiBooking4);\n\n Booking stretchBooking2 = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking2);\n\n Booking stretchBooking3 = new Booking.BookingBuilder()\n .withType(\"Stretch Tent\")\n .withFirstName(\"Joe\")\n .withLastName(\"Copping\")\n .withAddress(\"1 Pleasant Drive GT53DP\")\n .withCost(800)\n .withDate(LocalDate.of(2021, 8, 1))\n .withNumDays(5)\n .build();\n dao.insertBooking(stretchBooking3);\n\n });\n }", "public static void addBooking(BookingImpl b, String status){\n Firebase bRefChild;\n if(!status.equals(\"new\")){\n //Dispatched Booking\n //Removes from Awaiting_Dispatch and puts in Dispatched\n bRefChild = dRef.child(status);\n bRef.child(b.getBookingNumber()+\"\").removeValue();\n } else {\n bRefChild = bRef.child(b.getBookingNumber() + \"\");\n }\n bRefChild.child(\"pickup\").setValue(b.getPickUpAddress());//\n bRefChild.child(\"dropoff\").setValue(b.getDropOffAddress());//\n bRefChild.child(\"name\").setValue(b.getClientName());//\n bRefChild.child(\"time\").setValue(b.getTime().toString());\n bRefChild.child(\"comment\").setValue(b.getComments());//\n bRefChild.child(\"tel\").setValue(b.getClientTel());//\n bRefChild.child(\"email\").setValue(b.getClientEmail());//\n bRefChild.child(\"booking_number\").setValue(b.getBookingNumber());//\n bRefChild.child(\"account\").setValue(Cash.getInstance().getId());\n bRefChild.child(\"vehicle_type\").setValue(b.getVehicleType());\n bRefChild.child(\"no_passengers\").setValue(b.getNoPassengers());\n bRefChild.child(\"date\").setValue(b.getDate());\n try {\n bRefChild.child(\"time\").setValue(new SimpleDateFormat(\"HH:mm\").format(b.getTime()));\n } catch (IllegalArgumentException e){\n // Always throws this exception - unsure why as it saves correctly.\n // Do nothing as it still writes to database as expected\n // Maybe need to look at different formats for time?\n }\n bRefChild.child(\"price\").setValue(b.getPrice());\n\n }", "public void update(ReservationBean reservation) throws SQLException {\n\t\tString query = \"Update reservation_journal\";\n\t\tDate startDate = reservation.getDReserveDate();\n\t\tDate endDate = reservation.getDReserveDate();\n\t\t\n\t\tif (!reservation.getRepeating().isEmpty())\n\t\t{\n\t\t\tendDate = reservation.getDRepeatTo();\n\t\t}\n\t\t\n\t\tSystem.out.println(startDate+\"start date\");\n\n\t\twhile (!startDate.after(endDate))\n\t\t{\tPreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);\n\t\t\t\n\t\t\tpstmt.setString(1, reservation.getDeviceSerialNo());\n\t\t\tpstmt.setString(2, \"admin\");\n\t\t\tpstmt.setDate(3, new java.sql.Date(startDate.getTime()));\n\t\t\tpstmt.setTime(4, reservation.getTTimeFrom());\n\t\t\tSystem.out.println(reservation.getTTimeTo()+\"timeto\");\n\t\t\tpstmt.setTime(5, reservation.getTTimeTo());\n\t\t\tpstmt.setString(6, reservation.getLocation() );\n\t\t\tpstmt.setString(7, reservation.getAddInfo());\n\t\t\t\n\t\t\tpstmt.execute();\n\t\t\tstartDate = getNextDate(reservation.getRepeating() , startDate);\n\t\t\tSystem.out.println(startDate+\"date after\");\n\t\t}\n\t}", "public void updateDisplayFields(Booking b){\n Vehicle v = b.getVehicle();\n CustomerAccount ca = v.getCustomer(); \n \n \n createCustomerName.setText(ca.getFirstName());\n createCustomerSurname.setText(ca.getLastName());\n createCustomerNumber.setText(ca.getPhoneNumber());\n createCustomerAddress1.setText(ca.getAddressLine1());\n createCustomerAddress2.setText(ca.getAddressLine2());\n createCustomerCounty.setText(ca.getCounty());\n createCustomerPostal.setText(ca.getPostCode());\n createCustomerCompany.setText(ca.getCompanyName());\n //VEHICLES\n createVehicleMake.setText(v.getMake());\n createVehicleModel.setText(v.getModel());\n createVehicleReg.setText(v.getRegistration());\n createVehicleMileage.setText(Integer.toString(v.getMileage()));\n createVehicleEngine.setText(v.getEngineSize());\n createVehicleColour.setText(v.getColour());\n createVehicleFuel.setText(v.getFuelType());\n String MOTexpire = \"\";\n if (v.getMOTExpire() == null)\n MOTexpire = \"N/A\";\n else\n MOTexpire = v.getMOTExpire().getTime().toString();\n \n createVehicleMOT.setText(MOTexpire);\n \n String ServiceDate = \"\";\n if (v.getLastService() == null)\n ServiceDate = \"N/A\";\n else\n ServiceDate = v.getLastService().getTime().toString();\n \n createVehicleService.setText(ServiceDate);\n createVehicleWarranty.setText(v.getWarrantyCompany());\n\n }", "@PreUpdate\n\tprotected void onUpdate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "private void handleBooking() {\n\t\tString customerID;\n\t\tint recNo = table.getSelectedRow();\n\t\tif(recNo == -1){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcustomerID = JOptionPane.showInputDialog(mainPanel,\n\t\t\t\t\t\"Enter Customer ID (8 Digits)\");\n\t\t\tif (customerID != null) {\t\n\t\t\t\tcontroller.reserveRoom(recNo, customerID);\n\t\n\t\t\t\tupdateTable(nameSearchBar.getText(),\n\t\t\t\t\t\tlocationSearchBar.getText());\n\t\t\t}\n\t\t} catch (final InvalidCustomerIDException icide) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, \"Invalid format!\");\n\t\t} catch (final BookingServiceException bse) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, bse.getMessage());\n\t\t} catch (final ServiceUnavailableException sue) {\n\t\t\tJOptionPane.showMessageDialog(null, sue.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void completeBooking(){\r\n\t\tbookings.putAll(tempBookings);\r\n\t\ttempBookings.clear();\r\n\t}", "public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }", "public static void AddBooking(Booking booking){\n \n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM booking\")){\n \n resultSet.moveToInsertRow();\n resultSet.updateInt(\"BookingNumber\", booking.getBookingNumber());\n resultSet.updateString(\"FlightNumber\", booking.getFlightNumber());\n resultSet.updateDouble(\"Price\", booking.getPrice());\n resultSet.updateString(\"CabinClass\", booking.getCabinClass());\n resultSet.updateInt(\"Quantity\", booking.getQuantity());\n resultSet.updateInt(\"Insurance\", booking.getInsurance());\n resultSet.insertRow();\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n \n \n }", "private void updateDB() {\n }", "public void onChange(TimelineModificationEvent e) {\n\t\tevent = e.getTimelineEvent();\n\n\t\t// update booking in DB...\n\n\t\t// if everything was ok, no UI update is required. Only the model should be updated\n\t\tmodel.update(event);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking dates \" + getRoom() + \" have been updated\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\n\t\t// otherwise (if DB operation failed) a rollback can be done with the same response as follows:\n\t\t// TimelineEvent oldEvent = model.getEvent(model.getIndex(event));\n\t\t// TimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\t// model.update(oldEvent, timelineUpdater);\n\t}", "private void updateEmployeeSeating() {\n BookingModel bookingModel1 = new BookingModel();\n UserModel userModel1 = new UserModel();\n try {\n bookingModel1.updateBookingSeat(employeeID, seatNum);\n userModel1.setPreviousSeat(seatNum);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void userHasBooking() throws SQLException {\n BookingModel bookingModel2 = new BookingModel();\n if (bookingModel2.checkUserBooking(employeeID)) {\n hasBooking = true;\n } else {\n hasBooking = false;\n }\n\n }", "public void saveBorrowings() {\n\t}", "public void update() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.update(this); // routine now uses leaseDao to get CampLease class\r\n\t}", "public void updateRoomChanges_DB() throws SQLException{\n \n //update all rooms\n for(int i=0;i<roomCounter;i++){\n String sqlstmt = \"UPDATE \\\"APP\\\".\\\"HOTELROOMS\\\" \"\n + \"SET ISAVAILABLE = \"+myHotel[i].getStatus()\n + \", OCCUPANT = '\" + myHotel[i].getOccupant()\n + \"', GUESTID = \" + myHotel[i].getOccupantID()\n + \" , STARTDATE = '\"+ myHotel[i].getStartDate()\n + \"', ENDDATE = '\"+ myHotel[i].getEndDate()\n + \"' WHERE ROOMNUMBER = \" + myHotel[i].getRoomNum();\n \n cs = con.prepareCall(sqlstmt); \n cs.execute(); //execute the sql command \n }\n \n }", "@Override\n\tpublic void updateBourse(Bourse brs) {\n\t\t\n\t}", "public void willbeUpdated() {\n\t\t\n\t}", "@Override\n\tpublic int update(Reservation objet) {\n\t\treturn 0;\n\t}", "public void registerDirtyBooking(Booking b) {\n if (!newBooking.contains(b)\n && !modifiedBooking.contains(b)) {\n modifiedBooking.add(b);\n }\n }", "public Booking saveBooking(Booking booking);", "public void setBooking(Set<Booking> aBooking) {\n booking = aBooking;\n }", "public Bookings saveBookingDetails(Bookings bookings) ;", "public void afterUpdate(RoomstatusBean pObject) throws SQLException;", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n HashMap<String, Object> reservations = (HashMap<String, Object>)dataSnapshot.getValue();\n if (reservations != null) {\n UpdateUI(reservations);\n }\n }", "@RequestMapping(\"/update\")\n\tpublic Booking update(@RequestParam Long bookingId, @RequestParam String psngrName) {\n\t\tBooking booking = bookingRepository.findOne(bookingId);\n\t\tbooking.setPsngrName(psngrName);\n\t\tbooking = bookingRepository.save(booking);\n\t return booking;\n\t}", "private void updateBook(final Properties bookData){\n\t\tnew SwingWorker<Boolean, Void>() {\n\n\t\t\t@Override\n\t\t\tprotected Boolean doInBackground() {\n\t\t\t\tJDBCBroker.getInstance().startTransaction();\n\t\t\t\tif(book.isLost()){\n\t\t\t\t\tBorrower borrower = book.getBorrowerThatLost();\n\t\t\t\t\tif(borrower == null || !borrower.subtractMonetaryPenaltyForLostBook(book)){\n\t\t\t\t\t\tJDBCBroker.getInstance().rollbackTransaction();\n\t\t\t\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.ERROR, \"Whoops! An error occurred while saving.\"));\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbookData.setProperty(\"Status\", \"Active\");\n\t\t\t\tbook.stateChangeRequest(bookData);\n\t\t\t\treturn book.save();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void done() {\n\t\t\t\tboolean success = false;\n\t\t\t\ttry {\n\t\t\t\t\tsuccess = get();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tsuccess = false;\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\tsuccess = false;\n\t\t\t\t}\n\t\t\t\tif(success){\n\t\t\t\t\tJDBCBroker.getInstance().commitTransaction();\n\t\t\t\t\tstateChangeRequest(Key.BACK, \"ListBooksView\");\n\t\t\t\t\tlistBooksTransaction.stateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.SUCCESS, \"Well done! The book was sucessfully saved.\"));\n\t\t\t\t}else{\n\t\t\t\t\tJDBCBroker.getInstance().rollbackTransaction();\n\t\t\t\t\tList<String> inputErrors = book.getErrors();\n\t\t\t\t\tif(inputErrors.size() > 0){\n\t\t\t\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.ERROR, \"Aw shucks! There are errors in the input. Please try again.\", inputErrors));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.ERROR, \"Whoops! An error occurred while saving.\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}.execute();\n\t}", "@Override\r\n\tpublic boolean updateBooking(Shift_IF shift, Booking_IF bk) {\r\n\t\tPreparedStatement myStatement = null;\r\n\t\tString query = null;\r\n\t\tint count = 0;\r\n\t\ttry{\r\n\t\t\tquery = \"update Booking set Shift_ID = ? where User_ID = ? AND Shift_ID = ?\";\r\n\t\t\tmyStatement = myCon.prepareStatement(query);\r\n\t\t\tmyStatement.setInt(1, bk.getShiftid());\r\n\t\t\tmyStatement.setInt(2, bk.getUserid());\r\n\t\t\tmyStatement.setInt(3, shift.getId());\r\n\t\t\tcount = myStatement.executeUpdate();\r\n\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\ttry {\r\n\t\t\t\tif (myStatement != null)\r\n\t\t\t\t\tmyStatement.close();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count!=1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Map<String, Object> updateData = new HashMap<>();\n updateData.put(\"reservationStatus\", 2);\n /*\n Set status of reservation to 2 (cancel)\n */\n db.collection(\"reservations\")\n .document(list.get(viewHolder.getAdapterPosition()).getReservationId())\n .update(updateData)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull @NotNull Task<Void> task) {\n Reservation reservation = list.get(viewHolder.getAdapterPosition());\n /*\n Refund balance to customer\n */\n db.collection(\"customers\")\n .whereEqualTo(\"customerEmail\", email)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull @NotNull Task<QuerySnapshot> task) {\n if (task.isSuccessful() && !task.getResult().isEmpty()) {\n DocumentSnapshot doc = task.getResult().getDocuments().get(0);\n Customer cus = doc.toObject(Customer.class);\n double refund = reservation.getReservationAmount() + cus.getCustomerBalance();\n Map<String, Object> Data = new HashMap<>();\n Data.put(\"customerBalance\", refund);\n db.collection(\"customers\")\n .document(cus.getCustomerId())\n .update(Data)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull @NotNull Task<Void> task) {\n if (task.isSuccessful()) {\n new AlertDialog.Builder(CancelReservation.this).setTitle(\"Refund Notice\")\n .setMessage(\"Cancel Reservation Successful, Your Balance Has Been Refund\") //Annouce that balance has been refund to customer\n .setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n /*\n Update reservation list\n */\n @Override\n public void onClick(DialogInterface dialog, int which) {\n res.setReservationStatus(2);\n reserAdap.notifyDataSetChanged();\n }\n }).show();\n }\n }\n });\n }\n }\n });\n }\n });\n }", "private void updatePriceAndSaving() {\n movieOrder = new MovieOrder(movie, Weekday.weekdayForValue(selectedDay), flagsApplied, numberOfTickets);\n\n tvTotalPriceNewTickets.setText(getResources().getString(\n R.string.total_price_new_tickets,\n movieOrder.getTotalPriceAfterDiscount(),\n movieOrder.getNumberOfTicketsAfterOfferIsApplied())\n );\n\n tvSavingsNewTickets.setText(getResources().getString(\n R.string.today_saving_new_tickets,\n movieOrder.getTotalSaving()\n ));\n }", "public void registerNewBooking(Booking b) {\n if (!newBooking.contains(b)\n && !modifiedBooking.contains(b)) {\n newBooking.add(b);\n }\n }", "public int makeBooking(BookingEventModel booking) {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\tconnection.setAutoCommit(false);\n\t\t\tstatement = connection.createStatement();\n\n\t\t\tString sql = \"insert into bookings (email, checkin, checkout, price) \" +\n\t\t\t\t\tString.format(\"values ('%s', '%s', '%s', %d);\", booking.userEmail, formatter.format(booking.checkIn),\n\t\t\t\t\t\t\tformatter.format(booking.checkOut), booking.payment);\n\t\t\tstatement.executeUpdate(sql);\n\t\t\t//\t\t System.out.println(\"Inserted records into the table...\"+sql);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tstatement.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//\t\t\ttry {\n\t\t\t//\t\t\t\tconnection.close();\n\t\t\t//\t\t\t} catch (SQLException e) {\n\t\t\t//\t\t\t\te.printStackTrace();\n\t\t\t//\t\t\t}\n\t\t}\n\n\t\tResultSet lastId = null;\n\t\tint bookingNumber = 0;\n\t\tStatement statement2 = null;\n\t\ttry {\n\t\t\t//\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\t//\t\t\tconnection.setAutoCommit(false);\n\t\t\tstatement2 = connection.createStatement();\n\t\t\tString sql = \"SELECT last_insert_rowid() FROM bookings\";\n\t\t\tlastId = statement2.executeQuery(sql);\n\n\t\t\tlastId.next();\n\t\t\tbookingNumber = lastId.getInt(1);\n\t\t\t//\t\t System.out.println(\"last id...\"+sql+\" \"+bookingNumber);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tlastId.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tstatement2.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconnection.commit();\n\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tStatement statement3 = null;\n\t\tfor (Room r: booking.rooms) {\n\t\t\ttry {\n\t\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t\t\tstatement3 = connection.createStatement();\n\n\t\t\t\tString sql = String.format(\"insert into room_booking_junction (room_id, booking_id) values (%d, %d)\",\n\t\t\t\t\t\tr.getId(), bookingNumber);\n\t\t\t\tstatement3.executeUpdate(sql);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tstatement3.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconnection.commit();\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tStatement statement4 = null;\n\t\tfor (HashMap.Entry<ExtraService, Integer> entry : booking.services.entrySet()){\n\t\t\ttry {\n\t\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t\t\tstatement4 = connection.createStatement();\n\n\t\t\t\tString sql = String.format(\"insert into service_booking_junction (service_id, booking_id, amount) values (%d, %d, %d)\",\n\t\t\t\t\t\tentry.getKey().getId(), bookingNumber, entry.getValue());\n\t\t\t\tstatement4.executeUpdate(sql);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tstatement4.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconnection.commit();\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn bookingNumber;\n\t}", "public void setBookingId(int booking_id) {\n this.booking_id = booking_id;\n }", "private void update() {\n\n\t\tfloat shopping = Float.parseFloat(label_2.getText());\n\t\tfloat giveing = Float.parseFloat(label_5.getText());\n\t\tfloat companyDemand = Float.parseFloat(label_7.getText());\n\n\t\ttry {\n\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t.prepareStatement(\"update customer_list set Shopping_Account = \"\n\t\t\t\t\t\t\t+ shopping\n\t\t\t\t\t\t\t+ \" , Giving_Money_Account = \"\n\t\t\t\t\t\t\t+ giveing\n\t\t\t\t\t\t\t+ \", Company_demand = \"\n\t\t\t\t\t\t\t+ companyDemand\n\t\t\t\t\t\t\t+ \" where Name = '\"\n\t\t\t\t\t\t\t+ name\n\t\t\t\t\t\t\t+ \"' And Last_Name = '\"\n\t\t\t\t\t\t\t+ lastName + \"' \");\n\t\t\tstatement.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t}", "public void update(){\r\n\t\tthis.loadRecords();\r\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n HashMap<String, Object> reservations = (HashMap<String, Object>)dataSnapshot.getValue();\n UpdateUI(reservations);\n }", "private void returnBookButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if (checkList() == true) {\n if (checkReturn().equalsIgnoreCase(\"null\")) {\n try {\n String uQuery = \"update student set day_of_return='\"+ getReturnDateSTR() +\"', fee='\" + getFee() +\"' where book_id=\" + bookIDTextField.getText() + \" and rb_id=\" + studentIDField.getText();\n Connection conn = DBConnector.connectDB();\n PreparedStatement pst = conn.prepareStatement(uQuery);\n pst.execute();\n pst.close();\n System.out.println(\"Return Completed!\");\n\n Connection myConn = DBConnector.connectDB();\n String u2Query = \"update book set availability='Yes' where book_id=\" + bookIDTextField.getText() ;\n PreparedStatement mypststmt = myConn.prepareStatement(u2Query);\n mypststmt.execute();\n System.out.println(\"Update Completed!\");\n\n jLabel_overDue.setText(\"Over Due by \" + Long.toString(getDiffDays()) + \" day(s)\");\n jLabel_totalFee.setText(\"Total Fee: $\" + String.valueOf(getFee()));\n\n JOptionPane.showMessageDialog(null, \"Book Returned Successfully\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Book Already Returned\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Book ID or Student ID is Incorrect\");\n }\n }", "@Override\n\tpublic void updateEntries(Reservation reservation) {\n\t\tresTable.save(reservation);\n\t\t\n\t}", "public void bookFlight(){\n //Steps\n //1 Show the available flights. (at least one seat with 0)\n //2 User select a flight, and the system automatically set the seat with his id. he is not able to select the seat\n //3 User confirm the reservation \n //4 Flight reserved\n \n //1\n //FlightRepository.availableFlights();\n //Scanner input = new Scanner(System.in);\n //String flightNumber = input.nextLine();\n \n //2,3 and 4\n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.setPassengerSeat(this.PassengerID);\n }", "@Override\r\n public void update() {\r\n this.highestRevenueRestaurant = findHighestRevenueRestaurant();\r\n this.total = calculateTotal();\r\n }", "protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}", "static void presentBookingHistory(User booker) {\r\n\t\tBooking bookings = new Booking();\r\n\t\tResultSet historyRs = null;\r\n\r\n\t\tSystem.out.printf(\"*%14s%10s%18s%28s%28s%15s%11s\\n\", \"Booking No\", \"Lot No\", \"Car No\", \"Start Time\", \"End Time\", \"Cost\", \"*\");\r\n\t\tSystem.out.println(\"*****************************************************************************************************************************\");\r\n\t\ttry {\r\n\t\t\tDbConnection historyConn = new DbConnection();\r\n\t\t\thistoryRs = historyConn.fetchSelectUserByUNameBookings(booker.getUName());\r\n\t\t\twhile (historyRs.next()) {\r\n\t\t\t\tjava.sql.Timestamp endTime = historyRs.getTimestamp(6);\r\n\t\t\t\t/**\r\n\t\t\t\t*\tTo show only the ones which are not checked out yet\r\n\t\t\t\t*\tIf a record with end time as 0 is found, it will be considered as not booked and shown\r\n\t\t\t\t*/\r\n\t\t\t\tif (endTime.getTime() != 0) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tString bookingNo = historyRs.getString(1);\r\n\t\t\t\tint lotNo = historyRs.getInt(3);\r\n\t\t\t\tString carNo = historyRs.getString(4);\r\n\t\t\t\tjava.sql.Timestamp startTime = historyRs.getTimestamp(5);\r\n\t\t\t\tint cost = historyRs.getInt(7);\r\n\t\t\t\tbookings.setAllValues(bookingNo, lotNo, carNo, startTime, endTime, cost);\r\n\r\n\t\t\t\tbookings.showBookHistory();\r\n\t\t\t}\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"No records with the given booking number found\");\r\n\t\t\t//SqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} catch (NullPointerException npExcep) {\r\n\t\t\tnpExcep.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t}", "private void refreshTableForUpdate()\n {\n //Was updating the values but don't believe this is necessary, as like budget items\n //a loss amount will stay the same unless changed by the user (later on it might be the\n //case that it can increase/decrease by a percentage but not now...)\n /*\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n }\n */\n }", "private void addBookings(List<Bookings> newBookings) {\n IController<Bookings> bookingController = new Controller<>();\n IController<Students> studentController = new Controller<>();\n IController<Staff> staffController = new Controller<>();\n\n // Get all bookings\n List<Bookings> allBookings = bookingController.readAll(Bookings.class);\n\n\n // Check if any booking clashes.\n int count = 0;\n for (Bookings b : newBookings) {\n System.out.println(\"Checking availability of booking #\" + count);\n for (Bookings booking : allBookings) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgumentException(\"That booking conflicts with another booking.\");\n }\n }\n\n Modules relatedModule = b.getModule();\n\n if (!b.getRooms().isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"That room is unavailable at the time (\" + b.getTime() + \").\");\n }\n for (Students student : relatedModule.getStudents()) {\n student = studentController.readById(Students.class, student.getStudentID(), true);\n if (!student.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A student is unavailable at this time. [\" + b.getTime() + \"] (\" + student.getStudentID() + \")\");\n }\n }\n for (Staff staff : relatedModule.getStaff()) {\n staff = staffController.readById(Staff.class, staff.getStaffID(), true);\n\n if (!staff.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A staff member is unavailable at this time. [\" + b.getTime() + \"] (\" + staff.getStaffID() + \")\");\n }\n }\n\n count++;\n }\n\n // Create the bookings\n for (Bookings b : newBookings) {\n bookingController.create(b);\n System.out.println(b.confirmation() + \"\\n\");\n }\n }", "public void addBooking(Bookings b) {\n IController<Bookings> ic = new Controller<>();\n\n // Check whether the booking conflicts with another booking.\n for (Bookings booking : ic.readAll(Bookings.class)) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgumentException(\"That booking conflicts with another booking.\");\n }\n }\n\n Modules relatedModule = b.getModule();\n\n // Check whether the room is available at the given time.\n if (!b.getRooms().isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"That room is unavailable at this time.\");\n }\n // Check whether the students are available at that time.\n for (Students student : relatedModule.getStudents()) {\n if (!student.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A student is unavailable at this time.\");\n }\n }\n // Check whether the staff members are available at that time.\n for (Staff staff : relatedModule.getStaff()) {\n if (!staff.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A staff member is unavailable at this time.\");\n }\n }\n\n // Put the booking into the database.\n ic.create(b);\n System.out.println(b.confirmation() + \"\\n\");\n }", "private void booking(){\n usersOrderReference = mFirebaseInstance.getReference(\"UsersOrder\");\n\n // get reference to 'order'\n orderReference = mFirebaseInstance.getReference(\"Order\");\n\n String idOrder = orderReference.push().getKey();\n String idBarbershop = Common.barbershopSelected;\n String status = \"Waiting for approval\";\n\n Order orderdata = new Order(idOrder, userId, atasnama, idBarbershop, barbershop, barberman,\n service, totalharga, jadwal, status, phoneBarbershop, phoneUser);\n\n orderReference.child(Common.barbershopSelected).child(idOrder).setValue(orderdata);\n usersOrderReference.child(userId).child(idOrder).setValue(orderdata);\n\n// sendNotificationOrder(userId);\n\n sendOrderStatusToUser(Common.barbershopSelected,orderdata);\n\n }", "@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer Pattern on Room Reservation Notification: \");\n\t\tSystem.out.println(\"Your room is \" + reserve.getState()+\"\\n\");\n\t}", "@Override\r\n\tpublic Book update(Book book) {\r\n\t\treturn null;\r\n\t}", "public void reload() {\n log.debug(\"Reloading bicycles after update to table\");\n try{\n bicycles.clear();\n bicycles.addAll(bicycleManager.findAllBicycles());\n checkAvail();\n fireTableDataChanged();\n }catch(ServiceFailureException ex){\n log.error(\"SFE reloading bicycles after update\");\n throw new ServiceFailureException(ex);\n }catch(IllegalArgumentException ex){\n log.error(\"IAE reloading bicycles\");\n }\n }", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}", "public void changePrice(Booking booking, float price);", "public boolean checkoutBooking() {\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tboolean bookUpdateSuccess = false;\r\n\r\n\t\t/**\r\n\t\t*\tSet the endTime as now\r\n\t\t*/\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(date.getTime());\r\n\r\n\t\t/**\r\n\t\t*\tCalculate the cost base on the time elapsed between the start time and end time\r\n\t\t*\tdurationMinutes = (difference b/w end and start time) / 1000 to convert millis to seconds / 60 to convert seconds to minutes\r\n\t\t*/\r\n\t\tlong start = startTime.getTime();\r\n\t\tlong end = endTime.getTime();\r\n\t\tlong durationMinutes = (end - start)/60000;\r\n\r\n\t\t/**\r\n\t\t*\tThe cost is set as Rs. 1.27 per minuteand hence will be calulated using durationMinutes\r\n\t\t* The cost will be calculated according to absolute minutes and no decimals will be considered there\r\n\t\t*/\r\n\t\tcost = durationMinutes * 1.27;\r\n\r\n\t\t/**\r\n\t\t*\tShow the cost and confirm to checkout.\r\n\t\t*/\r\n\t\tSystem.out.print(\"\\n\\tTotal cost calculated: \" + cost + \"\\n\\n\\t1. Confirm Checkout\\n\\t2. Cancel\\n\\t\\t>> \");\r\n\t\tint opt = scan.nextInt();\r\n\r\n\t\tswitch (opt) {\r\n\t\t\tcase 1: {\t//confirm checkout\r\n\t\t\t\t//do nothing and move ahead towards the checkout procedure\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2: {\t//Cancel\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tdefault: {\r\n\t\t\t\tSystem.out.println(\"Invalid Option\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and updating data (executeUpdateParklot())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection checkoutBookingConn = new DbConnection();\r\n\r\n\r\n\t\t\t/**\r\n\t\t\t*\tupdate the data in table\r\n\t\t\t*/\r\n\t\t\tbookUpdateSuccess = checkoutBookingConn.executeUpdateBooking(endTime, cost, bookingNo);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"No booking with the given booking number found.\");\r\n\t\t\t//SqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn bookUpdateSuccess;\r\n\t}", "void update(Book book);", "@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}", "void update(Seller obj);", "void update(Seller obj);", "@Override\n public void update(BookUpdateViewModel viewModel) {\n Book bookDb = repository.findById(viewModel.getId())\n .orElseThrow(RecordNotFoundException::new);\n\n\n // check the validity of the fields\n if (viewModel.getTitle().strip().length() < 5) {\n throw new DomainValidationException();\n }\n\n // apply the update\n BeanUtils.copyProperties(viewModel, bookDb);\n\n // save and flush\n repository.saveAndFlush(bookDb);\n }", "private void EnterChange() {\r\n\r\n //try block to check if the customer enters an except integer for the Time field\r\n try{\r\n // create a reservation\r\n Reservation p1 = new Reservation(textName.getText(), Integer.parseInt(textTime.getText()));\r\n // TODO: add obj to arraylist\r\n _ReservationList.saveData(p1);\r\n\r\n }\r\n catch (Exception e){\r\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Please type an Integer only. For Example, to book for 7:00 p.m, type just 7.\");\r\n alert.showAndWait();\r\n return;\r\n }\r\n }", "@Override\n\tpublic void updateBookData() {\n\t\tList<Book> bookList = dao.findByHql(\"from Book where bookId > 1717\",null);\n\t\tString bookSnNumber = \"\";\n\t\tfor(Book book:bookList){\n\t\t\tfor (int i = 1; i <= book.getLeftAmount(); i++) {\n\t\t\t\t// 添加图书成功后,根据ISBN和图书数量自动生成每本图书SN号\n\t\t\t\tBookSn bookSn = new BookSn();\n\t\t\t\t// 每本书的bookSn号根据书的ISBN号和数量自动生成,\n\t\t\t\t// 如书的ISBN是123,数量是3,则每本书的bookSn分别是:123-1,123-2,123-3\n\t\t\t\tbookSnNumber = \"-\" + i;//book.getIsbn() + \"-\" + i;\n\t\t\t\tbookSn.setBookId(book.getBookId());\n\t\t\t\tbookSn.setBookSN(bookSnNumber);\n\t\t\t\t// 默认书的状态是0表示未借出\n\t\t\t\tbookSn.setStatus(new Short((short) 0));\n\t\t\t\t// 添加bookSn信息\n\t\t\t\tbookSnDao.save(bookSn);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void updateTest() {\n reservation3.setId(13L);\n reservation3.setReserveDate(LocalDate.now().plusDays(2));\n reservationService.update(reservation3);\n Mockito.verify(reservationDao, Mockito.times(1)).update(reservation3);\n }", "public void update() {\n Log.d(TAG, \"Updating database\");\n databaseRef.child(TAG).setValue(events);\n Log.d(TAG, \"Database update complete\");\n }", "public void update() {\n int id = this.id;\n String name = person_name.getText().toString().trim();\n if (name.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Name\", Toast.LENGTH_LONG).show();\n return;\n }\n String no = contact_no.getText().toString().trim();\n if (no.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Contact No.\", Toast.LENGTH_LONG).show();\n return;\n }\n String nickname = nickName.getText().toString().trim();\n if (nickname.equals(\"\")) {\n nickname = \"N/A\";\n }\n String Custno = rootNo.getText().toString().trim();\n if (Custno.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Customer No.\", Toast.LENGTH_LONG).show();\n return;\n }\n float custNo = Float.parseFloat(Custno);\n\n String Fees = monthly_fees.getText().toString().trim();\n if (Fees.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the monthly fees\", Toast.LENGTH_LONG).show();\n return;\n }\n int fees = Integer.parseInt(Fees);\n\n String Balance = balance_.getText().toString().trim();\n if (Balance.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the balance\", Toast.LENGTH_LONG).show();\n return;\n }\n int balance = Integer.parseInt(Balance);\n String date = startdate.getText().toString().trim();\n if (startdate.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Start Date\", Toast.LENGTH_LONG).show();\n return;\n }\n\n\n dbHendler.updateInfo(new PersonInfo(id, name, no, custNo, fees, balance, areaId, date, nickname));\n person_name.setText(\"\");\n contact_no.setText(\"\");\n rootNo.setText(\"\");\n monthly_fees.setText(\"\");\n balance_.setText(\"\");\n nickName.setText(\"\");\n //changeButton.setEnabled(false);\n finish();\n viewAll();\n\n }", "private void getBikeModel(final Booking booking, final View view, final ArrayList<Booking> trackingDaos, final Context context) {\n\n try {\n final String vehicleId = booking.getVehicleId().trim();\n //query to get information of the registered bike\n db.collection(\"my_vehicle\").document(booking.getVehicleId())\n .get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n Vehicle vehicle = documentSnapshot.toObject(Vehicle.class);\n String mVehicleId = documentSnapshot.getId();\n\n if (mVehicleId.equals(vehicleId)) {\n booking.setModel(vehicle.getManufacturer() + \" \" + vehicle.getModel());\n }\n //variable initilizations to pass into booking constructor\n long bookId = booking.getBookingID();\n String sType = booking.getServiceType();\n String makeNModel = booking.getModel();\n String status = booking.getStatus();\n String message = booking.getMessage();\n Date dateOfService = booking.getDateOfService();\n String workshopId = booking.getWorkshopId();\n String category = booking.getRepairCategory();\n String description = booking.getRepairDescription();\n String messageSeen = booking.getMessageSeen();\n String viewColor = null;\n\n if (status.equals(\"accepted\") || status.equals(\"progress\")) {\n viewColor = String.valueOf(context.getResources().getColor(R.color.green));\n }\n if (status.equals(\"completed\")) {\n viewColor = String.valueOf(context.getResources().getColor(R.color.red));\n }\n //adding all the variables\n trackingDaos.add(new Booking(bookId, sType, viewColor, makeNModel, message\n , status, messageSeen, category, description, workshopId, dateOfService, \"\"));\n\n //Tracking adapter initilizations, setup and passing values to the adapter\n recyclerView = view.findViewById(R.id.tracking_recycler_view);\n recyclerView.setHasFixedSize(true);\n layoutManager = new LinearLayoutManager(getActivity());\n trackingAdapter = new TrackingAdapter(trackingDaos);\n\n progressBar.setVisibility(View.GONE);\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.setAdapter(trackingAdapter);\n //tracking recylcer view on item click listener\n trackingAdapter.setOnItemClickListener(new TrackingAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(int position) {\n\n Booking data = trackingDaos.get(position);\n //values passed into the bundler object to pass data to next ativity\n Bundle bundle = new Bundle();\n bundle.putLong(\"bookingID\", data.getBookingID());\n bundle.putString(\"bookingStatus\", data.getStatus());\n bundle.putString(\"serviceType\", data.getServiceType());\n bundle.putString(\"serviceDate\", String.valueOf(data.getDateOfService()));\n bundle.putString(\"model\", data.getModel());\n bundle.putString(\"workshopID\", data.getWorkshopId());\n bundle.putString(\"repairCat\", data.getRepairCategory());\n bundle.putString(\"repairDesc\", data.getRepairDescription());\n bundle.putString(\"message\", data.getMessage());\n\n //display tracking summary\n TrackingViewDetails trackingViewDetails = new TrackingViewDetails();\n trackingViewDetails.setArguments(bundle);\n trackingViewDetails.show(getActivity().getSupportFragmentManager(), \"View Details\");\n\n }\n });\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //log error\n Log.d(TAG, e.toString());\n }\n });\n }catch (Exception e){\n e.printStackTrace();\n Log.d(TAG, e.toString());\n }\n }", "public void saveDetails() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.update(event, timelineUpdater);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking details \" + getRoom() + \" have been saved\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "public void updateData() {\n\t\tcal = eventsData.getCalendar();\n\t\tfirstDayOfWeek = eventsData.getFirstDayOfWeek();\n\t\tcurrentDayOfMonth = eventsData.getDayNumber();\n\t\tnumberOfDays = eventsData.getNumberOfDays();\n\t\tnumberOfWeeks = eventsData.getNumberOfWeeks();\n\t\tyear = eventsData.getYearNumber();\n\t\tmonth = eventsData.getMonthNumber();\n\t\tday = eventsData.getDayNumber();\n\t\tweek = eventsData.getDayOfWeek();\n\t}", "private void updateVehicles() {\n OffloaderSyncAdapter.syncImmediately(getContext());\n Log.w(LOG_TAG, \"updateVehicles: \");\n }", "private void update(){\n if(!((EditText)findViewById(R.id.bookTitle)).getText().toString().trim().isEmpty()){\n if(!appData.getCurrentBookId().isEmpty()){\n mRealm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n BookInfo mBookInfo= realm.where(BookInfo.class).equalTo(\"mBookId\",\n appData.getCurrentBookId()).findFirst();\n mBookInfo.setBookTitle(((EditText) findViewById(R.id.bookTitle))\n .getText().toString());\n mBookInfo.setAuthorsNames(((EditText) findViewById(R.id.bookAuthor))\n .getText().toString());\n mBookInfo.setGenre(mSelectedGenre.get(\"position\"));\n }\n });\n Intent main = new Intent(this,BookListActivity.class);\n startActivity(main);\n finish();\n }else{\n\n mRealm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n\n BookInfo mBookInfo = realm.createObject(BookInfo.class,\n UUID.randomUUID().toString());\n mBookInfo.setBookTitle(((EditText) findViewById(R.id.bookTitle))\n .getText().toString());\n mBookInfo.setAuthorsNames(((EditText) findViewById(R.id.bookAuthor))\n .getText().toString());\n mBookInfo.setGenre(mSelectedGenre.get(\"position\"));\n }\n });\n Intent main = new Intent(this,BookListActivity.class);\n startActivity(main);\n finish();\n\n }\n }else{\n new AlertDialog.Builder(EditOrAddBookActivity.this)\n .setTitle(\"No Book Title\")\n .setMessage(\"You must at the very least have a book title\")\n .setCancelable(false)\n .setPositiveButton(\"ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Whatever...\n }\n }).show();\n }\n }", "private void loadData() {\r\n titleField.setText(existingAppointment.getTitle());\r\n descriptionField.setText(existingAppointment.getDescription());\r\n contactField.setText(existingAppointment.getContact());\r\n customerComboBox.setValue(customerList.stream()\r\n .filter(x -> x.getCustomerId() == existingAppointment.getCustomerId())\r\n .findFirst().get());\r\n typeComboBox.setValue(existingAppointment.getType());\r\n locationComboBox.setValue(existingAppointment.getLocation());\r\n startTimeComboBox.setValue(existingAppointment.getStart().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n endTimeComboBox.setValue(existingAppointment.getEnd().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n startDatePicker.setValue(existingAppointment.getStart().toLocalDate());\r\n endDatePicker.setValue(existingAppointment.getEnd().toLocalDate());\r\n }", "public void setBookingId(int value) {\n this.bookingId = value;\n }", "public void setBookingId(int value) {\n this.bookingId = value;\n }", "public void updateBooking(String booking_id, String status) {\n\t\tString sql = \"update bookings set status = ? where booking_id =?\";\n\t\tObject args[]= {status, booking_id};\n\t\tjdbcTemplate.update(sql, args);\n\t\t\n\t}", "public void updateCopies() throws SQLException {\r\n\t\tSystem.out.println(\"Branch: \" + selectedBranch.getName());\r\n\t\tSystem.out.println(\"Book: \" + selectedBook.getName());\r\n\r\n\t\t// distinguish between: the entry exists & is zero, or the entry doesn't exist\r\n\t\tBookCopies bc = libServ.readCopiesByIds(selectedBook.getId(), selectedBranch.getId());\r\n\t\tString numCopiesStr = (bc != null) ? String.valueOf(bc.getNoOfCopies()) : \"None\";\r\n\t\tSystem.out.println(\"Existing number of copies: \" + numCopiesStr + endl);\r\n\r\n\t\tint copies = readInt(\"Enter new number of copies:\");\r\n\t\tif (copies == -1)\r\n\t\t\treturn;\r\n\r\n\t\t// update the db entry\r\n\t\tif (bc != null)\r\n\t\t\tlibServ.updateCopies(selectedBook.getId(), selectedBranch.getId(), copies);\r\n\t\telse\r\n\t\t\tlibServ.createCopies(selectedBook.getId(), selectedBranch.getId(), copies);\r\n\t}", "@Override\n public void onClick(View view) {\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n DatabaseReference dbRef = firebaseDatabase.getReference().child(\"borrowed-book\");\n DatabaseReference updatedBRef = dbRef.child(bb.getBookName()+bb.getBorrowerId());\n Map<String, Object> status = new HashMap<>();\n status.put(\"status\", 0);\n updatedBRef.updateChildren(status);\n\n SharedPreferences pref = mContext.getSharedPreferences(mContext.getString(R.string.shared_pref),\n Context.MODE_PRIVATE);\n\n //remove returned book from list and reset books\n borrowed_books.remove(position);\n setBook(borrowed_books);\n\n //decrement no of books borrowed\n int no_books_borrowed = pref.getInt(mContext.getString(R.string.no_books_borrowed), MainActivity.default_no_pref);\n if(no_books_borrowed > 0) {\n SharedPreferences.Editor editor = pref.edit();\n editor.putInt(mContext.getString(R.string.no_books_borrowed), no_books_borrowed-1);\n editor.commit();\n }\n BookUpdateService.startActionUpdateWidget(mContext);\n }", "public void allActualValuesUpdated ();", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "public void beforeUpdate(RoomstatusBean pObject) throws SQLException;", "private void enterDiffValuesIntoDB() {\n Location senderLocation = new Location(\"\");\n senderLocation.setLatitude(Double.parseDouble(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE)));\n senderLocation.setLongitude(Double.parseDouble(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LONGITUDE)));\n\n Location receiverLocation = new Location(\"\");\n receiverLocation.setLatitude(Double.parseDouble(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.RECEIVER_LATITUDE)));\n receiverLocation.setLongitude(Double.parseDouble(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.RECEIVER_LONGITUDE)));\n String distance = Float.toString(senderLocation.distanceTo(receiverLocation));\n databaseHandler.setValueInExpInfo(distance, \"actual_distance\", experimentNumber);\n\n float altDiff = Float.parseFloat(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_ALTITUDE))\n - Float.parseFloat(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.RECEIVER_ALTITUDE));\n String altitudeDifference = Float.toString(altDiff);\n databaseHandler.setValueInExpInfo(altitudeDifference, \"altitude_difference\", experimentNumber);\n\n getWeatherData();\n }", "@EventListener(ApplicationReadyEvent.class)\n\t@Transactional\n\tpublic void updateDatabase(){\n\n\t\tCompany company = usersClient.getCompany(this.cid).getValue();\n\t\tSystem.out.println(company);\n\t\tif (company == null){\n\t\t\tSystem.out.println(\"COMPANY NOT REGISTERED\");\n\t\t\treturn;\n\t\t}\n\n\t\tList<Fuel> fuels = vehicleClient.getFuels().getValue().getItem();\n\t\tfor (Fuel fuel : fuels) {\n\t\t\tagent.model.vehicle.Fuel f = fuelRepo.findByName(fuel.getName());\n\t\t\tif (f == null) {\n\t\t\t\tf = mapper().map(fuel, agent.model.vehicle.Fuel.class);\n\t\t\t\tf = fuelRepo.save(f);\n\t\t\t}\n\t\t\tFuelMapping fm = new FuelMapping();\n\t\t\tfm.setFuelAgent(f);\n\t\t\tfm.setFuelBackId(fuel.getId());\n\t\t\tfuelMappingRepo.save(fm);\n\t\t}\n\n\t\tList<Category> categories = vehicleClient.getCategories().getValue().getItem();\n\t\tfor (Category category : categories) {\n\t\t\tagent.model.vehicle.Category c = categoryRepo.findByName(category.getName());\n\t\t\tif (c == null) {\n\t\t\t\tc = mapper().map(category, agent.model.vehicle.Category.class);\n\t\t\t\tc = categoryRepo.save(c);\n\t\t\t}\n\t\t\tCategoryMapping cm = new CategoryMapping();\n\t\t\tcm.setCategoryAgent(c);\n\t\t\tcm.setCategoryBackId(category.getId());\n\t\t\tcategoryMappingRepo.save(cm);\n\t\t}\n\n\t\tList<Transmission> transmissions = vehicleClient.getTransmissions().getValue().getItem();\n\t\tfor (Transmission transmission : transmissions) {\n\t\t\tagent.model.vehicle.Transmission t = transmissionRepo.findByName(transmission.getName());\n\t\t\tif (t == null) {\n\t\t\t\tt = mapper().map(transmission, agent.model.vehicle.Transmission.class);\n\t\t\t\tt = transmissionRepo.save(t);\n\t\t\t}\n\t\t\tTransmissionMapping tm = new TransmissionMapping();\n\t\t\ttm.setTransmissionAgent(t);\n\t\t\ttm.setTransmissionBackId(transmission.getId());\n\t\t\ttransmissionMappingRepo.save(tm);\n\t\t}\n\n\t\tList<BrandDTO> brandDTOS = vehicleClient.getBrands().getValue().getItem();\n\t\tfor (BrandDTO brandDTO : brandDTOS) {\n\t\t\tSystem.out.println(\"Models for brand: \" + brandDTO.getName());\n\t\t\tfor (ModelDTO model: brandDTO.getModels()) {\n\t\t\t\tSystem.out.println(model.getName());\n\t\t\t}\n\t\t\tagent.model.vehicle.Brand b = brandRepo.findByName(brandDTO.getName());\n\t\t\tif (b == null) {\n\t\t\t\tb = new agent.model.vehicle.Brand();\n\t\t\t\tb.setName(brandDTO.getName());\n\t\t\t\tb.setDeleted(false);\n\t\t\t\tb.setModels(new ArrayList<agent.model.vehicle.Model>());\n\t\t\t\tb = brandRepo.save(b);\n\n\t\t\t}\n\t\t\tfor (ModelDTO modelDTO: brandDTO.getModels()) {\n\t\t\t\tSystem.out.println(\"Model \" + modelDTO.getName() + \" ID: \"+ modelDTO.getId());\n\t\t\t\tagent.model.vehicle.Model model = modelRepo.findByName(modelDTO.getName());\n\t\t\t\tif(model == null) {\n\t\t\t\t\tmodel = new agent.model.vehicle.Model();\n\t\t\t\t\tmodel.setBrand(b);\n\t\t\t\t\tmodel.setDeleted(false);\n\t\t\t\t\tmodel.setName(modelDTO.getName());\n\t\t\t\t\tmodel = modelRepo.save(model);\n\t\t\t\t\t//Todo: check circular dependencies.\n\t\t\t\t\tb.getModels().add(model);\n\t\t\t\t}\n\n\t\t\t\tModelMapping mm = new ModelMapping();\n\t\t\t\tmm.setModelAgent(model);\n\t\t\t\tmm.setModelBackId(modelDTO.getId());\n\t\t\t\tmodelMappingRepo.save(mm);\n\t\t\t}\n\t\t\tbrandRepo.save(b);\n\t\t\tBrandMapping bm = new BrandMapping();\n\t\t\tbm.setBrandAgent(b);\n\t\t\tbm.setBrandBackId(brandDTO.getId());\n\t\t\tbrandMappingRepo.save(bm);\n\t\t}\n\n\t\tList<User> agents = userRepository.findAllByCompanyNotNull();\n\t\tfor (User user : agents) {\n\t\t\tagent.soap.gen.UserDTO saved;\n\t\t\ttry {\n\t\t\t\tsaved = usersClient.addAgent(mapper().map(user, agent.soap.gen.UserDTO.class)).getValue();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (saved != null) {\n\t\t\t\tUserMapping um = new UserMapping();\n\t\t\t\tum.setUserAgentId(user);\n\t\t\t\tum.setUserBackId(saved.getId());\n\t\t\t\tuserMappingRepo.save(um);\n\t\t\t\tSystem.out.println(\"AGENT MAPPED: \" + user.getId() + \" --> \" + saved.getId());\n\t\t\t}\n\t\t}\n\n\t\tList<agent.model.vehicle.Vehicle> vehicles = vehicleRepo.findAll();\n\t\tfor (agent.model.vehicle.Vehicle vehicle: vehicles) {\n\t\t\t Long saved = -1L;\n\t\t\ttry {\n\t\t\t\tVehicle vehicleToSend = vehicleService.updateVehicleSOAPParts(mapper().map(vehicle, Vehicle.class));\n\t\t\t\tsaved = vehicleClient.createNewVehicle(vehicleToSend);\n\t\t\t} catch (EntityNotFound entityNotFound) {\n\t\t\t\tentityNotFound.printStackTrace();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (saved != -1) {\n\t\t\t\tVehicleMapping vm = new VehicleMapping();\n\t\t\t\tvm.setVehicleAgentId(vehicle);\n\t\t\t\tvm.setVehicleBackId(saved);\n\t\t\t\tvehicleMappingRepo.save(vm);\n\t\t\t\tSystem.out.println(\"VEHICLE MAPPED: \" + vehicle.getId() + \" --> \" + saved);\n\t\t\t}\n\t\t}\n\n\t\t// Send rentals with bundles to MS\n\t\tList<Rental> rentals = rentalRepo.findAll();\n\t\tfor(Rental rental : rentals) {\n\t\t\t// Rental can be in the bundle or not\n\t\t\tLong backBundleId = null;\n\t\t\tBundle rentalBundle = rental.getBundle();\n\t\t\t// If rental is in the bundle\n\t\t\tif(rentalBundle != null) {\n\t\t\t\t// Check if bundle was already saved during previous bundle processing\n\t\t\t\tBundleMapping bundleMapping = bundleMappingRepo.findByBundleAgent(rentalBundle);\n\t\t\t\tif(bundleMapping == null){\n\t\t\t\t\t// If not, save bundle in MS and map the id\n\t\t\t\t\tBundleDTO savedBundleDTO = rentalClient.addBundle(mapper().map(rentalBundle, BundleDTO.class)).getValue();\n\t\t\t\t\tif(savedBundleDTO != null) {\n\t\t\t\t\t\tBundleMapping newBundleMapping = new BundleMapping();\n\t\t\t\t\t\tnewBundleMapping.setBundleAgent(rentalBundle);\n\t\t\t\t\t\tnewBundleMapping.setBundleBackId(savedBundleDTO.getId());\n\t\t\t\t\t\tbundleMappingRepo.save(newBundleMapping);\n\t\t\t\t\t\tbackBundleId = savedBundleDTO.getId();\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbackBundleId = bundleMapping.getBundleBackId();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Get the mappings for owner and vehicle\n\t\t\tagent.model.vehicle.Vehicle vehicle = vehicleRepo.findById(rental.getVehicleId()).get();\n\t\t\tVehicleMapping vehicleMapping = vehicleMappingRepo.findByVehicleAgentId(vehicle);\n\t\t\tUser owner = userRepository.findById(rental.getOwnerId()).get();\n\t\t\tUserMapping ownerMapping = userMappingRepo.findByUserAgentId(owner);\n\t\t\t// Convert rental to DTO with mapped id's\n\t\t\t// Todo: mappings for rental report & (?) Customer (?)\n\t\t\tRentalDTO rentalDTOtoSend = convertRentalToSOAPDTO(rental, vehicleMapping.getVehicleBackId(), backBundleId, ownerMapping.getUserBackId());\n\t\t\t// Send rental to MS and map the ID.\n\t\t\trentalDTOtoSend.setCustomerId(null);\n\t\t\tRentalDTO savedRentalDTO = rentalClient.addRental(rentalDTOtoSend).getValue();\n\t\t\tif(savedRentalDTO != null) {\n\t\t\t\tRentalMapping rentalMapping = new RentalMapping();\n\t\t\t\trentalMapping.setRentalAgentId(rental);\n\t\t\t\trentalMapping.setRentalBackId(savedRentalDTO.getId());\n\t\t\t\trentalMappingRepo.save(rentalMapping);\n\t\t\t}\n\t\t}\n\n\t}", "public void update(BookLoans bookLoans) throws SQLException, ClassNotFoundException {\n\t}", "@Override\n\tpublic AssignBooking updateStatus(int id, AssignBooking deatchedPojo) {\n\t\tAssignBooking existingBooking=aDao.findById(id).get();\n\t\tif(existingBooking!=null) {\n\t\t\texistingBooking.setBookingId(deatchedPojo.getBookingId());\n\t\t\texistingBooking.setCustomerId(deatchedPojo.getCustomerId());\n\t\t\texistingBooking.setJobId(deatchedPojo.getJobId());\n\t\t\texistingBooking.setWorkerId(deatchedPojo.getWorkerId());\n\t\t\texistingBooking.setBookingStatus(deatchedPojo.getBookingStatus());\n\t\t\tBooking booking=service.updateBooking(existingBooking.getBookingId());\n\t\t\tif(booking!=null)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"updated\");\n\t\t\t}\n\t\t\treturn aDao.save(existingBooking);\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void updatebook(BookDto book) {\n\t\tsqlSession.update(ns + \"updatebook\", book);\r\n\t}", "@Override\n\tpublic void saveBooking(BookingDetails bookingDetails) {\n\t\tbookingDao.saveBooking(bookingDetails);\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n updateRooms(dataSnapshot);\n }", "public void onUpdate()\r\n {\n \tString unitID = this.getUnitID();\r\n \t// hashmap for all assignments from tuple-old/new by seqNo\r\n \tHashMap<Integer, UITeamUsers.Assignments.Assignment> allAssignments = new HashMap<Integer, UITeamUsers.Assignments.Assignment>();\r\n \t// assigned setting for each assignment by seqNo\r\n \tHashMap<Integer, Boolean> assigned = new HashMap<Integer, Boolean>();\r\n \t// map of users plus list of user related assignments\r\n \tHashMap<String, ArrayList<Integer>> userAssignment = new HashMap<String, ArrayList<Integer>>();\r\n \t// collect data from tuple-old\r\n \tUITeamUsers origTeamUsers = (UITeamUsers)this.getOriginalObject();\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> origAssignments = origTeamUsers.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (origAssignments.hasMoreElements())\r\n \t{\r\n \t\tUITeamUsers.Assignments.Assignment origAssignment = (UITeamUsers.Assignments.Assignment)origAssignments.nextElement();\r\n \t\tint seqNo = origAssignment.getSeqNo();\r\n \t\tString orgUserDN = origAssignment.getOrgUserDN();\r\n \t\tallAssignments.put(seqNo, origAssignment);\r\n \t\t// initially, put assigned to false - from the tuple-new, we will determine if it should be put to true\r\n \t\tassigned.put(seqNo, false);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t}\r\n \t// collect data from tuple-new\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> newAssignments = this.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (newAssignments.hasMoreElements())\r\n \t{ \t\r\n \t\tUITeamUsers.Assignments.Assignment newAssignment = (UITeamUsers.Assignments.Assignment)newAssignments.nextElement();\r\n \t\tint seqNo = newAssignment.getSeqNo();\r\n \t\tString orgUserDN = newAssignment.getOrgUserDN();\r\n \t\tif (!allAssignments.containsKey(seqNo))\r\n \t\t{\r\n \t\tallAssignments.put(seqNo, newAssignment);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t\t}\r\n \t\t// determine assigned\r\n \t\tassigned.put(seqNo, newAssignment.getAssigned());\r\n \t}\r\n \t// as we have all the data now, and also by user, we can see by user if\r\n \t// any teams to be assigned or unassigned\r\n \tfor (String orgUserDN : userAssignment.keySet())\r\n \t{\r\n \t\tTeams assignTeams = new Teams();\r\n \t\tTeams unassignTeams = new Teams();\r\n \t\tArrayList<Integer> userAssignments = userAssignment.get(orgUserDN);\r\n \t\tfor (int seqNo : userAssignments)\r\n \t\t{\r\n\t \t\tUITeamUsers.Assignments.Assignment assignment = allAssignments.get(seqNo);\r\n\t \t\tString assignmentID = assignment.getAssignmentID();\r\n\t \t\tif (Util.isSet(assignmentID) && !assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// existing assignment but not assigned anymore, so for removal\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tunassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n\t \t\telse if (!Util.isSet(assignmentID) && assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// not existing yet; newly assigned\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n \t\t}\r\n \t\t// delegate\r\n \t\tTeams.maintainTeams(orgUserDN, assignTeams, unassignTeams);\r\n \t}\r\n // read back \r\n \t\tUITeamUsers actualTeamUsers = UITeamUsers.getUITeamUsers(unitID);\r\n if (actualTeamUsers != null)\r\n {\r\n \tUITeamUsers.Assignments actualAssignments = actualTeamUsers.getAssignmentsObject();\r\n \tUITeamUsers.Assignments uiAssignments = new UITeamUsers.Assignments(new BusObjectConfig(actualAssignments, BusObjectConfig.TRANSIENT_OBJECT));\r\n \tthis.setAssignmentsObject(uiAssignments);\r\n } \r\n }", "@Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(dataSnapshot.exists())\r\n {\r\n\r\n\r\n final String estimatedHour = dataSnapshot.child(\"estimated_hour\").getValue().toString();\r\n final String hourlyRate= dataSnapshot.child(\"hourly_rate\").getValue().toString();\r\n\r\n serviceRef.child(currentUserID).child(listUserID).child(\"estimated_hour\").setValue(estimatedHour);\r\n serviceRef.child(currentUserID).child(listUserID).child(\"hourly_rate\").setValue(hourlyRate);\r\n serviceRef.child(currentUserID).child(listUserID).child(\"request_type\").setValue(\"sent\");\r\n serviceRef.child(currentUserID).child(listUserID).child(\"date\").setValue(saveCurrentDate)\r\n .addOnSuccessListener(new OnSuccessListener<Void>() {\r\n @Override\r\n public void onSuccess(Void aVoid) {\r\n //bind data to UI\r\n serviceRef.child(listUserID).child(currentUserID).child(\"hourly_rate\").setValue(hourlyRate);\r\n serviceRef.child(listUserID).child(currentUserID).child(\"estimated_hour\").setValue(estimatedHour);\r\n serviceRef.child(listUserID).child(currentUserID).child(\"request_type\").setValue(\"received\");\r\n serviceRef.child(listUserID).child(currentUserID).child(\"date\").setValue(saveCurrentDate)\r\n .addOnSuccessListener(new OnSuccessListener<Void>() {\r\n //bind data to UI\r\n @Override\r\n public void onSuccess(Void aVoid) {\r\n\r\n bidsRef.child(currentUserID).child(listUserID).removeValue().addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n bidsRef.child(listUserID).child(currentUserID).removeValue().addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n\r\n Toast.makeText(getApplicationContext(), \"Bid Accepted.\", Toast.LENGTH_SHORT).show();\r\n }\r\n }\r\n });\r\n }\r\n\r\n }\r\n });\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }", "@Override\n\tpublic void update(String state,String id) {\n\t\tString query=\"UPDATE Book SET State='\"+state+\"' Where id='\"+id+\"'\";\n\t\texecuteQuery(query);\n\t\tnotifyAllObservers();\n\t\t\n\t}", "@Override\n\tpublic void handleOnNextDay() {\n\t\trecommendDao.updateTimes();\n\t}", "private void updateDueList() {\n boolean status = customerDue.storeSellsDetails(new CustomerDuelDatabaseModel(\n selectedCustomer.getCustomerCode(),\n printInfo.getTotalAmountTv(),\n printInfo.getPayableTv(),\n printInfo.getCurrentDueTv(),\n printInfo.getInvoiceTv(),\n date,\n printInfo.getDepositTv()\n ));\n\n if (status) Log.d(TAG, \"updateDueList: --------------successful\");\n else Log.d(TAG, \"updateDueList: --------- failed to store due details\");\n }", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "@Override\n\tpublic Book update(Book dto) {\n\t\treturn null;\n\t}", "public void onBookEvent(final BookStatusEvent event) {\n if (this.feed.containsID(event.book())) {\n LOG.debug(\"update: updated feed entry\");\n UIThread.runOnUIThread(adapter::notifyDataSetChanged);\n }\n }", "public void updateResult(){\n String lastUpdateDate = User.getLastUpdateDate(getApplicationContext());\n CheckListResultDBHelper dbHelper = new CheckListResultDBHelper(this);\n dbHelper.getReadableDatabase();\n int cnt = User.getCurrentCheckListCount(getApplicationContext());\n Log.d(\"TEST\", \"start date : \" + User.getStartDate(getApplicationContext()));\n Log.d(\"TEST\", \"last update date : \" + lastUpdateDate + \", cnt : \" + cnt);\n dbHelper.close();\n\n if(!lastUpdateDate.equals(\"\") && cnt > 0 && !lastUpdateDate.equals(nowDate)){\n ArrayList<String> list = User.getBetweenDate(lastUpdateDate, nowDate);\n save(list, null, null);\n }\n }", "public void setBookedStatus(JGGTimeSlotModel timeSlot) {\n JGGTimeSlotBookedStatus status = timeSlot.getStatus();\n switch (status) {\n case none:\n case not_booked:\n backLayout.setBackgroundResource(R.drawable.book_background);\n txtDay.setVisibility(View.GONE);\n txtWeekDay.setText(\"Book Time Slot\");\n txtWeekDay.setTextColor(ContextCompat.getColor(mContext, R.color.JGGWhite));\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, PackageServiceTimeSlotActivity.class);\n mContext.startActivity(intent);\n }\n });\n break;\n case booking:\n break;\n case booked:\n backLayout.setBackgroundResource(R.drawable.grey_border_background);\n txtDay.setTextColor(ContextCompat.getColor(mContext, R.color.JGGGrey3));\n txtWeekDay.setTextColor(ContextCompat.getColor(mContext, R.color.JGGGrey3));\n break;\n default:\n break;\n }\n }", "@Override\n public void run() {\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }", "@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}", "public void updateStatus() {\n\n //loading the driver\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //database variables\n final String db = \"jdbc:mysql://mis-sql.uhcl.edu/dingorkarj2620\";\n Connection con = null;\n Statement st = null;\n ResultSet rs = null;\n\n try {\n //connecting database\n con = DriverManager.getConnection(db, \"dingorkarj2620\", \"1289968\");\n st = con.createStatement();\n rs = st.executeQuery(\"select * from account where a_id = \" + super.id);\n\n //updating the status\n if (rs.next()) {\n //premium seller\n if (rs.getString(3).equalsIgnoreCase(\"premium\")) {\n //update the item status\n i.setI_status(\"Valid\");\n\n } else {\n //regular seller\n if (rs.getString(3).equalsIgnoreCase(\"regular\")) {\n //checking price lower or higher than 100\n if (i.getI_price() <= 100) {\n //update status valid\n i.setI_status(\"Valid\");\n } else {\n //update status pending\n i.setI_status(\"Invalid\");\n }\n }\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n con.close();\n st.close();\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n }", "protected void updateLocalData(Building[] data){\n new DBHandler(cx).updateBuildings(data);\n }" ]
[ "0.6523958", "0.6441164", "0.6402398", "0.6201164", "0.6015389", "0.6013191", "0.60076445", "0.59724116", "0.59662664", "0.5939351", "0.59233874", "0.59107614", "0.58608806", "0.5828683", "0.58230966", "0.5787681", "0.5785595", "0.5773718", "0.57693845", "0.57571703", "0.57530546", "0.573187", "0.572689", "0.5717511", "0.57163584", "0.56920713", "0.56851363", "0.5662229", "0.5645667", "0.5636625", "0.5634296", "0.56251556", "0.56166536", "0.55929965", "0.5582639", "0.5580003", "0.55765563", "0.5569049", "0.55442965", "0.55338997", "0.5533809", "0.5529467", "0.55199194", "0.55086565", "0.549489", "0.5494033", "0.5490757", "0.5477344", "0.5469207", "0.5420753", "0.54156315", "0.5406727", "0.54055554", "0.5404569", "0.5400724", "0.53993684", "0.53893405", "0.5386197", "0.5386197", "0.5383331", "0.5383132", "0.53815705", "0.53727394", "0.5369828", "0.5367415", "0.53615695", "0.53531396", "0.5341489", "0.5333267", "0.53299135", "0.53128165", "0.531254", "0.531254", "0.53078717", "0.53035986", "0.53030866", "0.5298722", "0.5292622", "0.52876127", "0.5286379", "0.52855074", "0.5282508", "0.52734387", "0.5273428", "0.5266528", "0.5264004", "0.52601653", "0.52576566", "0.5256848", "0.52555114", "0.5254452", "0.52493274", "0.5245616", "0.5242545", "0.5241995", "0.5240507", "0.5238538", "0.52374744", "0.5230749", "0.52306026" ]
0.5686168
26
When a booking is removed from the online database this method will remove it locally, ConcurrentModificationException may be thrown if this is run straight after application has been launched
@Override public void onChildRemoved(DataSnapshot dataSnapshot) { int removedBooking = Integer.parseInt(dataSnapshot.getKey()); try { ObservableLists.bookingsList.forEach(b -> { if(b.getBookingNumber() == removedBooking){ ObservableLists.bookingsList.remove(b); } }); } catch (ConcurrentModificationException ex){ //This occurs because I am removing an from a list while I am iterating through that list //functions properly and works well however if I have time I will look at alternative ways } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteBooking() \n {\n Scanner memberID=new Scanner(System.in);\n System.out.println(\"Please enter your member number: \");\n int memberId = memberID.nextInt();\n \n Member mem = sportsClub.searchMember(memberId);\n if(mem==null || mem.getBookings()==null)\n {\n System.out.println(\"Sorry! There are no members with the given ID. \");\n\n \n\n }\n else\n {\n for(Booking b : mem.getBookings())//Displays the member details n bookings\n {\n System.out.println(\"Booking Id : \" + b.hashCode()+ \" Booking made by \"+mem.getMemberName() +\" for \" + b.getBookingDate() + \" at \" + b.getBookingTime() + \" for \" + b.getBookingEndTime() + \" minutes on Court number \" + b.getCourt().getCourtId());\n\n }\n \n if(mem.getBookings().size()!=0)\n {\n Scanner inputID=new Scanner(System.in);\n System.out.println(\"Enter Booking ID: \");\n int input = inputID.nextInt();\n Iterator<Booking> itr = mem.getBookings().iterator();\n\n\n while(itr.hasNext())//delettion starts based on the ID\n { \n if(itr.next().hashCode() == input)\n {\n itr.remove();\n for(String str : mem.getSportsPlayed())\n {\n Sport sportObj = sportsClub.findSport(str);\n\n ArrayList<Court> itrCourt = sportObj.getCourtList();\n for(Court c : itrCourt)//finds the court\n {\n\n Iterator<Booking> itrBooking = c.getCourtBookings().iterator();\n while(itrBooking.hasNext())//helps to get the booking object\n {\n if(itrBooking.next().hashCode() == input)\n {\n itrBooking.remove();//removes the booking object\n System.out.println(\"Deleted Successfully\");\n }\n } \n } \n } \n }\n }\n }\n }\n\n\n\n }", "public void dontCompleteBooking(){\r\n\t\ttempBookings.clear();\r\n\t}", "public void deleteBookingEntry(int itineraryToBeUpdated, String bookingToBeDeleted) throws SQLException, ItineraryNotFoundException, BookingNotFoundException {\n var statement = connection.prepareStatement(\"SELECT bookings FROM itinerary WHERE identifier = ?\");\n statement.setInt(1, itineraryToBeUpdated);\n var result = statement.executeQuery();\n String bookingIds;\n\n if (result.next()) {\n bookingIds = result.getString(\"bookings\");\n } else {\n throw new ItineraryNotFoundException();\n }\n\n //If the given booking id is present in the itinerary, delete the booking from bookings Repository and save new BookingIds String\n List<String> updatedBookingIds = new ArrayList<>();\n for(String bookingId: bookingIds.split(\",\")) {\n if(bookingId.compareTo(bookingToBeDeleted) == 0) {\n String booking_conf[] = bookingId.split(\"-\");\n if(booking_conf[0].compareTo(\"Air\") == 0)\n bookingsRepository.delete_air_booking(Integer.parseInt(booking_conf[1]));\n else\n bookingsRepository.delete_hotel_booking(Integer.parseInt(booking_conf[1]));\n } else {\n updatedBookingIds.add(bookingId);\n }\n }\n\n //If no bookings left in the itinerary delete it, otherwise update itinerary with new BookingIds String\n if (updatedBookingIds.size() == 0) {\n delete(itineraryToBeUpdated);\n } else {\n update(itineraryToBeUpdated, String.join(\",\",updatedBookingIds));\n }\n }", "public void remove()\r\n {\r\n if(bookCount>0)\r\n {\r\n bookCount-=1;\r\n }\r\n }", "void deleteBookingById(BookingKey bookingKey);", "private void clearBooking() {\n // Clearing current booking information from sharedPreference\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.putBoolean(BOOKING, false);\n editor.commit();\n time = 0;\n shutdown();\n }", "@Override\n public List<Book> removeBooks(Book removingBook) throws DaoException {\n DataBaseHelper helper = new DataBaseHelper();\n List<Book> removedBooks = new ArrayList<>();\n try (Connection connection = SqlConnector.connect();\n PreparedStatement statementSelect =\n helper.prepareStatementSelect(connection, removingBook);\n ResultSet resultSet = statementSelect.executeQuery()) {\n while (resultSet.next()) {\n BookCreator bookCreator = new BookCreator();\n Book book = bookCreator.create(resultSet);\n removedBooks.add(book);\n resultSet.deleteRow();\n }\n if (removedBooks.isEmpty()) {\n throw new DaoException(\"There is no such book in warehouse!\");\n }\n } catch (SQLException e) {\n throw new DaoException(e);\n }\n return removedBooks;\n }", "public void remove() {\n int size = itinerary.size();\n if (size != 1) {\n \n // Removes last Flight in this Itinerary.\n Flight removedFlight = this.itinerary.remove(size - 1);\n \n // Gets the new last Flight in this Itinerary.\n Flight flight = this.itinerary.get(size - 2);\n \n // Updates all the relevant fields in this Itinerary.\n this.price -= removedFlight.getCost();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.destination = flight.getDestination();\n this.travelTime = arrivalDateTime.timeDiff(departDateTime);\n this.places.remove(size);\n }\n }", "private void checkReservationValidityAndRemove(){\n\t\t\n\t\tfor (Reservation r: reservationArray){\n\t\t\tif (r.getBookingDateAndTime().get(Calendar.DAY_OF_MONTH)==Calendar.getInstance().get(Calendar.DAY_OF_MONTH)){\n\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.MONTH)==Calendar.getInstance().get(Calendar.MONTH)){\n\t\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.HOUR_OF_DAY)==Calendar.getInstance().get(Calendar.HOUR_OF_DAY)){\n\t\t\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.MINUTE) > 30 + r.getBookingDateAndTime().get(Calendar.MINUTE) ){\n\t\t\t\t\t\t\treservationArray.remove(r);\n\t\t\t\t\t\t\ttablemanager.increaseAvailable();;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void start(){\n bRef.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Platform.runLater(() -> {\n LoadOnlineDatabase load = new LoadOnlineDatabase();\n load.loadBookings();\n MainController m = new MainController();\n m.refreshBookingNo();\n });\n // Must run on FX thread - otherwise throws exception but still functions well either way ? weird\n\n }\n\n /**\n * Whenever a booking has values changed on the database this method is run,\n * the booking will be updated locally to match its values on the database.\n * @param dataSnapshot the booking that has changed\n * @param s\n */\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n Platform.runLater(() -> {\n LoadBookingChange load = new LoadBookingChange();\n// System.out.println(\"UPDATING BOOKING: \"+Integer.parseInt(dataSnapshot.getKey()));\n load.loadBookingChange(Integer.parseInt(dataSnapshot.getKey()));\n });\n }\n\n /**\n * When a booking is removed from the online database this method will remove it locally,\n *\n * ConcurrentModificationException may be thrown if this is run straight after\n * application has been launched\n * @param dataSnapshot\n */\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n int removedBooking = Integer.parseInt(dataSnapshot.getKey());\n try {\n ObservableLists.bookingsList.forEach(b -> {\n if(b.getBookingNumber() == removedBooking){\n ObservableLists.bookingsList.remove(b);\n }\n });\n } catch (ConcurrentModificationException ex){\n //This occurs because I am removing an from a list while I am iterating through that list\n //functions properly and works well however if I have time I will look at alternative ways\n }\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n //Do nothing\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n //If internet connection cut - maybe wait for 1 minute and try again?\n }\n });\n }", "public void onClick(DialogInterface dialog, int which) {\n indivReservee.getRef().removeValue();\n\n //Remove reservation from user\n for(DataSnapshot indivSpace : snapshot.child(Keys.KEY_RESERVATIONS.name()).getChildren()) {\n if(spaceID.equals(indivSpace.child(\"id\").getValue().toString().trim())) {\n String key = indivSpace.getKey();\n bmDatabaseRef.child(Keys.KEY_RESERVATIONS.name()).child(key).removeValue();\n }\n }\n Toast.makeText(SpaceViewActivity.this, \"Unreserved a \" + type, Toast.LENGTH_SHORT).show();\n finish();\n //btnReserve.setText(\"Reserve\");\n }", "@Override\n public void removeFromDb() {\n }", "void registerDeleteBooking(Booking b) {\n if (!newBooking.contains(b)\n && !modifiedBooking.contains(b)\n && !deleteBooking.contains(b)) {\n deleteBooking.add(b);\n }\n }", "private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void removeUnavailableRooms(){\n\t}", "private void clearRecord() {\n // Clearing current booking information from sharedPreference\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.clear();\n editor.commit();\n shutdown();\n }", "private void ExitRoom() {\n stopFirestoreListenerService();\n\n SharedPreferences roomInfo = getSharedPreferences(\"PreviousRoom\", 0);\n SharedPreferences.Editor roomInfoEditor = roomInfo.edit();\n\n roomInfoEditor.putString(\"roomID\", \"\");\n\n roomInfoEditor.apply();\n\n SelectRoomActivity.recentRooms.remove(roomId);\n }", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "private void deleteBook() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Delete the book only if mBookId matches DEFAULT_BOOK_ID\n if (mBookId != DEFAULT_BOOK_ID) {\n bookEntry.setId(mBookId);\n mDb.bookDao().deleteBook(bookEntry);\n }\n finish();\n }\n });\n\n }", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "@Override\r\n\tpublic void cancelReservation(Reservation r) {\n\t\tentityManager.remove(entityManager.merge(r));\r\n\t\t\r\n\r\n\t}", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "@FXML\n void deleteBooking(ActionEvent event) throws IOException, ClassNotFoundException {\n Booking selectedBooking = table.getSelectionModel().getSelectedItem();\n if (selectedBooking != null) {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Delete booking\");\n alert.setHeaderText(\"This will delete the booking permanently\");\n alert.setContentText(\"Are you sure you want to do this?\");\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK) {\n for (Ticket ticket:selectedBooking.getTickets()) {\n for (Showing showing:Main.getShowings().getShowings()) {\n if (showing.getFilm().getTitle().equals(ticket.getShowing().getFilm().getTitle())&&showing.getShowingTimeFormatted().equals(ticket.getShowing().getShowingTimeFormatted())&&showing.getShowingDateFormatted(false).equals(showing.getShowingDateFormatted(false))) {\n String row = ticket.getSeat().getRowLetter();\n int number = ticket.getSeat().getSeatNumber();\n showing.getSeat(row, number).setBookingStatus(false);\n }\n }\n }\n Main.getBookings().removeBooking(selectedBooking);\n populateTableView();\n Main.getBookings().saveBookings();\n Main.getShowings().saveShowings();\n }\n }\n }", "public boolean destroyBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buff = null;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuff = Bookings.get(i);\r\n\t\t\t\tif(name.contentEquals(buff.getBooker())) {\r\n\t\t\t\t\tBookings.remove(buff);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t}", "public void removeOldRoutes()\n\t{\n\t\tList<RouteTableEntry> safeList = Collections.synchronizedList(getList());\n\t\t\n\t\ttable.clear(); // clear the table\n\t\t\n\t\tfor (RouteTableEntry entry : safeList)\n\t\t{\n\t\t\tif (entry.getCurrentAgeInSeconds() > NetworkConstants.ROUTE_TABLE_TIMEOUT)\n\t\t\t{\n\t\t\t\t// do nothing, the entry expired so leave it out of the table\n\t\t\t} // end if\n\t\t\telse\n\t\t\t{\n\t\t\t\ttable.add(entry); // put it back in the table\n\t\t\t} // end else\n\t\t} // end for each loop\n\t\t\n\t\t/*addOrUpdate(Utilities.getLL3PIntFromLL3PString(NetworkConstants.MY_LL3P_ADDRESS), \n\t\t\t\tnew NetworkDistancePair(Utilities.getLL3PIntFromLL3PString(NetworkConstants.MY_LL3P_ADDRESS), \n\t\t\t\t0), // I am zero away from myself\n\t\t\t\tUtilities.getLL3PIntFromLL3PString(NetworkConstants.MY_LL3P_ADDRESS));*/\n\t\t\n\t\tparentActivity.runOnUiThread(new Runnable()\n\t\t{ \n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tuiManager.resetRoutingListAdapter();\n\t\t\t\tuiManager.resetForwardingListAdapter();\n\t\t\t} // end public method run\n\t\t}); // end runOnUiThread\n\t}", "@Override\n\tpublic boolean cancelSeat(int bookingId) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"delete from Booking b where b.bookingId=\" + bookingId + \"\");\n\t\tint i = query.executeUpdate();\n\t\t//System.out.println(\"status change\");\n\t\treturn true;\n\t}", "public Optional<Basket> removeAppointment(Long basketAppointmentId){\n Basket customerBasket = customerBean.getBasket();\n Optional<BasketAppointment> findAny = customerBasket.getAppointments()\n .stream()\n .filter(a -> a.getId().equals(basketAppointmentId))\n .findAny();\n \n if(!findAny.isPresent()){\n return Optional.empty();\n }\n \n \n \n Optional<Basket> basketById = getBasketById(customerBean.getBasket().getId());\n if(basketById.isPresent()){\n Basket basket = basketById.get();\n Optional<BasketAppointment> basketAppointment = basket.getAppointments().stream().filter(a -> a.getId().equals(basketAppointmentId)).findFirst();\n \n if(basketAppointment.isPresent()){\n basket.getAppointments().remove(basketAppointment.get());\n em.remove(basketAppointment.get());\n em.persist(basket);\n return Optional.of(basket);\n }\n }\n \n \n return Optional.empty();\n }", "private synchronized void performHouseKeeping() {\r\n\t\tSet<Map.Entry<Integer,QueueManager>> eS = queueManagers.entrySet();\r\n\t\tfor( Iterator<Map.Entry<Integer,QueueManager>> i = eS.iterator(); i.hasNext(); ) {\r\n\t\t\tMap.Entry<Integer,QueueManager> qMME = i.next();\r\n\t\t\tQueueManager qM = qMME.getValue();\r\n\t\t\tif( qM.houseKeepingAndTestForDelete() ) {\r\n\t\t\t\ti.remove();\r\n\t\t\t\tLOGGER.debug(\"Removed QueueManager with magic number \"+qM.getMagicNumber()+\" due to inactivity\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void removeInBookNo(Object oldInBookNo);", "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tAppofferUtil.getIntsance().getList().clear();\n\t}", "public String remove(){\n ListIterator<String> iter = bookkeeper.listIterator();\n int random = (int)(Math.random()*bookkeeper.size());\n System.out.println(\"\\n\\n***RANDOM = \" + random);\n String retrieve = bookkeeper.get(random);\n int i = -1; while (i<random){ i++; iter.next(); } iter.remove();\n return retrieve;\n }", "@Override\n public void remove() throws IllegalStateException{\n it.remove();\n }", "public void removeClockFromStock(Clock removedClock);", "public void completeBooking(){\r\n\t\tbookings.putAll(tempBookings);\r\n\t\ttempBookings.clear();\r\n\t}", "public void removeObservateur() {\r\n\t\tlisteObservateur = new ArrayList<Observateur>();\t\t\r\n\t}", "public void deleteSingleAirport(Airport airport, HashMap<Integer, Route> routeHashMap, ObservableList<Route> currentlyLoadedRoutes, HashMap<String, Airport> airportHashMap, ObservableList<Airport> currentlyLoadedAirports) {\n\n //Set up the database and objects\n DatabaseSearcher dbs = new DatabaseSearcher();\n DatabaseSaver dbSave = new DatabaseSaver();\n Connection connSearch = Database.connect();\n Connection connDelete = Database.connect();\n\n //Get all routes associated with this airport\n String sql = dbs.buildRouteSearch(\"sourceid\", Integer.toString(airport.getAirportID()));\n sql = dbs.addAdditionalLikeOption(sql, \"destinationid\", Integer.toString(airport.getAirportID()));\n ObservableList<Route> routesFromDatabase = dbs.searchRouteByOption(connSearch, sql);\n Database.disconnect(connSearch);\n ObservableList<Route> routesToDelete = FXCollections.observableArrayList();\n\n for (int i = 0; i < routesFromDatabase.size(); i++) {\n if (routeHashMap.get(routesFromDatabase.get(i).getRouteID()) != null) {\n routesToDelete.add(MainController.getRouteHashMap().get(routesFromDatabase.get(i).getRouteID()));\n }\n }\n\n //Delete the routes from the app\n RouteDeleter rd = new RouteDeleter();\n rd.deleteListRoutes(routesToDelete, routeHashMap, currentlyLoadedRoutes);\n\n //Get id of airport so database knows which one to delete\n ArrayList<Integer> id = new ArrayList<Integer>();\n id.add(airport.getAirportID());\n\n //Remove the airport from the current observable list of integers\n currentlyLoadedAirports.remove(currentlyLoadedAirports.indexOf(airport));\n\n //Remove the airport from the current hashmap\n if (airport.getCountry().equals(\"United States\")) {\n airportHashMap.remove(airport.getFAA());\n } else if (airport.getIATA() != null) {\n airportHashMap.remove(airport.getIATA());\n } else {\n airportHashMap.remove(airport.getICAO());\n }\n\n //Remove the airport from the database\n dbSave.deleteAirport(connDelete, id);\n Database.disconnect(connDelete);\n\n }", "private void handleUnbooking() {\n\t\ttry {\n\t\t\tint recNo = table.getSelectedRow();\n\t\t\tif(recNo == -1){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcontroller.unreserveRoom(recNo);\n\t\t\t\n\t\t\tupdateTable(nameSearchBar.getText(), locationSearchBar.getText());\n\t\t} catch (BookingServiceException bse) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel,\n\t\t\t\t\t\"Record has not been booked!\");\n\t\t} catch (ServiceUnavailableException sue) {\n\t\t\tJOptionPane.showMessageDialog(null, sue.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t}", "@Test\n\tpublic void testRemoveFacilityFromReservation() throws Exception {\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID,\n\t\t\t\tArrays.asList(infoBuilding.getId(), room1.getId()), validStartDate, validEndDate);\n\n\t\tbookingManagement.removeFacilityFromReservation(res1.getId(), room1.getId());\n\n\t\tres1 = bookingManagement.getReservation(res1.getId());\n\t\tassertNotNull(res1);\n\t\tassertEquals(1, res1.getBookedFacilityIds().size());\n\t\tassertTrue(res1.getBookedFacilityIds().contains(infoBuilding.getId()));\n\t}", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "public boolean atomicRemove();", "@Override\n\tpublic void delObservateur() {\n\t\tthis.listObservateur = new ArrayList<Observateur>();\n\t}", "public void unbookRoom(int room) {\n availableRooms.add(availableRooms.size(), room);\n unavailableRooms.remove(unavailableRooms.indexOf(room));\n unavailableRooms = unavailableRooms.stream().sorted().collect(Collectors.toList());\n availableRooms = availableRooms.stream().sorted().collect(Collectors.toList());\n System.out.println(\"Thank you for staying! See you next time.\");\n }", "public void clean() {\n Long now = System.currentTimeMillis();\n for (Iterator<Long> iterator = this.deleted.iterator(); iterator.hasNext();) {\n Long l = iterator.next();\n if (l < now) {\n iterator.remove();\n }\n }\n }", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tBaseApplication.totalList.remove(this);\n\t}", "private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}", "Sporthall() {\n reservationsList = new ArrayList<>();\n }", "private static void removeDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n dropTable(\"myRooms\");\n dropTable(\"myReservations\");\n }", "public void remove() {\n\n }", "private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }", "private void removeOlderGigs() {\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tint currentHr = cal.get(Calendar.HOUR_OF_DAY);\r\n\t\t\r\n\t\tif ((currentHr >= 0 && currentHr <= 7)) {\r\n\t\t\t//Log.d(TAG, \"deleting older gigs\");\r\n\t\t\tmGigsDbHelper.deleteOlderGigs();\r\n\t\t}\r\n\t\t\r\n\t}", "public void remove()\n {\n list.remove(cursor);\n cursor--;\n }", "public void remove () {}", "@Test\n public void removeBusy() {\n Date date = new Date(2017-11-12);\n\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n busyDAO.createBusy(new Busy(\"dummy\", 1, date));\n\n assertTrue(busyResource.removeBusy(date, 1,\"dummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "public void remove() {\r\n return;\r\n }", "protected void onStop() {\n super.onStop();\n String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"walkersAvailable\");\n GeoFire geoFire = new GeoFire(ref);\n geoFire.removeLocation(userId);\n }", "private void removeFromSavedCourseList() {\n System.out.println(\"The current courses in the saved course list are: \");\n\n for (int i = 0; i < courseList.getCourseList().size(); i++) {\n System.out.println((i + 1) + \": \" + courseList.getCourseList().get(i).getName());\n }\n\n System.out.println(\"Write the number of the one you wish to remove\");\n int removeIndex = obtainIntSafely(1, courseList.getCourseList().size(), \"Number out of bounds\");\n courseList.getCourseList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "@Override\n public void remove() {\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public void clearAppointments(){\n appointments.clear();\n }", "@Override\n public void run() {\n if (mBookId != DEFAULT_BOOK_ID) {\n bookEntry.setId(mBookId);\n mDb.bookDao().deleteBook(bookEntry);\n }\n finish();\n }", "void disposeLocked() {\n ArrayList<UpdateRecord> records = mRecordsByProvider.get(this.mProvider);\n records.remove(this);\n }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "void removeHadithBookNo(Object oldHadithBookNo);", "@Override\n public void remove() {\n if (lastItem == null)\n throw new IllegalStateException();\n bag.remove(lastItem);\n lastItem = null;\n }", "private void cleanSweep(){\n // Corrects the reminder dates for those reminders which will be repeating.\n refreshAllRepeatReminderDates();\n\n // Starts removing expired reminders.\n Calendar timeRightNow = Calendar.getInstance();\n boolean cleanList;\n for (int outerCounter=0; outerCounter<reminderItems.size();outerCounter++) {\n cleanList=true;\n for (int counter = 0; counter < reminderItems.size(); counter++) {\n int year = reminderItems.get(counter).getReminderYear();\n int month = reminderItems.get(counter).getReminderMonth();\n int day = reminderItems.get(counter).getReminderDay();\n int hour = reminderItems.get(counter).getReminderHour();\n int minute = reminderItems.get(counter).getReminderMinute();\n int second = 0;\n\n Calendar timeOfDeletion = Calendar.getInstance();\n timeOfDeletion.set(year, month, day, hour, minute, second);\n\n if (timeOfDeletion.before(timeRightNow)) {\n deleteReminderItem(counter);\n cleanList=false;\n break;\n }\n }\n if(cleanList){\n break;\n }\n }\n\n // Refreshes the reminder date descriptions (correcting \"Today\" and \"Tomorrow\" depending on the date).\n refreshAllDateDescriptions();\n }", "public void cleanupDead() {\n\t\tIterator<Entity> it = entities.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntity e = it.next();\n\t\t\t\n\t\t\tif (!e.isDead()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Remove from entities list\n\t\t\tit.remove();\n\t\t\t\n\t\t\t//Remove from other lists.\n\t\t\tremove(e);\n\t\t\t\n\t\t\t//Log action.\n\t\t\tlogger.log(LogLevel.DEBUG, \"Removed entity\");\n\t\t}\n\t}", "@Override\r\n\tpublic void remove(Book book) {\r\n\r\n\t}", "public boolean deleteRoom(String user_id, int room_number, DateReservation date, ArrayList<TimeSlot> time_slots) {\n\t\tString log_msg = String.format(\"received deleteRoom(user id: %s, room number: %d, date: %s, time slots: %s\", \n\t\t\t\tuser_id, room_number, date, time_slots);\n\t\tlogger.info(LoggerHelper.format(log_msg));\n\t\tCampusUser user = new CampusUser(user_id);\n\t\tif (!user.isAdmin() || !user.getCampus().equals(getName()))\n\t\t{\n\t\t\tlogger.warning(LoggerHelper.format(String.format(\"%s is not authorized to deleteRoom in %s\", user_id, getName())));\n\t\t\treturn false;\n\t\t}\n\t\tDbOperations ops = new DbOperations(db) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSubValue(ArrayList<TimeSlot> sub_val) {\n\t\t\t\tArrayList<Thread> threads = new ArrayList<>();\n\t\t\t\tHashMap<Integer, WaitObject> res = new HashMap<>();\t//(message_id, wait ojbect)\n\t\t\t\tHashMap<Integer, TimeSlot> removed_list = new HashMap<>();\t//(message_id, time slot)\n\t\t\t\t\n\t\t\t\tArrayList<TimeSlot> new_time_slots = new ArrayList<TimeSlot>();\n\t\t\t\tfor (TimeSlot val1 : sub_val)\n\t\t\t\t{\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (TimeSlot val2 : time_slots)\n\t\t\t\t\t\tif (val1.equals(val2))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tif (found)\t//We need to delete val1 from time slot list\n\t\t\t\t\t{\n\t\t\t\t\t\tif (val1.isBooked())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCampusUser user = new CampusUser(val1.getUsername());\n\t\t\t\t\t\t\tif (userBelongHere(user))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlogger.info(String.format(\"%s who is in this campus, booked time slot %s.\" +\n\t\t\t\t\t\t\t\t\t\t\"I'm going to remove booking id %s from his/her record while deleting time slot\", \n\t\t\t\t\t\t\t\t\t\tval1.getUsername(), val1, val1.getBookingId()));\n\t\t\t\t\t\t\t\tboolean status = removeStudentRecord(val1.getUsername(), val1.getBookingId());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (!status)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.severe(String.format(\"I cannot delete booking id %s from %s records \", \n\t\t\t\t\t\t\t\t\t\t\tval1.getBookingId(), val1.getUsername()));\n\t\t\t\t\t\t\t\t\t_operation_status = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tCampusUser a_user = new CampusUser(val1.getUsername());\n\t\t\t\t\t\t\t\tlogger.info(String.format(\"%s who is in another campus (%s), booked time slot %s.\" +\n\t\t\t\t\t\t\t\t\t\t\"I'm going to send a request to that campus to remove booking id %s from\" + \n\t\t\t\t\t\t\t\t\t\t\" his/her record while I'm deleting this time slot\", val1.getUsername(), \n\t\t\t\t\t\t\t\t\t\ta_user.getCampus(), val1, val1.getBookingId()));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tint message_id = MessageProtocol.generateMessageId();\n\t\t\t\t\t\t\t\tbyte[] send_msg = MessageProtocol.encodeRemoveStudentRecordMessage(message_id, val1.getUsername(), val1.getBookingId());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tUdpServer.WaitObject wait_object = udp_server.new WaitObject();\n\t\t\t\t\t\t\t\t\tudp_server.addToWaitList(message_id, wait_object);\n\t\t\t\t\t\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tsynchronized (wait_object) {\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\twait_object.wait();\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tres.put(message_id, wait_object);\n\t\t\t\t\t\t\t\t\tremoved_list.put(message_id, val1);\n\t\t\t\t\t\t\t\t\tthread.start();\n\t\t\t\t\t\t\t\t\tsendMessage(send_msg, user.getCampus());\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tthreads.add(thread);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\t//We shouldn't delete val1\n\t\t\t\t\t{\n\t\t\t\t\t\tlogger.warning(String.format(\"I couldn't find %s in time slot database\", val1));\n\t\t\t\t\t\tnew_time_slots.add(val1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Since we use sub_val as a lock object (see create room method), we couldn't simply use val.put(room_number, new_time_slots)\n\t\t\t\tsub_val.clear();\n\t\t\t\tfor (TimeSlot value : new_time_slots)\n\t\t\t\t\tsub_val.add(value);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tfor (Thread thread : threads)\n\t\t\t\t\t\tthread.join();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int message_id : res.keySet())\n\t\t\t\t{\n\t\t\t\t\tTimeSlot ts = removed_list.get(message_id);\n\t\t\t\t\tboolean status = res.get(message_id).status;\n\t\t\t\t\tif (!status)\n\t\t\t\t\t{\n\t\t\t\t\t\tCampusUser a_user = new CampusUser(ts.getUsername());\n\t\t\t\t\t\tlogger.severe(String.format(\"%s campus cannot delete booking id %s from student %s records\",\n\t\t\t\t\t\t\t\ta_user.getCampus(), ts.getBookingId(), ts.getUsername()));\n\t\t\t\t\t\t_operation_status = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic HashMap<Integer, ArrayList<TimeSlot>> onNullValue() {\n\t\t\t\t_operation_status = false;\n\t\t\t\tlogger.severe(String.format(\"%s doesn't have any room numbers!\", date));\n\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic ArrayList<TimeSlot> onNullSubValue(HashMap<Integer, ArrayList<TimeSlot>> val) {\n\t\t\t\t_operation_status = false;\n\t\t\t\tlogger.severe(String.format(\"We don't have any time slots for date %s and room number %d\",\n\t\t\t\t\t\tdate, room_number));\n\t\t\t\treturn null;\n\t\t\t\t}\n\t\t};\n\t\t\n\t\ttraverseDb(room_number, date, ops);\n\t\treturn ops._operation_status;\n\t}", "public void run() {\n AuctionItemCollection coll = AuctionItemCollection.getInstance();\n for (AuctionItem item : coll.getValues()) {\n if (!item.isOpen())\n coll.remove(item.getItemInfo().getId());\n }\n coll.rebuildCache();\n }", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "public void checkForRemoval()\n {\n if (life <= 0)\n {\n SideScrollingWorld world = (SideScrollingWorld) getWorld(); \n \n world.isPacmanDead = true;\n getWorld().removeObject(this);\n }\n }", "public void run() {\n main.removeUser(location);\n }", "@Override\n public Book removeBookById(int id) throws DaoException {\n DataBaseHelper helper = new DataBaseHelper();\n Book book = Book.newBuilder().build();\n try (Connection connection = SqlConnector.connect();\n PreparedStatement statementSelectById =\n helper.prepareStatementSelectById(connection, id);\n ResultSet resultSet = statementSelectById.executeQuery()) {\n while (resultSet.next()) {\n BookCreator bookCreator = new BookCreator();\n book = bookCreator.create(resultSet);\n resultSet.deleteRow();\n }\n if (book.getId() == 0) {\n throw new DaoException(\"There is no such book in warehouse!\");\n }\n } catch (SQLException e) {\n throw new DaoException(e);\n }\n return book;\n }", "private void cleanDB() {\n // the database will contain a maximum of MAX_DB_SIZE wallpapers (default N=50)\n // when the db gets bigger then N, the oldest wallpapers are deleted from the database\n // the user will set if he wants to delete also the wallpaper or the database entry only\n if (maxDbSize != -1 && getOldWallpapersID().size() > maxDbSize) {\n try (ResultSet rs = db.executeQuery(\"SELECT wp FROM WALLPAPERS ORDER BY date FETCH FIRST 20 PERCENT ROWS ONLY\")) {\n while (!keepWallpapers && rs.next()) {\n Wallpaper wp = (Wallpaper) rs.getObject(\"wp\");\n log.log(Level.FINEST, wp::toString);\n log.log(Level.FINE, () -> \"Cleaning of DB, removing \" + wp.getID());\n\n new File(wp.getPath()).delete();\n }\n db.executeUpdate(\"DELETE FROM WALLPAPERS WHERE id IN (SELECT id FROM WALLPAPERS ORDER BY date fetch FIRST 20 PERCENT rows only)\");\n\n } catch (SQLException throwables) {\n log.log(Level.WARNING, \"Query Error in cleanDB()\");\n log.log(Level.FINEST, throwables.getMessage());\n }\n }\n }", "public void removePassenger() {\n\t\t\n\t\tsynchronized(this) {\n\t\t\tif(currentOccup > 0)\n\t\t\t\tcurrentOccup--;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Elevator \" + elevatorNum + \" total passenger count: \" + currentOccup);\n\t}", "public void removeEvents() throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase(); \n\t\ttry {\n\t\t\tdb.delete(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, null);\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "void removeDeprecatedBookNo(Object oldDeprecatedBookNo);", "@Override\n public void run() {\n addresses.remove(address);\n }", "void removeAirport(Long id);", "@Override\n public void remove() throws IllegalStateException {\n if (lastItemReturned == null) {\n throw new IllegalStateException();\n } else {\n iter.remove();\n lastItemReturned = null;\n }\n }", "@Override\r\n\t\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}", "@Override\r\n\tpublic boolean deleteBooking(Booking_IF bk) {\r\n\t\tPreparedStatement myStatement = null;\r\n\t\tString query = null;\r\n\t\tint count = 0;\r\n\t\ttry{\r\n\t\t\tquery = \"delete from Booking where Shift_ID = ? AND User_ID = ?\";\r\n\t\t\tmyStatement = myCon.prepareStatement(query);\r\n\t\t\tmyStatement.setInt(1, bk.getShiftid());\r\n\t\t\tmyStatement.setInt(2, bk.getUserid());\r\n\t\t\tcount = myStatement.executeUpdate();\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\ttry {\r\n\t\t\t\tif (myStatement != null)\r\n\t\t\t\t\tmyStatement.close();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count!=1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private static void DelRoom (){\n boolean DelRoomLoop = true;\n //loop for delete room process\n while (DelRoomLoop) {\n //checking if there are rooms to delete\n if (HotelRoom.roomList.isEmpty() || HotelRoom.AllRoomsOccupied() == true) {\n System.out.println(\"Apologies, there are no available rooms!\");\n break;\n } \n else {\n System.out.println(\"Here is a list of rooms:\");\n //call the method for showing a list of all rooms\n HotelRoom.DisplayAllRooms();\n System.out.println(\"-----------------------------\");\n System.out.print(\"Room number: \");\n //try/catch for delete room input\n try {\n //get the user's input\n int delRoomNumber = RecInput.nextInt();\n //loop through the room list to find whether the room number matches one of the rooms\n //and delete the one asked by the user\n boolean roomNumberExist = false;\n for (int i = 0; i < HotelRoom.roomList.size(); i++){\n\n if (delRoomNumber == HotelRoom.roomList.get(i).roomNumber && HotelRoom.roomList.get(i).occupied == false){\n roomNumberExist = true;\n //room is deleted\n HotelRoom.roomList.remove(i);\n System.out.println(\"The room number \" + delRoomNumber + \" is deleted\");\n System.out.println(\"-----------------------------\");\n //breaking loop to exit process\n DelRoomLoop = false;\n } \n\n }\n if(roomNumberExist == false) {\n //handling if user inputs incorrect room number\n System.out.println(\"The room number you entered is invalid\");\n System.out.println(\"-----------------------------\");\n }\n }\n catch (Exception InputMismatchException) {\n //handling if user input is not integer\n System.out.println(\"Please enter a number\");\n System.out.println(\"-----------------------------\");\n\n //Cleaning scanner\n RecInput.next();\n }\n }\n }\n }", "private void m50958c() {\n while (!this.f36886a.isEmpty()) {\n C8667b peek = this.f36886a.peek();\n if (peek != null) {\n if (peek.mo54373e() || this.f36886a.size() > 6) {\n AbstractC8508c.m50239c(\"remove Expired task\");\n this.f36886a.remove(peek);\n } else {\n return;\n }\n }\n }\n }", "public void cleanUp() {\n logger.info(\"clean up...\");\n this.sequenceNo = calculateSequenceNumber();\n if (this.prevoteStore != null) {\n this.prevoteStore = this.prevoteStore.stream()\n .filter(i -> i.sequence_no >= this.sequenceNo)\n .collect(Collectors.toCollection(ArrayList::new));\n } else {\n this.prevoteStore = new ArrayList<>();\n }\n }" ]
[ "0.6285461", "0.608813", "0.59318775", "0.58469343", "0.5741416", "0.5690928", "0.5666243", "0.564056", "0.56351286", "0.56290454", "0.56189656", "0.55901253", "0.55860025", "0.558037", "0.55134714", "0.550291", "0.54959536", "0.54915494", "0.54808104", "0.54751956", "0.5470927", "0.54297876", "0.541666", "0.540232", "0.5308167", "0.53077066", "0.5278426", "0.5274436", "0.52586615", "0.5242301", "0.5233389", "0.5231478", "0.52276444", "0.522567", "0.52237594", "0.52177674", "0.52170366", "0.5204387", "0.519482", "0.5185948", "0.51854074", "0.5179158", "0.5177068", "0.51749206", "0.51748955", "0.5173471", "0.5167433", "0.51613265", "0.51601905", "0.5150941", "0.51439404", "0.51367444", "0.51366854", "0.51362705", "0.51350504", "0.51237136", "0.5121649", "0.5120761", "0.5118091", "0.509933", "0.50976497", "0.5095765", "0.5092401", "0.5092401", "0.50915563", "0.50909334", "0.5087221", "0.5086225", "0.5086225", "0.5086225", "0.5079848", "0.50741297", "0.5070108", "0.505005", "0.50434047", "0.50400037", "0.5032666", "0.5031949", "0.50274724", "0.50214577", "0.50209385", "0.50170577", "0.5017025", "0.501495", "0.5007281", "0.4999477", "0.49991718", "0.49991718", "0.49991718", "0.49991718", "0.49991718", "0.49972898", "0.49948776", "0.49924234", "0.49919784", "0.49918988", "0.49905622", "0.49877438", "0.49821487", "0.49778682" ]
0.6855747
0
If internet connection cut maybe wait for 1 minute and try again?
@Override public void onCancelled(FirebaseError firebaseError) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void waitToRetry()\n {\n final int sleepTime = 2000000;\n\n if (keepTrying)\n {\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (Exception error)\n {\n log.error(\"Ignored exception from sleep - probably ok\", error);\n }\n }\n }", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "private boolean isWifiConnected() throws InterruptedException {\n int counter = 10;\n while (--counter > 0) {\n try {\n String mPingSite = String.format(\"http://%s\", DEFAULT_PING_SITE);\n URL url = new URL(mPingSite);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n conn.setReadTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {\n return true;\n }\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n } catch (IOException ex) {\n // Wifi being flaky in the lab, test retries 10 times to connect to google.com\n // as IOException is throws connection isn't made and response stream is null\n // so for retrying purpose, exception hasn't been rethrown\n Log.i(mABvtHelper.TEST_TAG, ex.getMessage());\n }\n }\n return false;\n }", "public void manualConnectionRetry()\r\n {\r\n if ( statusObj.value != STATUS_CANDIDATE_BUSY &&\r\n statusObj.value != STATUS_CANDIDATE_CONNECTION_FAILED &&\r\n statusObj.value != STATUS_CANDIDATE_RANGE_UNAVAILABLE &&\r\n statusObj.value != STATUS_CANDIDATE_BAD &&\r\n statusObj.value != STATUS_CANDIDATE_IGNORED )\r\n {\r\n return;\r\n }\r\n setStatus( STATUS_CANDIDATE_WAITING );\r\n SwarmingManager.getInstance().notifyWaitingWorkers();\r\n }", "@Override\n\t\tprotected Boolean doInBackground(Void... params) {\n\t\t\tboolean result = true;\n\t\t\ttry {\n\t\t\t\tThread.sleep(60000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// We were interrupted\n\t\t\t\tresult = false;\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "private void waitForSuccessfulConnectionToZap() throws Exception {\n int timeoutInMs = CONNECTION_TIMEOUT;\n int connectionTimeoutInMs = timeoutInMs;\n int pollingIntervalInMs = 1000;\n boolean connectionSuccessful = false;\n long startTime = System.currentTimeMillis();\n Socket socket = null;\n do {\n try {\n LogManager.suitLogger.info(\"Attempting to connect to ZAP API on: \" + ZAP_HOSTNAME + \" port: \" +PORT);\n socket = new Socket();\n socket.connect(new InetSocketAddress(ZAP_HOSTNAME, PORT), connectionTimeoutInMs);\n connectionSuccessful = true;\n LogManager.suitLogger.info(\"Connected to ZAP successfully\");\n } catch (SocketTimeoutException ignore) {\n throw new UnicornZapException(\"Unable to connect to ZAP's proxy after \" + timeoutInMs + \" milliseconds.\");\n } catch (IOException ignore) {\n // and keep trying but wait some time first...\n try {\n Thread.sleep(pollingIntervalInMs);\n } catch (InterruptedException e) {\n throw new UnicornZapException(\"The task was interrupted while sleeping between connection polling.\", e);\n }\n\n long ellapsedTime = System.currentTimeMillis() - startTime;\n if (ellapsedTime >= timeoutInMs) {\n throw new UnicornZapException(\"Unable to connect to ZAP's proxy after \" + timeoutInMs + \" milliseconds.\");\n }\n connectionTimeoutInMs = (int) (timeoutInMs - ellapsedTime);\n } finally {\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n } while (!connectionSuccessful);\n }", "private Callable<Boolean> isReachable() {\n return () -> {\n try {\n if (!isOnline()) {\n return false;\n }\n\n URL url = new URL(\"https://api.vk.com\"); //url for ex.\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(2000);\n httpURLConnection.connect();\n\n return true;\n } catch (Exception e) {\n return false;\n }\n };\n }", "@Test\n public void testConnectionNoIdleTimeout() throws Exception {\n long timeoutMillis = TimeUnit.SECONDS.toMillis(CONNECTION_IDLE_TIMEOUT_SECS) + 500;\n URL url = new URL(resolveURI(\"/v1/timeout/\" + timeoutMillis));\n HttpURLConnection urlConnection = openURL(url);\n Assert.assertEquals(200, urlConnection.getResponseCode());\n urlConnection.disconnect();\n }", "private void webDriverTimeout(){\n try {\n Thread.sleep(TIMEOUT_SHORT);\n } catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "@Override\r\n\t\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\t\tLong currenttime = System.currentTimeMillis();\r\n\t\t\t\t\t\t\twhile (!bPullUpStatus) {\r\n\t\t\t\t\t\t\t\tif ((System.currentTimeMillis() - currenttime) > App.WAITFORHTTPTIME+5000) {\r\n\t\t\t\t\t\t\t\t\tbPullUpStatus = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tLoger.i(\"TEST\", \"pullUp置位成功!!\");\r\n\t\t\t\t\t\t\tbPullUpStatus = false;\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}", "public void waitForNotificationOrFail() {\n new PollingCheck(5000) {\n @Override\n protected boolean check() {\n return mContentChanged;\n }\n }.run();\n mHT.quit();\n }", "@Override\n\t\tprotected void onCancelled(String result) {\n\t\t\tsuper.onCancelled(result);\n\t\t\tCrouton.makeText(activity, \"Network connection is slow, Try again\", Style.ALERT).show();\n\t\t}", "@Override\n protected Boolean doInBackground(String... args){\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnected()) {\n try {\n URL url = new URL(\"http://www.google.com\");\n HttpURLConnection urlc = (HttpURLConnection) url.openConnection();\n urlc.setConnectTimeout(3000);\n urlc.connect();\n if (urlc.getResponseCode() == 200) {\n return true;\n }\n } catch (MalformedURLException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n return false;\n\n }", "private boolean timeout() {\n long time = SystemClock.currentThreadTimeMillis();\n while (bluetoothSync.getState() != BluetoothSync.STATE_CONNECTED) {\n if (SystemClock.currentThreadTimeMillis() > time + Constants.Bluetooth.CONNECTION_TIMEOUT) {\n return false;\n }\n }\n return true;\n }", "public void internetConnectionProble()\n\t\t{\n\n\n\t\t}", "private static boolean pingURL(String url, int timeout) {\n try {\n HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();\n connection.setConnectTimeout(timeout);\n connection.setReadTimeout(timeout);\n connection.setRequestMethod(\"HEAD\");\n int responseCode = connection.getResponseCode();\n return (200 <= responseCode && responseCode <= 399);\n } catch (IOException exception) {\n return false;\n }\n }", "public void checkConnection() {\n\t\tif (isOnline()) {\n\t\t\tgetFirsTopRatedMovies();\n\t\t} else {\n\t\t\tprogress.setVisibility(View.GONE);\n\t\t\tlayout_nothing_to_show.setVisibility(View.VISIBLE);\n\t\t\tToast.makeText(this, getString(R.string.no_netowrk), Toast.LENGTH_SHORT).show();\n\t\t}\n\t}", "public void connectionLost(){\n\t\ttry {\n\t\t\tconnect(\"andrewTest\", false, (short) 100);\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\t\t\t\n\t\t\t}\n\t\t\tconnectionLost();\n\t\t\t\n\t\t}\n\t}", "private boolean mustTryConnection(int iteration) {\n\t\t\n\t\t//the goal is to not to retry so often when several attempts have been made\n\t\t//the first 3 attemps, will not retry (give time for the system to startup)\n\t\tif (iteration < ITERATIONS_WITHOUT_RETRIES) {\n\t\t\t//here it will enter with iteration 0..2\n\t\t\treturn false;\n\t\t}\n\t\tif (iteration < ITERATIONS_WITH_NORMAL_RATE) {\n\t\t\t//Here it will enter with iteration 3..40\n //Retry every 2 attempts.\n\t\t\t//in iteration 6, 8, 10, 12, 14\n\t\t\treturn iteration % STEPS_AT_NORMAL_RATE == 0;\n\t\t}\n\t\t//between 15 and 40 attempts, only retry every 10 steps\n\t\tif (iteration < ITERATIONS_WITH_MEDIUM_RATE) {\n\t\t\t//here it will enter with iteration 10, 20, 30\n\t\t\treturn iteration % STEPS_AT_MEDIUM_RATE == 0;\n\t\t}\n\t\t\n\t\t//after 40 attempts, retry every 100 * MIN_INTERVAL\n\t\treturn iteration % STEPS_AT_SLOW_RATE == 0;\n\t}", "public void getUrlWaitUntil(WebDriver driver, int seconds, String newURL) throws NumberFormatException, IOException {\n\t\t\t\t\tfinal String previousURL = driver.getCurrentUrl();\n\t\t\t\t\tfinal String URL = newURL.toLowerCase();\n\t\t\t\t\t\n\t\t\t\t// First (initial) connection:\n\t\t\t\t\tint i = 1;\n\t\t\t\t\tint s = 1;\n\t\t\t\t // driver.get(URL);\n\t\t\t\t // waitUntilUrl(driver, seconds, previousURL);\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\t\n\t\t\t\t // \"Try Again\" connection manager, if required (up to 10 times):\t\t\t\t\t\n\t\t\t\t\tString xpathTryAgainButton = \"//*[contains(@id,'error')][@id='errorTryAgain'][text()='Try Again']\";\t\t\t\t\t\n\t\t\t\t\t// List<WebElement> list; int s = list.size(); int s = driver.findElements(By.xpath(xpathTryAgainButton)).size();\t\t\t\t\t\n\t\t\t\t\twhile ((s > 0) && (i <= 10)) {\n\t\t\t\t\t\t driver.get(URL);\n\t\t\t\t\t\t waitUntilUrl(driver, seconds, previousURL);\t\t\t\t\t \n\t\t\t\t\t\t s = driver.findElements(By.xpath(xpathTryAgainButton)).size();\n\t\t\t\t\t\t if (s > 0) { i = i + 1; }\n\t\t\t\t\t}\t\n\t\t\t\t\tif (i > 1) {\n\t\t\t\t\t fileWriterPrinter(\"Try Again attempts: \" + i);\n\t\t\t\t fileWriterPrinter(\"Try Again time spent: \" + waitTimeConroller(start, seconds, newURL) + \" sec\\n\");\n\t\t\t\t\t }\t\n\t\t\t\t}", "public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }", "@Override\r\n\t\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\t\tLong currenttime = System.currentTimeMillis();\r\n\t\t\t\t\t\t\twhile (!bPullUpStatus) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif ((System.currentTimeMillis() - currenttime) > App.WAITFORHTTPTIME) {\r\n\t\t\t\t\t\t\t\t\tbPullUpStatus = true;\r\n\t\t\t\t\t\t\t\t}else if(App.getNewsRecviceStatus(NewsOperation.this)==false){\r\n\t\t\t\t\t\t\t\t\tbPullUpStatus = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tLoger.i(\"TEST\", \"pullUp置位成功!!\");\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\t\tLong currenttime = System.currentTimeMillis();\r\n\t\t\t\t\t\t\twhile (!bPullUpStatus) {\r\n\t\t\t\t\t\t\t\tif ((System.currentTimeMillis() - currenttime) > App.WAITFORHTTPTIME) {\r\n\t\t\t\t\t\t\t\t\tbPullUpStatus = true;\r\n\t\t\t\t\t\t\t\t}else if(App.getNewsRecviceStatus(NewsOperation.this)==false){\r\n\t\t\t\t\t\t\t\t\tbPullUpStatus = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tLoger.i(\"TEST\", \"pullUp置位成功!!\");\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}", "private static void checkTimeoutAndRetry() {\n while (true) {\n for (ServerAckWindow window : windowsMap.values()) {\n window.responseCollectorMap.entrySet().stream()\n .filter(entry -> window.timeout(entry.getValue()))\n .forEach(entry -> window.retry(entry.getKey(), entry.getValue()));\n }\n }\n }", "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "private void retryOnline() {\n setContentView(R.layout.activity_retry);\n Button retryButton = this.findViewById(R.id.retryButton);\n\n retryButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (isOnline()) {\n recreate();\n }\n }\n });\n }", "public static void isNetworkAvailable(final Handler handler, final int timeout) {\n\n new Thread() {\n\n private boolean responded = false;\n\n @Override\n public void run() {\n\n // set 'responded' to TRUE if is able to connect with google mobile (responds fast)\n\n new Thread() {\n\n @Override\n public void run() {\n HttpGet requestForTest = new HttpGet(\"http://m.google.com\");\n try {\n new DefaultHttpClient().execute(requestForTest); // can last...\n responded = true;\n } catch (Exception e) {}\n }\n\n }.start();\n\n try {\n int waited = 0;\n while(!responded && (waited < timeout)) {\n sleep(100);\n if(!responded ) { \n waited += 100;\n }\n }\n } \n catch(InterruptedException e) {} // do nothing \n finally { \n if (!responded) { handler.sendEmptyMessage(0); } \n else { handler.sendEmptyMessage(1); }\n }\n\n }\n\n }.start();\n\n}", "@Override\n public boolean checkSensors() {\n HttpURLConnection conn;\n int tries = -1;\n int response = -1;\n URL url = null;\n try {\n do {\n tries++;\n url = new URL( mHost + \"/timeout/checkSensor\" ); // TODO wrong place for\n // appspecific prefix\n conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout( 30000 /* milliseconds */);\n conn.setConnectTimeout( 30000 /* milliseconds */);\n conn.setRequestMethod( \"GET\" );\n conn.setDoInput( true );\n conn.setRequestProperty( \"Cookie\", \"X-SESSION_ID=\" + getXSession() );\n response = conn.getResponseCode();\n Log.d( TAG, \"The response is: \" + response );\n if ( response == 403 ) {\n relogin();\n } else if ( response == 200 ) {\n InputStreamReader reader = new InputStreamReader(\n conn.getInputStream() );\n CharBuffer buffer = CharBuffer.allocate( 256 );\n char[] cbuf = new char[ 256 ];\n StringBuffer body = new StringBuffer( 1024 );\n int read = -1;\n while ( (read = reader.read( buffer )) >= 0 ) {\n buffer.rewind();\n buffer.get( cbuf, 0, read );\n body.append( cbuf, 0, read );\n // body.append( buffer.subSequence( 0, read ) );\n buffer.clear();\n }\n if ( !body.toString().trim().toLowerCase().equals( \"ok\" ) ) {\n Log.e( TAG, \"Response from \" + url\n + \" was 200 but content was not ok\" );\n return false;\n }\n }\n } while ( response == 403 && tries < 3 );\n return true;\n } catch ( IOException e ) {\n Log.e( TAG, \"Something wicked happened while GETting to \" + url );\n e.printStackTrace();\n return false;\n }\n }", "protected void reconnect()\n {\n if (isReconnect())\n {\n if (!isLooping)\n {\n isLooping = true;\n executor.execute(new Runnable()\n {\n @Override\n public void run()\n {\n Log.e(\"Dudu_SDK\", sleepTime + \"\");\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n connectMS(msServer.getIp(), msServer.getPort());\n }\n });\n }\n }\n else\n {\n Log.e(\"Dudu_SDK\", \"不自动重连\");\n }\n }", "@Override\r\n\t\t\t\t\tpublic void onConnectTimeoutException(String msg) {\n\t\t\t\t\t\tUToast.showConnectTimeoutToast(getActivity());\r\n\t\t\t\t\t\tstopLoadMoreAndRefresh();\r\n\t\t\t\t\t}", "boolean isAvailable( long millis );", "private void checkInternetConnection() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}", "void onInternetConnectionLost();", "private Document getPageWithRetries(URL url) throws IOException {\n Document doc;\n int retries = 3;\n while (true) {\n sendUpdate(STATUS.LOADING_RESOURCE, url.toExternalForm());\n LOGGER.info(\"Retrieving \" + url);\n doc = Http.url(url)\n .referrer(this.url)\n .cookies(cookies)\n .get();\n if (doc.toString().contains(\"IP address will be automatically banned\")) {\n if (retries == 0) {\n throw new IOException(\"Hit rate limit and maximum number of retries, giving up\");\n }\n LOGGER.warn(\"Hit rate limit while loading \" + url + \", sleeping for \" + IP_BLOCK_SLEEP_TIME + \"ms, \" + retries + \" retries remaining\");\n retries--;\n try {\n Thread.sleep(IP_BLOCK_SLEEP_TIME);\n } catch (InterruptedException e) {\n throw new IOException(\"Interrupted while waiting for rate limit to subside\");\n }\n }\n else {\n return doc;\n }\n }\n }", "@Override\r\n protected Object doInBackground() throws Exception {\n try {\r\n Thread.sleep(5500);\r\n\r\n } catch (Exception e) {}\r\n return null;\r\n }", "@Override\n\t\tprotected void onCancelled(String result) {\n\t\t\tsuper.onCancelled(result);\n\t\t\tif ((pDialog != null) && pDialog.isShowing()) { \n\t\t\t\tpDialog.dismiss();\n\t\t\t}\n\t\t\tCrouton.makeText(activity, \"Network connection is slow, Try again\", Style.ALERT).show();\n\t\t}", "@Override\n\t\tprotected void onCancelled(String result) {\n\t\t\tsuper.onCancelled(result);\n\t\t\tif ((pDialog != null) && pDialog.isShowing()) { \n\t\t\t\tpDialog.dismiss();\n\t\t\t}\n\t\t\tCrouton.makeText(activity, \"Network connection is slow, Try again\", Style.ALERT).show();\n\t\t}", "@Override\n\t\t\tprotected Boolean doInBackground(Void... params) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(200);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "private void countDownToLogin() {\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (isOnline()) {\n if (sharedPreferences.getBoolean(Constant.AUTO_LOGIN, false)) {\n String userEmail = sharedPreferences.getString(Constant.USER_EMAIL, \"\");\n String userPw = sharedPreferences.getString(Constant.USER_PW, \"\");\n if (!userEmail.equals(\"\") && !userPw.equals(\"\")) {\n new LoginPresenter(SplashActivity.this).login(userEmail, userPw);\n } else {\n onLoginFail(null);\n }\n } else {\n onLoginFail(null);\n }\n } else {\n// startActivity(new Intent(context, DisconnectActivity.class));\n// finish();\n //Go to DisconnectActivity\n }\n\n }\n }, SPLASH_TIME);\n }", "public static boolean verifyURL(URL url, long timeout) throws Exception {\n boolean available = false;\n long time = 0;\n while (!available && time < timeout) {\n HttpURLConnection.setFollowRedirects(false);\n HttpURLConnection huc = (HttpURLConnection) url.openConnection();\n available = (huc.getResponseCode() == HttpURLConnection.HTTP_OK);\n time += 1000;\n Thread.sleep(1000);\n }\n return available;\n }", "public boolean isConnectable(){\n\t\tif((System.currentTimeMillis() - this.lastTry) > retryBackoff){\n\t\t\tthis.lastTry = System.currentTimeMillis();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void waitForServerReady() throws IOException, InterruptedException {\n\t\tfinal var httpget = new HttpGet(getPingUri());\n\t\tvar counter = 0;\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tif (HttpStatus.SC_OK == httpclient.execute(httpget, HttpResponse::getCode)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcheckRetries(counter);\n\t\t\t} catch (final HttpHostConnectException ex) { // NOSONAR - Wait, and check later\n\t\t\t\tlog.info(\"Check failed, retrying...\");\n\t\t\t\tcheckRetries(counter);\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t}", "private boolean checkInternetConnection() {\n\n ConnectivityManager connectivityManager = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return (networkInfo != null && networkInfo.isConnected());\n\n }", "public boolean isInternetReachable() {\n \t\ttry {\n \t\t\t// URL to a source\n \t\t\tURL url = new URL(\"http://www.betfair.com\");\n \t\t\t// Open a connection\n \t\t\tHttpURLConnection urlConnect = (HttpURLConnection) url\n \t\t\t\t\t.openConnection();\n \t\t\t// Retrieving data from the source - if there is no connection,\n \t\t\t// throws and exception\n \t\t\t@SuppressWarnings(\"unused\")\n \t\t\tObject objData = urlConnect.getContent();\n \t\t} catch (Exception e) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}", "public void blockUntilUp() {\n while (server == null || !server.isServing()) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // ignore\n }\n }\n }", "private boolean checkInternetConnection() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }", "private void retry() {\n if (catalog == null) {\n if (--retries < 0) {\n inactive = true;\n pendingRequests.clear();\n log.error(\"Maximum retries exceeded while attempting to load catalog for endpoint \" + discoveryEndpoint\n + \".\\nThis service will be unavailabe.\");\n } else {\n try {\n sleep(RETRY_INTERVAL * 1000);\n _loadCatalog();\n } catch (InterruptedException e) {\n log.warn(\"Thread for loading CDS Hooks catalog for \" + discoveryEndpoint + \"has been interrupted\"\n + \".\\nThis service will be unavailable.\");\n }\n }\n }\n }", "void timedOut();", "private void sleepNoNetwork(int maxRetryCount, int retryTimeout, int k) {\n Long interval = (long) retryTimeout * 1000;\n AnaplanJdbcRetryer anaplanJdbcRetryer = new AnaplanJdbcRetryer((long) (retryTimeout * 1000),\n (long) Constants.MAX_RETRY_TIMEOUT_SECS * 1000,\n FeignApiRetryer.DEFAULT_BACKOFF_MULTIPLIER);\n if (k > 1) {\n interval = anaplanJdbcRetryer.nextMaxInterval(k - 1);\n }\n if (k < maxRetryCount) {\n LOG.info(\"Attempt {} : Could not connect to the database! Will retry in {} seconds \", k, interval / 1000);\n try {\n Thread.sleep(interval);\n } catch (InterruptedException e1) {\n // we still want to retry, even though sleep was interrupted\n LOG.debug(\"Sleep was interrupted.\" + e1);\n }\n }\n if (k == maxRetryCount) {\n LOG.info(\"Attempt {} : Could not connect to the database! Max connection attempts reached..\", k);\n }\n }", "protected synchronized boolean checkConnectivity() {\n return this.connect();\n }", "public static void waitForURL (String url, int timer)\n\t{\n\t\tWebDriver driver = getDriver ();\n\t\tWebDriverWait wait = new WebDriverWait (driver, timer);\n\t\twait.until (ExpectedConditions.refreshed (ExpectedConditions.urlContains (url)));\n\t}", "private boolean checkInternetConnection() {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return networkInfo != null && networkInfo.isConnectedOrConnecting();\n }", "private void travelToAirport()\n {\n try\n { sleep ((long) (1 + 30000 * Math.random ()));\n }\n catch (InterruptedException e) {}\n }", "public void attemptReconnect() {\n\t\tConnection.this.reliabilityManager.attemptConnect();\n\t}", "public boolean retry() {\n return tries++ < MAX_TRY;\n }", "protected void loadURL(String thisURL) {\n\t\tgetDriver().get(thisURL);\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (Exception e) {\n\t\t\t// nothing\n\t\t}\n\t}", "@Override\n public void doWhenNetworkCame() {\n doLogin();\n }", "@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(3000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "private void restartPullingTask() {\n try {\n Thread.sleep(15000);\n ensureOpenSubscription.apply();\n } catch (Exception ex) {\n if (ex instanceof SubscriptionInUseException || ex instanceof SubscriptionDoesNotExistExeption) {\n // another client has connected to the subscription or it has been deleted meanwhile - we cannot open it so we need to finish\n onCompletedNotification();\n return;\n }\n\n restartPullingTask();\n return;\n }\n//TODO: startPullingTask = startPullingDocs();\n startPullingDocs(); //TODO: delete me!\n }", "public void run() {\n while (true) {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (connectionsPool < 10) {\n NotificationService.getInstance().sendEmail(\"[email protected]\", \"BaseStation \" + id + \" is really busy\", \"We're running out of free connection on base station!\");\n } else {\n System.out.println(\"connection pool ok\");\n }\n }\n }", "protected boolean checkInternetConnection() {\n if (!Utils.hasInternetConnection(getApplicationContext())) {\n final AlertDialog.Builder adBuilder = createAlertDialog(R.string.dialog_title_no_internet, R.string.dialog_message_no_internet);\n adBuilder.setPositiveButton(R.string.dialog_btn_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n adBuilder.show();\n return false;\n }\n\n return true;\n }", "@Override\n public void run() {\n int i = SCAN_NUM;\n\t\t\t\tMessage msg1 = new Message();\n\t\t\t\tmsg1.what = WIFI_REFRESH;\n\t\t\t\tmwifiHandler.sendMessage(msg1);\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n refreshWifi();\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = WIFI_REFRESH_FINISH;\n\t\t\t\tmwifiHandler.sendMessage(msg);\n }", "private boolean testConn(String URL)\n {\n\n if(TestHTTP.test(URL))\n \treturn true;\n else \n {\n \tlogfile.severe(URL+\" DOWN\");\n \treturn false;\n }\n }", "public Boolean isOnlineNet() {\n\n try {\n Process p = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.es\");\n\n int val = p.waitFor();\n boolean reachable = (val == 0);\n return reachable;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }", "@Override\n public void clientConnectionTimedOut(PiClient piClient) {\n stopLoadingScreens();\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n currentDialog = new AlertDialog.Builder(activity)\n .setMessage(\"The connection to the host timed out. Try again?\")\n .setPositiveButton(\"Retry\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n connectToServer();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Do nothing\n stopLoadingScreens();\n }\n }).setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n stopLoadingScreens();\n }\n }).create();\n currentDialog.show();\n }\n });\n }", "@Override\n public void run() {\n try {\n ServiceInfo serviceInfo = this.getServiceStatus(url);\n this.saveServiceStatusInfo(serviceInfo);\n if(serviceInfo.getResponseTimeInMillis() > 200)\n log.warn(\"The service is taking too long to respond\");\n\n if(serviceInfo.getStatusCode()!=200)\n log.warn(\"The service did not respond OK\");\n\n\n } catch (IOException e) {\n log.error(\"Error while accessing the service\" ,e);\n }\n }", "public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "private boolean isKonekInternet()\n\t{\n\t\tConnectivityManager connectivityManager = (ConnectivityManager) this\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (connectivityManager != null)\n\t\t{\n\t\t\tNetworkInfo[] info = connectivityManager.getAllNetworkInfo();\n\t\t\tif (info != null)\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < info.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}", "private void requestThread() {\n while (true) {\n long elapsedMillis = System.currentTimeMillis() - lastHeartbeatTime;\n long remainingMillis = heartbeatMillis - elapsedMillis;\n if (remainingMillis <= 0) {\n sendHeartbeats();\n } else {\n try {\n Thread.sleep(Math.max(remainingMillis, 3));\n } catch (InterruptedException e) {\n }\n }\n }\n }", "public boolean hasActiveInternetConnection()\n {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }", "public boolean isRetry();", "private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }", "@Override\r\n\tpublic void run() {\n\t\tresult = InternetConn.pushURL(URL);\r\n\t\tif(result.equals(\"-1\")){\r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.obj = \"网络连接错误\";\r\n\t\t\tmsg.what = -1;\r\n\t\t\tmHandler.sendMessage(msg);\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.obj = result;\r\n\t\t\tmsg.what = 1;\r\n\t\t\tmHandler.sendMessage(msg);\r\n\t\t}\r\n\t}", "protected int maxTimeout() { return 15*1000*1000; }", "protected int minTimeout() { return 500; }", "@Override\n\t\tprotected void onCancelled(String result) {\n\t\t\tsuper.onCancelled(result);\n\t\t\tif ((pDialog != null) && pDialog.isShowing()) { \n\t\t\t\tpDialog.dismiss();\n\t\t\t}\n\t\t\tCrouton.makeText(activity, \"Network connection is slow, Try again\", Style.ALERT).show();\n\t\t\tcheckEmail.setChecked(!checkEmail.isChecked());\n\t\t}", "boolean allowRetry(int retry, long startTimeOfExecution);", "public final void checkNetworkConnection() {\n if (InternetUtil.INSTANCE.isInternetOn()) {\n login();\n return;\n }\n String string = getResources().getString(C2723R.string.bdt_lbl_msg_prd_network_error);\n Intrinsics.checkExpressionValueIsNotNull(string, \"resources.getString(R.st…bl_msg_prd_network_error)\");\n Context_ExtensionKt.showToast(this, string);\n InternetUtil.INSTANCE.observe(this, new OldBDTLoginActivity$checkNetworkConnection$1(this));\n }", "private void startPinging() {\n Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() {\n @Override\n public void run() {\n HashSet<Connection> connectionsSet = new HashSet<>(connections); //Create new hashset of connections\n for (Connection connection : connectionsSet) { //Loop thru connections\n boolean stillInConnections = false;\n synchronized (connections) { //Check if connection still in the array\n if (connections.contains(connection)) {\n stillInConnections = true;\n }\n }\n if (stillInConnections) { //If still in array\n try { //Try to ping\n connection.isValid(5);\n } catch (SQLException e) { //If not valid anymore\n synchronized (connections) { //Remove from array\n connections.remove(connection);\n }\n closeConnection(connection); //Close the connection\n }\n }\n }\n }\n }, 17000, 17000);\n }", "public void crawlDelay()\n\t{\n//\t\tint delay = robot.getCrawlDelay(best_match);\n//\t\tif (delay!=-1)\n//\t\t{\n//\t\t\ttry \n//\t\t\t{\n//\t\t\t\tTimeUnit.SECONDS.sleep(robot.getCrawlDelay(best_match));\n//\t\t\t} \n//\t\t\tcatch (InterruptedException e) \n//\t\t\t{\n//\t\t\t\treturn;\n//\t\t\t}\n//\t\t}\n\t}", "public void run() {\r\n removeIPBlockTimeout(link);\r\n removeTempUnavailTimeout(link);\r\n link.reset();\r\n }", "private void waitBeforeNextConnectAttempt(final int attempts) {\n\t\tfinal String METHOD = \"waitBeforeNextConnectAttempt\";\n\t\t// Log when throttle boundaries are reached\n\t\tif (attempts == THROTTLE_3) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, String.valueOf(attempts) + \n\t\t\t\t\t\" consecutive failed attempts to connect. Retry delay increased to \" + String.valueOf(RATE_3) + \"ms\");\n\t\t}\n\t\telse if (attempts == THROTTLE_2) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, String.valueOf(attempts) + \n\t\t\t\t\t\" consecutive failed attempts to connect. Retry delay increased to \" + String.valueOf(RATE_2) + \"ms\");\n\t\t}\n\t\telse if (attempts == THROTTLE_1) {\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, String.valueOf(attempts) + \n\t\t\t\t\t\" consecutive failed attempts to connect. Retry delay set to \" + String.valueOf(RATE_1) + \"ms\");\n\t\t}\n\n\t\ttry {\n\t\t\tlong delay = RATE_0;\n\t\t\tif (attempts >= THROTTLE_3) {\n\t\t\t\tdelay = RATE_3;\n\t\t\t} else if (attempts >= THROTTLE_2) {\n\t\t\t\tdelay = RATE_2;\n\t\t\t} else if (attempts >= THROTTLE_1) {\n\t\t\t\tdelay = RATE_1;\n\t\t\t}\n\t\t\tThread.sleep(delay);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }", "private boolean checkNetworkState() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivityManager.getActiveNetworkInfo() == null || !connectivityManager.getActiveNetworkInfo().isConnected()) {\n showNetworkAlert();\n return false;\n }\n\n else return true;\n }", "private void checkLastLifeSign() {\n // > 0 means that client has already connected and meanwhile sent\n // one or more messages and the lifesign system is activated\n if (nextLifeSignAwaited > 0 && nextLifeSignAwaited < System.currentTimeMillis()) {\n // lifesign not in time\n System.out.println(\"Kein lifesign erhalten\");\n lifeSignSucceeded = true;\n stopped = true;\n try {\n socketLayer.close();\n } catch (Exception ex) {\n // nothing to do\n }\n }\n }", "private void waitForAvailable() throws IOException, ReadTimeoutException {\n\t\tlong expireTime = System.currentTimeMillis() + READ_TIMEOUT;\n\t\twhile (inputStream.available() < 1) {\n\t\t\tif (System.currentTimeMillis() > expireTime) {\n\t\t\t\tthrow new ReadTimeoutException(\"Read Timed Out.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(SLEEP_TIME);\n\t\t\t} catch (InterruptedException ie) {\n\t\t\t}\n\t\t}\n\t}", "public boolean IsReachable(Context context) {\n final ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n final NetworkInfo netInfo = connMgr.getActiveNetworkInfo();\n boolean isReachable = false;\n\n if (netInfo != null && netInfo.isConnected()) {\n // Some sort of connection is open, check if server is reachable\n try {\n URL url = new URL(\"http://\"+ipAddress);\n HttpURLConnection urlc = (HttpURLConnection) url.openConnection();\n urlc.setRequestProperty(\"User-Agent\", \"Android Application\");\n urlc.setRequestProperty(\"Connection\", \"close\");\n urlc.setConnectTimeout(10 * 2000);\n urlc.connect();\n isReachable = (urlc.getResponseCode() == 200);\n } catch (IOException e) {\n //Log.e(TAG, e.getMessage());\n }\n }\n\n return isReachable;\n }", "private void checkTimeout() {\n val timeout = config.getInt(\"timeout\");\n\n checkArgument(timeout >= 1000, \"timeout is less than 1000!\");\n }", "@Override\n\t\tpublic boolean isRetry() { return true; }", "public boolean shouldRetryOnTimeout() {\r\n return configuration.shouldRetryOnTimeout();\r\n }", "public boolean checkTimeout(){\n\t\tif((System.currentTimeMillis()-this.activeTime.getTime())/1000 >= this.expire){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void connectGoogleApiAgain(){\n if (!mGoogleApiClient.isConnected()) {\n ConnectionResult connectionResult =\n mGoogleApiClient.blockingConnect(30, TimeUnit.SECONDS);\n\n if (!connectionResult.isSuccess()) {\n Log.e(TAG, \"DataLayerListenerService failed to connect to GoogleApiClient, \"\n + \"error code: \" + connectionResult.getErrorCode());\n }\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }", "public static void setCallback(final WaitForInternetCallback callback) { \n\t\tfinal ConnectivityManager connMan = (ConnectivityManager) callback.mActivity.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tfinal AtomicBoolean isConnected = new AtomicBoolean(connMan.getActiveNetworkInfo() != null && connMan.getActiveNetworkInfo().isConnected());\n\t\tif (isConnected.get()) {\n\t\t\tcallback.onConnectionSuccess();\n\t\t\treturn;\n\t\t}\n\t \n\t\tfinal AtomicBoolean isRetrying = new AtomicBoolean(true);\n\n\t\t/* dialog */\n\t\tfinal AlertDialog.Builder connDialog = new AlertDialog.Builder(callback.mActivity);\n\t\tconnDialog.setTitle(R.string.dialogWaitForInternetTitle);\n\t\tconnDialog.setMessage(R.string.dialogWaitForInternetMessage);\n\t\tconnDialog.setPositiveButton(R.string.dialogWaitForInternetBtnRetry, new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialogInterface, int i) {\n\t\t\t\tsynchronized (isRetrying) {\n\t\t\t\t\tisRetrying.notify();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tconnDialog.setNegativeButton(R.string.dialogWaitForInternetBtnAbort, new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialogInterface, int i) {\n\t\t\t\tsynchronized (isRetrying) {\n\t\t\t\t\tisRetrying.set(false);\n\t\t\t\t\tisRetrying.notify();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\t\t\t\twhile (!isConnected.get() && isRetrying.get()) {\n\t\t\t\t\tcallback.mActivity.runOnUiThread(new Thread() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tconnDialog.show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tsynchronized (isRetrying) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tisRetrying.wait();\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t//Log.w(\"WaitForInternet\", \"Error waiting for retry lock\", e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tisConnected.set( (connMan.getActiveNetworkInfo() != null && connMan.getActiveNetworkInfo().isConnected()) );\n\t\t\t\t}\n\t\t\t\tif (isConnected.get()) {\n\t\t\t\t\tcallback.onConnectionSuccess();\n\t\t\t\t} else {\n\t\t\t\t\tcallback.onConnectionFailure();\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "void doRetry();", "@Override\n\t\tpublic boolean isRetry() { return false; }", "private long getWaitTime() {\n long retVal = 1;\n long difference = System.currentTimeMillis() - myLastRefreshTime;\n if (difference < 75) {\n retVal = 75 - difference;\n }\n return (retVal);\n }", "private void checkWifi() {\n\t\tConnectivityManager manger = (ConnectivityManager) context\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo info = manger.getActiveNetworkInfo();\n\t\tboolean flag = (info != null && info.isConnected());\n\t\tif (!flag) {\n\t\t\tToast.makeText(context, R.string.communication, Toast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t\t\tnew Handler().postDelayed(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcheckWifi();\n\t\t\t\t}\n\t\t\t}, 4000);\n\t\t} else {\n\t\t\tRegisterActivity.REGISTER_FLAG = true;\n\t\t}\n\t}", "boolean isNetworkAvailable();" ]
[ "0.65328443", "0.6393403", "0.63688594", "0.62880915", "0.62823236", "0.62001324", "0.61616397", "0.61360353", "0.60734135", "0.606193", "0.60566145", "0.6051844", "0.60407114", "0.5981702", "0.5974311", "0.59466934", "0.5907925", "0.588338", "0.5882677", "0.5859758", "0.58594", "0.5854705", "0.58325475", "0.5831402", "0.58217555", "0.58202904", "0.57699686", "0.5766895", "0.5762571", "0.57561857", "0.57379925", "0.5735265", "0.57275116", "0.5708387", "0.57047176", "0.5699688", "0.5699688", "0.56632173", "0.5661572", "0.5655835", "0.565547", "0.565054", "0.5628872", "0.5619899", "0.56146735", "0.5614615", "0.56142014", "0.5604756", "0.5601275", "0.5597596", "0.55811656", "0.5572909", "0.5546002", "0.55380166", "0.55327696", "0.5529454", "0.55290115", "0.5527376", "0.5525919", "0.552444", "0.55119854", "0.55069965", "0.55042017", "0.5502648", "0.5500448", "0.54970556", "0.5495491", "0.54927474", "0.5485926", "0.54770535", "0.54760146", "0.5469546", "0.5465819", "0.5457668", "0.5452343", "0.5440351", "0.5434341", "0.54284173", "0.5428105", "0.5413162", "0.5412995", "0.54052", "0.54048836", "0.54047203", "0.54047203", "0.5404277", "0.5400933", "0.540091", "0.5385066", "0.53819495", "0.53806925", "0.5376539", "0.5372339", "0.5371478", "0.5367772", "0.5366562", "0.5366049", "0.5365741", "0.53616", "0.5354293", "0.5351782" ]
0.0
-1
Adds a booking to the database
public static void addBooking(BookingImpl b, String status){ Firebase bRefChild; if(!status.equals("new")){ //Dispatched Booking //Removes from Awaiting_Dispatch and puts in Dispatched bRefChild = dRef.child(status); bRef.child(b.getBookingNumber()+"").removeValue(); } else { bRefChild = bRef.child(b.getBookingNumber() + ""); } bRefChild.child("pickup").setValue(b.getPickUpAddress());// bRefChild.child("dropoff").setValue(b.getDropOffAddress());// bRefChild.child("name").setValue(b.getClientName());// bRefChild.child("time").setValue(b.getTime().toString()); bRefChild.child("comment").setValue(b.getComments());// bRefChild.child("tel").setValue(b.getClientTel());// bRefChild.child("email").setValue(b.getClientEmail());// bRefChild.child("booking_number").setValue(b.getBookingNumber());// bRefChild.child("account").setValue(Cash.getInstance().getId()); bRefChild.child("vehicle_type").setValue(b.getVehicleType()); bRefChild.child("no_passengers").setValue(b.getNoPassengers()); bRefChild.child("date").setValue(b.getDate()); try { bRefChild.child("time").setValue(new SimpleDateFormat("HH:mm").format(b.getTime())); } catch (IllegalArgumentException e){ // Always throws this exception - unsure why as it saves correctly. // Do nothing as it still writes to database as expected // Maybe need to look at different formats for time? } bRefChild.child("price").setValue(b.getPrice()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertBooking(Booking booking) throws SQLException, Exception;", "public void addBooking(Bookings b) {\n IController<Bookings> ic = new Controller<>();\n\n // Check whether the booking conflicts with another booking.\n for (Bookings booking : ic.readAll(Bookings.class)) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgumentException(\"That booking conflicts with another booking.\");\n }\n }\n\n Modules relatedModule = b.getModule();\n\n // Check whether the room is available at the given time.\n if (!b.getRooms().isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"That room is unavailable at this time.\");\n }\n // Check whether the students are available at that time.\n for (Students student : relatedModule.getStudents()) {\n if (!student.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A student is unavailable at this time.\");\n }\n }\n // Check whether the staff members are available at that time.\n for (Staff staff : relatedModule.getStaff()) {\n if (!staff.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A staff member is unavailable at this time.\");\n }\n }\n\n // Put the booking into the database.\n ic.create(b);\n System.out.println(b.confirmation() + \"\\n\");\n }", "public void addBooking(Booking b)\r\n {\r\n bookings.add(b);\r\n }", "public static void AddBooking(Booking booking){\n \n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM booking\")){\n \n resultSet.moveToInsertRow();\n resultSet.updateInt(\"BookingNumber\", booking.getBookingNumber());\n resultSet.updateString(\"FlightNumber\", booking.getFlightNumber());\n resultSet.updateDouble(\"Price\", booking.getPrice());\n resultSet.updateString(\"CabinClass\", booking.getCabinClass());\n resultSet.updateInt(\"Quantity\", booking.getQuantity());\n resultSet.updateInt(\"Insurance\", booking.getInsurance());\n resultSet.insertRow();\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n \n \n }", "public Booking saveBooking(Booking booking);", "public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }", "Booking createBooking(Booking newBooking) throws Exception;", "@Override\r\n\tpublic boolean createBooking(Booking_IF bk) {\r\n\t\tPreparedStatement myStatement = null;\r\n\t\tString query = null;\r\n\t\tint count = 0;\r\n\t\ttry{\r\n\t\t\tquery = \"insert into Booking values(?,?);\";\r\n\t\t\tmyStatement = myCon.prepareStatement(query);\r\n\t\t\tmyStatement.setInt(2, bk.getUserid());\r\n\t\t\tmyStatement.setInt(1, bk.getShiftid());\r\n\t\t\tcount = myStatement.executeUpdate();\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\ttry {\r\n\t\t\t\tif (myStatement != null)\r\n\t\t\t\t\tmyStatement.close();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count!=1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "@PostMapping(\"/bookings\")\n @ResponseStatus(HttpStatus.CREATED)\n public Booking addBooking(@RequestBody Booking booking){\n bookingClient.addBooking(booking);\n return booking;\n }", "public Boolean addBooking(Booking aBooking) {\r\n return this.bookings.add(aBooking);\r\n }", "public void addNewPassenger() throws SQLException {\n\t\tScanner input = new Scanner(System.in);\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = connUtil.getConnection();\n\t\t\t// call needed DAOs here\n\t\t\tPassengerDAO pdao = new PassengerDAO(conn);\n\t\t\tFlightDAO fdao = new FlightDAO(conn);\n\t\t\tRouteDAO rdao = new RouteDAO(conn);\n\t\t\tAirportDAO apodao = new AirportDAO(conn);\n\t\t\tAirplaneDAO apldao = new AirplaneDAO(conn);\n\n\t\t\tPassenger passenger = new Passenger();\n\t\t\tpassenger.setId(pdao.nextAvailableId());\n\t\t\tpassenger.setBookingId(1);\n\n\t\t\t// Sets passenger name\n\t\t\tSystem.out.println(\"Enter the passenger given name\");\n\t\t\tpassenger.setGivenName(input.nextLine());\n\t\t\tSystem.out.println(\"Enter the passenger family name\");\n\t\t\tpassenger.setFamilyName(input.nextLine());\n\n\t\t\t// Sets birthday\n\t\t\tSystem.out.println(\"Enter DOB (yyyy-mm-dd)\");\n\t\t\tDate date = Date.valueOf(input.nextLine());\n\t\t\tpassenger.setDob(date);\n\n\t\t\t// Sets gender\n\t\t\tSystem.out.println(\"Enter gender (male/female/other)\");\n\t\t\tpassenger.setGender(input.nextLine());\n\n\t\t\t// Sets address\n\t\t\tSystem.out.println(\"Enter the address of the passenger\");\n\t\t\tpassenger.setAddress(input.nextLine());\n\n\t\t\t// Adds passenger to passenger table\n\t\t\tpdao.addPassenger(passenger);\n\n\t\t\tconn.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tconn.rollback();\n\t\t} finally {\n\t\t\tconn.close();\n\t\t}\n\t}", "public void registerNewBooking(Booking b) {\n if (!newBooking.contains(b)\n && !modifiedBooking.contains(b)) {\n newBooking.add(b);\n }\n }", "public Bookings saveBookingDetails(Bookings bookings) ;", "@Override\n\tpublic void insertBookData(BookingBus b) {\n\t\tuserdao.insertBookData(b);\n\t}", "public Event createBooking(RequestContext context) {\n\tHotel hotel = (Hotel) context.getFlowScope().get(\"hotel\");\n\tUser user = (User) context.getConversationScope().get(\"user\");\n\tBooking booking = new Booking(hotel, user);\n\tEntityManager em = (EntityManager) context.getFlowScope().get(\"entityManager\");\n\tem.persist(booking);\n\tcontext.getFlowScope().put(\"booking\", booking);\n\treturn success();\n }", "@RequestMapping(\"/create\")\n\tpublic Booking create(Booking booking) {\n\t\tbooking.setTravelDate(new Date());\n\t\tbooking = bookingRepository.save(booking);\n\t return booking;\n\t}", "private void insertBook() {\n /// Create a ContentValues object with the dummy data\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_NAME, \"Harry Potter and the goblet of fire\");\n values.put(BookEntry.COLUMN_BOOK_PRICE, 100);\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, 2);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_NAME, \"Supplier 1\");\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE, \"972-3-1234567\");\n\n // Insert the dummy data to the database\n Uri uri = getContentResolver().insert(BookEntry.CONTENT_URI, values);\n // Show a toast message\n String message;\n if (uri == null) {\n message = getResources().getString(R.string.error_adding_book_toast).toString();\n } else {\n message = getResources().getString(R.string.book_added_toast).toString();\n }\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "@RequestMapping(value=\"/add\", method = RequestMethod.POST)\r\n public void addAction(@RequestBody Reservation reservation){\n reservationService.create(reservation);\r\n }", "void addReservation(ReservationDto reservationDto) ;", "public int makeBooking(BookingEventModel booking) {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\tconnection.setAutoCommit(false);\n\t\t\tstatement = connection.createStatement();\n\n\t\t\tString sql = \"insert into bookings (email, checkin, checkout, price) \" +\n\t\t\t\t\tString.format(\"values ('%s', '%s', '%s', %d);\", booking.userEmail, formatter.format(booking.checkIn),\n\t\t\t\t\t\t\tformatter.format(booking.checkOut), booking.payment);\n\t\t\tstatement.executeUpdate(sql);\n\t\t\t//\t\t System.out.println(\"Inserted records into the table...\"+sql);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tstatement.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//\t\t\ttry {\n\t\t\t//\t\t\t\tconnection.close();\n\t\t\t//\t\t\t} catch (SQLException e) {\n\t\t\t//\t\t\t\te.printStackTrace();\n\t\t\t//\t\t\t}\n\t\t}\n\n\t\tResultSet lastId = null;\n\t\tint bookingNumber = 0;\n\t\tStatement statement2 = null;\n\t\ttry {\n\t\t\t//\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\t//\t\t\tconnection.setAutoCommit(false);\n\t\t\tstatement2 = connection.createStatement();\n\t\t\tString sql = \"SELECT last_insert_rowid() FROM bookings\";\n\t\t\tlastId = statement2.executeQuery(sql);\n\n\t\t\tlastId.next();\n\t\t\tbookingNumber = lastId.getInt(1);\n\t\t\t//\t\t System.out.println(\"last id...\"+sql+\" \"+bookingNumber);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tlastId.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tstatement2.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconnection.commit();\n\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tStatement statement3 = null;\n\t\tfor (Room r: booking.rooms) {\n\t\t\ttry {\n\t\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t\t\tstatement3 = connection.createStatement();\n\n\t\t\t\tString sql = String.format(\"insert into room_booking_junction (room_id, booking_id) values (%d, %d)\",\n\t\t\t\t\t\tr.getId(), bookingNumber);\n\t\t\t\tstatement3.executeUpdate(sql);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tstatement3.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconnection.commit();\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tStatement statement4 = null;\n\t\tfor (HashMap.Entry<ExtraService, Integer> entry : booking.services.entrySet()){\n\t\t\ttry {\n\t\t\t\tconnection = DriverManager.getConnection(databaseName);\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t\t\tstatement4 = connection.createStatement();\n\n\t\t\t\tString sql = String.format(\"insert into service_booking_junction (service_id, booking_id, amount) values (%d, %d, %d)\",\n\t\t\t\t\t\tentry.getKey().getId(), bookingNumber, entry.getValue());\n\t\t\t\tstatement4.executeUpdate(sql);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tstatement4.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconnection.commit();\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn bookingNumber;\n\t}", "@Override\r\n\tpublic Book addBook(Book book) {\n\t\treturn bd.save(book);\r\n\t}", "public void createBooking(Booking book) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.createBooking(book);\n}", "void insertConfirm(bookingDTO booking) throws DataAccessException;", "@PostMapping(\"/add\")\r\n\tResponseEntity<BookingDetails> bookingprocess(@RequestBody CreateBookingRequest bookingDto){\r\n\t\tList<Seat> seats = choosenSeats(bookingDto.getChoosenSeats());\r\n\t\tdouble cost = getCost(seats);\r\n\t\t\r\n\t\tBooking booking=convertBookingDto(bookingDto,cost);\r\n\t\tbooking = bookingService.createBooking(booking,bookingDto.getPaymentMethod(),bookingDto.getScreenName());\r\n\t\t\r\n\t\tBookingDetails bookingDetails = convertBooking(booking);\r\n\t\tResponseEntity<BookingDetails> response = new ResponseEntity<BookingDetails>(bookingDetails,HttpStatus.OK);\r\n\t\treturn response;\r\n\t}", "@Override\r\n\tpublic boolean addBook(BookDto book) {\n\t\tsqlSession.insert(ns + \"addBook\", book);\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void saveBooking(BookingDetails bookingDetails) {\n\t\tbookingDao.saveBooking(bookingDetails);\n\t}", "public void reserveBook(String cardNo, String book_id) throws SQLException {\n\t\tPreparedStatement myStmt = null;\n\t\t\n\t\tString query = \" insert into book_loans (book_id, branch_id, card_no, date_out, date_due)\"\n\t\t + \" values (?, 9745, ?, curdate(), curdate()+7)\";\n\t\t\n\t\tmyStmt = myConn.prepareStatement(query);\n\t\t\n\t\tmyStmt.setString(1, book_id);\n\t\tmyStmt.setString(2, cardNo);\n\t\t\n\t\t\n\t\t\n\t\tmyStmt.execute();\n\t\t\n\t}", "@Transactional\n\t@Override\n\tpublic Passenger addPassenger(Passenger p) {\tint bId = p.getBooking().getBookingId();\n//\t\tString query = \"Select b from Booking b where b.bookingId =:bId \";\n//\t\tTypedQuery<Booking> tq = em.createQuery(query, Booking.class);\n//\t\ttq.setParameter(\"bId\", bId);\n//\t\tBooking b = tq.getSingleResult();\n//\t\tSystem.out.println(\"feffefefeff\" + p);\n//\t\tp.setBooking(b);\n//\t\n\tList<Integer> seatNos = new ArrayList();\n\t\t\n\t\tfor(int i =1; i<61; i++)\n\t\t{\t\n\t\t\tseatNos.add(i);\n\t}\n\t\t\t\n\tp.setSeatNo(seatNos.get(count));\n\tcount+=1;\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\tSystem.out.println(p);\n\t\tem.persist(p);\n\t\tSystem.out.println(\"persisted\" + p);\n\t\treturn p;\n\t}", "boolean addBillToReservation(long billId, long reservationId);", "int insert(CmsRoomBook record);", "Reservierung insert(Reservierung reservierung) throws ReservierungException;", "@Override\r\n\tpublic void storedBook(Book book) {\n\t\tticketDao.insertBook(book);\r\n\t}", "@Override\n\tpublic void add() {\n\t\tHashMap<String, String> data = new HashMap<>();\n\t\tdata.put(\"title\", title);\n\t\tdata.put(\"author\", author);\n\t\tdata.put(\"publisher\", publisher);\n\t\tdata.put(\"isbn\", isbn);\n\t\tdata.put(\"bookID\", bookID);\n\t\tHashMap<String, Object> result = null;\n\t\tString endpoint = \"bookinfo/post.php\";\n\t\ttry {\n\t\t\tresult = APIClient.post(BookInfo.host + endpoint, data);\n\t\t\tvalid = result.get(\"status_code\").equals(\"Success\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void insertBooking(detailDTO detail) throws DataAccessException;", "public void insert(Booking<?> booking) {\n\t\t\t\n\t\tBookingNode node = new BookingNode(booking);\n\t\tnode.setData(booking);\n\t\tnode.next = null;\n\t\t\t\n\t\tif(head == null) {\n\t\t\t\t\n\t\t\thead = node;\n\t\t}\n\t\telse {\n\t\t\t\t\n\t\t\tBookingNode n = head;\n\t\t\twhile(n.next!=null) {\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\tn.next = node;\n\t\t}\n\t}", "@PostMapping(value=\"/booking\")\n public String addBooking(@RequestBody BookingModel data) {\n TrainerModel a = t.getByEmail((data.getEmailTrainerDetail()));\n data.setTrainerDetail(t.getByEmail(data.getEmailTrainerDetail()));\n data.setClientDetail(u.get(data.getEmailClientDetail()));\n if(a.getBookingCount()<5){\n a.setBookingCount(a.getBookingCount()+1);\n t.updateTrainer(a);\n return b.addBooking(data);\n }else{\n return \"Cannot add more than 5 Pets\";\n }\n }", "public static void addBook(final @Valid Book book) {\n\t\tif (book.serie.id == null) {\r\n\t\t\tValidation.required(\"book.serie.name\", book.serie.name);\r\n\r\n\t\t\tif (book.serie.name != null) {\r\n\t\t\t\tSerie serie = Serie.find(\"byName\", book.serie.name).first();\r\n\t\t\t\tif (serie != null) {\r\n\t\t\t\t\tValidation.addError(\"book.serie.name\",\r\n\t\t\t\t\t\t\t\"La série existe déjà\",\r\n\t\t\t\t\t\t\tArrayUtils.EMPTY_STRING_ARRAY);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Validation errror treatment\r\n\t\tif (Validation.hasErrors()) {\r\n\r\n\t\t\tif (Logger.isDebugEnabled()) {\r\n\t\t\t\tfor (play.data.validation.Error error : Validation.errors()) {\r\n\t\t\t\t\tLogger.debug(error.message() + \" \" + error.getKey());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Specific treatment for isbn, just to provide example\r\n\t\t\tif (!Validation.errors(\"book.isbn\").isEmpty()) {\r\n\t\t\t\tflash.put(\"error_isbn\", Messages.get(\"error.book.isbn.msg\"));\r\n\t\t\t}\r\n\r\n\t\t\tparams.flash(); // add http parameters to the flash scope\r\n\t\t\tValidation.keep(); // keep the errors for the next request\r\n\t\t} else {\r\n\r\n\t\t\t// Create serie is needed\r\n\t\t\tif (book.serie.id == null) {\r\n\t\t\t\tbook.serie.create();\r\n\t\t\t}\r\n\r\n\t\t\tbook.create();\r\n\r\n\t\t\t// Send WebSocket message\r\n\t\t\tWebSocket.liveStream.publish(MessageFormat.format(\r\n\t\t\t\t\t\"La BD ''{0}'' a été ajoutée dans la série ''{1}''\",\r\n\t\t\t\t\tbook.title, book.serie.name));\r\n\r\n\t\t\tflash.put(\"message\",\r\n\t\t\t\t\t\"La BD a été ajoutée, vous pouvez créer à nouveau.\");\r\n\t\t}\r\n\r\n\t\tBookCtrl.prepareAdd(); // Redirection toward input form\r\n\t}", "@Override\n\tpublic int insertWannaBook(WannaBookVO wannaBookvo) throws RemoteException {\n\t\treturn 0;\n\t}", "Hotel saveHotel(Hotel hotel);", "private void addBookings(List<Bookings> newBookings) {\n IController<Bookings> bookingController = new Controller<>();\n IController<Students> studentController = new Controller<>();\n IController<Staff> staffController = new Controller<>();\n\n // Get all bookings\n List<Bookings> allBookings = bookingController.readAll(Bookings.class);\n\n\n // Check if any booking clashes.\n int count = 0;\n for (Bookings b : newBookings) {\n System.out.println(\"Checking availability of booking #\" + count);\n for (Bookings booking : allBookings) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgumentException(\"That booking conflicts with another booking.\");\n }\n }\n\n Modules relatedModule = b.getModule();\n\n if (!b.getRooms().isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"That room is unavailable at the time (\" + b.getTime() + \").\");\n }\n for (Students student : relatedModule.getStudents()) {\n student = studentController.readById(Students.class, student.getStudentID(), true);\n if (!student.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A student is unavailable at this time. [\" + b.getTime() + \"] (\" + student.getStudentID() + \")\");\n }\n }\n for (Staff staff : relatedModule.getStaff()) {\n staff = staffController.readById(Staff.class, staff.getStaffID(), true);\n\n if (!staff.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A staff member is unavailable at this time. [\" + b.getTime() + \"] (\" + staff.getStaffID() + \")\");\n }\n }\n\n count++;\n }\n\n // Create the bookings\n for (Bookings b : newBookings) {\n bookingController.create(b);\n System.out.println(b.confirmation() + \"\\n\");\n }\n }", "public com.Hotel.model.Hotel create(long hotelId);", "public static void addBook(Book book) throws HibernateException{\r\n session=sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n //Insert detail of the book to the database\r\n session.save(book);\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n }", "public com.huqiwen.demo.book.model.Books create(long bookId);", "@Override\n public int addBook(Book book) throws DaoException {\n DataBaseHelper helper = new DataBaseHelper();\n ResultSet resultSet = null;\n try (Connection connection = SqlConnector.connect();\n PreparedStatement statementAdd =\n helper.prepareStatementAdd(connection, book);\n PreparedStatement statementSelect =\n helper.prepareStatementSelect(connection, book)) {\n statementAdd.executeUpdate();\n resultSet = statementSelect.executeQuery();\n resultSet.next();\n return new BookCreator().getBookId(resultSet);\n } catch (SQLException e) {\n throw new DaoException(e);\n } finally {\n close(resultSet);\n }\n }", "void addInBookNo(Object newInBookNo);", "public void makeBooking (Object booking);", "@Override\n\tpublic HotelBooking bookRoom(HotelForm hotelForm, Session session) throws HibernateException, Exception{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tHotelBooking hotelBooking = setDAOValues(hotelForm);\n\t\tsession.save(hotelBooking);\n\t\t\n\t\treturn null;\n\t}", "public boolean addBook(Books books){\n String sql=\"insert into Book(book_name,book_publish_date,book_author,book_price,scraption)values(?,?,?,?,?)\";\n boolean flag=dao.exeucteUpdate(sql,new Object[]{books.getBook_name(),books.getBook_publish_date(),\n books.getBook_author_name(),books.getBook_price(),books.getScraption()});\n return flag;\n }", "private void addSeatToDatabase(Seat seat) throws SQLException {\n\n\t\tseatdb.storeToDatabase(seat);\n\t}", "public void addBook(String name, String catogary){\n\t\tBook newBook = new Book(name, catogary);\n newBook.setAddDate();\n Library.Books.add(newBook);\n\t\tLibrary.saveObject(Library.Books,\"books.dat\");\n\t\t\n\t}", "@Override\r\n public void create(Appointment a) throws SQLException {\r\n\r\n String statement =\r\n \"INSERT INTO appointments (Appointment_ID, Title, Description, Location, Type, Start, End, Customer_ID, User_ID, Contact_ID) VALUES (\" +\r\n a.getAppointmentId() + \",'\" +\r\n a.getTitle() + \"','\" +\r\n a.getDescription() + \"','\" +\r\n a.getLocation() + \"','\" +\r\n a.getType() + \"','\" +\r\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) + \"','\" +\r\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) + \"',\" +\r\n a.getCustomer().getCustomerId() + \",\" +\r\n a.getUser().getId() + \",\" +\r\n a.getContact().getId() + \");\";\r\n\r\n //System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "public void add (String frist_name, String lastName, String nationality, \n int age, Date commingDate, Date checkOutDate){\n \n String insertTransaction = \"INSERT INTO customer \"+\n \"(First_name, Last_name, nationality, age, coming_date, check_out_date) \"\n +\"values ('\"+frist_name+\"','\"+lastName+\"','\"\n +nationality+\"',\"+age+\",'\"+\n commingDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(2)+\n \"', '\"+checkOutDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(2)+\"')\";\n try {\n statement.executeUpdate(insertTransaction);//insert into the DB\n } catch (SQLException ex) {\n ex.printStackTrace();\n }finally{\n setQuery(DEFUALT_QUERY);\n }\n }", "public static int insert(Booking b)\n {\n Connection con = MyConnection.connect();\n int row_insert = 0;\n try\n {\n // Qry 1 -> Patient Booking\n String qry1 = \"insert into patient(name,phone,dob,problem) values(?,?,?,?)\";\n PreparedStatement stmt = con.prepareStatement(qry1);//query getting pre-compile\n //setting column values in student table\n \n stmt.setString(1,b.getName());\n stmt.setInt(2,b.getPhone());\n \n stmt.setString(3, b.getDob());\n stmt.setString(4, b.getProblem());\n \n row_insert = stmt.executeUpdate();\n }//try ends\n catch(Exception ex)\n {\n System.out.println(\"Insert error :\"+ex);//print error on server logs\n }//catch ends\n return row_insert;\n }", "public void add(int id, String name, String author, int issueDate, int returnDate) {\n\tBook book = new Book();\n\tbook.id = id;\n\tbook.name = name;\n\tbook.author = author;\n\tbook.issueDate = issueDate;\n\tbook.returnDate = returnDate;\n\tlist.add(book);\n\tSystem.out.println(\"Successfully added: \"+book.id);\n}", "public void addNewRecord(String name, String street, int building, int apartment) {\n if (name == null || street == null)\n throw new NullPointerException();\n if (!addressBook.containsKey(name)) {\n Address address = new Address(street, building, apartment);\n addressBook.put(name, address);\n }\n }", "boolean insertBook(Book book);", "public String addBilling(Tour t,Event e){\n \n \n String result = \"0\";\n Connection con = null;\n //build the sql\n String SQLCommand = \"INSERT INTO billing(id,lineup_order,event_id,artist_id,tour_id)\" +\n \" values (seq_billing_id.NEXTVAL,?,?,?,?)\";\n \n try{\n //obtain the database connection by calling getConn() \n con = getConn();\n Billing b = t.getBills().get(0);\n \n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql , parameters are represented by ? in the sql\n PreparedStatement ps = con.prepareStatement(SQLCommand); \n \n //setting the parameters values\n ps.setInt(1,b.getLineupOrder());\n ps.setLong(2,e.getId());\n ps.setLong(3, b.getArtist().getId());\n ps.setLong(4, t.getId());\n \n //exceuting the insert or update operation \n ps.executeUpdate(); \n }\n catch (SQLException ex){\n ex.printStackTrace();\n result = ex.getMessage();\n }\n return result;\n }", "public BookingInfoEntity createBooking(BookingInfoEntity bookingInfoEntity) {\n System.out.println(bookingInfoEntity.getFromDate() + \"\\t\" + bookingInfoEntity.getToDate());\n long noOfDays = ChronoUnit.DAYS.between(bookingInfoEntity.getFromDate(), bookingInfoEntity.getToDate());\n bookingInfoEntity.setRoomPrice( 1000 * bookingInfoEntity.getNumOfRooms() * ((int)noOfDays) );\n bookingInfoEntity.setRoomNumbers(getRandomNumber(bookingInfoEntity.getNumOfRooms()));\n bookingInfoEntity = bookingRepository.save(bookingInfoEntity); \n return bookingInfoEntity;\n }", "private void insertDummyBook() {\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_NAME, getString(R.string.dummy_book_name));\n values.put(BookEntry.COLUMN_GENRE, BookEntry.GENRE_SELF_HELP);\n values.put(BookEntry.COLUMN_PRICE, getResources().getInteger(R.integer.dummy_book_price));\n values.put(BookEntry.COLUMN_QUANTITY, getResources().getInteger(R.integer.dummy_book_quantity));\n values.put(BookEntry.COLUMN_SUPPLIER, getString(R.string.dummy_book_supplier));\n values.put(DatabaseContract.BookEntry.COLUMN_SUPPLIER_PHONE, getString(R.string.dummy_supplier_phone_number));\n values.put(DatabaseContract.BookEntry.COLUMN_SUPPLIER_EMAIL, getString(R.string.dummy_book_supplier_email));\n getContentResolver().insert(BookEntry.CONTENT_URI, values);\n }", "public boolean insertBook(Book book) {\r\n books.add(book);\r\n return true;\r\n }", "@Override\r\n\tpublic String addnewMeeting(String userID, String roomID, Date startDate, Date endDate) {\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"in addition\");\r\n\t\tSession session = factory.openSession();\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\t\r\n\t\tUser user=new User();\r\n\t\tuser.setUserID(userID);\r\n\r\n\t\tMeetingRoom meetingRoom=new MeetingRoom();\r\n\t\tmeetingRoom.setmRoomID(roomID);\r\n\t\t\r\n\t\tMeetingTimings meetingTimings=new MeetingTimings();\r\n\t\tmeetingTimings.setEndTime(endDate);\r\n\t\tmeetingTimings.setStartTime(startDate);\r\n\t\t\r\n\t\tmeetingTimings.setMeetingRoom(meetingRoom);\r\n\t\t\r\n\t\tBookedMeeting meeting=new BookedMeeting();\r\n\t\tmeeting.setEndTime(endDate);\r\n\t\tmeeting.setStartTime(startDate);\r\n\t\tmeeting.setBookingID(userID+\"-\"+roomID+\"-\"+meetingTimings.getStartTime().hashCode()+\"-\"+meetingTimings.getEndTime().hashCode());\r\n\t\tmeeting.setMeetingRoom(meetingRoom);\r\n\t\tmeeting.setUser(user);\r\n\t\t\r\n\t\t//uncomment to add new user or meeting room\r\n\t\t//session.save(user);\r\n\t\t//session.save(meetingRoom);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tsession.save(meetingTimings);\r\n\t\t}\r\n\t\tcatch(HibernateException E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving meeting timings\"+E);\r\n\t\t}\r\n\t\t\r\n\t\ttry{\r\n\t\t\tsession.save(meeting);\r\n\t\t}\r\n\t\tcatch(HibernateException E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving meeting booked\"+E);\r\n\t\t\t\r\n\t\t}\r\n\t\t// session.persist(entity);\r\n\t\ttry{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t}\r\n\t\tcatch(Exception E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving and closing session\"+E);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t return \"success\";\r\n\r\n\t}", "@Override\n\tpublic Long addBook(BookRequestVO request) {\n\t\tLong savedBookId = bookStorePersistDao.addBook(request);\n\t\treturn savedBookId;\n\t}", "@Test\r\n\tpublic void addToDb() {\r\n\t\tservice.save(opinion);\r\n\t\tassertNotEquals(opinion.getId(), 0);\r\n\t\tassertTrue(service.exists(opinion.getId()));\r\n\t}", "public void registerDirtyBooking(Booking b) {\n if (!newBooking.contains(b)\n && !modifiedBooking.contains(b)) {\n modifiedBooking.add(b);\n }\n }", "void addconBooking(detailDTO detail) throws DataAccessException;", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tStoredBookDAO storeBookDAO = new StoredBookDAO(BookInfoActivity.this);\n\t\t\tBookStoredEntity testBookBorrowedEntity1 = new BookStoredEntity();\n\t\t\ttestBookBorrowedEntity1.setBookId(\"1\");\n\t\t\ttestBookBorrowedEntity1.setBookText(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookImageUrl(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookPress(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookPressTime(\"android\");\n\t\t\tstoreBookDAO.insert(testBookBorrowedEntity1);\n\t\t\tToast.makeText(BookInfoActivity.this, R.string.storesuccess, Toast.LENGTH_SHORT).show();\n\t\t}", "void AddMeeting (Meeting m) throws Exception;", "public void addBook() {\n\t\t JTextField callno = new JTextField();\r\n\t\t JTextField name = new JTextField();\r\n\t\t JTextField author = new JTextField(); \r\n\t\t JTextField publisher = new JTextField(); \r\n\t\t JTextField quantity = new JTextField(); \r\n\t\t Object[] book = {\r\n\t\t\t\t \"Callno:\",callno,\r\n\t\t\t\t \"Name:\",name,\r\n\t\t\t\t \"Author:\",author,\r\n\t\t\t\t \"Publisher:\",publisher,\r\n\t\t\t\t \"Quantity:\",quantity\r\n\t\t\t\t\r\n\t\t };\r\n\t\t int option = JOptionPane.showConfirmDialog(null, book, \"New book\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t if(option==JOptionPane.OK_OPTION) {\r\n // add to the Book database\r\n\t\t try {\r\n\t\t\t \r\n\t\t String query = \"insert into Book(callno,name,author,publisher,quantity,added_date)\"\r\n\t\t\t\t +\" values(?,?,?,?,?,GETDATE())\";\r\n\t\t \r\n\t\t PreparedStatement s = SimpleLibraryMangement.connector.prepareStatement(query);\r\n\t\t s.setString(1, callno.getText());\r\n\t\t s.setString(2, name.getText());\r\n\t\t s.setString(3, author.getText());\r\n\t\t s.setString(4, publisher.getText());\r\n\t s.setInt(5, Integer.parseInt(quantity.getText()));\r\n\t\t s.executeUpdate();\r\n\t\t JOptionPane.showMessageDialog(null, \"Add book successfully\", null, JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t } catch(Exception e) {\r\n\t\t\t JOptionPane.showMessageDialog(null, \"Add book failed\", null, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t } \r\n\t\t \r\n\t}", "public void addReservation(Reservation reservation) {\n reservations.add(reservation);\n }", "private void handleBooking() {\n\t\tString customerID;\n\t\tint recNo = table.getSelectedRow();\n\t\tif(recNo == -1){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcustomerID = JOptionPane.showInputDialog(mainPanel,\n\t\t\t\t\t\"Enter Customer ID (8 Digits)\");\n\t\t\tif (customerID != null) {\t\n\t\t\t\tcontroller.reserveRoom(recNo, customerID);\n\t\n\t\t\t\tupdateTable(nameSearchBar.getText(),\n\t\t\t\t\t\tlocationSearchBar.getText());\n\t\t\t}\n\t\t} catch (final InvalidCustomerIDException icide) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, \"Invalid format!\");\n\t\t} catch (final BookingServiceException bse) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, bse.getMessage());\n\t\t} catch (final ServiceUnavailableException sue) {\n\t\t\tJOptionPane.showMessageDialog(null, sue.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public boolean executeInsertBooking(String bookingNo, String uName, int lotNo, String carNo, java.sql.Timestamp startTime, java.sql.Timestamp endTime, double cost) {\r\n\t\tint updationSuccess = 0;\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection temporarily\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\r\n\t\t\tpstmt = conn.prepareStatement(INSERT_INTO_BOOKING_QUERY);\r\n\r\n\t\t\tpstmt.setString(1, bookingNo);\r\n\t\t\tpstmt.setString(2, uName);\r\n\t\t\tpstmt.setInt(3, lotNo);\r\n\t\t\tpstmt.setString(4, carNo);\r\n\t\t\tpstmt.setTimestamp(5, startTime);\r\n\t\t\tpstmt.setTimestamp(6, endTime);\r\n\t\t\tpstmt.setDouble(7, cost);\r\n\r\n\t\t\tupdationSuccess = pstmt.executeUpdate();\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tthis.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\tif (updationSuccess > 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean insertNewMemberSeat(booking bk) {\n//\t\tMember mb = MemberDBManager.selectOneMemberByPk_user(id);\n//\t\tAdmin ad = new Admin();\n//\t\tinsertT it = ad.new insertT();\n\t\t// TODO\t\t\n\t\tif( con != null ) {\n\t\t\tString sql = \"insert into booking values(?, ?, ?, ?, ?, ?, ?, ?, ?, \" + \n\t\t\t\t\t\"?, ?, ?, ?, ?, ?, ?, ?)\";\n\t\t\ttry {\n\t\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\n\t\t\t\tpstmt.setString(1, bk.getTrainID());\n\t\t\t\tpstmt.setString(2, bk.getTrainName());\n\t\t\t\tpstmt.setInt(3, bk.getPkUser());\n\t\t\t\tpstmt.setInt(4, bk.getDRailCode());\n\t\t\t\tpstmt.setInt(5, bk.getARailCode());\n\t\t\t\tpstmt.setString(6, bk.getDStation());\n\t\t\t\tpstmt.setString(7, bk.getAStation());\n\t\t\t\tpstmt.setString(8, bk.getName());\n\t\t\t\tpstmt.setInt(9, bk.getAge());\n\t\t\t\tpstmt.setInt(10, bk.getAgeType());\n\t\t\t\tpstmt.setInt(11, bk.getPrice());\n\t\t\t\tpstmt.setInt(12, bk.getSeat());\n\t\t\t\tpstmt.setInt(13, bk.getFullOrNot());\n\t\t\t\tpstmt.setString(14, bk.getDDate());\n\t\t\t\tpstmt.setString(15, bk.getDTime());\n\t\t\t\tpstmt.setString(16, bk.getaTime());\n\t\t\t\tpstmt.setString(17, bk.getPayDate());\n\t\t\t\tint r = pstmt.executeUpdate();\n\t\t\t\tif( r == 1 ) {\n\t\t\t\t\tSystem.out.println(bk.getSeat() + \" 좌석 배치 완료!\");\n\t\t\t\t\treturn true;\n\t\t\t\t} else System.out.println(bk.getSeat() + \" 좌석 배치 실패!\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"통신 장애\");\n\t\t}\n\t\treturn false;\n\t}", "public Triplet add(Triplet t) throws DAOException;", "String insert(BookDO record);", "int insert(SrHotelRoomInfo record);", "public void addRentEntry(RentEntryBean reb) {\n RentDAO rentDAO = new RentDAO();\n rentDAO.addHouse(reb);\n }", "@POST\n\t@Consumes(\"text/plain\")\n\t@Produces(\"application/json\")\n\t@Path(\"/insert/query\")\n\tpublic Response bookTicket(@QueryParam(\"ticketNo\") String ticketNo,\n\t\t\t@QueryParam(\"theater\") String theater,\n\t\t\t@QueryParam(\"showTime\") String showTime,\n\t\t\t@QueryParam(\"date\") String date, @QueryParam(\"seats\") String seats,\n\t\t\t@QueryParam(\"foodItems\") String foodItems,\n\t\t\t@QueryParam(\"totalPrice\") String totalPrice) {\n\t\tticketNo = ticketNo.trim();\n\t\tif (!bookedTickets.containsKey(ticketNo)) {\n\t\t\tMap<String, String> ticketInfo = new HashMap<>();\n\t\t\tticketInfo.put(\"theater\", theater);\n\t\t\tticketInfo.put(\"showTime\", showTime);\n\t\t\tticketInfo.put(\"date\", date);\n\t\t\tticketInfo.put(\"seats\", seats);\n\t\t\tticketInfo.put(\"foodItems\", foodItems);\n\t\t\tticketInfo.put(\"totalPrice\", totalPrice);\n\n\t\t\tbookedTickets.put(ticketNo, ticketInfo);\n\n\t\t\tMessage msg = new Message();\n\t\t\tmsg.setMessage(\"Success\");\n\t\t\treturn Response.ok(msg).build();\n\t\t}\n\t\tMessage msg = new Message();\n\t\tmsg.setMessage(\"Fail\");\n\t\treturn Response.ok(msg).build();\n\n\t}", "public int addBook(Book addBook) throws Exception {\r\n\r\n\t\tString insert = \"INSERT into book\" + \"(title,description,date,author,isbn,price) VALUES \" + \" (?,?,?,?,?,?)\";\r\n\t\tint result = 0;\r\n\r\n\t\ttry (\r\n\t\t\t\t// Class.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\tConnection connection = DriverManager.getConnection(\r\n\t\t\t\t\t\t\"jdbc:mysql://localhost:3306/sjsu_textbookstore?autoReconnect=true&useSSL=false\", \"root\",\r\n\t\t\t\t\t\t\"N00bcakes\");\r\n\r\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(insert)) {\r\n\t\t\tpreparedStatement.setString(1, addBook.getTitle());\r\n//\t\t\t\tpreparedStatement.setInt(2, acc.getAccount_id());\r\n\t\t\tpreparedStatement.setString(2, addBook.getDescription());\r\n\t\t\tpreparedStatement.setDate(3, getCurrentDate());\r\n\t\t\tpreparedStatement.setString(4, addBook.getAuthor());\r\n\t\t\tpreparedStatement.setString(5, addBook.getIsbn());\r\n\t\t\tpreparedStatement.setString(6, addBook.getPrice());\r\n\r\n\t\t\tSystem.out.println(preparedStatement);\r\n\t\t\tresult = preparedStatement.executeUpdate();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\r\n\t}", "public Booking makeBooking(Customer customer, Airline flight, int baggage, String type, Date date);", "@Override\n\tpublic String insertBook(Book book) {\n\t\treturn \"Book successfully inserted\";\n\t}", "public static void AddFlight(Flight flight){\n\n //java.sql.Date sqlDate = new java.sql.Date(flight.getDatetime());\n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM flight\")){\n \n resultSet.moveToInsertRow();\n resultSet.updateString(\"FlightNumber\", flight.getFlightNumber());\n resultSet.updateString(\"DepartureAirport\", flight.getDepartureAirport());\n resultSet.updateString(\"DestinationAirport\", flight.getDestinationAirport());\n resultSet.updateDouble(\"Price\", flight.getPrice());\n\n //Ask Andrew\n// java.sql.Date sqlDate = new java.sql.Date();\n// resultSet.updateDate(\"datetime\", flight.getDatetime());\n resultSet.updateString(\"Plane\", flight.getPlane());\n resultSet.updateInt(\"SeatsTaken\", flight.getSeatsTaken());\n \n resultSet.insertRow();\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n \n }", "public boolean bookSeat(User user, FlightRoute f, int classId) throws SQLException {\n\t\tConnection conn = null;\n\t\tBooking b = new Booking(true);\n\t\tBookingPayment bp;\n\t\tBookingUser bu;\n\t\tFlightBooking fb;\n\t\tPassenger p;\n\t\tint bookingId = 0;\n\t\tswitch (classId) {\n\t\tcase 1:\n\t\t\tf.getFlight().setReservedSeats(f.getFlight().getReservedSeats() + 1);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tf.getFlight().setReservedSeats2(f.getFlight().getReservedSeats2() + 1);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tf.getFlight().setReservedSeats3(f.getFlight().getReservedSeats3() + 1);\n\t\t\tbreak;\n\t\t}\n\t\ttry {\n\t\t\tconn = util.getConnection();\n\t\t\tconn.setAutoCommit(false);\n\t\t\tBookingDAO b1 = new BookingDAO(conn);\n\t\t\tBookingPaymentDAO bp1 = new BookingPaymentDAO(conn);\n\t\t\tBookingUserDAO bu1 = new BookingUserDAO(conn);\n\t\t\tPassengerDAO p1 = new PassengerDAO(conn);\n\t\t\tFlightBookingDAO fb1 = new FlightBookingDAO(conn);\n\t\t\tFlightDAO f1 = new FlightDAO(conn);\n\t\t\t// insert and read booking\n\t\t\tbookingId = b1.create(b);\n\n\t\t\t// add passenger birthday/gender/address preset for now\n\t\t\tp = new Passenger(bookingId, user.getGivenName(), user.getFamilyName(), LocalDate.of(1996, 5, 15), \"n/a\",\n\t\t\t\t\t\"n/a\");\n\t\t\tp1.create(p);\n\n\t\t\t// not sure what stripe id is so I'll insert this\n\t\t\tbp = new BookingPayment(bookingId, \"\", false);\n\t\t\tbp1.create(bp);\n\n\t\t\t// insert booking user\n\t\t\tbu = new BookingUser(bookingId, user.getId());\n\t\t\tbu1.create(bu);\n\n\t\t\t// create flight_booking\n\t\t\tfb = new FlightBooking(f.getFlight().getId(), bookingId, classId);\n\t\t\tfb1.create(fb);\n\n\t\t\t// update flight seating\n\t\t\tf1.update(f.getFlight());\n\n\t\t\tconn.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tconn.rollback();\n\t\t\treturn false;\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void setBookingId(int booking_id) {\n this.booking_id = booking_id;\n }", "public void addNewBook(Book b) {\n if (totalbooks < books.length) {\n books[totalbooks] = b;\n totalbooks++;\n } else {\n System.out.println(\"The bookstore is full\");\n }\n\n }", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "public Boat insertBoat(Boat boat);", "public void addRoom(){\r\n String enteredRoomNumber = mRoomNumber.getText().toString();\r\n if (!enteredRoomNumber.equals(\"\")){\r\n RoomPojo roomPojo = new RoomPojo(enteredRoomNumber,\r\n mAllergy.getText().toString(),\r\n mPlateType.getText().toString(),\r\n mChemicalDiet.getText().toString(),\r\n mTextureDiet.getText().toString(),\r\n mLiquidDiet.getText().toString(),\r\n mLikes.getText().toString(),\r\n mDislikes.getText().toString(),\r\n mNotes.getText().toString(),\r\n mMeal.getText().toString(),\r\n mDessert.getText().toString(),\r\n mBeverage.getText().toString(),\r\n RoomActivity.mFacilityKey);\r\n mFirebaseDatabaseReference.push().setValue(roomPojo);\r\n Utils.countCensus(RoomActivity.mFacilityKey);\r\n Utils.countNumRoomsFilled(RoomActivity.mHallKey, RoomActivity.mHallStart, RoomActivity.mHallEnd);\r\n }\r\n //close the dialog fragment\r\n RoomDialog.this.getDialog().cancel();\r\n }", "public int insert(Listing listing) throws SQLException;", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public void addBook(Book book) {\n this.bookList.add(book);\n }", "public void addTicket(phonecallTicket ticket){\n try {\n \n System.out.println(\"Number of tickets? \" + (total()+1));\n String insert =\"INSERT INTO JEREMY.TICKET \"\n + \"(ID,NAME,PHONE,TAG,DATE,PROBLEM,NOTES,STATUS) \"\n + \"VALUES \"\n \n + \"(\" + (total() +1) +\",'\"\n +ticket.who+\"','\"\n +ticket.phone+\"','\"\n +ticket.tag+\"',' \"\n +ticket.date+\"',' \"\n +ticket.problem+\"',' \"\n +ticket.notes+\"','\"\n +\"NEW\"+\"')\";\n \n System.out.println(insert);\n \n stmt.executeUpdate(insert);\n \n rs = stmt.executeQuery(\"SELECT * FROM JEREMY.TICKET\");\n total();\n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n }\n tickets.add(ticket);\n }", "public void create(Book book) {\n\t\tentityManager.persist(book);\n\t\tSystem.out.println(\"BookDao.create()\" +book.getId());\n\t\t\n\t}", "public void addBook(Book book) {\n \tset.add(book);\n }", "@Override\n\tpublic boolean addBook(Book book) throws DAOException {\n\t\treturn false;\n\t}", "public void insertBook(){\n\n // Create a new map of values, where column names are the keys\n ContentValues values = new ContentValues();\n values.put(BookContract.BookEntry.COLUMN_PRODUCT_NAME, \"You Do You\");\n values.put(BookContract.BookEntry.COLUMN_PRICE, 10);\n values.put(BookContract.BookEntry.COLUMN_QUANTITY, 20);\n values.put(BookContract.BookEntry.COLUMN_SUPPLIER_NAME, \"Kedros\");\n values.put(BookContract.BookEntry.COLUMN_SUPPLIER_PHONE_NUMBER, \"210 27 10 48\");\n\n Uri newUri = getContentResolver().insert(BookContract.BookEntry.CONTENT_URI, values);\n }", "@PostMapping(value=\"/insert/hotel\", consumes=MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseClient insertNewRoom(@RequestBody Hotel hotel){\r\n\t\thotelSer.save(hotel);\r\n\t\tResponseClient res = new ResponseClient();\r\n\t\tres.setResponse(\"successfull hotel_id: \");\r\n\t\treturn res;\r\n\t}", "int insert(BookInfo record);", "@Override\n\tpublic void add(Plane p) {\n\t\tString query = \"INSERT INTO fleet(model,planeid)\" + \"VALUES ('\" + p.getName() + \"',\" + p.getPlaneID() + \")\";\n\t\tDBManager.getInstance().addToDB(query);\n\t}", "@TargetApi(Build.VERSION_CODES.KITKAT)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void createReservation() {\n Time timeObj = null;\n DateFormat formatter= new SimpleDateFormat(\"kk:mm\");\n try {\n timeObj = new Time(formatter.parse(time).getTime());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Bitmap generatedQR = generateQR();\n //Create reservation & save to Repository\n Reservation reservation = new Reservation(film, timeObj, listPlaces, generatedQR);\n Repository.addReservation(reservation);\n }", "@Override\n\tpublic boolean addNewAppointment(Appointment appointment) {\n\t\t\t\tboolean status = false;\n\t\t\t\ttry {\n\t\t\t\t\tar.save(appointment);\n\t\t\t\t\tstatus = true;\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tstatus = false;\n\t\t\t\t}\n\t\t\t\treturn status;\n\t}" ]
[ "0.7662163", "0.76292837", "0.74239707", "0.7279475", "0.71170473", "0.7104075", "0.70613015", "0.6933296", "0.68635", "0.68576586", "0.6786424", "0.6709744", "0.6655364", "0.6632592", "0.6568763", "0.6554241", "0.6525159", "0.65214396", "0.65178424", "0.6420291", "0.64155805", "0.6415079", "0.6375694", "0.6329399", "0.6263212", "0.6254322", "0.6247337", "0.62365425", "0.62165457", "0.62070453", "0.6199466", "0.6193495", "0.61771137", "0.615672", "0.61326236", "0.6024643", "0.6023778", "0.6015165", "0.60055244", "0.5984352", "0.5982424", "0.597732", "0.59438336", "0.58954346", "0.58947474", "0.5873993", "0.5861159", "0.58577347", "0.5841523", "0.58358294", "0.58307946", "0.5827741", "0.58187276", "0.5812113", "0.5807332", "0.58058786", "0.5799893", "0.5795905", "0.57947457", "0.5793533", "0.5790695", "0.57705975", "0.5770036", "0.5768003", "0.57358056", "0.5734602", "0.5727643", "0.57243115", "0.57026446", "0.57018", "0.57009447", "0.56946874", "0.5686299", "0.5681504", "0.56675875", "0.5667496", "0.56542385", "0.56526303", "0.5649482", "0.5643751", "0.5639162", "0.5638749", "0.56287956", "0.56234336", "0.5621834", "0.5614867", "0.56142396", "0.5601609", "0.55997103", "0.55987316", "0.5598527", "0.55839145", "0.5580149", "0.5573992", "0.55677056", "0.55629396", "0.5550777", "0.55502295", "0.55423594", "0.5540912" ]
0.72147924
4
/ Find all files that we should parse and distinguish between consensuses, votes, and server descriptors.
public static void main(String[] args) throws IOException { SortedMap<String, File> consensuses = new TreeMap<String, File>(); SortedMap<String, File> descriptors = new TreeMap<String, File>(); SortedMap<String, File> votes = new TreeMap<String, File>(); Stack<File> files = new Stack<File>(); files.add(new File("descriptors")); while (!files.isEmpty()) { File file = files.pop(); String filename = file.getName(); if (file.isDirectory()) { files.addAll(Arrays.asList(file.listFiles())); } else if (filename.endsWith("-consensus")) { consensuses.put(filename, file); } else if (filename.endsWith("-votes")) { votes.put(filename, file); } else if (filename.endsWith("-serverdesc")) { descriptors.put(filename, file); } } System.out.println("We found " + consensuses.size() + " consensus files, " + votes.size() + " vote files, and " + descriptors.size() + " server descriptor files."); /* Parse consensuses in an outer loop and the referenced votes and * descriptors in inner loops. Write the results to disk as soon as * we can to avoid keeping many things in memory. */ SortedMap<String, String> bandwidthAuthorities = new TreeMap<String, String>(); bandwidthAuthorities.put("27B6B5996C426270A5C95488AA5BCEB6BCC86956", "ides"); bandwidthAuthorities.put("80550987E1D626E3EBA5E5E75A458DE0626D088C", "urras"); bandwidthAuthorities.put("D586D18309DED4CD6D57C18FDB97EFA96D330566", "moria1"); bandwidthAuthorities.put("ED03BB616EB2F60BEC80151114BB25CEF515B226", "gabelmoo"); bandwidthAuthorities.put("49015F787433103580E3B66A1707A00E60F2D15B", "maatuska"); BufferedWriter bw = new BufferedWriter(new FileWriter( "bandwidth-comparison.csv")); bw.write("validafter,fingerprint,nickname,category," + "descriptorbandwidth,consensusbandwidth"); for (String bandwidthAuthority : bandwidthAuthorities.values()) { bw.write("," + bandwidthAuthority + "bandwidth"); } bw.write("\n"); for (File consensusFile : consensuses.values()) { System.out.println("Parsing consensus " + consensusFile.getName()); BufferedReader brC = new BufferedReader(new FileReader( consensusFile)); String lastRLine = null, lastSLine = null; String consensusTimestamp = consensusFile.getName().substring(0, "YYYY-MM-DD-hh-mm-ss".length()); Map<String, Map<String, String>> measuredBandwidthsByDirSource = new HashMap<String, Map<String, String>>(); /* Parse votes first, if we have them, and extract measured * bandwidths. */ String votesFilename = consensusTimestamp + "-votes"; if (votes.containsKey(votesFilename)) { BufferedReader brV = new BufferedReader(new FileReader( votes.get(votesFilename))); String lineV; Map<String, String> measuredBandwidths = null; while ((lineV = brV.readLine()) != null) { if (lineV.startsWith("dir-source ")) { String dirSource = lineV.split(" ")[2]; measuredBandwidths = new HashMap<String, String>(); measuredBandwidthsByDirSource.put(dirSource, measuredBandwidths); } else if (lineV.startsWith("r ")) { lastRLine = lineV; } else if (lineV.startsWith("w ") && lineV.contains(" Measured=")) { String fingerprint = Hex.encodeHexString(Base64. decodeBase64(lastRLine.split(" ")[2] + "=")); String measuredBandwidth = lineV.substring(lineV.indexOf( " Measured=") + " Measured=".length()).split(" ")[0]; measuredBandwidths.put(fingerprint, measuredBandwidth); } } brV.close(); } /* Parse referenced server descriptors to learn about exit policies * and reported bandwidths. */ String descriptorsFilename = consensusTimestamp + "-serverdesc"; Map<String, String> parsedDescriptors = new HashMap<String, String>(); if (descriptors.containsKey(descriptorsFilename)) { BufferedReader brD = new BufferedReader(new FileReader( descriptors.get(descriptorsFilename))); Set<String> defaultRejects = new HashSet<String>(); /* Starting with 0.2.1.6-alpha, ports 465 and 587 were allowed * in the default exit policy again (and therefore removed * from the default reject lines). */ Set<String> optionalRejects = new HashSet<String>(); String lineD, address = null, fingerprint = null, descriptorBandwidth = null; boolean defaultPolicy = false, comparePolicies = true; while ((lineD = brD.readLine()) != null) { if (lineD.startsWith("router ")) { address = lineD.split(" ")[2]; defaultRejects.clear(); defaultRejects.addAll(Arrays.asList(("0.0.0.0/8:*," + "169.254.0.0/16:*,127.0.0.0/8:*,192.168.0.0/16:*," + "10.0.0.0/8:*,172.16.0.0/12:*,$IP:*,*:25,*:119," + "*:135-139,*:445,*:563,*:1214,*:4661-4666,*:6346-6429," + "*:6699,*:6881-6999").split(","))); optionalRejects.clear(); optionalRejects.addAll(Arrays.asList( "*:465,*:587".split(","))); fingerprint = null; descriptorBandwidth = null; defaultPolicy = false; comparePolicies = true; } else if (lineD.startsWith("opt fingerprint ") || lineD.startsWith("fingerprint ")) { fingerprint = lineD.substring(lineD.startsWith("opt ") ? "opt fingerprint".length() : "fingerprint".length()). replaceAll(" ", "").toLowerCase(); } else if (lineD.startsWith("bandwidth ")) { descriptorBandwidth = lineD.split(" ")[3]; } else if (lineD.startsWith("reject ") && comparePolicies) { String rejectPattern = lineD.substring("reject ". length()); if (defaultRejects.contains(rejectPattern)) { defaultRejects.remove(rejectPattern); } else if (optionalRejects.contains(rejectPattern)) { optionalRejects.remove(rejectPattern); } else if (rejectPattern.equals(address + ":*")) { defaultRejects.remove("$IP:*"); } else { comparePolicies = false; } } else if (lineD.startsWith("accept ") && comparePolicies) { if (defaultRejects.isEmpty() && lineD.equals("accept *:*")) { defaultPolicy = true; } comparePolicies = false; } else if (lineD.equals("router-signature")) { if (address != null && fingerprint != null && descriptorBandwidth != null) { parsedDescriptors.put(fingerprint, descriptorBandwidth + "," + (defaultPolicy ? "1" : "0")); } } } brD.close(); } /* Parse r, s, and w lines from the consensus. */ String lineC, validAfter = null; while ((lineC = brC.readLine()) != null) { if (lineC.startsWith("valid-after ")) { validAfter = lineC.substring("valid-after ".length()); } else if (lineC.startsWith("r ")) { lastRLine = lineC; } else if (lineC.startsWith("s ")) { lastSLine = lineC; } else if (lineC.startsWith("w ")) { String[] parts = lastRLine.split(" "); String nickname = parts[1]; String fingerprint = Hex.encodeHexString(Base64.decodeBase64( parts[2] + "=")); String descriptor = Hex.encodeHexString(Base64.decodeBase64( parts[3] + "=")); boolean exitFlag = lastSLine.contains(" Exit"); boolean guardFlag = lastSLine.contains(" Guard"); String consensusBandwidth = lineC.substring(lineC.indexOf( " Bandwidth=") + " Bandwidth=".length()).split(" ")[0]; /* Look up whether we parsed this descriptor before. */ boolean parsedDescriptor = false, defaultPolicy = false; String descriptorBandwidth = null; if (parsedDescriptors.containsKey(fingerprint)) { String parseResults = parsedDescriptors.get(fingerprint); parsedDescriptor = true; defaultPolicy = parseResults.endsWith("1"); descriptorBandwidth = parseResults.split(",")[0]; } /* Write everything we know about this relay to disk. */ String category = null; if (guardFlag && exitFlag && defaultPolicy) { category = "Guard & Exit (default policy)"; } else if (!guardFlag && exitFlag && defaultPolicy) { category = "Exit (default policy)"; } else if (guardFlag && exitFlag && !defaultPolicy) { category = "Guard & Exit (non-default policy)"; } else if (!guardFlag && exitFlag && !defaultPolicy) { category = "Exit (non-default policy)"; } else if (guardFlag && !exitFlag) { category = "Guard"; } else if (!guardFlag && !exitFlag) { category = "Middle"; } bw.write(validAfter + "," + fingerprint + "," + nickname + "," + category + "," + (parsedDescriptor ? descriptorBandwidth : "NA") + "," + consensusBandwidth); for (String bandwidthAuthority : bandwidthAuthorities.keySet()) { if (measuredBandwidthsByDirSource.containsKey( bandwidthAuthority) && measuredBandwidthsByDirSource.get( bandwidthAuthority).containsKey(fingerprint)) { bw.write("," + measuredBandwidthsByDirSource.get( bandwidthAuthority).get(fingerprint)); } else { bw.write(",NA"); } } bw.write("\n"); } } brC.close(); } bw.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}", "public static void getListOfAllFileVarianta2() {\n\t\tPath pathToSrc = Paths.get(\"D:\\\\TorrentsMd\");\r\n\t\ttry {\r\n\t\t\t//cu method references\r\n//\t\t\tFiles.walk(pathToSrc)\r\n//\t\t\t\t.map(Path::toFile)\r\n//\t\t\t\t.filter(File::isFile)\r\n//\t\t\t\t.map(File::getName)\r\n//\t\t\t\t.sorted()\r\n//\t\t\t\t.forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t//cu lambda, dar dpdv semantic sunt identice\r\n\t\t\tFiles.walk(pathToSrc)\r\n\t\t\t\t .map(path -> path.toFile()) //trasnform fiecare Path din stream intr-un File\r\n\t\t\t\t .filter(file -> file.isFile()) //filtrez doar fisierele\r\n\t\t\t\t .map(file -> file.getName())//transform fiecare File din stream intr-un String, care e numele sau\r\n\t\t\t\t .sorted()\r\n\t\t\t\t .forEach(file -> System.out.println(file));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void parseFiles() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n for(int i=0; i<fileNodesList.getLength(); i++){\n filesToProcess.add(getFile((Element) fileNodesList.item(i)));\n }\n }", "public void enquire_files()\n {\n out.println(\"ENQUIRY\");\n String rd_in = null;\n Matcher m_eom = eom.matcher(\"start\"); // initializing the matcher. \"start\" does not mean anything\n // get filenames till EOM message is received and update the files list\n try\n {\n while(!m_eom.find())\n {\n rd_in = in.readLine();\n m_eom = eom.matcher(rd_in);\n if(!m_eom.find())\n {\n String filename = rd_in;\n cnode.files.add(filename);\n } \n else { break; } // break out of loop when EOM is received\n }\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }", "private String handleFindFileRequest(String request) {\r\n\t\tString[] commandFragments = Utils.splitCommandIntoFragments(request);\r\n\t\t// TODO validation here\r\n\t\tString[] filesFromCommandFrag = Utils.getKeyAndValuefromFragment(commandFragments[0]);\r\n\t\tString[] failedPeerList = Utils.getKeyAndValuefromFragment(commandFragments[1], SharedConstants.NO_LIMIT_SPLIT);\r\n\r\n\t\tString peers = findPeersForFile(filesFromCommandFrag[1], failedPeerList[1]);\r\n\t\treturn peers;\r\n\t}", "private static void getFiles(String root, Vector files) {\n Location f = new Location(root);\n String[] subs = f.list();\n if (subs == null) subs = new String[0];\n Arrays.sort(subs);\n \n // make sure that if a config file exists, it is first on the list\n for (int i=0; i<subs.length; i++) {\n if (subs[i].endsWith(\".bioformats\") && i != 0) {\n String tmp = subs[0];\n subs[0] = subs[i];\n subs[i] = tmp;\n break;\n }\n }\n \n if (subs == null) {\n LogTools.println(\"Invalid directory: \" + root);\n return;\n }\n \n ImageReader ir = new ImageReader();\n Vector similarFiles = new Vector();\n \n for (int i=0; i<subs.length; i++) {\n LogTools.println(\"Checking file \" + subs[i]);\n subs[i] = new Location(root, subs[i]).getAbsolutePath();\n if (isBadFile(subs[i]) || similarFiles.contains(subs[i])) {\n LogTools.println(subs[i] + \" is a bad file\");\n String[] matching = new FilePattern(subs[i]).getFiles();\n for (int j=0; j<matching.length; j++) {\n similarFiles.add(new Location(root, matching[j]).getAbsolutePath());\n }\n continue;\n }\n Location file = new Location(subs[i]);\n \n if (file.isDirectory()) getFiles(subs[i], files);\n else if (file.getName().equals(\".bioformats\")) {\n // special config file for the test suite\n configFiles.add(file.getAbsolutePath());\n }\n else {\n if (ir.isThisType(subs[i])) {\n LogTools.println(\"Adding \" + subs[i]);\n files.add(file.getAbsolutePath());\n }\n else LogTools.println(subs[i] + \" has invalid type\");\n }\n file = null;\n }\n }", "public List<String> checkFiles() {\n List<String> instances = new ArrayList<String>();\n if (StringUtils.isBlank(getPathOffset())) return instances;\n File[] directories = listFiles(new File(getPathOffset()), \"gcm_\");\n for (File dir : directories) {\n File[] files = listFiles(new File(dir.toString() + \"\\\\logs\"), \"GcmWebServices\");\n for (File file : files)\n instances.add(file.toString());\n }\n return instances;\n }", "private void findRecordings(){\n File[] files = new File(\"Concatenated/\").listFiles();\n _records.clear();\n _versionNum = 1;\n for (File file : files){\n if (file.isFile()){\n String nameOnFile = file.getName().substring(file.getName().lastIndexOf('_')+1,file.getName().lastIndexOf('.')).toUpperCase();\n if (nameOnFile.equals(_name.toUpperCase())){\n _records.add(file.getName());\n _versionNum++;\n }\n }\n }\n }", "public void searchAllFiles() {\n\t\t/**\n\t\t * Realizamos un pequeño algoritmo de recorrido de árboles en preorden para listar todos los\n\t\t * ebooks con un coste de 2n+1 donde n es el número de nodos.\n\t\t */\n\t\tArrayList<Entry> booksEntry = null;\n\t\ttry {\n\t\t\tString auxPath;\n\t\t\tbooksEntry = new ArrayList<DropboxAPI.Entry>();\n\t\t\tLinkedList<Entry> fifo = new LinkedList<DropboxAPI.Entry>();\n\t\t\tEntry nodo = _mApi.metadata(\"/\", 0, null, true, null);\n\t\t\tfifo.addAll(nodo.contents);\n\t\t\twhile (!fifo.isEmpty()) {\n\t\t\t\tSystem.out.println(fifo);\n\t\t\t\tnodo = fifo.getFirst();\n\t\t\t\tfifo.removeFirst();\n\t\t\t\tauxPath = nodo.path;\n\t\t\t\tif (nodo.isDir) {\n\t\t\t\t\tfifo.addAll(_mApi.metadata(auxPath, 0, null, true, null).contents);\n\t\t\t\t} else {\n\t\t\t\t\tif (isEbook(nodo))\n\t\t\t\t\t\tbooksEntry.add(nodo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"parar\");\n\t\t} catch (DropboxUnlinkedException e) {\n\t\t\t// The AuthSession wasn't properly authenticated or user unlinked.\n\t\t} catch (DropboxPartialFileException e) {\n\t\t\t// We canceled the operation\n\t\t\t_mErrorMsg = \"Download canceled\";\n\t\t} catch (DropboxServerException e) {\n\t\t\t// Server-side exception. These are examples of what could happen,\n\t\t\t// but we don't do anything special with them here.\n\t\t\tif (e.error == DropboxServerException._304_NOT_MODIFIED) {\n\t\t\t\t// won't happen since we don't pass in revision with metadata\n\t\t\t} else if (e.error == DropboxServerException._401_UNAUTHORIZED) {\n\t\t\t\t// Unauthorized, so we should unlink them. You may want to\n\t\t\t\t// automatically log the user out in this case.\n\t\t\t} else if (e.error == DropboxServerException._403_FORBIDDEN) {\n\t\t\t\t// Not allowed to access this\n\t\t\t} else if (e.error == DropboxServerException._404_NOT_FOUND) {\n\t\t\t\t// path not found (or if it was the thumbnail, can't be\n\t\t\t\t// thumbnailed)\n\t\t\t} else if (e.error == DropboxServerException._406_NOT_ACCEPTABLE) {\n\t\t\t\t// too many entries to return\n\t\t\t} else if (e.error == DropboxServerException._415_UNSUPPORTED_MEDIA) {\n\t\t\t\t// can't be thumbnailed\n\t\t\t} else if (e.error == DropboxServerException._507_INSUFFICIENT_STORAGE) {\n\t\t\t\t// user is over quota\n\t\t\t} else {\n\t\t\t\t// Something else\n\t\t\t}\n\t\t\t// This gets the Dropbox error, translated into the user's language\n\t\t\t_mErrorMsg = e.body.userError;\n\t\t\tif (_mErrorMsg == null) {\n\t\t\t\t_mErrorMsg = e.body.error;\n\t\t\t}\n\t\t} catch (DropboxIOException e) {\n\t\t\t// Happens all the time, probably want to retry automatically.\n\t\t\t_mErrorMsg = \"Network error. Try again.\";\n\t\t} catch (DropboxParseException e) {\n\t\t\t// Probably due to Dropbox server restarting, should retry\n\t\t\t_mErrorMsg = \"Dropbox error. Try again.\";\n\t\t} catch (DropboxException e) {\n\t\t\t// Unknown error\n\t\t\t_mErrorMsg = \"Unknown error. Try again.\";\n\t\t}\n\t\t_booksListEntry = booksEntry;\n\t\tcreateListBooks();\n\t}", "private void FindFiles(Path findPath)\n {\n\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(findPath))\n {\n\n for (Path thisPath : stream)\n {\n File file = new File(thisPath.toString());\n\n if (file.isDirectory())\n {\n dirCount++;\n\n if (HasMatch(thisPath.toString(), lineIncludePattern, lineExcludePattern))\n {\n dirLineMatchCount++;\n\n System.out.println(thisPath.toAbsolutePath().toString() + \",directory,none\");\n }\n\n if (HasMatch(thisPath.toString(), dirIncludePattern, dirExcludePattern))\n {\n dirMatchCount++;\n folderLevel++;\n //indentBuffer = String.join(\"\", Collections.nCopies(folderLevel * 3, \" \"));\n indentBuffer = \"\";\n\n //System.out.println(indentBuffer + thisPath.toString() + \" ...\");\n FindFiles(thisPath.toAbsolutePath());\n\n folderLevel--;\n //indentBuffer = String.join(\"\", Collections.nCopies(folderLevel * 3, \" \"));\n }\n }\n else\n {\n fileCount++;\n\n if (HasMatch(thisPath.getParent().toString(), lineIncludePattern, lineExcludePattern))\n {\n fileLineMatchCount++;\n\n System.out.println(thisPath.getParent().toString() + \",\" + thisPath.getFileName() + \",none\");\n }\n\n if (HasMatch(thisPath.toString(), fileIncludePattern, fileExcludePattern))\n {\n fileMatchCount++;\n\n File refFile;\n if (doReplace)\n {\n refFile = new File(thisPath.toString() + \"_bak\");\n file.renameTo(refFile);\n\n //System.out.println(indentBuffer + thisPath.toString());\n Scan(refFile.toPath().toAbsolutePath().toString(),thisPath.toAbsolutePath().toString());\n }\n else\n {\n //System.out.println(indentBuffer + thisPath.toString());\n Scan(file.toPath().toAbsolutePath().toString(),thisPath.toAbsolutePath().toString());\n }\n\n }\n }\n }\n }\n catch (Exception e)\n {\n System.err.format(\"Exception occurred trying to read '%s'.\", findPath);\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic String[] query() {\n\t\t// Return an array of (decoded) filenames\n\t\tif (!serviceDir.exists()) {\n\t\t\treturn new String[0];\n\t\t}\n\t\tFile[] files = serviceDir.listFiles();\n\t\tString[] addrs = new String[files.length];\n\t\tfor (int i = 0; i < addrs.length; ++i) {\n\t\t\taddrs[i] = decode(files[i].getName());\n\t\t}\n\t\treturn addrs;\n\t}", "@Override\n\tprotected List<String> performScanning(String inputFilePath) {\n\t\tList<String> resultList = App.fileParser(inputFilePath);\n\t\treturn resultList;\n\t}", "private static void testFileSearch(TrackingServer ts) {\r\n\t\tString requestFormat = \"FIND=%s|FAILED_SERVERS=%s\";\r\n\t\tString finalRequest = null;\r\n\t\tStringBuilder failedPeer = null;\r\n\t\tts.readL.lock();\r\n\t\ttry {\r\n\t\t\tfor (Entry<String, HashSet<Machine>> entry : ts.filesServersMap.entrySet()) {\r\n\t\t\t\tfailedPeer = new StringBuilder();\r\n\t\t\t\tfor (Machine m : entry.getValue()) {\r\n\t\t\t\t\tfailedPeer.append(m.toString());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tfinalRequest = String.format(requestFormat, entry.getKey(), failedPeer.toString());\r\n\t\t\t\tbyte[] result = ts.handleSpecificRequest(finalRequest);\r\n\t\t\t\tSystem.out.println(\"result of find=\" + Utils.byteToString(result) + \" entrySet=\" + entry.getValue());\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tts.readL.unlock();\r\n\t\t}\r\n\r\n\t}", "public void find() {\n for (CompilationUnit file : this.files) {\n // Iterate over each of the class/interface declaration in the file\n for (ClassOrInterfaceDeclaration clsOrInterfDecl\n : file.findAll(ClassOrInterfaceDeclaration.class)) {\n // Stop when the declration isnt an interface\n if (!clsOrInterfDecl.isInterface()) {\n continue;\n }\n this.clsOrInterfDeclrs.add(clsOrInterfDecl);\n }\n }\n }", "private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}", "private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}", "static public void readServerFiles(DbxClientV2 client) throws Exception\n\t{\n ListFolderResult result = client.files().listFolder(\"\");\n while (true) {\n for (Metadata metadata : result.getEntries()) {\n System.out.println(metadata.getPathLower());\n }\n if (!result.getHasMore()) {\n break;\n }\n result = client.files().listFolderContinue(result.getCursor()); \n }\n\t}", "public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }", "@Override\n\tpublic List<HumanFile> findHumanFileAll() {\n\t\treturn HumanFileMapper.findHumanFileAll();\n\t}", "List<File> getSystemDescriptionFiles();", "public ArrayList<File> findRelevantFiles (int reimburseID);", "public void record_XML_files(File dir) {\n\n FilenameFilter filter = null;\n\n // filter to only select pepXML files\n filter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.endsWith(Globals.pepXMLsuffix);\n }\n };\n String[] pep = dir.list(filter);\n for (String aPep : pep) {\n if (!Globals.pepXmlFiles.contains(aPep)) {\n Globals.pepXmlFiles.add(aPep);\n }\n }\n\n if (!Globals.byPeptide) {\n // filter to only select protXML files\n filter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.endsWith(Globals.protXMLsuffix);\n }\n };\n String[] prot = dir.list(filter);\n\n for (String aProt : prot) {\n if (!Globals.protXmlFiles.contains(aProt)) {\n Globals.protXmlFiles.add(aProt);\n }\n }\n }\n\n }", "@Override\n public ArrayList<MyTubeFile> local_listFilesByDescription(ServerInterface server, String description) throws RemoteException {\n if(server.equals(this) || servers.contains(server)){\n ArrayList<MyTubeFile> result = new ArrayList<>();\n for(MyTubeFile f : files){\n f.matchesDescription(description);\n if(f.matches > 0){\n result.add(f);\n }\n }\n return result;\n }\n return new ArrayList<>();\n }", "static void find(final File current,\n final Histogram class_use,\n final Histogram method_use) {\n if (current.isDirectory()) {\n for (File child:current.listFiles()){\n find(child, class_use, method_use);\n }\n } else if (current.isFile()) {\n String name = current.toString();\n if ( name.endsWith(\".zip\")\n || name.endsWith(\".jar\")\n || name.endsWith(\".rar\") // weird use of rar for zip, but ... used in case study.\n || name.endsWith(\".war\")\n ) {\n processZip(current, class_use, method_use);\n } else if (name.endsWith(\".class\")) {\n processClass(current, class_use, method_use);\n }\n } else {\n TextIo.error(\"While processing file `\" + current + \"` an error occurred.\");\n }\n }", "@Override\n public Collection<AbstractFile> visit(FileSystem fs) {\n \n SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();\n \n StringBuilder queryB = new StringBuilder();\n queryB.append(\"SELECT * FROM tsk_files WHERE (fs_obj_id = \").append(fs.getId());\n queryB.append(\") AND (size > 0)\");\n queryB.append(\" AND ( (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType());\n queryB.append(\") OR (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_DIR.getMetaType());\n queryB.append( \"AND (name != '.') AND (name != '..')\");\n queryB.append(\") )\");\n if (getUnallocatedFiles == false) {\n queryB.append( \"AND (type = \");\n queryB.append(TskData.TSK_DB_FILES_TYPE_ENUM.FS.getFileType());\n queryB.append(\")\");\n }\n \n try {\n final String query = queryB.toString();\n logger.log(Level.INFO, \"Executing query: \" + query);\n ResultSet rs = sc.runQuery(query);\n List<AbstractFile> contents = sc.resultSetToAbstractFiles(rs);\n Statement s = rs.getStatement();\n rs.close();\n if (s != null) {\n s.close();\n }\n return contents;\n } catch (SQLException ex) {\n logger.log(Level.WARNING, \"Couldn't get all files in FileSystem\", ex);\n return Collections.emptySet();\n }\n }", "private List<String> scoutForFiles(FileType fileType, Path path) {\n\t\tfinal List<String> filesFound = new ArrayList<>();\n\n\t\t// Create a stream of Paths for the contents of the directory\n\t\ttry (Stream<Path> walk = Files.walk(path)) {\n\n\t\t\t// Filter the stream to find only Paths that match the filetype we are looking\n\t\t\tfilesFound.addAll(walk.map(x -> x.toString())\n\t\t\t\t.filter(f -> f.endsWith(fileType.suffix)).collect(Collectors.toList()));\n\t\t} catch (IOException e) {\n\t\t\tthrow new MessagePassableException(EventKey.ERROR_EXTERNAL_DIR_NOT_READABLE, e, path.toString());\n\t\t}\n\n\t\treturn filesFound;\n\t}", "List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;", "private List<String> getMyDocsFromSomewhere(String aPath) {\n\t\tList<String> ret = new ArrayList<>();\n\t\ttry {\n\t\t\tFile startFileUrl = new File(aPath);\n\t\t\tFile[] files = startFileUrl.listFiles();\n\t\t\tfor (File file : files) {\n\t\t\t\t\n\t\t\t\tBodyContentHandler handler = new BodyContentHandler();\n\t\t\t\tMetadata metadata = new Metadata();\n\t\t\t\tFileInputStream inputstream = new FileInputStream(file);\n\t\t\t\tParseContext pcontext = new ParseContext();\n\n\t\t\t\t// Html parser\n\t\t\t\tHtmlParser htmlparser = new HtmlParser();\n\t\t\t\thtmlparser.parse(inputstream, handler, metadata, pcontext);\n\t\t\t\t// System.out.println(\"Contents of the document:\" +\n\t\t\t\t// handler.toString());\n\t\t\t\t// System.out.println(\"Metadata of the document:\");\n\t\t\t\tString[] metadataNames = metadata.names();\n\t\t\t\tStringBuilder build = new StringBuilder();\n\t\t\t\tfor (String name : metadataNames) {\n\t\t\t\t\tbuild.append(metadata.get(name));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tret.add(handler.toString());\n\t\t\t\tret.add(build.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"--error: \" + aPath);\n\t\t\tSystem.out.println(\"--error: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn ret;\n\t}", "static void allDocumentAnalyzer() throws IOException {\n\t\tFile allFiles = new File(\".\"); // current directory\n\t\tFile[] files = allFiles.listFiles(); // file array\n\n\t\t// recurse through all documents\n\t\tfor (File doc : files) {\n\t\t\t// other files we don't need\n\t\t\tif (doc.getName().contains(\".java\") || doc.getName().contains(\"words\") || doc.getName().contains(\"names\")\n\t\t\t\t\t|| doc.getName().contains(\"phrases\") || doc.getName().contains(\".class\")\n\t\t\t\t\t|| doc.getName().contains(\"Data\") || doc.getName().contains(\".sh\") || doc.isDirectory()\n\t\t\t\t\t|| !doc.getName().contains(\".txt\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString name = doc.getName();\n\t\t\tSystem.out.println(name);\n\t\t\tname = name.substring(0, name.length() - 11);\n\t\t\tSystem.out.println(name);\n\n\t\t\tif (!names.contains(name)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// make readers\n\t\t\tFileReader fr = new FileReader(doc);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\n\t\t\t// phrase list\n\t\t\tArrayList<String> words = new ArrayList<String>();\n\n\t\t\t// retrieve all text, trim, refine and add to phrase list\n\t\t\tString nextLine = br.readLine();\n\t\t\twhile (nextLine != null) {\n\t\t\t\tnextLine = nextLine.replace(\"\\n\", \" \");\n\t\t\t\tnextLine = nextLine.trim();\n\n\t\t\t\tif (nextLine.contains(\"no experience listed\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tString[] lineArray = nextLine.split(\"\\\\s+\");\n\n\t\t\t\t// recurse through every word to find phrases\n\t\t\t\tfor (int i = 0; i < lineArray.length - 1; i++) {\n\t\t\t\t\t// get the current word and refine\n\t\t\t\t\tString currentWord = lineArray[i];\n\n\t\t\t\t\tcurrentWord = currentWord.trim();\n\t\t\t\t\tcurrentWord = refineWord(currentWord);\n\n\t\t\t\t\tif (currentWord.equals(\"\") || currentWord.isEmpty()) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\twords.add(currentWord);\n\t\t\t\t}\n\t\t\t\tnextLine = br.readLine();\n\t\t\t}\n\n\t\t\tbr.close();\n\n\t\t\t// continue if empty\n\t\t\tif (words.size() == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// otherwise, increment number of files in corpus\n\t\t\tsize++;\n\n\t\t\t// updating the phrase count map for tf\n\t\t\tString fileName = doc.getName();\n\t\t\tphraseCountMap.put(fileName, words.size());\n\n\t\t\t// recurse through every word\n\t\t\tfor (String word : words) {\n\t\t\t\t// get map from string to freq\n\t\t\t\tHashMap<String, Integer> textFreqMap = wordFreqMap.get(fileName);\n\n\t\t\t\t// if it's null, make one\n\t\t\t\tif (textFreqMap == null) {\n\t\t\t\t\ttextFreqMap = new HashMap<String, Integer>();\n\t\t\t\t\t// make freq as 1\n\t\t\t\t\ttextFreqMap.put(word, 1);\n\t\t\t\t\t// put that in wordFreq\n\t\t\t\t\twordFreqMap.put(fileName, textFreqMap);\n\t\t\t\t} else {\n\t\t\t\t\t// otherwise, get the current num\n\t\t\t\t\tInteger currentFreq = textFreqMap.get(word);\n\n\t\t\t\t\t// if it's null,\n\t\t\t\t\tif (currentFreq == null) {\n\t\t\t\t\t\t// the frequency is just 0\n\t\t\t\t\t\tcurrentFreq = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t// increment the frequency\n\t\t\t\t\tcurrentFreq++;\n\n\t\t\t\t\t// put it in the textFreqMap\n\t\t\t\t\ttextFreqMap.put(word, currentFreq);\n\n\t\t\t\t\t// put that in the wordFreqMap\n\t\t\t\t\twordFreqMap.put(fileName, textFreqMap);\n\t\t\t\t}\n\n\t\t\t\t// add this to record (map from phrases to docs with that\n\t\t\t\t// phrase)\n\t\t\t\tinvertedMap.addValue(word, doc);\n\t\t\t}\n\t\t}\n\t}", "public static List<File> listAllConvertibleFilesInCwd() {\n File folder = new File( System.getProperty(\"user.dir\") );\n File[] listOfFiles = folder.listFiles();\n List<File> files = new ArrayList<>();\n\n for (int i = 0; i < (listOfFiles != null ? listOfFiles.length : 0); i++) {\n String match = \".*(?<!ac2)\\\\.mkv$|.*\\\\.avi$|.*\\\\.flv$|.*\\\\.mp4$\"; // match every video except mkv with ac2 behind it\n if(listOfFiles[i].getName().matches(match)) {\n files.add(listOfFiles[i]);\n }\n }\n return files;\n }", "public void ProcessFiles() {\n LOG.info(\"Processing SrcML files ...\");\n final Collection<File> allFiles = ctx.files.AllFiles();\n int processed = 0;\n final int numAllFiles = allFiles.size();\n final int logDiv = Math.max(1, Math.round(numAllFiles / 100f));\n\n for (File file : allFiles) {\n final String filePath = file.filePath;\n final FilePath fp = ctx.internFilePath(filePath);\n\n Document document = readSrcmlFile(filePath);\n DocWithFileAndCppDirectives extDoc = new DocWithFileAndCppDirectives(file, fp, document, ctx);\n\n internAllFunctionsInFile(file, document);\n processFeatureLocationsInFile(extDoc);\n\n if ((++processed) % logDiv == 0) {\n int percent = Math.round((100f * processed) / numAllFiles);\n LOG.info(\"Parsed SrcML file \" + processed + \"/\" + numAllFiles\n + \" (\" + percent + \"%) (\" + (numAllFiles - processed) + \" to go)\");\n }\n }\n\n LOG.info(\"Parsed all \" + processed + \" SrcML file(s).\");\n }", "abstract public Shard<Set<File>> getFilesKnowledge();", "private void searchDFS(File[] files, ArrayList<String> list) {\n\n\t\tfor (File file : files) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tif (file.getAbsolutePath().endsWith(GIT)) {\n\t\t\t\t\tgitDir = file.getAbsolutePath();\n\t\t\t\t}\n\t\t\t\tsearchDFS(file.listFiles(), list);\n\t\t\t} else {\n\t\t\t\tif (file.getName().endsWith(EXTENSION)) {\n\t\t\t\t\tlist.add(file.getAbsolutePath());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void inspect() {\n\t\tFileHandler handler = new FileHandler();\n\t\tIContainer container = handler.findOrCreateContainer(packageBase);\n\t\tIResource[] members = null;\n\t\ttry {\n\t\t\tmembers = container.members();\n\t\t} catch (CoreException e) {\n\t\t\tSystem.out.println(\"Could not access members of the container \"\n\t\t\t\t\t+ container.getFullPath() + \".\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttraverseSourceFiles(members);\n\t}", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "List<File> list(String directory) throws FindException;", "private void listAllClasses(List<Path> foundFiles, Path root) {\r\n if (root.toFile().isFile()) {\r\n foundFiles.add(root);\r\n } else {\r\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(root, filter)) {\r\n for (Path path : stream) {\r\n if (Files.isDirectory(path)) {\r\n listAllClasses(foundFiles, path);\r\n } else {\r\n foundFiles.add(path);\r\n }\r\n }\r\n } catch (AccessDeniedException e) {\r\n logger.error(\"Access denied to directory {}\", root, e);\r\n } catch (IOException e) {\r\n logger.error(\"Error while reading directory {}\", root, e);\r\n }\r\n }\r\n }", "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}", "private Collection<File> getInputFiles(String docRoot) {\r\n File dir = new File(docRoot);\r\n if (testXMLDir == null || !dir.isDirectory() || !dir.canRead()) {\r\n throw new RuntimeException(\"unable to read from this directory: \" + testXMLDir);\r\n }\r\n Collection<File> xmlFiles = new ArrayList<File>();\r\n xmlFiles = listFileNames(dir,xmlFiles);\r\n return xmlFiles;\r\n }", "public static void showfiles()\n\t{\n File curDir = new File(\".\");\n String[] fileNames = curDir.list();\n ArrayList<String> data = new ArrayList<String>();\n\n //Find files which may have data. (aka, are in the .dat format)\n for(String s:fileNames)\n if(s.endsWith(\".dat\"))\n data.add(s);\n\n\t\tdata.trimToSize();\n\t\t\n\t\tclearScreen();\n\n\t\tSystem.out.println(\"\\t\\t\\tTHE BOOK SEARCH PROGRAM\");\n\n\t\t\n\t\tfor(int i = 0; i < 80; i++)\n\t\tSystem.out.print(\"-\");\n\t\n\n\t\tSystem.out.println(\"\\nWhat file is your book data stored in?\\n\");\n\t\n\t\tSystem.out.println(\"Here are the .dat file(s) in the current directory:\\n\");\n\n\t \tfor(int i = 0; i < data.size(); i++)\n\t\tSystem.out.print(\"[ \" + data.get(i) + \" ]\\t\");\n\t\tSystem.out.println(\"\\n\");\n\n\n\t}", "static void walkTheDir(){ \n\t try (Stream<Path> paths = Files.walk(Paths.get(\"/ownfiles/tullverketCert/source\"))) {\n\t \t paths\n\t \t .filter(Files::isRegularFile)\n\t \t //.forEach(System.out::println);\n\t \t .forEach( e ->{\n\t \t \t\tSystem.out.println(e);\n\t \t \t\tSystem.out.println(e.getParent());\n\t \t \t\t\n\t \t \t});\n\t \t \n \t}catch (Exception e) { \n\t System.out.println(\"Exception: \" + e); \n\t } \n\t }", "public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}", "public void start()\n {\n FileVector = FileHandler.getFileList( harvesterDirName , filterArray, false );\n iter = FileVector.iterator();\n }", "private static List<File> rootFiles(final File metaDir) throws IOException {\n File containerFile = new File(metaDir, \"container.xml\");\n if(!containerFile.exists()) {\n throw new IOException(\"Missing 'META-INF/container.xml'\");\n }\n\n List<File> rootFiles = Lists.newArrayListWithExpectedSize(2);\n try(FileInputStream fis = new FileInputStream(containerFile)) {\n Document doc = Jsoup.parse(fis, Charsets.UTF_8.name(), \"\", Parser.xmlParser());\n Elements elements = doc.select(\"rootfile[full-path]\");\n for(Element element : elements) {\n String path = element.attr(\"full-path\").trim();\n if(path.isEmpty()) {\n continue;\n } else if(path.startsWith(\"/\")) {\n path = path.substring(1);\n }\n File rootFile = new File(metaDir.getParent(), path);\n if(!rootFile.exists()) {\n throw new IOException(String.format(\"Missing file, '%s'\", rootFile.getAbsolutePath()));\n }\n rootFiles.add(rootFile);\n }\n }\n\n return rootFiles;\n }", "private void seekBy() {\n Queue<File> queue = new LinkedList<>();\n queue.offer(new File(root));\n while (!queue.isEmpty()) {\n File file = queue.poll();\n File[] list = file.listFiles();\n if (file.isDirectory() && list != null) {\n for (File tempFile : list) {\n queue.offer(tempFile);\n }\n } else {\n if (args.isFullMatch() && searchingFile.equalsIgnoreCase(file.getName())) {\n result.add(file);\n }\n if (args.isMask() && searchingFile.replaceAll(\"\\\\*\", \".*\").equalsIgnoreCase(file.getName())) {\n result.add(file);\n }\n if (args.isRegex() && file.getName().matches(args.getName())) {\n result.add(file);\n }\n }\n }\n this.writeLog(output, result);\n }", "public static void main(String[] args) throws IOException {\n String last = \"\";\n HashSet<String> types = new HashSet<String>();\n\n int c = 0;\n try {\n FileReader fr = new FileReader(inDir + \"fr\" + \"/wkd_uris_selection\");\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n addToFile(line);\n c++;\n //if(c > 100) break;\n }\n\n fw.close();\n br.close();\n } catch (FileNotFoundException fne) {// TODO\n fne.printStackTrace();\n } catch (IOException ioe) {// TODO\n ioe.printStackTrace();\n }\n\n }", "public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}", "public void findMatchingFiles()\n {\n\t\t\n\t\t//Get Server name from the log directory path\n\t\t\t\t\t\t\n\t\tString server = path.substring(0, path.length()-2);\n\t\tserver = server.substring(0,server.lastIndexOf(\"/\"));\n\t\tserver = server.substring(server.lastIndexOf(\"/\") + 1);\n\t\tSystem.out.println(\"Server Name is : \" + server);\n\t\t\t\t\t\t\n Map <String, String> logPatternMap = new HashMap<>(); // Map of log stash config and RegEx\n List<String> fileList = new ArrayList<>(); // List of All files in Log Dir\n List<String> logStashCommandList = new ArrayList<>(); // List of commands to be executed for log stashing files\n String placeholder = \"FILE_PATH\";\n logPatternMap = fetchPropertyFromFile();\n fileList = getAllLogFileNames();\n\n for (String file : fileList) {\n\n for (Map.Entry<String, String> entry : logPatternMap.entrySet()) {\n String fileName = entry.getKey();\n String pattern = entry.getValue();\n\n if (Pattern.matches(pattern,file))\n {\n System.out.println( \"Found a matching file : \" + pattern + \" : \" + file );\n File source = new File(\"/slog/templates/\" + fileName);\n File dest = new File(\"/slog/configs/\" + fileName);\n File logFile = new File(path + file);\n try {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n //copy files from template directory to configs directory\n\t\t\t\t\t\tFiles.copy(source.toPath(), dest.toPath()); \n System.out.println(\"Destination path is : \" + dest.getPath());\n\n //Replace contents of the config file to match log file paths\n\n BufferedReader reader = new BufferedReader(new FileReader(dest));\n String line = \"\", oldtext = \"\";\n while((line = reader.readLine()) != null)\n {\n oldtext += line + \"\\r\\n\";\n }\n reader.close();\n\n String replacedtext = oldtext.replaceAll(placeholder, logFile.getPath().toString());\n\n FileWriter writer = new FileWriter(dest);\n writer.write(replacedtext);\n writer.close();\n\n //Form LogStash command and Execute it\n\n String command = \"/slog/bin/logstash -f \" + dest.getPath() + \" < \" + path + file;\n String[] cmd = { \"/bin/sh\", \"-c\", command};\n Process process = Runtime.getRuntime().exec(cmd);\n try {\n BufferedReader out = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n out.lines().forEach(System.out::println);\n process.waitFor();\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //delete config file and log file after the work is done\n dest.delete();\n // logFile.delete();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }\n }\n\n }", "private static File[] filesMiner(String path) {\n try {\n File directoryPath = new File(path);\n FileFilter onlyFile = new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isFile();\n }\n }; // filter directories\n return directoryPath.listFiles(onlyFile);\n } catch (Exception e) {\n System.err.println(UNKNOWN_ERROR_WHILE_ACCESSING_FILES);\n return null;\n }\n\n }", "public void performSearch() throws IOException {\n configuration();\n\n File fileDir = new File(queryFilePath);\n if (fileDir.isDirectory()) {\n File[] files = fileDir.listFiles();\n Arrays.stream(files).forEach(file -> performSearchUsingFileContents(file));\n }\n }", "public static ArrayList<String> getAvailableParts() {\n ArrayList<String> allParts = new ArrayList<String>();\n String pattern = \"_db.dat\";\n File dir = new File(getRapidSmithPath() + File.separator + \"devices\");\n if (!dir.exists()) {\n MessageGenerator.briefErrorAndExit(\"ERROR: No part files exist. Please run \" +\n Installer.class.getCanonicalName() + \" to create part files.\");\n }\n for (String partFamily : dir.list()) {\n File partDir = new File(dir.getAbsolutePath() + File.separator + partFamily);\n for (String part : partDir.list()) {\n if (part.endsWith(pattern)) {\n allParts.add(part.replace(pattern, \"\"));\n }\n }\n }\n return allParts;\n }", "public void percentages(String[] files, PrintWriter out) throws IOException {\n\t\t\n\t\tint i, j; //loop counters\n\t\tint[] infoArray; //array that holds the counters for each file-to-file comparison \n\t\tLinkedList<RevisionNode> theList = toAnalyze; // takes a copy of the RevisionNode list of data parsed from the log\n\t\t\n\t\tfor (i = 0; i < files.length; i++) { //for the every element in the parameter array\n\t\t\tinfoArray = new int[files.length]; //set the array length to reflect how many elements there are\n\t\t\tIterator<RevisionNode> lIterator = theList.iterator(); //iterate through the list, for every node\n\t\t\t\n\t\t\twhile (lIterator.hasNext()) { //for every node in the RevisionNode list\n\t\t\t\tRevisionNode next = lIterator.next(); //take the next node in the list\n\t\t\t\t\n\t\t\t\tif (next.getRelevantFiles().contains(files[i])) { //if the current revision involved the current file, else skip this\n\t\t\t\t\t\n\t\t\t\t\tfor (j = 0; j < files.length; j++) { //checks for the presence of every other file\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (next.getRelevantFiles().contains(files[j])) { //if another is present\n\t\t\t\t\t\t\tinfoArray[j] += 1; //increment its respective counter, also counts occurrences of the current file as well\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(); //spacing\n\t\t\tout.println();\n\t\t\tSystem.out.println(\"For the file \" + files[i].substring(files[i].lastIndexOf(\"/\") + 1) + \":\"); //indicates what file we are talking about\n\t\t\tout.println(\"For the file \" + files[i].substring(files[i].lastIndexOf(\"/\") + 1) + \":\");\n\t\t\n\t\t\tfor (j = 0; j < files.length; j++) { //for the length of our data array\n\t\t\t\n\t\t\t\tif (j != i) { //ignoring the current files slot since it would be 100% no matter what\n\t\t\t\t\n\t\t\t\t\tint percent = (int) Math.round((infoArray[j] / (double) infoArray[i]) * 100); //round to the nearest percent\n\t\t\t\t\t//indicates that when file i is changed in a revision, file j is also changed at the same revision percent% of the time\n\t\t\t\t\tSystem.out.println(\"\\t When changed, \" + files[j].substring(files[j].lastIndexOf(\"/\") + 1) + \" is changed \" + percent + \"% of the time.\");\n\t\t\t\t\tout.println(\"\\t When changed, \" + files[j].substring(files[j].lastIndexOf(\"/\") + 1) + \" is changed \" + percent + \"% of the time.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public abstract List<LocalFile> getAllFiles();", "List<String> getFiles(String path, String searchPattern) throws IOException;", "private List<File> checkAndRemoveMatchingFiles(AbstractSchemaElement schemaElement) {\n\t\tSchemaFileMatcher fileMatcher = new SchemaFileMatcher(schemaElement);\n\t\tList<File> matchedFiles = new ArrayList<File>();\n\t\tboolean change = true;\n\t\twhile (change) {\n\t\t\tchange = false;\n\t\t\tfor (int i = 0; i < files.size(); i++) {\n\t\t\t\tFile file = files.get(i);\n\t\t\t\tString filename = file.getName();\n\t\t\t\tif (fileMatcher.matches(filename)) {\n\t\t\t\t\tfiles.remove(i);\n\t\t\t\t\tmatchedFiles.add(file);\n\t\t\t\t\tString schema = schemaElement.getSchema();\n\t\t\t\t\tif (schema != null && checkTrees) {\n\t\t\t\t\t\tLOG.trace(\"*******following: \"+schema);\n\t\t\t\t\t\tContainerCheck schemaCheck = new ContainerCheck(schema);\n\t\t\t\t\t\tschemaCheck.setCheckTrees(checkTrees);\n\t\t\t\t\t\tschemaCheck.checkProject(new SimpleContainer(file));\n//\t\t\t\t\t\tcheckUnmatchedFiles();\n\t\t\t\t\t\tLOG.trace(\"*******end: \"+schema);\n\t\t\t\t\t}\n\t\t\t\t\tchange = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn matchedFiles;\n\t}", "public void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }", "public ProcessFilesGaugeSet() {\n this.osBean = ManagementFactory.getOperatingSystemMXBean();\n this.osBeanClass = getFirstClassFound(UNIX_OPERATING_SYSTEM_BEAN_CLASS_NAMES);\n this.openFilesMethod = detectMethod(\"getOpenFileDescriptorCount\");\n this.maxFilesMethod = detectMethod(\"getMaxFileDescriptorCount\");\n }", "private void scanForHelpTexts() {\n\t\tif (helpTextBase == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tFile helpDir = new File(helpTextBase + \"/\");\n\t\t\tFile[] list = filter(helpDir.listFiles(), \"tip\", \".html\");\n\t\t\thelpTexts = new URL[list.length];\n\t\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\t\thelpTexts[i] = list[i].toURI().toURL();\n\t\t\t}\n\t\t} catch (NullPointerException npe) {\n\t\t\tbigInterface.getConsole().postMessage(\n\t\t\t\t\t\"ERROR (NullPointer) scanning for daily tip files at: \" + helpTextBase);\n\t\t\thelpTexts = null;\n\t\t} catch (MalformedURLException mue) {\n\t\t\tbigInterface.getConsole().postMessage(\n\t\t\t\t\t\"ERROR (MalformedURL) scanning for daily tip files at: \" + helpTextBase);\n\t\t\thelpTexts = null;\n\t\t}\n\t\tif (helpTexts != null) {\n\t\t\t// just in case a help file was deleted and the counter points\n\t\t\t// to an array index that's not there anymore we change it down\n\t\t\t// to the last available daily tip help text\n\t\t\tif (nextHelpText >= helpTexts.length) {\n\t\t\t\tnextHelpText = helpTexts.length - 1;\n\t\t\t\t// store the index for the next tip\n\t\t\t\tparser.set(configFileKeyNext, new Integer(nextHelpText).toString());\n\t\t\t}\n\t\t}\n\t}", "public Map<String, Object> fileFinder(String file_id) {\n\t\tMap<String, Object> tempMap = new HashMap<String,Object>();\n\t\tMap<String, Object> findMap = new HashMap<String,Object>();\n\t\tArrayList<File> rootList= new ArrayList<File>(Arrays.asList(rootFile.listFiles()));\n\t\tString curName;\n\t\tfor(File file:rootList) {\n\t\t\tcurName = file.getName();\n\t\t\tString reg1 = \"(^[FP]_\"+file_id+\"_TB.xml$)\";\n\t\t\tPattern p = Pattern.compile(reg1);\n\t\t\tMatcher m = p.matcher(curName);\n\t\t\tif(m.find()) {\n\t\t\t\tif((file.getName()).charAt(0)=='F')\n\t\t\t\t\ttempMap.put(\"F\", new File(file.getPath()));\n\t\t\t\telse\n\t\t\t\t\ttempMap.put(\"P\", new File(file.getPath()));\n\t\t\t}\n\t\t\ttempMap.put(curName, tempMap);\n\t\t}\n\t\treturn tempMap;\n\t}", "public List getAll() throws FileNotFoundException, IOException;", "private void scanDocuments()\n{\n document_counts = new HashMap<>();\n kgram_counts = new HashMap<>();\n for (File f : root_files) {\n addDocuments(f);\n }\n}", "public void execute() {\n\t\tfinal File toCheckDirectory = new File(toCheck);\n\t\tfinal File checkInDirectory = new File(checkIn);\n\t\tfinal List<File> toCheckFiles = new ArrayList<>();\n\t\tfinal List<File> checkInFiles = new ArrayList<>();\n\n\t\tline();\n\t\treadFiles(toCheckDirectory, toCheckFiles);\n\t\tSystem.out.println(\"Files to check : \" + toCheckFiles.size());\n\t\treadFiles(checkInDirectory, checkInFiles);\n\t\tSystem.out.println(\"Files for check: \" + checkInFiles.size());\n\t\tline();\n\t\tSystem.out.println(\"\");\n\t\ttoCheckFiles.stream().forEach(file -> {\n\t\t\tfinal String name = file.getName();\n\t\t\tfinal List<File> foundList = checkInFiles.stream().filter( //\n\t\t\t\t\tcheck -> check.getName().equalsIgnoreCase(name)).collect(Collectors.toList());\n\n\t\t\tif (foundList == null || foundList.isEmpty()) {\n\t\t\t\tSystem.out.println(\"Not found: \" + file.getAbsolutePath());\n\t\t\t\tnotFound++;\n\t\t\t} else {\n\t\t\t\tfinal int size = foundList.size();\n\n\t\t\t\tif (size > 1) {\n\t\t\t\t\tSystem.out.println(\"\" + size + \" \" + file.getAbsoluteFile());\n\t\t\t\t\tif (size < PRINT_EACH_FILE_IF_LESS_THAN_THIS_NUMBER) {\n\t\t\t\t\t\tfoundList.stream().forEach(foundFile -> {\n\t\t\t\t\t\t\tSystem.out.println(\"- \" + foundFile.getAbsolutePath());\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"\");\n\t\tline();\n\t\tSystem.out.println(\"Not found: \" + notFound);\n\t\tSystem.out.println(\"Done.\");\n\t\tline();\n\t}", "public static void main(String argv[]) throws IOException {\n\ttry {\n\t\tArrayList<String> list1 = new ArrayList<String>(listFiles(XML_FILE_DIRECTORY));\n\t\thowManyFiles(list1);\n\t\tgenerateFilter(FILTER);\n\t\tinsertRecordIntoDbUserTable(list1);\n\t\tconfirmationDone();\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n }", "public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}", "private static ArrayList<Node> getNodes(File path)\n {\n //log the event happining\n Start.log(\"Getting Nodes\");\n ArrayList<Node> tempNodes = new ArrayList<Node>();\n ArrayList<String> file = getFile(path);\n for (int i =0; i < file.size();i++)\n {\n //use scanner to pharse the string into the relivant bits for getting the node data\n Scanner parse = new Scanner(file.get(i));\n tempNodes.add(new Node(parse.nextInt(),CPType.valueOf(parse.next())));\n }\n return tempNodes;\n }", "public abstract List<String> scanAllClassNames();", "@Test\n\tpublic void testPresenceOfWellknownFileAnalyzers() {\n\t\tint i = 0;\n\t\tfinal ServiceLoader<FileAnalyzer> loader = ServiceLoader.load(FileAnalyzer.class);\n\t\tfor(FileAnalyzer la: loader) {\n\t\t\ti++;\n\t\t\tSystem.out.println(\"File analyzer #\" + i + \": \" + la.getClass().getName());\n\t\t}\n\t\tassertTrue(i>=7);\n\t}", "ArrayList<File> findSong(File file) {\n ArrayList<File> arrayList = new ArrayList<>();\n\n File[] files = file.listFiles();\n for (File singleFile : files) {\n if (singleFile.isDirectory() && !singleFile.isHidden()) {\n arrayList.addAll(findSong(singleFile));\n } else {\n if (singleFile.getName().endsWith(\".mp3\") || singleFile.getName().endsWith(\".wva\")) {\n arrayList.add(singleFile);\n }\n }\n }\n return arrayList;\n }", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "public static void main(String[] args) throws IOException {\n\n\n findFile();\n return;\n }", "public static void main(String[] args) {\n\n File dir = new File(\"D:/test.txt\");\n FileFilter fr = (File f) -> f.isDirectory();\n File[] fs = dir.listFiles(fr);\n }", "@Test\n\tpublic void probandoConParser() {\n\t\tString dBoxUrl = \"/home/julio/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_4_text_mining/material/tp3/\";\n\t\tString modelUrl = dBoxUrl + \"NER/models/es-ner-person.bin\";\n\t\tString filesUrl = dBoxUrl + \"NER/archivoPrueba\";\n\t\tString sampleFile = filesUrl + \"/viernes-23-05-14-alan-fitzpatrick-gala-cordoba.html\";\n\t\tList<String> docs = getMyDocsFromSomewhere(filesUrl);\n\n\t\ttry {\n\t\t\t// detecting the file type\n\t\t\tBodyContentHandler handler = new BodyContentHandler();\n\t\t\tMetadata metadata = new Metadata();\n\t\t\tFileInputStream inputstream = new FileInputStream(new File(sampleFile));\n\t\t\tParseContext pcontext = new ParseContext();\n\n\t\t\t// Html parser\n\t\t\tHtmlParser htmlparser = new HtmlParser();\n\t\t\thtmlparser.parse(inputstream, handler, metadata, pcontext);\n\t\t\tSystem.out.println(\"Contents of the document:\" + handler.toString());\n\t\t\tSystem.out.println(\"Metadata of the document:\");\n\t\t\tString[] metadataNames = metadata.names();\n\n\t\t\tfor (String name : metadataNames) {\n\t\t\t\tSystem.out.println(name + \": \" + metadata.get(name));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\n\t}", "private static File[] listScripts(File baseDir) {\n\n return baseDir.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n boolean hasJsonFileExtension = \"json\".equals(Files.getFileExtension(name));\n if (!(hasJsonFileExtension || new File(dir, name).isDirectory())) {\n System.err.println(\"Ignoring script \" + name + \". File name must be have .json extension.\");\n return false;\n }\n Integer index = getIndex(name);\n if (index == null) {\n System.err.println(\"Ignoring script \" + name + \". File name must start with an index number followed by an underscore and a description.\");\n return false;\n }\n return true;\n }\n });\n }", "public static ArrayList<File> findDevices() {\n return findDevices(\"/dev/\");\n }", "public void compareAllFiles(){\n\n // setting up objects for comparing files\n System.out.println(\"Start of checking process of all files\");\n String file = \"\";\n int fileErrors = 0;\n FileWriter logFile = null;\n BufferedWriter logFileOut = null;\n\n try {\n logFile = new FileWriter(\"java_20/server/logFile.txt\");\n logFileOut = new BufferedWriter(logFile);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n // for loop to check over all files and updates logfiles\n for (int currentFile = 1; currentFile <= fileCount; currentFile++) {\n file = \"java_20/server/receivedFiles/receivedFile\"+currentFile+\".txt\";\n\n try {\n if (compareFile(file,\"java_20/server/standardFile.txt\") == false ){\n fileErrors++;\n logFileOut.write(\"ReceivedFile\"+currentFile+\":\\tERROR!!!!\\n\");\n }\n else\n logFileOut.write(\"ReceivedFile\"+currentFile+\":\\tpassed\\n\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n\n // closing files and messages\n try {\n logFileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(\"Number of errors found: \" + fileErrors);\n System.out.println(\"check \\'logFile.txt\\' for details\");\n\n }", "public String[] listFiles() throws FileSystemUtilException \r\n\t{\r\n\t\tString remoteDir = null;\r\n\t\tString remoteFileName = null;\r\n\t\tString command = null;\r\n\t\tint signal = -1;\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":listFiles()\");\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect(); \r\n\t\t\t\r\n\t\t\tint lastSeperatorIndex = -1;\r\n\t\r\n\t\t\tif(remoteFilePath.lastIndexOf(\"/\") != -1){\r\n\t\t\t\tlastSeperatorIndex = remoteFilePath.lastIndexOf(\"/\");\r\n\t\t\t}else if(remoteFilePath.lastIndexOf(\"\\\\\") != -1){\r\n\t\t\t\tlastSeperatorIndex = remoteFilePath.lastIndexOf(\"\\\\\");\r\n\t\t\t}\r\n\t\t\tif(lastSeperatorIndex == remoteFilePath.length()-1)\r\n\t\t\t{\r\n\t\t\t\tremoteDir = remoteFilePath;\r\n\t\t\t\tremoteFileName = \"\";\r\n\t\t\t\tlogger.debug(\"file path ends with / - directory is \"+remoteDir+\" , filename is \"+remoteFileName);\r\n\t\t\t\tcommand = \"cd \"+remoteDir;\t\t\t\r\n\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\r\n\t\t\t\tif(signal != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tremoteDir = remoteFilePath.substring(0,lastSeperatorIndex+1);\r\n\t\t\t\tremoteFileName = remoteFilePath.substring(lastSeperatorIndex+1,remoteFilePath.length());\r\n\t\t\t\tlogger.debug(\"file path not ends with / - directory is \"+remoteDir+\" , filename is \"+remoteFileName);\r\n\t\t\t\tcommand = \"cd \"+remoteDir;\r\n\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\t\tif(signal != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(!remoteFileName.startsWith(\"*.\") && !remoteFileName.endsWith(\".*\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tlogger.debug(\"file/directory name \"+remoteFileName+\" not started with *. or ends wirh .*\");\r\n\t\t\t\t\tcommand = \"cd \"+remoteDir+remoteFileName;\r\n\t\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\tif(signal != 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tboolean isFile = false;\r\n\t\t\t\t\t\tcommand = \"ls \"+remoteDir;\r\n\t\t\t\t\t\texecuteSimpleCommand(command);\r\n\t\t\t\t\t\tString[] tempFileNames = getFileNamesArray(output);\r\n\t\t\t\t\t\tfor(int j = 0; j < tempFileNames.length; j++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(remoteFileName.equals(tempFileNames[j]))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tisFile = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!isFile)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlogger.debug(remoteFileName+\" is a file\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.debug(remoteFileName+\" is a directory\");\r\n\t\t\t\t\t\tremoteDir = remoteDir+remoteFileName;\r\n\t\t\t\t\t\tremoteFileName = \"\";\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"Before getting list of files : current dir \"+remoteDir+\" getting files list for \"+remoteFileName);\r\n\t\t\tcommand = \"cd \"+remoteDir+\";ls -F \"+remoteFileName;\r\n\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\tdisconnect();\r\n\t\t\tif(signal != 0)\r\n\t\t\t{\t\t\t \r\n\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t}\r\n\t\t\tString[] filesList = getFileNamesArray(output);\t\t\r\n\t\t\tlogger.debug(\"End: \"+getClass().getName()+\":listFiles()\");\r\n\t\t\treturn filesList;\r\n\t\t}\r\n\t\t\r\n\t\tcatch(FileSystemUtilException e)\r\n\t\t{\r\n\t\t disconnect();\r\n\t\t if(e.getMessage() != null && e.getMessage().equals(\"FL0071\")){\r\n\t\t \tthrow new FileSystemUtilException(\"FL0071\");\r\n\t\t }\r\n\t\t\tthrow new FileSystemUtilException(e.getErrorCode(),e.getException());\r\n\t\t}\r\n\t\t\r\n\t}", "public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "public abstract List<String> getFiles( );", "protected abstract List<O> parseFileForObservations(Scanner scn);", "public void read(List<File> filesOrDirs) throws IOException {\n List<File> files = resolveFiles(filesOrDirs);\n\n if (files.isEmpty())\n return;\n\n for (File file : files) {\n buf.clear();\n\n UUID nodeId = nodeId(file);\n\n try (FileIO io = ioFactory.create(file)) {\n fileIo = io;\n\n while (true) {\n if (io.read(buf) <= 0) {\n if (forwardRead == null)\n break;\n\n io.position(forwardRead.nextRecPos);\n\n buf.clear();\n\n curHnd = handlers;\n\n forwardRead = null;\n\n continue;\n }\n\n buf.flip();\n\n buf.mark();\n\n while (deserialize(buf, nodeId)) {\n if (forwardRead != null && forwardRead.found) {\n if (forwardRead.resetBuf) {\n buf.limit(0);\n\n io.position(forwardRead.curRecPos);\n }\n else\n buf.position(forwardRead.bufPos);\n\n curHnd = handlers;\n\n forwardRead = null;\n }\n\n buf.mark();\n }\n\n buf.reset();\n\n if (forwardRead != null)\n forwardRead.resetBuf = true;\n\n buf.compact();\n }\n }\n\n knownStrs.clear();\n forwardRead = null;\n }\n }", "public static void processFile(File f) throws Exception {\n\t\ttry {\r\n\t\t\tBufferedReader bufRead = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(f)));\r\n\t\t\tString S1 = \"\";\r\n\t\t\twhile ((S1 = bufRead.readLine()) != null) {\r\n\t\t\t\t//System.out.println(S1);\r\n\t\t\t\tgetPubTypes(S1);\r\n\t\t\t\t//System.out.println();\r\n\t\t\t}\r\n\t\t\tbufRead.close();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(\"Something is wrong with reading file! \"\r\n\t\t\t\t\t+ \"Can't find the appropriate file!\");\r\n\t\t}\r\n\r\n\t\t// return allDiseases;\r\n\r\n\t}", "private static List<BufferedInputStream> getOpenFiles(String[] args) {\n return Stream.of(args)\n .map(Paths::get)\n .map(EntryPoint::openFile)\n .filter(Optional::isPresent)\n .map(Optional::get)\n .map(BufferedInputStream::new)\n .collect(Collectors.toList());\n }", "private static String[] findFiles(String dirpath) {\n\t\tString fileSeparator = System.getProperty(\"file.separator\");\n\t\tVector<String> fileListVector = new Vector<String>();\n\t\tFile targetDir = null;\n\t\ttry {\n\t\t\ttargetDir = new File(dirpath);\n\t\t\tif (targetDir.isDirectory())\n\t\t\t\tfor (String val : targetDir.list(new JavaFilter()))\n\t\t\t\t\tfileListVector.add(dirpath + fileSeparator + val);\n\t\t} catch(Exception e) {\n\t\t\tlogger.error(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString fileList = \"\";\n\t\tfor (String filename : fileListVector) {\n\t\t\tString basename = filename.substring(filename.lastIndexOf(fileSeparator) + 1);\n\t\t\tfileList += \"\\t\" + basename;\n\t\t}\n\t\tif (fileList.equals(\"\")) \n\t\t\tfileList += \"none.\";\n\t\tlogger.trace(\"Unpackaged source files found in dir \" + dirpath + fileSeparator + \": \" + fileList);\n\t\t\n\t\treturn (String[]) fileListVector.toArray(new String[fileListVector.size()]);\n\t}", "public static void findStructureFiles() {\n\t\tstructureFiles = new LinkedList<File>();\n\t\tLinkedList<File> unexploredDirectories = new LinkedList<File>();\n\t\tFile baseDir = new File(\"structures\");\n\t\t\n\t\tif (baseDir.exists() && baseDir.isDirectory()) {\n\t\t\t// load base directory's files\n\t\t\trecursiveFindStructureFiles(baseDir, unexploredDirectories);\n\t\t\t\n\t\t\t// load sub-directories' files, breadth-first\n\t\t\twhile (!unexploredDirectories.isEmpty()) {\n\t\t\t\trecursiveFindStructureFiles(unexploredDirectories.pop(), unexploredDirectories);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalStateException(\"Unable to locate structures folder.\");\n\t\t}\n\t}", "private void getDriveContents() {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n // get only the folders in the root directory of drive account\n List<File> files = getContents(TOP_LEVEL + \" and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n \n prune(targetDir, files);\n processLanguages(files);\n }\n });\n t.start();\n }", "private static List<String> loadDocuments(String path) throws Exception {\n\t\tFile folder = new File(path);\n\t\tArrayList<String> documents = new ArrayList<String>();\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tSystem.out.println(fileEntry.getName());\n\t\t\tif (fileEntry.isFile() && !fileEntry.isHidden()) {\n\t\t\t\tString content = getTextFromHtml(fileEntry);\n\t\t\t\tdocuments.add(content);\n\t\t\t}\n\t\t}\n\t\treturn documents;\n\t}", "void parallelSearch(File searchFrom) {\n for (File file : searchFrom.listFiles()) {\n if (file.isDirectory()) {\n this.parallelSearch(file);\n }\n\n if (extensions.stream().anyMatch(x -> file.getName().endsWith(x))) {\n try {\n queue.put(file);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }", "GitFile[] getFilesImpl() throws Exception\n {\n TreeWalk twalk = new TreeWalk(getRepo()); twalk.addTree(_rev);\n List <GitFile> files = new ArrayList();\n while(twalk.next()) {\n ObjectId id = twalk.getObjectId(0);\n RevObject rid = getRevObject(id);\n String path = _path + (_path.length()>1? \"/\" : \"\") + twalk.getNameString();\n GitFile child = rid instanceof RevTree? new GitTree((RevTree)rid, path) : new GitBlob((RevBlob)rid, path);\n files.add(child);\n }\n return files.toArray(new GitFile[files.size()]);\n }", "public static File[] findFiles(String fileName) {\n List<File> fileList_ = new ArrayList<File>();\n if(fileRepoPath_ != null)\n listFiles(new File(fileRepoPath_),fileName, fileList_);\n if(fileList_.size()==0) {\n try {\n \t Enumeration<URL> en_ = FileFinder.class.getClassLoader().getResources(fileName);\n \t while(en_.hasMoreElements()) {\n \t fileList_.add(new File(en_.nextElement().getFile().replaceAll(\"%20\",\" \")));\n \t }\n \t } \n \t catch(IOException e) { }\n }\n \treturn (File[])fileList_.toArray(new File[fileList_.size()]);\n }", "public static Set<String> getWorkingSets() {\n\t\tSet<String> workingSets = new HashSet<>();\n\t\tFile localExtensions = new File(PathUtils.getLocalExtensionsPath());\n\t\ttry {\n\t\t\tDocumentBuilder dBuilder = XmlScannerUtils.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(localExtensions);\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\n\t\t\tString path = \"//comment()[following-sibling::*[1][self::extension]]\";\n\t\t\tNodeList commentNodes = (NodeList) xPath.compile(path).evaluate(doc, XPathConstants.NODESET);\n\t\t\tfor (int i = 0; i < commentNodes.getLength(); i++) {\n\t\t\t\tNode node = commentNodes.item(i);\n\t\t\t\tString workingSet = node.getNodeValue().trim();\n\t\t\t\tworkingSets.add(workingSet);\n\t\t\t}\n\t\t} catch (ParserConfigurationException | SAXException | IOException | XPathExpressionException e) {\n\t\t\tActivator.logError(\"Couldn't parse working sets file\", e);\n\t\t}\n\t\treturn workingSets;\n\t}", "private List<File> getContents(String whichFiles) {\n List<File> result = new ArrayList<File>();\n Files f1 = mService.files();\n Files.List request = null;\n\n do {\n try { \n request = f1.list();\n // get the language folders from drive\n request.setQ(whichFiles);\n FileList fileList = request.execute();\n \n result.addAll(fileList.getItems());\n request.setPageToken(fileList.getNextPageToken());\n } catch (UserRecoverableAuthIOException e) {\n startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);\n } catch (IOException e) {\n e.printStackTrace();\n if (request != null) \n request.setPageToken(null);\n }\n } while ((request.getPageToken() != null) \n && (request.getPageToken().length() > 0));\n \n return result;\n }", "private void searchLocalFiles(TwitchVideoInfo videoInfo) {\n if (videoInfo.getState().equals(INITIAL)) {\n File playlist = new File(playlistFolderPath + videoInfo.getId() + \".m3u\");\n if (playlist.exists() && playlist.isFile() && playlist.canRead()) {\n videoInfo.setMainRelatedFileOnDisk(playlist);\n videoInfo.putRelatedFile(\"playlist\", playlist);\n\n try {\n InputStream is = new FileInputStream(playlist);\n Scanner sc = new Scanner(is);\n int i = 0;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n File file = new File(line);\n if (file.exists()) {\n i++;\n String key = String.format(\"playlist_item_%04d\", i);\n videoInfo.putRelatedFile(key, file);\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n videoInfo.setState(DOWNLOADED);\n }\n\n ffmpegFileListFile = new File(playlistFolderPath + videoInfo.getId() + \".ffmpeglist\");\n if (ffmpegFileListFile.exists()) {\n videoInfo.putRelatedFile(\"ffmpegFileListFile\", ffmpegFileListFile);\n }\n\n File mp4Video = getVideoFile(videoInfo, true);\n\n if (mp4Video.exists() && mp4Video.isFile() && mp4Video.canRead()) {\n videoInfo.setMainRelatedFileOnDisk(mp4Video);\n videoInfo.putRelatedFile(\"mp4Video\", mp4Video);\n videoInfo.setState(CONVERTED);\n }\n }\n }", "public ArrayList<Connection> findFileHolder(int fileIndex) {\n ArrayList<Connection> connectionsWithFile = new ArrayList<>();\n for (Object i : connections.keySet().toArray()){\n if (connections.get(i).hasFile(fileIndex)) {\n connectionsWithFile.add(connections.get(i));\n }\n }\n return connectionsWithFile;\n }", "private WebFile[] getFilesForPackageName(String packageName)\n {\n // Get file path\n String filePath = '/' + packageName.replace(\".\", \"/\");\n WebFile[] files = new WebFile[0];\n\n // Iterate over sites and return first match\n for (WebSite classPathSite : _classPathSites) {\n WebFile nodeFile = classPathSite.getFileForPath(filePath);\n if (nodeFile != null)\n files = ArrayUtils.add(files, nodeFile);\n }\n\n // Return files\n return files;\n }", "public void printFileNames() {\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()) {\n System.out.println(f);\n }\n }", "public void parseFile(File dir) {\r\n\t\tFile[] files = dir.listFiles();\r\n\t\tfor(int i = 0; i < files.length; i++) {\r\n\t\t\tif(files[i].isDirectory()) {\r\n\t\t\t\tparseFile(files[i]);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!files[i].exists()) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tString fileName = files[i].getName();\r\n\t\t\t\tif(fileName.toLowerCase().endsWith(\".json\")) {\r\n\t\t\t\t\twq.execute(new Worker(library, files[i]));\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Enumeration<URL> findEntries(String path, String pattern, boolean recurse) throws IOException;", "public void readFiles() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open BufferedReader to open connection to tipslocation URL and read file\n\t\t\tBufferedReader reader1 = new BufferedReader(new InputStreamReader(tipsLocation.openStream()));\n\t\t\t\n\t\t\t// Create local variable to parse through the file\n\t String tip;\n\t \n\t // While there are lines in the file to read, add lines to tips ArrayList\n\t while ((tip = reader1.readLine()) != null) {\n\t tips.add(tip);\n\t }\n\t \n\t // Close the BufferedReader\n\t reader1.close();\n\t \n\t \n\t // Open BufferedReader to open connection to factsLocation URL and read file\n\t BufferedReader reader2 = new BufferedReader(new InputStreamReader(factsLocation.openStream()));\n\t \n\t // Create local variable to parse through the file\n\t String fact;\n\t \n\t // While there are lines in the file to read: parses the int that represents\n\t // the t-cell count that is associated with the line, and add line and int to \n\t // tCellFacts hashmap\n\t while ((fact = reader2.readLine()) != null) {\n\t \t\n\t \tint tCellCount = Integer.parseInt(fact);\n\t \tfact = reader2.readLine();\n\t \t\n\t tCellFacts.put(tCellCount, fact);\n\t }\n\t \n\t // Close the second BufferedReader\n\t reader2.close();\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Error loading files\"); e.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static File[] getFiles() /*throws IOException*/ {\n\n String os = (System.getProperty(\"os.name\")).toUpperCase();\n File path;\n if (os.contains(\"WIN\")) {\n path = new File(System.getenv(\"APPDATA\")+\"\\\\SudokuGR04\");\n }\n else\n {\n path = new File(System.getProperty(\"user.home\" + \"/Library/Application Support/SudokuGR04\" ));\n }\n\n FileFilter fileFilter = dir -> {\n return dir.isFile();\n };\n //in the files-array there is a list of all files in the dir\n files = path.listFiles(fileFilter);\n return files;\n }" ]
[ "0.63415337", "0.5856234", "0.57189924", "0.5694328", "0.5663663", "0.5636918", "0.5595127", "0.55705947", "0.5570054", "0.55603236", "0.55537456", "0.54935074", "0.546766", "0.545667", "0.54087436", "0.54008895", "0.53843105", "0.5374015", "0.5357078", "0.5355525", "0.53426266", "0.5301695", "0.5292411", "0.5291186", "0.5266812", "0.52401185", "0.52212167", "0.51942724", "0.51907474", "0.5178186", "0.51774067", "0.5165842", "0.5154087", "0.5145778", "0.51455307", "0.51199937", "0.51186305", "0.51172763", "0.5070728", "0.5070505", "0.5067733", "0.5060191", "0.5055468", "0.50229716", "0.5014626", "0.5013918", "0.5013851", "0.5006973", "0.50011605", "0.50007", "0.4998585", "0.49943906", "0.4989575", "0.49852002", "0.4981138", "0.4975467", "0.4973215", "0.49622133", "0.4954351", "0.4952592", "0.49525025", "0.49518177", "0.4946706", "0.49436846", "0.49399698", "0.49341133", "0.49330828", "0.4931586", "0.49286637", "0.49282283", "0.49126858", "0.49120745", "0.4911065", "0.49085668", "0.4908232", "0.4901782", "0.4901227", "0.48979935", "0.48972246", "0.48965034", "0.48959994", "0.48895833", "0.48884925", "0.48876926", "0.48869073", "0.48830992", "0.48687342", "0.48570192", "0.48553255", "0.4853379", "0.48526704", "0.48508286", "0.4849819", "0.48441282", "0.48402056", "0.4826383", "0.48225155", "0.48205888", "0.48184183", "0.48162535" ]
0.6428411
0
Test create king dataset instance and output a couple of latency values
public static void main(String[] args) { KingDataset king = KingDataset.instance(); int interval=50; FrequencyTable table = new FrequencyTable(interval); for (int i=0; i<10000; i++) { int point = king.next() / 2; // IMPORTANT - King is RTT System.out.print(point + " "); table.addDataPoint(point); } System.out.println(); for (int i=0; i<1000; i+=interval) { System.out.println("[" + i + "-" + (i+interval) + "[ : " + table.getFrequency(i)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testRun() {\n System.out.println(\"run\");\n FluorescenceImporter importer = null;\n try {\n FluorescenceFixture tf = new FluorescenceFixture();\n importer = new FluorescenceImporter(tf.testData());\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Importing dataset\");\n importer.setProgressHandle(ph);\n \n importer.run();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n //FluorescenceDataset dataset = importer.getDataset();\n Dataset<? extends Instance> plate = importer.getDataset();\n System.out.println(\"inst A1 \"+ plate.instance(0).toString());\n System.out.println(\"plate \"+plate.toString());\n Dataset<Instance> output = new SampleDataset<Instance>();\n output.setParent((Dataset<Instance>) plate);\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Analyzing dataset\");\n // AnalyzeRunner instance = new AnalyzeRunner((Timeseries<ContinuousInstance>) plate, output, ph);\n // instance.run();\n \n }", "@Test\n public void test4a() {\n DataSet dataSetxx = load(\"exampleBig.dnal\");\n DataSet dataSet = load(\"exampleBig.dnal\");\n \n log(\"json..\");\n Generator gen = dataSet.createGenerator();\n JSONValueGenerator visitor = new JSONValueGenerator();\n boolean b = gen.generateValues(visitor);\n// for(String s: visitor.outputL) {\n// log(s);\n// }\n \n log(\"-----\");\n CompilerImpl compiler = (CompilerImpl) this.aCompiler;\n compiler.getContext().perf.dump();\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "@Ignore\n @Test\n public void run_RL() {\n String configfile = \"C:\\\\Users\\\\gomes\\\\Desktop\\\\traffic_master\\\\n_Capstone_0426_9000.xml\";\n\n float duration = 3600f;\n float outdt = 300f;\n\n // Load ..............................\n api.OTM otm = null;\n\n try {\n otm = new api.OTM(configfile);\n\n// // Output requests .....................\n// List<Long> list_orig_link_ids = otm.scenario.get_link_ids();\n// otm.output.request_links_flow(null, list_orig_link_ids, outdt);\n// otm.output.request_links_veh(null, list_orig_link_ids, outdt);\n//\n// List<Long> ramp_ids = new ArrayList<>();\n// for(ActuatorInfo act_info : otm.scenario.get_actuators())\n// ramp_ids.add(act_info.target.getId());\n\n// ControllerCapacity controller = (ControllerCapacity) otm.scenario.get_actual_controller_with_id(1);\n\n // Qtable loop\n\n double[] sum_vehicles = new double[6];\n double[] sum_flow = new double[6];\n\n// for( int i=0 ; i<6 ; i++){\n//\n// // update control\n// for(Long ramp_id : ramp_ids) {\n// float rate_ramp = i*300f;\n// controller.set_rate_vph_for_actuator(ramp_id, rate_ramp);\n// }\n//\n// System.out.println(\"i=\" + i);\n//\n// otm.run(0,duration);\n//\n// // extract output .........................\n// sum_vehicles[i] = 0d;\n// sum_flow[i] = 0d;\n//\n// for(AbstractOutput output : otm.output.get_data()){\n//\n// if (output instanceof LinkFlow){\n//\n// for(Long link_id : list_orig_link_ids) {\n// Profile1D profile = ((LinkFlow) output).get_flow_profile_for_link_in_vph(link_id);\n// List<Double> values = profile.get_values();\n// // System.out.println(String.format(\"LinkFlow: id=%d num_values=%d\",link_id,values.size()));\n//\n// sum_flow[i] += values.stream().mapToDouble(x->x).sum();\n// }\n// }\n//\n//\n// if (output instanceof LinkVehicles) {\n// for(Long link_id : list_orig_link_ids) {\n// Profile1D profile = ((LinkVehicles) output).get_profile_for_linkid(link_id);\n// List<Double> values = profile.get_values();\n// // System.out.println(String.format(\"LinkVehicles: id=%d num_values=%d\",link_id,values.size()));\n//\n// sum_vehicles[i] += values.stream().mapToDouble(x->x).sum();\n// }\n// }\n//\n// }\n//\n// System.out.println(i + \"\\t\" + sum_flow[i] + \"\\t\" + sum_vehicles[i]);\n//\n// // do some Qtable calculation\n\n\n\n// }\n } catch (OTMException e) {\n e.printStackTrace();\n }\n\n }", "@Test\n\tpublic void testReadFromNewHost(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 3\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(30000, readTime);\n\t\t\n\t}", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test\n public void testOne() {\n testDriver.pipeInput(recordFactory.create(Kafka_Streams_MachineLearning_H2O_GBM_Example.INPUT_TOPIC,\n null,\n \"1987,10,14,3,741,730,912,849,PS,1451,NA,91,79,NA,23,11,SAN,SFO,447,NA,NA,0,NA,0,NA,NA,NA,NA,NA,YES,YES\",\n 1L));\n assertThat(getOutput()).isEqualTo(\"Prediction: Is Airline delayed? => YES\");\n }", "public void testPerformance() {\n \t}", "private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}", "@Test\n\tpublic void functionKoreDatastructureTest() {\n\t\ttry {\n\t\t\tString DataStructureAgent1Name = \"DataStructureAgent1\"; \n\t\t\t//String weatherAgent2Name = \"WeatherAgent2\"; \n\t\t\tString datageneratorservice = \"DataStructureGenerator\";\n\n\t\t\tAgentConfig cf = AgentConfig.newConfig(DataStructureAgent1Name)\n\t\t\t\t\t.addFunction(FunctionConfig.newConfig(datageneratorservice, KoreDataStructureGeneratorMock.class))\n\t\t\t\t\t.addFunction(FunctionConfig.newConfig(\"LamprosUI\", UserInterfaceCollector.class)\n\t\t\t\t\t\t\t.addManagedDatapoint(\"KORE\", DataStructureAgent1Name + \":\" + datageneratorservice + \"/result\", SyncMode.SUBSCRIBEONLY));\n\t\t\tCell weatherAgent = this.launcher.createAgent(cf);\n\t\t\t\n\t\t\t//=== Init finished ===//\n\n\t\t\tsynchronized (this) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.wait(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tlog.info(\"=== All agents initialized ===\");\n\t\t\t\n\t\t\tweatherAgent.getCommunicator().execute(weatherAgent.getName() + \":\" + datageneratorservice + \"/command\", (new Request())\n\t\t\t\t\t.setParameter(\"command\", ControlCommand.START)\n\t\t\t\t\t.setParameter(\"blocking\", false), 100000);\n\t\t\t\n\t\t\t//Wait while the system runs\n\t\t\tsynchronized (this) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.wait(2000000000);\n\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Read the state of the system\n\t\t\t//JsonObject systemState = weatherAgent.readLocalDatapoint(CFStateGenerator.SYSTEMSTATEADDRESS).getValue().getAsJsonObject();\n\t\t\t\n\t\t\t//String currentResult = systemState.get(\"hasFunction\").getAsJsonArray().get(0).getAsJsonObject().get(\"hasState\").getAsString();\n\t\t\t//String expectedResult = \"RUNNING\"; //As the system is still running, when the request is sent\n\t\t\t\n\t\t\t//weatherAgent.getCommunicator().write(DatapointBuilder.newDatapoint(weatherservice + \".command\").setValue(ControlCommand.STOP));\n\t\t\t\n\t\t\t//log.info(\"current result={}, expected result={}\", currentResult, expectedResult);\n\t\t\tassertEquals(true, false);\n\t\t\t\n\t\t\tlog.info(\"Tests passed\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error testing system\", e);\n\t\t\tfail(\"Error\");\n\t\t}\n\n\t}", "@Before\n public void setUp()\n {\n //ping for CSSE UWA\n csse = new GPSping(-31.977484,115.816228,1565063614);\n //ping for Perth train station 1 hour later\n perth = new GPSping(-31.951078,115.859945,1565063614+3600);\n //ping for Musee d'Orsay Paris on 20 Aug 2019\n paris = new GPSping(48.859741,2.326609,1566270756);\n //erroneous pings\n err1 = new GPSping(115.816228,-31.977484,1565063614);\n err2 = new GPSping(200,100,20);\n }", "public static void main(String[] args){\r\n\t\tputSPECmeasurement(System.nanoTime(), 100, 1000, \"nix1\", 5000);\r\n\t\tputSPECmeasurement(System.nanoTime(), 200, 2000, \"nix2\", 10000);\r\n\t}", "@Test(description = \"This test verifies api response time\", groups = { \"topmonitor\" }, enabled = false)\n\tpublic void testResponseTime() {\n\t\tString api = \"http://economictimes.indiatimes.com/homefeed.cms?feedtype=etjson&curpg=1\";\n\t\tLong startTime = System.currentTimeMillis();\n\t\tApiHelper.getAPIResponse(api);\n\t\tLong endTime = System.currentTimeMillis();\n\t\tLong totalTime = endTime - startTime;\n\t\tDBUtil.dbInsertApi(new Date(), api, totalTime.doubleValue());\n\t}", "public void testIO(){\r\n // Don't do this every iteration because it's too expensive\r\n if(testIOTimer.get() < 0.5) {\r\n return;\r\n }\r\n testIOTimer.reset();\r\n NetworkTable table = NetworkTable.getTable(\"Status\");\r\n table.putNumber(\"dioData\", digitalModule.getAllDIO());\r\n for(int i = 1; i <= 10; i++) {\r\n table.putNumber(\"pwm\" + i, digitalModule.getPWM(i));\r\n }\r\n \r\n for(int i = 1; i <= 8; i++) {\r\n table.putNumber(\"analog\" + i, ((int)(analogModule.getVoltage(i) * 1000) / 1000.0));\r\n }\r\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "@Test\r\n public void testDataBuilder_Init(){\r\n \tdataBuild.initAllData();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }", "public TPCCClient(String args[]) {\n super(args);\n \n m_tpccConfig = TPCCConfig.createConfig(this.getCatalog(), m_extraParams);\n if (LOG.isDebugEnabled()) LOG.debug(\"TPC-C Client Configuration:\\n\" + m_tpccConfig);\n \n // makeForRun requires the value cLast from the load generator in\n // order to produce a valid generator for the run. Thus the sort\n // of weird eat-your-own ctor pattern.\n RandomGenerator.NURandC base_loadC = new RandomGenerator.NURandC(0,0,0);\n RandomGenerator.NURandC base_runC = RandomGenerator.NURandC.makeForRun(\n new RandomGenerator.Implementation(0), base_loadC);\n RandomGenerator rng = new RandomGenerator.Implementation(0);\n rng.setC(base_runC);\n \n RandomGenerator.NURandC base_loadC2 = new RandomGenerator.NURandC(0,0,0);\n RandomGenerator.NURandC base_runC2 = RandomGenerator.NURandC.makeForRun(\n new RandomGenerator.Implementation(0), base_loadC2);\n // RandomGenerator rng2 = new RandomGenerator.Implementation(0);\n rng.setC(base_runC2);\n \n HStoreConf hstore_conf = this.getHStoreConf();\n m_scaleParams = ScaleParameters.makeWithScaleFactor(m_tpccConfig.num_warehouses, m_tpccConfig.first_warehouse, hstore_conf.client.scalefactor);\n m_tpccSim = new TPCCSimulation(this, rng, new Clock.RealTime(), m_scaleParams, m_tpccConfig, hstore_conf.client.skewfactor);\n // m_tpccSim2 = new TPCCSimulation(this, rng2, new Clock.RealTime(), m_scaleParams, m_tpccConfig, hstore_conf.client.skewfactor);\n \n // Set up checking\n buildConstraints();\n \n //m_sampler = new VoltSampler(20, \"tpcc-cliet-sampling\");\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Override\n public void testPeriodic() {\n //Diagnostics.writeString(\"State\", \"TEST\");\n }", "@Test\n public void testList() {\n // Flight data (one single flight) --> We want to predict if it will be\n // delayed or not\n List<String> inputValues = Arrays.asList(\n \"1987,10,14,3,741,730,912,849,PS,1451,NA,91,79,NA,23,11,SAN,SFO,447,NA,NA,0,NA,0,NA,NA,NA,NA,NA,YES,YES\",\n \"1999,10,14,3,741,730,912,849,PS,1451,NA,91,79,NA,23,11,SAN,SFO,447,NA,NA,0,NA,0,NA,NA,NA,NA,NA,YES,YES\");\n List<KeyValue<String, String>> records = inputValues.stream()\n .map(v -> new KeyValue<String, String>(null, v)).collect(Collectors.toList());\n\n testDriver.pipeInput(recordFactory.create(Kafka_Streams_MachineLearning_H2O_GBM_Example.INPUT_TOPIC,\n records, 1L, 100L));\n assertThat(getOutput()).isEqualTo(\"Prediction: Is Airline delayed? => YES\");\n assertThat(getOutput()).isEqualTo(\"Prediction: Is Airline delayed? => NO\");\n }", "@Test\n public void testPassingFootstepData() throws IOException\n {\n Random random = new Random(5642769L);\n\n // setup comms\n NetworkPorts port = NetworkPorts.createRandomTestPort(random);\n // QueueBasedStreamingDataProducer<FootstepData> queueBasedStreamingDataProducer = new QueueBasedStreamingDataProducer<FootstepData>(\"FootstepData\");\n PacketCommunicator tcpServer = createAndStartStreamingDataTCPServer(port);\n FootstepDataConsumer footstepDataConsumer = new FootstepDataConsumer();\n PacketCommunicator tcpClient = createStreamingDataConsumer(FootstepDataMessage.class, footstepDataConsumer, port);\n ThreadTools.sleep(SLEEP_TIME);\n // queueBasedStreamingDataProducer.startProducingData();\n\n // create test footsteps\n ArrayList<Footstep> sentFootsteps = createRandomFootsteps(50);\n for (Footstep footstep : sentFootsteps)\n {\n FootstepDataMessage footstepData = HumanoidMessageTools.createFootstepDataMessage(footstep);\n tcpServer.send(footstepData);\n // queueBasedStreamingDataProducer.queueDataToSend(footstepData);\n }\n\n ThreadTools.sleep(SLEEP_TIME);\n\n tcpClient.disconnect();\n tcpServer.disconnect();\n\n // verify received correctly\n ArrayList<Footstep> receivedFootsteps = footstepDataConsumer.getReconstructedFootsteps();\n\n compareFootstepsSentWithReceived(sentFootsteps, receivedFootsteps);\n }", "@Test(priority = 2)\r\n\tpublic void getresponse(){\n\t\t\r\n\t\tString resData = get(\"http://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=b6907d289e10d714a6e88b30761fae22\").asString();\t\r\n\t\tSystem.out.println(resData);\r\n\t\t\r\n\t\tlong time = get(\"\").getTime();\r\n\t\t\r\n\t\tSystem.out.println(\"Response time \" + time);\r\n\t}", "@Test\n\tpublic void testReadFromNewHostWithFreeCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(10);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 3\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(30000, readTime);\n\t}", "public TesterPSO() {\n\t\tlogWriter = new Writer();\n\t\tMAX_RUN = 50;\n\t\truntimes = new long[MAX_RUN];\n\t}", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "@Test\n\tpublic void getStaticsDataTest() {\n\t\tthis.repo.save(new StatisticsRequest(\"1233333\", \"testing\", Integer.valueOf(200), Integer.valueOf(2000)));\n\n\t\twebTestClient.get().uri(\"/getLoggedData\").accept(MediaType.APPLICATION_JSON).exchange().expectStatus().isOk()\n\t\t\t\t.expectBody(StatisticsResponse.class)\n\t\t\t\t.consumeWith(res -> assertTrue(res.getResponseBody().getTotalRequest() > 0.0));\n\n\t}", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedTruePositiveRate();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}", "@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }", "public static void main(String[] args) {\r\n\r\n Logger root = (Logger)LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);\r\n root.setLevel(Level.ERROR); // TODO create a program argument to switch to trace\r\n Logger logger = (Logger)LoggerFactory.getLogger(\"main\");\r\n \r\n\r\n System.out.println(\"\\nTEST: \" + TEST_ID);\r\n System.out.println(\"========================\\n\");\r\n System.out.println(\"This is a simple test battery for this class.\\n\");\r\n\r\n logger.trace(\"Setting up test for class '{}'\\n\", TEST_ID);\r\n \r\n /*\r\n * Read parameters from file\r\n * \r\n * To write a new parameter file template, uncomment the following two lines\r\n * TestBrownianProcessParams.writeParamDefinition(\"param_template.xml\");\r\n * System.exit(0);\r\n */\r\n \r\n String fileName = CmdLineProcessor.process(args); // process command line arguments\r\n TestSteppedDataGeneratorParams params = null;\r\n \r\n try {\r\n params = TestSteppedDataGeneratorParams.readParameters(fileName);\r\n } catch (Throwable e) {\r\n logger.error(e.getMessage());\r\n System.exit(0);\r\n }\r\n \r\n params.validate();\r\n \r\n /**\r\n * Copy distribution parameters into a single array \r\n */\r\n DoubleArrayList shifts = params.getValidatedDoubleSequence(TestSteppedDataGeneratorParams.Sequence.SHIFT);\r\n DoubleArrayList stepHeights = params.getValidatedDoubleSequence(TestSteppedDataGeneratorParams.Sequence.STEP_HEIGHT);\r\n DoubleArrayList stepWidths = params.getValidatedDoubleSequence(TestSteppedDataGeneratorParams.Sequence.STEP_WIDTH);\r\n DoubleArrayList valleyWidths = params.getValidatedDoubleSequence(TestSteppedDataGeneratorParams.Sequence.VALLEY_WIDTH);\r\n ArrayList<Double> distParams = new ArrayList<Double>();\r\n \r\n for (int i = 0; i < shifts.size(); i++) {\r\n distParams.add(shifts.get(i));\r\n distParams.add(stepHeights.get(i));\r\n distParams.add(stepWidths.get(i));\r\n distParams.add(valleyWidths.get(i));\r\n }\r\n\r\n // Number formatter for the output\r\n DecimalFormat df = new DecimalFormat(\"0.00000\", new DecimalFormatSymbols(Locale.UK));\r\n DoubleTimeSeries.setFormatter(df);\r\n FormattedDoubleArrayList.setFormatter(df);\r\n\r\n /**\r\n * Data storage and formatting\r\n */\r\n DoubleTimeSeries dts = new DoubleTimeSeries();\r\n DoubleTimeSeriesList dtsl_1 = new DoubleTimeSeriesList();\r\n DoubleTimeSeriesList dtsl_2 = new DoubleTimeSeriesList();\r\n VersatileTimeSeriesCollection atc_1 = new VersatileTimeSeriesCollection(\"results\");\r\n VersatileTimeSeriesCollection atc_2 = new VersatileTimeSeriesCollection(\"results\");\r\n VersatileTimeSeries.StaticInternalParams.setTimePeriodFormat(\"tick\");\r\n VersatileTimeSeries.StaticInternalParams.setTimePeriod(VersatileTimeSeries.Period.DAY);\r\n VersatileTimeSeries.StaticInternalParams.setOutputHead(25);\r\n VersatileTimeSeries.StaticInternalParams.setOutputTail(10);\r\n int FIRST_COLUMN_WIDTH = 10;\r\n String baseName = \"STEPPED\";\r\n\r\n /**\r\n * Setup\r\n */\r\n SteppedDataGenerator gen = new SteppedDataGenerator(distParams.toArray(new Double[1]));\r\n \r\n int dim = (int) Math.floor(0.1 + distParams.size() / 4); // 4 is the number of parameters of the stepped function generator \r\n \r\n for (int i = 0; i < dim; i++) {\r\n String tsName = baseName;\r\n if (dim > 1) tsName += \"_\" + i;\r\n dtsl_1.add(new DoubleTimeSeries(tsName));\r\n dtsl_2.add(new DoubleTimeSeries(tsName));\r\n }\r\n\r\n /**\r\n * Run\r\n */ \r\n DoubleArrayList vec;\r\n// DoubleArrayList increments;\r\n \r\n for (int i = 0; i < params.nTicks; i++) {\r\n vec = gen.nextDoubleVector();\r\n// increments = gen.nextDoubleVectorIncrements();\r\n \r\n for (int j = 0; j < dim; j++) {\r\n \tdtsl_1.get(j).add(vec.get(j));\r\n// \t\tdtsl_2.get(j).add(increments.get(j));\r\n } \t\r\n }\r\n \r\n \r\n /**\r\n * Output - Text\r\n */\r\n atc_1.populateSeries(1, \"step\", dtsl_1, 0);\r\n// atc_2.populateSeries(1, \"step\", dtsl_2, 0);\r\n \r\n System.out.println(atc_1.printDecoratedSeries(baseName, FIRST_COLUMN_WIDTH, true));\r\n// System.out.println(atc_2.printDecoratedSeries(baseName, FIRST_COLUMN_WIDTH, true));\r\n \r\n /**\r\n * Output - Graph\r\n */\r\n VersatileChart charts_1 = new VersatileChart();\r\n charts_1.getInternalParms().autoRange = true;\r\n charts_1.getInternalParms().autoRangePadding = 0;\r\n charts_1.getInternalParms().ticks = true;\r\n\r\n charts_1.draw(atc_1);\r\n \r\n// VersatileChart charts_2 = new VersatileChart();\r\n// charts_2.getInternalParms().autoRange = true;\r\n// charts_2.getInternalParms().autoRangePadding = 0;\r\n// charts_2.getInternalParms().ticks = true;\r\n//\r\n// charts_2.draw(atc_2);\r\n }", "private void getSleepData() {\n\n }", "@Test\n @Tag(\"slow\")\n public void testPDS_02() {\n CuteNetlibCase.doTest(\"PDS-02.SIF\", \"2.885786201E10\", \"2.931365171E10\", NumberContext.of(7, 4));\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tHotel hotel = new Hotel();\n\t\thotel.setName(\"Hennessy Pub\");\n\t\tfinal DateFormat formatDate = new SimpleDateFormat(\"hh:mm a\");\n\t\tTimeSlot slot = new TimeSlot();\n\t\ttry {\n\t\t\tslot.setEndTime((Date)formatDate.parse(\"2:00 am\"));\n\t\t\tslot.setStartTime((Date)formatDate.parse(\"11:30 am\"));\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tMap<Integer, TimeSlot> timeSlots = new HashMap<>(); \n\t\ttimeSlots.put(1, slot);\n\t\ttimeSlots.put(2, slot);\n\t\ttimeSlots.put(7, slot);\n\t\thotel.setTimeSlotsMap(timeSlots);\n\t\t\n\t\thotelsSampleData.add(hotel);\n\t\t\n\t}", "private void loadSimulatedHeavyData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(0.1);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(3.3);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(4.3);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(4.3);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "public long getLatency() {\n return latency;\n }", "@Test\n public void test_connection_time() throws Exception\n {\n long nano = nanoTime();\n\n MosServiceHttp service = new MosServiceHttp();\n\n // todo time consuming test log\n System.out.println(\"operation \" + \"login\" + \" cost \" + (nanoTime() - nano) + \" ns\");\n\n for (int i = 0; i < 10; i++)\n {\n // todo time consuming test\n nano = nanoTime();\n\n service.get(new DN(\"/Ems/1\"));\n\n // todo time consuming test log\n System.out.println(\"operation \" + \"get\" + \" cost \" + (nanoTime() - nano) + \" ns\");\n }\n }", "private void runTest(final Node me) {\n if (!initialized) {\n initStressTest();\n }\n\n List<Row> runs = engine.getSqlTemplate().query(selectControlSql);\n\n for (Row run : runs) {\n int runId = run.getInt(\"RUN_ID\");\n int payloadColumns = run.getInt(\"PAYLOAD_COLUMNS\");\n int initialSeedSize = run.getInt(\"INITIAL_SEED_SIZE\");\n long duration = run.getLong(\"DURATION_MINUTES\");\n\n String status = engine.getSqlTemplate().queryForString(selectStatusSql, runId, me.getNodeId());\n\n if (isMasterNode(me) && StringUtils.isBlank(status)) {\n initStressTestRowOutgoing(payloadColumns, runId, initialSeedSize);\n initStressTestRowIncoming(payloadColumns);\n long commitRows = run.getLong(\"SERVER_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"SERVER_COMMIT_SLEEP_MS\");\n\n engine.getSqlTemplate().update(insertStatusSql, runId, me.getNodeId(), \"RUNNING\");\n for (Node client : engine.getNodeService().findTargetNodesFor(NodeGroupLinkAction.W)) {\n engine.getSqlTemplate().update(insertStatusSql, runId, client.getNodeId(), \"RUNNING\");\n }\n\n fillOutgoing(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n\n } else if (!isMasterNode(me) && !StringUtils.isBlank(status) && status.equals(\"RUNNING\")) {\n long commitRows = run.getLong(\"CLIENT_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"CLIENT_COMMIT_SLEEP_MS\");\n\n fillIncoming(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n }\n }\n }", "@Before\r\n\tpublic void setUp() { timeslots = new ArrayList<Timeslot>(); timetable = new Timetable(); System.setOut(new PrintStream(outContent)); }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "@Test\n public void testMetrics() throws Exception {\n wrapper.setMetricsConfig(\"metrics2\");\n \n String command = getCommandAllEnvVariables();\n FreeStyleBuild build = runBatchCommand(command);\n\n // Assert that the console log contains the output we expect\n checkBinUnset(build);\n checkMetricsSet(build, \n \"polyspace-results-repository -f -upload -server metrics2.com:32427\",\n \"metrics2.com\",\n \"32427\",\n \"metrics2.com\"); // the url does not contain the port as the port is used to upload only\n checkAccessUnset(build);\n }", "@Test\n\tpublic void testReadFromExistingHost(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(40000, readTime);\n\t}", "@Test\n\tpublic void storeLogDataTest() {\n\n\t\tStatisticsRequest request = new StatisticsRequest(\"testingid\", \"testing\", 200, 3);\n\t\twebTestClient.post().uri(\"/logginResponseTime\").contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON).body(Mono.just(request), StatisticsRequest.class).exchange()\n\t\t\t\t.expectStatus().isOk().expectBody(String.class).consumeWith(res -> {\n\t\t\t\t\tassertTrue(res.getResponseBody().equalsIgnoreCase(\"saved\"));\n\t\t\t\t});\n\n\t}", "@Override\r\n public void runTests() {\r\n getTemperature();\r\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize(\"#gS@ID)j\");\n discretize0.m_ClassIndex = 178;\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = (double) 178;\n discretize0.m_UseEqualFrequency = true;\n doubleArray0[2] = (double) 178;\n doubleArray0[2] = (double) 178;\n Discretize discretize1 = new Discretize(\"#gS@ID)j\");\n assertFalse(discretize1.getUseEqualFrequency());\n \n discretize0.getOptions();\n assertTrue(discretize0.getUseEqualFrequency());\n }", "public void testWatcherUsageStatsTests() {\n long watchCount = randomLongBetween(5, 20);\n for (int i = 0; i < watchCount; i++) {\n watcherClient().preparePutWatch(\"_id\" + i).setSource(watchBuilder()\n .trigger(schedule(cron(\"0/5 * * * * ? 2050\")))\n .input(simpleInput())\n .addAction(\"_id\", loggingAction(\"whatever \" + i)))\n .get();\n }\n\n XPackUsageRequest request = new XPackUsageRequest();\n XPackUsageResponse usageResponse = client().execute(XPackUsageAction.INSTANCE, request).actionGet();\n Optional<XPackFeatureSet.Usage> usage = usageResponse.getUsages().stream()\n .filter(u -> u instanceof WatcherFeatureSetUsage)\n .findFirst();\n assertThat(usage.isPresent(), is(true));\n WatcherFeatureSetUsage featureSetUsage = (WatcherFeatureSetUsage) usage.get();\n\n long activeWatchCount = (long) ((Map) featureSetUsage.stats().get(\"count\")).get(\"active\");\n assertThat(activeWatchCount, is(watchCount));\n }", "public void testRpcValues() {\n // Test Values\n Temperature currentTemperature = msg.getCurrentTemperature();\n Temperature temperatureHigh = msg.getTemperatureHigh();\n Temperature temperatureLow = msg.getTemperatureLow();\n Temperature apparentTemperature = msg.getApparentTemperature();\n Temperature apparentTemperatureHigh = msg.getApparentTemperatureHigh();\n String weatherSummary = msg.getWeatherSummary();\n DateTime time = msg.getTime();\n Float humidity = msg.getHumidity();\n Float cloudCover = msg.getCloudCover();\n Float moonPhase = msg.getMoonPhase();\n Integer windBearing = msg.getWindBearing();\n Float windGust = msg.getWindGust();\n Float windSpeed = msg.getWindSpeed();\n Integer nearestStormBearing = msg.getNearestStormBearing();\n Integer nearestStormDistance = msg.getNearestStormDistance();\n Float precipAccumulation = msg.getPrecipAccumulation();\n Float precipIntensity = msg.getPrecipIntensity();\n Float precipProbability = msg.getPrecipProbability();\n String precipType = msg.getPrecipType();\n Float visibility = msg.getVisibility();\n Image weatherIcon = msg.getWeatherIcon();\n\n // Valid Tests\n assertEquals(TestValues.MATCH, currentTemperature, TestValues.GENERAL_TEMPERATURE);\n assertEquals(TestValues.MATCH, temperatureHigh, TestValues.GENERAL_TEMPERATURE);\n assertEquals(TestValues.MATCH, temperatureLow, TestValues.GENERAL_TEMPERATURE);\n assertEquals(TestValues.MATCH, apparentTemperature, TestValues.GENERAL_TEMPERATURE);\n assertEquals(TestValues.MATCH, apparentTemperatureHigh, TestValues.GENERAL_TEMPERATURE);\n assertEquals(TestValues.MATCH, weatherSummary, TestValues.GENERAL_STRING);\n assertEquals(TestValues.MATCH, time, TestValues.GENERAL_DATETIME);\n assertEquals(TestValues.MATCH, humidity, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, cloudCover, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, moonPhase, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, windBearing, TestValues.GENERAL_INTEGER);\n assertEquals(TestValues.MATCH, windGust, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, windSpeed, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, nearestStormBearing, TestValues.GENERAL_INTEGER);\n assertEquals(TestValues.MATCH, nearestStormDistance, TestValues.GENERAL_INTEGER);\n assertEquals(TestValues.MATCH, precipAccumulation, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, precipIntensity, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, precipProbability, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, precipType, TestValues.GENERAL_STRING);\n assertEquals(TestValues.MATCH, visibility, TestValues.GENERAL_FLOAT);\n assertEquals(TestValues.MATCH, weatherIcon, TestValues.GENERAL_IMAGE);\n\n // Invalid/Null Tests\n WeatherData msg = new WeatherData();\n assertNotNull(TestValues.NOT_NULL, msg);\n\n assertNull(TestValues.NULL, msg.getCurrentTemperature());\n assertNull(TestValues.NULL, msg.getTemperatureHigh());\n assertNull(TestValues.NULL, msg.getTemperatureLow());\n assertNull(TestValues.NULL, msg.getApparentTemperature());\n assertNull(TestValues.NULL, msg.getApparentTemperatureHigh());\n assertNull(TestValues.NULL, msg.getApparentTemperatureLow());\n assertNull(TestValues.NULL, msg.getWeatherSummary());\n assertNull(TestValues.NULL, msg.getTime());\n assertNull(TestValues.NULL, msg.getHumidity());\n assertNull(TestValues.NULL, msg.getCloudCover());\n assertNull(TestValues.NULL, msg.getMoonPhase());\n assertNull(TestValues.NULL, msg.getWindBearing());\n assertNull(TestValues.NULL, msg.getWindGust());\n assertNull(TestValues.NULL, msg.getWindSpeed());\n assertNull(TestValues.NULL, msg.getNearestStormBearing());\n assertNull(TestValues.NULL, msg.getNearestStormDistance());\n assertNull(TestValues.NULL, msg.getPrecipAccumulation());\n assertNull(TestValues.NULL, msg.getPrecipIntensity());\n assertNull(TestValues.NULL, msg.getPrecipProbability());\n assertNull(TestValues.NULL, msg.getPrecipType());\n assertNull(TestValues.NULL, msg.getVisibility());\n assertNull(TestValues.NULL, msg.getWeatherIcon());\n }", "public void testSubResults() throws Exception {\n SampleResult resWithSubResults = new SampleResult(); \n\n long beginTest = System.currentTimeMillis();\n \n resWithSubResults.sampleStart();\n Thread.sleep(100);\n resWithSubResults.setBytes(300);\n resWithSubResults.setSampleLabel(\"sample with two subresults\");\n resWithSubResults.setSuccessful(true);\n resWithSubResults.sampleEnd();\n long sampleWithSubResultsTime = resWithSubResults.getTime();\n \t\n // Sample with no sub results, simulates an image download\n SampleResult resNoSubResults1 = new SampleResult(); \n resNoSubResults1.sampleStart();\n Thread.sleep(100);\n resNoSubResults1.setBytes(100);\n resNoSubResults1.setSampleLabel(\"sample with no subresults\");\n resNoSubResults1.setSuccessful(true);\n resNoSubResults1.sampleEnd();\n long sample1Time = resNoSubResults1.getTime();\n\n assertTrue(resNoSubResults1.isSuccessful());\n assertEquals(100, resNoSubResults1.getBytes());\n assertEquals(\"sample with no subresults\", resNoSubResults1.getSampleLabel());\n assertEquals(1, resNoSubResults1.getSampleCount());\n assertEquals(0, resNoSubResults1.getSubResults().length);\n \n // Sample with no sub results, simulates an image download \n SampleResult resNoSubResults2 = new SampleResult(); \n resNoSubResults2.sampleStart();\n Thread.sleep(100);\n resNoSubResults2.setBytes(200);\n resNoSubResults2.setSampleLabel(\"sample with no subresults\");\n resNoSubResults2.setSuccessful(true);\n resNoSubResults2.sampleEnd();\n long sample2Time = resNoSubResults2.getTime();\n\n long overallTime = System.currentTimeMillis() - beginTest;\n \n assertTrue(resNoSubResults2.isSuccessful());\n assertEquals(200, resNoSubResults2.getBytes());\n assertEquals(\"sample with no subresults\", resNoSubResults2.getSampleLabel());\n assertEquals(1, resNoSubResults2.getSampleCount());\n assertEquals(0, resNoSubResults2.getSubResults().length);\n \n // Now add the subsamples to the sample\n resWithSubResults.addSubResult(resNoSubResults1);\n resWithSubResults.addSubResult(resNoSubResults2);\n assertTrue(resWithSubResults.isSuccessful());\n assertEquals(600, resWithSubResults.getBytes());\n assertEquals(\"sample with two subresults\", resWithSubResults.getSampleLabel());\n assertEquals(1, resWithSubResults.getSampleCount());\n assertEquals(2, resWithSubResults.getSubResults().length);\n long totalTime = resWithSubResults.getTime();\n \n // Check the sample times\n long allsamplesTime = sampleWithSubResultsTime + sample1Time + sample2Time;\n if (totalTime < allsamplesTime) {\n \tfail(\"Total: \"+totalTime+\" < sum(samples): \"+ allsamplesTime);\n }\n if (totalTime > overallTime) {\n \tfail(\"Total: \"+totalTime+\" > overall time: \"+ overallTime);\n }\n \n // Check that calculator gets the correct statistics from the sample\n Calculator calculator = new Calculator();\n calculator.addSample(resWithSubResults);\n assertEquals(600, calculator.getTotalBytes());\n assertEquals(1, calculator.getCount());\n assertEquals(1d / (totalTime / 1000d), calculator.getRate(),0.0001d); // Allow for some margin of error\n // Check that the throughput uses the time elapsed for the sub results\n assertFalse(1d / (sampleWithSubResultsTime / 1000d) <= calculator.getRate());\n }", "private static void generateDatasets(int time_span, int time_granularity) {\n\n String[] city = {\n \"dm\", //Des Moines\n \"bo\", //Boston\n \"sf\" //San Francisco\n };\n\n double[] gridLength = { //relates (mostly) to number of agents\n 10,\n 30,\n 50,\n 100,\n 350,\n 500,\n 850,\n 1000,\n 1500,\n 2000,\n };\n\n double[] clusterDiv = { //multiply grid length by this and plug into radius in order for this to be number of clusters\n 1,\n 2,\n 4,\n 8,\n 16,\n 32,\n 64,\n 128,\n 256,\n 512,\n 1024\n };\n\n final int MIN_DEV = 2; final int MAX_DEV = 6; //minimum and maximum amount of devices per house to generate files for\n final int NUM_GRID_SIZES = 5; //number of different grid sizes to generate from the list above, some of the larger problems might be to big for some computers to handle\n for(int i = 0; i < city.length; i++) { // for each city\n for(int j = 0; j < NUM_GRID_SIZES; j++) { //for each grid size\n\n Topology topo = generateTopology(i, gridLength[j], 1);\n for(int d = MIN_DEV; d <= MAX_DEV; d++) {\n String fileName = \"datasets/\" + city[i]\n + \"_\" + topo.getNumAgents()\n + \"_\" + topo.getNumClusters()\n + \"_\" + d;\n generateSHDSInstances(fileName, d, topo, time_span, time_granularity);\n\n if(d == MAX_DEV) {\n Topology temp = topo;\n for (int k = 2; temp != null && k < clusterDiv.length; k++) {\n temp = generateTopology(i, gridLength[j], clusterDiv[k]);\n if (temp == null) continue; // if num_agents < agents_per_cluster then stop\n else topo = temp;\n }\n fileName = \"datasets/\" + city[i]\n + \"_\" + topo.getNumAgents()\n + \"_\" + topo.getNumClusters()\n + \"_\" + d;\n generateSHDSInstances(fileName, d, topo, time_span, time_granularity);\n }\n }\n }\n }\n }", "static void test2() {\n\n System.out.println( \"Begin test2. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write a more involved test here.\" );\n //\n // Create a GremlinsBridge of capacity 3.\n // Set an OPTIONAL, test delay to stagger the start of each mogwai.\n // Create the Mogwais and store them in an array.\n // Run them by calling their start() method.\n // Now, the test must give the mogwai time to finish their crossings.\n //\n System.out.println( \"TODO: follow the pattern of the example tests.\" );\n System.out.println( \"\\n=============================== End test2.\" );\n }", "@Test\r\n\tpublic void testgetTraineeOverallLineChart(){\r\n\t\tlog.debug(\"testgetTraineeOverallLineChart Test\");\r\n\t\t//The arrays are set up so the nth elemnt in batchId matches the nth element in traineeId\r\n\t\tInteger[] batchId = new Integer[]{2200,2050,2150};\r\n\t\tInteger[] traineeId = new Integer[]{5503,5350,5467};\r\n\t\tint random = ThreadLocalRandom.current().nextInt(0, 3);\r\n\t\t//Gets the maps from the service\r\n\t\tMap<Integer, Double[]> theMap = service.getTraineeOverallLineChart(batchId[random],traineeId[random]);\r\n\t\t//Maps the double array values to an ArrayList\r\n\t\tArrayList<Double[]> targetList = new ArrayList<>(theMap.values());\r\n\t\t//Stores the array body as a string \r\n\t\tResponse response = given().spec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON)\r\n\t\t.when().get(baseUrl+\"all/reports/batch/{batchId}/overall/trainee/{traineeId}/line-trainee-overall\",batchId[random],traineeId[random]);\r\n\t\tJSONObject responseJson = new JSONObject(response.getBody().asString());;\r\n\t\t//For the length of the body finds the double array and compares the 1st and second values of the double array\r\n\t\tfor(int i =1; i <= responseJson.length(); i++){\r\n\t\t\tJSONArray values = responseJson.getJSONArray(Integer.toString(i));\r\n\t\t\tfor(int j = 0; j < values.length(); j++) {\r\n\t\t\t\tdouble value = values.getDouble(j);\r\n\t\t\t\tassertEquals(Math.round(value*1000d)/1000d, Math.round(targetList.get(i-1)[j]*1000d)/1000d,0.0001);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\r\n public void testDataBuilder_Update2(){\r\n \tdataBuild.initAllData();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPU's: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPU's: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards's: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSU: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n \tDate profileTime = new Date(System.currentTimeMillis());\r\n \tdataBuild.updateProductPricing();\r\n \tSystem.out.println(\"Price Fetching Update Complete in \" + (float)(System.currentTimeMillis() - profileTime.getTime())/1000 + \" seconds\");\r\n }", "@Test\r\n public void testDataBuilder_ValidInit(){\r\n \tDataInitializer dataBuild = DataInitializer.getInstance();\r\n \tdataBuild.initValidComputerParts();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDATA() {\n CuteNetlibCase.doTest(\"STANDATA.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_20() {\n CuteNetlibCase.doTest(\"PDS-20.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_10() {\n CuteNetlibCase.doTest(\"PDS-10.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@SuppressWarnings(\"unused\")\n public String testStepCounter_batching() throws Throwable {\n return runBatchTest(\n Sensor.TYPE_STEP_COUNTER,\n REPORT_LATENCY_25_SEC,\n R.string.snsr_batching_walking_needed);\n }", "@Before\n public void DataSmoothExamples2() {\n\t LinkedList<Episode> eps5 = new LinkedList<Episode>();\n\t\teps5.add(new Episode(\"The One with the Video Tape\", 0));\n\t\teps5.add(new Episode(\"The One with Giant Poking Device\", 0));\n\t\teps5.add(new Episode(\"The One with Ross' Tan\", 0));\t\t\n\t\tshows2.add(new Show(\"Friends\", 1830, eps5, false));\n\t\t\n\t\tLinkedList<Episode> eps6 = new LinkedList<Episode>();\n\t\teps6.add(new Episode(\"Hello World\", 0));\n\t\teps6.add(new Episode(\"This is my test\", 0));\n\t\teps6.add(new Episode(\"What's up\", 0));\n\t\teps6.add(new Episode(\"Beanbags\", 0));\n\t\tshows2.add(new Show(\"Edge case test\", 1900, eps6, false));\n\t\t\n\t\tLinkedList<Episode> eps7 = new LinkedList<Episode>();\n\t\teps7.add(new Episode(\"Yakko's\", 0));\n\t\teps7.add(new Episode(\"Hello\", 0));\n\t\teps7.add(new Episode(\"Where\", 0));\n\t\tshows2.add(new Show(\"Animals\", 1700, eps7, false));\n\t\t\n\t\tLinkedList<Episode> eps8 = new LinkedList<Episode>();\n\t\teps8.add(new Episode(\"W\", 0));\n\t\teps8.add(new Episode(\"P\", 0));\n\t\teps8.add(new Episode(\"I\", 0));\n\t\tshows2.add(new Show(\"WPI\", 1100, eps8, false));\n\n\t showResults2.add(0.0);\n\t showResults2.add(0.0);\n\t showResults2.add(0.0);\n\t showResults2.add(0.0);\n\t}", "public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "private void stressTest() {\n\t\t\n\t\tTimerTask task = new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tint count = 1;\n\t\t\t\tint len = 100;\n\t\t\t\tint maxCount = 1000000;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Start stress test...\");\n\t\t\t\twhile (count <= maxCount) {\n\t\t\t\t\t\n\t\t\t\t\tif ((count % 1000) == 0) {\n\t\t\t\t\t\tSystem.out.println(\"Count: \" + count + \" of \" + maxCount);\n\t\t\t\t\t\tSystem.gc();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong larray[] = new long[len];\n\t\t\t\t\t\n\t\t\t\t\tlarray[0] = count;\n\t\t\t\t\tlarray[len-1] = count;\n\t\t\t\t\t\n\t\t\t\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\t\t\t\tmessage.setPayload(larray);\n\t\t\t\t\tsend(message);\n\n\t\t\t\t\t\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tThread.sleep(25);\n//\t\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t}\n\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Done.\");\n\n\t\t\t}\n\n\t\t};\n\n\t\tTimer timer = new Timer();\n\t\t// one time schedule\n\t\ttimer.schedule(task, 2000L);\n\t}", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void testGenerateStatistics() {\n Statistics me = new Statistics(0, numFishes, numSharks);\n Statistics prog = dataHandler.generateStatistics();\n //assertEquals(me, prog);\n if (me.getIterationStep() == prog.getIterationStep()\n && me.getFishAmount() == prog.getFishAmount()\n && me.getSharksAmount() == prog.getSharksAmount()) {\n assertTrue(true);\n } else {\n assertTrue(false);\n }\n }", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "public void testGenerateBrokerAndVirtualhostStatistics() throws Exception\n {\n sendUsing(_test, 5, 200);\n Thread.sleep(1000);\n \n for (ManagedConnection mc : _jmxUtils.getManagedConnections(\"test\"))\n {\n assertEquals(\"Incorrect connection total\", 0, mc.getTotalMessagesReceived());\n assertEquals(\"Incorrect connection data\", 0, mc.getTotalDataReceived());\n\t assertFalse(\"Connection statistics should not be enabled\", mc.isStatisticsEnabled());\n }\n \n ManagedBroker vhost = _jmxUtils.getManagedBroker(\"test\");\n assertEquals(\"Incorrect vhost data\", 5, vhost.getTotalMessagesReceived());\n assertEquals(\"Incorrect vhost data\", 1000, vhost.getTotalDataReceived());\n assertTrue(\"Vhost statistics should be enabled\", vhost.isStatisticsEnabled());\n\n assertEquals(\"Incorrect server total messages\", 5, _jmxUtils.getServerInformation().getTotalMessagesReceived());\n assertEquals(\"Incorrect server total data\", 1000, _jmxUtils.getServerInformation().getTotalDataReceived());\n assertTrue(\"Server statistics should be enabled\", _jmxUtils.getServerInformation().isStatisticsEnabled());\n }", "public void testSummaryStatsParNew() {\n File testFile = new File(\"src/test/data/dataset2.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 348864, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 699392, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 2, jvmRun.getNewRatio());\n Assert.assertEquals(\"Max heap space not calculated correctly.\", 1048256, jvmRun.getMaxHeapSpace());\n Assert.assertEquals(\"Max heap occupancy not calculated correctly.\", 424192, jvmRun.getMaxHeapOccupancy());\n Assert.assertEquals(\"Max pause not calculated correctly.\", 1070, jvmRun.getMaxGcPause());\n Assert.assertEquals(\"Max perm gen space not calculated correctly.\", 99804, jvmRun.getMaxPermSpace());\n Assert.assertEquals(\"Max perm gen occupancy not calculated correctly.\", 60155, jvmRun.getMaxPermOccupancy());\n Assert.assertEquals(\"Total GC duration not calculated correctly.\", 1282, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PAR_NEW.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PAR_NEW));\n Assert.assertTrue(JdkUtil.LogEventType.CMS_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.CMS_SERIAL_OLD));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_CMS + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_CMS));\n }", "public void testSummaryStatsStoppedTime() {\n File testFile = new File(\"src/test/data/dataset41.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertTrue(JdkUtil.LogEventType.G1_YOUNG_PAUSE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.G1_YOUNG_PAUSE));\n Assert.assertTrue(JdkUtil.LogEventType.APPLICATION_STOPPED_TIME.toString() + \" not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.APPLICATION_STOPPED_TIME));\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 2192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 2847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 964, jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 3884, jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 3884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 4884, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 99, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 78, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test(timeout = 4000)\n public void test1() throws Throwable {\n Hw1 hw1_0 = new Hw1();\n }", "Meter createMeter();", "public void testGetStartValue() {\n TaskSeriesCollection c = createCollection1();\n TaskSeriesCollection c3 = createCollection3();\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_06() {\n CuteNetlibCase.doTest(\"PDS-06.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout=300000)\n public void test1() throws Throwable {\n PendingWritesCollector pendingWritesCollector0 = new PendingWritesCollector(\"\");\n String string0 = pendingWritesCollector0.getDescription();\n assertEquals(\"monitoring.scheduler.pending.writes\", string0);\n }", "@Test\n public void dataPassed() {\n assertEquals(10, cameraVisualizationPacket.getSensorSource().getX());\n assertEquals(11, cameraVisualizationPacket.getSensorSource().getY());\n assertEquals(12, cameraVisualizationPacket.getSensorCorner1().getX());\n assertEquals(13, cameraVisualizationPacket.getSensorCorner1().getY());\n assertEquals(14, cameraVisualizationPacket.getSensorCorner2().getX());\n assertEquals(15, cameraVisualizationPacket.getSensorCorner2().getY());\n assertEquals(50, cameraVisualizationPacket.getColor().getRed());\n assertEquals(51, cameraVisualizationPacket.getColor().getGreen());\n assertEquals(57, cameraVisualizationPacket.getColor().getBlue());\n\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "@Ignore\n @Test\n public void testPerformanceFuserOnly() throws JAXBException, ClassNotFoundException, Exception\n {\n int num_messages = 20000;\n int num_samples = 10;\n \n long total = 0;\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n \n for( int i = 0; i < num_samples; i++ )\n {\n long proc_time = sendMatmFlightMsgs( num_messages );\n total = total + proc_time;\n min = Math.min( min, proc_time );\n max = Math.max( max, proc_time );\n }\n \n log.info( \"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\" );\n log.info( \"Ran \" + num_samples + \" samples. Avg Time = \" + ( total / num_samples ) + \n \", Min Time = \" + min + \", Max Time = \" + max );\n log.info( \"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\" ); \n }", "private void loadSimulatedNormalData() throws Exception {\n setLowestMeasuredPercentile(1.0);\n\n setSampleCount(sentinelA, 1000);\n setSampleCount(sentinelB, 1000);\n setSampleCount(sentinelC, 1000);\n setSampleCount(sentinelD, 1000);\n setSampleCount(sentinelE, 1000);\n\n when(mbeanServer.getAttribute(sentinelA, \"50thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelB, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelC, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelD, \"75thPercentile\")).thenReturn(1.0);\n when(mbeanServer.getAttribute(sentinelE, \"75thPercentile\")).thenReturn(1.0);\n\n when(mbeanServer.isRegistered(sentinelA)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelB)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelC)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelD)).thenReturn(Boolean.TRUE);\n when(mbeanServer.isRegistered(sentinelE)).thenReturn(Boolean.TRUE);\n\n System.out.println(\"Start manual evaluation ...\");\n qosHandler.evaluateQoSActions();\n }", "@Before\n public void setUp() {\n meter = new Meter<Events>(Events.values());\n //// set up some metrics that you want to track\n // sum of all puts to the read counter (total bytes read)\n meter.addCountMetric(Events.bytes_read, \"totalBytesReceived\");\n // max read size\n meter.addMaxMetric(Events.bytes_read, \"maxReadSize\");\n // average read size\n meter.addAverageMetric(Events.bytes_read, \"avgReadSize\");\n // rate metric = count / time since last reset (bytes read per second)\n meter.addRateMetric(Events.bytes_read, \"inBPS\");\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "public void testSummaryStatsParallel() {\n File testFile = new File(\"src/test/data/dataset1.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 248192, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 786432, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 3, jvmRun.getNewRatio());\n Assert.assertEquals(\"Max heap space not calculated correctly.\", 1034624, jvmRun.getMaxHeapSpace());\n Assert.assertEquals(\"Max heap occupancy not calculated correctly.\", 1013058, jvmRun.getMaxHeapOccupancy());\n Assert.assertEquals(\"Max pause not calculated correctly.\", 2782, jvmRun.getMaxGcPause());\n Assert.assertEquals(\"Max perm gen space not calculated correctly.\", 159936, jvmRun.getMaxPermSpace());\n Assert.assertEquals(\"Max perm gen occupancy not calculated correctly.\", 76972, jvmRun.getMaxPermOccupancy());\n Assert.assertEquals(\"Total GC duration not calculated correctly.\", 5614, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SCAVENGE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SCAVENGE));\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SERIAL_OLD));\n Assert.assertTrue(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_PARALLEL));\n }", "public final void testChartServerClient() {\r\n final int port = 1234;\r\n final int timeout = 2000;\r\n Thread thread = new Thread() {\r\n public void run() {\r\n Socket socket = null;\r\n try {\r\n sleep(timeout);\r\n socket = new Socket(\"localhost\", port);\r\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\r\n out.println(xmlHeader + \"\\n<test>tst</test>\\n\\n\");\r\n sleep(timeout);\r\n }\r\n catch (Exception ex) {\r\n }\r\n if (socket != null) {\r\n try { socket.close(); } catch (Exception e) {}\r\n }\r\n }\r\n };\r\n\r\n thread.start();\r\n ChartServer.doWork(1234, timeout * 2);\r\n }", "@Test\n public void DataSmoothTest12() {\n\t LinkedList<Double> runtimes1 = D2.dataSmooth(shows2);\n\t \n\t for(int i = 0; i < runtimes1.size(); i++) {\n\t\t assertEquals(runtimes1.get(i), showResults2.get(i), 0.001);\n\t }\n }", "@Test\n\tpublic void testReadFromOnlyHost(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock2(0);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(10000, readTime);\t\t\n\t}", "static void initializeData() {\n\n if (timeLimitInHour != -1) {\n endTime = startTime + timeLimitInHour * 60 * 60 * 1000;\n }\n\n // Read the data file.\n data = new Data(dataFileName);\n\n // Build all variables.\n allVariable = data.buildAllVariable();\n\n // Read the target gene set.\n GeneSet geneSet = new GeneSet(allVariable, targetGeneSetFileName, minGeneSetSize, maxGeneSetSize, selectedCollections);\n listOfTargetGeneSets = geneSet.buildListOfGeneSets();\n\n // Read sample class labels.\n readSampleClass();\n\n // Initialize remaining fields.\n if (numberOfThreads == 0)\n numberOfThreads = getRuntime().availableProcessors();\n\n // Initialize BufferedWriter with preliminary info for log file.\n String fileInfo = \"EDDY OUTPUT FILE\\n\";\n fileInfo += (\"Data File: \" + dataFileName + \"\\n\");\n fileInfo += (\"Target Gene Set(s) File: \" + targetGeneSetFileName + \"\\n\");\n fileInfo += (\"Class Label File: \" + sampleClassInformationFileName + \"\\n\");\n fileInfo += (\"Number of Gene Sets: \" + listOfTargetGeneSets.size() + \"\\n\");\n fileInfo += (\"Number of Threads: \" + numberOfThreads + \"\\n\\n\");\n \n // log command line options, in verbatim \n fileInfo += concatStrings(commandLine) + \"\\n\\n\";\n \n fileInfo += (\"Name: \\tCollection: \\tSize: \\tURL: \\tJS Divergence: \\tP-Value: \\t#Permutations: \\tGenes: \\n\");\n try {\n \t// TODO: need to come up with a better way to assign the output file name.\n String fileName = targetGeneSetFileName.substring(0, targetGeneSetFileName.indexOf(\".gmt\")) + \"_output.txt\";\n \n File file = new File(fileName);\n \n output = new BufferedWriter(new FileWriter(file));\n output.write(fileInfo);\n } catch ( IOException e ) {\n e.printStackTrace();\n }\n\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "public static void main(String[] args) {\r\n\t\tTimerTask connectivityTest = new TimerTask() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tBinanceApiClientFactory factory = BinanceApiClientFactory.newInstance();\r\n\t\t\t\tBinanceApiRestClient client = factory.newRestClient();\r\n\r\n\t\t\t\t// Keep connection alive\r\n\t\t\t\tclient.ping();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tTimer timer = new Timer();\r\n\r\n\t\tlong period = 1000 * 60 * 60 / 2;// milliseconds_per_second*seconds_per_minute*minutes_per_hour/2\r\n\t\tlong delay = period;\r\n\r\n\t\t/**\r\n\t\t * twice per hour\r\n\t\t * \r\n\t\t */\r\n\t\ttimer.scheduleAtFixedRate(connectivityTest, delay, period);\r\n\r\n\t\t/************************************************************\r\n\t\t * do the needful\r\n\t\t ***********************************************************/\r\n\t\tString[] myFavoritesBTC = new String[] { \"QTUM\", \"NEO\", \"IOTA\", \"FUEL\", \"ETH\", \"ETC\", \"XRP\", \"AION\", \"ICX\",\r\n\t\t\t\t\"BNB\" };\r\n\t\tfor (String symbol : myFavoritesBTC) {\r\n\t\t\tString pair = symbol + \"BTC\";\r\n\t\t\tnew AggTradesCacheExample(pair);\r\n\t\t\tnew DepthCacheExample(pair);\r\n\t\t\tnew CandlesticksCacheExample(pair, CandlestickInterval.ONE_MINUTE);\r\n\t\t}\r\n\t}", "public void init()\n {\n boolean tHotspot = true;\n // Figures below valid for 1000TPS\n double tGcRateFactor = 1000.0D / ((1000.0D * 1000.0) * cClientTransPerMicro) ;\n if (tHotspot)\n {\n // tax average 6ms, max 65, every 20 seconds\n // me1 27ms, max 83ms, every 20 seconds\n // me1s 27ms, max 87, every 22seconds\n mTaxJvm = new GcService(9908.0D*1000 * tGcRateFactor, 9.0D*1000); \n mMeJvm = new GcService(2509.0D*1000 * tGcRateFactor, 17.0D*1000); \n mMeStandbyJvm = new GcService(2257.0D*1000 * tGcRateFactor, 15.0D*1000);\n }\n else\n {\n // Metronome \n mTaxJvm = new GcService(100*1000, 500);\n mMeJvm = new GcService(100*1000, 500);\n mMeStandbyJvm = new GcService(100*1000, 500);\n }\n\n String tName;\n mClient.init(new ServerConfig(mClient, mClientTaxNwDelay, \"Client\", cClientCount, cClientCount, 0.1));\n {\n mClientTaxNwDelay.init(new ServerConfig(mClientTaxNwDelay, mTaxTcp, \"ClientTaxNwDelay\", 1, 1, 0.1)); \n {\n tName = \"TaxServer\";\n mTaxTcp.init(new ServerConfig(mTaxJvm, mTaxTcp, mTaxPool, tName + \"_Tcp\", 1, 1, 22)); \n mTaxPool.init(new ServerConfig(mTaxJvm, mTaxPool, mTaxMeNwDelay, tName + \"_ServerPool\", 5, 150, 11)); \n\n {\n mTaxMeNwDelay.init(new ServerConfig(mTaxMeNwDelay, mMePrimaryTcp, \"TaxMeNwDelay\", 1, 1, 100)); \n {\n tName=\"MatchingEngine\";\n mMePrimaryTcp.init(new ServerConfig(mMeJvm, mMePrimaryTcp, mMePrimaryServerPool, tName + \"Tcp\", 1, 1, 14));\n mMePrimaryServerPool.init(new ServerConfig(mMeJvm, mMePrimaryServerPool, mMePrimarySorter, tName + \"_ServerPool\", 5, 150, 12)); \n mMePrimarySorter.init(new ServerConfig(mMeJvm, mMePrimarySorter, mMePrimaryChainUnit0, tName + \"_Sorter\", 1, 1, 13));\n mMePrimaryChainUnit0.init(new ServerConfig(mMeJvm, mMePrimaryChainUnit0, mMePrimaryPostChain, tName + \"_ChainUnit0\", 1, 1, 59)); \n mMePrimaryBatchSender.init(new ServerConfig(mMeJvm, mMePrimaryBatchSender, mMeMesNwDelay, tName + \"_BatchSender\", 10, 10, 1)); \n mMePrimaryRecoveryLog.init(new ServerConfig(mMeJvm, mMePrimaryRecoveryLog, mMePrimaryPostChain, tName + \"_RecoveryLog\", 1, 1, 50)); \n mMePrimaryPostChain.init(new ServerConfig(mMeJvm, mMePrimaryPostChain, mMePrimaryResponsePool, tName + \"_PostChain\", 1, 1, 46)); \n mMePrimaryResponsePool.init(new ServerConfig(mMeJvm, mMePrimaryResponsePool, mMeTaxNwDelay, tName + \"_ResponsePool\", 5, 25, 16)); \n\n {\n mMeMesNwDelay.init(new ServerConfig(mMeMesNwDelay, mMeStandbyTcp, \"MeMesNwDelay\", 1, 1, 90)); \n {\n tName=\"MatchingEngineStandby\";\n mMeStandbyTcp.init(new ServerConfig(mMeStandbyJvm, mMeStandbyTcp, mMeStandbyServerPool, tName + \"_Tcp\", 1, 1, 13)); \n mMeStandbyServerPool.init(new ServerConfig(mMeStandbyJvm, mMeStandbyServerPool, mMesMeNwDelay, tName + \"_ServerPool\", 5, 150, 18)); \n }\n mMesMeNwDelay.init(new ServerConfig(mMesMeNwDelay, mMePrimaryPostChain, \"MesMeNwDelay\", 1, 1, 90)); \n }\n }\n mMeTaxNwDelay.init(new ServerConfig(mMeTaxNwDelay, mTaxCollector, \"MeTaxNwDelay\", 1, 1, 100));\n }\n } \n mTaxCollector.init(new ServerConfig(mTaxJvm, mTaxCollector, mTaxClientNwDelay, tName + \"_Collector\", 1, 1, 0.1)); \n mTaxClientNwDelay.init(new ServerConfig(mTaxClientNwDelay, null, \"TaxClientNwDelay\", 1, 1, 0.1));\n }\n }", "@Test(groups = { \"simple\" }, timeOut = TIMEOUT)\n public void maxValueExceedingDefinedLimitStillWorksWithoutException() throws Exception {\n\n this.beforeTest(CosmosMetricCategory.DEFAULT);\n\n try {\n Tag dummyOperationTag = Tag.of(TagName.Operation.toString(), \"TestDummy\");\n Timer latencyMeter = Timer\n .builder(\"cosmos.client.op.latency\")\n .description(\"Operation latency\")\n .maximumExpectedValue(Duration.ofSeconds(300))\n .publishPercentiles(0.95, 0.99)\n .publishPercentileHistogram(true)\n .tags(Collections.singleton(dummyOperationTag))\n .register(this.meterRegistry);\n latencyMeter.record(Duration.ofSeconds(600));\n\n Meter requestLatencyMeter = this.assertMetrics(\n \"cosmos.client.op.latency\",\n true,\n dummyOperationTag);\n\n List<Measurement> measurements = new ArrayList<>();\n requestLatencyMeter.measure().forEach(measurements::add);\n\n assertThat(measurements.size()).isEqualTo(3);\n\n assertThat(measurements.get(0).getStatistic().getTagValueRepresentation()).isEqualTo(\"count\");\n assertThat(measurements.get(0).getValue()).isEqualTo(1);\n assertThat(measurements.get(1).getStatistic().getTagValueRepresentation()).isEqualTo(\"total\");\n assertThat(measurements.get(1).getValue()).isEqualTo(600 * 1000); // transform into milliseconds\n assertThat(measurements.get(2).getStatistic().getTagValueRepresentation()).isEqualTo(\"max\");\n assertThat(measurements.get(2).getValue()).isEqualTo(600 * 1000); // transform into milliseconds\n } finally {\n this.afterTest();\n }\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\t\n\t\tdata = new ArrayList<>();\n\t\tdata.add(new StockTimeFrameData(\"1\", 0, 0, 0, 0, 0, 22.27, false)); \n\t\tdata.add(new StockTimeFrameData(\"2\", 0, 0, 0, 0, 0, 22.19, false)); \n\t\tdata.add(new StockTimeFrameData(\"3\", 0, 0, 0, 0, 0, 22.08, false)); \n\t\tdata.add(new StockTimeFrameData(\"4\", 0, 0, 0, 0, 0, 22.17, false));\t\n\t\tdata.add(new StockTimeFrameData(\"5\", 0, 0, 0, 0, 0, 22.18, false)); \n\t\tdata.add(new StockTimeFrameData(\"6\", 0, 0, 0, 0, 0, 22.13, false)); \n\t\tdata.add(new StockTimeFrameData(\"7\", 0, 0, 0, 0, 0, 22.23, false)); \t\n\t\tdata.add(new StockTimeFrameData(\"8\", 0, 0, 0, 0, 0, 22.43, false)); \n\t\tdata.add(new StockTimeFrameData(\"9\", 0, 0, 0, 0, 0, 22.24, false)); \n\t\tdata.add(new StockTimeFrameData(\"10\", 0, 0, 0, 0, 0, 22.29, false)); \n\t\tdata.add(new StockTimeFrameData(\"11\", 0, 0, 0, 0, 0, 22.15, false)); \n\t\tdata.add(new StockTimeFrameData(\"12\", 0, 0, 0, 0, 0, 22.39, false)); \n\t\tdata.add(new StockTimeFrameData(\"13\", 0, 0, 0, 0, 0, 22.38, false)); \n\t\tdata.add(new StockTimeFrameData(\"14\", 0, 0, 0, 0, 0, 22.61, false)); \n\t\t//data.add(new StockTimeFrameData(\"15\", 0, 0, 0, 0, 0, 23.36, false)); \n\n\t\tmacd = new MACD(data, 10, 4, 6);\n\t}", "@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }", "private double pingGetLatency(){\n\t\t int NUMBER_OF_PACKTETS=10;\n\t String pingCommand = \"/system/bin/ping -c \" + NUMBER_OF_PACKTETS + \" \" + ip;\n\t String inputLine = \"\";\n\t double avgRtt = 0;\n\n\t try {\n\t // execute the command on the environment interface\n\t Process process = Runtime.getRuntime().exec(pingCommand);\n\t // gets the input stream to get the output of the executed command\n\t BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n\t inputLine = bufferedReader.readLine();\n\t while ((inputLine != null)) {\n\t if (inputLine.length() > 0 && inputLine.contains(\"avg\")) { // when we get to the last line of executed ping command\n\t break;\n\t }\n//\t \t if (inputLine.length()>0) inputLine = bufferedReader.readLine();\n\t inputLine = bufferedReader.readLine();\n\t }\n\t }\n\t catch (IOException e){\n\t \t pingParameters=\"Error in ping\";\n\t e.printStackTrace();\n\t }\n\n\t // Extracting the average round trip time from the inputLine string\n\t String afterEqual = inputLine.substring(inputLine.indexOf(\"=\"), inputLine.length()).trim();\n\t String afterFirstSlash = afterEqual.substring(afterEqual.indexOf('/') + 1, afterEqual.length()).trim();\n\t String strAvgRtt = afterFirstSlash.substring(0, afterFirstSlash.indexOf('/'));\n\t avgRtt = Double.valueOf(strAvgRtt);\n\t pingParameters=inputLine;\n\t return avgRtt;\n\t }", "@Test\n public void testDoReport() {\n long startTime = 111;\n String traceId = \"traceId\";\n String spanId = \"spanId\";\n SofaTracerSpanContext sofaTracerSpanContext = new SofaTracerSpanContext(traceId, spanId,\n null);\n Map<String, String> tags = new HashMap<String, String>();\n tags.put(\"key\", \"value\");\n\n // other case:sofaTracerSpanContext.setSampled(Boolean.False)\n sofaTracerSpanContext.setSampled(Boolean.TRUE);\n SofaTracerSpan sofaTracerSpan = new SofaTracerSpan(this.sofaTracer, startTime,\n \"testConstructSpan\", sofaTracerSpanContext, tags);\n\n clientAbstractDiskReporter.doReport(sofaTracerSpan);\n if(!sofaTracerSpanContext.isSampled()){\n // 没有初始化\n assertEquals(false, this.clientAbstractDiskReporter.getIsDigestFileInited().get());\n Assert.assertEquals(0, statReporter.getStatData().size());\n }else {\n // 初始化\n assertEquals(true, this.clientAbstractDiskReporter.getIsDigestFileInited().get());\n Assert.assertNotEquals(0, statReporter.getStatData().size());\n }\n }", "@BeforeClass public static void beforeClass() {\n addTestData(testdsg1);\n addTestData(testdsg2);\n addTestData(testdsg3);\n\n SecurityRegistry reg = new SecurityRegistry();\n reg.put(\"userNone\", SecurityContext.NONE);\n reg.put(\"userDft\", SecurityContextView.DFT_GRAPH);\n reg.put(\"user0\", new SecurityContextView(Quad.defaultGraphIRI.getURI()));\n reg.put(\"user1\", new SecurityContextView(\"http://test/g1\", Quad.defaultGraphIRI.getURI()));\n reg.put(\"user2\", new SecurityContextView(\"http://test/g1\", \"http://test/g2\", \"http://test/g3\"));\n reg.put(\"user3\", new SecurityContextView(Quad.defaultGraphIRI.getURI(), \"http://test/g2\", \"http://test/g3\"));\n\n testdsg1 = DataAccessCtl.controlledDataset(testdsg1, reg);\n testdsg2 = DataAccessCtl.controlledDataset(testdsg2, reg);\n testdsg3 = DataAccessCtl.controlledDataset(testdsg3, reg);\n\n UserStore userStore = userStore();\n ConstraintSecurityHandler sh = JettySecurityLib.makeSecurityHandler(\"*\", userStore);\n JettySecurityLib.addPathConstraint(sh, \"/*\");\n\n // If used, also check log4j2.properties.\n //FusekiLogging.setLogging();\n fusekiServer = FusekiServer.create()\n .securityHandler(sh)\n .port(0)\n //.verbose(true)\n .add(\"data1\", testdsg1)\n .add(\"data2\", testdsg2)\n .add(\"data3\", testdsg3)\n .build();\n fusekiServer.start();\n }", "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public static void main(String[] args) {\n\t\tHashTable<String, Double> table = new HashTable<String, Double>();\n\t\tLoader.load(table,\n\t\t\t\t\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=10000\");\n\t\tSystem.out.println(\"1000 loaded.\");\n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=11000\");\n\t\tSystem.out.println(\"2000 loaded.\"); \n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=12000\");\n\t\tSystem.out.println(\"3000 loaded.\"); \n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=13000\");\n\t\tSystem.out.println(\"4000 loaded.\"); \n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=14000\");\n\t\tSystem.out.println(\"5000 loaded.\"); \n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=15000\");\n\t\tSystem.out.println(\"6000 loaded.\"); \n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=16000\");\n\t\tSystem.out.println(\"7000 loaded.\");\n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=17000\");\n\t\tSystem.out.println(\"8000 loaded.\");\n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=18000\");\n\t\tSystem.out.println(\"9000 loaded.\");\n\t\tLoader.load(table,\"https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?limit=1000&offset=19000\");\n\t\tSystem.out.println(\"10000 loaded.\");\n\t}", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void testGetAvailableResults() {\n System.out.println(\"getAvailableResults\");\n String sim = \"Simulation\";\n \n FlightPlan fp=new FlightPlan();\n ShortestPathResult sp = new ShortestPathResult(fp);\n sp.calculateBestPath(new AirNetwork(),fp,10,10);\n \n Simulation simu = new Simulation();\n simu.setShortestResultPath(sp);\n p.getSimulationsList().getSimulationsList().add(simu);\n ExportCSVController instance = new ExportCSVController(p);\n Map<String, Path> expResult = new HashMap<>();\n expResult.put(\"Best Consumption\", p.getSimulationsList().getSimulationsList().getFirst().getEcologicResultPath());\n expResult.put(\"Fastest Path\", p.getSimulationsList().getSimulationsList().getFirst().getFastestResultPath());\n expResult.put(\"Shortest Path\", p.getSimulationsList().getSimulationsList().getFirst().getShortestResultPath());\n Map<String, Path> result = instance.getAvailableResults(sim);\n assertEquals(expResult, result);\n\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_DefaultCols = \"_3*kK(3?y\";\n discretize0.m_UseBinNumbers = true;\n discretize0.desiredWeightOfInstancesPerIntervalTipText();\n discretize0.setOutputFormat();\n discretize0.setInvertSelection(true);\n Range range0 = new Range(\"Sets the desired weight of instances per interval for equal-frequency binning.\");\n discretize0.m_DiscretizeCols = range0;\n discretize0.getUseEqualFrequency();\n range0.toString();\n String[] stringArray0 = new String[5];\n stringArray0[0] = \"Sets the desired weight of instances per interval for equal-frequency binning.\";\n stringArray0[1] = \"Sets the desired weight of instances per interval for equal-frequency binning.\";\n stringArray0[2] = \"Sets the desired weight of instances per interval for equal-frequency binning.\";\n stringArray0[3] = \"_3*kK(3?y\";\n stringArray0[4] = \"_3*kK(3?y\";\n Discretize.main(stringArray0);\n discretize0.getOptions();\n discretize0.setOutputFormat();\n // Undeclared exception!\n try { \n discretize0.batchFinished();\n fail(\"Expecting exception: IllegalStateException\");\n \n } catch(IllegalStateException e) {\n //\n // No input instance format defined\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }" ]
[ "0.58092475", "0.5540265", "0.5536447", "0.55303663", "0.5521632", "0.5460742", "0.5387774", "0.537882", "0.5349754", "0.5340959", "0.53406984", "0.5334007", "0.5281896", "0.52602214", "0.52472985", "0.52472246", "0.52452826", "0.52439284", "0.5240471", "0.52344024", "0.52237123", "0.5220928", "0.5214927", "0.5212557", "0.5199914", "0.5189898", "0.5173324", "0.51678085", "0.51650167", "0.5162252", "0.5158945", "0.51589376", "0.51482207", "0.514355", "0.514353", "0.5138035", "0.51313555", "0.51313454", "0.51250994", "0.51199174", "0.51195115", "0.51189995", "0.51183784", "0.51157445", "0.51099086", "0.5105662", "0.51045024", "0.5102922", "0.5100449", "0.50989777", "0.50954694", "0.5095033", "0.50935906", "0.50912905", "0.5090319", "0.50881124", "0.50856286", "0.5083949", "0.507587", "0.50757855", "0.5074404", "0.50732076", "0.5057823", "0.5045111", "0.5035267", "0.50330555", "0.5031492", "0.5030238", "0.5029944", "0.5028252", "0.5022867", "0.50222284", "0.50176066", "0.5011128", "0.50105447", "0.5005584", "0.5005172", "0.500408", "0.50040007", "0.50031745", "0.49921095", "0.49907398", "0.49906132", "0.4990493", "0.4988944", "0.49866745", "0.49840978", "0.49831572", "0.49729317", "0.49711856", "0.49707606", "0.49687228", "0.49667972", "0.4966729", "0.49639145", "0.49626607", "0.4961744", "0.49585629", "0.49558768", "0.49537775" ]
0.51387525
35
Creates (if necessary) and returns the singleton instance of the KingDataset
public static KingDataset instance() { if (instance == null) { instance = new KingDataset(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private KingDataset() {\r\n\t\tString filename = \"bin\" + File.separator + \"KingDataset.bin\";\r\n\t\t\r\n\t\t// Prepare our array based on the dataset filename\r\n\t\tvalues = new byte[(int)new File(filename).length()];\r\n\t\t\r\n\t\t// Read the king dataset\r\n\t\ttry {\r\n\t\t\tFileInputStream input = new FileInputStream(filename);\r\n\t\t\tinput.read(values);\r\n\t\t\tinput.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"[email protected]\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "public AzureDataLakeStoreDataset() {\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }", "public DataSet() {\r\n \r\n }", "public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public static ChartDataUpdater getInstance(){\n\t\treturn ChartDataUpdaterInstanceHolder.instance;\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "public IndexedDataSet<T> getDataSet();", "public static CategoryDataset createDataset() {\r\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\r\n dataset.addValue(1.0, \"First\", \"C1\");\r\n dataset.addValue(4.0, \"First\", \"C2\");\r\n dataset.addValue(3.0, \"First\", \"C3\");\r\n dataset.addValue(5.0, \"First\", \"C4\");\r\n dataset.addValue(5.0, \"First\", \"C5\");\r\n dataset.addValue(7.0, \"First\", \"C6\");\r\n dataset.addValue(7.0, \"First\", \"C7\");\r\n dataset.addValue(8.0, \"First\", \"C8\");\r\n dataset.addValue(5.0, \"Second\", \"C1\");\r\n dataset.addValue(7.0, \"Second\", \"C2\");\r\n dataset.addValue(6.0, \"Second\", \"C3\");\r\n dataset.addValue(8.0, \"Second\", \"C4\");\r\n dataset.addValue(4.0, \"Second\", \"C5\");\r\n dataset.addValue(4.0, \"Second\", \"C6\");\r\n dataset.addValue(2.0, \"Second\", \"C7\");\r\n dataset.addValue(1.0, \"Second\", \"C8\");\r\n dataset.addValue(4.0, \"Third\", \"C1\");\r\n dataset.addValue(3.0, \"Third\", \"C2\");\r\n dataset.addValue(2.0, \"Third\", \"C3\");\r\n dataset.addValue(3.0, \"Third\", \"C4\");\r\n dataset.addValue(6.0, \"Third\", \"C5\");\r\n dataset.addValue(3.0, \"Third\", \"C6\");\r\n dataset.addValue(4.0, \"Third\", \"C7\");\r\n dataset.addValue(3.0, \"Third\", \"C8\");\r\n return dataset;\r\n }", "@Override\n\tpublic Instances dataset() {\n\t\treturn null;\n\t}", "public AnalysisDatasets() {\n }", "DataTypeInstance getDataInstance();", "private DefaultPieDataset getChartDataset() {\n if (this.pieDataset == null) {\n pieDataset = new DefaultPieDataset();\n List<String> model = this.handler.getSchema();\n model.stream().forEach((key) -> {\n pieDataset.setValue(key, 0d);\n });\n }\n return pieDataset;\n }", "public static Dataset createDataset(RepositoryConnection connection)\n {\n DatasetGraph dsg = new JenaSesameDatasetGraph(connection) ;\n return DatasetFactory.wrap(dsg) ;\n }", "public static DataStore getInstance() {\n if (ourInstance == null) {\n ourInstance = new DataStore();\n }\n return ourInstance;\n }", "public static DataModule getInstance() {\n return Holder.INSTANCE;\n }", "public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }", "private Object createDataset(final ChartConfiguration config) {\n final CategoryChart chart = (CategoryChart) config.chart;\n for (final Fields key: config.fields) {\n chart.addSeries(key.getLocalizedName(), new double[1], new double[1]);\n }\n populateDataset(config);\n return null;\n }", "public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}", "private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "public AppEngineDataStoreFactory build() {\n return new AppEngineDataStoreFactory(this);\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "public static DataModelBuilder create() {\n return new DataModelBuilder();\n }", "public MarketDataManagerImpl()\n {\n instance = this;\n }", "DataFactory getDataFactory();", "public com.clarifai.grpc.api.Dataset.Builder getDatasetBuilder() {\n return getDatasetFieldBuilder().getBuilder();\n }", "public DatasetHelper(DatasetHelper another){\n id= another.id;\n hash = another.hash;\n catalogueId = another.catalogueId;\n sourceType = another.sourceType;\n sourceLang = another.sourceLang;\n model = ModelFactory.createDefaultModel().add(another.model);\n uriSchema = another.uriSchema;\n }", "public String getDatasetKey() { return null; }", "public DataBase getDataSet() {\r\n DataBase dataset = null;\r\n try {\r\n Statement stmt = conexion.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '\" + schema + \"'\";\r\n ResultSet rs = stmt.executeQuery(sql);\r\n dataset = new DataBase();\r\n while (rs.next()) {\r\n \r\n dataset.setCatalog_name(rs.getString(1));\r\n dataset.setSchema_name(rs.getString(2));\r\n dataset.setCharacter_set(rs.getString(3));\r\n dataset.setCollation_name(rs.getString(4));\r\n dataset.setIssued(getIssuedBD(schema));\r\n\r\n }\r\n ArrayList<Table> tables = getTables(schema);\r\n dataset.setTables(tables);\r\n return dataset;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAOBaseDatos.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n }", "public Dataset withName(String name) {\n setName(name);\n return this;\n }", "public void setupDryadCloudDataSets(){\n\t\ttry{\n\t\t\t\n\t\t\t// A Dryad \n\t\t\tDryadDataSet ds = new DryadDataSet(_DRYAD_D1_TREEBASE);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D1_TREEBASE_F1);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D3_POPULAR);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D3_POPULAR_F1);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D4_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D4_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D4_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D6_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D6_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D6_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D2_GENBANK);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F1);\t\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F2);\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F3);\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F4);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D5_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D5_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D5_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tSystem.out.println(\"ERROR: Exception \"+ex.getMessage());\n\t\t}\n\t}", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "public static Datamining getInstance (Context context) {\r\n if (datamining == null) {\r\n datamining = new Datamining(context);\r\n }\r\n return datamining;\r\n }", "public static D3 getInstance() {\n \n if(instance == null) {\n instance = new D3();\n }\n \n return instance;\n }", "private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }", "private CinaImageDataSetInformation createDataSetInformation()\n {\n CinaImageDataSetInformation metadataDataSetInfo = new CinaImageDataSetInformation();\n metadataDataSetInfo.setSampleCode(replicaSampleId.getSampleCode());\n metadataDataSetInfo.setSpaceCode(replicaSampleId.getSpaceLevel().getSpaceCode());\n metadataDataSetInfo.setDataSetType(globalState.getImageDataSetType().getDataSetType());\n metadataDataSetInfo.setDataSetKind(DataSetKind.PHYSICAL);\n List<String> parentDataSetCodes =\n Collections.singletonList(bundleMetadataDataSetInformation.getDataSetCode());\n metadataDataSetInfo.setParentDataSetCodes(parentDataSetCodes);\n metadataDataSetInfo.setShareId(bundleMetadataDataSetInformation.getShareId());\n return metadataDataSetInfo;\n }", "public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }", "public static synchronized DataInterface getSingletonInstance() {\n\t\tif (null == dataInstance) {\n\t\t\tsynchronized (DataInterface.class){\n\t\t\t\t\tif (null == dataInstance) {\n\t\t\t\t\t\tdataInstance = new DataInterface();\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dataInstance;\n\t}", "public CategoryDataset createDataset() {\n\t\tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\tProjectManagement projectManagement = new ProjectManagement();\n\t\tif (this.chartName == \"Earned Value\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getEarnedValue(date), \"Earned Value\", date);\n\t\t\t}\n\t\t} else if (this.chartName == \"Schedule Variance\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getScheduleVariance(date), \"Schedule Variance\", date);\n\t\t\t}\n\n\t\t} else {// Cost Variance\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getCostVariance(date), \"Cost Variance\", date);\n\t\t\t}\n\t\t}\n\t\treturn dataset;\n\t}", "public static DataStore getInstance() {\n if (instance == null) {\n synchronized (mutex) {\n if (instance == null)\n instance = new DataStore();\n }\n }\n return instance;\n }", "public static synchronized Datastore getDataStore() {\n\n if (datastore == null) {\n synchronized (ConnectionHelper.class) {\n \t/*\n \t * Check again to guarantee an unique datastore instance is created, if any thread was preempted.\n \t */\n if (datastore == null) {\n \tdatastore = getMorphia().createDatastore(new MongoClient(), database);\n }\n }\n }\n\n return datastore;\n }", "public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public MusicDataAccessor() {\n\t\n\t\t// load the data into the table\n\t\tload();\n\t}", "public static DataModel getInstance() {\n if (INSTANCE == null) {\n synchronized (DataModel.class) {\n if (INSTANCE == null) {\n INSTANCE = new DataModel();\n }\n }\n }\n return INSTANCE;\n }", "DataStore getDataStore ();", "private Dataset getDataset()\n throws XMLParsingException, MissingParameterValueException,\n InvalidParameterValueException, OGCWebServiceException {\n\n Element datasetElement = (Element) XMLTools.getRequiredNode( getRootElement(), PRE_WPVS + \"Dataset\", nsContext );\n Dataset dataset = parseDataset( datasetElement, null, null, null );\n\n return dataset;\n }", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }", "public static Instances getData()\n {\n return data;\n }", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "protected abstract D createData();", "private Dataset createDataSet(RecordingObject recordingObject, Group parentObject, String name) throws Exception\n\t{\n\t\t// dimension of dataset, length of array and 1 column\n\t\tlong[] dims2D = { recordingObject.getYValuesLength(), recordingObject.getXValuesLength() };\n\n\t\t// H5Datatype type = new H5Dataype(CLASS_FLOAT, 8, NATIVE, -1);\n\t\tDatatype dataType = recordingsH5File.createDatatype(recordingObject.getDataType(), recordingObject.getDataBytes(), Datatype.NATIVE, -1);\n\t\t// create 1D 32-bit float dataset\n\t\tDataset dataset = recordingsH5File.createScalarDS(name, parentObject, dataType, dims2D, null, null, 0, recordingObject.getValues());\n\n\t\t// add attributes for unit and metatype\n\t\tcreateAttributes(recordingObject.getMetaType().toString(), recordingObject.getUnit(), dataset);\n\n\t\treturn dataset;\n\t}", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "@Override\n\tpublic String getClassName() {\n\t\treturn Dataset.class.getName();\n\t}", "public DataTable() {\n\n\t\t// In this application, we use HashMap data structure defined in\n\t\t// java.util.HashMap\n\t\tdc = new HashMap<String, DataColumn>();\n\t}", "com.google.cloud.automl.v1beta1.Dataset getDataset();", "@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}", "public static MetaDataManager getInstance() {\n return instance;\n }", "public List<Dataset> getDatasets();", "public PersistentDataStore() {\n datastore = DatastoreServiceFactory.getDatastoreService();\n }", "public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }", "protected SafeHashMap.KeySet instantiateKeySet()\n {\n return new KeySet();\n }", "public DataManager() {\n\t\tthis(PUnit == null ? \"eElectionsDB\" : PUnit);\n\t}", "void init(Dataset ds, Session sess);", "public static DataConnection getInstance() {\n if (INSTANCE == null) createInstance();\n return INSTANCE;\n }", "public DataSet getDataset(DataSetType dataSetType) throws IOException{\n DataSet dataset;\n\n switch(dataSetType){\n case CONSTANT: dataset = constantDataSet(); break;\n case NORMAL: dataset = normalDataSet(); break;\n case UNIFORM: dataset = uniformDataSet(); break;\n case CAUCHY: dataset = caucyDataSet(); break;\n case ZIPF: dataset = zipfDataSet(); break;\n case CRYPTO: dataset = cryptoDataSet(); break;\n case FACEBOOK: dataset = facebookDataSet(); break;\n default: throw new RuntimeException(String.format(\"Dataset Type %s, did not match any configured type\", dataSetType));\n }\n dataset.setType(dataSetType);\n\n return dataset;\n }", "public static DataManager getInstance() {\n return instance == null ? (instance = new DataManager()) : instance;\n }", "public UsersDataSet() {}", "public static Drivetrain getInstance(){\n if(instance == null){\n instance = new Drivetrain();\n }\n return instance;\n }", "public static FixtureCache getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new FixtureCache();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static Stocks getInstance() {\r\n if (instance == null) {\r\n instance = new Stocks();\r\n }\r\n\r\n return instance;\r\n }", "public ChartData() {\n this.labels = new ArrayList<>();\n this.labelsDataMap = new HashMap<>();\n this.legend = new ArrayList<>();\n }", "static DataFrameFactory factory() {\n return DataFrameFactory.getInstance();\n }", "DatasetFile getDatasetFile();", "String getDataSet();", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "public DoubleMatrixDataset() {\r\n }", "public DatasetBean call(Tuple2<ImmutableBytesWritable, Result> arg0) throws Exception {\n\t\t\t\tResult r = arg0._2;\n\t\t\t\t//keylist.add(new Delete(r.getRow())); \n\t\t\t\t\n\t\t\t\tDatasetBean databean = new DatasetBean();\n\t\t\t\tdatabean.setRssFeed(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"rssFeed\"))));\n\t\t\t\tdatabean.setTitle(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"title\"))));\n\t\t\t\tdatabean.setArticleLink(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"articleLink\"))));\n\t\t\t\tdatabean.setDescription(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"description\"))));\n\t\t\t\tdatabean.setCategories(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"categories\"))));\n\t\t\t\tdatabean.setArticleDate(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"articleDate\"))));\n\t\t\t\t\n\t\t\t\treturn databean;\n\t\t\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public static Dataclient GetData(){\n return RetrofitClient.getClient(Base_Url).create(Dataclient.class);\n }", "private static Dataset<Row> loadbetaFeed() {\n\t\tconf.set(TableInputFormat.INPUT_TABLE, RSSFeedUtils.betatable);\n\t\tconf.set(TableInputFormat.SCAN_COLUMN_FAMILY, RSSFeedUtils.hbaseTab_cf);\n\t\t\n\t\tString feedCols = RSSFeedUtils.hbaseTab_cf + \":rssFeed \" + RSSFeedUtils.hbaseTab_cf + \":title \" + RSSFeedUtils.hbaseTab_cf + \":articleLink \" \n\t\t\t\t\t\t+ RSSFeedUtils.hbaseTab_cf + \":description \" + RSSFeedUtils.hbaseTab_cf + \":articleDate \" + RSSFeedUtils.hbaseTab_cf + \":categories\";\n\t\t\n\t\tconf.set(TableInputFormat.SCAN_COLUMNS, feedCols);\n\t\tJavaPairRDD<ImmutableBytesWritable, Result> feedPairRDD = jsc.newAPIHadoopRDD(conf, TableInputFormat.class, ImmutableBytesWritable.class, Result.class);\n\t\t\n\t\tJavaRDD<DatasetBean> feedRDD = feedPairRDD.map(new Function<Tuple2<ImmutableBytesWritable,Result>, DatasetBean>() {\n\t\t\t\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\tpublic DatasetBean call(Tuple2<ImmutableBytesWritable, Result> arg0) throws Exception {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tResult r = arg0._2;\n\t\t\t\t//keylist.add(new Delete(r.getRow())); \n\t\t\t\t\n\t\t\t\tDatasetBean databean = new DatasetBean();\n\t\t\t\tdatabean.setRssFeed(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"rssFeed\"))));\n\t\t\t\tdatabean.setTitle(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"title\"))));\n\t\t\t\tdatabean.setArticleLink(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"articleLink\"))));\n\t\t\t\tdatabean.setDescription(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"description\"))));\n\t\t\t\tdatabean.setCategories(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"categories\"))));\n\t\t\t\tdatabean.setArticleDate(Bytes.toString(r.getValue(Bytes.toBytes(RSSFeedUtils.hbaseTab_cf), Bytes.toBytes(\"articleDate\"))));\n\t\t\t\t\n\t\t\t\treturn databean;\n\t\t\t}\n\t\t});\n\t\t\n\t\tDataset<Row> feeddataset = sparkSession.createDataFrame(feedRDD, DatasetBean.class);\n\t\treturn feeddataset;\n\t}", "private LineDataSet createSet(){\n LineDataSet set = new LineDataSet(null, \"SPL Db\");\n set.setDrawCubic(true);\n set.setCubicIntensity(0.2f);\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n set.setColor(ColorTemplate.getHoloBlue());\n set.setLineWidth(2f);\n set.setCircleSize(4f);\n set.setFillAlpha(65);\n set.setFillColor(ColorTemplate.getHoloBlue());\n set.setHighLightColor(Color.rgb(244,117,177));\n set.setValueTextColor(Color.WHITE);\n set.setValueTextSize(10f);\n\n return set;\n }", "public static EpitrelloDataServerice creator() {\n\t\tif(dataServerice == null) {\n\t\t\tdataServerice = new DataService();\n\t\t}\n\t\treturn dataServerice;\n\t}", "public Dataset getDataset(DatasetType dataType){\n switch(dataType){\n case TEST:\n return test;\n case TRAINING:\n return training;\n default:\n return null;\n }\n }", "private static XYZDataset createDataset(Comparable<?> xKey, \n Comparable<?> yKey, Comparable<?> zKey) {\n Reader in = new InputStreamReader(\n ScatterPlot3D3.class.getResourceAsStream(\"iris.txt\"));\n KeyedValues3D data;\n try {\n data = JSONUtils.readKeyedValues3D(in);\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n return DataUtils.extractXYZDatasetFromColumns(data, xKey, yKey, zKey);\n }", "public mainData() {\n }", "PersistentDataHolder getDataHolder();", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "public Datum() {\n id = idGen.incrementAndGet();\n parentDatumID = null;\n }", "public Dataset getEmptyDataset() {\r\n\t\treturn InitialData.emptyClone();\r\n\t}" ]
[ "0.67310905", "0.61902606", "0.5969829", "0.5823006", "0.57755345", "0.57720447", "0.57533324", "0.5745275", "0.57326293", "0.5718026", "0.57082605", "0.56894773", "0.5672859", "0.5670622", "0.56624156", "0.56579703", "0.5638449", "0.55376744", "0.55236727", "0.550681", "0.54903954", "0.5461843", "0.545411", "0.54508936", "0.5417889", "0.5415022", "0.5410392", "0.5394522", "0.5383237", "0.5380366", "0.5375963", "0.5361359", "0.53612024", "0.5347122", "0.5337844", "0.53306776", "0.5321334", "0.53146535", "0.53142554", "0.5303988", "0.52954435", "0.52876085", "0.5285328", "0.5271928", "0.5270763", "0.5264731", "0.52608234", "0.5249839", "0.5234024", "0.52290595", "0.5226749", "0.5226235", "0.52241397", "0.522396", "0.52198154", "0.52182585", "0.5205471", "0.5204099", "0.52018964", "0.51964253", "0.5178477", "0.5173747", "0.51671344", "0.5161867", "0.5157168", "0.51542014", "0.51507246", "0.5109159", "0.51029867", "0.50941813", "0.5093929", "0.50908923", "0.5079272", "0.50760764", "0.50564426", "0.505351", "0.5051264", "0.5046612", "0.503058", "0.50286454", "0.50278455", "0.50267965", "0.5014436", "0.5007429", "0.50072455", "0.5002645", "0.49962738", "0.49789986", "0.49772704", "0.49763528", "0.4973456", "0.49603844", "0.49219912", "0.4921419", "0.49209276", "0.49190217", "0.49050078", "0.49027893", "0.49018526", "0.48980168" ]
0.8755048
0
Constructs the instance of the king dataset class and read the binary file
private KingDataset() { String filename = "bin" + File.separator + "KingDataset.bin"; // Prepare our array based on the dataset filename values = new byte[(int)new File(filename).length()]; // Read the king dataset try { FileInputStream input = new FileInputStream(filename); input.read(values); input.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataSet( int _height , int _width) throws FileNotFoundException {\n height = _height;\n width = _width;\n InitFile( \"src/com/algorithme/DataSet.txt\" );\n InitTargets();\n InitFeatures();\n System.out.println(\"Création de la DataSet\");\n }", "private void BuildFromFile(String Filename)\n\t{\n\t\tDataSetBuilder<t> dsb = new DataSetBuilder<t>(\"iris.data\");\n\t\t_data = dsb.getDataMembers();\n\t\t\n\t\t//Set reference to null to queue for garbage collection and to ensure the source file gets closed\n\t\tdsb = null;\n\t}", "public WorkDataFile()\n\t{\n\t\tsuper();\n\t}", "public ClassFile(DataInput stream)\n throws IOException\n {\n load(stream);\n }", "private KidDatabaseDisk(){\n //for use with loadFromFileUnsafe() builder\n super();\n sequenceLength.add(0);\n exceptionsArr = new ArrayList<HashMap<Integer,Character>>();\n exceptionsArr.add(new HashMap<Integer,Character>());\n }", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }", "private BlobFromFile() {\n }", "public Decoder(String filename) throws FileNotFoundException { \n this.i = 0;\n this.position = 0;\n this.px = 0;\n this.py = 0;\n this.alkuposition = 0;\n this.j = 0;\n this.filename = filename;\n }", "public DataRepository() throws IOException {\n\t\tthis.init();\n\t}", "public Data() {}", "public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }", "public Data(String path) throws IOException {\n this.path = Paths.get(\"src/main/data/duke.txt\").toAbsolutePath();\n if (Files.notExists(this.path)) {\n new File(String.valueOf(path)).createNewFile();\n }\n }", "private void initializeFile()\n\t{\n\t\tHighScore[] h={new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \")};\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"Hi1\");\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(h);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();}\n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "public DataBase(String file) throws IOException {\n\t\tdataBase = new RandomAccessFile(file, \"rw\");\n\t\tdataBase.writeBytes(\"FEATURE_ID|FEATURE_NAME|FEATURE_CLASS|STATE_ALPHA|\"\n\t\t\t\t+ \"STATE_NUMERIC|COUNTY_NAME|COUNTY_NUMERIC|PRIMARY_LAT_DMS|PRIM_LONG_DMS|\"\n\t\t\t\t+ \"PRIM_LAT_DEC|PRIM_LONG_DEC|SOURCE_LAT_DMS|SOURCE_LONG_DMS|SOURCE_LAT_DEC|\"\n\t\t\t\t+ \"SOURCE_LONG_DEC|ELEV_IN_M|ELEV_IN_FT|MAP_NAME|DATE_CREATED|DATE_EDITED\\n\");\n\t}", "public mainData() {\n }", "public MapData(String mapName) {\n this.mapName = mapName;\n readFile();\n}", "public ClassFile(byte[] abClazz)\n {\n setBytes(abClazz);\n }", "public static ArrayList<Data> getDataSet(String fileName) {\n ArrayList<Data> dataset = new ArrayList<>();\n Scanner input = new Scanner(Main.class.getResourceAsStream(fileName));\n input.nextLine();\n String line = null;\n int size = 0;\n\n while (input.hasNextLine()) {\n String str = null;\n\n line = input.nextLine();\n line = line.replace(\" \", \"\");\n\n size = line.length() - 1;\n Data data = new Data(size);\n\n for (int i = 0; i < line.length() - 1; i++) {\n data.variables[i] = Character.getNumericValue(line.charAt(i));\n }\n data.setOutput(Character.getNumericValue(line.charAt(size)));\n\n dataset.add(data);\n }\n\n dataset.forEach((data) -> {\n System.out.println(data.printVariables() + \" \" + data.getOutput());\n });\n System.out.println(\"Data loaded\");\n COND_LEN = size;\n GENE_SIZE = (COND_LEN + 1) * NUM_RULES;\n return dataset;\n }", "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "public DataSet() {\r\n \r\n }", "public DataIO() throws IOException {\n if (!QuizFile.isFile())\n QuizFile.createNewFile();\n }", "void readData(String fileName, boolean [] data, String wName){\n\t\tworld = new File(wName);\n\t\tDataProcessing dp = new DataProcessing(fileName, data);\n\t\tdp.findHotspots();\n\n\t\ttempVals = dp.hotspots;\n\t\t\t\n\t\t\t// create randomly permuted list of indices for traversal \n\t\t\tgenPermute(); \n\t\t\t\n\t\t\t// generate greyscale tempVals field image\n\t\t\tderiveImage();\n\n\t}", "static void initializeData() {\n\n if (timeLimitInHour != -1) {\n endTime = startTime + timeLimitInHour * 60 * 60 * 1000;\n }\n\n // Read the data file.\n data = new Data(dataFileName);\n\n // Build all variables.\n allVariable = data.buildAllVariable();\n\n // Read the target gene set.\n GeneSet geneSet = new GeneSet(allVariable, targetGeneSetFileName, minGeneSetSize, maxGeneSetSize, selectedCollections);\n listOfTargetGeneSets = geneSet.buildListOfGeneSets();\n\n // Read sample class labels.\n readSampleClass();\n\n // Initialize remaining fields.\n if (numberOfThreads == 0)\n numberOfThreads = getRuntime().availableProcessors();\n\n // Initialize BufferedWriter with preliminary info for log file.\n String fileInfo = \"EDDY OUTPUT FILE\\n\";\n fileInfo += (\"Data File: \" + dataFileName + \"\\n\");\n fileInfo += (\"Target Gene Set(s) File: \" + targetGeneSetFileName + \"\\n\");\n fileInfo += (\"Class Label File: \" + sampleClassInformationFileName + \"\\n\");\n fileInfo += (\"Number of Gene Sets: \" + listOfTargetGeneSets.size() + \"\\n\");\n fileInfo += (\"Number of Threads: \" + numberOfThreads + \"\\n\\n\");\n \n // log command line options, in verbatim \n fileInfo += concatStrings(commandLine) + \"\\n\\n\";\n \n fileInfo += (\"Name: \\tCollection: \\tSize: \\tURL: \\tJS Divergence: \\tP-Value: \\t#Permutations: \\tGenes: \\n\");\n try {\n \t// TODO: need to come up with a better way to assign the output file name.\n String fileName = targetGeneSetFileName.substring(0, targetGeneSetFileName.indexOf(\".gmt\")) + \"_output.txt\";\n \n File file = new File(fileName);\n \n output = new BufferedWriter(new FileWriter(file));\n output.write(fileInfo);\n } catch ( IOException e ) {\n e.printStackTrace();\n }\n\n }", "public Id5320DataFile()\n\t{\n\t\tlineLength = OFF_CUSTOMER_NAME + LEN_CUSTOMER_NAME;\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "public static KidDatabaseDisk loadFileFromText(String filename, int chunk) {\n\n KidDatabaseDisk result = new KidDatabaseDisk();\n result.fileName = filename;\n try(BufferedReader br = new BufferedReader(new FileReader(filename+\".txt\"))) {\n for (String line; (line = br.readLine()) != null; ) {\n String[] pieces = line.split(\"\\t\");\n result.add(new Kid(pieces[0]));\n result.sequenceLength.add(Integer.parseInt(pieces[1]));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n result.sequence128db = new RocksDbKlue(filename+\".disk.\"+String.format(\"%02d\", chunk), false);\n return result;\n }", "public Data() {\n }", "public Data() {\n }", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "public TreeNode readDataFile() {\n\t\tdata = new ArrayList<Instance>();\n\t\ttry {\n\t\t\tScanner s = new Scanner(new File(testFile));\n\t\t\t// took these lines from helper-code\n\t\t\tScanner l = new Scanner(s.nextLine());\n\t\t\tfor (int i = 0; l.hasNext(); i++) {\n\t\t\t\tif (!l.next().equals(classifierNames.get(i))) {\n\t\t\t\t\tSystem.err.println(\"This data file does not use the same category names as the training file.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tl.close();\n\t\t\tl = new Scanner(s.nextLine());\n\t\t\tfor (int i = 0; l.hasNext(); i++) {\n\t\t\t\tif (!l.next().equals(attributeNames.get(i))) {\n\t\t\t\t\tSystem.err.println(\"This data file does not match the attributes of the training file.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tl.close();\n\t\t\tSystem.out.println(\"Read attributes \"+attributeNames.toString()+\".\");\n\t\t\treadFile(s,data);\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"Training file not found, you should have put tests for this in main.\");\n\t\t\tSystem.err.println(\"Attempted to read \"+testFile+\".\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tArrayList<Boolean> attrs = new ArrayList<Boolean>();\n\t\tfor (int i = 0; i < attributeNames.size(); i++) {\n\t\t\tattrs.add(false);\n\t\t}\n\t\tTreeNode root = BuildTree(instances, attrs);\n\t\treturn root;\n\t}", "DatasetFile getDatasetFile();", "public Data(Main aMain, Framework frw) {\n\tmain = aMain;\n\n File pf = new File(main.myPath);\n String[] datal = pf.list(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return\n name.endsWith(\".xml\") &&\n name.startsWith(\"data\");\n }\n });\n for (int i = 0; i < datal.length; i++) {\n Document data = Framework.parse(main.myPath + datal[i], \"encounters\");\n loadFromDoc(data);\n }\n }", "public Instances openARFF(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.dataset = new Instances(new BufferedReader(new FileReader(path)));\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn this.dataset;\n\t}", "public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}", "private static Data getDataObject(final String dataset) throws IOException {\n \n final Data data = Data.create(dataset, StandardCharsets.UTF_8, ';');\n \n // Read generalization hierachies\n final FilenameFilter hierarchyFilter = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n if (name.matches(dataset.substring(dataset.lastIndexOf(\"/\") + 1, dataset.length() - 4) + \"_hierarchy_(.)+.csv\")) {\n return true;\n } else {\n return false;\n }\n }\n };\n \n final File testDir = new File(dataset.substring(0, dataset.lastIndexOf(\"/\")));\n final File[] genHierFiles = testDir.listFiles(hierarchyFilter);\n final Pattern pattern = Pattern.compile(\"_hierarchy_(.*?).csv\");\n \n for (final File file : genHierFiles) {\n final Matcher matcher = pattern.matcher(file.getName());\n if (matcher.find()) {\n \n final CSVHierarchyInput hier = new CSVHierarchyInput(file, StandardCharsets.UTF_8, ';');\n final String attributeName = matcher.group(1);\n \n // use all found attribute hierarchies as qis\n data.getDefinition().setAttributeType(attributeName, Hierarchy.create(hier.getHierarchy()));\n \n }\n }\n \n return data;\n }", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public SmallFishData() {\n cPosition = generatePosition();\n cDestination = generatePosition();\n }", "public static KingDataset instance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new KingDataset();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public WorkDataFile(int length)\n\t{\n\t\tsuper(length);\n\t}", "public WorkDataFile(String filename)\n\t{\n\t\tsetFileName(filename);\n\t}", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}", "public PajekNetReader()\n {\n this(false, false);\n }", "public DesastreData() { //\r\n\t}", "public DataParser() throws IOException {\n cem = loadCEM();\n summits = readSummitsFrom(new File(\"alps.txt\"));\n }", "public void readAll() throws FileNotFoundException{ \n b = new BinaryIn(this.filename);\n this.x = b.readShort();\n this.y = b.readShort();\n \n int count = (x * y) / (8 * 8);\n this.blocks = new double[count][8][8][3];\n \n Node juuri = readTree();\n readDataToBlocks(juuri);\n }", "private byte[] genClassData(String name) {\n\t\tif (data == null) {\n\t\t\tthrow new RuntimeException(\"You must initialize the data array\");\n\t\t}\n\t\tif (dataLength != data.length)\t// EXPECT COMPILE ERROR in javasrc\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"data corrupt, \" + dataLength + \"!=\" + data.length);\n\t\tbyte[] bd = new byte[data.length];\n\t\tfor (int i=0; i<bd.length; i++)\n\t\t\tbd[i] = (byte)data[i];\n\t\treturn bd;\n\t}", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "RandomAccessData(File f,String mode) throws FileNotFoundException {\n super(f,mode);\n }", "public MetaInfoReader(String dataset) {\n this(dataset, \"../output/tracker_data/\");\n }", "private RawGltfDataReader() {\n // Private constructor to prevent instantiation\n }", "public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}", "public Load(String[] args) {\n\n\t\ttry {\n\t\t\tRandomAccessFile raf = new RandomAccessFile(new File(args[0]), \"rw\");\n\t\t\tthis.sfMap = raf.getChannel();\n\t\t\tthis.stataFile = sfMap.map(FileChannel.MapMode.READ_WRITE, 0, sfMap.size());\n\t\t\tthis.fileHeader = checkVersion(this.stataFile);\n\t\t\tif (this.release >= 113 && this.release <= 115) {\n\t\t\t\tthis.headerData = OldFormats.readHeader(stataFile, fileHeader);\n\t\t\t} else {\n\t\t\t\tthis.headerData = NewFormats.readHeader(stataFile, fileHeader);\n\t\t\t}\n\t\t\tparseHeader();\n\t\t\tif (this.release == 118) {\n\t\t\t\tthis.versionedFile = FileFormats.getVersion(this.sfMap, this.release,\n\t\t\t\t\t\tthis.endian, this.K, (Long) this.headerData.get(3),\n\t\t\t\t\t\tthis.datasetLabel, this.datasetTimeStamp, this.mapOffset);\n\t\t\t} else {\n\t\t\t\tthis.versionedFile = FileFormats.getVersion(this.sfMap, this.release,\n\t\t\t\t\t\tthis.endian, this.K, (Integer) this.headerData.get(3),\n\t\t\t\t\t\tthis.datasetLabel, this.datasetTimeStamp, this.mapOffset);\n\t\t\t}\n\t\t} catch (IOException | DtaCorrupt e) {\n\t\t\tSystem.out.println(String.valueOf(e));\n\t\t}\n\n\t}", "public StreamData(String name)\n {\n _data = new LinkedList<byte[]>();\n this.Name = name;\n this.Length = 0;\n }", "public DataSet(String Filename)\n\t{\n\t\tc = new ArrayList<String>();\n\t\tBuildFromFile(Filename);\n\t}", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "public BrickStructure loadStructureFromBinaryFile(File file) {\n\t\tthrow new NullPointerException();\n\t}", "private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tjokeFile = \"kk-jokes.txt\";\n\t\t\tkkServerPort = 5555;\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.err.println(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t\tlogger.info(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t}\t\n\t}", "public InstanceReader(String filename) throws FileNotFoundException{\n this.reader = new FileReader(filename);\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "public BiomartAccess(String fname) \n {\n m_file = new File(fname);\n }", "public void ReadFromBinary() throws IOException\n\t {\n\t \t\n\t \tDataInputStream Input = new DataInputStream(new FileInputStream(\"GameProgress.dat\"));\n\t \t\n\t \t\tpl.xCoord = Input.read(); \n\t \t\tpl.xCoord = Input.read(); \n\t\t\t\tpl.NumRockets = Input.read(); \n\t\t\t\tpl.NumBullets = Input.read();\n\t\t\t\tpl.Health =Input.read();\n\t\t\t\tDestroyedEnemies =Input.read();\n\t\t\t\tRunAwayEnemies =Input.read();\n\t\t\t\t\n\t\t\t\tint x, y = 0; \n\t\t\t\t\n\t\t\t\tfor (int i = 0 ; i < EnemyList.size(); i++ )\n\t\t\t\t{\n\t\t\t\t\tx = Input.read();\n\t\t\t\t\ty = Input.read();\n\t\t\t\t\teh = new Enemy(x,y);\n\t\t\t\t\tEnemyList.add(eh);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tInput.close(); \n\t }", "public Data(byte[] bytes) {\r\n try {\r\n this.read_data_header(bytes);\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public Paquet(byte []datainitiale) {\n\t\t\n\t\t\n\t\tsuper();\n\t\t\n\t\t_instance_id++;\n\t\tSystem.out.print(\"\\nmnb = \"+_instance_id);\n\n\t\tshort header = (short) ((datainitiale[0] & 255)<<8 | (datainitiale[1] & 255 )) ;\n\t\t\t\n\t\tthis.id = (short) (header >> 2);\n\t\tsizeofsize = (byte) (header & 3);\n\t\t\n\t\tswitch(sizeofsize)\n\t\t{\n\t\t\tcase 0 \t: \tsize = 0;break;\n\t\t\tcase 1 \t:\tsize = datainitiale[2] & 255;break;\n\t\t\tcase 2\t:\tsize = ((datainitiale[2] & 255)<<8 | datainitiale[3]& 255);break;\n\t\t\tdefault :\tsize = (((datainitiale[2] & 255 )<< 16 | (datainitiale[3]& 255) << 8) | datainitiale[4] & 255);\t\n\t\t}\n\t\tint t;\n\tif(size<8192)\n\t\t{this.data = new byte[size];\n\t\tt=size;\n\t\tfor(int i = 0; i < t ; i++)\n\t\t\tdata[i] = datainitiale[i+2 + sizeofsize];\n\t\tfor(int i = 0; i < datainitiale.length-(t+2+sizeofsize) ; i++)\n\t\t\tdatainitiale[i]=datainitiale[i+t+2+sizeofsize];\n\t\t}\n\telse \n\t\t{this.data=new byte[datainitiale.length-sizeofsize-2];\n\t\tt=datainitiale.length;\n\t\tfor(int i = 0; i <datainitiale.length-sizeofsize-2; i++)\n\t\t\tdata[i] = datainitiale[i+2 + sizeofsize];\n\t\t\n\t\t}\n\t\n\t\t\n\t\t\n\t}", "private static void createFile() throws Exception {\n\t\t // retrieve an instance of H4File\n\t\t FileFormat fileFormat = FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF4);\n\n\t\t if (fileFormat == null) {\n\t\t System.err.println(\"Cannot find HDF4 FileFormat.\");\n\t\t return;\n\t\t }\n\n\t\t // create a new file with a given file name.\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\t\tH4File testFile = (H4File) fileFormat.create(fname);\n\n\t\t if (testFile == null) {\n\t\t System.err.println(\"Failed to create file:\" + fname);\n\t\t return;\n\t\t }\n\n\t\t // open the file and retrieve the root group\n\t\t testFile.open();\n\t\t Group root = (Group) ((javax.swing.tree.DefaultMutableTreeNode) testFile.getRootNode()).getUserObject();\n\n\t\t // set the data values\n\t\t int[] dataIn = new int[20 * 10];\n\t\t for (int i = 0; i < 20; i++) {\n\t\t for (int j = 0; j < 10; j++) {\n\t\t dataIn[i * 10 + j] = 1000 + i * 100 + j;\n\t\t }\n\t\t }\n\n\t\t // create 2D 32-bit (4 bytes) integer dataset of 20 by 10\n\t\t Datatype dtype = testFile.createDatatype(Datatype.CLASS_INTEGER, 4, Datatype.NATIVE, Datatype.NATIVE);\n\t\t @SuppressWarnings(\"unused\")\n\t\t\t\tDataset dataset = testFile\n\t\t .createScalarDS(\"2D 32-bit integer 20x10\", root, dtype, dims2D, null, null, 0, dataIn);\n\n\t\t // close file resource\n\t\t //testFile.close();\n\t\t }", "public void read () throws IOException, ClassNotFoundException {\n BufferedReader reader = FileManager.getReader\n (JerboaProperties.getString(\"KeyFeatureContainer.filename\"));\n double kThreshold = JerboaProperties.getDouble(\"KeyFeatureContainer.keyThreshold\",0.0);\n double fThreshold = JerboaProperties.getDouble(\"KeyFeatureContainer.featureThreshold\",0.0);\n\n String line;\n String[] tokens;\n double x;\n line = reader.readLine();\n tokens = line.split(\"\\\\t\");\n \n sf = Double.parseDouble(tokens[2]);\n\n while ((line = reader.readLine()) != null) {\n tokens = line.split(\"\\\\t\");\n if (tokens.length == 2) {\n if ((! filterKeys) || kTable.containsKey(tokens[0])) {\n x = Double.parseDouble(tokens[1]);\n if (x >= kThreshold)\n kTable.put(tokens[0],x);\n else if (filterKeys)\n kTable.remove(tokens[0]);\n }\n } else {\n x = Double.parseDouble(tokens[1]);\n if (x >= fThreshold) {\n kfTable.put(tokens[0],x);\n fTable.put(tokens[0],Double.parseDouble(tokens[2]));\n }\n }\n }\n }", "public CountryIO() {\r\n\t\tcountriesPath = Paths.get(\"countries.txt\");\r\n\t\tcountriesFile = countriesPath.toFile();\r\n\t\tgetCountries();\r\n\t}", "DataHRecordData() {}", "Points(String filepath){\n readPointsFile(filepath); //dengan file points.txt\n }", "public NameSurferDataBase(String filename) {\t\n\t\tnameData(filename);\n\t}", "protected void initDataFile(File outFile) throws IOException,\n FileNotFoundException {\n String directory = PropiedadesAplicacion.getProperty(\"DataFile.dir\",\n System.getProperty(\"user.dir\"));\n this.outputFile = new File(directory, outFile.getName());\n if (this.outputFile.exists()) {\n if (!this.outputFile.delete()) {\n throw new IOException(\"NO SE PUDO BORRAR ARCHIVO: \"\n + outFile.getAbsolutePath());\n }\n if (!this.outputFile.createNewFile()) {\n throw new IOException(\"NO SE PUDO CREAR ARCHIVO: \"\n + outFile.getAbsolutePath());\n }\n }\n this.foStream = new FileOutputStream(this.outputFile);\n this.dataSize = 1;\n this.item = 0;\n if (logger.isInfoEnabled()) {\n logger.info(\"ASIGNADO WRITER A: \"\n + this.outputFile.getAbsolutePath());\n }\n }", "public ModelData(CallBackInterface _myContainer, String filename) {\n\t\tthis(_myContainer);\n\t\tload(filename);\n\t}", "@Override\n public void construct() throws IOException {\n \n }", "public encogNeuralNet() {\n initComponents();\n this.INPUT_NODES=13;\n this.OUTPUT_NODES=31;\n this.shutDown=false;\n this.savedInstance= new File(\"network.csv\");\n this.network = new BasicNetwork();\n }", "protected abstract D createData();", "public Data() {\n \n }", "public AzureDataLakeStoreDataset() {\n }", "public Loader(){\n\t\tthis(PLANETS, NEIGHBOURS);\n\t}", "public BrihaspatiProFile() {\n }", "public SensorData() {\n\n\t}", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n\t\ttry {\r\n//\t\t\t crea un fichero, salvo que exista y sea de solo lectura.\r\n\t\t\tFileOutputStream archivo = new FileOutputStream(\"fichero.dat\"); \r\n//\t\t\ttexto a escribir\r\n\t\t\tString texto = \"OLE OLE\";\r\n//\t\t\tguardamos el String el un array codigo\r\n\t\t\tbyte codigo[] = texto.getBytes();\r\n\t\t\tInteger.toBinaryString(codigo[0]);\r\n//\t\t\tse escribe lo guardado en el array\r\n\t\t\tarchivo.write(codigo);\r\n\t\t\tarchivo.close();\r\n\t\t\tFile fichero = new File(\"fichero.dat\");\r\n\t\t\tSystem.out.println(\"Nombre: \" + fichero.getName());\r\n\t\t\tSystem.out.println(\"Ruta absoluta: \" + fichero.getAbsolutePath());\r\n\t\t\tSystem.out.println(\"Ruta relativa: \" + fichero.getPath());\r\n\t\t\t\r\n\t\t} catch (IOException e ) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tmetodoEscribirBinariosPrimitivos();\r\n\t\tmetodoLeerBinarioPrimitivos();\r\n\t\t\r\n//\t\tPasar de objeto a bytes\r\n\t\tPersona persona1 = new Persona(\"Pedro\", 11);\r\n\t\t\r\n\t\tFile fichero = new File(\"fichero.dat\");\r\n\t\tFileOutputStream fos = new FileOutputStream(fichero);\r\n\t\tObjectOutputStream os = new ObjectOutputStream (fos);\r\n\t\t\r\n\t\tos.writeObject(persona1); \r\n\t\tos.close();\r\n\t\t\r\n\t\tFileInputStream fis = new FileInputStream(fichero);\r\n\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\r\n\t\tPersona objeto = (Persona) ois.readObject();\r\n\t\tSystem.out.println(objeto.getEdad());\r\n\t\tSystem.out.println(objeto.getNombre());\r\n\t\tois.close();\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\t}", "protected SimulationData(final File givenPath) {\n\t\ttry {\n\t\t\tclassLoader =\n\t\t\t\t\tnew URLClassLoader(new URL[] {givenPath.toURI()\n\t\t\t\t\t\t\t.toURL()});\n\t\t} catch (MalformedURLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public InitialData(){}", "public Backend(Reader r) throws IOException {\r\n GradeDataReader reader = new GradeDataReader();\r\n List<Grade> data = null;\r\n // read data\r\n try {\r\n data = reader.readDataSet(r);\r\n } catch (IOException | DataFormatException e) {\r\n System.out.println(\"Error parsing file\");\r\n }\r\n // input into rbt\r\n for (int i = 0; i < data.size(); i++) {\r\n rbt.insert(data.get(i));\r\n }\r\n }", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/lote.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}", "public CustomerOrderDataBase(String file) {\r\n this.FILE_NAME = file;\r\n orderInfo = new ArrayList<>(4000000);\r\n console = new Scanner(System.in);\r\n try {\r\n loadFile();\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "private void setTrainingData() throws IOException {\r\n\t\ttrainIdBodyMap = readInIdBodiesMap(new File(TRAIN_BODIES_CSV_LOCATION));\r\n\t\ttrainStances = readStances(new File(TRAIN_STANCES_CSV_LOCATION));\r\n\r\n\t}", "public Data (String name, int type) {\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tstream = new MyReader();\n\t}", "public NetworkData() {\n }", "public CSGenepixMicroarraySet(GenepixResource gr) throws Exception {\r\n super(RandomNumberGenerator.getID(), gr.getInputFile().getName());\r\n List ctu = new ArrayList();\r\n ctu.add(\"Block\");\r\n ctu.add(\"Column\");\r\n ctu.add(\"Row\");\r\n ctu.add(\"ID\");\r\n ctu.add(\"X\");\r\n ctu.add(\"Y\");\r\n ctu.add(\"Dia\");\r\n ctu.add(\"F635 Median\");\r\n ctu.add(\"F635 Mean\");\r\n ctu.add(\"B635 Median\");\r\n ctu.add(\"B635 Mean\");\r\n ctu.add(\"F532 Median\");\r\n ctu.add(\"F532 Mean\");\r\n ctu.add(\"B532 Median\");\r\n ctu.add(\"B532 Mean\");\r\n ctu.add(\"Ratio of Means\");\r\n GenepixParser2 parser = new GenepixParser2(ctu);\r\n BufferedReader reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n String line = null;\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.process(line);\r\n }\r\n\r\n }\r\n\r\n Vector v = parser.getAccessions();\r\n int count = 0;\r\n DSGeneMarker mInfo = null;\r\n for (Iterator it = v.iterator(); it.hasNext();) {\r\n mInfo = new CSGeneMarker((String) it.next());\r\n mInfo.setSerial(count++);\r\n markerVector.add(mInfo);\r\n }\r\n reader.close();\r\n reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n parser.reset();\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.parseLine(line);\r\n }\r\n }\r\n\r\n reader.close();\r\n parser.getMicroarray().setLabel(gr.getInputFile().getName());\r\n this.add(parser.getMicroarray());\r\n experimentInfo = parser.getExperimentInfo();\r\n }", "private synchronized DataSource fromBytes(byte[] bytes) {\n Kryo kryo = new Kryo();\n Input input = new Input(new ByteArrayInputStream(bytes));\n DataSource curDataSource = (DataSource) kryo.readClassAndObject(input);\n input.close();\n return curDataSource;\n }", "public static Instances ReadDataset(String path, int class_idx) throws IOException{\n\t\tInstances data = null;\n\t\ttry {\n\t\t\tArffLoader loader = new ArffLoader();\n\t\t\tloader.setSource(new File(path));\n\t\t\tdata = loader.getDataSet();\n\t\t\tif (class_idx ==0)\n\t\t\t\tdata.setClassIndex(class_idx);\n\t\t\telse\n\t\t\t\tdata.setClassIndex(data.numAttributes()-1);\n\t\t} catch (Exception e) {//Catch exception if any\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn data;\n\t}", "public abstract void load() throws IOException;", "public WBzard(String fileName) throws OWLOntologyCreationException, IOException {\n /*Read the ontology from the disk*/\n // final \n//\t\t URL fileURL = ClassLoader.getSystemResource(fileName);\n//\t\tphysicalURI = fileURL.toString();\n physicalURI = fileName;\n\n loader = OntologyManager.getInstance(physicalURI);\n }", "public CSGraph(String fileName) {\n hashTable = new CSHashing();\n words = readWords(fileName);\n\n// createGraph(); // Minimal lösning\n\n createHashTable(); // Frivillig bra lösning\n createGraphWithHashTable(); // Frivillig bra lösning\n\n// shortestPaths(); // Metod som endast används till textfilen utan par.\n\n readPairs(\"files/5757Pairs\");\n }", "public MyBMPFile() { \n\n }", "private void readFile( String fileName ) throws FileNotFoundException\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile train_file = new File( fileName );\n\t\t\tScanner in;\n\t\t\tin = new Scanner( train_file );\n\n\t\t\tString[] tokens = in.nextLine().trim().split( \"\\\\s+\" ); // Parse the file\n\t\t\tthis.attribute_list.add( new Attribute( 0, \"x0\" ) );\n\n\t\t\tint i = 1;\n\t\t\twhile ( i <= tokens.length )\n\t\t\t{\n\t\t\t\tthis.attribute_list.add( new Attribute( i, tokens[ i - 1 ] ) );\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\twhile ( in.hasNextLine() )\n\t\t\t{\n\t\t\t\ttokens = in.nextLine().trim().split( \"\\\\s+\" );\n\t\t\t\tif ( tokens.length > 1 )\n\t\t\t\t{\n\t\t\t\t\tthis.addTrainData( 0, 1 );\n\n\t\t\t\t\tfor ( i = 1; i < tokens.length; i++ )\n\t\t\t\t\t\tthis.addTrainData( i, Integer.parseInt( tokens[ i - 1 ] ) );\n\n\t\t\t\t\t// Last column would be the class attribute\n\t\t\t\t\tthis.class_data.add_data( Integer.parseInt( tokens[ i - 1 ] ) );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tin.close();\n\t\t}\n\t\tcatch ( FileNotFoundException e )\n\t\t{\n\t\t\tSystem.out.println( \"Cannot find train file - \" + fileName );\n\t\t\tthrow e;\n\t\t}\n\t}", "private ByteTools(){}" ]
[ "0.6262688", "0.60227746", "0.5943463", "0.5912206", "0.58736765", "0.58596677", "0.5783324", "0.57085764", "0.5704772", "0.57047284", "0.566693", "0.56525016", "0.56172067", "0.5611383", "0.55927896", "0.5566715", "0.5549246", "0.55489254", "0.55481446", "0.554424", "0.55330396", "0.55307454", "0.55200404", "0.5518865", "0.5512694", "0.5504202", "0.5496364", "0.5496364", "0.549354", "0.54934686", "0.5489126", "0.54783326", "0.5477806", "0.54760236", "0.54656255", "0.5458306", "0.54567605", "0.5454353", "0.54534906", "0.5444112", "0.54278815", "0.5426047", "0.541349", "0.54129755", "0.54041195", "0.5402512", "0.5398208", "0.53982", "0.53750616", "0.5362305", "0.53594416", "0.5355222", "0.5354424", "0.5347941", "0.533584", "0.53265935", "0.53151953", "0.53126025", "0.5307983", "0.5307616", "0.53057164", "0.5299333", "0.52936876", "0.52732843", "0.5267491", "0.52666104", "0.52612996", "0.5259173", "0.52571213", "0.5255358", "0.5252032", "0.52477837", "0.52471095", "0.5240398", "0.5240032", "0.5232674", "0.52326506", "0.5229792", "0.5227418", "0.5226852", "0.52178895", "0.52176", "0.52069193", "0.52040446", "0.5198644", "0.51982224", "0.51961285", "0.519196", "0.51906693", "0.51833826", "0.5180222", "0.51788723", "0.5176213", "0.5174129", "0.5168776", "0.51638454", "0.5163794", "0.5162572", "0.516178", "0.5161649" ]
0.83402115
0
Generates the next random latency value by choosing between all King samples and adjusting to obtain the correct value.
public int next() { // Get a random value int index = random.nextInt(values.length); int byteValue = values[index] + 128; // For an unsigned value int value = byteValue * 3; // If byteValue = 255 (max), then choose between 765000 and 799993 if (byteValue == 255) { value += random.nextInt(800-765+1); } // Otherwise, choose between value and value + 2 (inc) else { value += random.nextInt(3); } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRandom() {\n int k = 1;\n ListNode node = this.head;\n int i = 0;\n ArrayList<Integer> reservoir = new ArrayList<Integer>();\n //先把前k个放进水塘\n while (i < k && node != null) {\n reservoir.add(node.val);\n node = node.next;\n i++;\n }\n // i++; // i == k => i == k+1 这样i就代表了现在已经处理过的总共数字个位\n i = 1;\n while (node != null) {\n //更换水塘里的数字的概率要是 k/(现在处理过的数字总数),所以因为i是从0开始,所以概率为从0\n // 到i的数当中选0 到k-1的数字,rand.nextInt(i) < k的概率是k/(现在处理过的数字总数)\n if (rand.nextInt(k+i) == i) {\n reservoir.set(rand.nextInt(k), node.val);\n }\n i++;\n node = node.next;\n }\n return reservoir.get(0);// or return reservoir when k > 1;\n }", "@Test\n public void genRandom() {\n runAndWait(() -> genRandom(10_000, 500, 1), 32, 2000);\n runAndWait(() -> genRandom(10_000, 500, 100), 32, 2000);\n runAndWait(() -> genRandom(250_000, 4000, 50), 4, 5_000);\n }", "@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\n\t}", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "public static int randomSleepTime() {\n return ThreadLocalRandom.current().nextInt(2000);\n }", "public static int randomNext() { return 0; }", "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }", "long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "@Override\n public void run() {\n if (random.nextInt(10) == 0)\n addPowerUp(random.nextInt(256));\n }", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "@Override\n public long generateNewTimeToNextContract() {\n return new Random().nextInt(5);\n }", "public static long randomTime() {\n return (random.nextInt(11) + 25)*1000;\n }", "float genChance();", "private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "Randomizer getRandomizer();", "public int randomDP() {\n\t\treturn(getRandomInteger(10,250));\n\t}", "private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }", "public static double random() {\r\n return uniform();\r\n }", "public int getRandom() {\r\n if ((itemSize / nextIndexInCache) < 0.25) {\r\n rebuildCache();\r\n }\r\n while (true) {\r\n int i = random.nextInt(nextIndexInCache);\r\n int v = cache[i];\r\n if (contains(v)) {\r\n return v;\r\n }\r\n }\r\n }", "public XorShiftRandom() {\n\t\tthis(System.nanoTime());\n\t}", "protected Random get_rand_value()\n {\n return rand;\n }", "public synchronized int setLuggageWeight(){\n return random.nextInt((30-0)+1)+0;\n }", "private int genRandomWaveNum(int waveNum){\n return genRandomWaveNum(1, waveNum);\n }", "private Pair<Integer, Integer> genRandomSrcDst(){\n int src = (int)(Math.random()*nodesNum);\n int dst = src;\n do {\n dst = (int)(Math.random()*nodesNum);\n }while(dst == src);\n return new Pair<Integer, Integer>(src, dst);\n }", "public double nextServiceTime() {\n return (-1 / mu) * Math.log(1 - randomST.nextDouble());\n }", "public double getRandom() {\n return 20*Math.random() - 10;\n }", "public float randomize() {\n return nextFloat(this.min, this.max);\n }", "public double generateDropTime() {\n return LOWERLIMTIME + (Math.random() * ((UPPERLIMTIME - LOWERLIMTIME) + 1));\n\n }", "public synchronized int setPassengerWeight(){\n return random.nextInt((100-40)+1)+40;\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public float generarTE(){\n float ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.20){ts=1;}\n else if(rnd<=0.50){ts=2;}\n else if(rnd<=0.85){ts=3;}\n else {ts=4;}\n \n return ts;\n }", "public double nextArrivalTime() {\n return (-1 / lambda) * Math.log(1 - randomAT.nextDouble());\n }", "public int generarDE(){\n int ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.35){ts=1;}\n else if(rnd<=0.75){ts=2;}\n else {ts=3;}\n \n return ts;\n }", "private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}", "public int getRandom382() {\n int count = 0, chosenValue = 0;\n ListNode curr = this.head;\n while (curr != null) {\n count += 1;\n // decide whether to include the element in reservoir\n if (rand.nextInt(count) == 0) chosenValue = curr.val;\n // move on to the next node\n curr = curr.next;\n }\n return chosenValue;\n }", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "@Override\r\n public Double getValue() {\r\n return Math.random()*Integer.MAX_VALUE;\r\n \r\n }", "void pluck()\n\t{\n\t\tfor(int i = 0; i < rb.length(); i++)\n\t\t{\n\t\t\tdouble random = (Math.random() - 0.5) * AMPLITUDE; //[-0.5,0.5)\n\t\t\trb.dequeue();\n\t\t\trb.enqueue(random);\n\t\t}\n\t}", "public void jitter() {\n // jitter +- 20% of the value\n double amount = 0.20;\n double change = 1.0 - amount + (Evolve.getRandomNumber() * amount * 2); \n value *= change;\n }", "public static int randomGet() { return 0; }", "@java.lang.Override\n public io.envoyproxy.envoy.type.v3.FractionalPercent getRandomSampling() {\n return randomSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : randomSampling_;\n }", "private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }", "public void growGdp(){\n gdp += (int) Math.floor(1 + Math.random()*(0.01*gdp));\n gdp -= (int) Math.floor(1 + Math.random()*(0.01*gdp));\n \n if(gdp < 0){\n gdp = 0;\n }\n }", "public double getRandom(){\n\t\treturn random.nextDouble();\n\t}", "public void update() {\n if(mGame.getState() != Game.States.PLAYING) return;\n\n if(mMap.getX() >= next) {\n generate(rand.nextInt(3) + 1);\n }\n }", "private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.normal();\r\n\t\treturn rnd.nextGaussian();\r\n\t\t//return 0;\r\n\t}", "public int generate(int k) {\n // PUT YOUR CODE HERE\n }", "public int getRandom() {\n ListNode curr = head2;\n int r = rand.nextInt(size);\n for (int i=0; i<r; i++) {\n if (curr!= null){\n curr = curr.next;\n }\n }\n return curr.val;\n }", "private int newSpeed() {\n //makes a random speed for the ball in (-50,-15)U(15,50)\n int n = r.nextInt(71) - 35;\n if (n < 0) {\n n = n - 15;\n } else {\n n = n + 15;\n }\n return n;\n }", "@Override\n\tpublic Void call() throws Exception {\n\t\tList<Integer> list=new ArrayList<>(THRESHOLD);\n\t\tfor(int i=0;i<iterations;i++) {\n\t\t\tlist.add(ThreadLocalRandom.current().nextInt());\n\t\t\tif(list.size() == THRESHOLD) {\n\t\t\t\t//To avoid contention at queue level sending data in chunks.\n\t\t\t\tqueue.put(list);\n\t\t\t\tlist = new ArrayList<>(THRESHOLD);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static void randomDelay() {\n\n Random random = new Random();\n int delay = 500 + random.nextInt(2000);\n try {\n sleep(delay);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public double getNextRawSample();", "public Item sample() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the number is: \" + index);\n int k = 0;\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t return p.item;\n }", "public double GenerateTime() {\r\n double d = R.nextDouble();\r\n double generatedtime=mean+range*(d-0.5);\r\n return generatedtime;\r\n }", "public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }", "int getRandom(int max);", "public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}", "private static int addRandomScore() {\n Random ran = new Random();\n return ran.nextInt(201) + 400;\n }", "public int getRandom() {\r\n\r\n\t\tListNode temp = this.head;\r\n\t\tListNode random = this.head;\r\n\r\n\t\tint c = 1;\r\n\r\n\t\tfor (; temp != null; temp = temp.next) {\r\n\r\n\t\t\tint r = new Random().nextInt(c) + 1;\r\n\r\n\t\t\tc++;\r\n\t\t\tif (r == 1) {\r\n\t\t\t\trandom = temp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn random.val;\r\n\r\n\t}", "static final int fast_rand()\n\t{\n\t\tRz = 36969 * (Rz & 65535) + (Rz >>> 16);// ((Rz >>> 16) & 65535);\n\t\tRw = 18000 * (Rw & 65535) + (Rw >>> 16);// ((Rw >>> 16) & 65535);\n\t\treturn (Rz << 16) + Rw;\n\t}", "public int getRandom() {\n int n = r.nextInt(this.length);\n ListNode curr = this.head;\n \n while (n > 0) {\n curr = curr.next;\n n--;\n }\n \n return curr.val;\n }", "public double sample_value() {\n checkHasParams();\n return -Math.log(Util.random()) / this.lambda;\n }", "@Override\n public int orinar() {\n\n return (int) (Math.random() * 400) + 400;\n }", "public io.envoyproxy.envoy.type.v3.FractionalPercent.Builder getRandomSamplingBuilder() {\n \n onChanged();\n return getRandomSamplingFieldBuilder().getBuilder();\n }", "private int generateRandomNumber() {\n\t\treturn (int) Math.floor(Math.random() * Constants.RANDOM_NUMBER_GENERATOR_LIMIT);\n\t}", "private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}", "public void tick() {\r\n\t\thunger += (10 + generateRandom());\r\n\t\tthirst += (10 + generateRandom());\r\n\t\ttemp -= (1 + generateRandom());\r\n\t\tboredom += (1 + generateRandom());\r\n\t\tcageMessiness += (1 + generateRandom());\r\n\t}", "public static double rand() {\n return (new Random()).nextDouble();\n }", "private float genX(float x) {\r\n return (_rand.nextFloat() * 40) - 20;\r\n }", "RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }", "private void initializeAndShuffle() {\r\n\t\t\tsuffixes = new byte[256];\r\n\t\t\tfor (int i = 0; i < ALL_BYTE_VALUES.length; i++) {\r\n\t\t\t\tint j = RAND.nextInt(i + 1);\r\n\t\t\t\tif (j != i) {\r\n\t\t\t\t\tsuffixes[i] = suffixes[j];\r\n\t\t\t\t}\r\n\t\t\t\tsuffixes[j] = ALL_BYTE_VALUES[i];\r\n\t\t\t}\r\n\t\t}", "private void random() {\n\n\t}", "private int spreadWriteRequests() {\n return RANDOM.nextInt(MAX_SLEEP_TIME);\n }", "private void roll() {\n value = (int) (Math.random() * MAXVALUE) + 1;\n }", "public double randomValue(){\n\t\treturn _randomValue() + _randomValue() + _randomValue();\n\t}", "public static void test2() {\n\n LargerRandomNumberBigDecimal value = new LargerRandomNumberBigDecimal();\n\n for (int i = 0; i < 50; i++) {\n\n System.out.println(\"value = \" + value.getNextLargerRand());\n }\n }", "private static byte getNext() {\n return (byte)Tool.getRandomlyFromRange(Byte.MIN_VALUE, Byte.MAX_VALUE);\n }", "public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}", "public static int uniform(int N) {\r\n return random.nextInt(N);\r\n }", "private int genRandomWaveNum(int min, int max){\n int m = genRandomInt(min, max);\n return m;\n }", "private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }", "private IUnit getRandomCacheUnit(){\n\t\tcache = new UnitCache();\n\t\treturn cache.getUnit(rnd.nextInt(cache.getSize()));\n\t}", "private void sample() {\n Number value = gauge.get();\n this.inner.set(value != null ? value.doubleValue() : 0);\n }", "public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }", "public int getRandom() {\n return sub.get(rand.nextInt(sub.size()));\n }", "private Random getRandom()\n\t{\n\t\tif (this.random == null)\n\t\t{\n\t\t\t// Calculate the new random number generator seed\n\t\t\tlong seed = System.currentTimeMillis();\n\t\t\tlong t1 = seed;\n\t\t\tchar entropy[] = getEntropy().toCharArray();\n\t\t\tfor (int i = 0; i < entropy.length; i++)\n\t\t\t{\n\t\t\t\tlong update = ((byte) entropy[i]) << ((i % 8) * 8);\n\t\t\t\tseed ^= update;\n\t\t\t}\n\t\t\tthis.random = new java.util.Random();\n\t\t\tthis.random.setSeed(seed);\n\t\t}\n\n\t\treturn (this.random);\n\n\t}", "private long getSampleTime() {\n return System.currentTimeMillis();\n\n }", "public static Object getRandom(Object... kv)\n {\n return getRandom(distributeChance(kv));\n }", "private long getRandomDestination() {\n long randomId;\n do {\n randomId = nextLong(aggregateVertices);\n } while (!destVertices.add(randomId));\n return randomId;\n }", "Boolean getRandomize();", "public static int uniform( int N ) {\n return random.nextInt( N + 1 );\n }", "@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}", "public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }", "public double getRand(int stage){\n double sum=0.0;\n for (int i = 0; i<9; i++)\n sum+=modifiedMark.get(stage).get(i);\n return Math.random()*sum;\n }" ]
[ "0.59834814", "0.5846741", "0.5824242", "0.575567", "0.57220066", "0.5705445", "0.5693638", "0.5662656", "0.55491984", "0.55361134", "0.55248624", "0.55218166", "0.55217737", "0.55138165", "0.5505598", "0.5504651", "0.54833686", "0.5437849", "0.5434263", "0.5391815", "0.53769135", "0.5368465", "0.5353389", "0.53533417", "0.5343086", "0.5326923", "0.5325557", "0.53211784", "0.5316239", "0.52967733", "0.52962613", "0.5295079", "0.5294641", "0.5291025", "0.5289213", "0.52774894", "0.5266991", "0.52615273", "0.5259552", "0.52539396", "0.5222578", "0.5217935", "0.52172554", "0.52171296", "0.5206683", "0.52014035", "0.5198663", "0.51980644", "0.5179246", "0.5174051", "0.51732934", "0.51647395", "0.51602", "0.51573473", "0.51572996", "0.5157216", "0.5153821", "0.5137438", "0.5136686", "0.5130556", "0.5113221", "0.5107069", "0.509844", "0.5096255", "0.50951743", "0.50904405", "0.5088111", "0.50864303", "0.50847536", "0.5079517", "0.50792456", "0.5074326", "0.5073937", "0.5067786", "0.5066733", "0.50664693", "0.5065757", "0.50594974", "0.50590736", "0.5057341", "0.5050771", "0.5050119", "0.5045057", "0.5037011", "0.50347316", "0.50341946", "0.50325465", "0.5024538", "0.502099", "0.5015797", "0.501497", "0.50087017", "0.50077784", "0.5003668", "0.50013447", "0.49905938", "0.49888796", "0.49856386", "0.4983152", "0.4982442" ]
0.55308294
10
Starts the conversion process.
public void convertAll() { try { updater.init(getUnitsToConvert()); for (Converter converter : converters) { converter.convert(updater); } world.saveLevelDatIfNeeded(); updater.complete(); } catch (IOException e) { updater.failed(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n System.out.println(\"Starting\");\r\n try {\r\n File fastq = new File(\"data/HW4.fastq\");\r\n if (!fastq.exists()) {\r\n System.out.println(\"Can't find input file \" + fastq.getAbsolutePath());\r\n System.exit(1);\r\n }\r\n File fasta = new File(\"data/HW4.fasta\");\r\n FileConverter converter = new FileConverter(fastq, fasta);\r\n converter.convert();\r\n } catch (IOException x) {\r\n System.out.println(x.getMessage());\r\n }\r\n System.out.println(\"Done\");\r\n }", "private static void runTests() {\r\n\t\tfor (int i = 0; i < testFiles.length; i++) {\r\n\t\t\tConverter file = new Converter(testFiles[i]);\r\n\t\t\tfile.convert();\r\n\t\t\tSystem.out.println(\"---------\");\r\n\t\t}\r\n\t}", "public void run() {\r\n for (int i = 0; i < inputs.size(); i++) {\r\n String converted;\r\n //Converts the input string using the converter\r\n converted = converter.convert(inputs.get(i));\r\n //It adds to the output the converted string \r\n outputs.add(converted);\r\n //Prints the converted value\r\n System.out.println(converted);\r\n }\r\n\r\n }", "public void start() {\n \n convertLabelsToInt();\n executor = Executors.newSingleThreadExecutor();\n executor.submit(this);\n active = true;\n \n tSec.setEditable(false);\n tMin.setEditable(false);\n tHours.setEditable(false);\n }", "public void run() {\n \n if (Parameter != null && Parameter instanceof ConvertTextUnitsParameter) {\n CastParameter = (ConvertTextUnitsParameter)Parameter;\n }\n else {\n CastParameter = null;\n }\n\n String shortErrorMessage = \"Error: Text Units Cannot be Converted!\";\n this.acceptTask(TaskProgress.INDETERMINATE, \"Initial Preparations\");\n this.validateParameter(Parameter, shortErrorMessage);\n this.openDiasdemCollection(CastParameter.getCollectionFileName());\n this.checkPrerequisitesAndSetDefaultTextUnitsLayer(shortErrorMessage);\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS) {\n RegexPattern = Pattern.compile(CastParameter.getRegularExpression());\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS) {\n // read multi token word: each line contains one multi token word;\n // comment lines start with '#'\n TextFile multiTokenFile = new TextFile(\n new File(CastParameter.getMultiTokenFileName()));\n multiTokenFile.open();\n String line = multiTokenFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n ArrayList list = new ArrayList();\n while (line != null) {\n list.add(line.trim());\n line = multiTokenFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n Collections.sort(list, new SortStringsByDecreasingLength());\n // for (int i = 0; i < list.size(); i++) {\n // System.out.println((String)list.get(i));\n // }\n // System.out.println(list.size());\n String[] multiToken = new String[list.size()];\n for (int i = 0; i < list.size(); i++)\n multiToken[i] = (String)list.get(i);\n multiTokenFile.close();\n MyMultiTokenWordIdentifier = new HeuristicMultiTokenWordIdentifier(\n multiToken);\n }\n else {\n MyMultiTokenWordIdentifier = null;\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .FIND_AND_REPLACE_SPECIFIED_TOKENS) {\n // read token replacement file: each line contains the tokens to search \n // for and the replacement tokens separated by a tab stop;\n // comment lines start with '#'\n TextFile tokenReplacementFile = new TextFile(\n new File(CastParameter.getTokenReplacementFileName()));\n tokenReplacementFile.open();\n String line = tokenReplacementFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n HashMap tokensSearchList = new HashMap();\n String[] tokensContents = null;\n while (line != null) {\n tokensContents = line.split(\"\\t\");\n if (tokensContents.length == 2\n && tokensContents[1].trim().length() > 0) {\n try {\n tokensSearchList.put(tokensContents[0].trim(), \n tokensContents[1].trim());\n }\n catch (PatternSyntaxException e) {\n System.out.println(\"[TokenizeTextUnitsTask] Regex syntax error in \"\n + \" file \" + CastParameter.getTokenReplacementFileName() + \": \"\n + \" Line \\\"\" + line + \"\\\"; error message: \" + e.getMessage());\n }\n }\n else {\n System.out.println(\"[TokenizeTextUnitsTask] Error in file \"\n + CastParameter.getTokenReplacementFileName() + \": Line \\\"\"\n + line + \"\\\" does not conform to syntax!\");\n }\n line = tokenReplacementFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n ArrayList list = new ArrayList(tokensSearchList.keySet());\n Collections.sort(list, new SortStringsByDecreasingLength());\n // create arrays for token replacement \n String[] tokensSearch = new String[list.size()];\n String[] tokensReplace = new String[list.size()];\n Iterator iterator = list.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n TmpString = (String)iterator.next();\n tokensSearch[i] = TmpString;\n tokensReplace[i++] = (String)tokensSearchList.get(TmpString);\n }\n tokenReplacementFile.close();\n MyTokenReplacer = new HeuristicTokenReplacer(tokensSearch, tokensReplace);\n }\n else {\n MyTokenReplacer = null;\n }\n \n int counterProgress = 0;\n long maxProgress = DiasdemCollection.getNumberOfDocuments();\n \n DiasdemDocument = DiasdemCollection.getFirstDocument(); \n while (DiasdemDocument != null) {\n \n if (counterProgress == 1 || (counterProgress % 50) == 0) {\n Progress.update( (int)(counterProgress * 100 / maxProgress),\n \"Processing Document \" + counterProgress);\n DiasdemServer.setTaskProgress(Progress, TaskThread);\n }\n\n DiasdemDocument.setActiveTextUnitsLayer(DiasdemProject\n .getActiveTextUnitsLayerIndex());\n DiasdemDocument.backupProcessedTextUnits(DiasdemProject\n .getProcessedTextUnitsRollbackOption());\n \n for (int i = 0; i < DiasdemDocument.getNumberOfProcessedTextUnits(); \n i++) {\n DiasdemTextUnit = DiasdemDocument.getProcessedTextUnit(i);\n switch (CastParameter.getConversionType()) {\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_LOWER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toLowerCase();\n break;\n }\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_UPPER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toUpperCase();\n break;\n } \n case ConvertTextUnitsParameter.APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS: {\n RegexMatcher = RegexPattern.matcher(DiasdemTextUnit\n .getContentsAsString());\n TmpStringBuffer = new StringBuffer(DiasdemTextUnit\n .getContentsAsString().length() + 10000);\n while (RegexMatcher.find()) {\n RegexMatcher.appendReplacement(TmpStringBuffer,\n CastParameter.getReplacementString());\n }\n TextUnitContentsAsString = RegexMatcher.appendTail(TmpStringBuffer)\n .toString();\n break;\n }\n case ConvertTextUnitsParameter.IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS: {\n TextUnitContentsAsString = MyMultiTokenWordIdentifier\n .identifyMultiTokenWords(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.FIND_AND_REPLACE_SPECIFIED_TOKENS: {\n TextUnitContentsAsString = MyTokenReplacer\n .replaceTokens(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_PART_OF_SPEECH_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/p:\");\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_WORD_SENSE_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/s:\");\n break;\n } \n default: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString();\n }\n }\n DiasdemTextUnit.setContentsFromString(TextUnitContentsAsString);\n DiasdemDocument.replaceProcessedTextUnit(i, DiasdemTextUnit);\n }\n\n DiasdemCollection.replaceDocument(DiasdemDocument\n .getDiasdemDocumentID(), DiasdemDocument);\n \n DiasdemDocument = DiasdemCollection.getNextDocument();\n counterProgress++;\n \n } // read all documents\n \n super.closeDiasdemCollection();\n \n CastResult = new ConvertTextUnitsResult(TaskResult.FINAL_RESULT,\n \"All processed text units have been converted in the DIAsDEM document\\n\" +\n \" collection \" +\n Tools.shortenFileName(CastParameter.getCollectionFileName(), 55) + \"!\", \n \"Processed text units have been converted.\");\n this.setTaskResult(100, \"All Documents Processed ...\", CastResult,\n TaskResult.FINAL_RESULT, Task.TASK_FINISHED);\n \n }", "private void convertFile() throws Exception {\n\t\t// Inform the user that we're working\n\t\tmainframe.isLoading();\n\t\toutputMessage = \"Starting conversion...\";\n\n\t\t// ---------- Setting the output\n\t\t// *** Creating the dir\n\n\t\t// if the outputfiletextfield is empty, output file folder is same as input file's\n\t\tif(mainframe.getOutputTextfieldText().trim().equals(\"\")) {\n\t\t\tString[] temporarypath = null;\n\t\t\ttemporarypath = curFile.getAbsolutePath().split(\".xml\");\n\t\t\tdir = temporarypath[0];\n\n\t\t\toutputMessage += '\\n' + \"No output filled, same directory as input will be used\";\n\t\t}\n\t\telse{\n\t\t\ttry {\n\t\t\t\tFile f = new File(mainframe.getOutputTextfieldText());\n\n\t\t\t\t// if the selected is a directory\n\t\t\t\tif(f.isDirectory())\n\t\t\t\t{\n\t\t\t\t\t// split the file name\n\t\t\t\t\tString[] temporarypath = curFile.getName().split(\".xml\");\n\n\t\t\t\t\tdir = f.getAbsolutePath() + File.separator + temporarypath[0];\n \n\t\t\t\t}\n\t\t\t\telse if(f.getAbsolutePath().endsWith(\"sif\"))\n\t\t\t\t{\n\t\t\t\t\tString[] temporarypath = f.getAbsolutePath().split(\".sif\");\n\t\t\t\t\tdir = temporarypath[0];\n\t\t\t\t}\n\t\t\t\telse if(f.getAbsolutePath().endsWith(\"csv\"))\n\t\t\t\t{\n\t\t\t\t\tString[] temporarypath = f.getAbsolutePath().split(\".csv\");\n\t\t\t\t\tdir = temporarypath[0];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthrow new Exception(\"Invalid output : directory, SIF file or CSV file expected\");\n\t\t\t\t}\n\t\t\t} catch (NullPointerException nullExp){\n\t\t\t\toutputMessage += '\\n' + \"No output fuilled, same directory as input will be used\";\n\t\t\t}\n\t\t}\n\n\n\n\t\t// *** Setting the targets\n\t\tsetTargetSIFpath(dir.concat(\".sif\"));\n\t\tsetTargetCSVpath(dir.concat(\".csv\"));\n\t\t// set the target node type NA path\n\t\tsetTargetNODE_TYPEpath(dir.concat(\".NODE_TYPE.NA\"));\n\t\t// set the UNIPROT NA path\n\t\tsetTargetUNIPROTpath(dir.concat(\".UNIPROT.NA\"));\n\t\t// set the MODIFICATIONS NA path\n\t\tsetTargetMODIFICATIONSpath(dir.concat(\".MODIFICATIONS.NA\"));\n\t\t// set the PREFERRED_SYMBOL NA path\n\t\tsetTargetPREFERRED_SYMBOLpath(dir.concat(\".PREFERRED_SYMBOL.NA\"));\n\t\t// set the PREFERRED_SYMBOL_EXT NA path\n\t\tsetTargetPREFERRED_SYMBOL_EXTpath(dir.concat(\".PREFERRED_SYMBOL_EXT.NA\"));\n\t\t// set the PID NA path\n\t\tsetTargetPIDpath(dir.concat(\".PID.NA\"));\n\t\t// set the ID_PREF NA path\n\t\tsetTargetID_PREFpath(dir.concat(\".ID_PREF.NA\"));\n\t\t// set the IDCytoUniProtFile path\n\t\tsetTargetIDCytoUniProtFilepath(dir.concat(\".IDCytoToUniProt.NA\"));\n\t\t// set the UniqueUniProtFile path\n\t\tsetTargetUniqueUniProtFilepath(dir.concat(\".UNIQUEUNIPROT.NA\"));\n\t\t// set the UniProt to GeneID map file path\n\t\tsetTargetUniProtToGeneIDMapFilepath(dir.concat(\".UPToGeneIDMap.NA\"));\n\t\t// set the GeneID to Affymetrix map file path\n\t\tsetTargetGeneIDtoAffymetrixMapFilepath(dir.concat(\".GeneIDToAffyMap.NA\"));\n\n\t\t// For the user\n\t\toutputMessage += '\\n' + \"Target for conversion : \" + dir;\n\t\tmainframe.setTextToOutputText(dir);\n\n\t\t// ----------------- Converting\n\t\tif(inputfilepath.endsWith(\"xml\"))\n\t\t{\n\t\t\tNodeManagerImpl manager = NodeManagerImpl.getInstance();\n\t\t\tFileReader reader = PidFileReader.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\treader.read(inputfilepath);\n\t\t\t}\n\t\t\tcatch (NoValidManagerSetException e1) {\n\t\t\t\tthrow e1;\n\t\t\t}\n\t\t\tcatch (FileParsingException e1) {\n\t\t\t\tthrow e1;\n\t\t\t}\n\n\t\t\tFileWriter writer = SifFileWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\twriter.write(getTargetSIFpath(), manager);\n\t\t\t\tif (mainframe.isExpandChecked())\n\t\t\t\t{\n\t\t\t\t\twriter = SifFileExpandMolWriter.getInstance();\n\t\t\t\t\twriter.write(getTargetSIFpath(), manager);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\tthrow e;\n\t\t\t}\n\n\t\t\tFileWriter nWriter = NodeTypeAttributeForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tnWriter.write(getTargetNODE_TYPEpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter uWriter = UniprotIdForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tuWriter.write(getTargetUNIPROTpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter modiWriter = ModificationsWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmodiWriter.write(getTargetMODIFICATIONSpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter pWriter = PreferredSymbolForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpWriter.write(getTargetPREFERRED_SYMBOLpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tpWriter = ExtPreferredSymbolWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpWriter.write(getTargetPREFERRED_SYMBOL_EXTpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter pidWriter = PidForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpidWriter.write(getTargetPIDpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter prefIdWriter = IdWithPreferredSymbolWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tprefIdWriter.write(getTargetID_PREFpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// Parsing NA to CSV\n\t\t\ttry {\n\t\t\t\tparserTask = new ParserTask(getTargetCSVpath(),getTargetPIDpath(), getTargetNODE_TYPEpath(), getTargetUNIPROTpath(), getTargetMODIFICATIONSpath(),\n\t\t\t\t\t\tgetTargetPREFERRED_SYMBOLpath(), getTargetPREFERRED_SYMBOL_EXTpath(), getTargetPREFERRED_SYMBOL_EXTpath(), getTargetID_PREFpath());\n\n\t\t\t\tFile SIFFile = new File(getTargetSIFpath());\n\t\t\t\tMyTaskObserver myTaskObserver = new MyTaskObserver(mainframe, tm, ldt, parserTask);\n\n\t\t\t\titr = ldn.createTaskIterator(SIFFile);\n\t\t\t\titr.append(parserTask);\n\t\t\t\ttm.execute(itr, myTaskObserver);\n\t\t\t} catch (Exception exp) {\n\t\t\t\tthrow new Exception(\"Problem when trying to parse the NA files or loading the graph : \\n\" + exp.toString());\n\t\t\t}\n\n\t\t}\n\t\telse // not an xml\n\t\t{\n\t\t\tthrow new Exception(\"Invalid input : .xml expected\");\n\t\t}\n \n\t}", "@Override\n\tprotected Void doInBackground() throws Exception {\n\t\tString cmdSchemeFile = \"echo -e \\\"(voice_\"+this.voice+\")\\n\"+\n\t\t\t\t\"(set! duffint_params '((start \"+pitchStart+\") (end \"+pitchEnd+\")))\\n\"\n\t\t\t\t+ \"(Parameter.set 'Int_Method 'DuffInt)\\n(Parameter.set 'Int_Target_Method Int_Targets_Default)\\n\"\n\t\t\t\t+ \"(Parameter.set 'Duration_Stretch \"+rate+\")\\\">.tmp1.scm \";\n\t\t\n\t\tProcessBuilder builder = new ProcessBuilder(\"/bin/bash\", \"-c\", cmdSchemeFile);\n\t\tProcess process = builder.start();\n\t\t//add .tmp1.scm to remove list\n\t\tfilesToRemove.add(\".tmp1.scm\");\n\t\tprocess.waitFor();\n\t\tprocess.destroy();\n\t\t\n\t\t//Create textfile with the message\n\t\tString cmdTxtFile= \"echo \\\"\"+message+\"\\\" > .tmp.txt\";\n\t\tProcessBuilder buildTxt= new ProcessBuilder(\"/bin/bash\",\"-c\", cmdTxtFile);\n\t\tProcess processTxt= buildTxt.start();\n\t\tfilesToRemove.add(\".tmp.txt\");\n\t\tprocessTxt.waitFor();\n\t\tprocessTxt.destroy();\n\t\t\n\t\t//Convert the text to a wav file with properties in the scheme file\n\t\tString cmdWavFile= \"text2wave -o .tmp.wav .tmp.txt -eval .tmp1.scm\";\n\t\tProcessBuilder buildWav= new ProcessBuilder(\"/bin/bash\",\"-c\",cmdWavFile);\n\t\tProcess processWav= buildWav.start();\n\t\tfilesToRemove.add(\".tmp.wav\");\n\t\tprocessWav.waitFor();\n\t\tprocessWav.destroy();\n\t\t\n\t\t//Convert the wave file into mp3 file\n\t\tString cmdMp3File = \"ffmpeg -i .tmp.wav -f mp3 \" + fileName;\n\t\tProcessBuilder buildMp3 = new ProcessBuilder(\"/bin/bash\", \"-c\", cmdMp3File);\n\t\tProcess processMp3 = buildMp3.start();\n\t\tInputStream out= processMp3.getErrorStream();\n\t\tBufferedReader stdout= new BufferedReader(new InputStreamReader(out));\n\t\twhile(stdout.readLine() !=null){\n\t\t\tn+=10;\n\t\t\tpublish();\n\t\t}\n\t\t\n\t\tprocessMp3.waitFor();\n\t\tprocessMp3.destroy();\n\n\t\t// command used in bash terminal\n\t\t// deletes the temporary file\n\t\tFilesRemover fr= new FilesRemover(filesToRemove);\n\t\tfr.execute();\n\t\n\t\treturn null;\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n sL.register(null, \"INFO\", \"Successful - actionPerformed - start\");\n if (converter.getTxtName().getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Please, define a name file.\");\n } else if (converter.getCmbConvertTo().getSelectedItem().toString().equals(\"Select\")) {\n JOptionPane.showMessageDialog(null, \"Please, define a Video or Audio conversion.\");\n } else if (converter.getTxtPathSave().getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Please, define a valid path to save.\");\n } else if (converter.getCmbType().getSelectedItem().toString().equals(\"Select\") && converter.getCmbTypeAudio().getSelectedItem().toString().equals(\"Select\")) {\n JOptionPane.showMessageDialog(null, \"Please, define a type to conversion.\");\n } else if (e.getSource() == converter.getBtnConvert()) {\n loadConvertCriteria(convertCriteria);\n if(converter.getCmbConvertTo().getSelectedItem().toString().equals(\"Audio\")) {\n convertFile = new ConvertFileAudio();\n progress = convertFile.convert(convertCriteria);\n converter.setProgressBar(progress);\n } else if(converter.getCmbConvertTo().getSelectedItem().toString().equals(\"Video\")){\n convertFile = new ConvertFileVideo();\n progress = convertFile.convert(convertCriteria);\n converter.setProgressBar(progress);\n }\n if(progress == 100) {\n String type = converter.getCmbType()\n .getSelectedItem().toString()==\"Select\"?\n converter.getCmbTypeAudio().getSelectedItem().toString()\n :converter.getCmbType().getSelectedItem().toString();\n ConvertList convertList = new ConvertList();\n convertList.writeConvert(converter.getTxtPathSave().getText()\n .concat(\"\\\\\")\n .concat(converter.getTxtName().getText())\n .concat(\".\")\n .concat(type)\n );\n listConverting.getListModel().clear();\n showList(convertList.convertLis());\n JOptionPane.showMessageDialog(null, \"File was converted successfully!\", \"Information message\", JOptionPane.INFORMATION_MESSAGE);\n converter.setProgressBar(0);\n }\n }\n sL.register(null, \"INFO\", \"Successful - actionPerformed - finished\");\n }", "protected void startProcess() {\n System.out.println(\"Process started\");\r\n }", "public XWPFDocument startConversion() {\n\n convertParagraphs(docx);\n convertFooter(docx);\n convertHeader(docx);\n convertTables(docx);\n updateStylesToNewFont();\n\n\n return docx;\n }", "public void start() {}", "public void start() {}", "private void start() {\n\n\t}", "public void start() {\n\t\tstartFilesConfig(true);\n\t\tstartSpamFilterTest(false);\n\t}", "public static void main(String args[])\n {\n try\n {\n Date startDate = new Date();\n System.out.println(\"Job started \" + startDate);\n\n // Change the thread name so we can easily identify messages\n // from this run in the log.\n Thread t = Thread.currentThread();\n t.setName(\"RunLBL_\" + startDate.getTime());\n\n log.info(\"LBL conversion started\");\n\n RL21Convert lbl = new RL21Convert(RL21Convert.LBL);\n\n // Get a new RunConvert using our conversion class.\n RunConvert run = new RunConvert(lbl);\n\n // RunConvert.process handles all I/O and the calling\n // of the MarcConvert routines to perform the conversion.\n int rc = run.convert();\n log.info(\"LBL conversion completed - return code = \" + rc);\n System.out.println(\"Job completed \" + new java.util.Date() + \" rc = \" + rc);\n System.exit(rc);\n }\n catch (MarcParmException e)\n {\n log.error(\"MarcParmException: \" + e.getMessage(), e);\n }\n catch (Exception e)\n {\n log.error(\"Exception: \" + e.getMessage(), e);\n }\n }", "public void start() {\n process(0);\n }", "public void start(){\n CoffeeMakerHelper coffeeMakerHelper = new CoffeeMakerHelper(inputArgs[0]);\n coffeeMakerService = coffeeMakerHelper.parseJsonFile();\n computeCoffeeMaker();\n }", "@Override\n\tpublic void startProcessing() {\n\n\t}", "private void start() {\n\t\tif (null == this.sourceRunner || null == this.channel) {\n\t\t\tthrow new FlumeException(\n\t\t\t\t\t\"Source/Channel is null. Cannot start flume components\");\n\t\t}\n\t\tthis.sourceRunner.start();\n\t\tthis.channel.start();\n\t\tthis.sinkCounter.start();\n\t}", "public void run() {\n if (!script.compile()) {\n Program.stop(\"ERROR: There was an error while compiling your script.\"\n + \"\\nPlease check your syntax!\", false);\n return;\n }\n commandCounter = script.input.split(\";\").length - 1;\n if (!writeMemory()) {\n Program.stop(\"ERROR: There was a fatal error while \"\n + \"writing the script into the memory!\", false);\n return;\n }\n try {\n startProcessor();\n } catch (NumberFormatException n) {\n Program.stop(\"ERROR: There was a runtime error while executing the script!\", false);\n }\n Program.stop(\"\", true);\n }", "public void start()\n {\n }", "public void start() {\n\t\t\n\t}", "public void start() {\n\t\t\n\t}", "public void start() {\n\n\t}", "public void runner() {\n\t\ttry {\n\t\t\tRuntime r = Runtime.getRuntime();\n\t\t\tString path = \"cmd /c cd D:\\\\\\\\AA三下\\\\\\\\java精灵\\\\ffmpeg-20190513-dcc9998-win64-static\\\\bin\";\n\t\t\tr.exec(\"cmd /c d:\");\n\t\t\t// r.exec(\"cd D:\\\\AA三下\\\\java精灵\\ffmpeg-20190513-dcc9998-win64-static\\bin\");\n\t\t\t//r.exec(path);\n\t\t\tr.exec(\"D:\\\\\\\\\\\\\\\\AA三下\\\\\\\\\\\\\\\\java精灵\\\\\\\\ffmpeg-20190513-dcc9998-win64-static\\\\\\\\bin\\\\\\\\ffmpeg.exe -i E:\\\\recordyin\\\\1.wav -i E:\\\\recordAVI\\\\out2.avi E:\\\\recorder\\\\a11.avi\");\n\t\t\tSystem.out.println(\"over\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desired for test.\r\n\t\tBPCC_Util.setLogLevel(LogLevelEnum.DEBUG);\r\n\t\t\r\n\t\t// Initialize class global variables.\r\n\t\tinitVars();\r\n\t\t\r\n\t\tcreateAndShowGUI();\r\n\t}", "public void start() {\n }", "private void loadConverter()\n\t{\n\t\ttry\n {\n\t mOutput = AudioSystem.getSourceDataLine( \n\t \t\tIMBEAudioFormat.PCM_SIGNED_48KHZ_16BITS );\n\n\t if( mOutput != null )\n \t{\n\t \tmFrameSize = PROCESSED_48KHZ_AUDIO_FRAME_SIZE;\n\t \t\n\t \t/* Open the audio line with room for two buffers */ \n\t \tmOutput.open( IMBEAudioFormat.PCM_SIGNED_48KHZ_16BITS, \n\t \t\t\t\t mFrameSize * 2 );\n\n\t\t\t\tmCanProcessAudio = true;\n \t}\n\t else\n\t {\n\t\t\t\tmLog.debug( \"Couldn't obtain a 48kHz source data line \"\n\t\t\t\t\t\t+ \"- attempting 8kHz rate\" );\n\t\t\t\t\n\t\t mOutput = AudioSystem.getSourceDataLine( \n\t\t \t\tIMBEAudioFormat.PCM_SIGNED_8KHZ_16BITS );\n\n\t\t if( mOutput != null )\n\t \t{\n\t\t \tmFrameSize = PROCESSED_8KHZ_AUDIO_FRAME_SIZE;\n\t\t \t\n\t\t \t/* Open the audio line with room for two buffers */ \n\t\t \tmOutput.open( IMBEAudioFormat.PCM_SIGNED_8KHZ_16BITS, \n\t\t \t\t\t\t mFrameSize * 2 );\n\t\t \t\n\t\t\t\t\tmCanProcessAudio = true;\n\t \t}\n\t\t else\n\t\t {\n\t\t\t\t\tmLog.error( \"Couldn't obtain a 48 kHz or 8 kHz \"\n\t\t\t\t\t\t+ \"source data line - no decoded IMBE audio \"\n\t\t\t\t\t\t+ \"will be available\" );\n\t\t\t\t\t\n\t\t\t\t\tlogSourceLines();\n\t\t }\n\t }\n }\n catch ( LineUnavailableException lue )\n {\n \tmLog.error( \"AudioOutput - couldn't open audio output line \"\n \t\t\t+ \"for playback\", lue );\n }\n\t\tcatch( IllegalArgumentException iae )\n\t\t{\n\t\t\tmLog.error( \"Error fetching or opening audio output for \"\n\t\t\t\t\t+ \"48kHz or 8kHz 16 bit audio\", iae );\n\t\t}\n\t\tcatch( Exception e )\n\t\t{\n\t\t\tmLog.error( \"Error with audio output\", e );\n\t\t}\n\n\t\tif( mCanProcessAudio )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif( mOutput.getFormat().getSampleRate() == IMBEAudioFormat.PCM_48KHZ_RATE )\n\t\t\t\t{\n\t\t\t\t\tmIMBEToPCMConverter = AudioSystem\n\t\t\t\t\t\t\t.getAudioInputStream( IMBEAudioFormat.PCM_SIGNED_48KHZ_16BITS, \n\t\t\t\t\t\t\t\t\tnew AudioInputStream( mIMBETargetDataLine ) );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmIMBEToPCMConverter = AudioSystem\n\t\t\t\t\t\t\t.getAudioInputStream( IMBEAudioFormat.PCM_SIGNED_8KHZ_16BITS, \n\t\t\t\t\t\t\t\t\tnew AudioInputStream( mIMBETargetDataLine ) );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( mIMBEToPCMConverter != null )\n\t\t\t\t{\n\t\t\t\t\tmLog.info( \"IMBE audio converter library loaded successfully\" );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmLog.info( \"could not load IMBE audio converter library\" );\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch( IllegalArgumentException iae )\n\t\t\t{\n\t\t\t\tmLog.error( \"could NOT find/load IMBE audio converter library\", iae );\n\t\t\t}\n\t\t}\n\t}", "public void start() { \t\n try {\n \tTask task = new FileTask(fileScanner);\n \tTaskDescription taskDescription = new TaskDescription();\n \ttaskDescription.setName(name + \"-FILE-EP\");\n \ttaskDescription.setTaskGroup(\"FILE-EP\");\n \ttaskDescription.setInterval(interval);\n \ttaskDescription.setIntervalInMs(true);\n \ttaskDescription.addResource(TaskDescription.INSTANCE, task);\n \ttaskDescription.addResource(TaskDescription.CLASSNAME, task.getClass().getName());\n \tstartUpController = new StartUpController();\n \tstartUpController.setTaskDescription(taskDescription);\n \tstartUpController.init(synapseEnvironment);\n\n } catch (Exception e) {\n log.error(\"Could not start File Processor. Error starting up scheduler. Error: \" + e.getLocalizedMessage());\n }\n }", "protected void start() {\n\t\thellotv.setText(\"\");\n\t\tMap<String, Object> params = new LinkedHashMap<String, Object>();\n\t\tString event = null;\n\t\tevent = SpeechConstant.ASR_START;\n\t\t\n\t\tif (enableOffline) {\n params.put(SpeechConstant.DECODER, 2);\n }\n\t\t\n\t\tparams.put(SpeechConstant.ACCEPT_AUDIO_VOLUME, false);\n\t\t//params.put(SpeechConstant.PID, 1737);//English\n\t\t\n\t\tString json = null;\n\t\tjson = new JSONObject(params).toString();\n\t\tasr.send(event, json, null, 0, 0);\n\t\t\n\t\tprintresult(\"输入参数\"+ json);\n\t}", "protected void start() {\n }", "@Override\n\tpublic void start() {\n\t\t\n\t\t_mode.init();\n\t\t\n\t\t_mode.start();\n\t}", "public void converted() {\n conversions++;\n }", "private void startStreams() {\n InputStream inputStream = process.getInputStream();\n bufferedInputStream = new BufferedReader(new InputStreamReader(inputStream));\n InputStream errorStream = process.getErrorStream();\n bufferedErrorStream = new BufferedReader(new InputStreamReader(errorStream));\n }", "public void start() {\n\t\tpcmList = Collections.synchronizedList(new LinkedList<PCMData>());\n\t\tencodedlist = Collections\n\t\t\t\t.synchronizedList(new LinkedList<EncodedData>());\n\t\taudioRecordThread = new AudioRecordThread(this);\n\t\taudioSpeexEncoderThread = new AudioSpeexEncoderThread(this);\n\t\tflvWriterThread = new AudioFlvWriterThread(this);\n\t\taudioRecordThread.start();\n\t\taudioSpeexEncoderThread.start();\n\t\tflvWriterThread.start();\n\t}", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "public void start() {\n \t\tzCalc.start();\n \t}", "public static void main(String[] args) {\n\t\tUtility.tempConversion();\n\t}", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "static void startJavaTrainer() {\n initializeMap();\n promptUser();\n startProgram();\n }", "@Test\n public void runParallelConversions() throws Exception {\n\n final String pattern = \"%d{ISO8601} %-5p [%c{3}] [%t] %m%n\";\n Logger.getRootLogger().removeAllAppenders();\n\n // Create console appender\n final ConsoleAppender console = new ConsoleAppender();\n console.setWriter(new OutputStreamWriter(System.out));\n console.setLayout(new PatternLayout(pattern));\n console.setThreshold(Level.DEBUG);\n console.activateOptions();\n Logger.getRootLogger().addAppender(console);\n\n // Keep a log file to be able to see if an error occurred\n final FileAppender fileAppender = new FileAppender();\n fileAppender.setName(\"FileLogger\");\n fileAppender.setFile(\"test-output/\" + StressITest.class.getSimpleName() + \"/test.log\");\n fileAppender.setLayout(new PatternLayout(pattern));\n fileAppender.setThreshold(Level.DEBUG);\n fileAppender.setAppend(true);\n fileAppender.activateOptions();\n Logger.getRootLogger().addAppender(fileAppender);\n\n // Configure the office manager in a way that maximizes possible race conditions.\n final OfficeManager officeManager =\n DefaultOfficeManager.builder()\n .portNumbers(2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009)\n .maxTasksPerProcess(MAX_TASKS_PER_PROCESS)\n .build();\n final DocumentConverter converter = DefaultConverter.make(officeManager);\n final DocumentFormatRegistry formatRegistry = converter.getFormatRegistry();\n\n officeManager.start();\n try {\n final File inputFile = new File(\"src/integTest/resources/documents/test.\" + INPUT_EXTENSION);\n\n final Thread[] threads = new Thread[MAX_RUNNING_THREADS];\n\n boolean first = true;\n int t = 0;\n\n final DocumentFormat inputFormat = formatRegistry.getFormatByExtension(INPUT_EXTENSION);\n final DocumentFormat outputFormat = formatRegistry.getFormatByExtension(OUTPUT_EXTENSION);\n for (int i = 0; i < MAX_CONVERSIONS; i++) {\n final File outputFile = File.createTempFile(\"test\", \".\" + outputFormat.getExtension());\n outputFile.deleteOnExit();\n\n // Converts the first document without threads to ensure everything is OK.\n if (first) {\n converter.convert(inputFile).as(inputFormat).to(outputFile).as(outputFormat).execute();\n first = false;\n }\n\n logger.info(\"Creating thread \" + t);\n final Runner r = new Runner(inputFile, outputFile, inputFormat, outputFormat, converter);\n threads[t] = new Thread(r);\n threads[t++].start();\n\n if (t == MAX_RUNNING_THREADS) {\n for (int j = 0; j < t; j++) {\n threads[j].join();\n }\n t = 0;\n }\n }\n\n // Wait for remaining threads.\n for (int j = 0; j < t; j++) {\n threads[j].join();\n }\n\n } finally {\n officeManager.stop();\n }\n }", "@Override\n\tprotected Object doInBackground() throws Exception {\n\t\tString cmd=\"ffmpeg -y -i \"+videoFile+ \" -vf \\\"drawtext=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf:text=\"+message+\":fontsize=15:fontcolor=black:x=10:y=450\\\" \" +outputFile;\n\t\tProcessBuilder builder= new ProcessBuilder(\"/bin/bash\",\"-c\", cmd);\n\t\tProcess process= builder.start();\n\t\tpublish();\n\t\tInputStream stdout = process.getInputStream();\n\t\tBufferedReader stdoutBuffered = new BufferedReader( new InputStreamReader(stdout));\n\t\t//Get input from the terminal output of ffmpeg, when no more output is print means the video is complete.\n\t\twhile (stdoutBuffered.readLine() != null) {\n\t\t}\n\t\tprocess.waitFor();\n\t\tprocess.destroy();\n\t\treturn null;\n\t}", "public ConverterImpl(CmdModes cmdModes, CoreProcessRunner coreProcess) {\n this.cmdModes = cmdModes;\n this.coreProcess = coreProcess;\n }", "public void actionPerformed( ActionEvent evt){\n\t\t\tthis.convert();\n\t\t}", "public void start() {\n\n }", "@Override public void start() {\n }", "@Override\r\n\tpublic void start() {\n\t\tsuper.start();\r\n\t\t\r\n\t}", "void run() throws IOException {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tString pathDir = savedFilePath.substring(0,lastSlash);\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\tString[] command = {\n\t\t\t\t\"cmd.exe\",\n\t\t\t\t\"/c\",\n\t\t\t\t\"cd\",\n\t\t\t\tpathDir,\n\t\t\t\t\"&\",\n\t\t\t\t\"Start\",\n\t\t\t\t\"cmd.exe\",\n\t\t\t\t\"/k\",\n\t\t\t\tjavaPath,\n\t\t\t\tfileName\n\t\t};\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\truntime.exec(command);\n\t}", "@Override\n\tprotected void start() {\n\t\tif (Cfg.DEBUG) {\n\t\t\tCheck.log(TAG + \" (actualStart)\");\n\t\t}\n\t\treadChatMessages();\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\r\n public void start() {\r\n }", "protected void start() throws IOException {\r\n\t\tif (smscListener == null) {\r\n\t\t\tSystem.out.print(\"Enter port number> \");\r\n\t\t\tint port = Integer.parseInt(keyboard.readLine());\r\n\t\t\tSystem.out.print(\"Starting listener... \");\r\n\t\t\tsmscListener = new SMSCListenerImpl(port, true);\r\n\t\t\tprocessors = new PDUProcessorGroup();\r\n\t\t\tmessageStore = new ShortMessageStore();\r\n\t\t\tdeliveryInfoSender = new DeliveryInfoSender();\r\n\t\t\tdeliveryInfoSender.start();\r\n\t\t\tusers = new Table(usersFileName);\r\n\t\t\tfactory = new SimulatorPDUProcessorFactory(processors, messageStore, deliveryInfoSender, users);\r\n\t\t\tfactory.setDisplayInfo(displayInfo);\r\n\t\t\tsmscListener.setPDUProcessorFactory(factory);\r\n\t\t\tsmscListener.start();\r\n\t\t\tSystem.out.println(\"started.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Listener is already running.\");\r\n\t\t}\r\n\t}", "public void run() {\n ui.printStartingMessage();\n boolean isExit = false;\n\n while (!isExit) {\n isExit = parser.determineCommand();\n }\n\n storage.saveToFile(taskList);\n }", "@Override\n\tpublic void start() {\n\t}", "@Override\n\tpublic void start() {\n\t}", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "public void start()\n {}", "@Override\n public void start() { }", "@Override\n\tpublic void start() {\n\n\t}", "public void startProcess() {\r\n\t\tprocess = true;\r\n\t}", "public void run() \n\t\t\t{\n\t\t\t\tUIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n\t\t\t\tJFileChooser fc = new JFileChooser();\n\t\t\t\t// Only allow the selection of files with an extension of .asm.\n\t\t\t\tfc.setFileFilter(new FileNameExtensionFilter(\"ASM files\", \"asm\"));\n\t\t\t\t// Uncomment the following to allow the selection of files and\n\t\t\t\t// directories. The default behavior is to allow only the selection\n\t\t\t\t// of files.\n\t\t\t\tfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n\t\t\t\tif (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)\n\t\t\t\t\tnew Assembler(fc.getSelectedFile().getPath());\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"No file selected; terminating.\");\n\t\t\t}", "public void start() throws IOException;", "public static void start() {\n enableIncomingMessages(true);\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "public void start()\n {\n uploadDataFromFile();\n menu.home();\n home();\n }", "private static void startWork()\n {{\n String ftnTxt= null;\n FileToFtnParser parser= new FileToFtnParser( arg_ir_filename );\n String hashes39= \"#######################################\";\n\n while( true ) {\n\t ftnTxt= parser.parseFtn();\n\t if ( ftnTxt == null ) { break; }\n\t if ( arg_verbosity > 1 ) {\n\t System.out.println ( hashes39+ hashes39 );\n\t System.out.println ( \"found function: <<EOF \" );\n\t System.out.println ( ftnTxt );\n\t System.out.println ( \"EOF\" );\n\t }\n\n\t FtnParts ftnParts= new FtnParts( ftnTxt );\n\n\t if ( arg_verbosity > 0 ) {\n System.out.println( \"---\" );\n\t System.out.println( \"function: \" );\n\t System.out.println( ftnParts.toString() );\n\t }\n\n\t TestGenerator generator= new TestGenerator( ftnParts, arg_numCalls );\n\t String outFilename= arg_outDirname+ File.separator+ \n\t ftnParts.getNameWithoutSigil()+ \".ll\";\n\t generator.generate( outFilename );\n }\n\n }}", "public void start() {\n initDb();\n try {\n VacancyLoader vl = new VacancyLoader(this.connection, this.vacancies);\n vl.start();\n parse(checkDate());\n } catch (IOException e) {\n LOG.error(e.getMessage());\n }\n }", "public void run() {\n\t\t\tJuego.reStart();\n\n\t\t}", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();" ]
[ "0.59943944", "0.5818235", "0.58021396", "0.5739499", "0.571392", "0.5682569", "0.56435996", "0.5616713", "0.5573079", "0.5550543", "0.5549871", "0.5549871", "0.5542274", "0.5540805", "0.55340207", "0.5531325", "0.55059016", "0.54665214", "0.54601985", "0.54456973", "0.5435676", "0.5426377", "0.5426377", "0.54131866", "0.5410831", "0.53910446", "0.53585804", "0.53571475", "0.53562206", "0.53268886", "0.5323707", "0.5297798", "0.52931404", "0.52781963", "0.52741903", "0.5257563", "0.52496547", "0.5241714", "0.52346414", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5233953", "0.5230688", "0.52224106", "0.5215193", "0.51816", "0.5180908", "0.51780367", "0.5167124", "0.51603067", "0.51582015", "0.51530594", "0.5151259", "0.5151259", "0.5151259", "0.5151259", "0.51507163", "0.5148148", "0.51444787", "0.51430416", "0.51430416", "0.5132023", "0.5131685", "0.5127141", "0.51265556", "0.5125314", "0.51239645", "0.51156086", "0.51153153", "0.51138484", "0.51138484", "0.51138484", "0.51138484", "0.51138484", "0.51138484", "0.51138484", "0.51116025", "0.5109445", "0.5108625", "0.5096062", "0.5094563", "0.5094563", "0.5094563", "0.5094563", "0.5094563", "0.5094563", "0.5094563", "0.5094563", "0.5094563", "0.5094563", "0.5094563", "0.5094563" ]
0.0
-1
Returns a list with only the elements present in the given iterable that are of the specified class.
private <T> List<T> filterList(Iterable<?> iterable, Class<T> clazz) { List<T> result = new ArrayList<>(); for (Object object : iterable) { if (clazz.isInstance(object)) { @SuppressWarnings("unchecked") // Checked using clazz.isInstance T tObject = (T) object; result.add(tObject); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T, S> Iterable<S> filterClass(Iterable<T> baseIterable, Class<S> targetClass) {\n final Class<S> finalTargetClass = targetClass;\n\n Iterable<S> classMatch = map(baseIterable, new MapFunction<T, S>() {\n @Override\n public S map(T obj) {\n if (finalTargetClass.isInstance(obj)) {\n @SuppressWarnings(\"unchecked\")\n S ignoreException = (S)obj;\n return ignoreException;\n }\n\n return null;\n }\n });\n\n return filter(classMatch, new FilterFunction<S>() {\n @Override\n public boolean keep(S obj) {\n return obj != null;\n }\n });\n }", "public static <T extends Cell> List<T> filterNeighbors(Iterable<Cell> neighbors, Class<T> cls) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tfor (Cell c : neighbors) {\n\t\t\tif (cls.isInstance(c)) {\n\t\t\t\tlist.add(cls.cast(c));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "Iterable<CtElement> asIterable();", "@SuppressWarnings(\"rawtypes\")\n public static Set<Class> getAllInterfacesForClassAsSet(Class clazz, ClassLoader classLoader) {\n Preconditions.checkNotNull(clazz, \"Class must not be null\");\n if (clazz.isInterface() && isVisible(clazz, classLoader)) {\n return Collections.singleton(clazz);\n }\n Set<Class> interfaces = new LinkedHashSet<>();\n Class sclazz = clazz;\n while (sclazz != null) {\n Class<?>[] ifcs = sclazz.getInterfaces();\n for (Class<?> ifc : ifcs) {\n interfaces.addAll(getAllInterfacesForClassAsSet(ifc, classLoader));\n }\n sclazz = clazz.getSuperclass();\n }\n return interfaces;\n }", "default <T extends IElement> List<T> findElements(By locator, Class<? extends IElement> clazz) {\n return findElements(locator, clazz, ElementsCount.MORE_THEN_ZERO);\n }", "public static Set<Class<?>> getAllInterfacesForClassAsSet(\n Class<?> clazz, @Nullable ClassLoader classLoader) {\n Assert.notNull(clazz, \"Class must not be null\");\n\n if (clazz.isInterface() && isVisible(clazz, classLoader)) {\n return Collections.singleton(clazz);\n }\n\n Set<Class<?>> interfaces = new LinkedHashSet<>();\n Class<?> currentClass = clazz;\n\n while (currentClass != null) {\n Class<?>[] interfaceArray = currentClass.getInterfaces();\n for (Class<?> cl : interfaceArray) {\n if (isVisible(cl, classLoader)) {\n interfaces.add(cl);\n }\n }\n currentClass = currentClass.getSuperclass();\n }\n\n return interfaces;\n }", "public abstract <T> List<T> list(List<Criteria> criterias, Class<T> aClass);", "@SuppressWarnings(\"unchecked\")\n private static <T> Stream<T> all(Class<T> type, Iterator<Object> i) {\n requireNonNull(type);\n requireNonNull(i);\n \n return all(i).filter(o -> type.isAssignableFrom(o.getClass()))\n .map(o -> (T) o);\n }", "<T extends IElement> List<T> findElements(By locator, Class<? extends IElement> clazz, ElementsCount count);", "public List findAll() {\n return findAll(ClassItem.class);\n }", "<K extends T> List<K> listAll(Class<K> clazz);", "public Collection getSuperclasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "<T> List<T> getAll(Class<T> clazz);", "public abstract <T> List<T> list(Class<T> aClass);", "@SuppressWarnings({ \"unchecked\"})\n\tpublic<T extends SubdocumentoIva<?, ?, ?>> List<T> getListaSubdocumentoIva(Class<T> classifClazz) {\n\t\t\n\t\tfinal List<T> result = new ArrayList<T>();\n\t\t\n\t\tfor (SDI c : listaSubdocumentoIva) {\n\t\t\tif(classifClazz.isInstance(c)){\n\t\t\t\tresult.add((T)c);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "public static <T> List<T> filterLanguageElement(Collection<SELanguageElement> languageElements,\n Class<T> targetClass) {\n return languageElements.parallelStream().filter(element -> targetClass.isInstance(element))\n .map(element -> targetClass.cast(element)).collect(Collectors.toList());\n }", "public static List m149887a(Class cls) {\n if (cls == null) {\n return null;\n }\n ArrayList arrayList = new ArrayList();\n while (cls != null) {\n Class[] interfaces = cls.getInterfaces();\n for (int i = 0; i < interfaces.length; i++) {\n if (!arrayList.contains(interfaces[i])) {\n arrayList.add(interfaces[i]);\n }\n for (Class cls2 : m149887a(interfaces[i])) {\n if (!arrayList.contains(cls2)) {\n arrayList.add(cls2);\n }\n }\n }\n cls = cls.getSuperclass();\n }\n return arrayList;\n }", "public Iterator<String> listIntersectionClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listIntersectionClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "public static Set<Class<?>> getClassSetFromAnnotation(Class clazz) {\n Set<Class<?>> classSet = new HashSet<>();\n for (Class<?> cls : CLASS_SET) {\n if (cls.isAnnotationPresent(clazz)) {\n classSet.add(cls);\n }\n }\n return classSet;\n }", "public Iterator<String> listAllClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "default <T extends SimpleInventory> List<T> getInventories(Class<T> clazz) {\n return this.getInventories().stream()\n .filter(inventory -> inventory.getClass().equals(clazz))\n .map(clazz::cast)\n .collect(Collectors.toList());\n }", "public Iterator<String> listAllandAnonClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses());\r\n\t}", "List<T> findAll(Class<T> clazz, int first, int count);", "public Iterator<String> listComplementClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listComplementClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "@Override\n public <T> Iterator<Entry<T>> typedIterator(Class<T> clazz) {\n List<Entry<T>> entries = new ArrayList();\n for (Iterator<Entry> it = this.iterator(); it.hasNext(); ) {\n final Entry e = it.next();\n if (e.getKey().valueType.equals(clazz)) {\n entries.add(e);\n }\n }\n return entries.iterator();\n }", "private List<IClass> getChildren(IClass cls) {\n\t\tList<IClass> subclasses = new ArrayList<IClass>();\n\t\tCollections.addAll(subclasses, cls.getDirectSubClasses());\n\t\treturn subclasses;\n\t}", "public Iterator<String> listSubClasses(String ontClass, boolean direct)\r\n\t{\r\n\t\ttry{\r\n\t\t\tOntClass ontC = obtainOntClass(ontClass);\r\n\t\t\treturn new ToStringIterator<String>(ontC.listSubClasses(direct));\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\treturn new ArrayList<String>().iterator();\r\n\t\t}\r\n\t}", "private ArrayList findAllSubclasses(List listSuperClasses,\r\n\t\t\tList listAllClasses) {\r\n\t\treturn findAllSubclasses(listSuperClasses, listAllClasses, false);\r\n\t}", "@NotNull\n List<? extends ClassInfo> getClasses();", "public <A,B> List<B> mapList(Iterable<A> iterable, Class<B> b) {\n\t\n\t\tif (iterable == null) {\n\t\t\treturn null;\n\t\t\t\n\t\t}\n\t\t\t\n\t\treturn StreamUtils.stream(iterable).map(item -> map(item, b)).collect(Collectors.toList());\n\t}", "public Collection getEquivalentClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "Iterable<? extends XomNode> elements();", "public Iterator<String> listInstances(String ontClass)\r\n\t{\r\n\t\tOntClass ontC = obtainOntClass(ontClass);\r\n\t\treturn new ToStringIterator<String>(ontC.listInstances());\r\n\t}", "@Override\r\n\tpublic List<Classified> getAllClassified() {\n\t\treturn null;\r\n\t}", "public static Set findAllImplementedInterfaces(Class clazz) {\n Set s = new HashSet();\n Class[] interfaces = clazz.getInterfaces();\n for (int i = 0; i < interfaces.length; i++) {\n s.add(interfaces[i]);\n }\n Class superclass = clazz.getSuperclass();\n if (superclass != null) {\n s.addAll(findAllImplementedInterfaces(superclass));\n }\n return s;\n }", "public static Set<Class<?>> getAllInterfacesForClassAsSet(Class<?> clazz) {\n return getAllInterfacesForClassAsSet(clazz, null);\n }", "protected List findAll(Class clazz) {\r\n\r\n try {\r\n Query q = entityManager.createNamedQuery(clazz.getSimpleName() + \".findAll\");\r\n return q.getResultList();\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }", "Iterable<T> list();", "public List<String> getSubClasses(String className, boolean direct) {\n IRI clsIRI = IRI.create(ontologyNamespace + className);\n System.out.println(\"Searching for IRI: \" + clsIRI);\n if (!ontology.containsClassInSignature(clsIRI)) {\n \tSystem.out.println(\"Tag is not present in ontology:\" + className);\n \treturn Collections.EMPTY_LIST;\n }\n // Létrehozzuk az osztály egy példányát és lekérdezzük a leszármazottait.\n OWLClass cls = factory.getOWLClass(clsIRI);\n NodeSet<OWLClass> subClss;\n\t\ttry {\n\t\t\tsubClss = reasoner.getSubClasses(cls, direct);\n\t\t} catch (OWLReasonerRuntimeException e) {\n\t\t\tSystem.err.println(\"Hiba az alosztályok következtetése közben: \" + e.getMessage());\n\t\t\treturn Collections.EMPTY_LIST;\n\t\t}\n List<String> result = new ArrayList<>();\n for(OWLClass i : subClss.getFlattened()) {\n \tif(!i.isBuiltIn())\n \t\tresult.add(i.getIRI().getFragment());\n }\n return result;\n }", "private List<ClassEntity> excludeInners(List<ClassEntity> list) {\n List<ClassEntity> result = new ArrayList<>();\n for (ClassEntity classEntity :\n list) {\n CompilationUnit cu = classEntity.getCu();\n int i = 0;\n for (Node node :\n cu.getTypes().get(0).getChildrenNodes()) {\n if (node instanceof ClassOrInterfaceDeclaration) {\n i++;\n }\n }\n if (i == 0) {\n result.add(classEntity);\n }\n }\n return result;\n }", "@NotNull\n List<? extends ClassInfo> getAllClasses();", "private static Class<?>[] getAllInterfacesForClass(\n Class<?> clazz, @Nullable ClassLoader classLoader) {\n return toClassArray(getAllInterfacesForClassAsSet(clazz, classLoader));\n }", "public Collection getSuperclassesOfIntersection(OWLClass[] clses, ReasonerTaskListener taskListener) throws DIGReasonerException;", "public static ArrayList<Class> getClassesFromInstructor(Instructor i)\n\t{\n\t\tint instructorId = i.getUserId();\n\t\tString sql = \"SELECT c.* FROM UserInfo i, Class c WHERE c.instructorID = ? AND i.userID = ?\";\n\t\tArrayList<Class> classes = new ArrayList<Class>();\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setInt(1, instructorId);\n\t\t\tps.setInt(2, instructorId);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tString name = rs.getString(\"classname\");\n\t\t\t\tString classcode = rs.getString(\"classcode\");\n\t\t\t\tClass c = new Class(i, name, classcode);\n\t\t\t\tclasses.add(c);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn classes;\n\t}", "public List<Class<?>> getSubClasses(Class<?> aClass) {\n\t\treturn ModelClasses.getAllSubClasses(aClass);\n\t}", "@CheckReturnValue\n static Set<Class<? extends Message>> inspect(Class<?> cls, Predicate<Method> predicate) {\n final ImmutableSet.Builder<Class<? extends Message>> builder = ImmutableSet.builder();\n\n for (Method method : cls.getDeclaredMethods()) {\n final boolean methodMatches = predicate.apply(method);\n if (methodMatches) {\n final Class<? extends Message> firstParamType = getFirstParamType(method);\n builder.add(firstParamType);\n }\n }\n\n return builder.build();\n }", "public static Set<Restriction> listRestrictions(OntClass clazz)\n\t{\n\t\tRestrictionCollector collector = new RestrictionCollector();\n\t\tnew VisitingDecomposer(collector).decompose(clazz);\n\t\treturn collector.getRestrictions();\n\t}", "public List<Class<?>> getKnownClasses();", "public List<Class<?>> getSuperClasses(Class<?> aClass) {\n\t\treturn ModelClasses.getAllSuperClasses(aClass);\n\t}", "public Iterator<String> listSuperClasses(String ontClass, boolean direct)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tOntClass ontC = obtainOntClass(ontClass);\r\n\t\t\treturn new ToStringIterator<String>(ontC.listSuperClasses(direct));\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\treturn new ArrayList<String>().iterator();\r\n\t\t}\r\n\t}", "public abstract List<String> scanAllClassNames();", "Class<?>[] getHandledClasses();", "Iterable<T> findAll();", "public static Class<?>[] getAllInterfacesForClass(Class<?> clazz, ClassLoader classLoader) {\n Set<Class> ifcs = getAllInterfacesForClassAsSet(clazz, classLoader);\n return ifcs.toArray(new Class[ifcs.size()]);\n }", "@NotNull\n List<PriorityClass> getAllPriorityClasses();", "private ArrayList findAllSubclasses(List listSuperClasses,\r\n\t\t\tList listAllClasses, boolean innerClasses) {\r\n\t\tIterator iterClasses = null;\r\n\t\tArrayList listSubClasses = null;\r\n\t\tString strClassName = null;\r\n\t\tClass tempClass = null;\r\n\t\tlistSubClasses = new ArrayList();\r\n\t\titerClasses = listSuperClasses.iterator();\r\n\t\twhile (iterClasses.hasNext()) {\r\n\t\t\tstrClassName = (String) iterClasses.next();\r\n\t\t\t// only check classes if they are not inner classes\r\n\t\t\t// or we intend to check for inner classes\r\n\t\t\tif ((strClassName.indexOf(\"$\") == -1) || innerClasses) {\r\n\t\t\t\t// might throw an exception, assume this is ignorable\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttempClass = Class.forName(strClassName, false, Thread\r\n\t\t\t\t\t\t\t.currentThread().getContextClassLoader());\r\n\t\t\t\t\tfindAllSubclassesOneClass(tempClass, listAllClasses,\r\n\t\t\t\t\t\t\tlistSubClasses, innerClasses);\r\n\t\t\t\t\t// call by reference - recursive\r\n\t\t\t\t} catch (Throwable ignored) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn listSubClasses;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public static <T> List<T> getAnnotations(final Class c, final Class<T> annotation) {\n final List<T> found = new ArrayList<T>();\n\n if (c.isAnnotationPresent(annotation)) {\n found.add((T) c.getAnnotation(annotation));\n }\n\n Class parent = c.getSuperclass();\n while ((parent != null) && (parent != Object.class)) {\n if (parent.isAnnotationPresent(annotation)) {\n found.add((T) parent.getAnnotation(annotation));\n }\n\n // ...and interfaces that the superclass implements\n for (final Class interfaceClass : parent.getInterfaces()) {\n if (interfaceClass.isAnnotationPresent(annotation)) {\n found.add((T) interfaceClass.getAnnotation(annotation));\n }\n }\n\n parent = parent.getSuperclass();\n }\n\n // ...and all implemented interfaces\n for (final Class interfaceClass : c.getInterfaces()) {\n if (interfaceClass.isAnnotationPresent(annotation)) {\n found.add((T) interfaceClass.getAnnotation(annotation));\n }\n }\n // no annotation found, use the defaults\n return found;\n }", "<E extends CtElement> List<E> getElements(Filter<E> filter);", "public Iterator<String> listDeclaredInstances(String ontClass)\r\n\t{\r\n\t\tArrayList<String> list = new ArrayList<String>();\r\n\t\tOntClass ontC = obtainOntClass(ontClass);\r\n\t\tStmtIterator si = ONT_MODEL.getRawModel().listStatements(null, RDF.type, ontC);\r\n\t\twhile(si.hasNext())\r\n\t\t{\r\n\t\t\tStatement st = si.nextStatement();\r\n\t\t\tlist.add(st.getSubject().toString());\r\n\t\t}\r\n\t\treturn list.iterator();\r\n\t}", "private void findAllSubclassesOneClass(Class theClass,\r\n\t\t\tList listAllClasses, List listSubClasses) {\r\n\t\tfindAllSubclassesOneClass(theClass, listAllClasses, listSubClasses,\r\n\t\t\t\tfalse);\r\n\t}", "public List<? extends BaseClassInfo> getClasses(HasMetricsFilter filter) {\n if (classLookup == null) {\n buildClassLookupMap();\n }\n List<BaseClassInfo> result = newArrayList();\n for (BaseClassInfo classInfo : classLookup.values()) {\n if (filter.accept(classInfo)) {\n result.add(classInfo);\n }\n }\n return result;\n }", "public static <T> List<T> instantiateAll(String[] classes, ClassLoader classLoader) {\n List<T> clazzes = new ArrayList<>();\n for (String clazz : classes) {\n if (StringUtils.hasLength(clazz)) {\n clazzes.add(ClassUtils.<T>instantiate(clazz, classLoader));\n }\n }\n return clazzes;\n }", "public static List<Critter> getInstances(String critter_class_name)\r\n throws InvalidCritterException {\r\n \t\r\n \t//get the class name of the critter\r\n \tString n = myPackage + \".\" + critter_class_name;\r\n \t\r\n \tList<Critter> critts = new ArrayList<Critter>();\r\n \tIterator<String> populationIter = population.keySet().iterator();\r\n\t\twhile (populationIter.hasNext()) { \r\n\t String position = populationIter.next();\r\n\t ArrayList<Critter> critterList = population.get(position);\r\n\t \r\n\t //get the instances of all critters that match the class name\r\n\t for(int j = 0; j < critterList.size(); j++) {\r\n\t \tCritter c = critterList.get(j);\r\n\t \tif(c.getClass().getName().equals(n)){\r\n\t \t\tcritts.add(c);\r\n\t \t}\r\n\t }\r\n\t\t}\r\n return critts;\r\n }", "public Set<Class<?>> getAllInterfaces(Class<?> clazz) {\n\t\tSet<Class<?>> result = new HashSet<Class<?>>();\n\t\tgetAllInterfaces(result, clazz);\n\t\treturn result;\n\t}", "public Iterable<HTMLElement> elements() {\n return iterable;\n }", "public List<Class<?>> getAllSuperTypes(Class<?> aClass) {\n\t\tList<Class<?>> result = new ArrayList<Class<?>>();\n\n\t\tthis.getAllSuperTypes(aClass, result);\n\t\tthis.getAllInterfaces(aClass, result);\n\n\t\treturn result;\n\t}", "public Collection getExtent(Class cls)\n{\n\tVector extent = new Vector();\n\t\n\tIterator i = objects.iterator();\n\t\n\twhile ( i.hasNext() )\n\t{\n\t\tObject o = i.next();\n\t\t\n\t\tif ( o.getClass().equals(cls) )\n\t\t\textent.add(o);\n\t}\n\t\n\treturn extent;\n}", "private Set<String> classSet(String whichClass) {\n return subclasses.get(whichClass);\n }", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepository.findAll();\n\t}", "default List<Player> getViewers(Class<? extends SimpleInventory> clazz) {\n return this.getViewers().stream()\n .filter(viewer -> this.getOpenedInventory(viewer).getClass().equals(clazz))\n .collect(Collectors.toList());\n }", "public Collection getSubclasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "public Iterator<String> listEnumeratedClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listEnumeratedClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "@objid (\"2c133f02-d778-4c15-874c-c08e507222c0\")\n <T extends Event> List<T> getEOccurence(java.lang.Class<T> filterClass);", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "public static Set<Class<?>> getInterfaceClosure(Class<?> clazz) {\n Set<Class<?>> result = new HashSet<>();\n for (Class<?> classToDiscover = clazz; classToDiscover != null; classToDiscover = classToDiscover.getSuperclass()) {\n addInterfaces(classToDiscover, result);\n }\n return result;\n }", "public static List<Critter> getInstances(String critter_class_name) throws InvalidCritterException {\n\t\tList<Critter> result = new java.util.ArrayList<Critter>();\n\t\tClass<?> crit = null;\n\t\ttry{\n\t\t\tcrit=Class.forName(critter_class_name);\n\t\t}\n\t\tcatch (ClassNotFoundException e){\n\t\t\tthrow new InvalidCritterException(critter_class_name);\n\t\t}\n\t\tfor(Critter i: population){\n\t\t\tif(crit.isInstance(i)){\n\t\t\t\tresult.add(i);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public <T> List<T> findAll(Class<T> entityClass);", "@NotNull\r\n default List<Object> getMatchingElements(@NotNull Condition c) {\r\n return new ArrayList<>();\r\n }", "@Override\n\tpublic List<?> forFilterList(Class<?> clazz) {\n\t\treturn null;\n\t}", "public RTTIClass select(ClassFilter filter);", "<T extends Component> Collection<T> getAllComponents(Class<T> type);", "public static List<Critter> getInstances(String critter_class_name)\n throws InvalidCritterException {\n // TODO: Complete this method\n // TODO: Complete this method\n List<Critter> crits = new ArrayList<>();\n Class<?> goalCritClass;\n try {\n goalCritClass = Class.forName(myPackage+\".\"+critter_class_name);\n } catch (ClassNotFoundException e) {\n throw new InvalidCritterException(critter_class_name);\n }\n\n for(Critter crit: population) {\n if(goalCritClass.isInstance(crit)) {\n crits.add(crit);\n }\n }\n return crits;\n }", "public ArrayList<OWLClass> getClasses(OWLOntology ontology){\n\t\t\n\t\tArrayList<OWLClass> classes = new ArrayList<OWLClass>();\n\t\tfor (OWLClass cls : ontology.getClassesInSignature())\n\t\t\tclasses.add(cls);\n\t\treturn classes;\n\t}", "public Collection getDescendantClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "@Override\n\tpublic List<Classes> findAllClasses() {\n\t\tString sql = \"select * from classes\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tList<Classes> classesList = (List<Classes>) querys.getResultList();\n\t\treturn classesList;\n\t}", "public List<Class<?>> getAnnotatedMatches(Class<? extends Annotation> annotation)\n\t{\n\t\treturn getAnnotatedMatches(annotation, false);\n\t}", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepo.findAll();\n\t}", "<T extends IElement> List<T> findElements(By locator, IElementSupplier<T> supplier, ElementsCount count);", "public static List<Critter> getInstances(String critter_class_name) throws InvalidCritterException {\n\t\tList<Critter> result = new java.util.ArrayList<Critter>();\n\t\tCritter critter;\n\t//Get the correct critter class and throw exception if the class doesn't exist\n\t\ttry {\n\t\t\tClass<?> critter_class = Class.forName(myPackage + \".\" + critter_class_name);\n\t\t\tcritter = (Critter) critter_class.newInstance();\n\t\t}\n\t\tcatch (ClassNotFoundException e1){\n\t\t\tthrow new InvalidCritterException(critter_class_name);\n\t\t}\n\t\tcatch (IllegalAccessException e2) {\t\t//Class.newInstance() exception\n\t\t\tthrow new InvalidCritterException(critter_class_name);\n\t\t}\n\t\tcatch (InstantiationException e3) { \t//Class.newInstance() exception\n\t\t\tthrow new InvalidCritterException(critter_class_name);\n\t\t}\n\t//Make the list of critters of type critter_class_name\n\t\tfor (Critter c: population) {\n\t\t\tif (c.getClass() == critter.getClass()) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private void findAllSubclassesOneClass(Class theClass,\r\n\t\t\tList listAllClasses, List listSubClasses, boolean innerClasses) {\r\n\t\tIterator iterClasses = null;\r\n\t\tString strClassName = null;\r\n\t\tString strSuperClassName = null;\r\n\t\tClass c = null;\r\n\t\tClass cParent = null;\r\n\t\tboolean bIsSubclass = false;\r\n\t\tstrSuperClassName = theClass.getName();\r\n\t\titerClasses = listAllClasses.iterator();\r\n\t\twhile (iterClasses.hasNext()) {\r\n\t\t\tstrClassName = (String) iterClasses.next();\r\n\t\t\t// only check classes if they are not inner classes\r\n\t\t\t// or we intend to check for inner classes\r\n\t\t\tif ((strClassName.indexOf(\"$\") == -1) || innerClasses) {\r\n\t\t\t\t// might throw an exception, assume this is ignorable\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Class.forName() doesn't like nulls\r\n\t\t\t\t\tif (strClassName == null)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\tif (strClassName.endsWith(\".groovy\")) {\r\n\t\t\t\t\t\tGroovyClassLoader loader = new GroovyClassLoader(Thread.currentThread()\r\n\t\t\t\t\t\t\t\t.getContextClassLoader());\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tc = loader.parseClass(loader.getResourceAsStream(strClassName));\r\n\t\t\t\t\t\t} catch (Throwable e) {\r\n\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tFile gFile = new File(strClassName);\r\n\t\t\t\t\t\t\t\tc = loader.parseClass(new FileInputStream(gFile));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(Throwable e1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"file load failed: \" + e1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tc = Class.forName(strClassName, false, Thread\r\n\t\t\t\t\t\t\t\t.currentThread().getContextClassLoader());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!c.isInterface()\r\n\t\t\t\t\t\t\t&& !Modifier.isAbstract(c.getModifiers())) {\r\n\t\t\t\t\t\tbIsSubclass = theClass.isAssignableFrom(c);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbIsSubclass = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bIsSubclass) {\r\n\t\t\t\t\t\tlistSubClasses.add(c);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Throwable ignored) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<IclassItem> getClasses() {\n if(projectData!=null){\n return projectData.getClasses();\n }\n return new ArrayList<IclassItem>();\n }", "public Collection getAllAuxClasss();", "public Collection getAncestorClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "public <T extends BusinessObject> Collection<T> findAll(Class<T> clazz) {\r\n return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(QueryFactory.newQuery(clazz, (Criteria) null));\r\n }", "public static <T> Set<T> createSet(Iterable<T> iterable) {\n\t\tSet<T> set = new HashSet<T>();\n\t\tfor (T entry : iterable)\n\t\t\tset.add(entry);\n\t\treturn set;\n\t}", "<T> IList<T> getObjects(Class<T> type);", "List<Clazz> selectByExample(ClazzExample example);", "public abstract List<T> all();", "public static Set<Restriction> listRestrictions(OntClass clazz, OntClass relativeTo)\n\t{\n\t\tSet<Restriction> base = listRestrictions(relativeTo);\n\t\tSet<Restriction> restrictions = listRestrictions(clazz);\n\t\trestrictions.removeAll(base);\n\t\treturn restrictions;\n\t}" ]
[ "0.6874775", "0.6217368", "0.58245146", "0.5715887", "0.565294", "0.5602935", "0.55634075", "0.55537236", "0.5552537", "0.55506504", "0.550381", "0.5495261", "0.54925054", "0.5487315", "0.54543483", "0.54515386", "0.54513544", "0.54294765", "0.54047126", "0.5387634", "0.53622127", "0.5360789", "0.5357507", "0.5329862", "0.53244716", "0.5255541", "0.52288735", "0.5213293", "0.5203708", "0.51800793", "0.51767695", "0.51421624", "0.51305073", "0.51248986", "0.51205885", "0.51182216", "0.51068807", "0.5104486", "0.5100121", "0.50970054", "0.5094452", "0.5069879", "0.50666225", "0.50648737", "0.50578547", "0.50523275", "0.5033853", "0.50299674", "0.5021331", "0.50189734", "0.5018712", "0.5018658", "0.501764", "0.5017611", "0.50149965", "0.5010649", "0.5009768", "0.5005713", "0.5003661", "0.500255", "0.50016475", "0.49995524", "0.49937284", "0.4984544", "0.49844497", "0.497403", "0.49728835", "0.49616608", "0.49598286", "0.49595904", "0.49571344", "0.49529824", "0.49484792", "0.49326277", "0.49301684", "0.49185327", "0.49056527", "0.4892158", "0.48897493", "0.48712236", "0.4858804", "0.48554912", "0.4850775", "0.48488596", "0.48467705", "0.4846455", "0.48425564", "0.4838119", "0.4826375", "0.48233625", "0.48160395", "0.481465", "0.4812295", "0.48090976", "0.48042", "0.4797096", "0.47756574", "0.47754794", "0.476407", "0.47544575" ]
0.7696657
0
Gets the sum of the units that each converter needs to convert.
private int getUnitsToConvert() throws IOException { int sum = 0; for (Converter converter : converters) { sum += converter.getUnitsToConvert(); } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTotalUnits() {\n double totalUnits = 0;\n for (int i = 0; i < quarters.size(); i++) {\n totalUnits += quarters.get(i).getTotalUnits();\n }\n return totalUnits;\n }", "public double getTotalUnits() {\n int total = 0;\n for(int i = 0; i < courses.size(); i++) {\n // don't count if units are null? idk how defensive I need to be (I choose not to check, units should never be null)\n // TODO: test with System.out\n Course course = courses.get(i);\n //if(!course.getUnits().equals(null))\n total += course.getUnits();\n }\n return total;\n }", "String getUnits();", "String getUnits();", "String getUnits();", "Units getUnits();", "public int getUnits() {\r\n\r\n\t\treturn this.units;\r\n\t}", "public String getUnits() {\n return this.units;\n }", "private int getUnitListValue() {\r\n\t\tint value = 0;\r\n\t\tfor (Unit unit : this.unitList) {\r\n\t\t\tvalue += unit.getValue();\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public int getUnits() {\r\n return units;\r\n }", "public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public int getUnits()\n {\n return m_cUnits;\n }", "public int getUnits()\n {\n return m_cCurUnits;\n }", "public String getUnits() {\n return units;\n }", "protected String getUnits()\n {\n return units;\n }", "public String getUnits() {\n return units;\n }", "public String getUnits() {\r\n\t\treturn units;\r\n\t}", "public int getUnits() {\n\t\treturn units;\n\t}", "public FioUnit getUnits() {\n\t\treturn this.units;\n\t}", "public String getUnits() {\n\t\treturn units;\n\t}", "final Unit getUnits() {\n Unit units = null;\n for ( int i = getDimension(); --i >= 0; ) {\n final Unit check = getUnits( i );\n if ( units == null )\n units = check;\n else if ( !units.equals( check ) )\n return null;\n }\n return units;\n }", "public java.lang.String getUnits() {\r\n return localUnits;\r\n }", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "public ArrayList getUnits();", "public int sumCalories() {\n int calories = 0;\n\n for (Food f : units) {\n calories += f.getCalories();\n }\n\n return calories;\n }", "String getUnitsString();", "public byte getUnits() { return units; }", "public double calcTotalCaloriesBurned() {\n double sum = 0.0;\n for (ExerciseModel exercise : exercises) {\n sum += exercise.getCalories();\n }\n\n return sum;\n }", "public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }", "public int getSourceUnits() {\n return sourceUnits;\n }", "public String getSourceUnits() {\n return this.sourceUnits;\n }", "public int getBonusUnits() {\r\n return bonusUnits;\r\n }", "public String getUnitsString() {\n return units;\n }", "public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "double getSum();", "double getSum();", "public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}", "public String getSum();", "public int calculateUnits(Object oKey, Object oValue);", "public Quantity<Q> getSum(Unit<Q> unit) {\n return sum.to(unit);\n }", "public double unitsToCounts(double units) {\n return units * encoderCountsPerUnit;\n }", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "public int getSum() {\n int result = 0;\n\n for (Map.Entry<Integer, Integer> entry : this.entrySet()) {\n result += entry.getKey() * entry.getValue();\n }\n\n return result;\n }", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "public String getDestinUnits() {\n return this.destinUnits;\n }", "public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "public int sumEquipmentWeight(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getWeight();\n }\n return sum;\n }", "int getRadiusUnitsValue();", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public Integer calculateSum() {\n logger.debug(\"Calculating and returning the sum of expenses.\");\n return listOfTargets.stream().map(T::getAmount).reduce(0, Integer::sum);\n }", "private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }", "public String getCalculatedDititsSum() {\n return driver.findElement(digitSumLocator).getAttribute(\"value\");\n }", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public int changeUnits(int additionalUnits){\n if (units + additionalUnits < 1){\n return 0;\n }\n else {\n units += additionalUnits;\n return units;\n }\n }", "public long getSum()\n {\n long sum = 0;\n\n for(int i = 0; i < integerList.length; i++)\n {\n sum = sum + integerList[i];\n }\n\n return sum;\n }", "private int getNumberOfMachineUnits() {\r\n\t\tint machineUnitsCount = 0;\r\n\r\n\t\tfor (UnitType unitType : RepairableUnitTypes) {\r\n\t\t\tmachineUnitsCount += this.informationStorage.getCurrentGameInformation().getCurrentUnitCounts()\r\n\t\t\t\t\t.getOrDefault(unitType, 0);\r\n\t\t}\r\n\t\treturn machineUnitsCount;\r\n\t}", "public double getUnitsPerPercent()\n {\n return unitsPerPercent;\n }", "private void getSum() {\n double sum = 0;\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n sum = sum + parseDouble(remindersTable.getValueAt(i, 3).toString());\n }\n String rounded = String.format(\"%.2f\", sum);\n ledgerTxtField.setText(rounded);\n }", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tprotected long getUpdatedUnits(long units) {\n\t\treturn units;\n\t}", "public static Object[] getUnits()\n\t{\n\t\treturn new Object[]\n\t\t{\n\t\t\t// SI units\n\t\t\t\"millimeters\",\n\t\t\t\"centimeters\",\n\t\t\t\"meters\",\n\t\t\t\"kilometers\",\n\t\t\t\n\t\t\t// English units\n\t\t\t\"inches\",\n\t\t\t\"feet\",\n\t\t\t\"yards\",\n\t\t\t\"miles\",\n\t\t\t\"knots\"\n\t\t};\n\t}", "public double getTotalNumCpus () { return n.getResources(RESOURCETYPE_CPU).stream().mapToDouble(r->r.getCapacity()).sum (); }", "public double sum()\r\n {\r\n double sum = 0.0;\r\n for (Double c : this.values())\r\n sum += c;\r\n\r\n return sum;\r\n }", "protected int calculateUnits(Object oValue)\n {\n OldOldCache map = OldOldCache.this;\n Object oKey = getKey();\n switch (map.getUnitCalculatorType())\n {\n case UNIT_CALCULATOR_BINARY:\n return BinaryMemoryCalculator.INSTANCE.calculateUnits(oKey, oValue);\n\n case UNIT_CALCULATOR_EXTERNAL:\n return map.getUnitCalculator().calculateUnits(oKey, oValue);\n\n case UNIT_CALCULATOR_FIXED:\n default:\n return 1;\n }\n }", "public double totalQuantity() {\r\n\t\tdouble t = 0;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) t += quantity[i][j][k];\r\n\t\treturn t;\r\n\t}", "public List<InputTermUnit<V>> getUnits() {\n\t\treturn this.units;\n\t}", "public double getMass() { return modules.values().stream().mapToDouble(Module::getMass).sum(); }", "public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "@JSProperty(\"units\")\n @Nullable\n Array<Array<Unknown>> getUnits();", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "public final ArrayList<Units> GetUnitsForCurrentType()\n {\n return MethodsUnitP.GetUnitsTypeCommon(UnitType);\n }", "@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}", "public float getInputsValue() {\n\t\tfloat total = 0;\n\t\tfor (TransactionInput i : inputs) {\n\t\t\tif (i.getUTXO() == null)\n\t\t\t\tcontinue; // if Transaction can't be found skip it\n\t\t\ttotal += i.getUTXO().getValue();\n\t\t}\n\t\treturn total;\n\t}", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "double getTotal();", "@Override\n public float getArea() {\n int wart = 0;\n if (!roomList.isEmpty()){\n for (Room room : roomList){\n if (room instanceof Localization){\n wart += room.getArea();\n }\n }\n\n }\n return wart;\n }", "public int getPowerMeterSum() {\r\n return powerMeterSum;\r\n }", "public float getInputsValue() {\n\n float total = 0;\n for (TransactionInput i : inputs) {\n // If the transaction can't be found, skip it.\n if (i.UTXO == null) continue;\n total += i.UTXO.value;\n }\n return total;\n }", "public int getArmyUnitsFromCountries() {\n int numberOfUnits;\n int numberOfCountries = this.playerModel.getCountries().size();\n if (numberOfCountries < 11) {\n numberOfUnits = 3;\n } else {\n numberOfUnits = Math.floorDiv(numberOfCountries, 3);\n }\n if(!tournamentModeFlag){\n gameModel.updateMainPanel();\n }\n return numberOfUnits;\n }", "public String getToUnit() {\r\n return this.toUnit;\r\n }", "@Override\n\tpublic double sumMoney() {\n\t\treturn ob.sumMoney();\n\t}", "@Override\n public float getCube() {\n\n int wart = 0;\n if (!roomList.isEmpty()){\n for (Room room : roomList){\n if (room instanceof Localization){\n wart += room.getCube();\n }\n }\n }\n return wart;\n }", "public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\n\t\t\r\n\t\treturn duracionTotal;\r\n\r\n\t}", "@Override\n public double getTotal() {\n return total;\n }", "public java.lang.Double getTotal () {\r\n\t\treturn total;\r\n\t}", "public int sumEquipmentPrice(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getPrice();\n }\n return sum;\n }", "public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\ttotal += comp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "public String getSum() {\n return sum;\n }", "private int calculateInputStock_Items() {\n\t\tint total = 0;\n\t\tArrayList<Integer> stock = getAllStockValues();\n\t\tif (!stock.isEmpty()) {\n\t\t\t// get for all K\n\t\t\ttotal += (stock.get(0) * getSetUpMachine().getVending_item().get(\"K\"));\n\t\t\t// get for all S\n\t\t\ttotal += (stock.get(1) * getSetUpMachine().getVending_item().get(\"S\"));\n\t\t\t// get for all F\n\t\t\ttotal += (stock.get(2) * getSetUpMachine().getVending_item().get(\"F\"));\n\t\t\t// get for all N\n\t\t\ttotal += (stock.get(3) * getSetUpMachine().getVending_item().get(\"N\"));\n\t\t}\n\t\treturn total;\n\t}", "long getConsumedWorkUnits();", "Sum getMultiplier();", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "public Double getTotal();", "public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "public static float getTotal() {\n return total;\r\n }", "public void calculate()\n\t{\n\t\tString sourceUnitType = (String)this.sourceUnit.getChoice(this.sourceUnit.getSelectedIndex());\n\t\tString destUnitType = (String)this.destUnit.getChoice(this.destUnit.getSelectedIndex());\n\t\t\n\t\tdouble sourceUnitMultiplier = LengthUnits.getMultiplier(sourceUnitType);\n\t\tdouble destUnitMultiplier = LengthUnits.getMultiplier(destUnitType);\n\t\t\n\t\tdouble units = Integer.parseInt(this.input.getText());\n\t\t\n\t\tthis.outputLabel.setText(String.valueOf((units * (1 / sourceUnitMultiplier)) * destUnitMultiplier));\n\t}", "public double sum() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n resultat += CalculatorArray.sum(tab.get(i));\n }\n System.out.println(\"Sum colonne:\" + resultat);\n return resultat;\n }", "public double getSUM() {\n return sum;\n }" ]
[ "0.6853892", "0.67568094", "0.6451048", "0.6451048", "0.6451048", "0.6380571", "0.6357983", "0.63276106", "0.63222784", "0.62912714", "0.62509394", "0.61642545", "0.61636496", "0.61591524", "0.61227214", "0.6112245", "0.60989064", "0.60949194", "0.60527766", "0.60435617", "0.5974067", "0.5972213", "0.59583515", "0.5939792", "0.59235334", "0.5896991", "0.5888661", "0.58754677", "0.5866749", "0.585037", "0.58038497", "0.5792617", "0.57897866", "0.5726807", "0.57220507", "0.57220507", "0.5718289", "0.56995857", "0.5671289", "0.567116", "0.565351", "0.5629556", "0.5612864", "0.5603309", "0.5593917", "0.5573339", "0.5557374", "0.5554027", "0.55415386", "0.5533386", "0.5511189", "0.5507285", "0.55021715", "0.5494837", "0.5491877", "0.5481951", "0.54811835", "0.5480818", "0.5480166", "0.5464595", "0.54640853", "0.54629785", "0.54573077", "0.545007", "0.5444825", "0.5438171", "0.54367393", "0.54316705", "0.5430992", "0.5423069", "0.5421725", "0.5410111", "0.5408788", "0.5384985", "0.5383371", "0.53771675", "0.5370827", "0.536627", "0.5355584", "0.53532153", "0.53482336", "0.53462565", "0.5339513", "0.53315973", "0.53279865", "0.5320325", "0.53137714", "0.5304466", "0.53043234", "0.53004277", "0.53001845", "0.529928", "0.52945596", "0.5275522", "0.52742124", "0.52741617", "0.52741134", "0.5260536", "0.5257089", "0.5256748" ]
0.82413644
0
Action for 'NO' Button
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getRight();\n\n\t\t\t\t// if current is not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\t// Call the function that creates an option panel\n\t\t\t\t\toptionPane();\n\n\t\t\t\t\t// Save changes user made\n\t\t\t\t\tCommutativeExpressionWriter.writeCommutativeExpr(\n\t\t\t\t\t\t\tcontroller.tree, \"food.xml\");\n\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add No button to right\n\t\tsouth.add(no, BorderLayout.EAST);\n\t\tvalidate();\n\t}", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "public void onNo();", "public Button getNo() {\n return no;\n }", "public void handleNoConfirmButtonAction(ActionEvent event) {\n confirmPane.setVisible(false);\n maskPane.setVisible(false);\n }", "protected boolean hasNegativeButton() {\n return false;\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "void btnCancel();", "@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "protected boolean hasPositiveButton() {\n return false;\n }", "@Override\n\tpublic void onNoButtonForTwoButtonDialogClickedX() {\n\t\ttwoBtnDialogFragment.dismiss();\n\t}", "@Override\n protected void negativeClick() {\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_HIDE_LABEL);\n jbNewOrderButton.setVisible(true);\n jbConfirm.setVisible(false);\n jbCancel.setVisible(false);\n }", "public boolean hasNeutralButton(){\n return true;\n }", "@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n //Toast.makeText(getApplicationContext(), \"you clicked NO\",\n // Toast.LENGTH_SHORT).show();\n }", "private void onClickReset(ActionEvent e) {\n\n }", "public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }", "@FXML\n\tvoid disapproveActionButton(ActionEvent event) {\n\t\tdeleteRequest();\n\t\tUsefulMethods.instance().close(event);\n\t}", "public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void disableOkButton() {\n okButton.setEnabled(false);\n }", "void onCancelClicked();", "@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }", "@Override\r\n\tpublic void novo(ActionEvent actionEvent) {\n\t\t\r\n\t}", "public void handleYesConfirmButtonAction(ActionEvent event) {\n if (updateItemPane.isVisible()){\n deleteItem();\n this.clearUpdateItemFields();\n }\n else if(updateCopyPane.isVisible()){\n deleteCopy();\n this.clearUpdateCopyFields();\n }\n maskPane.setVisible(false);\n confirmPane.setVisible(false);\n }", "public void hileraNoNulaAction(ActionEvent event){\r\n cadena+=\"+\";\r\n escribirHilera.setText(cadena);\r\n concatenar.setDisable(false);\r\n union.setDisable(false);\r\n abreParentesis.setDisable(true);\r\n hileraNula.setDisable(true);\r\n hileraNoNula.setDisable(true);\r\n finSecuencia.setDisable(true);\r\n }", "public void clickYes ();", "private void disableButtons()\r\n {\r\n }", "public void buttonShowIncomplete(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void onNegativeButtonClicked(int requestCode) {\n\n\t}", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\n\t\t\t\tButton cancelbutton = (Button) findViewById(R.id.calc_clear_txt_Prise);\n\t\t\t\tcancelbutton.setVisibility(0);\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(this, \"No\", Toast.LENGTH_LONG).show();\n\n }", "public void handleSkipAction(ActionEvent event){\n sender.sendInput(\"skip action\");\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}", "private void hideButton(){\n // Si onget Client\n if(numOnglet() == 0 ){\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }\n }\n }", "public void onCancelClick()\r\n {\r\n\r\n }", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}", "@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}", "public void actionPerformed(ActionEvent e)\n {\n if (yesRadio.isSelected())\n {\n parent.unlockNextButton();\n }\n else\n {\n parent.lockNextButton();\n }\n }", "public String btn_cancel_delete_action()\n {\n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n return null;\n }", "@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}", "public void onDiscardClick(){\n if (mHomeChecked){ // at Home Checkmark\n NavUtils.navigateUpFromSameTask(EditSymptomActivity.this);\n }\n if (!mHomeChecked) { // at BackPressed\n finish();\n }\n }", "public boolean buttonNemo(View v) { return (v.getId() == R.id.bestRated); }", "public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}", "@Override\n public void onBtnClick() {\n Log.i(\"TAG\", \"onClick: 您已经取消了生成一个新的歌单\");\n dialog.dismiss();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}", "public void actionPerformed(ActionEvent e)\n\t{\n\t\tview.removeButton();\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\tif (e.getSource() == button1) {\r\n\t\t\tcancel();\r\n\t\t}\r\n\t}", "public static int yesNoCancelPop(String title, String message, String yesButton, String noButton, String cancelButton) {\n\t\t\t//Custom button text\n\t\t\tObject[] options = {yesButton, noButton, cancelButton};\n\t\t\tint n = JOptionPane.showOptionDialog(null, message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,\n\t\t\t options,\n\t\t\t options[2]);\n\t\t\t\n\t\t\treturn n;\n\t\t}", "public void cancel() { Common.exitWindow(cancelBtn); }", "String disabledButton();", "public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }", "@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}", "@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}", "private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}", "public void hideStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t}", "@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }", "HasClickHandlers getCancelButton();", "@Override\n public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n if (button.getText().toString().equals(\"OK\")) {\n this.dispose();\n }\n\n else {\n ip = null;\n this.dispose();\n }\n }", "@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}", "@Override\n public void onBtnClick() {\n dialog.dismiss();\n getMusicID(\"cancel\");\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\teliminarNota();\n\t\t\t}", "public Button getYes() {\n return yes;\n }", "@FXML\n private void handleBtnNovoAction (ActionEvent event) { \n \n //passa um ModelCliente vazio para limpar os campos\n setModelProdutosBinds( new ModelClientes() );\n \n //Retira o bind do modelProdutos com esse ModelProduto vazio\n setModelProdutosBinds(null);\n \n //Comfiguração dos componentes da tela\n edtNome.requestFocus();\n \n //No próximo click o botao executa a ação \"Cancelar\"\n btnNovo.setOnAction((e) -> { handleBtnCancelarAction(e); });\n }", "private void jButtonCancelActionPerformed(ActionEvent e)\n {\n \tsetVisible(false);\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent Event) {\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tint reply = JOptionPane.showConfirmDialog(null, getPanel(), \"Exit\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (reply == JOptionPane.NO_OPTION)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t System.exit(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtPriece.setText(\"\");\n\t\t\t\tbtnSalvarEdicao.setEnabled(false);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tahoraNoOnClick();\n\t\t\t}", "public void onClick(DialogInterface dialog, int whichButton) {\n\n //Do Nothing\n }", "private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}", "@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}", "@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }", "@Override\n\t\t\t\tpublic void onClick(View v) \n\t\t\t\t{\n\t\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\t\tdiscovry_do();\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "@Override\n public boolean play(String btn)\n {\n return btn.isEmpty();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }", "public boolean cancel();", "public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }", "public void actionPerformed(ActionEvent ae) {\r\n II.setVisible(false);\r\n II.setEnabled(false);\r\n }", "protected abstract boolean onOkClicked();", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n switch(which){\n case DialogInterface.BUTTON_POSITIVE: // yes\n t.setText(\"You have successfully deleted the Beacon\");\n// simpleSwitch.isChecked();\n// simpleSwitch.setChecked(false);\n// editText.getText().clear();\n// editText1.getText().clear();\n\n\n break;\n case DialogInterface.BUTTON_NEGATIVE: // no\n t.setText(\"The Beacon devise is still connected\");\n break;\n default:\n // nothing\n break;\n }\n }", "private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }", "void okButtonClicked();", "@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_QUESTION_CONFIRMATION);\n jbNewOrderButton.setVisible(false);\n jbConfirm.setVisible(true);\n jbCancel.setVisible(true);\n }", "@FXML\n void disableAnnualCode() {\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(false);\n }", "@Override\n public void onClick(View v) {\n cancel(v);\n }", "public void removeWrongAnswer (char button)\n {\n if (button=='A')\n a.setEnabled(false);\n else if (button=='B')\n b.setEnabled(false);\n else if (button=='C')\n c.setEnabled(false);\n else\n d.setEnabled(false);\n feedbackLabel.setVisible(true);\n }", "void deleteNotes(ActionEvent event){\n cm.hide();\n Alert alert = new Alert(Alert.AlertType.NONE, \"Delete notes for \"+this.podcast.getTitle()+\"?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.YES){\n if(model.DEBUG)\n System.err.println(\"[LibCell] Deleting \"+this.podcast.getTitle()+\"\\'s notes\");\n\n this.podcast.setNotes(Main.model.DEFAULT_NOTES);\n } else {\n alert.hide();\n }\n\n }" ]
[ "0.80171525", "0.7585753", "0.7480166", "0.7228392", "0.6872744", "0.6833464", "0.6774446", "0.6667443", "0.6570705", "0.6534198", "0.6530623", "0.6509868", "0.64922786", "0.6374137", "0.6364834", "0.6361135", "0.62876844", "0.62660784", "0.6264709", "0.62499034", "0.62301147", "0.62100613", "0.61719865", "0.6116096", "0.6112664", "0.6105649", "0.6093044", "0.60737634", "0.6073626", "0.6066377", "0.6066011", "0.6057349", "0.6054361", "0.6039235", "0.6037411", "0.6023841", "0.602257", "0.6017898", "0.6012837", "0.60102534", "0.6004599", "0.6004599", "0.60031104", "0.60014766", "0.60009176", "0.59852636", "0.59811413", "0.5979082", "0.5972394", "0.5964947", "0.5956134", "0.5949291", "0.5945363", "0.5942213", "0.59396315", "0.5935217", "0.5934902", "0.5922803", "0.59191203", "0.5907581", "0.58996713", "0.58943117", "0.58838993", "0.5883478", "0.58791995", "0.5871446", "0.58654433", "0.58538973", "0.58460915", "0.58448476", "0.58432496", "0.58408046", "0.5840178", "0.5839035", "0.5828067", "0.5827806", "0.58211136", "0.5816065", "0.5815522", "0.5809309", "0.5803394", "0.5803272", "0.58021444", "0.5797904", "0.5797904", "0.5790698", "0.5779725", "0.5777747", "0.5774483", "0.5773843", "0.57698804", "0.5765816", "0.5760874", "0.57542014", "0.57523334", "0.5752108", "0.57481253", "0.57314235", "0.5728473", "0.5728297", "0.5727296" ]
0.0
-1
Crea la HTTP request para la URL obtenida y crea una String a partir de ella.
private static String makeHttpRequest(URL url) throws IOException { String jsonResponse = ""; //Si la URL es null se devuelve inediatamente. if (url == null) { return jsonResponse; } HttpURLConnection urlConnection = null; InputStream inputStream = null; try { urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setReadTimeout(100000 /* Milisegundos.*/); urlConnection.setConnectTimeout(100000 /* Milisegundos.*/); urlConnection.setRequestMethod("GET"); urlConnection.connect(); // Si la request se realiza correctamente (código de respuesta 200) se lee el input // stream y se le hace parse a la respuesta. if (urlConnection.getResponseCode() == 200) { inputStream = urlConnection.getInputStream(); jsonResponse = readFromStream(inputStream); } else { Log.e(LOG_TAG, "Error de conexión: " + urlConnection.getResponseCode()); } // Aquí simplemente hacemos catch a la IOException. } catch (IOException e) { Log.e(LOG_TAG, "Problema obteniendo los datos en JSON del servidor", e); // Independientemente de que se lance una exception o no en el bloque finally se realiza // una desconexión (o se "cierra" como en el caso del inputStream) para poder reusarlo. } finally { if (urlConnection != null) { urlConnection.disconnect(); } if (inputStream != null) { inputStream.close(); } } // Se devuelve como resultado el JsonResponse que albergará la String inputStream. return jsonResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private StringRequest createStringRequest(final project.software.uni.positionprediction.datatypes.Request request,\r\n String url,\r\n Response.Listener<String> responseListener,\r\n Response.ErrorListener errorListener){\r\n\r\n return new StringRequest(Request.Method.GET, url,\r\n responseListener,\r\n errorListener\r\n )\r\n\r\n {\r\n @Override\r\n public Map <String, String> getHeaders() {\r\n HashMap< String, String > headers = new HashMap <> ();\r\n String creds = String.format(\"%s:%s\",username,password);\r\n String encodedCredentials = Base64.encodeToString(creds.getBytes(), Base64.DEFAULT);\r\n headers.put(\"Authorization\", \"Basic \" + encodedCredentials);\r\n\r\n return headers;\r\n }\r\n\r\n @Override\r\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\r\n statusMap.put(new Integer(request.getId()), new Integer(response.statusCode));\r\n\r\n return super.parseNetworkResponse(response);\r\n }\r\n };\r\n\r\n }", "String getRequest(String url);", "static String request(String requestMethod, String input, String endURL)\n {\n StringBuilder result;\n result = new StringBuilder();\n try\n {\n String targetURL = firstURL + endURL;\n URL ServiceURL = new URL(targetURL);\n HttpURLConnection httpConnection = (HttpURLConnection) ServiceURL.openConnection();\n httpConnection.setRequestMethod(requestMethod);\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n httpConnection.setDoOutput(true);\n\n switch (requestMethod) {\n case \"POST\":\n\n httpConnection.setDoInput(true);\n OutputStream outputStream = httpConnection.getOutputStream();\n outputStream.write(input.getBytes());\n outputStream.flush();\n\n result = new StringBuilder(\"1\");\n break;\n case \"GET\":\n\n BufferedReader responseBuffer = new BufferedReader(new InputStreamReader((httpConnection.getInputStream())));\n String tmp;\n while ((tmp = responseBuffer.readLine()) != null) {\n result.append(tmp);\n }\n break;\n }\n\n if (httpConnection.getResponseCode() != 200)\n throw new RuntimeException(\"HTTP GET Request Failed with Error code : \" + httpConnection.getResponseCode());\n\n httpConnection.disconnect();\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return result.toString();\n }", "private String getRequest(String requestUrl) throws IOException {\n URL url = new URL(requestUrl);\n \n Log.d(TAG, \"Opening URL \" + url.toString());\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setDoInput(true);\n urlConnection.connect();\n String response = streamToString(urlConnection.getInputStream());\n \n return response;\n }", "private String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n return jsonResponse;\n }\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n // if the url is null, return the response early;\n if (url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code \" + urlConnection.getResponseCode());\n }\n\n } catch (IOException e) {\n // TODO: Handle the exception\n Log.e(LOG_TAG, \"Problem retrieving from the url\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public static String makeRequestForData(String url, String request_method, String urlParameters){\n\t\tStringBuffer response = null;\n\t\tString resp = \"\";\n\n\t\ttry{\n\t\t\tURL obj = null;\n\t\t\tHttpURLConnection con = null;\n\n\t\t\tif( request_method.equals( \"GET\" ) ){\n\t\t\t\tString encodedURL = url + \"?\" + urlParameters;\n\t\t\t\t//encodedURL = encodedURL.replaceAll(\"+\", \"%20\");\n\n\t\t\t\tobj = new URL( encodedURL );\n\t\t\t\tcon = (HttpURLConnection) obj.openConnection();\n\t\t\t\t//con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t\t\tcon.setRequestMethod( \"GET\" );\n\t\t\t\tcon.setDoOutput( true );\n\t\t\t\tcon.setConnectTimeout( 10000 );\n\t\t\t}\n\t\t\telse{\n\t\t\t\tString encodedURL = url;//URLEncoder.encode(url, \"UTF-8\");\n\t\t\t\t//urlParameters = URLEncoder.encode(urlParameters, \"UTF-8\");\n\t\t\t\t//urlParameters = urlParameters.replaceAll(\"+\", \"%20\");\n\n\t\t\t\tobj = new URL( encodedURL );\n\t\t\t\tcon = (HttpURLConnection) obj.openConnection();\n\t\t\t\tcon.setRequestMethod( \"POST\" );\n\t\t\t\tcon.setDoOutput( true );\n\t\t\t\tcon.setConnectTimeout( 10000 );\n\t\t\t\tDataOutputStream wr = new DataOutputStream( con.getOutputStream() );\n\t\t\t\twr.writeBytes( urlParameters );\n\t\t\t\twr.flush();\n\t\t\t\twr.close();\n\t\t\t}\n\n\t\t\tint responseCode = con.getResponseCode();\n\t\t\tif( responseCode == 200 ){\n\t\t\t\tBufferedReader in = new BufferedReader( new InputStreamReader( con.getInputStream() ) );\n\t\t\t\tString inputLine;\n\t\t\t\tresp = \"\";\n\t\t\t\tresponse = new StringBuffer();\n\t\t\t\tchar buff[] = new char[ 65535 ];\n\n\t\t\t\tFileOutputStream fos = new FileOutputStream( UtilFile.createFileIfNotExist( \"Launcher\", \"temp.txt\" ) );\n\n\t\t\t\twhile ( ( inputLine = in.readLine() ) != null ) {\n\t\t\t\t\tresponse.append( inputLine );\n\t\t\t\t}\n\t\t\t\tfos.close();\n\t\t\t\tin.close();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tthrow new Exception( \"No Response from server.\" );\n\t\t\t}\n\t\t}\n\t\tcatch( Exception e ){\n\t\t\tLog.i( TAG, \"Exception : \"+e.toString() );\n\t\t\treturn null;\n\t\t}\n\t\treturn response.toString();\n\t}", "public String requestContent(String urlStr) {\n String result = null;\n HttpURLConnection urlConnection;\n try {\n URL url = new URL(urlStr);\n urlConnection = (HttpURLConnection) url.openConnection();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n try {\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n result = convertStreamToString(in);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n return result;\n }", "private static String makeHTTPRequest(URL url) throws IOException {\n\n // Create an empty json string\n String jsonResponse = \"\";\n\n //IF url is null, return early\n if (url == null) {\n return jsonResponse;\n }\n\n // Create an Http url connection, and an input stream, making both null for now\n HttpURLConnection connection = null;\n InputStream inputStream = null;\n\n try {\n\n // Try to open a connection on the url, request that we GET info from the connection,\n // Set read and connect timeouts, and connect\n connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setReadTimeout(10000 /*Milliseconds*/);\n connection.setConnectTimeout(15000 /*Milliseconds*/);\n connection.connect();\n\n // If response code is 200 (aka, working), then get and read from the input stream\n if (connection.getResponseCode() == 200) {\n\n Log.v(LOG_TAG, \"Response code is 200: Aka, everything is working great\");\n inputStream = connection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n\n } else {\n // if response code is not 200, Log error message\n Log.v(LOG_TAG, \"Error Response Code: \" + connection.getResponseCode());\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error making http request: \" + e);\n } finally {\n // If connection and inputStream are NOT null, close and disconnect them\n if (connection != null) {\n connection.disconnect();\n }\n\n if (inputStream != null) {\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies that an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n\n return jsonResponse;\n }", "String postRequest(String url);", "String getRequest();", "private static String getHTTPResponse(URL url){\n\t\t\n\t\tStringBuilder response = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tURLConnection connection = url.openConnection();\n\t\t\tBufferedReader res = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString responseLine;\n\t\t\t\n\t\t\twhile((responseLine = res.readLine()) != null)\n\t\t\t\tresponse.append(responseLine);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t\treturn response.toString();\n\t}", "private String baseFetchRequest(URL url) {\n HttpURLConnection urlConnection = null;\n BufferedReader reader = null;\n\n try {\n // Create the request to OpenWeatherMap, and open the connection\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // Read the input stream into a String\n InputStream inputStream = urlConnection.getInputStream();\n StringBuffer buffer = new StringBuffer();\n if (inputStream == null) {\n // Nothing to do.\n return null;\n }\n reader = new BufferedReader(new InputStreamReader(inputStream));\n\n String line;\n while ((line = reader.readLine()) != null) {\n // Since it's JSON, adding a newline isn't necessary (it won't affect parsing)\n // But it does make debugging a *lot* easier if you print out the completed\n // buffer for debugging.\n buffer.append(line + \"\\n\");\n }\n\n if (buffer.length() == 0) {\n // Stream was empty. No point in parsing.\n return null;\n }\n return buffer.toString();\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error \", e);\n return null;\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (reader != null) {\n try {\n reader.close();\n } catch (final IOException e) {\n Log.e(LOG_TAG, \"Error closing stream\", e);\n }\n }\n }\n }", "private HttpUriRequest createHttpRequest(String url, String method,\n\t\t\tList<NameValuePair> params) throws UnsupportedEncodingException {\n\t\tHttpUriRequest request;\n\t\tif (method.toUpperCase().equals(\"GET\")) {\n\t\t\trequest = new HttpGet(url);\n\t\t} else if (method.toUpperCase().equals(\"POST\")) {\n\t\t\tHttpPost post = new HttpPost(url);\n\t\t\tpost.setEntity(new UrlEncodedFormEntity(params));\n\t\t\trequest = post;\n\t\t} else if (method.toUpperCase().equals(\"PUT\")) {\n\t\t\trequest = new HttpPut(url);\n\t\t} else if (method.toUpperCase().equals(\"DELETE\")) {\n\t\t\trequest = new HttpDelete(url);\n\t\t} else {\n\t\t\trequest = new HttpGet();\n\t\t}\n\n\t\treturn request;\n\t}", "private static String makeHttpRequest(URL url) throws IOException {\n String JSONResponse = null;\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(Constants.URL_REQUEST_METHOD);\n urlConnection.setReadTimeout(Constants.URL_READ_TIME_OUT);\n urlConnection.setConnectTimeout(Constants.URL_CONNECT_TIME_OUT);\n urlConnection.connect();\n\n if (urlConnection.getResponseCode() == Constants.URL_SUCCESS_RESPONSE_CODE) {\n inputStream = urlConnection.getInputStream();\n JSONResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Response code : \" + urlConnection.getResponseCode());\n // If received any other code(i.e 400) return null JSON response\n JSONResponse = null;\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error Solving JSON response : makeHttpConnection() block\");\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n // Input stream throws IOException when trying to close, that why method signature\n // specify about IOException\n }\n }\n return JSONResponse;\n }", "private static String makeRequest(String page, String host) {\n\t\tString format = \"GET %s HTTP/1.0\\r\\n\"\n\t\t\t\t\t\t+\"host: %s\\r\\n\\r\\n\";\n\t\treturn String.format(format, page, host);\n\t}", "private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "public static String httpRequest(String requestUrl){\r\n\t\t\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\ttry{\r\n\t\t\tURL url = new URL (requestUrl);\r\n\t\t\tHttpURLConnection httpUrlConn = (HttpURLConnection)url.openConnection();\r\n\t\t\thttpUrlConn.setDoInput(true);\r\n\t\t\thttpUrlConn.setDoOutput(false);\r\n\t\t\thttpUrlConn.setUseCaches(false);\r\n\t\t\t\r\n\t\t\thttpUrlConn.setRequestMethod(\"GET\");\r\n\t\t\thttpUrlConn.connect();\r\n\t\t\t\r\n\t\t\t//transfer the inputStream returned into string\r\n\t\t\tInputStream inputStream = httpUrlConn.getInputStream();\r\n\t\t\tInputStreamReader inputStreamReader = new InputStreamReader(inputStream,\"utf-8\");\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(inputStreamReader);\r\n\t\t\t\r\n\t\t\tString str = null;\r\n\t\t\twhile((str=bufferedReader.readLine())!=null){\r\n\t\t\t\t\r\n\t\t\t\tbuffer.append(str);\r\n\t\t\t}\r\n\t\t\tbufferedReader.close();\r\n\t\t\tinputStreamReader.close();\r\n\t\t\tinputStream.close();\r\n\t\t\tinputStream=null;\r\n\t\t\thttpUrlConn.disconnect();\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn buffer.toString();\r\n\t\t\r\n\t}", "private Response makeRequest(String url) throws IOException, IllegalStateException {\n // Make the request\n Request req = new Request.Builder()\n .url(url)\n .addHeader(\"token\", NOAA.KEY)\n .build();\n Response res = client.newCall(req).execute();\n return res;\n }", "public static String makeRequest(String apiRequest) throws IOException {\n //execute the api request\n HttpClient client = HttpClientBuilder.create().build();\n HttpGet request = new HttpGet(apiRequest);\n HttpResponse response = client.execute(request);\n //create a buffered reader for reading the response\n BufferedReader rd = new BufferedReader\n (new InputStreamReader(\n response.getEntity().getContent()));\n //create a stringbuilder to make the api response into a single string\n StringBuilder apiResponse = new StringBuilder();\n String temp;\n //loop throught the api response\n while ((temp = rd.readLine()) != null) {\n //if line of text exists add it to the output string\n apiResponse.append(temp);\n }\n //debug print the api response\n Debug.debug(\"api response was: \\n\" + apiResponse.toString());\n return apiResponse.toString().replace(\"1h\", \"one\").replace(\"3h\", \"three\");\n\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the posts JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n\n\n return jsonResponse;\n }", "public String request(String method, String url, String data) {\n HttpURLConnection connection = null;\n try {\n if ((method.compareTo(\"GET\") == 0) && (data != null) && (!data.isEmpty())) {\n if (url.contains(\"?\"))\n url = url.concat(\"&\");\n else\n url = url.concat(\"?\");\n url = url.concat(data);\n }\n // Create connection\n URL requestUrl = new URL(url);\n connection = (HttpURLConnection) requestUrl.openConnection();\n connection.setRequestProperty(\"Veridu-Client\", this.key);\n if ((this.storage.getSessionToken() != null) && (!this.storage.getSessionToken().isEmpty()))\n connection.setRequestProperty(\"Veridu-Session\", this.storage.getSessionToken());\n connection.setRequestMethod(method);\n connection.setConnectTimeout(10000);\n connection.setReadTimeout(10000);\n connection.setUseCaches(false);\n connection.setDoOutput(true);\n // Send request\n if ((method.compareTo(\"GET\") != 0) && (data != null) && (!data.isEmpty())) {\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n connection.setRequestProperty(\"Content-Length\", Integer.toString(data.getBytes().length));\n connection.setDoInput(true);\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(data);\n wr.flush();\n wr.close();\n }\n\n // Get Response\n this.lastCode = connection.getResponseCode();\n InputStream is;\n if (this.lastCode >= 400)\n is = connection.getErrorStream();\n else\n is = connection.getInputStream();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n String line;\n StringBuilder response = new StringBuilder();\n while ((line = rd.readLine()) != null) {\n response.append(line);\n response.append('\\r');\n }\n rd.close();\n return response.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (connection != null)\n connection.disconnect();\n }\n return null;\n }", "private String getContentStringFromURL(URL url) {\n\n HttpURLConnection con = null;\n //Versuch der Verbindung\n try {\n con = (HttpURLConnection) url.openConnection();\n\n\n // Optional\n con.setRequestMethod(\"GET\");\n\n // HTTP-Status-Code\n int responseCode = con.getResponseCode();\n //System.out.println(\"\\nSending 'GET' request to URL : \" + url);\n //System.out.println(\"Response Code : \" + responseCode);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n //Einlesen der Antwort\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n\n //Antwort wird in einen String gewandelt und zurück geliefert\n return response.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "String serverRequest() throws UnsupportedEncodingException {\n String text = \"\";\n String urlData = reqestUrl +\n \"?pid=\" + patientId;\n HttpURLConnection conn = null;\n InputStream stream = null;\n // Send data\n try {\n\n // Defined URL where to send data\n URL url = new URL(urlData);\n\n // Send GET data request\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n conn.connect();\n if (conn.getResponseCode() == 200) {\n\n stream = conn.getInputStream();\n Log.d(\"Get Request\", \"inside try -if\");\n if (stream != null) {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(stream));\n StringBuilder builder = new StringBuilder();\n Log.d(\"click\", \"inside tr4y\");\n String line = null;\n while ((line = bufferedReader.readLine()) != null) {\n\n builder.append(line + \"\\n\");\n Log.d(\"line\", line);\n\n }\n\n text = builder.toString();\n Log.d(\"Response: \",text);\n }\n }\n }\n catch (Exception ex) {\n Log.d(\"ServerRequest Error\", \"error occurred\" + ex);\n\n }\n finally {\n try {\n if (stream != null) {\n stream.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (conn != null) {\n conn.disconnect();\n }\n }\n return text;\n }", "@Override\n protected Object doInBackground(Object[] objects)\n {\n URL url = null; \n\n try\n {\n url = new URL(requestUrl);\n }\n catch (MalformedURLException e)\n {\n e.printStackTrace();\n }\n\n // Create and open HTTP connection\n HttpURLConnection connection = null;\n try\n {\n connection = (HttpURLConnection) url.openConnection();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n\n try\n {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n StringBuilder stringBuilder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n {\n stringBuilder.append(line);\n }\n\n bufferedReader.close();\n\n return stringBuilder.toString();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n connection.disconnect();\n }\n\n return null;\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the earthquake JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies than an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000);\n urlConnection.setConnectTimeout(15000);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the Guardian JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }", "String getRequestURL();", "public static String requestURL(String url) {\n return \"\";\n }", "private int[] createGETrequest(String Request_URI) {\n String requestLine = Utils.textToHexString(\"GET\") + \"20\" + Utils.textToHexString(Request_URI)\n + \"20\" + Utils.textToHexString(\"HTTP/1.1\") + \"0d0a\";\n return Utils.stringToHexArr(requestLine);\n }", "public String receive(String URL)\n {\n try\n {\n HttpGet httpGet = new HttpGet(URL);\n return EntityUtils.toString(HttpClients.createDefault().execute(httpGet).getEntity());\n }catch(IOException e) \n {\n System.out.println(\"Error requesting string from \" + URL);\n }\n return \"\";\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // if url null, return\n if(url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection= (HttpURLConnection)url.openConnection();\n urlConnection.setReadTimeout(10000/*milliseconds*/);\n urlConnection.setConnectTimeout(15000/*milliseconds*/);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n Log.v(LOG_TAG,\"Network request made\");\n\n // if the request was successful(response code 200)\n //then read the input stream and parse the output\n if(urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n }\n else{\n Log.e(LOG_TAG,\"Error Response code: \" + urlConnection.getResponseCode());\n }\n }\n catch (IOException e) {\n Log.e(LOG_TAG,\"Problem retrieving the earthquake JSON results\",e);\n }\n finally {\n if(urlConnection != null) {\n urlConnection.disconnect();\n }\n if(inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "public static String getHTTP(String urlToRead) throws Exception {\n // reference: https://stackoverflow.com/questions/34691175/how-to-send-httprequest-and-get-json-response-in-android/34691486\n HttpClient httpclient = new DefaultHttpClient();\n HttpGet httpget = new HttpGet(urlToRead);\n\n HttpResponse response = httpclient.execute(httpget);\n\n if (response.getStatusLine().getStatusCode() == 200) {\n String server_response = EntityUtils.toString(response.getEntity());\n return server_response;\n } else {\n System.out.println(\"no response from server\");\n }\n return \"\";\n }", "public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }", "public String buildUrl(String text_of_audio) {\n String wit = \"https://api.wit.ai/message\";\n String google = \"https://www.google.com/\";\n Uri sendRequest_wit = Uri.parse(wit).buildUpon()\n .appendQueryParameter(\"q\", text_of_audio).build();\n\n\n try {\n url = new URL(sendRequest_wit.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n Log.d(\"url\",url.toString());\n\n try {\n audioStr = new WitQueryTask().execute(url).get();\n } catch (ExecutionException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return audioStr;\n\n }", "private HttpURLConnection getURLobject (String uri, String xmlMsg, URL url) throws Exception\n {\n URLConnection urlcon = url.openConnection();\n HttpURLConnection conn = (HttpURLConnection) urlcon;\n // ******** Filling of Default Request Header Properties ************\n conn.setUseCaches( false );\n HttpURLConnection.setFollowRedirects( false );\n if (xmlMsg != null && xmlMsg.length() > 0)\n conn.setRequestMethod(\"POST\");\n conn.setDoInput (true);\n conn.setDoOutput(true);\n\n // String encoding = null;\n\n conn.setRequestProperty( \"Accept\", \"text/xml\");\n conn.setRequestProperty( \"Content-type\", \"xml/txt\");\n conn.setRequestProperty( \"Accept-Charset\", \"iso-8859-1,*,utf-8\");\n conn.setRequestProperty( \"User-Agent\", \"CIDS Client/4.0\");\n conn.setRequestProperty( \"Pragma\", \"no-cache\");\n String xmlStr = \"XMLHttpRequest\";\n String contentTypeStr = \"application/x-www-form-urlencoded\";\n conn.setRequestProperty(\"X-Requested-With\", xmlStr);\n conn.setRequestProperty(\"Content-Type\", contentTypeStr);\n if (verbose) {\n // TODO: just get the data from conn \n System.out.println(\"Header request lines\");\n System.out.println(\" key [Accept]\");\n System.out.println(\" value [text/xml]\");\n System.out.println(\" key [Content-type]\");\n System.out.println(\" value [xml/txt]\");\n System.out.println(\" key [Accept-Charset]\");\n System.out.println(\" value [iso-8859-1,*,utf-8]\");\n System.out.println(\" key [User-Agent]\");\n System.out.println(\" value [CIDS Client/4.0]\");\n System.out.println(\" key [Pragma]\");\n System.out.println(\" value [no-cache]\");\n System.out.println(\" key[X-Requested-With]\");\n System.out.println(\" value[\"+xmlStr+\"]\");\n System.out.println(\" key[Content-Type]\");\n System.out.println(\" value[\"+contentTypeStr+\"]\");\n }\n\n return conn;\n }", "private static String getResponseContent(RequestURL request)\n\t\t\tthrows GPlaceServiceException {\n\t\tStringBuilder response = new StringBuilder();\n\t\tHttpURLConnection conn = null;\n\n\t\ttry {\n\t\t\tURL url = new URL(request.toString());\n\t\t\tconn = (HttpURLConnection) url.openConnection();\n\t\t\tInputStreamReader in = new InputStreamReader(conn.getInputStream());\n\t\t\tint read;\n\t\t\tchar[] buff = new char[1024];\n\t\t\twhile ((read = in.read(buff)) != -1) {\n\t\t\t\tresponse.append(buff, 0, read);\n\t\t\t}\n\t\t\treturn response.toString();\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new GPlaceServiceException(\n\t\t\t\t\t\"Could not request PlacesAPI because the URL is malformed\",\n\t\t\t\t\te);\n\t\t} catch (IOException e) {\n\t\t\tthrow new GPlaceServiceException(\n\t\t\t\t\t\"Could not request PlacesAPI because there happened an error during data transmission\");\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.disconnect();\n\t\t\t}\n\t\t}\n\t}", "public String makePostRequestSoDoGhe(String url){\n String result = null;\n HttpClient httpClient = new DefaultHttpClient();\n HttpPost httpPost = new HttpPost(url);\n\n try {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"MaChuyen\", MaChuyen);\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n nameValuePairs.add(new BasicNameValuePair(\"Chuyen\", jsonObject.toString()));\n Log.d(\"JSON POST DATA\", \"mainToPost: \" + nameValuePairs.toString());\n httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs,\"UTF-8\"));\n //execute HttpPost request\n HttpResponse httpResponse = httpClient.execute(httpPost);\n InputStream inputStream = httpResponse.getEntity().getContent();\n InputStreamToString str = new InputStreamToString();\n result = str.getStringFromInputStream(inputStream);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return result;\n }", "private static String getURL(String url) {\r\n\t\t//fixup the url\r\n\t\tURL address;\r\n\t\ttry {\r\n\t\t\taddress = new URL(url);\r\n\t\t}\r\n\t\tcatch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\t\t\r\n\t\t//make the hookup\r\n\t\tHttpURLConnection con;\r\n\t\ttry {\r\n\t\t\tcon = (HttpURLConnection) address.openConnection();\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\r\n\t\t// optional default is GET\r\n\t\ttry {\r\n\t\t\tcon.setRequestMethod(\"GET\");\r\n\t\t}\r\n\t\tcatch (ProtocolException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\r\n\t\t//this executes the get? - maybe check with wireshark if ever important\r\n//\t\tint responseCode = 0; \r\n//\t\ttry {\r\n//\t\t\tresponseCode = con.getResponseCode();\r\n//\t\t}\r\n//\t\tcatch(IOException e) {\r\n//\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n//\t\t\treturn new String();\r\n//\t\t}\r\n\t\t\r\n\t\t//TODO handle bad response codes\r\n\r\n\t\t//read the response\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n\t\t\tString inputLine = new String();\r\n\t\r\n\t\t\t//grab each line from the response\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tresponse.append(inputLine);\r\n\t\t\t}\r\n\t\t\t//fix dangling\r\n\t\t\tin.close();\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\t\t\r\n\t\t//convert to a string\r\n\t\treturn response.toString();\r\n\t}", "public String makeServiceCall(String reqUrl) {\n String response = null;\n try {\n URL url = new URL(reqUrl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n // read the response\n InputStream in = new BufferedInputStream(conn.getInputStream());\n response = convertStreamToString(in);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"MalformedURLException: \" + e.getMessage());\n } catch (ProtocolException e) {\n Log.e(TAG, \"ProtocolException: \" + e.getMessage());\n } catch (IOException e) {\n Log.e(TAG, \"IOException: \" + e.getMessage());\n } catch (Exception e) {\n Log.e(TAG, \"Exception: \" + e.getMessage());\n }\n return response;\n }", "public static String getUrlContentAsJsonString(String url) throws Exception {\n// HttpClient httpClient = new HttpClient();\n// httpClient.getParams().setSoTimeout(1500);\n// GetMethod gm = new GetMethod(url);\n// gm.setRequestHeader(\"accept\", \"application/json\"); // needed for spatial portal JSON web services\n// gm.setFollowRedirects(true);\n// httpClient.executeMethod(gm);\n// String content = gm.getResponseBodyAsString();\n\n HttpClient httpClient = new HttpClient();\n // DM: set this to HTTP/1.0\n httpClient.getParams().setParameter(\"http.protocol.version\", HttpVersion.HTTP_1_0);\n httpClient.getParams().setSoTimeout(10000);\n logger.debug(\"Retrieving the following URL: \" + url);\n GetMethod gm = new GetMethod(url);\n gm.setRequestHeader(\"Accept\", \"application/json\"); // needed for spatial portal JSON web services\n gm.setFollowRedirects(true);\n httpClient.executeMethod(gm);\n String responseString = gm.getResponseBodyAsString();\n if(logger.isDebugEnabled()){\n logger.debug(\"Response: \" + responseString);\n }\n return responseString;\n }", "public String getURL(String url) {\n\t\tString resultado =\"\";\n\t\tHttpClient c = new DefaultHttpClient();\n\t\tHttpGet get = new HttpGet(url);\n\t\tHttpResponse response = null;\n\t\ttry {\n\t\t\tresponse = c.execute(get);\n\t\t} catch (ClientProtocolException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tresultado = EntityUtils.toString(response.getEntity());\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public String openHttp2String(URL url) throws IOException {\r\n return EntityUtils.toString(openHttpEntity(url), Charset.forName(\"UTF-8\"));\r\n }", "private static String executeRequest(String url) throws IOException {\n\n\t\tLog.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t\n\t\tSocket s = new Socket(IP, PORT);\n\t\tPrintStream ps = new PrintStream(s.getOutputStream());\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"PS OPENED\");\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(\n\t\t\t\ts.getInputStream()));\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"BR OPENED\");\n\t\tps.println(url);\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"URL PRNTED\");\n\t\tString response = r.readLine();\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"RESPONSE: \" + response);\n\t\treturn response;\n\n\t\t// boolean unsuccessful = true;\n\t\t// int tries = 0;\n\t\t// String response = \"\";\n\t\t// while(unsuccessful && tries != 3){\n\t\t// unsuccessful = false;\n\t\t// URL requestUrl = new URL(url);\n\t\t// HttpsURLConnection connection = (HttpsURLConnection)\n\t\t// requestUrl.openConnection();\n\t\t// try{\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t// connection.setRequestMethod(\"GET\");\n\t\t// connection.getResponseCode();\n\t\t//\n\t\t// //connection.\n\t\t//\n\t\t// connection.connect();\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\t// //Needs error checking on connection\n\t\t//\n\t\t// InputStream in = new\n\t\t// BufferedInputStream(connection.getInputStream());\n\t\t// BufferedReader reader = new BufferedReader(new\n\t\t// InputStreamReader(in));\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\t// String line;\n\t\t//\n\t\t// //reads response in and appends it to buffer\n\t\t// do{\n\t\t// line = reader.readLine();\n\t\t// buffer.append(line);\n\t\t// }while (line != null);\n\t\t//\n\t\t// //disconnects the HttpURLConnection so other requests can be made\n\t\t// connection.disconnect();\n\t\t// //Log.d(RiotJsonRequest.class.getSimpleName() , \"RECEIVED: \" +\n\t\t// buffer.toString());\n\t\t// response = buffer.toString();\n\t\t// }catch(Exception e){\n\t\t// String code = Integer.toString(connection.getResponseCode());\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , \"CODE: \" + code);\n\t\t// if(code.equals(\"404\")){\n\t\t// return code;\n\t\t// }\n\t\t// unsuccessful = true;\n\t\t// tries++;\n\t\t// connection.disconnect();\n\t\t// connection = null;\n\t\t// requestUrl = null;\n\t\t// try {\n\t\t// Thread.sleep(1000);\n\t\t// } catch (InterruptedException e1) {\n\t\t// e1.printStackTrace();\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// return response;\n\t}", "public static String getWebData(String wepDocumet) {\n\n try {\n Log.d(JsonParse.class.getSimpleName(), \"Start the web-get documnet\");\n // Creates the parameters.\n HttpParams httpParams = new BasicHttpParams();\n // TIMEOUT_MILLISEC sets the timeout. If bad network higher liver is\n // needed.\n HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);\n HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);\n HttpParams p = new BasicHttpParams();\n // Sets parameters. For future use.\n p.setParameter(\"user\", \"1\");\n // Instantiate an HttpClient.\n HttpClient httpclient = new DefaultHttpClient(p);\n // WEBSERVER_ADDRESS, the address to the webserver. DO NOT USE IP!.\n String url = WEBSERVER_ADDRESS + wepDocumet;\n HttpPost httppost = new HttpPost(url);\n // Instantiate a GET HTTP method.\n try {\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n return httpclient.execute(httppost, responseHandler);\n\n } catch (ClientProtocolException e) {\n Log.e(\"Error\", e.toString());\n // Return a string with error to indicate that an error has\n // happened.\n return \"error\";\n }\n } catch (Exception e) {\n Log.e(\"Error\", e.toString());\n // Return a string with error to indicate that an error has\n // happened.\n return \"error\";\n }\n }", "@Test\n public void getRequest2() {\n str = METHOD_GET + \"/wiki/page.html \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": ru.wikipedia.org\" + ENDL +\n USER_AGENT + \": Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5\" + ENDL +\n ACCEPT + \": text/html\" + ENDL +\n CONNECTION_CLOSE;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"/wiki/page.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"ru.wikipedia.org\");\n assertEquals(request.getHeader(USER_AGENT),\n \"Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5\");\n assertEquals(request.getHeader(ACCEPT), \"text/html\");\n assertEquals(request.getHeader(CONNECTION), CLOSE_STR);\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "private String getUrlContents(String theUrl) {\n StringBuilder content = new StringBuilder();\n try {\n URL url = new URL(theUrl);\n URLConnection urlConnection = url.openConnection();\n //reads the response\n BufferedReader br = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()), 8);\n String line;\n while ((line = br.readLine()) != null) {\n content.append(line + \"\\n\");\n }\n br.close();\n }catch (Exception e) {\n //error occured, usually network related\n e.printStackTrace();\n }\n return content.toString();\n }", "private Request build() {\n Request.Builder builder =\n new Request.Builder().cacheControl(new CacheControl.Builder().noCache().build());\n\n HttpUrl.Builder urlBuilder = HttpUrl.parse(url).newBuilder();\n for (Map.Entry<String, String> entry : queryParams.entrySet()) {\n urlBuilder = urlBuilder.addEncodedQueryParameter(entry.getKey(), entry.getValue());\n }\n builder = builder.url(urlBuilder.build());\n\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n builder = builder.header(entry.getKey(), entry.getValue());\n }\n\n RequestBody body = (bodyBuilder == null) ? null : bodyBuilder.build();\n builder = builder.method(method.name(), body);\n\n return builder.build();\n }", "private static String makeHttpRequest(URL newsUrl) throws IOException{\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (newsUrl == null) {\n //returns no data\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n\n //Create the connection\n try {\n urlConnection = (HttpURLConnection) newsUrl.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n //Establish an HTTP connection with the server\n urlConnection.connect();\n\n //Test to see what response we get\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200){\n //Valid connection\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(TAG, \"makeHttpRequest: Error Code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e){\n Log.e(TAG, \"makeHttpRequest: Problem retrieving the news JSON results\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null){\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies than an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public static String makeHTTPRequest(URL url, Context context) throws IOException {\n // If the url is empty, return early\n String jsonResponse = null;\n if (url == null) {\n return jsonResponse;\n }\n final Context mContext = context;\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful, the response code should be 200. Read the input stream and\n // parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromInputStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(mContext, \"Error: Issue with fetching JSON results from Guardian API.\", Toast\n .LENGTH_SHORT)\n .show();\n }\n });\n\n Log.e(LOG_TAG, \"Error: Issue with fetching JSON results from Guardian API. \", e);\n } finally {\n // Close connection\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n // Close stream\n if (inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public HTTPGetUtility(String requestURL) {\n super(requestURL, \"GET\");\n }", "private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}, new ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}){@Override\n\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\tHashMap< String , String> map = new HashMap<String,String>();\n\t\t\tmap.put(\"key\", \"7bc8ff86168092de65576a6166bfc47b\");\n\t\t\tmap.put(\"v\", \"1.0\");\n\t\t\tmap.put(\"month\", \"11\");\n\t\t\tmap.put(\"day\", \"1\");\n\t\t\treturn map;\n\t\t}};\n\t\trequest.addMarker(\"StringRequest_GET\");\n\t\tMyApplication.getHttpRequestQueue().add(request);\n\t}", "private String urlBuilder(){\n String timelineURL = \"curgas/timeline.json\";\n final RequestBuilder.UrlBuilder url = new RequestBuilder.UrlBuilder();\n url.setUrl(timelineURL);\n url.appendUrlQuery(\"apikey\", Constants.API_KEY);\n url.appendUrlQuery(\"sort\", SORT_TYPE);\n url.appendUrlQuery(\"jumlah\",TOTAL_POSTS);\n url.appendUrlQuery(\"page\",Integer.toString(PAGE_LOADED));\n\n String buildURL = url.build();\n\n return buildURL;\n }", "public String makeHttpRequest(String url, String method,\r\n\t List<NameValuePair> params) {\r\n\t \t\r\n\t\t\r\n\t \t\t\t\r\n\t \t\t\t\r\n\t // Making HTTP request\r\n\t try {\r\n\t \r\n\t // check for request method\r\n\t if(method == \"POST\"){\r\n\t // request method is POST\r\n\t // defaultHttpClient\r\n\t DefaultHttpClient httpClient = new DefaultHttpClient();\r\n\t\t \t\t\tHttpParams paramss = httpClient.getParams();\r\n\t\t \t\t\tHttpConnectionParams.setConnectionTimeout(paramss, 5000);\r\n\t\t \t\t\tHttpConnectionParams.setSoTimeout(paramss, 5000);\r\n\t\t \t\t\t\r\n\t \r\n\t HttpPost httpPost = new HttpPost(url);\r\n\t httpPost.setEntity(new UrlEncodedFormEntity(params));\r\n\t \r\n\t HttpResponse httpResponse = httpClient.execute(httpPost);\r\n\t HttpEntity httpEntity = httpResponse.getEntity();\r\n\t is = httpEntity.getContent();\r\n\t \r\n\t }else if(method == \"GET\"){\r\n\t // request method is GET\t \r\n\t \r\n\t DefaultHttpClient httpClient = new DefaultHttpClient();\r\n\t\t \t\t\tHttpParams paramss = httpClient.getParams();\r\n\t\t \t\t\tHttpConnectionParams.setConnectionTimeout(paramss, 3000);\r\n\t\t \t\t\tHttpConnectionParams.setSoTimeout(paramss,3000);\r\n\t\t \t\t\t\r\n\t\t \t\t\t\r\n\t String paramString = URLEncodedUtils.format(params, \"utf-8\");\r\n\t if( paramString.length() > 0 )\r\n\t url += \"?\" + paramString;\r\n\t HttpGet httpGet = new HttpGet(url);\r\n\t \r\n\t \r\n\t HttpResponse httpResponse = httpClient.execute(httpGet);\r\n\t if(httpResponse.getStatusLine().getStatusCode() != 200 )\r\n\t \treturn null;\r\n\t HttpEntity httpEntity = httpResponse.getEntity();\r\n\t is = httpEntity.getContent();\r\n\t \r\n\t charset = getContentCharSet(httpEntity);\r\n\t \r\n\t \r\n\t Header[] headers = httpResponse.getAllHeaders();\r\n\t \tfor (Header header : headers) {\r\n\t \t\tLog.d(\"stat\",\"Key : \" + header.getName() \r\n\t + \" ,Value : \" + header.getValue());\r\n\t \r\n\t \t}\r\n\r\n\t \tSystem.out.println(\"\\nGet Response Header By Key ...\\n\");\r\n\t \tString server = httpResponse.getFirstHeader(\"Server\").getValue();\r\n\t \tLog.d(\"server\", server);\r\n\t \r\n\t \t///////////////////////////////////////////////////////////////////////////////\r\n\r\n\t } \r\n\t \r\n\t } catch (UnsupportedEncodingException e) {\r\n\t \tLog.d(\"unsupporetedencoding\", \"erro\");\r\n\t e.printStackTrace();\r\n\t return null;\r\n\t } catch (ClientProtocolException e) {\r\n\t \tLog.d(\"clientprotocalexception\", \"erro\");\r\n\t \te.printStackTrace();\r\n\t \treturn null;\r\n\t } catch (IOException e) {\r\n\t \tLog.d(\"ioexception\", \"erro\");\r\n\t e.printStackTrace();\r\n\t return null;\r\n\t }\r\n\t \r\n\t try {\r\n\t // BufferedReader reader = new BufferedReader(new InputStreamReader(\r\n\t // is, \"iso-8859-1\"), 8);\r\n\t // BufferedReader reader = new BufferedReader(new InputStreamReader(\r\n\t // is, \"iso-8859-1\"),16);\r\n\t \r\n\t \t\r\n\t \t\r\n\t \tif (charset == null) {\r\n\r\n\t \t\tcharset = HTTP.UTF_8;\r\n\r\n\t \t\t}\r\n\r\n\t \t\r\n\t \t\r\n\t BufferedReader reader = new BufferedReader(new InputStreamReader(\r\n\t is, charset));\r\n\t \r\n\t \r\n\t StringBuilder sb = new StringBuilder();\r\n\t String line = null;\r\n\t while ((line = reader.readLine()) != null) {\r\n\t sb.append(line);\r\n\t }\r\n\t is.close();\r\n\t String text = sb.toString();\r\n\t if( text.length() == 0 )\r\n\t \treturn null;\r\n\t text = text.replace(\"\\uFEFF\", \"\");\r\n\t json = Crypto3DES.Decrypte(text);\r\n\t \r\n\t Log.d(\"display\", json);\r\n\t \r\n\t } catch (Exception e) {\r\n\t Log.e(\"Buffer Error\", \"Error converting result \" + e.toString());\r\n\t Log.d(\"buffer erro\", e.toString());\r\n\t return null;\r\n\t }\r\n\t \r\n\t return json;\r\n\t }", "public static void sendGetWebservice(Activity activity, String url, Response.Listener responseListener, Response.ErrorListener errorListener) {\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url, responseListener, errorListener);\n// Add the request to the RequestQueue.\n handler.addToRequestQueue(stringRequest);\n }", "public String callGET(String urlStr) {\n StringBuilder strB = new StringBuilder();\n this.LOGGER.debug(\"urlStr: {}\" + urlStr);\n \n try {\n URL url = new URL(urlStr);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(this.STR_GET);\n conn.setRequestProperty(this.STR_ACCEPT, this.STR_APPLICATION_HTML);\n\n if (conn.getResponseCode() != this.RET_OK) {\n throw new RuntimeException(\"Failed with HTTP error code: \" + conn.getResponseCode());\n }\n\n BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n\n String output;\n while ((output = br.readLine()) != null) {\n strB.append(output);\n }\n\n conn.disconnect();\n }\n catch (MalformedURLException exc) {\n exc.printStackTrace(System.err);\n }\n catch (IOException exc) {\n exc.printStackTrace(System.err);\n }\n \n System.out.println(\"Output from Server .... \\n\");\n System.out.println(strB.toString());\n \n return strB.toString();\n }", "public String enviarInvitacion(String url, String numero, String numero2) {\r\n\t\t // Create a new HttpClient and Post Header\r\n\t\t HttpClient httpclient = new DefaultHttpClient();\r\n\t\t HttpPost httppost = new HttpPost(url);\r\n\t\t httppost.setHeader(\"User-Agent\", \"mimesic company\");\r\n\t\t String output = null;\r\n\t\t\r\n\t\t try {\r\n\t\t \r\n\t\t \t\r\n\t\t List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);\r\n\t\t nameValuePairs.add(new BasicNameValuePair(\"numero\", numero));\r\n\t\t nameValuePairs.add(new BasicNameValuePair(\"invitado\", numero2));\r\n\t\t \r\n\t\t httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\r\n\t\t\r\n\t\t // Execute HTTP Post Request\r\n\t\t HttpResponse response = httpclient.execute(httppost);\r\n\t\t \r\n\t\t HttpEntity httpEntity = response.getEntity();\r\n\t output = EntityUtils.toString(httpEntity);\r\n\t \r\n\t\t \t \r\n\t\t } catch (ClientProtocolException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t } catch (IOException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t }\r\n\t\t return output;\r\n\t\t \t \r\n\t\t}", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "private String downloadUrl(String strUrl) throws IOException {\n // Khoi tao du lieu tra ve\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n // Khoi tao url\n URL url = new URL(strUrl);\n // Mo ket noi url\n urlConnection = (HttpURLConnection) url.openConnection();\n // Ket noi url\n urlConnection.connect();\n // Lay ket qua tra ve\n iStream = urlConnection.getInputStream();\n // Doc ket qua tra ve\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n // Khoi tao buffer luu ket qua tra ve\n StringBuffer sb = new StringBuffer();\n // Doc tung dong tra ve\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n // Luu du lieu sau khi doc\n data = sb.toString();\n // Dong buffer\n br.close();\n } catch (Exception e) {\n // Neu bi loi thi log ra loi\n e.printStackTrace();\n } finally {\n // Dong stream va ket noi url\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }", "private void CreateConnection()\n throws IOException {\n URL url = new URL(requestURL);\n //creates connection\n httpConn = (HttpURLConnection) url.openConnection();\n //sets headers\n Set<Map.Entry<String, String>> set = headers.entrySet();\n for (Map.Entry<String, String> me : set) {\n httpConn.setRequestProperty(me.getKey(), me.getValue());\n }\n //sets method\n httpConn.setRequestMethod(method);\n httpConn.setUseCaches(false);\n if (method == \"POST\") {\n httpConn.setDoOutput(true);\n httpConn.setDoInput(true);\n }\n\n }", "@Override\n protected String doInBackground(String... string) {\n try {\n myurl = new URL(string[0]);\n httpURLConnection = (HttpURLConnection) myurl.openConnection();\n httpURLConnection.setRequestProperty(\"Accept\", \"application/json\");\n httpURLConnection.setRequestProperty(\"user-key\", \"e46faab9e2e5d0e8f5d57c4be68c269d\");\n httpURLConnection.connect();\n\n inputStream = httpURLConnection.getInputStream();\n inputStreamReader = new InputStreamReader(inputStream);\n bufferedReader = new BufferedReader(inputStreamReader);\n line = bufferedReader.readLine();\n result = new StringBuilder();\n while (line != null) {\n result.append(line);\n line = bufferedReader.readLine();\n }\n return result.toString();\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n return null;\n }", "@Test\n public void getRequest1() {\n str = METHOD_GET + \"/JavaPower.gif \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.devresource.org\" + ENDL +\n ACCEPT + \": text/html\" + ENDL +\n \"Range-Unit: 3388 | 1024\";\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"/JavaPower.gif\");\n assertEquals(request.getHeader(ACCEPT), \"text/html\");\n assertEquals(request.getHeader(\"Range-Unit\"), \"3388 | 1024\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "public static String httpGet(String url) throws Exception {\r\n \t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\tHttpResponse response = null;\r\n \t\tString responseString = null;\r\n \t\tHttpUriRequest request = new HttpGet(url);\r\n \t\trequest.setHeader(\"Accept-Encoding\", \"gzip\");\r\n \t\trequest.setHeader(\"User-Agent\", \"gzip\");\r\n\t\tresponse = client.execute(request);\r\n \t\tif (response.getStatusLine().getStatusCode() != 200) {\r\n \t\t\tthrow new HttpException(\"Server error: \"\r\n \t\t\t\t\t+ response.getStatusLine().getStatusCode());\r\n \t\t} else {\r\n \t\t\tresponseString = parseResponse(response);\r\n \r\n \t\t}\r\n \t\treturn responseString;\r\n \t}", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "private synchronized String execute(final HttpUriRequest request) {\n request.setParams(params);\n\n // Set the request's headers\n for (Entry<String, String> header : headers.entrySet()) {\n request.setHeader(header.getKey(), header.getValue());\n }\n\n // Execute the request and get it's content\n HttpResponse response;\n String content;\n try {\n\n // Execute the request\n response = getClient().execute(request);\n\n // Get the response content\n content = EntityUtils.toString(response.getEntity(), charset);\n } catch (IOException e) {\n throw new JsogClientException(\"Get request failed.\", e);\n }\n\n // Check the response code\n StatusLine sl = response.getStatusLine();\n if (sl.getStatusCode() != 200) {\n throw new Non200ResponseCodeException(\n sl.getStatusCode(),\n sl.getReasonPhrase(),\n content);\n }\n\n return content;\n }", "public static Response doGetRequest(String url) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n try {\n Request request = new Request.Builder()\n .url(url).addHeader(\"Content-Type\", \"text/plain\")\n .build();\n Response response = client.newCall(request).execute();\n return response;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "private void getString(RequestQueue queue) {\n stringRequest = new StringRequest(Request.Method.GET, url,\n response -> {\n // display the content of our url\n Log.d(\"Main\",\"onCreate: \" + response.substring(0, 700));\n }, error -> {\n Log.d(\"Main\", \"Failed to get info \" + error.toString());\n });\n stringRequest.setRetryPolicy(new RetryPolicy() {\n @Override\n public int getCurrentTimeout() {\n return 500;\n }\n\n @Override\n public int getCurrentRetryCount() {\n return 500;\n }\n\n @Override\n public void retry(VolleyError error) throws VolleyError {\n\n }\n });\n // Add the request to the RequestQueue.\n queue.add(stringRequest);\n }", "private String sendGetRequest() throws IOException {\n\t\tString inline = \"\";\n\t\tURL url = new URL(COUNTRYAPI);\n\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\tconn.setRequestMethod(\"GET\");\n\t\tconn.connect();\n\t\tint responsecode = conn.getResponseCode();\n\t\tif (responsecode != 200) {\n\t\t\tthrow new RuntimeException(\"HttpResponseCode: \" + responsecode);\n\t\t} else {\n\t\t\tScanner sc = new Scanner(url.openStream());\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinline += sc.nextLine();\n\t\t\t}\n\t\t\tsc.close();\n\t\t}\n\t\treturn inline.toString();\n\t}", "@Override\n\tpublic String getJsonString(String queryURL) {\n\t\t\n\t\tURL url = null;\n\t\t\n\t\tHttpURLConnection httpConn = null;\n\t\t\n\t\ttry {\n\t\t\turl = new URL(queryURL);\n\t\t\t\n\t\t\thttpConn = (HttpURLConnection) url.openConnection();\n\t\t\t\n\t\t\thttpConn.setRequestMethod(\"GET\");\n\t\t\thttpConn.setRequestProperty(\"X-Naver-Client-Id\", NaverSecret.NAVER_CLIENT_ID);\n\t\t\thttpConn.setRequestProperty(\"X-Naver-Client-Secret\", NaverSecret.NAVER_CLIENT_SECRET);\n\t\t\t\n\t\t\tint httpStatusCode = httpConn.getResponseCode();\n\t\t\t\n\t\t\tInputStreamReader is = null;\n\t\t\t\n\t\t\tif(httpStatusCode == 200) {\n\t\t\t\tis = new InputStreamReader(httpConn.getInputStream());\n\t\t\t} else {\n\t\t\t\tis = new InputStreamReader(httpConn.getErrorStream());\n\t\t\t}\n\t\t\t\n\t\t\tBufferedReader buffer = null;\n\t\t\tbuffer = new BufferedReader(is);\n\t\t\t\n\t\t\tStringBuffer sBuffer = new StringBuffer();\n\t\t\t\n\t\t\twhile(true) {\n\t\t\t\tString reader = buffer.readLine();\n\t\t\t\tif(reader == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsBuffer.append(reader);\n\t\t\t}\n\t\t\tlog.debug(\"확인 sBuffer : \" + sBuffer);\n\t\t\treturn sBuffer.toString();\n\t\t\t\n\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public static String GET(String url)\t{\t\t\t\t\n\t\tInputStream inputStream = null;\t\t\t\t\t\t\t\n\t\tString result = \"\";\t\t\t\t\t\t\t\n\t\ttry\t{\t\t\t\t\t\t\n\t\t\t// create HttpClient\t\t\t\t\t\t\n\t\t\tHttpClient httpClient = new DefaultHttpClient();\t\t\t\t\t\t\n\n\t\t\t// make GET request to the given URL\t\t\t\t\t\t\n\t\t\tHttpResponse httpResponse = httpClient.execute(new HttpGet(url));\t\t\t\t\t\t\n\n\t\t\t// receive response as inputStream\t\t\t\t\t\t\n\t\t\tinputStream = httpResponse.getEntity().getContent();\t\t\t\t\t\t\t\t\n\n\t\t\t// convert inputstream to string\t\t\t\t\t\t\t\t\n\t\t\tif(inputStream != null)\t\t\t{\t\t\t\t\t\n\t\t\t\tresult = convertInputStreamToString(inputStream);\t\t\t\t\t\t\t\t\n\t\t\t}\telse\t{\t\t\t\t\t\t\n\t\t\t\tresult = \"Did not work!\";\t\t\t\t\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t}catch (Exception e)\t{\t\t\t\t\t\n\t\t\tLog.d(\"InputStream\", e.getLocalizedMessage());\t\t\t\t\t\t\n\t\t}\t\t\t\t\t\t\t\n\n\t\treturn result;\t\t\t\t\t\t\t\n\t}", "@Override\n protected String doInBackground(String... arrays) {\n\n try {\n\n // doi tuong URL, dung de khoi tao dia chi request\n URL url = new URL(arrays[0]);\n\n // mo ket noi toi dia chi url\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n\n\n // doc du lieu thong qua InputStream\n InputStream inputStream = httpURLConnection.getInputStream();\n\n // doc du lieu\n BufferedReader r = new BufferedReader(new InputStreamReader(inputStream));\n\n StringBuilder total = new StringBuilder();\n\n for (String line; (line = r.readLine()) != null; ) {\n total.append(line).append('\\n');\n\n }\n\n return total.toString();\n\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "private String doHttpClientGet() {\n\t\t\r\n\t\tHttpGet httpGet=new HttpGet(url);\r\n\t\tHttpClient client=new DefaultHttpClient();\r\n\t\ttry {\r\n\t\t\tHttpResponse response=client.execute(httpGet);\r\n\t\t\tif(response.getStatusLine().getStatusCode()==HttpStatus.SC_OK){\r\n\t\t\t\tresult=EntityUtils.toString(response.getEntity());\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"content----->\"+result);\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic String RequestToString() throws APIException \n\t{\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.beforeRequestToString();\n\t\tString requesttoString=\"\";\n\t\ttry\n\t\t{\n\t\t\tapi.RequestToString();\n\t\t}\n\t\tcatch(APIException e)\n\t\t{\n\t\t\tfor (Listener listen : listeners1)\n\t\t\t\tlisten.onError(e);\n\t\t\tthrow new APIException(e);\n\t\t}\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.afterRequestToString();\n\t\treturn requesttoString;\n\t}", "public static String leerJSONDesdeUrl(String urlALeer) {\n URL url = null;\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n BufferedReader br_delaurl = null;\n String todo = \"\";\n try {\n url = new URL(urlALeer);\n br_delaurl = new BufferedReader(new InputStreamReader(url.openStream()));\n String linea;\n while ((linea = br_delaurl.readLine()) != null) {\n todo += linea;\n }\n } catch (Exception e) {\n e.printStackTrace();\n todo = null;\n } finally {\n if (br_delaurl != null) {\n try {\n br_delaurl.close();\n } catch (IOException e) {\n e.printStackTrace();\n todo = null;\n }\n }\n return todo;\n }\n }", "private static HttpResponse<String> sendRequest(String path) {\n\t\t//System.out.println(\"DEBUG2 \"+path);\n\t\tURIBuilder builder = createURIBuilder(path);\n\t\tHttpClient client = HttpClient.newHttpClient();\n\t\tHttpRequest request;\n\t\ttry {\n\t\t\tif(!path.contains(NEW_CLASSIF)) {\n\t\t\t\trequest = HttpRequest.newBuilder()\n\t\t\t\t\t\t.uri(builder.build())\n\t\t\t\t\t\t.timeout(Duration.ofSeconds(30))\n\t\t\t\t\t\t.build();\n\t\t\t\t//System.out.println(\"DEBUG3 creazione request \"+ request.toString() + \" per \" + path);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequest = HttpRequest.newBuilder()\n\t\t\t\t\t\t.uri(builder.build())\n\t\t\t\t\t\t.timeout(Duration.ofHours(1))\n\t\t\t\t\t\t.build();\n\n\t\t\t}\n\t\t\tHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n\t\t\t//System.out.println(\"DEBUG4 risposta \"+response + \" della richiesta \" + path);\n\t\t\treturn response;\n\n\t\t} catch (IOException e) {\n\t\t\tNotification notif = Notification.show(\"Controlla la tua connessione\");\n\t\t\tnotif.setPosition(Position.BOTTOM_END);\n\t\t\tnotif.addThemeVariants(NotificationVariant.LUMO_ERROR);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (URISyntaxException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\n\t}", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "public static String executeGet(String targetURL) {\t\n\t\t HttpURLConnection connection = null; \n\t\t try {\n\t\t //Create connection\n\t\t URL url = new URL(targetURL);\n\t\t connection = (HttpURLConnection)url.openConnection();\n\t\t connection.setRequestMethod(\"GET\");\n\t\t connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\n\t\t connection.setUseCaches(false);\n\t\t connection.setDoOutput(true);\n\n\n\t\t //Get Response \n\t\t InputStream is = connection.getInputStream();\n\t\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t\t StringBuilder response = new StringBuilder(); // or StringBuffer if not Java 5+ \n\t\t String line;\n\t\t while((line = rd.readLine()) != null) {\n\t\t response.append(line);\n\t\t response.append('\\r');\n\t\t }\n\t\t rd.close();\n\t\t return response.toString();\n\t\t } catch (Exception e) {\n\t\t return e.getMessage();\n\t\t } finally {\n\t\t if(connection != null) {\n\t\t connection.disconnect(); \n\t\t }\n\t\t }\n\t\t}", "@Override\n protected String doInBackground(String... params) {\n StringBuilder results = new StringBuilder();\n\n try {\n URL url = new URL(params[0]);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\n int statusCode = conn.getResponseCode();\n if (statusCode == 200) {\n InputStream inputStream = new BufferedInputStream(conn.getInputStream());\n\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n results.append(line);\n }\n }\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n return results.toString();\n }", "private void makeSampleHttpRequest(String url) {\r\n\r\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String response) {\r\n texto_a_imprimir = response.toString();\r\n //showToast(texto_a_imprimir);\r\n vistaprevia.setText(texto_a_imprimir);\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n // Handle your error types accordingly.For Timeout & No connection error, you can show 'retry' button.\r\n // For AuthFailure, you can re login with user credentials.\r\n // For ClientError, 400 & 401, Errors happening on client side when sending api request.\r\n // In this case you can check how client is forming the api and debug accordingly.\r\n // For ServerError 5xx, you can do retry or handle accordingly.\r\n if( error instanceof NetworkError) {\r\n } else if( error instanceof ClientError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof ServerError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof AuthFailureError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof ParseError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof NoConnectionError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof TimeoutError) {\r\n texto_a_imprimir = error.toString();\r\n }\r\n showToast(error.getMessage());\r\n }\r\n });\r\n /*\r\n //Set a retry policy in case of SocketTimeout & ConnectionTimeout Exceptions. Volley does retry for you if you have specified the policy.\r\n jsonObjRequest.setRetryPolicy(new DefaultRetryPolicy(5000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\r\n jsonObjRequest.setTag(TAG_REQUEST);\r\n mVolleyQueue.add(jsonObjRequest);\r\n */\r\n stringRequest.setShouldCache(true);\r\n stringRequest.setTag(TAG_REQUEST);\r\n mVolleyQueue.add(stringRequest);\r\n }", "public ServiceResponse getRequest(String url) throws IOException {\n HttpClient client = HttpClientBuilder.create().build();\n HttpGet request = new HttpGet(url);\n HttpResponse httpResponse = client.execute(request);\n ServiceResponse response = new ServiceResponse(httpResponse.getStatusLine().getStatusCode());\n response.setReader(new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent())));\n return response;\n }", "public static Response request(String urlString) {\n HttpURLConnection urlConnection = null;\n InputStream in = null;\n try {\n URL url = new URL(urlString);\n urlConnection = (HttpURLConnection)url.openConnection();\n urlConnection.setConnectTimeout(CONNECT_TIMEOUT);\n urlConnection.setReadTimeout(READ_TIMEOUT);;\n // prefer json to text\n urlConnection.setRequestProperty(\"Accept\", \"application/json,text/plain;q=0.2\");\n in = urlConnection.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line = null;\n StringBuilder sb = new StringBuilder();\n while ((line = br.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n int statusCode = urlConnection.getResponseCode();\n String result = sb.toString().trim();\n if (statusCode == INTERNAL_SERVER_ERROR) {\n JSONObject errorObj = JSON.parseObject(result);\n if (errorObj.containsKey(\"errorMsg\")) {\n return new Response(errorObj.getString(\"errorMsg\"), false);\n }\n return new Response(result, false);\n }\n return new Response(result);\n } catch (IOException e) {\n return new Response(e.getMessage(), false);\n } finally {\n IOUtils.close(in);\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n }\n }", "@Override\r\n protected String doInBackground(String... params) {\r\n HttpClient httpclient = new DefaultHttpClient();\r\n HttpGet httppost = new HttpGet(params[0]); // params[0] contains url string\r\n try {\r\n HttpResponse response = httpclient.execute(httppost);\r\n jsonResult = inputStreamToString(\r\n response.getEntity().getContent()).toString();\r\n }\r\n\r\n catch (ClientProtocolException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "private String downloadUrl(String myUrl) throws IOException {\n InputStream is = null;\n\n try {\n URL url = new URL(myUrl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the QUERY\n conn.connect();\n //int response = conn.getResponseCode();\n //Log.d(\"JSON\", \"The response is: \" + response);\n is = conn.getInputStream();\n\n // Convert the InputStream into a string\n return readIt(is);\n\n // Makes sure that the InputStream is closed after the app is\n // finished using it.\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }", "public String buildReponse(HttpURLConnection con) throws IOException {\n\n BufferedReader in = new BufferedReader(\n\t\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\t\treturn response.toString();\n\t}", "@Override\n protected String doInBackground(String... strings) {\n StringBuilder content = new StringBuilder();\n try {\n URL url = new URL(strings[0]);\n InputStreamReader inputStream = new InputStreamReader(url.openConnection().getInputStream());\n BufferedReader bufferedReader = new BufferedReader(inputStream);\n String line = \"\" ;\n while ((line = bufferedReader.readLine()) != null) {\n content.append(line);\n }\n bufferedReader.close();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return content.toString();\n }", "private URL createURLaddUser() {\n try {\n String urlString;\n\n urlString = \"http://cs262.cs.calvin.edu:8081/fitness/users\";\n\n return new URL(urlString);\n\n } catch (Exception e) {\n Toast.makeText(this, \"Failed to make URL\", Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "public static String postHTTP(String urlToRead) throws IOException {\n //reference: https://stackoverflow.com/a/19912858\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httpPost = new HttpPost(urlToRead);\n\n HttpResponse response = httpclient.execute(httpPost);\n\n if (response.getStatusLine().getStatusCode() == 200) {\n String server_response = EntityUtils.toString(response.getEntity());\n return server_response;\n } else {\n System.out.println(\"no response from server\");\n }\n return \"\";\n }", "public static String GET(String urlString) {\n\t\ttry {\n\t\t\tURL url = new URL(urlString);\n\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\tconn.connect();\n\t\t\tInputStream inputStream = conn.getInputStream();\n\t\t\treturn convertInputStreamToString(inputStream);\n\t\t} catch (MalformedURLException e) {\n\t\t\t// e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// e.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public static String getResponseFromURL(String urlString, String method) {\n StringBuilder inline = new StringBuilder();\n try {\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(method);\n conn.connect();\n int responseCode = conn.getResponseCode();\n\n if (responseCode != 200) {\n throw new RuntimeException(\"ResponseCode :\" + responseCode);\n } else {\n Scanner sc = new Scanner(url.openStream());\n while (sc.hasNext()) {\n inline.append(sc.nextLine());\n }\n sc.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return inline.toString();\n }", "private String sendRequest(String requestUrl) throws Exception {\n\t\t \n\t\tURL url = new URL(requestUrl);\n\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\n\t\tconnection.setRequestMethod(\"GET\");\n\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n \n\t\tBufferedReader in = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(connection.getInputStream(), \"UTF-8\"));\n\t\t\n\t\tString responseCode = Integer.toString(connection.getResponseCode());\n\t\tif(responseCode.startsWith(\"2\")){\n\t\t\tString inputLine;\n\t\t\tStringBuffer response = new StringBuffer();\n \n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tresponse.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\t\t\tconnection.disconnect();\n\t\t\treturn response.toString();\n \t} else {\n \t\tSystem.out.println(\"Unable to connect to \"+requestUrl+\n \t\t\". Please check whether the instance is up and also the security group settings\"); \n\t\t\tconnection.disconnect();\n \t\treturn null;\n\t \t} \n\t}", "public String issueGetRequest(String query) {\n URL url;\n String result = \"\";\n\n return \"valid\";\n /**\n * Todo: When server API is up and running uncomment this.\n *\n * try { url = new URL(server + \"?\" + query); BufferedReader br = new\n * BufferedReader(new InputStreamReader(url.openStream())); String\n * strTemp = \"\";\n * \n * while (null != (strTemp = br.readLine())) { result = strTemp; }\n * \n * } catch (Exception e) { e.printStackTrace(); }\n * \n * return result;\n */\n }", "public String prepareRequestToHost(Object request) {\n\t\tString clRequest = null;\n\t\tUserAuthRequestAndTXLifeRequest userRequest = ((NbaTXLife) request).getTXLife().getUserAuthRequestAndTXLifeRequest();\n\t\tif (userRequest != null && userRequest.getTXLifeRequestCount() > 0) {\n\t\t\tTXLifeRequest txRequest = userRequest.getTXLifeRequestAt(0);\n\t\t\tlong transType = txRequest.getTransType();\n\t\t\tlong transSubType = txRequest.getTransSubType();\n\t\t\tif (transType == NbaOliConstants.TC_TYPE_NEWBUSSUBMISSION && transSubType == NbaOliConstants.TC_SUBTYPE_BACKEND_PRINT) {\n\t\t\t\t// TODO determine why a new instance of this same class is needed\n\t\t\t\tNbaCyberPrintRequests cyberRequest = new NbaCyberPrintRequests();\n\t\t\t\ttry {\n\t\t\t\t\tclRequest = cyberRequest.createPrintRequest((NbaTXLife) request);\n\t\t\t\t} catch (NbaBaseException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(new NbaBaseException(\"Invalid Print Type Requested\"));\n\t\t\t}\n\t\t\tgetLogger().logDebug(clRequest);\n\t\t}\n\t\treturn clRequest;\n\t}", "public String makeNetworkCall(String s) {\n\n try {\n URL url = new URL(s);\n\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n\n httpURLConnection.setRequestMethod(\"GET\");\n\n httpURLConnection.setConnectTimeout(3000);\n\n InputStream is = httpURLConnection.getInputStream();\n\n Scanner scanner = new Scanner(is);\n\n //This allows the scanner to read the entire file content in one go\n scanner.useDelimiter(\"\\\\A\");\n\n String result = \"\";\n\n if (scanner.hasNext()) {\n result = scanner.next();\n }\n\n return result;\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.e(\"TAG\", \"makeNetworkCall: Incorrect URL : \" + s);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return \"Some unexpected error occurred!\";\n\n }", "private static String load(final String url) throws IOException {\n\t\tHttpURLConnection conn =\n\t\t\t(HttpURLConnection) new URL(url).openConnection();\n\n\t\tconn.setDoInput(true);\n\t\tconn.setDoOutput(false);\n\t\tconn.setRequestMethod(\"GET\");\n\t\tconn.connect();\n\n\t\tint respCode = conn.getResponseCode();\n\t\tif (respCode != HttpURLConnection.HTTP_OK) {\n\t\t\tthrow new IOException(conn.getResponseMessage());\n\t\t}\n\n\t\tString contentType =\n\t\t\tconn.getHeaderField(\"Content-Type\").toUpperCase(Locale.ENGLISH);\n\t\tString csName = DEFAULT_CHARSET;\n\t\tint csPos = contentType.lastIndexOf(\"CHARSET=\");\n\t\tif (csPos != -1) {\n\t\t\tcsName = contentType.substring(csPos + \"CHARSET=\".length()).trim();\n\t\t}\n\t\tCharset charset = Charset.forName(csName);\n\n\t\tInputStream is = conn.getInputStream();\n\t\tif (is == null) {\n\t\t\tthrow new IOException(\"No input stream\");\n\t\t}\n\t\tInputStreamReader isr = new InputStreamReader(is, charset);\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\t\t\tint c;\n\t\t\twhile ((c = isr.read()) != -1) {\n\t\t\t\tsb.appendCodePoint(c);\n\t\t\t}\n\t\t} finally {\n\t\t\tisr.close();\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "public static String getString(String metodo, RequestBody formBody) {\n\n try {\n URL url = new URL(\"http://0.0.0.0:5000/\" + metodo);\n Request request = new Request.Builder().url(url).post(formBody).build();\n Response response = webClient.newCall(request).execute();//Aqui obtiene la respuesta en dado caso si hayas pues un return en python\n String respuesta = response.body().string();//y este seria el string de las respuesta\n return respuesta;\n } catch (MalformedURLException ex) {\n java.util.logging.Logger.getLogger(com.servlet.conexionl_login.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n java.util.logging.Logger.getLogger(com.servlet.conexionl_login.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "@Test\n public void getRequest4() {\n str = METHOD_GET + \"http://foo.com/someservlet.jsp?param1=foo \" + HTTP_VERSION + ENDL +\n ACCEPT + \": text/jsp\" + ENDL +\n CONNECTION_CLOSE;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"foo.com/someservlet.jsp\");\n assertEquals(request.getDomainName(), \"foo.com\");\n assertEquals(request.getHeader(ACCEPT), \"text/jsp\");\n assertEquals(request.getHeader(CONNECTION), CLOSE_STR);\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"param1\"), \"foo\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "private String getURL(String feedUrl) {\n\tStringBuilder sb = null;\n\ttry {\n for(int i = 3; i>0; i--) {\n\t sb = new StringBuilder();\n URL url = new URL(feedUrl);\n//User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 GTB7.1 ( .NET CLR 3.5.30729)\n//Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\n//Accept-Language: en-us,en;q=0.5\n//Accept-Encoding: gzip,deflate\n//Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\n//Keep-Alive: 115\n//Connection: keep-alive\n//\tHttpsURLConnection uc = (HttpsURLConnection) url.openConnection();\n\tHttpURLConnection uc = (HttpURLConnection) url.openConnection();\n\tuc.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 GTB7.1 ( .NET CLR 3.5.30729)\");\n//Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\n\tuc.setRequestProperty(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n\tuc.setRequestProperty(\"Accept-Language\", \"en-us,en;q=0.5\");\n\tuc.setRequestProperty(\"Accept-Encoding\", \"gzip,deflate\");\n\tuc.setRequestProperty(\"Accept-Charset\", \"ISO-8859-1,utf-8;q=0.7,*;q=0.7\");\n\tuc.setRequestProperty(\"Keep-Alive\", \"115\");\n\tuc.setRequestProperty(\"Connection\", \"keep-alive\");\n//Keep-Alive: 115\n//Connection: keep-alive\n//\tif (userName != null && password != null) {\n//\t\tuc.setRequestProperty(\"Authorization\", \"Basic \" + encodedAuthenticationString);\n//\t}\n\t// ori setting??\n//\tuc.setReadTimeout(TIME_OUT);\n//\tuc.setFollowRedirects(true);\n//\tuc.setInstanceFollowRedirects(true);\n//\tuc.setAllowUserInteraction(true);\n\tuc.setDoOutput(true);\n\tuc.setDoInput(true);\n\tuc.setUseCaches(false);\n\tuc.setRequestMethod(\"POST\");\n\tuc.setRequestProperty(\"Content-Type\", \"text/xml\");\n\t\n\tBufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));//uc.getInputStream()\n\tString inputLine;\n//\t'aa7c.com')\" onmouseout=\"menuLayers.hide()\">Available</a>\n\tboolean refreshAgain = false;\n\twhile ((inputLine = in.readLine()) != null) {\n//\t\tSystem.out.println(inputLine);\n\t\tsb.append(inputLine);\n\t\tif( inputLine.contains(\"Refresh\") ) {\n\t\t\trefreshAgain = true;\n\t\t\tSystem.out.println(\"Refresh\");\n\t\t}\n\t}\n\tin.close();\n\tuc.disconnect();\t\t\n//\tRefresh\n\tif( refreshAgain ) {\n\t Thread.sleep(1000);\n\t}\n\telse break;\n }\n }catch(Exception ee){}\nreturn sb.toString();\n}", "private String getResultByUrl(String url) {\r\n\r\n\t\tRequestConfig.Builder requestBuilder = RequestConfig.custom();\r\n\t\trequestBuilder = requestBuilder.setConnectTimeout(75000);\r\n\t\trequestBuilder = requestBuilder.setConnectionRequestTimeout(75000);\r\n\t\trequestBuilder.setSocketTimeout(75000);\r\n\r\n\t\tHttpClientBuilder builder = HttpClientBuilder.create();\r\n\t\tbuilder.setDefaultRequestConfig(requestBuilder.build());\r\n\t\tclient = builder.build();\r\n\r\n\t\trequest = new HttpGet(url);\r\n\t\trequest.addHeader(\"Accept\", \"application/json\");\r\n\r\n\t\tHttpResponse response = null;\r\n\t\tString r = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Sending request: \" + url);\r\n\t\t\t\t\tresponse = client.execute(request);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} catch (ConnectionPoolTimeoutException e) {\r\n\t\t\t\t\tSystem.out.println(\"Connection timeout. Trying again...\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t\t} catch (InterruptedException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Response Code : \"\r\n\t\t\t\t\t+ response.getStatusLine().getStatusCode());\r\n\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(response.getEntity()\r\n\t\t\t\t\t.getContent()));\r\n\r\n\t\t\tStringBuffer result = new StringBuffer();\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tresult.append(line);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(result + \"\\n\");\r\n\t\t\ttry {\r\n\t\t\t\tTimeUnit.SECONDS.sleep(1);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tr = result.toString();\r\n\t\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\r\n\r\n\t\t\tJsonObject jsonResult = gson.fromJson(result.toString(),\r\n\t\t\t\t\tJsonObject.class);\r\n\t\t\tif (jsonResult.get(\"backoff\") != null) {\r\n\t\t\t\tint backoff = (jsonResult.get(\"backoff\")).getAsInt();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Received backoff. Waiting for \"\r\n\t\t\t\t\t\t\t+ backoff + \"seconds...\");\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(backoff + 5);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn r;\r\n\t}" ]
[ "0.6755491", "0.6749503", "0.65743226", "0.6523783", "0.64812183", "0.64692664", "0.63787526", "0.63658893", "0.6322075", "0.6288244", "0.62503254", "0.62409604", "0.62177604", "0.62155", "0.62112266", "0.6206567", "0.6202129", "0.6199217", "0.61511743", "0.6147415", "0.61474067", "0.61467665", "0.61323315", "0.61255085", "0.6122439", "0.6119637", "0.6112165", "0.61061233", "0.60885423", "0.60829335", "0.6081005", "0.6060044", "0.60576475", "0.6035998", "0.60220045", "0.6018798", "0.5964777", "0.59389347", "0.5921235", "0.5915369", "0.58925736", "0.58886427", "0.5887896", "0.5870704", "0.5861586", "0.5849385", "0.5848454", "0.5819896", "0.5810335", "0.58078045", "0.58018965", "0.57910913", "0.57839763", "0.57722884", "0.57489663", "0.5722743", "0.5721332", "0.57061034", "0.5702664", "0.5690974", "0.56861913", "0.5682173", "0.56812", "0.566432", "0.56621516", "0.5661745", "0.5658422", "0.56539756", "0.5653373", "0.56421244", "0.5637144", "0.56321317", "0.56223565", "0.5613421", "0.56024617", "0.5601168", "0.559519", "0.5578215", "0.55684936", "0.5566228", "0.555629", "0.55541915", "0.5544547", "0.5544349", "0.55327886", "0.5525773", "0.5520616", "0.5519235", "0.5509933", "0.5505357", "0.5478075", "0.5470336", "0.546777", "0.54665726", "0.5465917", "0.54611975", "0.54552776", "0.5449633", "0.5445664", "0.5441647" ]
0.6436056
6
Convierte la inputStream en una String con toda la respuesta en JSON del servidor.
private static String readFromStream(InputStream inputStream) throws IOException { StringBuilder output = new StringBuilder(); if (inputStream != null) { InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName("UTF-8")); BufferedReader reader = new BufferedReader(inputStreamReader); String line = reader.readLine(); while (line != null) { output.append(line); line = reader.readLine(); } } return output.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String responsetoString(InputStream in) throws IOException{\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line = null;\n\t\twhile((line = br.readLine())!= null){\n\t\t\tsb.append(line);\t\t\t\n\t\t}\n\t\tin.close();\n\t\treturn sb.toString();\n\t}", "private String getJson(InputStream inputStream){\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, \"UTF-8\");\n Scanner scanner = new Scanner(inputStreamReader);\n StringBuffer stringBuffer = new StringBuffer();\n while (scanner.hasNext()) {\n stringBuffer.append(scanner.nextLine());\n }\n System.out.println(\"STRING BUFFER >>>>>>>\" +stringBuffer);\n return stringBuffer.toString();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public String inputStreamToString(InputStream inputStreamFromServer) throws IOException{\r\n //create bufferedReader from inputStream\r\n BufferedReader bufferedReader = new BufferedReader(\r\n new InputStreamReader(inputStreamFromServer));\r\n\r\n //hold variables\r\n String inputLine;\r\n StringBuffer responseAsString = new StringBuffer();\r\n\r\n //reading with buffer\r\n while((inputLine = bufferedReader.readLine()) != null){\r\n responseAsString.append(inputLine);\r\n }\r\n\r\n return responseAsString.toString();\r\n\r\n }", "private String readJsonFile(InputStream inputStream) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n byte bufferByte[] = new byte[1024];\n int length;\n try {\n while ((length = inputStream.read(bufferByte)) != -1) {\n outputStream.write(bufferByte, 0, length);\n }\n outputStream.close();\n inputStream.close();\n } catch (IOException e) {\n\n }\n return outputStream.toString();\n }", "public String StreamToString(InputStream is) {\r\n //Creamos el Buffer\r\n BufferedReader reader =\r\n new BufferedReader(new InputStreamReader(is));\r\n StringBuilder sb = new StringBuilder();\r\n String line = null;\r\n try {\r\n //Bucle para leer todas las líneas\r\n //En este ejemplo al ser solo 1 la respuesta\r\n //Pues no haría falta\r\n while((line = reader.readLine())!=null){\r\n sb.append(line);\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n is.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n //retornamos el codigo límpio\r\n return sb.toString();\r\n }", "public static String readIt(InputStream is) throws IOException {\n BufferedReader reader = null;\n reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n StringBuilder responseStrBuilder = new StringBuilder();\n String inputStr;\n while ((inputStr = reader.readLine()) != null) {\n responseStrBuilder.append(inputStr);\n }\n return responseStrBuilder.toString();\n }", "private String convertStreamToString(InputStream is) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder builder = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n return builder.toString();\n }", "private static String convertStreamToString(InputStream inputStream) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public static String GetStringFromInputStream(InputStream is) {\n\t\tString line;\n\t\tStringBuilder total = new StringBuilder();\n\n\t\t// Wrap a BufferedReader around the InputStream\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\n\t\t// Read response until the end\n\t\ttry {\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\ttotal.append(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tis.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tUtilities\n\t\t\t\t\t\t.LogWarning(\"GetStringFromInputStream - could not close stream\");\n\t\t\t}\n\t\t}\n\n\t\t// Return full string\n\t\treturn total.toString();\n\t}", "public static String streamToString(InputStream is) {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder stringBuilder = new StringBuilder();\n String line = null;\n\n try {\n\n while ((line = reader.readLine()) != null) {\n stringBuilder.append(line);\n }\n\n reader.close();\n\n } catch (IOException e) {\n // obsłuż wyjątek\n Log.d(WebServiceHandler.class.getSimpleName(), e.toString());\n }\n\n return stringBuilder.toString();\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n //Si la URL es null se devuelve inediatamente.\n if (url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(100000 /* Milisegundos.*/);\n urlConnection.setConnectTimeout(100000 /* Milisegundos.*/);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // Si la request se realiza correctamente (código de respuesta 200) se lee el input\n // stream y se le hace parse a la respuesta.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error de conexión: \" + urlConnection.getResponseCode());\n }\n // Aquí simplemente hacemos catch a la IOException.\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problema obteniendo los datos en JSON del servidor\", e);\n // Independientemente de que se lance una exception o no en el bloque finally se realiza\n // una desconexión (o se \"cierra\" como en el caso del inputStream) para poder reusarlo.\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n // Se devuelve como resultado el JsonResponse que albergará la String inputStream.\n return jsonResponse;\n }", "private String responseString(HttpURLConnection con) throws IOException, NullPointerException {\r\n\t\t\t\r\n\tStringBuilder content = null;\r\n\ttry (BufferedReader in = new BufferedReader(\r\n new InputStreamReader(con.getInputStream()))) {\r\n\r\n\t\tString line;\r\n content = new StringBuilder();\r\n\r\n while ((line = in.readLine()) != null) {\r\n content.append(line);\r\n }\r\n }\r\n\treturn (content != null ? content.toString() : null);\r\n\t\r\n\t}", "private static String getResponseAsString(HttpURLConnection connection) throws Exception {\n InputStream in = connection.getInputStream();\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n int b;\n while ((b = in.read()) != -1) {\n out.write(b);\n }\n return out.toString();\n }", "private String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line).append('\\n');\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "public DtResponse readInfoGralJsonStream(InputStream in) throws IOException {\n InputStreamReader isReader = new InputStreamReader(in);\n //Creating a BufferedReader object\n BufferedReader breader = new BufferedReader(isReader);\n StringBuffer sb = new StringBuffer();\n String str;\n while((str = breader.readLine())!= null){\n sb.append(str);\n }\n Log.i(TAG, sb.toString());\n JsonReader reader = new JsonReader(new StringReader(sb.toString()));\n List<DtResponse> res = null;\n try {\n return readRESTMessage(reader);\n } finally {\n reader.close();\n }\n }", "public String convertStreamToString(InputStream is) {\n try {\n if (is != null) {\n Writer writer = new StringWriter();\n\n char[] buffer = new char[1024];\n try {\n Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n int n;\n while ((n = reader.read(buffer)) != -1) {\n writer.write(buffer, 0, n);\n }\n } finally {\n is.close();\n }\n return writer.toString();\n } else {\n return \"\";\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Did not expect this one...\", e);\n }\n }", "public static String readResponse(HttpURLConnection request) throws IOException {\r\n\t ByteArrayOutputStream os;\r\n\t try (InputStream is = request.getInputStream()) {\r\n\t os = new ByteArrayOutputStream();\r\n\t int b;\r\n\t while ((b = is.read()) != -1) {\r\n\t os.write(b);\r\n\t }\r\n\t }\r\n\t return new String(os.toByteArray());\r\n\t}", "private String getResponse(InputStream input) throws IOException {\n\t\ttry (BufferedReader buffer = new BufferedReader(new InputStreamReader(input))) {\n\t\t\treturn buffer.lines().collect(Collectors.joining(\"\\n\"));\n\t\t}\n\t}", "private static String convertStreamToString(InputStream is) {\r\n\t\t/*\r\n\t\t * To convert the InputStream to String we use the\r\n\t\t * BufferedReader.readLine() method. We iterate until the BufferedReader\r\n\t\t * return null which means there's no more data to read. Each line will\r\n\t\t * appended to a StringBuilder and returned as String.\r\n\t\t */\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\tString line = null;\r\n\t\ttry {\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tsb.append(line + \"\\n\");\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n//\t\t\tLog.e(\"HTTP\", \"HTTP::convertStreamToString IOEX\",e);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tis.close();\r\n\t\t\t} catch (IOException e) {\r\n//\t\t\t\tLog.e(Constants.TAG, \"HTTP::convertStreamToString, finally catch IOEX\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "private static String convertInputStreamToString(InputStream inputStream) throws IOException{\n BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));\n String line = \"\";\n String result = \"\";\n while((line = bufferedReader.readLine()) != null)\n result += line;\n\n inputStream.close();\n return result;\n\n }", "private static String convertInputStreamToString(InputStream inputStream) throws IOException {\n BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));\n String line = \"\";\n String result = \"\";\n while((line = bufferedReader.readLine()) != null)\n result += line;\n\n inputStream.close();\n return result;\n\n }", "public String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "private static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is), 8192);\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return sb.toString();\n }", "private StringBuilder inputStreamToString(InputStream is) {\n \t String line = \"\";\n \t StringBuilder total = new StringBuilder();\n \t \n \t // Wrap a BufferedReader around the InputStream\n \t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n \n \t // Read response until the end\n \t try {\n \t\t\twhile ((line = rd.readLine()) != null) { \n \t\t\t total.append(line); \n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t \n \t // Return full string\n \t return total;\n \t}", "private String convertStreamToString(InputStream is) throws IOException {\r\n\t\tint bufSize = 8 * 1024;\r\n\t\tif (is != null) {\r\n\t\t\tWriter writer = new StringWriter();\r\n\r\n\t\t\tchar[] buffer = new char[bufSize];\r\n\t\t\ttry {\r\n\t\t\t\tInputStreamReader ireader = new InputStreamReader(is, \"UTF-8\");\r\n\t\t\t\tReader reader = new BufferedReader(ireader, bufSize);\r\n\t\t\t\tint n;\r\n\t\t\t\twhile ((n = reader.read(buffer)) != -1) {\r\n\t\t\t\t\twriter.write(buffer, 0, n);\r\n\t\t\t\t}\r\n\t\t\t\treader.close();\r\n\t\t\t\tireader.close();\r\n\t\t\t\treturn writer.toString();\r\n\t\t\t} catch (OutOfMemoryError ex) {\r\n\t\t\t\tLog.e(\"b2evo_android\", \"Convert Stream: (out of memory)\");\r\n\t\t\t\twriter.close();\r\n\t\t\t\twriter = null;\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"\";\r\n\t\t\t} finally {\r\n\t\t\t\tis.close();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "private String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n String line;\n try {\n // building the string\n while ((line = reader.readLine()) != null) {\n sb.append(line).append('\\n');\n }\n } catch (IOException e) {\n // error occurred in the inputstream\n Log.e(TAG, \"IOException: \" + e.getMessage());\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n // error occurred closing input stream\n Log.e(TAG, \"IOException: \" + e.getMessage());\n }\n }\n return sb.toString();\n }", "private static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "private static String getResponseString(URLConnection conn) throws IOException {\n\t\tReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int c; (c = in.read()) >= 0; )\n\t\t\tsb.append((char) c);\n\t\treturn sb.toString();\n\t}", "private String leerRespuestaApi(InputStream stream) throws IOException {\n //NECESITAMOS UN LECTOR DEL FLUJO\n BufferedReader buffer = new BufferedReader(new InputStreamReader(stream));\n //TENEMOS QUE LEER EL FLUJO Y PONER UN SEPARADOR DE ENTER\n //ENTRE LAS LINEAS\n String linea = \"\";\n //UN STRINGBUFFER SIRVE PARA LEER CONTENIDO MUY GRANDE\n StringBuffer data = new StringBuffer();\n //EL SEPARADOR DE ENTER DE CADA LINEA\n String separador = \"\";\n //MIENTRAS QUE EXISTAN LINEAS EN EL XML, DENTRO BUCLE\n while ((linea = buffer.readLine()) != null) {\n //AÑADIMOS EL CONTENIDO DE DATOS A DATA\n data.append(separador + linea);\n separador = \"\\n\";\n }\n //RECUPERAMOS LOS DATOS COMO STRING\n String response = data.toString();\n return response;\n }", "private String streamToString(InputStream is) throws IOException {\n String str = \"\";\n \n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n \n try {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is));\n \n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n \n reader.close();\n } finally {\n is.close();\n }\n \n str = sb.toString();\n }\n \n return str;\n }", "private static String convertInputStreamToString(InputStream inputStream) throws IOException{\t\t\t\t\t\t\t\t\t\n\n\t\tBufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\t\t\t\t\t\t\t\t\t\n\t\tString line = \"\";\t\t\t\t\t\t\t\t\t\n\t\tString result = \"\";\t\t\t\t\t\t\t\t\t\n\t\twhile((line = bufferedReader.readLine()) != null)\t{\t\t\t\t\t\t\t\t\n\t\t\tresult += line;\t\t\t\t\t\t\t\t\n\t\t}\t\t\t\t\t\t\t\t\t\n\n\t\tinputStream.close();\t\t\t\t\t\t\t\t\t\n\t\treturn result;\t\t\t\t\t\t\t\t\t\n\t}", "private static String convertStreamToString(InputStream is) {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t sb.append(line + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n try {\n\t\t\tis.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n return sb.toString();\n \n }", "private String readString(InputStream in) throws IOException {\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in, \"iso-8859-1\"));\r\n\t\tString inputLine;\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\twhile ((inputLine = reader.readLine()) != null) {\r\n\t\t\tresponse.append(inputLine);\r\n\t\t}\r\n\t\tin.close();\r\n\t\treturn response.toString();\r\n\t}", "private static String readFromStream(InputStream inputStream) throws IOException {\n\n // Create a new empty string builder\n StringBuilder stringBuilder = new StringBuilder();\n\n // Create a bufferedReader that reads from the inputStream param\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream,\n Charset.forName(\"UTF-8\")));\n\n // Create a string that is one line of the buffered reader\n String line = bufferedReader.readLine();\n\n while (line != null) {\n // Add line to stringBuilder\n stringBuilder.append(line);\n\n // Set line to the next line in buffered reader\n line = bufferedReader.readLine();\n }\n\n // Return string builder as a string\n return stringBuilder.toString();\n }", "private static String convertStreamToString(InputStream is) {\r\n\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\tString line = null;\r\n\t\ttry {\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tsb.append(line + \"\\n\");\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tis.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "private static String readInputStream(InputStream responseStream) {\n if (responseStream == null) {\n Log.e(LOG_TAG, \"Provided InputStream is null, exiting method early\");\n return null;\n }\n\n StringBuilder response = new StringBuilder();\n String line;\n\n InputStreamReader inputStreamReader = new InputStreamReader(responseStream);\n BufferedReader reader = new BufferedReader(inputStreamReader);\n\n try {\n line = reader.readLine();\n while (line != null) {\n response.append(line);\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem occured while reading from response stream\");\n e.printStackTrace();\n }\n\n return response.toString();\n }", "public static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n \n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "public String convertStreamToString(InputStream is) throws IOException {\r\n /*\r\n * To convert the InputStream to String we use the Reader.read(char[]\r\n * buffer) method. We iterate until the Reader return -1 which means\r\n * there's no more data to read. We use the StringWriter class to\r\n * produce the string.\r\n */\r\n if (is != null) {\r\n Writer writer = new StringWriter();\r\n char[] buffer = new char[1024];\r\n try {\r\n Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\r\n int n;\r\n while ((n = reader.read(buffer)) != -1) {\r\n writer.write(buffer, 0, n);\r\n }\r\n } finally {\r\n is.close();\r\n }\r\n return writer.toString();\r\n } else {\r\n return \"\";\r\n }\r\n }", "public static String convertStreamToString(InputStream is) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public static String streamToString(InputStream is) throws IOException {\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n } finally {\n is.close();\n }\n return sb.toString();\n } else {\n return \"\";\n }\n\t}", "public static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n finally {\n try {\n is.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "public static String convertStreamToString(InputStream is) throws IOException {\r\n\t\tif (is != null) {\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tString line;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\r\n\t\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\t\tsb.append(line).append(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\tis.close();\r\n\t\t\t}\r\n\t\t\treturn sb.toString();\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "private static String convertStreamToString(InputStream is)\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try\n {\n while ((line = reader.readLine()) != null)\n {\n sb.append(line + \"\\n\");\n }\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n is.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n System.out.println(sb.toString());\n return sb.toString();\n }", "public static String convertStreamToString(InputStream inputStream) {\n\n String result = \"\";\n try {\n\n Scanner scanner = new Scanner(inputStream, \"UTF-8\").useDelimiter(\"\\\\A\");\n if (scanner.hasNext()) {\n result = scanner.next();\n }\n inputStream.close();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n return result;\n }", "private String convertStreamToString(InputStream is) throws IOException, NoInternetConnectionException\n {\n if (is != null)\n {\n Writer writer = new StringWriter();\n\n char[] buffer = new char[1024];\n try\n {\n Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n int n;\n while ((n = reader.read(buffer)) != -1)\n {\n if (!netManager.isConnectedToInternet())\n {\n reader.close();\n throw new NoInternetConnectionException();\n }\n writer.write(buffer, 0, n);\n }\n } finally\n {\n is.close();\n }\n return writer.toString();\n } else\n {\n return \"\";\n }\n }", "protected String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n log.info(sb.toString());\n return sb.toString();\n }", "public static String convertStreamToString(InputStream is) {\n String line = \"\";\n StringBuilder total = new StringBuilder();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n try {\n while ((line = rd.readLine()) != null) {\n total.append(line);\n }\n } catch (Exception e) {\n\n }\n return total.toString();\n }", "private String getBody(InputStream stream) throws IOException {\r\n\t\t// retrieve response body\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(stream));\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tString line;\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tbuffer.append(line);\r\n\t\t\t}\r\n\r\n\t\t\treturn buffer.toString();\r\n\t\t} finally {\r\n\t\t\tif (br != null) {\r\n\t\t\t\tbr.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static String convertStreamToString(InputStream is) {\n\t\tInputStreamReader isr = new InputStreamReader(is);\n BufferedReader reader = new BufferedReader(isr);\n StringBuilder sb = new StringBuilder();\n \n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n \tLog.e(TAG, e.getMessage(), e);\n } finally {\n try {\n reader.close();\n } catch (IOException e) {\n \tLog.w(TAG, e.getMessage(), e);\n }\n \n try {\n isr.close();\n } catch (IOException e) {\n \tLog.w(TAG, e.getMessage(), e);\n }\n }\n \n return sb.toString();\n }", "private String readStream(InputStream in) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = in.read();\n while(i != -1) {\n bo.write(i);\n i = in.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "public static String inputStreamToString(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n\n return null;\n\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return sb.toString();\n\n }", "@NonNull\n public static String getStringFrom(InputStream inputStream) {\n StringBuffer dataStringBuffer = new StringBuffer(\"\");\n try {\n InputStreamReader isr = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(isr);\n String readString = bufferedReader.readLine();\n while (readString != null) {\n dataStringBuffer.append(readString);\n readString = bufferedReader.readLine();\n }\n isr.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n return dataStringBuffer.toString();\n }", "public String convertStreamToString(InputStream instream) throws Exception {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(instream));\n\t\t StringBuilder sb = new StringBuilder();\n\t\t String line = null;\n\n\t\t while ((line = reader.readLine()) != null) {\n\t\t \t\n\t\t sb.append(line);\n\t\t }\n\t\t instream.close();\n\t\t return sb.toString();\n\t\t \n\t\t}", "protected JSONObject readResponse(HttpURLConnection conn) throws IOException, JSONException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n try {\n String jsonText = \"\";\n String line;\n while ((line = reader.readLine()) != null) {\n jsonText += line;\n }\n return new JSONObject(jsonText);\n } finally {\n reader.close();\n }\n }", "public static String convertStreamToString(InputStream is) throws IOException {\n\tif (is != null) {\n\t\tWriter writer = new StringWriter();\n\n\t\tchar[] buffer = new char[1024];\n\t\ttry {\n\t\t\tReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n\t\t\tint n;\n\t\t\twhile ((n = reader.read(buffer)) != -1) {\n\t\t\t\twriter.write(buffer, 0, n);\n\t\t\t}\n\t\t} finally {\n\t\t\tis.close();\n\t\t}\n\t\treturn writer.toString();\n\t} else {\n\t\treturn \"\";\n\t}\n}", "protected static String convertStreamToString(InputStream is) {\r\n /*\r\n * To convert the InputStream to String we use the BufferedReader.readLine()\r\n * method. We iterate until the BufferedReader return null which means\r\n * there's no more data to read. Each line will appended to a StringBuilder\r\n * and returned as String.\r\n */\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n StringBuilder sb = new StringBuilder();\r\n \r\n String line = null;\r\n try {\r\n while ((line = reader.readLine()) != null) {\r\n sb.append(line + \"\\n\");\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n is.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n return sb.toString();\r\n }", "public static String readFromInputStream(InputStream inputStream) throws IOException {\n StringBuilder streamOutput = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset\n .forName(\"UTF-8\"));\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String line = bufferedReader.readLine();\n while (line != null) {\n streamOutput.append(line);\n line = bufferedReader.readLine();\n }\n }\n return streamOutput.toString();\n }", "public String buildReponse(HttpURLConnection con) throws IOException {\n\n BufferedReader in = new BufferedReader(\n\t\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\t\treturn response.toString();\n\t}", "private String readStream(InputStream is) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = is.read();\n while(i != -1) {\n bo.write(i);\n i = is.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "private String readResponseBody() {\n try {\n StringBuilder s_buffer = new StringBuilder();\n InputStream is = new BufferedInputStream(httpConn.getInputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n String inputLine;\n while ((inputLine = br.readLine()) != null) {\n s_buffer.append(inputLine);\n }\n return s_buffer.toString();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n return null;\n }\n }", "private static final String convertStreamToString(InputStream is) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString line = null;\n\t\ttry {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tis.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "String getJsonData(String urlString) throws IOException\n\t{\n\t\tBufferedReader reader = null;\n\t\ttry\n\t\t{\n\t\t\t// Create URL\n\t\t\tURL url = new URL(urlString);\n\t\t\t// Create URL stream\n\t\t\treader = new BufferedReader(new InputStreamReader(url.openStream()));\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\tint read;\n\n\t\t\tchar[] chars = new char[1024];\n\n\t\t\t// Copies individual characters into buffer until there aren't anymore to read.\n\t\t\twhile ((read = reader.read(chars)) != -1)\n\t\t\t\tbuffer.append(chars, 0, read);\n\n\t\t\treturn buffer.toString();\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t// Close the stream\n\t\t\tif (reader != null)\n\t\t\t\treader.close();\n\t\t}\n\n\t\treturn null;\n\t}", "public static JSONObject getContentJson(HttpURLConnection con) throws IOException, JSONException{\n return new JSONObject(getContentString(con));\n }", "private static String paseResponse(HttpResponse response) {\n\t\tHttpEntity entity = response.getEntity();\n\t\t\n//\t\tlog.info(\"response status: \" + response.getStatusLine());\n\t\tString charset = EntityUtils.getContentCharSet(entity);\n//\t\tlog.info(charset);\n\t\t\n\t\tString body = null;\n\t\ttry {\n if (entity != null) { \n InputStream instreams = entity.getContent(); \n body = convertStreamToString(instreams); \n// System.out.println(\"result:\" + body);\n } \n//\t\t\tlog.info(body);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn body;\n\t}", "protected String readFullyAsString(InputStream inputStream)\n\t\t\tthrows IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = inputStream.read(buffer)) != -1) {\n\t\t\tbaos.write(buffer, 0, length);\n\t\t}\n\t\treturn baos.toString(StandardCharsets.UTF_8.name());\n\t}", "private String readStream(InputStream is) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(is),1000);\n for (String line = r.readLine(); line != null; line =r.readLine()){\n sb.append(line);\n }\n is.close();\n return sb.toString();\n }", "private static String convertStreamToString(InputStream inputStream) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tinputStream));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString line = null;\n\t\ttry {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"EXCEPTION\", e.getMessage());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tinputStream.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tLog.i(\"##sb#\", sb.toString());\n\t\treturn sb.toString();\n\t}", "private String readToString(URLConnection connection) throws IOException {\n\tBufferedReader reader = null;\n\ttry {\n\t\tInputStream inStream = connection.getInputStream();\n\t\tif (connection instanceof java.net.HttpURLConnection) {\n\t\t\tHttpURLConnection httpConnection = (HttpURLConnection) connection;\n\t\t\tif (httpConnection.getResponseCode() == 403) {\n\t\t\t\tthrow new IOException(\"Service does not accept the authentication credentials: \"\n\t\t\t\t\t+ httpConnection.getResponseCode() + httpConnection.getResponseMessage());\n\t\t\t} else if (httpConnection.getResponseCode() >= 400) {\n\t\t\t\tthrow new IOException(\"Service responded with a failure code: \"\n\t\t\t\t\t+ httpConnection.getResponseCode() + httpConnection.getResponseMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IOException(\"Unexpected URI type encountered\");\n\t\t}\n\t\treader = new BufferedReader(new InputStreamReader(inStream));\n\t\tString str;\n\t\tStringBuilder buffer = new StringBuilder();\n\t\twhile ((str = reader.readLine()) != null) {\n\t\t\tbuffer.append(str);\n\t\t}\n\t\treturn buffer.toString();\n\t } finally {\n\t \tif (reader != null) {\n\t \t\treader.close();\n\t \t}\n\t}\n }", "public static String leituraJSON(String urlItens) {\n\n BufferedReader reader;\n String line;\n StringBuilder responseContent = new StringBuilder();\n\n try {\n URL url = new URL(urlItens);\n conn = (HttpURLConnection) url.openConnection();\n\n //request setup\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(5000);\n conn.setReadTimeout(5000);\n\n int status = conn.getResponseCode();\n // Se o status for 200 == conexão feita com sucesso\n\n if (status > 299) {\n reader = new BufferedReader(new InputStreamReader(conn.getErrorStream()));\n } else {\n reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n }\n while ((line = reader.readLine()) != null) {\n responseContent.append(line);\n }\n reader.close(); // encerra o buffer\n\n } catch (IOException e) {\n } finally {\n conn.disconnect(); // fecha a conexão\n }\n\n return responseContent.toString();\n }", "public String readStream(InputStream in) {\n BufferedReader reader = null;\n StringBuffer data = new StringBuffer(\"\");\n try {\n reader = new BufferedReader(new InputStreamReader(in));\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n data.append(line);\n }\n } catch (IOException e) {\n Log.e(\"Log\", \"IOException\");\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return data.toString();\n }", "private String readStream(InputStream in) throws IOException {\n BufferedReader r = new BufferedReader(new InputStreamReader(in));\n\n StringBuilder sb = new StringBuilder();\n String line;\n\n // Reads every line and stores them in sb.\n while((line = r.readLine()) != null) {\n sb.append(line);\n }\n\n // Closes the input stream.\n in.close();\n\n return sb.toString();\n }", "private static String readResponse(HttpResponse response)\n throws IOException\n {\n HttpEntity responseEntity = response.getEntity();\n if (responseEntity.getContentLength() == 0)\n {\n return \"\";\n }\n byte[] content = StreamUtils.read(responseEntity.getContent());\n return new String(content, \"UTF-8\");\n }", "String toJson() throws IOException;", "public static String inputStreamToString(InputStream in) {\r\n StringBuffer buffer = new StringBuffer();\r\n try {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in,\r\n \"UTF-8\"), 1024);\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n buffer.append(line);\r\n }\r\n } catch (IOException iox) {\r\n LOGR.warning(iox.getMessage());\r\n }\r\n return buffer.toString();\r\n }", "private static String readFromStream(InputStream inputStream) {\n StringBuilder outputString = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"));\n BufferedReader reader = new BufferedReader(inputStreamReader);\n try {\n String line = reader.readLine();\n while (line != null) {\n outputString.append(line);\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error reading line from reader, readFromStream() block\", e);\n }\n }\n return outputString.toString();\n }", "public static String convertInputStreamToString(InputStream is)\n throws IOException {\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n try {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is, UtilsConstants.UTF_8));\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(UtilsConstants.LINE_SEPARATOR);\n }\n } finally {\n is.close();\n }\n return sb.toString();\n } else {\n return \"\";\n }\n }", "public String getStringFromInputStream(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n } finally {\n try {\n br.close();\n } catch (Exception e) {\n }\n br = null;\n return sb.toString();\n }\n }", "String getJSON();", "public static String convertStreamToString(InputStream is) throws IOException {\n\n String encoding = \"UTF-8\"; //default\n\n\n // cerca se il documento specifica un altro encoding\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));//\"UTF-8\"));\n while ((line = reader.readLine()) != null) { //CRASHA\n sb.append(line).append(\"\\n\");\n if ((sb.toString().contains(\"<?\") && sb.toString().contains(\"?>\")) && sb.toString().contains(\"encoding=\")) {\n\n Pattern p = Pattern.compile(\".*<\\\\?.*encoding=.(.*).\\\\?>.*\", Pattern.DOTALL);\n\n Matcher matcher = p.matcher(sb.toString());\n\n if (matcher.matches()) {\n encoding = matcher.group(1);\n }\n\n break;\n }\n }\n\n\n\n }\n\n // converte\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, encoding));//\"UTF-8\"));\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n System.out.println(line);\n }\n } finally {\n is.close();\n }\n return sb.toString();\n } else {\n return \"error\";\n }\n }", "private static String getStringFromInputStream(InputStream is) {\r\n\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n\r\n String line;\r\n try {\r\n\r\n br = new BufferedReader(new InputStreamReader(is));\r\n while ((line = br.readLine()) != null) {\r\n sb.append(line);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n if (br != null) {\r\n try {\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n\r\n return sb.toString();\r\n\r\n }", "static String loadStream(InputStream in) throws IOException {\n int ptr = 0;\n in = new BufferedInputStream(in);\n StringBuffer buffer = new StringBuffer();\n while( (ptr = in.read()) != -1 ) {\n buffer.append((char)ptr);\n }\n return buffer.toString();\n }", "public static String getStringFromInputStream(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }", "private static String ioStr(InputStream in) throws IOException {\n\t\t// Read input\n\t\tString str = new String();\n\t\tString next = null;\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\twhile ((next = reader.readLine()) != null) {\n\t\t\tstr += next + \"\\n\";\n\t\t}\n\t\tin.close();\n\n\t\t// Convert result accordingly\n\t\tif (str.length() > 1) {\n\t\t\treturn str.substring(0, str.length() - 1);\n\t\t}\n\t\treturn str;\n\t}", "public static String getContentString(HttpURLConnection con) throws IOException{\n\n //Read the http response from the url\n BufferedReader in = new BufferedReader( new InputStreamReader(con.getInputStream()));\n String response = \"\", inputLine;\n while ((inputLine = in.readLine()) != null) {\n response += inputLine;\n }\n in.close();\n\n return response;\n }", "public String readJson() {\n\t\t\tif (lastReadChar == ']') {\n\t\t\t\tSystem.out.println(\"Nunca deberia llegar a aca si usa hasNext()\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t// Si fue una coma, busco el siguiente '{'\n\t\t\twhile (read()!= '{');\n\t\t\t\n\t\t\tStringBuilder jsonText = new StringBuilder();\n\t\t\tjsonText.append((char) '{');\n\t\t\tlastReadChar = read();\n\t\t\t\n\t\t\twhile (lastReadChar != '}') { \n\t\t\t\tjsonText.append((char) lastReadChar);\n\t\t\t\tlastReadChar = read();\n\t\t\t} jsonText.append('}');\n\t\t\t\n\t\t\t// To satisfy Invariant: find the next ']' or ','\n\t\t\twhile (lastReadChar != ']' && lastReadChar != ',') lastReadChar = read(); \n\t\t\t\n\t\t\t//System.out.println(\"Analizando : \" + jsonText.toString());\n\t\t\treturn jsonText.toString();\n\t\t}", "public static String convertStreamToString(InputStream is) {\n if (is == null) return null;\n Scanner s = new Scanner(is, \"UTF-8\").useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "private StringBuilder inputStreamToString(InputStream is) {\n String rLine = \"\";\n StringBuilder answer = new StringBuilder();\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n try {\n while ((rLine = br.readLine()) != null) {\n answer.append(rLine);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return answer;\n }", "public static String getUrlContentAsJsonString(String url) throws Exception {\n// HttpClient httpClient = new HttpClient();\n// httpClient.getParams().setSoTimeout(1500);\n// GetMethod gm = new GetMethod(url);\n// gm.setRequestHeader(\"accept\", \"application/json\"); // needed for spatial portal JSON web services\n// gm.setFollowRedirects(true);\n// httpClient.executeMethod(gm);\n// String content = gm.getResponseBodyAsString();\n\n HttpClient httpClient = new HttpClient();\n // DM: set this to HTTP/1.0\n httpClient.getParams().setParameter(\"http.protocol.version\", HttpVersion.HTTP_1_0);\n httpClient.getParams().setSoTimeout(10000);\n logger.debug(\"Retrieving the following URL: \" + url);\n GetMethod gm = new GetMethod(url);\n gm.setRequestHeader(\"Accept\", \"application/json\"); // needed for spatial portal JSON web services\n gm.setFollowRedirects(true);\n httpClient.executeMethod(gm);\n String responseString = gm.getResponseBodyAsString();\n if(logger.isDebugEnabled()){\n logger.debug(\"Response: \" + responseString);\n }\n return responseString;\n }", "@Override\n\tpublic String getJsonString(String queryURL) {\n\t\t\n\t\tURL url = null;\n\t\t\n\t\tHttpURLConnection httpConn = null;\n\t\t\n\t\ttry {\n\t\t\turl = new URL(queryURL);\n\t\t\t\n\t\t\thttpConn = (HttpURLConnection) url.openConnection();\n\t\t\t\n\t\t\thttpConn.setRequestMethod(\"GET\");\n\t\t\thttpConn.setRequestProperty(\"X-Naver-Client-Id\", NaverSecret.NAVER_CLIENT_ID);\n\t\t\thttpConn.setRequestProperty(\"X-Naver-Client-Secret\", NaverSecret.NAVER_CLIENT_SECRET);\n\t\t\t\n\t\t\tint httpStatusCode = httpConn.getResponseCode();\n\t\t\t\n\t\t\tInputStreamReader is = null;\n\t\t\t\n\t\t\tif(httpStatusCode == 200) {\n\t\t\t\tis = new InputStreamReader(httpConn.getInputStream());\n\t\t\t} else {\n\t\t\t\tis = new InputStreamReader(httpConn.getErrorStream());\n\t\t\t}\n\t\t\t\n\t\t\tBufferedReader buffer = null;\n\t\t\tbuffer = new BufferedReader(is);\n\t\t\t\n\t\t\tStringBuffer sBuffer = new StringBuffer();\n\t\t\t\n\t\t\twhile(true) {\n\t\t\t\tString reader = buffer.readLine();\n\t\t\t\tif(reader == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsBuffer.append(reader);\n\t\t\t}\n\t\t\tlog.debug(\"확인 sBuffer : \" + sBuffer);\n\t\t\treturn sBuffer.toString();\n\t\t\t\n\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private static String readIt(InputStream stream) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line+\"\\n\");\n }\n br.close();\n return sb.toString();\n\t}", "private String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n return jsonResponse;\n }\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private String getBody(CloseableHttpResponse response) throws IOException {\n HttpEntity entity = response.getEntity();\n return EntityUtils.toString(entity, \"UTF-8\");\n }", "private String stringFromInputStream(InputStream instream) throws IOException {\n StringBuilder sb = new StringBuilder(\"\");\n if (instream == null) {\n logger.warn(\"Input stream is null.\");\n return sb.toString();\n }\n BufferedReader bufreader = new BufferedReader(new InputStreamReader(instream));\n String line = \"\";\n while ((line = bufreader.readLine()) != null) {\n sb.append(line);\n sb.append(LINE_SEPARATOR);\n }\n return sb.toString();\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n // if the url is null, return the response early;\n if (url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code \" + urlConnection.getResponseCode());\n }\n\n } catch (IOException e) {\n // TODO: Handle the exception\n Log.e(LOG_TAG, \"Problem retrieving from the url\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private String getResponseText(InputStream inStream) {\n return new Scanner(inStream).useDelimiter(\"\\\\A\").next();\n }", "static String getResponseFromHttpUrl(URL url) throws IOException {\n String jsonReturn = \"\";\n HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection();\n urlConnection.setConnectTimeout(CONNECTION_TIMEOUT); //connection is closed after 7 seconds\n\n try {\n InputStream inputStream = urlConnection.getInputStream();\n\n Scanner scanner = new Scanner(inputStream);\n scanner.useDelimiter(\"\\\\A\");\n\n if(!scanner.hasNext()){\n return null;\n }\n\n while(scanner.hasNext()){\n jsonReturn = jsonReturn.concat(scanner.next());\n }\n return jsonReturn;\n\n } catch (Exception e){\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n\n return null;\n }", "public static String downloadJSON(String url) {\n String json=null, line;\n\n InputStream stream = getHttpConnection(url);\n if (stream != null) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(stream));\n StringBuilder out = new StringBuilder();\n try {\n while ((line = reader.readLine()) != null) {\n out.append(line);\n }\n reader.close();\n json = out.toString();\n } catch (IOException ex) {\n Log.d(\"MyDebugMsg\", \"IOException in downloadJSON()\");\n ex.printStackTrace();\n }\n }\n return json;\n }", "private static String readStream(InputStream is, String charsetName) throws UnsupportedEncodingException, IOException {\r\n StringBuffer sb = new StringBuffer();\r\n byte[] buffer = new byte[1024];\r\n int length = 0;\r\n while ((length = is.read(buffer)) != -1) {\r\n sb.append(new String(buffer, 0, length, charsetName));\r\n }\r\n return sb.toString();\r\n }", "public String enviarMensaje(Proceso proceso, boolean nuevo, int tiempo) throws JSONException \n{ \n\n \n \n try {\n JSONObject obj= new JSONObject();\n if(nuevo)\n { \n obj.put(\"pid\", proceso.getPid());\n\t\tobj.put(\"nombre\", proceso.getNombreProceso());\n obj.put(\"usuario\",proceso.getUsuarioProceso());\n\t\tobj.put(\"descripcion\",proceso.getDescripcion());\n obj.put(\"descripcionAux\",proceso.getDescripcion());\n obj.put(\"estado\",proceso.getEstado());\n obj.put(\"rafaga\",proceso.getRafaga());\n obj.put(\"reemplazosRealizados\",0);\n obj.put(\"quantum\",proceso.getQuantum());\n obj.put(\"tiempoLlegada\",proceso.getTiempoLLegada());\n obj.put(\"tiempoInicio\",-1);\n obj.put(\"tiempoFinal\",-1);\n obj.put(\"prioridad\",proceso.getPrioridad());\n obj.put(\"turnaRound\",-1);\n obj.put(\"tiempoHilo\",proceso.getTiempoHilo()); \n obj.put(\"tiempo\",tiempo);\n \n }else\n {\n obj.put(\"pid\", proceso.getPid());\n \t\tobj.put(\"descripcion\",proceso.getDescripcion());\n obj.put(\"estado\",proceso.getEstado());\n obj.put(\"reemplazosRealizados\",proceso.getReemplazosRealizados());\n obj.put(\"tiempoInicio\",proceso.getTiempoInicio());\n obj.put(\"tiempoFinal\",proceso.getTiempoFinal());\n obj.put(\"turnaRound\",proceso.getTurnaRound());\n obj.put(\"tiempo\",tiempo);\n }\n \n \n\n \n // out & in \n PrintWriter out = new PrintWriter(getSocket().getOutputStream(), \n true); \n BufferedReader in = new BufferedReader(new InputStreamReader(getSocket().getInputStream()));\n // writes str in the socket and read \n out.println(obj); \n String returnStr = in .readLine();\n \n //in.close();\n //out.close();\n \n return returnStr; \n } catch (IOException e) \n {\n e.printStackTrace();\n }\n return null; \n }", "public static String loadStream(InputStream in) throws IOException {\r\n\t\tInputStream is = in;\r\n\t\tint ptr = 0;\r\n\t\tis = new BufferedInputStream(is);\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\ttry {\r\n\t\t\twhile ((ptr = is.read()) != -1) {\r\n\t\t\t\tbuffer.append((char) ptr);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tis.close();\r\n\t\t}\r\n\t\treturn buffer.toString();\r\n\t}" ]
[ "0.71386904", "0.7077579", "0.6837211", "0.67642325", "0.658365", "0.6355088", "0.62413144", "0.62344766", "0.62172526", "0.6204838", "0.61993533", "0.61955434", "0.61882627", "0.6183039", "0.6162463", "0.6149738", "0.61491525", "0.6139269", "0.6133063", "0.6106881", "0.61001825", "0.6099381", "0.60989475", "0.6078233", "0.6065992", "0.60602164", "0.6042745", "0.6041193", "0.60310626", "0.60059845", "0.60031843", "0.5998246", "0.5981313", "0.5978972", "0.5974682", "0.5961178", "0.59328306", "0.59320563", "0.5928834", "0.5919024", "0.5900104", "0.5899021", "0.5897635", "0.58914995", "0.58738446", "0.5873166", "0.58575344", "0.58350235", "0.5825352", "0.5823177", "0.58217615", "0.57854223", "0.5780681", "0.5773151", "0.57667047", "0.576667", "0.5763395", "0.57627815", "0.57499486", "0.57482547", "0.57419205", "0.571606", "0.57149446", "0.5699547", "0.5683996", "0.56810355", "0.568038", "0.5654858", "0.56403065", "0.5635698", "0.563296", "0.56205225", "0.560248", "0.55962443", "0.5592249", "0.55835485", "0.5583492", "0.55793625", "0.5575811", "0.55691224", "0.5558981", "0.55319995", "0.55315137", "0.5522279", "0.5522075", "0.5520511", "0.5507787", "0.5505821", "0.5492999", "0.54893315", "0.5483487", "0.54782635", "0.547172", "0.546071", "0.5459496", "0.54568493", "0.54509574", "0.54183507", "0.5414585", "0.539829" ]
0.59777725
34
Devuelve una lista de objetos CityData creada a partir de hacer parse a una respuesta en JSON.
private static List<CityData> extractFeatureFromJson(String cityDataJSON) { // Si la String cityDataJSON es nula o está vacía, se devuelve el resultado. if (TextUtils.isEmpty(cityDataJSON)) { return null; } // Crea una ArrayList vacía a la que podemos añadir datos de ciudad. ArrayList<CityData> cityDatas = new ArrayList<>(); // Intenta hacer parse a la JSON response. try { // Crea un JSONObject que es el root de la API. JSONObject baseJsonObject = new JSONObject(cityDataJSON); // Extrae la JSONArray asociada la key "list". JSONArray cityDataArray = baseJsonObject.getJSONArray("list"); // Por cada ciudad en la cityData JSONArray crea un objeto CityData. for (int i = 0; i < cityDataArray.length(); i++) { // Escoge únicamente un elemento de la lista. JSONObject currentCityData = cityDataArray.getJSONObject(i); // Extrae el valor de la key llamada "name". String nombre = currentCityData.getString("name"); // Por cada dato de ciudad escoge el JSONObject asociado a la key "coord". JSONObject coordinates = currentCityData.getJSONObject("coord"); // Extrae el valor de la key llamada "lon". double longitud = coordinates.getDouble("lon"); // Extrae el valor de la key llamada "lat": double latitud = coordinates.getDouble("lat"); // Crea un nuevo objeto CityData con los valores requeridos. CityData cityData = new CityData(nombre, longitud, latitud); // Añade este nuevo objeto a la ArrayList. cityDatas.add(cityData); } } catch (JSONException e) { // Si ocurre algún error dentro del bloque try se capta aquí para evitar un cierre de la // App. Log.e("QueryUtils", "Problema parsing los resultados del terremoto en JSON", e); } return cityDatas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<City> pareseJsonToCities(URL url) {\r\n\tObjectMapper objectMapper = new ObjectMapper();\r\n\tList<City> cities = null;\r\n\ttry {\r\n\t JsonNode node = objectMapper.readValue(url, JsonNode.class);\r\n\t if (node.isArray() && node.size() > 0) {\r\n\t\tcities = new ArrayList<>();\r\n\t\tIterator<JsonNode> nodeElements = node.elements();\r\n\t\twhile (nodeElements.hasNext()) {\r\n\t\t City city = new City();\r\n\r\n\t\t JsonNode currentCity = nodeElements.next();\r\n\t\t JsonNode idNode = currentCity.get(\"_id\");\r\n\t\t Long id = idNode.asLong();\r\n\t\t city.setId(id);\r\n\r\n\t\t JsonNode nameNode = currentCity.get(\"name\");\r\n\t\t String name = nameNode != null ? nameNode.asText() :\" \";\r\n\t\t city.setName(name);\r\n\r\n\t\t JsonNode typeNode = currentCity.get(\"type\");\r\n\t\t String type = typeNode != null ? typeNode.asText() :\" \";\r\n\t\t city.setType(type);\r\n\r\n\t\t JsonNode geoPositionNode = currentCity.get(\"geo_position\");\r\n\t\t if (geoPositionNode != null) {\r\n\t\t\tJsonNode latitudeNode = geoPositionNode.get(\"latitude\");\r\n\t\t\tString latitude = latitudeNode!=null?latitudeNode.asText():\" \";\r\n\t\t\tcity.setLatitude(latitude);\r\n\r\n\t\t\tJsonNode longitudeNode = geoPositionNode.get(\"longitude\");\r\n\t\t\tString longitude = longitudeNode!=null?longitudeNode.asText():\" \";\r\n\t\t\tcity.setLongitude(longitude);\r\n\t\t }\r\n\r\n\t\t cities.add(city);\r\n\t\t}\r\n\r\n\t }\r\n\t} catch (JsonParseException | JsonMappingException e) {\r\n\t System.out.println(\"Could not parse Json.\");\r\n\t e.printStackTrace();\r\n\t} catch (IOException e) {\r\n\t System.out.println(\"File I/O problems.\");\r\n\t e.printStackTrace();\r\n\t}\r\n\treturn cities;\r\n }", "public void getCityJson() throws JSONException {\n String json = null;\n try {\n InputStream inputStream = getAssets().open(\"cities.json\");\n int size = inputStream.available();\n byte[] buffer = new byte[size];\n inputStream.read(buffer);\n inputStream.close();\n json = new String(buffer, \"UTF-8\");\n \n } catch (IOException e) {\n e.printStackTrace();\n }\n \n \n JSONObject jsonObject = new JSONObject(json);\n JSONArray events = jsonObject.getJSONArray(\"cities\");\n for (int j = 0; j < events.length(); j++) {\n JSONObject cit = events.getJSONObject(j);\n City cityData = new City();\n \n cityData.setCityId(Integer.parseInt(cit.getString(\"id\")));\n cityData.setCityName(cit.getString(\"name\"));\n cityData.setStateId(Integer.parseInt(cit.getString(\"state_id\")));\n cityObject.add(cityData);\n }\n }", "public List<City> getAll() throws Exception;", "public LiveData<CityData> getCityDetails() {\n\n //if the list is null\n if (cityList == null) {\n cityList = new MutableLiveData<CityData>();\n loadCityDetails(); //we will load it asynchronously from server in this method\n }\n return cityList; //finally we will return the list\n }", "private void loadCityDetails() {\n\n apiCall = ApiUtils.getCityDetails();\n\n Call<CityData> call = apiCall.getCityDetails();\n\n call.enqueue(new Callback<CityData>() {\n @Override\n public void onResponse(Call<CityData> call, Response<CityData> response) {\n\n //finally we are setting the list to our MutableLiveData\n cityList.setValue(response.body());\n\n }\n\n @Override\n public void onFailure(Call<CityData> call, Throwable t) {\n System.out.println(\"is failed\");\n }\n });\n }", "public void getCityJson() throws JSONException {\n String json = null;\n try {\n InputStream inputStream = getAssets().open(\"cities.json\");\n int size = inputStream.available();\n byte[] buffer = new byte[size];\n inputStream.read(buffer);\n inputStream.close();\n json = new String(buffer, \"UTF-8\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n JSONObject jsonObject = new JSONObject(json);\n JSONArray events = jsonObject.getJSONArray(\"cities\");\n for (int j = 0; j < events.length(); j++) {\n JSONObject cit = events.getJSONObject(j);\n City cityData = new City();\n\n cityData.setCityId(Integer.parseInt(cit.getString(\"id\")));\n cityData.setCityName(cit.getString(\"name\"));\n cityData.setStateId(Integer.parseInt(cit.getString(\"state_id\")));\n cityObject.add(cityData);\n }\n }", "@Override\n\tpublic List<CityList> getCities() {\n\t\tList<CityList> citiesListDTO =null;\n\t\tList<com.svecw.obtr.domain.CityList> citiesListDomain = iCityListDAO.getCities();\n\t\t\n\t\tif(null!=citiesListDomain){\n\t\t\tcitiesListDTO = new ArrayList<CityList>();\n\t\t\tfor(com.svecw.obtr.domain.CityList cityListDomain : citiesListDomain){\n\t\t\t\tCityList cityListDTO = new CityList();\n\t\t\t\tcityListDTO.setCityId(cityListDomain.getCityId());\n\t\t\t\tcityListDTO.setCityName(cityListDomain.getCityName());\n\t\t\t\tcitiesListDTO.add(cityListDTO);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn citiesListDTO;\n\t}", "public List<City> getCities(){\n waitFor(visibilityOfAllElements(cities));\n return cities.stream().map(City::new).collect(toList());\n }", "@Override\n public List<Map<String, Object>> getCityList(Map<String, Object> params)\n {\n return advertisementMapper.getCityList(params);\n }", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic ArrayList<CityPO> getAll() throws RemoteException {\n\t\t\n\t\t\n\t\treturn cities;\n\t}", "public static JSONObject fetchServinglocation() throws JSONException {\n\t\tJSONArray jArrayCity = new JSONArray();\n\t\tJSONObject cityList = new JSONObject();\n\t\tConnection connection = null;\n\t\ttry {\n\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQLCITY:{\n\t\t\t\ttry {\t\n\t\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\t\tString sqlCityQuery =\"select city_id,city_name from sa_city where is_active='Y'\";\t\t \t\t\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlCityQuery);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject jsonObjectcity = new JSONObject();\n\t\t\t\t\t\tjsonObjectcity.put(\"cityid\",resultSet.getString(\"city_id\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"cityname\",resultSet.getString(\"city_name\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"arealist\", getLocationList( jsonObjectcity.getInt(\"cityid\") , true));\n\t\t\t\t\t\tjArrayCity.put(jsonObjectcity);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Fetch location output length--\"+jArrayCity.length());\n\t\tcityList.put(\"citylist\", jArrayCity);\n\t\treturn cityList;\n\t}", "public void getCities(Integer province_id) {\n App.getInstance().getApiInterface().getCities(province_id,Constants.APPJSON).enqueue(new Callback<List<CityList>>() {\n @Override\n public void onResponse(Call<List<CityList>> call, final Response<List<CityList>> response) {\n if (response.isSuccessful()) {\n final Realm realm = Realm.getDefaultInstance();\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n realm.delete(CityList.class);\n realm.copyToRealmOrUpdate(response.body());\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n realm.close();\n }\n }, new Realm.Transaction.OnError() {\n @Override\n public void onError(Throwable error) {\n realm.close();\n error.printStackTrace();\n getView().showAlert(error.getLocalizedMessage());\n }\n });\n } else {\n getView().showAlert(\"Server Error\");\n }\n }\n\n @Override\n public void onFailure(Call<List<CityList>> call, Throwable t) {\n t.printStackTrace();\n getView().showAlert(t.getLocalizedMessage());\n }\n });\n }", "public List<ATM> listATMsByCity(String city) throws JsonParseException,\n JsonMappingException, IOException {\n RestTemplate restTemplate = new RestTemplate();\n\n String response = restTemplate.getForObject(URL, String.class);\n String toBeParsed = response.substring(6, response.length());\n\n ObjectMapper objectMapper = new ObjectMapper();\n ATM[] atms = objectMapper.readValue(toBeParsed, ATM[].class);\n\n List<ATM> atmsList = Arrays.asList(atms);\n List<ATM> atmsByCityList = new LinkedList<ATM>();\n\n for (ATM atm : atmsList) {\n String theType = atm.getType(), theCity = atm.getAddress()\n .getCity();\n if (theType.equals(\"ING\") && theCity.equalsIgnoreCase(city)) {\n atmsByCityList.add(atm);\n }\n }\n\n return atmsByCityList;\n }", "public static JSONObject fetchlocation() throws JSONException {\n\t\tJSONArray jArrayCity = new JSONArray();\n\t\tJSONObject cityList = new JSONObject();\n\t\tConnection connection = null;\n\t\ttry {\n\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQLCITY:{\n\t\t\t\ttry {\t\n\t\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\t\tString sqlCityQuery =\"select city_id,city_name from sa_city where is_active='Y'\";\t\t \t\t\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlCityQuery);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject jsonObjectcity = new JSONObject();\n\t\t\t\t\t\tjsonObjectcity.put(\"cityid\",resultSet.getString(\"city_id\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"cityname\",resultSet.getString(\"city_name\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"arealist\", getLocationList(jsonObjectcity.getInt(\"cityid\"), false ));\n\t\t\t\t\t\tjArrayCity.put(jsonObjectcity);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Fetch location output length--\"+jArrayCity.length());\n\t\tcityList.put(\"citylist\", jArrayCity);\n\t\treturn cityList;\n\t}", "@GET(\"/cities\")\n Call<List<City>> getCities();", "public ResponseDTO getRegionProvinceCityList() {\n ResponseDTO dto = new ResponseDTO();\n List<Region> list = regionBiz.selectRegionProvinceCityList();\n dto.setCode(ResponseCode.CommonCode.OK.v());\n dto.setMsg(ResponseCode.CommonCode.OK.c());\n dto.setData(list);\n return dto;\n }", "@Override\r\n\tpublic List<City> getCityById(int pid) {\n\t\treturn cd.getCityById(pid);\r\n\t}", "public void getCityData(String cityName){\n\t\tICityDataService cityDataService = new CityDataService();\n\t\tcityData = cityDataService.getCityData(cityName);\n\t}", "List<City> getCityList(Integer countryId)throws EOTException;", "public List<WeatherCitySummary> findAllCity(){\n return weatherCityRepository.findAllCity();\n }", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "@Override\n\tpublic List<City> getCities(Long id, String query) {\n\t\tCityRootObject cityRootObject = restTemplate.getForObject(urlForDatabaseCities(id, query), CityRootObject.class);\n\n\t\treturn cityRootObject.getResponse().getItems();\n\t}", "@RequestMapping(value = \"/cityDetails\", method = RequestMethod.GET)\n public ResponseEntity<City> getCityDetails()\n {\n logger.info(\"Calling getCityDetails() method\");\n if(city.getCity() != null)\n {\n for (String item: city.getCity()\n ) {\n logger.debug(\"This are the cities \" + item);\n }\n }\n\n return new ResponseEntity<City>(city, HttpStatus.OK);\n }", "String[] getRawWeatherData(String city) throws JsonSyntaxException, Exception\n\t{\n\t\tfinal String urlHalf1 = \"http://api.openweathermap.org/data/2.5/weather?q=\";\n\t\tfinal String apiCode = \"&APPID=0bc46790fafd1239fff0358dc4cbe982\";\n\n\t\tString url = urlHalf1 + city + apiCode;\n\n\t\tString[] weatherData = new String[4];\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString hitUrl = url;\n\t\tString jsonData = getJsonData(hitUrl);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject jsonObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement weather = jsonObject.get(\"weather\");\n\t\t\tJsonElement main = jsonObject.get(\"main\");\n\n\t\t\tif (weather.isJsonArray())\n\t\t\t{\n\t\t\t\tJsonArray weatherArray = weather.getAsJsonArray();\n\n\t\t\t\tJsonElement skyElement = weatherArray.get(0);\n\n\t\t\t\tif (skyElement.isJsonObject())\n\t\t\t\t{\n\t\t\t\t\tJsonObject skyObject = skyElement.getAsJsonObject();\n\n\t\t\t\t\tJsonElement skyData = skyObject.get(\"description\");\n\n\t\t\t\t\tweatherData[0] = skyData.getAsString();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (main.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject mainToObject = main.getAsJsonObject();\n\t\t\t\tSystem.out.println(mainToObject.toString());\n\n\t\t\t\tJsonElement tempMin = mainToObject.get(\"temp_min\");\n\t\t\t\tJsonElement tempMax = mainToObject.get(\"temp_max\");\n\t\t\t\tJsonElement temp = mainToObject.get(\"temp\");\n\n\t\t\t\tweatherData[1] = tempMax.getAsString();\n\t\t\t\tweatherData[2] = tempMin.getAsString();\n\t\t\t\tweatherData[3] = temp.getAsString();\n\t\t\t}\n\t\t}\n\n\t\treturn weatherData;\n\t}", "@Override\n\tpublic ArrayList<String> getCityList() {\n\t\treturn constantPO.getCityList();\n\t}", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public List<InputData> getCityData(String city) {\n String SQL = \"SELECT * FROM world_bank WHERE city = ?\";\n List<InputData> records = jdbcTemplate.query(SQL,\n new Object[] { city }, new DataMapper());\n return records;\n }", "@Override\n public void onResponse(Call<CityData> call, Response<CityData> response) {\n cityList.setValue(response.body());\n\n }", "@Override\n protected CityRecords doInBackground(Void... voids) {\n Call<CityRecords> callCityRecords;\n ApiService apiService = RetroClient.getApiService();\n callCityRecords = apiService.getCities(BuildConfig.ApiKey);\n\n /**\n * Fetch city records data from api\n */\n try {\n Response<CityRecords> CityRecords = callCityRecords.execute();\n return CityRecords.body();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private void getCities(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n\t\t\n\t\tCitiesServiceImpl cities = new CitiesServiceImpl();\n\t\t\n\t\t\n\t\tString parameter = req.getParameter(\"\");\n\t\tList<Cities> select = cities.selectAllId(\"2\");\n\t\t\n\t\t\n\t\t\n\t\tGson gson =new GsonBuilder()\n\t\t.create();\n\t\tString json = gson.toJson(select); \n\t\tSystem.out.println(\"json:\"+json);\n\t\tPrintWriter writer = resp.getWriter();\n\t\twriter.print(json); // 返回数据给前台\n\t\twriter.close();\n\t\n\t}", "void obj_list()\n {\n // Exceptions are returned by JSONObject when the object cannot be created\n try\n {\n // Convert the string returned to a JSON object\n JSONObject jsonObject=new JSONObject(getJson());\n // Get Json array\n JSONArray array=jsonObject.getJSONArray(\"array\");\n // Navigate through an array item one by one\n for(int i=0;i<array.length();i++)\n {\n // select the particular JSON data\n JSONObject object=array.getJSONObject(i);\n String city=object.getString(\"name\");\n String state=object.getString(\"state\");\n // add to the lists in the specified format\n listSpinner.add(city);\n listStateSpinner.add(state);\n\n }\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n }", "@GetMapping(\"/all\")\n public List<CityInfo> getAll(){\n return service.getAll();\n }", "@Override\n\tpublic List<VenueCity> listVenueCity() {\n\t\treturn eventDao.listVenueCity();\n\t}", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "@Override\n public Stream<City> getAll() {\n return idToCity.values().stream();\n }", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "public List<City> getCityList(State state);", "List<City> findCities();", "public void getCityResult() {\n String cityNameStr = TextUtils.isEmpty(cityName) ? \"Halifax\" : cityName;\n final String url = \"http://api.openweathermap.org/data/2.5/weather?q=\" + cityNameStr + \"&appid=\" + API_KEY + \"&units=\" + CELSIUS_UNITS;\n //build the request\n JsonObjectRequest request = new JsonObjectRequest(\n Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray weather = response.getJSONArray(\"weather\");\n JSONObject main = response.getJSONObject(\"main\");\n JSONObject cloudsJSON = response.getJSONObject(\"clouds\");\n\n //Set values on layout\n setCityNameOnLayout(response);\n setWeather(weather);\n setTemperature(main);\n setMinMaxTemperature(main);\n setHumidity(main);\n setClouds(cloudsJSON);\n setWeatherIcon((weather.getJSONObject(0)).get(\"icon\").toString());\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n\n Toast.makeText(getApplicationContext(), \"Please, introduce an existing city\", Toast.LENGTH_SHORT).show();\n }\n }\n );\n RequestQueueSingleton.getInstance(getApplicationContext()).addToRequestQueue(request);\n }", "public static List< CityData > importPreviousCitySearches()\n {\n FileReader reader = null;\n\n try\n {\n File file = new File( PREVIOUSLY_FOUND_CITIES_JSON );\n\n // if the is a file present then it will contain a list with at least on object\n if( file.exists() )\n {\n reader = new FileReader( file );\n\n Gson gson = new Gson();\n\n // convert the file JSON into a list of objects\n cityDataList = gson.fromJson( reader, new TypeToken<List<CityData>>() {}.getType() );\n }// end of if block\n\n }// end of try block\n catch ( FileNotFoundException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \":importPreviousCitySearches [line: \" + UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n finally\n {\n // close the file reader object\n if( reader != null )\n {\n try\n {\n reader.close();\n } // end of try block\n catch (IOException e)\n {\n e.printStackTrace();\n }// end of catch block\n }// end of if block\n }// end of finally block\n\n return cityDataList;\n }", "public static List<WeatherObject> getListWeather (Activity activity, JSONObject jsonObject) throws JSONException {\n ArrayList<WeatherObject> weatherList = new ArrayList<>();\n\n JSONObject weather = jsonObject;\n\n for (int i = 0; i < weather.getJSONArray(\"list\").length(); i++) {\n\n // take array\n JSONObject details = weather.getJSONArray(\"list\").getJSONObject(i);\n\n // long dateTime, int temp, int weatherId, int humidity, String weatherMain, String weatherDescription\n weatherList.add(new WeatherObject(\n details.getLong(\"dt\"),\n details.getJSONObject(\"main\").getInt(\"temp\"),\n details.getJSONArray(\"weather\").getJSONObject(0).getInt(\"id\"),\n details.getJSONObject(\"main\").getInt(\"humidity\"),\n details.getJSONArray(\"weather\").getJSONObject(0).getString(\"main\"),\n details.getJSONArray(\"weather\").getJSONObject(0).getString(\"description\")));\n }\n return weatherList;\n }", "@Override\n @Transactional(readOnly = true)\n public List<CitiesDTO> findAll() {\n log.debug(\"Request to get all Cities\");\n return citiesRepository.findAll().stream()\n .map(citiesMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "private void callGetCities(Call<List<RestAPI>> call) {\n call.enqueue(new Callback<List<RestAPI>>() {\n @Override\n public void onResponse(Call<List<RestAPI>> call, Response<List<RestAPI>> response) {\n\n List<RestAPI> cities = response.body();\n mSpinnerRow.add(new SpinnerRowItem(\"Select City\", \"\"));\n\n //Adding data to mSpinnerRow arraylist\n for(RestAPI c: cities){\n// Log.d(TAG, \"City \" + c.getCity() + \" \" + c.getImage());\n mSpinnerRow.add(new SpinnerRowItem(c.getCity(), c.getImage()));\n }\n\n CustomSpinnerAdpater mAdapter = new CustomSpinnerAdpater(getApplicationContext(), mSpinnerRow);\n spin.setAdapter(mAdapter);\n }\n\n @Override\n public void onFailure(Call<List<RestAPI>> call, Throwable t) {\n Toast.makeText(getApplicationContext(), t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@RequestMapping(value = \"/Asyn/getCities.abhi\", headers = \"X-Requested-With=XMLHttpRequest\", produces = MediaType.APPLICATION_JSON_VALUE)\n\t@ResponseBody\n\tpublic List<CityTO> getCities(Model model, HttpServletRequest request, HttpServletResponse response,\n\t\t\t@RequestParam(name = \"stateId\") String stateId) throws IOException {\n\n\t\tInteger id = Integer.parseInt(stateId);\n\n\t\treturn addressService.getAllActiveCities(id);\n\n\t}", "List<AirportDTO> getAirportsByCity(String city);", "void loadData() {\n Request request = new Request.Builder()\n .url(\"https://www.metaweather.com/api/location/search/?lattlong=20.5937,78.9629\")\n .get().build();\n //Create OkHttpClient Object\n OkHttpClient client = new OkHttpClient();\n\n // Call the request using client we just created\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Request request, IOException e) {\n //Use this code to Handle Failed Request mostly due to internet issue\n // we will just Create a Tost Message for user\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onResponse(Response response) throws IOException {\n //Here we will check is reponse is Sucessfull or is their any\n // request error i.e url error\n if (!response.isSuccessful()) {\n //Here our reponse is UnSucessfull so we inform the user\n // about the same as before\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n return;\n }\n //If Response is sucessfull we move forward and convert the\n // reponse which is in JSON format to String\n String respFromApi = response.body().string();\n\n //We will Log this LogCat in order to view the Raw Format recieved\n //you can open the log cat go in debug section and type RawData you\n // will be able to observe data there\n Log.d(\"RawData\", respFromApi);\n\n //Now We will call Extract Data Function which will retrieve the\n // woied and name of each city from the response\n try {\n extractData(respFromApi);\n } catch (Exception e) {\n //Informing Data is Not in JSON Format\n Toast.makeText(MainActivity.this, \"Response Not in JSON Format\", Toast.LENGTH_SHORT).show();\n }\n ;\n }\n });\n\n\n //---------------------------------FOR United States----------------------------------------\n\n //Following codes has similar output as before but the difference is the city Names here\n //is of United States\n request = new Request.Builder()\n .url(\"https://www.metaweather.com/api/location/search/?lattlong=38.899101,-77.028999\")\n .get().build();\n client = new OkHttpClient();\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Request request, IOException e) {\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onResponse(Response response) throws IOException {\n if (!response.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n return;\n }\n String respFromApi = response.body().string();\n Log.d(\"RawData\", respFromApi);\n try {\n extractData(respFromApi);\n } catch (Exception e) {\n Toast.makeText(MainActivity.this, \"Response Not in JSON Format\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n\n\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@GET(\"/cities/{cityId}/tours\")\n Call<List<Tour>> getTours(\n @Path(\"cityId\") int cityId\n );", "public List<String> getCities() {\n\t\treturn cities;\n\t}", "private static void initCityMapping() {\n try {\n log.info(\"initCityMapping start.....\");\n try {\n File dicFile = new File(\"/config/gj_city.json\");\n if (dicFile.exists()) {\n String dic = FileCopyUtils.copyToString(new InputStreamReader(\n new FileInputStream(dicFile),\n StandardCharsets.UTF_8));\n cityInfos = JSONObject.parseObject(dic, Map.class);\n }\n } catch (Exception e) {\n log.error(\"加载城市信息失败,{}\", e.getMessage(), e);\n e.printStackTrace();\n }\n log.info(\"initCityMapping end.....\");\n } catch (Exception e) {\n log.info(\"初始化城市字典数据失败!\", e);\n }\n }", "@ApiMethod(name = \"getCities\", path = \"city\", httpMethod = ApiMethod.HttpMethod.GET)\n public List<City> getCities(@Nullable @Named(\"search\") String search) {\n\n if (search == null || search.isEmpty()) {\n return mCityService.list();\n } else {\n return mCityService.list(search);\n }\n }", "@Override\n protected List<CityClass> doInBackground(String... strings) {\n return cityNames;\n }", "public static String [] getCities(){\n\t\tString [] s = new String [cities.length]; \n\t\tfor (int i = 0; i < cities.length; i++)\n\t\t{\n\t\t\ts[i] = cities[i].getCity();\n\t\t}\n\t\treturn s;\n\t}", "public gov.georgia.dhr.dfcs.sacwis.structs.output.CityCountyStruct[] getCityCountyStruct()\r\n {\r\n int size = this._cityCountyStructList.size();\r\n gov.georgia.dhr.dfcs.sacwis.structs.output.CityCountyStruct[] array = new gov.georgia.dhr.dfcs.sacwis.structs.output.CityCountyStruct[size];\r\n for (int index = 0; index < size; index++){\r\n array[index] = (gov.georgia.dhr.dfcs.sacwis.structs.output.CityCountyStruct) _cityCountyStructList.get(index);\r\n }\r\n \r\n return array;\r\n }", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public Vector<Site> getCities(){\n return cities;\n }", "private void getcitytask() {\n String uri = API_LINK_V2 + \"get-all-cities\";\n\n Log.v(\"EXECUTING\", uri);\n\n //Set up client\n OkHttpClient client = new OkHttpClient();\n //Execute request\n Request request = new Request.Builder()\n .header(\"Authorization\", \"Token \" + mToken)\n .url(uri)\n .build();\n //Setup callback\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.e(\"Request Failed\", \"Message : \" + e.getMessage());\n }\n\n @Override\n public void onResponse(Call call, final Response response) {\n\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n try {\n JSONArray ar = new JSONArray(Objects.requireNonNull(response.body()).string());\n for (int i = 0; i < ar.length(); i++) {\n mId.add(ar.getJSONObject(i).getString(\"id\"));\n mNames.add(ar.getJSONObject(i).getString(\"city_name\"));\n mLatitude.add(ar.getJSONObject(i).getString(\"latitude\"));\n mLongitude.add(ar.getJSONObject(i).getString(\"longitude\"));\n }\n mCities = new String[mId.size()];\n mCities = mNames.toArray(mCities);\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n mActivity,\n android.R.layout.simple_spinner_dropdown_item,\n mCities);\n sourceSpinner.setAdapter(adapter);\n destinationSpinner.setAdapter(adapter);\n } catch (JSONException e) {\n e.printStackTrace();\n Log.e(\"ERROR : \", \"Message : \" + e.getMessage());\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n progressBar.setVisibility(View.GONE);\n }\n });\n\n }\n });\n }", "private CityResponse mockCityResponse() {\n List<String> cityLocales = new ArrayList<String>(Collections.singleton(\"en\"));\n Map<String, String> cityNames = new HashMap<>();\n cityNames.put(\"en\", \"New York\");\n City city = new City(cityLocales, 1, 1, cityNames);\n\n List<String> countryNames = new ArrayList<>(Collections.singleton(\"United States\"));\n Country country = new Country(countryNames, 1, 1, \"US\", new HashMap());\n\n Location location = new Location(1, 1, 40.760498D, -73.9933D, 501, 1, \"EST\");\n\n Postal postal = new Postal(\"10036\", 1);\n\n return new CityResponse(city, new Continent(), country, location, new MaxMind(), postal,\n country, new RepresentedCountry(), new ArrayList<>(0),\n new Traits());\n }", "private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "public static ArrayList<City> getCitiesFlight(Flight voo) {\n\t\t\n\t\tArrayList<City> aux = new ArrayList<City>();\n\t\t\n\t\taux.add(voo.getCityOrigin());\n\t\taux.addAll(voo.getStops());\n\t\taux.add(voo.getCityDistin());\n\t\t\n\t\treturn aux;\n\t}", "public void getCityList(String quName) {\n this.mCityShowMode = true;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryCityRec(quName);\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n }\n }\n }", "@Override\n protected List<HashMap<String, String>> doInBackground(String... jsonData) {\n\n List<HashMap<String, String>> places = null;\n PlaceJSONParser placeJsonParser = new PlaceJSONParser();\n\n try {\n jObject = new JSONObject(jsonData[0]);\n\n /** Getting the parsed data as a List construct */\n places = placeJsonParser.parse(jObject);\n\n } catch (Exception e) {\n Log.d(\"Exception\", e.toString());\n }\n return places;\n }", "public void callRestApiCities(Activity context, Spinner spinner) {\n\n LoadingDialogCustom.startDialog(context);\n Call<List<City>> call = ManagerAll.getInstance().getInfoData();\n\n call.enqueue(new Callback<List<City>>() {\n\n @Override\n public void onResponse(@NotNull Call<List<City>> call, @NotNull Response<List<City>> response) {\n\n new Handler(Looper.getMainLooper()).postDelayed(LoadingDialogCustom::dismissDialog, 1200);\n\n List<String> cities = new ArrayList<>();\n List<Integer> cityId = new ArrayList<>();\n\n for (int i = 0; i < (response.body() != null ? response.body().size() : 0); i++) {\n cities.add(response.body().get(i).getName());\n cityId.add(i,response.body().get(i).getId());\n presenter.allCityId(cityId);\n }\n\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<>(context, android.R.layout.simple_spinner_dropdown_item, cities);\n spinner.setAdapter(dataAdapter);\n spinner.setPopupBackgroundResource(R.color.blueDark);\n dataAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onFailure(@NotNull Call<List<City>> call, @NotNull Throwable t) {\n Log.i(\"Message\", t.getLocalizedMessage());\n }\n });\n\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public City getStatsByCity(String name) throws UnirestException {\n City cityWeather = new City();\n JSONObject object = weatherService.getWeatherByCity(name);\n Coord coord = formatObject(\"coord\",object,Coord.class);\n Wind wind = formatObject(\"wind\",object,Wind.class);\n\n Clouds clouds = formatObject(\"clouds\",object,Clouds.class);\n MainStats mainStats = formatObject(\"main\",object,MainStats.class);\n JSONObject objectWeather = object.getJSONArray(\"weather\").getJSONObject(0);\n Weather weather = mapWeather(objectWeather);\n cityWeather.setCoord(coord);\n cityWeather.setWeather(weather);\n cityWeather.setWind(wind);\n cityWeather.setClouds(clouds);\n cityWeather.setName(object.getString(\"name\"));\n cityWeather.setTimezone(object.getInt(\"timezone\"));\n cityWeather.setCod(object.getInt(\"cod\"));\n cityWeather.setVisibility(object.getInt(\"visibility\"));\n return cityWeather;\n }", "private List<CityByDegrees> getCityByDegreesList() {\r\n\t\treturn this.cityByDegreesList;\r\n\t}", "@Override\n protected Place[] doInBackground(String... jsonData) {\n\n\n Place[] places = null;\n PlaceJSONParser placeJsonParser = new PlaceJSONParser();\n\n try{\n jObject = new JSONObject(jsonData[0]);\n /** Getting the parsed data as a List construct */\n places = placeJsonParser.parse(jObject);\n this.places.clear();\n for(Place p: places)\n this.places.add(p);\n\n }catch(Exception e){\n Log.d(\"Exception\",e.toString());\n }\n return places;\n }", "public Vector getListCities(Vector conditions){\n Vector listCities = new Vector();\n try{\n String sqlGet = \"SELECT * FROM city\";\n if(conditions != null){\n String strCondition = clsPopulateFunctions.joinVector(conditions, \" AND \");\n sqlGet += \" WHERE \" + strCondition;\n }\n sqlGet += \" ORDER BY city_name\";\n ResultSet rsGet = this.queryData(sqlGet);\n int order = 0;\n while(rsGet.next()){\n order++;\n Vector dataSet = new Vector();\n dataSet.add(rsGet.getInt(\"city_id\"));\n dataSet.add(rsGet.getString(\"city_name\"));\n\n listCities.add(dataSet);\n }\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n return listCities;\n }", "public ArrayList<Flight> getCity(String city) {\n return connects.get(city);\n }", "public static ArrayList<Produto> parserJsonProdutos(JSONArray response, Context context){\n\n System.out.println(\"--> Produto: \" + response);\n ArrayList<Produto> tempListaProdutos = new ArrayList<Produto>();\n\n try {\n for (int i = 0; i < response.length(); i++){\n\n JSONObject produto = (JSONObject)response.get(i);\n\n int id = produto.getInt(\"id\");\n int preco_unitario = produto.getInt(\"preco_unitario\");\n int id_tipoproduto = produto.getInt(\"id_tipo\");\n String designacao = produto.getString(\"designacao\");\n\n Produto auxProduto = new Produto(id, preco_unitario, id_tipoproduto, designacao);\n\n tempListaProdutos.add(auxProduto);\n }\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n Toast.makeText(context, \"Error: \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n return tempListaProdutos;\n }", "public Collection<City> getAutocompleteCities(String search) {\n return repo.getAutocompleteCities(search);\n }", "public void cityList(){\n System.out.println(\"List of cities: \\n\");\n\n for(int i = 0; i< cities.size(); i++){\n City city = cities.get(i);\n\n for(int j = 0; j<city.getAttractionsList().size(); j++){\n System.out.println((i+1) + \" \" + city.getCityName() + \" -- \" + (j+1) + \" \" + city.getAttractionsList().get(j));\n }\n\n if(city.getAttractionsList().size() == 0){\n System.out.println((i+1) + \" \" + city.getCityName());\n }\n }\n }", "public void excutePost(String cityName) {\n HttpURLConnection connection = null;\n try {\n System.out.println(\"Calling service for : \" + cityName);\n URL url = new URL(\"http://api.goeuro.com/api/v2/position/suggest/en/\" + cityName);\n URLConnection urlc = url.openConnection();\n BufferedReader bfr = new BufferedReader(new InputStreamReader(urlc.getInputStream()));\n String line;\n // read web service response\n while ((line = bfr.readLine()) != null) {\n JSONArray json = (JSONArray) new JSONParser().parse(line);\n if (json.size() == 0) {\n System.out.println(\"No data found for this city :[\" + cityName + \"]\");\n System.exit(0);\n }\n // creating cvs file content\n StringBuilder cvsFile = new StringBuilder();\n cvsFile.append(\"_id\").append(\",\");\n cvsFile.append(\"name\").append(\",\");\n cvsFile.append(\"type\").append(\",\");\n cvsFile.append(\"latitude\").append(\",\");\n cvsFile.append(\"longitude\").append(\"\\n\");\n // loop over retrieved json response.\n for (int i = 0; i < json.size(); i++) {\n JSONObject object = (JSONObject) json.get(i);\n cvsFile.append(object.get(\"_id\")).append(\",\");\n cvsFile.append(object.get(\"name\")).append(\",\");\n cvsFile.append(object.get(\"type\")).append(\",\");\n JSONObject geo = (JSONObject) object.get(\"geo_position\");\n cvsFile.append(geo.get(\"latitude\")).append(\",\");\n cvsFile.append(geo.get(\"longitude\")).append(\"\\n\");\n }\n\n String fileName = cityName + \".csv\";\n // wirte data to csv file\n boolean sucess = writeFile(fileName, cvsFile.toString());\n if (sucess) {\n System.out.println(\"CVS file created successfully : \" + fileName);\n } else {\n System.out.println(\"Error occured while writing data to file : \" + fileName);\n }\n }\n\n } catch (MalformedURLException ex) {\n System.out.println(\"Opps , Something went wrong while calling service \\nDetails :\");\n Logger.getLogger(CityAPICaller.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n System.out.println(\"Opps , Something went wrong while calling \\nDetails :\");\n Logger.getLogger(CityAPICaller.class.getName()).log(Level.SEVERE, null, ex);\n\n } catch (ParseException ex) {\n System.out.println(\"Opps , Something went wrong while reading data \\nDetails :\");\n Logger.getLogger(CityAPICaller.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n if (connection != null) {\n connection.disconnect();\n }\n }\n }", "LinkedHashMap<Long, City> getAllCitiesMap();", "public com.google.protobuf.ProtocolStringList\n getCityImageURLsList() {\n return cityImageURLs_;\n }", "public static ArrayList<Cliente> getJSONLista() throws IOException, ParseException{\n\t\turl = new URL(sitio+\"clientes/listar\");\n\t\tHttpURLConnection http = (HttpURLConnection)url.openConnection();\n\t\thttp.setRequestMethod(\"GET\");\n\t\thttp.setRequestProperty(\"Accept\", \"application/json\");\n\t\tInputStream respuesta = http.getInputStream();\n\t\tbyte[] inp = respuesta.readAllBytes();\n\t\tString json = \"\";\n\t\tfor (int i = 0; i<inp.length ; i++) {\n\t\t\tjson += (char)inp[i];\n\t\t}\n\t\tArrayList<Cliente> lista = new ArrayList<Cliente>();\n\t\tlista = parsingClientes(json);\n\t\thttp.disconnect();\n\t\treturn lista;\n\t}", "@Override\r\n\t\t\tprotected List<HashMap<String, String>> doInBackground(\r\n\t\t\t\t\tString... jsonData) {\r\n\r\n\t\t\t\tList<HashMap<String, String>> places = null;\r\n\t\t\t\tGeocodeJSONParser parser = new GeocodeJSONParser();\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tjObject = new JSONObject(jsonData[0]);\r\n\r\n\t\t\t\t\t/** Getting the parsed data as a an ArrayList */\r\n\t\t\t\t\tplaces = parser.parse(jObject);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tLog.d(\"Exception\", e.toString());\r\n\t\t\t\t}\r\n\t\t\t\treturn places;\r\n\t\t\t}", "public ArrayList<String> getCountries() {\n\n JSONArray jsonArray = readFromJSON();\n\n ArrayList<String> cList=new ArrayList<String>();\n\n if (jsonArray != null) {\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n cList.add(jsonArray.getJSONObject(i).getString(\"name\")); //getting the name of the country and adding it to an arraylist\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n return cList;\n }", "public List<Coche> listar(){\n RestTemplate restTemplate = new RestTemplate();\n \n //Hacemos una peticion GET a la url y decimos que nos parsee el json a la un array de CochesarrayCoches\n //El metodo getForEntity hace la peticion a la URL y tambien le decimos a que clase me tiene que \n //convertir el json resultante\n //Con el siguiente metedo hacemos una peticion get a \"http://localhost:8080/CochesarrayCoches/\"\n ResponseEntity<Coche[]> response = restTemplate.getForEntity(URL_COCHES, Coche[].class);\n \n //Lo que tiene el body es un array de CochesarrayCoches, porque el\n //ResponseEntity es un array de CochesarrayCoches\n Coche[] arrayCoches = response.getBody();\n \n //Convertimos el array de CochesarrayCoches a una lista de CochesarrayCoches\n List<Coche> lista = Arrays.asList(arrayCoches); \n \n return lista;\n }", "@Cacheable(\"darkSkyCityCoordinates\")\n public WeatherDataDto getCityCoordinates(@NonNull String city, @NonNull String countryCode) {\n ResponseEntity<String> response = getWeather(city, countryCode);\n if (response.getStatusCode() == HttpStatus.OK) {\n JSONObject jsonObject = new JSONObject(response.getBody());\n String latitude = String.valueOf(jsonObject\n .getDouble(\"latitude\"));\n String longitude = String.valueOf(jsonObject\n .getDouble(\"longitude\"));\n\n WeatherDataDto weatherDataDto = new WeatherDataDto();\n weatherDataDto.setServiceName(ServiceName.DARK_SKY);\n weatherDataDto.setName(city);\n weatherDataDto.setCountry(countryCode);\n weatherDataDto.setLatitude(latitude);\n weatherDataDto.setLongitude(longitude);\n\n return weatherDataDto;\n } else {\n return new WeatherDataDto(ServiceName.DARK_SKY, response.getBody());\n }\n }", "public JSONObject getAllDoctors() throws SQLException {\n // Initialize Connection\n Connection con = ConnectionManager.getConnection();\n // Holds results from query\n Statement stmt = null;\n // String representation of the schedule\n JSONObject data = new JSONObject();\n JSONArray data_array = new JSONArray();\n // Holds results from query\n ResultSet rs = null;\n // Query assembly (mySQL format)\n String query = \"SELECT c.id, c.name, d.is_surgeon, p.name AS dep_name \"\n + \"FROM doctor d \"\n + \"INNER JOIN credential c ON d.cred_id = c.id \"\n + \"INNER JOIN department p ON d.dep_id = p.id;\";\n try {\n // Attempt the query\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n // While doctors remain, add them to the object\n while (rs.next()) {\n JSONObject jo = new JSONObject();\n jo.put(\"id\", rs.getInt(\"id\"));\n jo.put(\"name\", rs.getString(\"name\"));\n jo.put(\"is_surgeon\", rs.getBoolean(\"is_surgeon\"));\n jo.put(\"department\", rs.getString(\"dep_name\"));\n data_array.put(jo);\n }\n // Place all of the data into the JSON object\n data.put(\"schedule\", data_array);\n stmt.close();\n } catch (SQLException e) {\n data = null;\n System.out.println(e);\n }\n return data;\n }", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public List<EstadoCita> obtenerDatosJSON(String rta){\n Log.e(\"Agenda JSON\",rta);\n // La lista de generos a retornar\n List<EstadoCita> lista = new ArrayList<EstadoCita>();\n try{\n /**\n * accedemos al json como array, ya que estamos 100% seguros de que lo que devuelve es un array\n * y no un objeto.\n */\n JSONArray json = new JSONArray(rta);\n for (int i=0; i<json.length(); i++){\n JSONObject row = json.getJSONObject(i);\n EstadoCita g = new EstadoCita();\n g.setId(row.getInt(\"id\"));\n g.setEstado(row.getString(\"estado\"));\n // g.setMedico((Medico) row.get(\"medico\"));\n // g.setHora((Hora) row.get(\"hora\"));\n lista.add(g);\n\n\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n return lista;\n }", "public JSONArray filtersCity (Object city, String name) throws FilterException {\n\t\t\n\t\tif(city == null)throw new FilterException(\"Nome della città nullo!\");\n\t\t\n\t\treturn (JSONArray) utils.getCityFiltered (city.toString(), name);\n\t}", "public java.util.Iterator<gov.georgia.dhr.dfcs.sacwis.structs.output.CityCountyStruct> iterateCityCountyStruct()\r\n {\r\n return this._cityCountyStructList.iterator();\r\n }", "List<MasterZipcode> getByCity(int cityId);", "public List<Car> getCarsData() { return carsData; }", "@Override\n public void onResponse(Response response) throws IOException {\n if (!response.isSuccessful()) {\n //Here our reponse is UnSucessfull so we inform the user\n // about the same as before\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n return;\n }\n //If Response is sucessfull we move forward and convert the\n // reponse which is in JSON format to String\n String respFromApi = response.body().string();\n\n //We will Log this LogCat in order to view the Raw Format recieved\n //you can open the log cat go in debug section and type RawData you\n // will be able to observe data there\n Log.d(\"RawData\", respFromApi);\n\n //Now We will call Extract Data Function which will retrieve the\n // woied and name of each city from the response\n try {\n extractData(respFromApi);\n } catch (Exception e) {\n //Informing Data is Not in JSON Format\n Toast.makeText(MainActivity.this, \"Response Not in JSON Format\", Toast.LENGTH_SHORT).show();\n }\n ;\n }", "@Override\n \t\tprotected Void doInBackground(Void... params) {\n \t\t\tgetJSONFromUrl(fore_city,fore_country);\n\n \t\t\treturn null;\n \t\t}", "@Override\n @Cacheable(\"darkSkyFullWeather\")\n public WeatherDataDto getFullWeather(@NonNull String city, @NonNull String countryCode) {\n ResponseEntity<String> response = getWeather(city, countryCode);\n if (response.getStatusCode() == HttpStatus.OK) {\n JSONObject jsonObject = new JSONObject(response.getBody());\n String temperature = String.valueOf(jsonObject\n .getJSONObject(\"currently\")\n .getDouble(\"temperature\"));\n String pressure = String.valueOf(jsonObject\n .getJSONObject(\"currently\")\n .getDouble(\"pressure\"));\n String windSpeed = String.valueOf(jsonObject\n .getJSONObject(\"currently\")\n .getDouble(\"windSpeed\"));\n String humidity = String.valueOf(jsonObject\n .getJSONObject(\"currently\")\n .getDouble(\"humidity\")*100);\n\n WeatherDataDto weatherDataDto = new WeatherDataDto();\n weatherDataDto.setServiceName(ServiceName.DARK_SKY);\n weatherDataDto.setName(city);\n weatherDataDto.setCountry(countryCode);\n weatherDataDto.setTemperature(temperature);\n weatherDataDto.setPressure(pressure);\n weatherDataDto.setWindSpeed(windSpeed);\n weatherDataDto.setHumidity(humidity);\n\n return weatherDataDto;\n } else {\n return new WeatherDataDto(ServiceName.DARK_SKY, response.getBody());\n }\n }", "public void cacheResult(\n\t\tjava.util.List<com.inikah.slayer.model.MMCity> mmCities);", "@Override\n public void onSucceed(int what, Response response) {\n gson = new Gson();\n try {\n switch (what) {\n case 0x021://获取城市\n\n //企查查城市数据解法\n// String jstring = (String) response.get();\n// map = gson.fromJson(jstring, new TypeToken<Map<String, Object>>() {\n// }.getType());\n// List<DataManager.citys> list = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"Result\").toString(), new TypeToken<List<DataManager.citys>>() {\n// }.getType());\n// DataManager.citysList = list;\n\n //真实城市数据解法————zlh手解json\n String jstring = (String) response.get();\n map = gson.fromJson(jstring, new TypeToken<Map<String, Object>>() {\n }.getType());\n if (((LinkedTreeMap) map.get(\"data\")).size() != 0) {\n List<LinkedTreeMap> list = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"city\");\n for (int i = 0; i < list.size(); i++) {\n DataManager.citys temp1 = new DataManager.citys();\n temp1.c_name = (String) list.get(i).get(\"c_name\");\n temp1.c_code = (String) list.get(i).get(\"c_code\");\n temp1.citycode = new ArrayList<>();\n List<LinkedTreeMap> templist = (List<LinkedTreeMap>) list.get(i).get(\"citycode\");\n for (int j = 0; j < templist.size(); j++) {\n DataManager.citycode temp2 = new DataManager.citycode();\n temp2.c_code = (String) templist.get(j).get(\"c_code\");\n temp2.c_name = (String) templist.get(j).get(\"c_name\");\n temp1.citycode.add(temp2);\n }\n DataManager.citysList.add(temp1);\n }\n }\n break;\n case 0x110://获取APP最新版本\n jsonString = (String) response.get();\n DataManager.MyNewAppS = gson.fromJson(jsonString, DataManager.MyNewApp.class);\n WelcomeActivity.handler.sendEmptyMessage(1);\n break;\n case 0x111://获取新闻\n jsonString = (String) response.get();\n DataManager.MyNewsS = gson.fromJson(jsonString, DataManager.MyNews.class);\n if (DataManager.MyNewsS.data.Newslist != null && DataManager.MyNewsS.data.Newslist.size() > 0) {\n MainActivity.MyNewsList = DataManager.MyNewsS.data.Newslist;\n }\n WelcomeActivity.handler.sendEmptyMessage(10);\n break;\n case 0x1111://获取更多新闻\n jsonString = (String) response.get();\n DataManager.MyNewsSMore = gson.fromJson(jsonString, DataManager.MyNews.class);\n if (DataManager.MyNewsSMore.data.Newslist != null && DataManager.MyNewsSMore.data.Newslist.size() > 0) {\n for (int i = 0; i < DataManager.MyNewsSMore.data.Newslist.size(); i++) {\n MainActivity.MyNewsList.add(DataManager.MyNewsSMore.data.Newslist.get(i));\n }\n MainActivity.handler.sendEmptyMessage(0);\n } else {\n MainActivity.handler.sendEmptyMessage(101);\n }\n break;\n case 0x112://获取APP首页轮播图\n jsonString = (String) response.get();\n DataManager.LBimgS = gson.fromJson(jsonString, DataManager.LBimg.class);\n WelcomeActivity.handler.sendEmptyMessage(0);\n break;\n case 0x113://获取最新认领\n jsonString = (String) response.get();\n DataManager.MyClaimUtilsModel = gson.fromJson(jsonString, DataManager.MyClaimUtils.class);\n if (DataManager.MyClaimUtilsModel.data.Claimlist != null && DataManager.MyClaimUtilsModel.data.Claimlist.size() > 0) {\n MainActivity.MyCliamList = DataManager.MyClaimUtilsModel.data.Claimlist;\n if (MainActivity.handler != null) {\n MainActivity.handler.sendEmptyMessage(7);\n }\n }\n break;\n case 0x1131://获取最新认领(more)\n jsonString = (String) response.get();\n DataManager.MyClaimUtilsModel = gson.fromJson(jsonString, DataManager.MyClaimUtils.class);\n if (DataManager.MyClaimUtilsModel.data.Claimlist != null && DataManager.MyClaimUtilsModel.data.Claimlist.size() > 0) {\n Main_NewCliam_MoreListActivity.MyCliamListMore = DataManager.MyClaimUtilsModel.data.Claimlist;\n MainActivity.handler.sendEmptyMessage(11);\n }\n break;\n case 0x114://获取热点\n jsonString = (String) response.get();\n DataManager.MyHotS = gson.fromJson(jsonString, DataManager.MyHot.class);\n if (DataManager.MyHotS.data != null && DataManager.MyHotS.data.HotspotAnalysis != null && DataManager.MyHotS.data.HotspotAnalysis.size() > 0) {\n MainActivity.MyHotsList = DataManager.MyHotS.data.HotspotAnalysis;\n }\n break;\n case 0x022://搜索结果\n String searchstr = (String) response.get();\n //test\n //searchstr=\"{\\\"message\\\":\\\"true\\\",\\\"status\\\":1,\\\"data\\\":{\\\"Result\\\":[{\\\"PRIPID\\\":\\\"3601032011041300098564\\\",\\\"entname\\\":\\\"江西智容科技有限公司\\\",\\\"REGNO\\\":\\\"360103210025958\\\",\\\"REGORG_CN\\\":\\\"南昌高新技术产业开发区\\\",\\\"NAME\\\":\\\"万杏娥\\\",\\\"OPFROM\\\":\\\"2011-04-28\\\",\\\"OPTO\\\":\\\"2031-04-27\\\",\\\"REGSTATE_CN\\\":\\\"存续(在营、开业、在册)\\\",\\\"C_PROVINCE\\\":\\\"36\\\",\\\"D_ADDTIME\\\":\\\"2016-03-17\\\",\\\"C_STATE\\\":\\\"1\\\",\\\"UNISCID\\\":\\\"null\\\",\\\"REGCAP\\\":\\\"5000.0\\\",\\\"ENTTYPE_CN\\\":\\\"有限责任公司(自然人投资或控股)\\\",\\\"DOM\\\":\\\"江西省南昌市高新技术产业开发区高新区高新二路建昌工业园金庐软件园海外大厦北楼306室\\\",\\\"INDUSTRYPHY\\\":\\\"I\\\",\\\"INDUSTRYPHY_NAME\\\":\\\"信息传输、软件和信息技术服务业\\\",\\\"OPSCOPE\\\":\\\"计算机软件系统开发;办公自动化设备销售;计算机系统集成;国内广告的设计、制作、发布、代理;会展服务(以上项目国家有专项规定的除外)\\\"},{\\\"PRIPID\\\":\\\"20160127091814206993\\\",\\\"entname\\\":\\\"江西智容科技有限公司南昌分公司\\\",\\\"REGNO\\\":\\\"360105220000025\\\",\\\"REGORG_CN\\\":\\\"null\\\",\\\"NAME\\\":\\\"罗川\\\",\\\"OPFROM\\\":\\\"2016-02-04\\\",\\\"OPTO\\\":\\\"null\\\",\\\"REGSTATE_CN\\\":\\\"存续(在营、开业、在册)\\\",\\\"C_PROVINCE\\\":\\\"36\\\",\\\"D_ADDTIME\\\":\\\"2016-03-17\\\",\\\"C_STATE\\\":\\\"null\\\",\\\"UNISCID\\\":\\\"91360105MA35GGBY60\\\",\\\"REGCAP\\\":\\\"null\\\",\\\"ENTTYPE_CN\\\":\\\"有限责任公司分公司(自然人投资或控股)\\\",\\\"DOM\\\":\\\"红星村原红星乡财政所\\\",\\\"INDUSTRYPHY\\\":\\\"L\\\",\\\"INDUSTRYPHY_NAME\\\":\\\"租赁和商业服务业\\\",\\\"OPSCOPE\\\":\\\"餐饮企业管理服务;食堂(主食、热菜、早点)(卫生许可证有效期至2011年5月13日止)(以上项目国家有专项规定的除外)\\\"}],\\\"Paging\\\":{\\\"PageSize\\\":40,\\\"PageIndex\\\":0,\\\"TotalRecords\\\":2}}}\";\n map = gson.fromJson(searchstr, new TypeToken<Map<String, Object>>() {\n }.getType());\n// List<DataManager.search> searchstrlist2 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"Result\").toString(), new TypeToken<List<DataManager.search>>() {\n// }.getType());\n// DataManager.searchList = searchstrlist2;\n baging = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"Paging\").toString(), DataManager.baging.class);\n List<LinkedTreeMap> searchstrlist2 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"Result\");//余思\n if (DataManager.searchList.size() != 0) {\n DataManager.searchList.clear();\n }\n if (DataManager.searchListMore.size() != 0) {\n DataManager.searchListMore.clear();\n }\n for (LinkedTreeMap temp : searchstrlist2) {\n DataManager.search serchtemp = new DataManager.search();\n\n serchtemp.ENTTYPE = (String) temp.get(\"ENTTYPE\");\n\n serchtemp.PRIPID = (String) temp.get(\"PRIPID\");\n serchtemp.ENTNAME = (String) temp.get(\"ENTNAME\");\n serchtemp.REGNO = (String) temp.get(\"REGNO\");\n serchtemp.REGORG_CN = (String) temp.get(\"REGORG_CN\");\n serchtemp.NAME = (String) temp.get(\"NAME\");\n serchtemp.OPFROM = (String) temp.get(\"ESTDATE\");//以前是OPFROM后来无缘无故变成ESTDATE\n serchtemp.OPTO = (String) temp.get(\"OPTO\");\n serchtemp.REGSTATE_CN = (String) temp.get(\"REGSTATE_CN\");\n serchtemp.C_PROVINCE = (String) temp.get(\"C_PROVINCE\");\n serchtemp.D_ADDTIME = (Object) temp.get(\"D_ADDTIME\");\n serchtemp.C_STATE = (String) temp.get(\"C_STATE\");\n if (String.valueOf(temp.get(\"REGCAP\")) == \"null\") {\n serchtemp.REGCAP = \"0\";\n }\n if (((String) temp.get(\"REGCAP\")).contains(\".\")) {\n serchtemp.REGCAP = ((String) temp.get(\"REGCAP\")).substring(0, ((String) temp.get(\"REGCAP\")).indexOf(\".\"));//查企业,品牌和失信判定是否有小数点\n } else {\n serchtemp.REGCAP = (String) temp.get(\"REGCAP\");\n }\n serchtemp.ENTTYPE_CN = (String) temp.get(\"ENTTYPE_CN\");\n serchtemp.DOM = (String) temp.get(\"DOM\");\n serchtemp.INDUSTRYPHY = (String) temp.get(\"INDUSTRYPHY\");\n serchtemp.INDUSTRYPHY_NAME = (String) temp.get(\"INDUSTRYPHY_NAME\");\n serchtemp.OPSCOPE = (String) temp.get(\"OPSCOPE\");\n DataManager.searchList.add(serchtemp);\n }\n if (DataManager.searchList != null && DataManager.searchList.size() > 0) {\n SearchFirmActivty.handler.sendEmptyMessage(0);\n } else {\n SearchFirmActivty.handler.sendEmptyMessage(500);\n }\n break;\n case 0x0221://搜索加载更多\n jsonString = (String) response.get();\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n baging = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"Paging\").toString(), DataManager.baging.class);\n List<LinkedTreeMap> searchstrlist22 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"Result\");\n if (DataManager.searchListMore.size() != 0) {\n DataManager.searchListMore.clear();\n }\n for (LinkedTreeMap temp : searchstrlist22) {\n DataManager.search serchtemp = new DataManager.search();\n serchtemp.ENTTYPE = (String) temp.get(\"ENTTYPE\");\n serchtemp.PRIPID = (String) temp.get(\"PRIPID\");\n serchtemp.ENTNAME = (String) temp.get(\"ENTNAME\");\n serchtemp.REGNO = (String) temp.get(\"REGNO\");\n serchtemp.REGORG_CN = (String) temp.get(\"REGORG_CN\");\n serchtemp.NAME = (String) temp.get(\"NAME\");\n serchtemp.OPFROM = (String) temp.get(\"ESTDATE\");//以前是OPFROM后来无缘无故变成ESTDATE\n serchtemp.OPTO = (String) temp.get(\"OPTO\");\n serchtemp.REGSTATE_CN = (String) temp.get(\"REGSTATE_CN\");\n serchtemp.C_PROVINCE = (String) temp.get(\"C_PROVINCE\");\n serchtemp.D_ADDTIME = (Object) temp.get(\"D_ADDTIME\");\n serchtemp.C_STATE = (String) temp.get(\"C_STATE\");\n if (String.valueOf(temp.get(\"REGCAP\")) == \"null\") {\n serchtemp.REGCAP = \"0\";\n }\n if (((String) temp.get(\"REGCAP\")).contains(\".\")) {\n serchtemp.REGCAP = ((String) temp.get(\"REGCAP\")).substring(0, ((String) temp.get(\"REGCAP\")).indexOf(\".\"));//查企业,品牌和失信去小数点\n } else {\n serchtemp.REGCAP = (String) temp.get(\"REGCAP\");\n }\n\n serchtemp.ENTTYPE_CN = (String) temp.get(\"ENTTYPE_CN\");\n serchtemp.DOM = (String) temp.get(\"DOM\");\n serchtemp.INDUSTRYPHY = (String) temp.get(\"INDUSTRYPHY\");\n serchtemp.INDUSTRYPHY_NAME = (String) temp.get(\"INDUSTRYPHY_NAME\");\n serchtemp.OPSCOPE = (String) temp.get(\"OPSCOPE\");\n DataManager.searchListMore.add(serchtemp);\n }\n if (DataManager.searchListMore != null && DataManager.searchListMore.size() > 0) {\n SearchFirmActivty.handler.sendEmptyMessage(0);\n } else {\n SearchFirmActivty.handler.sendEmptyMessage(500);\n }\n break;\n case 0x023://预留获取行业\n// gson = new Gson();\n// String str3 = (String) response.get();\n// map = gson.fromJson(str3, new TypeToken<Map<String, Object>>() {\n// }.getType());\n// List<LinkedTreeMap> listtemp = (List<LinkedTreeMap>) map.get(\"data\");\n// String jsonstradd = gson.toJson(listtemp);\n// List<DataManager.industryData> listtemps = gson.fromJson(jsonstradd, new TypeToken<List<DataManager.Data>>() {\n// }.getType());\n// DataManager.dataList = listtemps;\n// for (DataManager.industryData dt : DataManager.dataList) {\n// DataManager.SubyList = dt.SubIndustryList;\n// }\n /*DataManager.industry industry1 = null;\n String industry = (String) response.get();*/\n\n /* try {\n JSONObject a=new JSONObject(industry);\n JSONArray array=a.getJSONArray(\"data\");\n for(int i=0;i<array.length();i++){\n JSONObject b=array.getJSONObject(i);\n DataManager.industry.Name= (String) b.get(\"Name\");\n DataManager.industry.Code=(String) b.get(\"Code\");\n DataManager.industry.Desc=(String) b.get(\"Desc\");\n JSONArray array1=b.getJSONArray(\"SubIndustryList\");\n for(int j=0;j<array1.length();j++){\n JSONObject c =(JSONObject) array1.get(j);\n DataManager.industry.SubIndustryList.add((String) c.get(\"Name\"));\n }\n DataManager.industryList.add(industry1);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }*/\n String str3 = (String) response.get();\n map = gson.fromJson(str3, new TypeToken<Map<String, Object>>() {\n }.getType());\n if (((LinkedTreeMap) map.get(\"data\")).size() != 0) {\n List<LinkedTreeMap> list4 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"industry\");\n if (DataManager.industryDataList.size() != 0) {\n DataManager.industryDataList.clear();\n }\n for (LinkedTreeMap tempTree : list4) {\n DataManager.industryData industryData = new DataManager.industryData();\n industryData.EC_VALUE = (String) tempTree.get(\"EC_VALUE\");\n industryData.EC_NAME = (String) tempTree.get(\"EC_NAME\");\n DataManager.industryDataList.add(industryData);\n }\n }\n\n break;\n case 0x024://获取企业详情24宫格等\n jsonString = (String) response.get();\n try {\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n List<LinkedTreeMap> lists2 = null;\n if (map.get(\"data\") != null && !map.get(\"data\").equals(null) && ((Map<String, Object>) map.get(\"data\")).get(\"allcount\") != null && !((Map<String, Object>) map.get(\"data\")).get(\"allcount\").equals(null)) {\n lists2 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"allcount\");\n }\n List<LinkedTreeMap> lists3 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"baseinfo\");\n if (DataManager.allcountsList != null) {\n DataManager.allcountsList.clear();\n }\n if (DataManager.BaseinfoList != null) {\n DataManager.BaseinfoList.clear();\n }\n\n if (lists2 != null && lists2.size() > 0) {\n for (LinkedTreeMap temp : lists2) {\n DataManager.allcount cfo = new DataManager.allcount();\n cfo.EnterAddtionID = temp.get(\"EnterAddtionID\").toString();\n cfo.IsFavorite = temp.get(\"IsFavorite\").toString();\n cfo.HonorCount = temp.get(\"HonorCount\").toString();\n cfo.JudiciaryCount = temp.get(\"JudiciaryCount\").toString();\n cfo.PledgeCount = temp.get(\"PledgeCount\").toString();\n cfo.CopyrightCount = temp.get(\"CopyrightCount\").toString();\n cfo.AnnualCount = temp.get(\"AnnualCount\").toString();\n cfo.AdvertisementCount = temp.get(\"AdvertisementCount\").toString();\n cfo.BaseInfoCount = temp.get(\"BaseInfoCount\").toString();\n cfo.ApprovalCount = temp.get(\"ApprovalCount\").toString();\n cfo.PunishCount = temp.get(\"PunishCount\").toString();\n cfo.WarningCount = temp.get(\"WarningCount\").toString();\n cfo.TrademarkCount = temp.get(\"TrademarkCount\").toString();\n cfo.AbnormityCount = temp.get(\"AbnormityCount\").toString();\n cfo.CreditCount = temp.get(\"CreditCount\").toString();\n cfo.SupportCount = temp.get(\"SupportCount\").toString();\n cfo.MortgagorCount = temp.get(\"MortgagorCount\").toString();\n cfo.PatentCount = temp.get(\"PatentCount\").toString();\n cfo.PageView = temp.get(\"PageView\").toString();\n cfo.IsClaim = temp.get(\"IsClaim\").toString();\n cfo.EntShowCount = temp.get(\"EntShowCount\").toString();//++\n cfo.BiddingCount = temp.get(\"BiddingCount\").toString();\n cfo.JobCount = temp.get(\"JobCount\").toString();\n cfo.EntNewCount = temp.get(\"EntNewCount\").toString();\n DataManager.allcountsList.add(cfo);\n }\n }\n if (lists3 != null && lists3.size() > 0) {\n for (LinkedTreeMap temp : lists3) {\n DataManager.Baseinfo cfo = new DataManager.Baseinfo();\n cfo.REGSTATE = temp.get(\"REGSTATE\").toString();\n cfo.REGNO = temp.get(\"REGNO\").toString();\n cfo.NAME = temp.get(\"NAME\").toString();\n cfo.REGCAP = temp.get(\"REGCAP\").toString();\n cfo.ESTDATE = temp.get(\"ESTDATE\").toString();\n cfo.ENTTYPE_CN = temp.get(\"ENTTYPE_CN\").toString();\n cfo.ENTNAME = temp.get(\"ENTNAME\").toString();\n cfo.REGSTATE_CN = temp.get(\"REGSTATE_CN\").toString();\n cfo.UNISCID = temp.get(\"UNISCID\").toString();\n cfo.PRIPID = temp.get(\"PRIPID\").toString();\n cfo.ENTTYPE = temp.get(\"ENTTYPE\").toString();\n DataManager.BaseinfoList.add(cfo);\n }\n }\n if (DataManager.allcountsList != null && DataManager.allcountsList.size() > 0) {\n SearchFirmActivty.handler.sendEmptyMessage(5);\n } else {\n SearchFirmActivty.handler.sendEmptyMessage(500);\n }\n } catch (NullPointerException e) {\n e.printStackTrace();\n Toast.show(\"该企业暂无数据\");\n SearchFirmActivty.pd.dismiss();\n }\n break;\n case 0x025://我的关注跳公司详情界面的请求\n jsonString = (String) response.get();\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n List<LinkedTreeMap> lists25 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"allcount\");\n List<LinkedTreeMap> lists35 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"baseinfo\");\n if (DataManager.allcountsList != null) {\n DataManager.allcountsList.clear();\n }\n if (DataManager.BaseinfoList != null) {\n DataManager.BaseinfoList.clear();\n }\n if (lists25 != null && lists25.size() > 0) {\n for (LinkedTreeMap temp : lists25) {\n DataManager.allcount cfo = new DataManager.allcount();\n cfo.EnterAddtionID = temp.get(\"EnterAddtionID\").toString();\n cfo.IsFavorite = temp.get(\"IsFavorite\").toString();\n cfo.HonorCount = temp.get(\"HonorCount\").toString();\n cfo.JudiciaryCount = temp.get(\"JudiciaryCount\").toString();\n cfo.PledgeCount = temp.get(\"PledgeCount\").toString();\n cfo.CopyrightCount = temp.get(\"CopyrightCount\").toString();\n cfo.AnnualCount = temp.get(\"AnnualCount\").toString();\n cfo.AdvertisementCount = temp.get(\"AdvertisementCount\").toString();\n cfo.BaseInfoCount = temp.get(\"BaseInfoCount\").toString();\n cfo.ApprovalCount = temp.get(\"ApprovalCount\").toString();\n cfo.PunishCount = temp.get(\"PunishCount\").toString();\n cfo.WarningCount = temp.get(\"WarningCount\").toString();\n cfo.TrademarkCount = temp.get(\"TrademarkCount\").toString();\n cfo.AbnormityCount = temp.get(\"AbnormityCount\").toString();\n cfo.CreditCount = temp.get(\"CreditCount\").toString();\n cfo.SupportCount = temp.get(\"SupportCount\").toString();\n cfo.MortgagorCount = temp.get(\"MortgagorCount\").toString();\n cfo.PatentCount = temp.get(\"PatentCount\").toString();\n cfo.PageView = temp.get(\"PageView\").toString();\n cfo.IsClaim = temp.get(\"IsClaim\").toString();\n cfo.EntShowCount = temp.get(\"EntShowCount\").toString();//++\n cfo.BiddingCount = temp.get(\"BiddingCount\").toString();\n cfo.JobCount = temp.get(\"JobCount\").toString();\n cfo.EntNewCount = temp.get(\"EntNewCount\").toString();\n DataManager.allcountsList.add(cfo);\n }\n }\n if (lists35 != null && lists35.size() > 0) {\n for (LinkedTreeMap temp : lists35) {\n DataManager.Baseinfo cfo = new DataManager.Baseinfo();\n cfo.REGSTATE = temp.get(\"REGSTATE\").toString();\n cfo.REGNO = temp.get(\"REGNO\").toString();\n cfo.NAME = temp.get(\"NAME\").toString();\n cfo.REGCAP = temp.get(\"REGCAP\").toString();\n cfo.ESTDATE = temp.get(\"ESTDATE\").toString();\n cfo.ENTTYPE_CN = temp.get(\"ENTTYPE_CN\").toString();\n cfo.ENTNAME = temp.get(\"ENTNAME\").toString();\n cfo.REGSTATE_CN = temp.get(\"REGSTATE_CN\").toString();\n cfo.UNISCID = temp.get(\"UNISCID\").toString();\n cfo.PRIPID = temp.get(\"PRIPID\").toString();\n cfo.ENTTYPE = temp.get(\"ENTTYPE\").toString();\n DataManager.BaseinfoList.add(cfo);\n }\n }\n if (DataManager.allcountsList != null && DataManager.allcountsList.size() > 0) {\n MyconcernActivity.handler.sendEmptyMessage(1);\n } else {\n SearchFirmActivty.handler.sendEmptyMessage(500);\n }\n break;\n case 0x026://主界面 跳公司详情\n jsonString = (String) response.get();\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n List<LinkedTreeMap> lists26 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"allcount\");\n List<LinkedTreeMap> lists261 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"baseinfo\");\n if (DataManager.allcountsList != null) {\n DataManager.allcountsList.clear();\n }\n if (DataManager.BaseinfoList != null) {\n DataManager.BaseinfoList.clear();\n }\n if (lists26 != null && lists26.size() > 0) {\n for (LinkedTreeMap temp : lists26) {\n DataManager.allcount cfo = new DataManager.allcount();\n cfo.EnterAddtionID = temp.get(\"EnterAddtionID\").toString();\n cfo.IsFavorite = temp.get(\"IsFavorite\").toString();\n cfo.HonorCount = temp.get(\"HonorCount\").toString();\n cfo.JudiciaryCount = temp.get(\"JudiciaryCount\").toString();\n cfo.PledgeCount = temp.get(\"PledgeCount\").toString();\n cfo.CopyrightCount = temp.get(\"CopyrightCount\").toString();\n cfo.AnnualCount = temp.get(\"AnnualCount\").toString();\n cfo.AdvertisementCount = temp.get(\"AdvertisementCount\").toString();\n cfo.BaseInfoCount = temp.get(\"BaseInfoCount\").toString();\n cfo.ApprovalCount = temp.get(\"ApprovalCount\").toString();\n cfo.PunishCount = temp.get(\"PunishCount\").toString();\n cfo.WarningCount = temp.get(\"WarningCount\").toString();\n cfo.TrademarkCount = temp.get(\"TrademarkCount\").toString();\n cfo.AbnormityCount = temp.get(\"AbnormityCount\").toString();\n cfo.CreditCount = temp.get(\"CreditCount\").toString();\n cfo.SupportCount = temp.get(\"SupportCount\").toString();\n cfo.MortgagorCount = temp.get(\"MortgagorCount\").toString();\n cfo.PatentCount = temp.get(\"PatentCount\").toString();\n cfo.PageView = temp.get(\"PageView\").toString();\n cfo.IsClaim = temp.get(\"IsClaim\").toString();\n cfo.EntShowCount = temp.get(\"EntShowCount\").toString();//++\n cfo.BiddingCount = temp.get(\"BiddingCount\").toString();\n cfo.JobCount = temp.get(\"JobCount\").toString();\n cfo.EntNewCount = temp.get(\"EntNewCount\").toString();\n DataManager.allcountsList.add(cfo);\n }\n }\n if (lists261 != null && lists261.size() > 0) {\n for (LinkedTreeMap temp : lists261) {\n DataManager.Baseinfo cfo = new DataManager.Baseinfo();\n cfo.REGSTATE = temp.get(\"REGSTATE\").toString();\n cfo.REGNO = temp.get(\"REGNO\").toString();\n cfo.NAME = temp.get(\"NAME\").toString();\n cfo.REGCAP = temp.get(\"REGCAP\").toString();\n cfo.ESTDATE = temp.get(\"ESTDATE\").toString();\n cfo.ENTTYPE_CN = temp.get(\"ENTTYPE_CN\").toString();\n cfo.ENTNAME = temp.get(\"ENTNAME\").toString();\n cfo.REGSTATE_CN = temp.get(\"REGSTATE_CN\").toString();\n cfo.UNISCID = temp.get(\"UNISCID\").toString();\n cfo.PRIPID = temp.get(\"PRIPID\").toString();\n cfo.ENTTYPE = temp.get(\"ENTTYPE\").toString();\n DataManager.BaseinfoList.add(cfo);\n }\n }\n if (DataManager.allcountsList != null && DataManager.allcountsList.size() > 0) {\n MainActivity.handler.sendEmptyMessage(8);\n }\n break;\n case 0x000://工商信息\n /*DataManager.Data0List.clear();\n String jstring0 = (String) response.get();\n DataManager.Root0 jsonRoot0 = gson.fromJson(jstring0, new TypeToken<DataManager.Root0>() {\n }.getType());\n DataManager.Data0 dt = jsonRoot0.data;\n DataManager.Data0List.add(dt);\n if (DataManager.Data0List != null && DataManager.Data0List.size() > 0) {\n CompanyDetailsActivity.handler.sendEmptyMessage(0);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }*/\n\n jsonString = (String) response.get();\n DataManager.gsxx = gson.fromJson(jsonString, DataManager.GSXX.class);\n if (DataManager.gsxx != null) {\n CompanyDetailsActivity.handler.sendEmptyMessage(0);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x001://行政信息\n String jstring1 = (String) response.get();\n map = gson.fromJson(jstring1, new TypeToken<Map<String, Object>>() {\n }.getType());\n\n List<LinkedTreeMap> list1 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"administrative\");\n List<LinkedTreeMap> list221 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"other\");\n if (DataManager.ad_List != null) {\n DataManager.ad_List.clear();\n }\n if (DataManager.admin_other_List != null) {\n DataManager.admin_other_List.clear();\n }\n if (list1 != null && list1.size() > 0) {\n for (LinkedTreeMap temp : list1) {\n DataManager.administraton cfo = new DataManager.administraton();\n cfo.PRIPID = (String) temp.get(\"PRIPID\");\n cfo.LICNAME = (String) temp.get(\"LICNAME\");\n cfo.LICNO = (String) temp.get(\"LICNO\");\n cfo.VALFROM = (String) temp.get(\"VALFROM\");\n cfo.LICANTH = (String) temp.get(\"LICANTH\");\n cfo.VALTO = (String) temp.get(\"VALTO\");\n DataManager.ad_List.add(cfo);\n }\n }\n if (list221 != null && list221.size() > 0) {\n for (LinkedTreeMap temp : list221) {\n DataManager.admin_other cfo = new DataManager.admin_other();\n cfo.LICANTH = (String) temp.get(\"LICANTH\");\n cfo.REGNO = (String) temp.get(\"REGNO\");\n cfo.VALFROM = (String) temp.get(\"VALFROM\");\n cfo.LICNAME_CN = (String) temp.get(\"LICNAME_CN\");\n cfo.LICID = (String) temp.get(\"LICID\");\n cfo.ENTNAME = (String) temp.get(\"ENTNAME\");\n cfo.LICNO = (String) temp.get(\"LICNO\");\n cfo.VALTO = (String) temp.get(\"VALTO\");\n cfo.PRIPID = (String) temp.get(\"PRIPID\");\n cfo.TYPE = (String) temp.get(\"TYPE\");\n cfo.LICITEM = (String) temp.get(\"LICITEM\");\n DataManager.admin_other_List.add(cfo);\n }\n }\n if (DataManager.ad_List != null || DataManager.admin_other_List != null) {\n CompanyDetailsActivity.handler.sendEmptyMessage(1);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x002://荣誉信息\n String jstring2 = (String) response.get();\n// map = gson.fromJson(jstring2, new TypeToken<Map<String, Object>>() {\n// }.getType());\n// List<DataManager.honorInfo> list2 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"chattel\").toString().trim(), new TypeToken<List<DataManager.honorInfo>>() {\n// }.getType());\n// DataManager.honorInfoList = list2;\n// 以下代码解决空格问题c\n map = gson.fromJson(jstring2, new TypeToken<Map<String, Object>>() {\n }.getType());\n List<LinkedTreeMap> list2 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"chattel\");\n\n if (DataManager.honorInfoList != null) {\n DataManager.honorInfoList.clear();\n }\n if (list2 != null && list2.size() > 0) {\n for (LinkedTreeMap temp : list2) {\n DataManager.honorInfo cfo = new DataManager.honorInfo();\n cfo.HONORID = (String) temp.get(\"HONORID\");\n cfo.HONORNAME = (String) temp.get(\"HONORNAME\");\n cfo.HONORCONTENT = (String) temp.get(\"HONORCONTENT\");\n cfo.ORGAN = (String) temp.get(\"ORGAN\");\n cfo.C_UNIQUE_CODE = (String) temp.get(\"C_UNIQUE_CODE\");\n\n DataManager.honorInfoList.add(cfo);\n }\n }\n\n if (DataManager.honorInfoList != null && DataManager.honorInfoList.size() > 0) {\n CompanyDetailsActivity.handler.sendEmptyMessage(2);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x003://企业扶持信息\n String jstring3 = (String) response.get();\n DataManager.supportInfoS = gson.fromJson(jstring3, DataManager.supportInfo.class);\n if (DataManager.supportInfoS != null) {\n CompanyDetailsActivity.handler.sendEmptyMessage(3);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x004://抵押信息/动产\n jsonString = (String) response.get();\n DataManager.MychattelS = gson.fromJson(jsonString, DataManager.Mychattel.class);\n break;\n case 0x0041://抵押信息/不动产\n jsonString = (String) response.get();\n DataManager.MyrealEstateS = gson.fromJson(jsonString, DataManager.MyrealEstate.class);\n CompanyDetailsActivity.handler.sendEmptyMessage(4);\n break;\n case 0x005://出质信息\n String jstring5 = (String) response.get();\n DataManager.Root5 jsonRoot5 = gson.fromJson(jstring5, new TypeToken<DataManager.Root5>() {\n }.getType());\n DataManager.pledgeInfoList = jsonRoot5.data;\n if (DataManager.pledgeInfoList != null && DataManager.pledgeInfoList.size() > 0) {\n CompanyDetailsActivity.handler.sendEmptyMessage(5);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x006://司法信息\n String jstring6 = (String) response.get();\n map = gson.fromJson(jstring6, new TypeToken<Map<String, Object>>() {\n }.getType());\n /**\n * json报错解析方法\n */\n// List<DataManager.JudicialDocuments> list61 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"judicialDocuments\").toString(), new TypeToken<List<DataManager.JudicialDocuments>>() {\n// }.getType());\n// List<DataManager.CrackCredit> list62 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"crackCredit\").toString(), new TypeToken<List<DataManager.CrackCredit>>() {\n// }.getType());\n// List<DataManager.ShareholderInformationChange> list63 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"shareholderInformationChange\").toString(), new TypeToken<List<DataManager.ShareholderInformationChange>>() {\n// }.getType());\n// List<DataManager.FrozenInformation> list64 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"frozenInformation\").toString(), new TypeToken<List<DataManager.FrozenInformation>>() {\n// }.getType());\n List<LinkedTreeMap> list61 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"judicialDocuments\");\n List<LinkedTreeMap> list62 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"crackCredit\");\n List<LinkedTreeMap> list63 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"shareholderInformationChange\");\n List<LinkedTreeMap> list64 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"frozenInformation\");\n /**\n * 司法文书信息\n */\n if (DataManager.JudicialDocumentsList != null) {\n DataManager.JudicialDocumentsList.clear();\n }\n if (list61 != null && list61.size() > 0) {\n for (LinkedTreeMap temp : list61) {\n DataManager.JudicialDocuments jud = new DataManager.JudicialDocuments();\n jud.CASENUM = (String) temp.get(\"CASENUM\");\n jud.REDECORG_CN = (String) temp.get(\"REDECORG_CN\");\n jud.SENTENCECONMENT = (String) temp.get(\"SENTENCECONMENT\");\n jud.SENTENCEDATE = (String) temp.get(\"SENTENCEDATE\");\n jud.SUPDEPARTMENT = (String) temp.get(\"SUPDEPARTMENT\");\n DataManager.JudicialDocumentsList.add(jud);\n }\n }\n /**\n * 失信被执行人信息\n */\n if (DataManager.CrackCreditList != null) {\n DataManager.CrackCreditList.clear();\n }\n if (list62 != null && list62.size() > 0) {\n for (LinkedTreeMap temp : list62) {\n DataManager.CrackCredit cra = new DataManager.CrackCredit();\n cra.COURT_NAME = (String) temp.get(\"COURT_NAME\");\n cra.COURTCASEID = (String) temp.get(\"COURTCASEID\");\n cra.DISREPUT_TYPE_NAME = (String) temp.get(\"DISREPUT_TYPE_NAME\");\n cra.GIST_CID = (String) temp.get(\"GIST_CID\");\n cra.PERFORMANCE = (String) temp.get(\"PERFORMANCE\");\n cra.REG_DATE = (String) temp.get(\"REG_DATE\");\n cra.DUTY = (String) temp.get(\"DUTY\");\n DataManager.CrackCreditList.add(cra);\n }\n }\n /**\n * 股东变更信息\n */\n if (DataManager.ShareholderInformationChangeList != null) {\n DataManager.ShareholderInformationChangeList.clear();\n }\n if (list63 != null && list63.size() > 0) {\n for (LinkedTreeMap temp : list63) {\n DataManager.ShareholderInformationChange sha = new DataManager.ShareholderInformationChange();\n sha.ALIEN = (String) temp.get(\"ALIEN\");\n sha.FROAM = (Double) temp.get(\"FROAM\");\n sha.FROAUTH = (String) temp.get(\"FROAUTH\");\n sha.INV = (String) temp.get(\"INV\");\n sha.REGNO = (String) temp.get(\"REGNO\");\n DataManager.ShareholderInformationChangeList.add(sha);\n }\n }\n /**\n * 股权冻结信息\n */\n if (DataManager.FrozenInformationList != null) {\n DataManager.FrozenInformationList.clear();\n }\n if (list64 != null && list64.size() > 0) {\n for (LinkedTreeMap temp : list64) {\n DataManager.FrozenInformation fro = new DataManager.FrozenInformation();\n fro.FROAM = (String) temp.get(\"FROAM\");\n fro.FROAUTH = (String) temp.get(\"FROAUTH\");\n fro.FROFROM = (String) temp.get(\"FROFROM\");\n fro.FROID = (String) temp.get(\"FROID\");\n fro.FROZDEADLINE = (String) temp.get(\"FROZDEADLINE\");\n fro.INVTYPE_CN = (String) temp.get(\"INVTYPE_CN\");\n DataManager.FrozenInformationList.add(fro);\n }\n }\n\n// DataManager.JudicialDocumentsList = list61;//司法文书信息\n// DataManager.CrackCreditList = list62;//失信被执行人信息\n// DataManager.ShareholderInformationChangeList = list63;//股东变更信息\n// DataManager.FrozenInformationList = list64;//股权冻结信息\n\n CompanyDetailsActivity.handler.sendEmptyMessage(6);\n break;\n case 0x007://预警信息zlh\n String jsonstring = (String) response.get();\n DataManager.AlertInfoS = gson.fromJson(jsonstring, DataManager.AlertInfo.class);\n if (DataManager.AlertInfoS.data.size() > 0 && DataManager.AlertInfoS != null) {\n CompanyDetailsActivity.handler.sendEmptyMessage(7);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x008://行政处罚\n String jstring8 = (String) response.get();\n DataManager.Root8 jsonRoot8 = gson.fromJson(jstring8, new TypeToken<DataManager.Root8>() {\n }.getType());\n DataManager.punishInfoList = jsonRoot8.data;\n if (DataManager.punishInfoList.size() > 0 && DataManager.punishInfoList != null) {\n CompanyDetailsActivity.handler.sendEmptyMessage(8);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x009://经营异常信息\n jsonString = (String) response.get();\n// map = gson.fromJson(jstring9, new TypeToken<Map<String, Object>>() {\n// }.getType());\n// List<DataManager.abnormalInfo> list9 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"abNormal\").toString(), new TypeToken<List<DataManager.abnormalInfo>>() {\n// }.getType());\n// map = gson.fromJson(jstring9, new TypeToken<Map<String, Object>>() {\n// }.getType());\n// List<LinkedTreeMap> list9 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"abNormal\");\n//\n// if (DataManager.abnormalInfoList != null) {\n// DataManager.abnormalInfoList.clear();\n// }\n// if (list9 != null && list9.size() > 0) {\n// for (LinkedTreeMap temp : list9) {\n// DataManager.abnormalInfo cfo = new DataManager.abnormalInfo();\n// cfo.BUSEXCLIST = (String) temp.get(\"BUSEXCLIST\");\n// cfo.SPECAUSE_CN = (String) temp.get(\"SPECAUSE_CN\");\n// cfo.ABNTIME = (String) temp.get(\"ABNTIME\");\n// cfo.DECORG_CN = (String) temp.get(\"DECORG_CN\");\n// cfo.REMEXCPRES_CN = (String) temp.get(\"REMEXCPRES_CN\");\n// cfo.REMDATE = (String) temp.get(\"REMDATE\");\n// cfo.REDECORG_CN = (String) temp.get(\"REDECORG_CN\");\n// DataManager.abnormalInfoList.add(cfo);\n// }\n\n DataManager.abnormalInfoS = gson.fromJson(jsonString, DataManager.abnormalInfo.class);\n CompanyDetailsActivity.handler.sendEmptyMessage(9);\n\n break;\n case 0x010://专利信息\n jsonString = (String) response.get();\n DataManager.PatentInfoS = gson.fromJson(jsonString, DataManager.PatentInfo.class);\n if (DataManager.PatentInfoS.data.patentInfo != null) {\n CompanyDetailsActivity.handler.sendEmptyMessage(10);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x01012://专利信息(加载更多)\n jsonString = (String) response.get();\n DataManager.PatentInfoS = gson.fromJson(jsonString, DataManager.PatentInfo.class);\n if (DataManager.PatentInfoS.data.patentInfo != null) {\n PatentActivity.handler.sendEmptyMessage(0);\n }\n\n break;\n case 0x011://商标信息\n jsonString = (String) response.get();\n DataManager.trademarkModelS = gson.fromJson(jsonString, DataManager.trademarkModel.class);\n if (DataManager.trademarkModelS.data.trademark.size() > 0 && DataManager.trademarkModelS.data.trademark != null) {\n CompanyDetailsActivity.handler.sendEmptyMessage(11);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x01112://商标信息(加载更多)\n jsonString = (String) response.get();\n DataManager.trademarkModelS = gson.fromJson(jsonString, DataManager.trademarkModel.class);\n if (DataManager.trademarkModelS.data.trademark.size() > 0 && DataManager.trademarkModelS.data.trademark != null) {\n TrademarkActivity.handler.sendEmptyMessage(0);\n }\n break;\n case 0x012://著作信息\n String jstrin12 = (String) response.get();\n map = gson.fromJson(jstrin12, new TypeToken<Map<String, Object>>() {\n }.getType());\n List<LinkedTreeMap> list112 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"patentInfo\");\n List<LinkedTreeMap> list112_1 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"patentInfoSoftwore\");\n ;\n\n\n if (DataManager.copyrightInfoeList != null) {\n DataManager.copyrightInfoeList.clear();\n }\n\n if (list112 != null && list112.size() > 0) {\n for (LinkedTreeMap temp : list112) {\n DataManager.copyrightInfo cfo = new DataManager.copyrightInfo();\n cfo.ID = (String) temp.get(\"ID\");\n cfo.REGISTERDATA = (String) temp.get(\"REGISTERDATA\");\n cfo.REGISTERID = (String) temp.get(\"REGISTERID\");\n\n cfo.WORKNAME = (String) temp.get(\"WORKNAME\");\n cfo.WORKCLASS = (String) temp.get(\"WORKCLASS\");\n cfo.FINISHDATE = (String) temp.get(\"FINISHDATE\");\n cfo.FIRSTDATE = (String) temp.get(\"FIRSTDATE\");\n DataManager.copyrightInfoeList.add(cfo);\n }\n }\n if (list112_1 != null && list112_1.size() > 0) {\n for (LinkedTreeMap temp : list112_1) {\n DataManager.copyrightInfo cfo = new DataManager.copyrightInfo();\n cfo.ID = (String) temp.get(\"ID\");\n cfo.REGISTERDATA = (String) temp.get(\"REGISTERDATA\");\n cfo.REGISTERID = (String) temp.get(\"REGISTERID\");\n\n cfo.WORKCLASS = \"软件\";//额外附加值\n\n cfo.SOFTWARENAME = (String) temp.get(\"SOFTWARENAME\");\n cfo.SOFTWARESHORT = (String) temp.get(\"SOFTWARESHORT\");\n cfo.STARTINGDATE = (String) temp.get(\"STARTINGDATE\");\n DataManager.copyrightInfoeList.add(cfo);\n }\n }\n\n if (DataManager.copyrightInfoeList != null && DataManager.copyrightInfoeList.size() > 0) {\n CompanyDetailsActivity.handler.sendEmptyMessage(12);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x013://广告资质\n String jstring13 = (String) response.get();\n// map = gson.fromJson(jstring13, new TypeToken<Map<String, Object>>() {\n// }.getType());\n// List<DataManager.advertisementInfo> list13 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"advertising\").toString(), new TypeToken<List<DataManager.advertisementInfo>>() {\n// }.getType());\n// DataManager.advertisementInfoList = list13;\n\n map = gson.fromJson(jstring13, new TypeToken<Map<String, Object>>() {\n }.getType());\n List<LinkedTreeMap> list13 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"advertising\");\n\n if (DataManager.advertisementInfoList != null) {\n DataManager.advertisementInfoList.clear();\n }\n if (list13 != null && list13.size() > 0) {\n for (LinkedTreeMap temp : list13) {\n DataManager.advertisementInfo cfo = new DataManager.advertisementInfo();\n cfo.ADVERTID = (String) temp.get(\"ADVERTID\");\n cfo.C_LEVEL = (String) temp.get(\"C_LEVEL\");\n cfo.CATEGORY = (String) temp.get(\"CATEGORY\");\n cfo.IDENTIFYDATE = (String) temp.get(\"IDENTIFYDATE\");\n cfo.VALFORM = (String) temp.get(\"VALFORM\");\n cfo.VALTO = (String) temp.get(\"VALTO\");\n cfo.IDENTIFYORGANS = (String) temp.get(\"IDENTIFYORGANS\");\n DataManager.advertisementInfoList.add(cfo);\n }\n }\n\n if (DataManager.advertisementInfoList != null && DataManager.advertisementInfoList.size() > 0) {\n CompanyDetailsActivity.handler.sendEmptyMessage(13);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x014://守合同重信用信息\n String jstring14 = (String) response.get();\n// map = gson.fromJson(jstring14, new TypeToken<Map<String, Object>>() {\n// }.getType());\n// List<DataManager.obeyedInfo> list14 = gson.fromJson(((Map<String, Object>) map.get(\"data\")).get(\"contractInfo\").toString(), new TypeToken<List<DataManager.obeyedInfo>>() {\n// }.getType());\n// DataManager.obeyedInfoList = list14;\n map = gson.fromJson(jstring14, new TypeToken<Map<String, Object>>() {\n }.getType());\n List<LinkedTreeMap> list14 = (List<LinkedTreeMap>) ((Map<String, Object>) map.get(\"data\")).get(\"contractInfo\");\n\n if (DataManager.obeyedInfoList != null) {\n DataManager.obeyedInfoList.clear();\n }\n if (list14 != null && list14.size() > 0) {\n for (LinkedTreeMap temp : list14) {\n DataManager.obeyedInfo cfo = new DataManager.obeyedInfo();\n cfo.PRIPID = (String) temp.get(\"PRIPID\");\n cfo.ENTNAME = (String) temp.get(\"ENTNAME\");\n cfo.REGNO = (String) temp.get(\"REGNO\");\n cfo.UNISCID = (String) temp.get(\"UNISCID\");\n cfo.CONTENT = (String) temp.get(\"CONTENT\");\n cfo.IDENTIFYDATE = (String) temp.get(\"IDENTIFYDATE\");\n cfo.IDENTIFYORGANS = (String) temp.get(\"IDENTIFYORGANS\");\n cfo.STATE = (String) temp.get(\"STATE\");\n DataManager.obeyedInfoList.add(cfo);\n }\n }\n if (DataManager.obeyedInfoList != null && DataManager.obeyedInfoList.size() > 0) {\n CompanyDetailsActivity.handler.sendEmptyMessage(14);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n\n break;\n case 0x015://自主公示zlh\n jsonString = (String) response.get();\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n if ((List<LinkedTreeMap>) map.get(\"data\") != null) {\n List<LinkedTreeMap> listtemp = (List<LinkedTreeMap>) map.get(\"data\");\n\n for (int i = 0; i < listtemp.size(); i++) {\n switch (listtemp.get(i).get(\"type\").toString()) {\n case \"企业年报\":\n if (listtemp.get(i).get(\"data\") != null) {\n /*DataManager.reportList = gson.fromJson(listtemp.get(i).get(\"data\").toString(), new TypeToken<List<DataManager.report>>() {\n }.getType());*/\n if (DataManager.reportList.size() > 0 || DataManager.reportList != null) {\n DataManager.reportList.clear();\n }\n for (LinkedTreeMap r : (List<LinkedTreeMap>) listtemp.get(i).get(\"data\")) {\n DataManager.report report = new DataManager.report();\n report.ANCHEDATE = (String) r.get(\"ANCHEDATE\");\n report.ANCHEID = (String) r.get(\"ANCHEID\");\n report.ANCHEYEAR = (String) r.get(\"ANCHEYEAR\");\n DataManager.reportList.add(report);\n }\n\n }\n break;\n case \"股东及出资信息\":\n if (listtemp.get(i).get(\"data\") != null) {\n /*DataManager.fundedList = gson.fromJson(listtemp.get(i).get(\"data\").toString(), new TypeToken<List<DataManager.funded>>() {\n }.getType());*/\n if (DataManager.fundedList.size() > 0 || DataManager.fundedList != null) {\n DataManager.fundedList.clear();\n }\n for (LinkedTreeMap r : (List<LinkedTreeMap>) listtemp.get(i).get(\"data\")) {\n DataManager.funded funded = new DataManager.funded();\n funded.ACCONAM = (double) r.get(\"ACCONAM\");\n funded.ACCONDATE = (String) r.get(\"ACCONDATE\");\n funded.ACCONFORM = (String) r.get(\"ACCONFORM\");\n funded.ACCONFORM_CN = (String) r.get(\"ACCONFORM_CN\");\n funded.CONDATE = (String) r.get(\"CONDATE\");\n funded.CONFORM = (String) r.get(\"CONFORM\");\n funded.CONFORM_CN = (String) r.get(\"CONFORM_CN\");\n funded.INV = (String) r.get(\"INV\");\n funded.PUBLICDATE = (String) r.get(\"PUBLICDATE\");\n funded.SUBCONAM = (double) r.get(\"SUBCONAM\");\n funded.ACPUBLICDATE = (String) r.get(\"ACPUBLICDATE\");\n DataManager.fundedList.add(funded);\n\n }\n }\n break;\n case \"股权变更信息\":\n if (listtemp.get(i).get(\"data\") != null) {\n /*DataManager.stockList = gson.fromJson(listtemp.get(i).get(\"data\").toString(), new TypeToken<List<DataManager.stock>>() {\n }.getType());*/\n if (DataManager.stockList.size() > 0 || DataManager.stockList != null) {\n DataManager.stockList.clear();\n }\n for (LinkedTreeMap r : (List<LinkedTreeMap>) listtemp.get(i).get(\"data\")) {\n DataManager.stock stock = new DataManager.stock();\n stock.REGNO = (String) r.get(\"REGNO\");\n stock.ALTAF = (String) r.get(\"ALTAF\");\n stock.ENTNAME = (String) r.get(\"ENTNAME\");\n stock.INVUID = (String) r.get(\"INVUID\");\n stock.UNISCID = (String) r.get(\"UNISCID\");\n stock.PRIPID = (String) r.get(\"PRIPID\");\n stock.ALITEM = (String) r.get(\"ALITEM\");\n stock.ALTDATE = (String) r.get(\"ALTDATE\");\n stock.ALTBE = (String) r.get(\"ALTBE\");\n DataManager.stockList.add(stock);\n }\n }\n break;\n case \"行政许可信息\":\n if (listtemp.get(i).get(\"data\") != null) {\n /*DataManager.permitList = gson.fromJson(listtemp.get(i).get(\"data\").toString(), new TypeToken<List<DataManager.permit>>() {\n }.getType());*/\n if (DataManager.permitList.size() > 0 || DataManager.permitList != null) {\n DataManager.permitList.clear();\n }\n for (LinkedTreeMap r : (List<LinkedTreeMap>) listtemp.get(i).get(\"data\")) {\n DataManager.permit permit = new DataManager.permit();\n permit.invalidDate = (String) r.get(\"invalidDate\");\n permit.LICANTH = (String) r.get(\"LICANTH\");\n permit.LICITEM = (String) r.get(\"LICITEM\");\n permit.LICNAME_CN = (String) r.get(\"LICNAME_CN\");\n permit.LICNO = (String) r.get(\"LICNO\");\n permit.PUBLICDATE = (String) r.get(\"PUBLICDATE\");\n permit.VALFROM = (String) r.get(\"VALFROM\");\n permit.VALTO = (String) r.get(\"VALTO\");\n DataManager.permitList.add(permit);\n }\n }\n break;\n case \"知识产权登记信息\":\n if (listtemp.get(i).get(\"data\") != null) {\n /*DataManager.loreList = gson.fromJson(listtemp.get(i).get(\"data\").toString(), new TypeToken<List<DataManager.lore>>() {\n }.getType());*/\n if (DataManager.loreList.size() > 0 || DataManager.loreList != null) {\n DataManager.loreList.clear();\n }\n for (LinkedTreeMap r : (List<LinkedTreeMap>) listtemp.get(i).get(\"data\")) {\n DataManager.lore lore = new DataManager.lore();\n lore.TYPENAME = (String) r.get(\"TYPENAME\");\n lore.TMNAME = (String) r.get(\"TMNAME\");\n lore.INVALIDDATE = (String) r.get(\"INVALIDDATE\");\n lore.PLEREGPERFROM = (String) r.get(\"PLEREGPERFROM\");\n lore.EQUPLECANREA = (String) r.get(\"EQUPLECANREA\");\n lore.CANDATE = (String) r.get(\"CANDATE\");\n lore.UNISCID = (String) r.get(\"UNISCID\");\n lore.KINDS = (String) r.get(\"KINDS\");\n lore.PLEREGPERTO = (String) r.get(\"PLEREGPERTO\");\n lore.REGNO = (String) r.get(\"REGNO\");\n lore.TMREGNO = (String) r.get(\"TMREGNO\");\n lore.PLEDGOR = (String) r.get(\"PLEDGOR\");\n lore.PLEID = (String) r.get(\"PLEID\");\n lore.ENTNAME = (String) r.get(\"ENTNAME\");\n lore.INVALIDREA = (String) r.get(\"INVALIDREA\");\n lore.PRIPID = (String) r.get(\"PRIPID\");\n lore.PUBLICDATE = (String) r.get(\"PUBLICDATE\");\n lore.IMPORG = (String) r.get(\"IMPORG\");\n lore.TYPE = (String) r.get(\"TYPE\");\n DataManager.loreList.add(lore);\n }\n\n }\n break;\n case \"行政处罚信息\":\n if (listtemp.get(i).get(\"data\") != null) {\n /*DataManager.punishList = gson.fromJson(listtemp.get(i).get(\"data\").toString(), new TypeToken<List<DataManager.punish>>() {\n }.getType());*/\n if (DataManager.punishList.size() > 0 || DataManager.punishList != null) {\n DataManager.punishList.clear();\n }\n for (LinkedTreeMap r : (List<LinkedTreeMap>) listtemp.get(i).get(\"data\")) {\n DataManager.punish punish = new DataManager.punish();\n punish.PENTYPE_CN = (String) r.get(\"PENTYPE_CN\");\n punish.REMARK = (String) r.get(\"REMARK\");\n punish.UNISCID = (String) r.get(\"UNISCID\");\n punish.PENDECISSDATE = (String) r.get(\"PENDECISSDATE\");\n punish.PENAM = (Double) r.get(\"PENAM\");\n punish.CASEID = (String) r.get(\"CASEID\");\n punish.REGNO = (String) r.get(\"REGNO\");\n punish.JUDAUTH = (String) r.get(\"JUDAUTH\");\n punish.ENTNAME = (String) r.get(\"ENTNAME\");\n punish.PENDECNO = (String) r.get(\"PENDECNO\");\n punish.PENTYPE = (String) r.get(\"PENTYPE\");\n punish.FORFAM = (Double) r.get(\"FORFAM\");\n punish.ILLEGACTTYPE = (String) r.get(\"ILLEGACTTYPE\");\n punish.PENCONTENT = (String) r.get(\"PENCONTENT\");\n punish.PRIPID = (String) r.get(\"PRIPID\");\n punish.PUBLICDATE = (String) r.get(\"PUBLICDATE\");\n DataManager.punishList.add(punish);\n }\n }\n break;\n default:\n break;\n }\n\n }\n CompanyDetailsActivity.handler.sendEmptyMessage(15);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x101://关注企业\n jsonString = (String) response.get();\n DataManager.FavotiteS = gson.fromJson(jsonString, DataManager.Favotite.class);\n CompanyDetailsActivity.handler.sendEmptyMessage(22);\n break;\n case 0x102://取消关注企业\n jsonString = (String) response.get();\n DataManager.FavotiteS = gson.fromJson(jsonString, DataManager.Favotite.class);\n CompanyDetailsActivity.handler.sendEmptyMessage(23);\n break;\n case 0x103://我的关注列表\n jsonString = (String) response.get();\n DataManager.FavotiteListS = gson.fromJson(jsonString, DataManager.FavotiteList.class);\n MainActivity.handler.sendEmptyMessage(5);\n break;\n case 0x201://评论\n jsonString = (String) response.get();\n DataManager.MyCommentlistrS = gson.fromJson(jsonString, DataManager.MyCommentlistr.class);\n if (DataManager.MyCommentlistrS.data.userreview != null && DataManager.MyCommentlistrS.data.userreview.size() > 0) {\n CommentListActivity.handler.sendEmptyMessage(0);\n } else {\n CommentListActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x202://点赞\n String jstring202 = (String) response.get();\n DataManager.Root202 jsonRoot202 = gson.fromJson(jstring202, new TypeToken<DataManager.Root202>() {\n }.getType());\n DataManager.Data202 d202 = jsonRoot202.data;\n DataManager.Result = d202.result;\n// if (DataManager.Result.equals(\"1\")) {\n// CommentListDetailsActivity.handler.sendEmptyMessage(2);\n// }\n break;\n case 0x203://差评\n String jstring203 = (String) response.get();\n DataManager.Root202 jsonRoot203 = gson.fromJson(jstring203, new TypeToken<DataManager.Root202>() {\n }.getType());\n DataManager.Data202 d203 = jsonRoot203.data;\n DataManager.Result = d203.result;\n// if (DataManager.Result.equals(\"1\")) {\n// CommentListDetailsActivity.handler.sendEmptyMessage(2);\n// }\n break;\n case 0x204://发表评论\n String jstring204 = (String) response.get();\n DataManager.Root202 jsonRoot204 = gson.fromJson(jstring204, new TypeToken<DataManager.Root202>() {\n }.getType());\n DataManager.Data202 d204 = jsonRoot204.data;\n DataManager.Result = d204.result;\n if (DataManager.Result.equals(\"success\")) {\n ToCommentActivity.handler.sendEmptyMessage(1);\n } else {\n ToCommentActivity.handler.sendEmptyMessage(2);\n }\n break;\n case 0x205://回复评论\n String jstring205 = (String) response.get();\n DataManager.Root202 jsonRoot205 = gson.fromJson(jstring205, new TypeToken<DataManager.Root202>() {\n }.getType());\n DataManager.Data202 d205 = jsonRoot205.data;\n DataManager.Result = d205.result;\n if (DataManager.Result.equals(\"success\")) {\n CommentListDetailsActivity.handler.sendEmptyMessage(1);\n } else {\n CommentListDetailsActivity.handler.sendEmptyMessage(2);\n }\n break;\n case 0x206://我的评价\n jsonString = (String) response.get();\n DataManager.MyComms = gson.fromJson(jsonString, DataManager.MyComm.class);\n MainActivity.handler.sendEmptyMessage(1);\n break;\n case 0x301://提交认领s\n jsonString = (String) response.get();\n DataManager.ClaimUtilsModel = gson.fromJson(jsonString, DataManager.ClaimUtils.class);\n if (DataManager.ClaimUtilsModel.data.result.equals(\"success\")) {\n ToClaimActivity.handler.sendEmptyMessage(1);\n } else {\n ToClaimActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x302://提交认领附件\n jsonString = (String) response.get();\n DataManager.ClaimUtilsModel = gson.fromJson(jsonString, DataManager.ClaimUtils.class);\n if (DataManager.ClaimUtilsModel.data.result.equals(\"success\")) {\n ToClaimActivity.handler.sendEmptyMessage(2);\n } else {\n ToClaimActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x303://我的认领列表\n jsonString = (String) response.get();\n DataManager.MyClaimUtilsModel = gson.fromJson(jsonString, DataManager.MyClaimUtils.class);\n MainActivity.handler.sendEmptyMessage(6);\n break;\n case 0x3031://我的认领列表{副}\n jsonString = (String) response.get();\n DataManager.MyClaimUtilsModel = gson.fromJson(jsonString, DataManager.MyClaimUtils.class);\n MyClaimActivity.handler.sendEmptyMessage(2);\n break;\n case 0x304://我的认领详情\n jsonString = (String) response.get();\n DataManager.MyClaimUtilsModel = gson.fromJson(jsonString, DataManager.MyClaimUtils.class);\n// MyClaimActivity.handler.sendEmptyMessage(6);\n break;\n case 0x305://取消认领\n jsonString = (String) response.get();\n DataManager.ClaimUtilsModel = gson.fromJson(jsonString, DataManager.ClaimUtils.class);\n if (DataManager.ClaimUtilsModel.data.result.equals(\"success\") || DataManager.ClaimUtilsModel.data.result.equals(\"fail\")) {\n MyClaimActivity.handler.sendEmptyMessage(1);\n } else {\n MyClaimActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x401://修改个人资料{\"message\":\"Success\",\"status\":\"1\",\"version\":\"v1.0\"}\n jsonString = (String) response.get();\n DataManager.user = gson.fromJson(jsonString, DataManager.User.class);\n if (DataManager.user.message.equals(\"success\")) {\n csp.putUser(DataManager.user);\n UserSetActivity.handler.sendEmptyMessage(1);\n MainActivity.loginImg(csp.getICONSTEAM());\n } else {\n UserSetActivity.handler.sendEmptyMessage(2);\n }\n break;\n case 0x4011://个人资料字典\n jsonString = (String) response.get();\n DataManager.ZdianS = gson.fromJson(jsonString, DataManager.Zdian.class);\n if (DataManager.ZdianS.data.dictionarie != null && DataManager.ZdianS.data.dictionarie.size() > 0) {\n UserSetActivity.handler.sendEmptyMessage(3);\n }\n break;\n case 0x501://修改密码\n jsonString = (String) response.get();\n DataManager.user = gson.fromJson(jsonString, DataManager.User.class);\n if (DataManager.user.message.equals(\"Success\")) {\n PassWordActivity.handler.sendEmptyMessage(1);\n } else if (DataManager.user.message.equals(\"原始密码错误\")) {\n PassWordActivity.handler.sendEmptyMessage(3);\n } else {\n PassWordActivity.handler.sendEmptyMessage(2);\n }\n\n break;\n case 0x601://二维码名片\n jsonString = (String) response.get();\n DataManager.TwoDimSli = gson.fromJson(jsonString, DataManager.TwoDim.class);\n if (DataManager.TwoDimSli.message.equals(\"success\")) {\n CompanyDetailsActivity.waitDialog.dismiss();\n CompanyDetailsActivity.handler.sendEmptyMessage(25);\n } else {\n CompanyDetailsActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x701://信用报告1\n jsonString = (String) response.get();\n if (jsonString.equals(DataManager.BaseinfoList.get(0).ENTNAME + \".pdf\")) {\n DataManager.ReportText = jsonString;\n ReportActivity.handler.sendEmptyMessage(0);\n } else {\n ReportActivity.handler.sendEmptyMessage(1);\n }\n break;\n case 0x702://信用报告2\n jsonString = (String) response.get();\n if (jsonString.equals(\"success\")) {\n ReportActivity.handler.sendEmptyMessage(3);\n } else {\n ReportActivity.handler.sendEmptyMessage(2);\n }\n break;\n case 0x999://登入\n jsonString = (String) response.get();\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n\n if (!map.get(\"status\").equals(\"1\")) {//登入失败谁动了我的账号,给我站出来\n Toast.show(map.get(\"message\").toString());\n LoginActivity.wd.dismiss();\n } else {//登入成功\n DataManager.user = gson.fromJson(jsonString, DataManager.User.class);\n csp.putUser(DataManager.user);\n csp.putLoginStatus(true);\n Toast.show(\"登录成功\");\n if (csp.getALIASNAME().equals(\"\")) {\n csp.putALIASNAME(\"用户12138\");\n }\n if (!csp.getALIASNAME().equals(\"\")) {\n MainActivity.UserSz.setText(csp.getALIASNAME());\n } else {\n MainActivity.UserSz.setText(csp.getUSERNAME());\n }\n if (!csp.getICONSTEAM().equals(\"\")) {\n MainActivity.loginImg(csp.getICONSTEAM());\n }\n LoginActivity.handler.sendEmptyMessage(0);\n LoginActivity.wd.dismiss();\n }\n break;\n case 0x998://注册\n jsonString = (String) response.get();\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n if (!map.get(\"status\").equals(\"1\")) {//注册失败\n RegisterActivity.pd.dismiss();\n Toast.show(\"注册失败\" + map.get(\"message\").toString());\n } else {//注册成功\n\n RegisterActivity.handler.sendEmptyMessage(0);\n }\n break;\n case 0x997://个人中心获取投诉列表\n jsonString = (String) response.get();\n DataManager.myComplaint = gson.fromJson(jsonString, DataManager.MyComplaint.class);\n MainActivity.handler.sendEmptyMessage(2);\n\n break;\n case 0x9971://个人中心获取投诉列表\n jsonString = (String) response.get();\n DataManager.myComplaint = gson.fromJson(jsonString, DataManager.MyComplaint.class);\n MycomplaintsListActivity.handler.sendEmptyMessage(21);\n\n break;\n\n case 0x996://个人中心取消投诉请求\n jsonString = (String) response.get();\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n if (!map.get(\"status\").equals(\"1\")) {//取消失败\n MycomplaintsListActivity.pd.dismiss();\n Toast.show(\"取消失败\" + map.get(\"message\").toString());\n } else {//取消成功\n MycomplaintsListActivity.handler.sendEmptyMessage(1);\n }\n break;\n case 0x995://获取投诉详情\n jsonString = (String) response.get();\n DataManager.complaintDetail = gson.fromJson(jsonString, DataManager.ComplaintDetail.class);\n MycomplaintsListActivity.handler.sendEmptyMessage(3);\n break;\n case 0x994://获取企业投诉列表\n jsonString = (String) response.get();\n DataManager.myComplaint = gson.fromJson(jsonString, DataManager.MyComplaint.class);\n if (CompanyDetailsActivity.waitDialog != null) {\n CompanyDetailsActivity.waitDialog.dismiss();\n }\n CompanyDetailsActivity.handler.sendEmptyMessage(24);\n break;\n case 0x9941://获取企业投诉列表更多\n jsonString = (String) response.get();\n DataManager.myComplaint = gson.fromJson(jsonString, DataManager.MyComplaint.class);\n if (CompanyDetailsActivity.waitDialog != null) {\n CompanyDetailsActivity.waitDialog.dismiss();\n }\n MycomplaintsListActivity.handler.sendEmptyMessage(6);\n break;\n\n case 0x993://提交企业投诉\n jsonString = (String) response.get();\n DataManager.toComplain = gson.fromJson(jsonString, DataManager.ToComplain.class);\n /*map=gson.fromJson(jsonString,new TypeToken<Map<String, Object>>() {\n }.getType());*/\n if (!DataManager.toComplain.status.equals(\"1\")) {//返回提交投诉失败\n Toast.show(\"提交投诉失败\" + map.get(\"message\"));\n } else {//成功\n ToComplaintActivity.handler.sendEmptyMessage(1);\n\n }\n break;\n case 0x992://提交投诉附件\n jsonString = (String) response.get();\n map = gson.fromJson(jsonString, new TypeToken<Map<String, Object>>() {\n }.getType());\n if (!map.get(\"status\").equals(\"1\")) {//返回提交投诉失败\n Toast.show(\"提交投诉图片失败\" + map.get(\"message\"));\n } else {//成功\n ToComplaintActivity.handler.sendEmptyMessage(0);\n\n }\n break;\n case 0x991://提交投诉后刷新企业投诉\n jsonString = (String) response.get();\n DataManager.myComplaint = gson.fromJson(jsonString, DataManager.MyComplaint.class);\n MycomplaintsListActivity.handler.sendEmptyMessage(5);\n break;\n case 0x12138://记录24宫格\n jsonString = (String) response.get();\n break;\n case 0x1001://商标查询\n jsonString = (String) response.get();\n DataManager.sb_searchS = gson.fromJson(jsonString, DataManager.sb_search.class);\n if (DataManager.sb_searchS.data.trademark.size() > 0) {\n Main_SearchActivity.handler.sendEmptyMessage(0);\n } else {\n Main_SearchActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x1002://首页专利查询\n jsonString = (String) response.get();\n DataManager.zl_searchS = gson.fromJson(jsonString, DataManager.zl_search.class);\n if (DataManager.zl_searchS.data.patentInfo.size() > 0 && DataManager.zl_searchS.data.patentInfo != null) {\n Main_SearchActivity.handler.sendEmptyMessage(1);\n } else {\n Main_SearchActivity.handler.sendEmptyMessage(500);\n }\n break;\n case 0x1003://首页商标查询(上下拉事件)\n jsonString = (String) response.get();\n DataManager.sb_searchS = gson.fromJson(jsonString, DataManager.sb_search.class);\n if (DataManager.sb_searchS.data.trademark.size() > 0) {\n Main_Search_ListActivity.handler.sendEmptyMessage(0);\n }\n break;\n case 0x1004://专利查询(上下拉事件)\n jsonString = (String) response.get();\n DataManager.zl_searchS = gson.fromJson(jsonString, DataManager.zl_search.class);\n if (DataManager.zl_searchS.data.patentInfo.size() > 0 && DataManager.zl_searchS.data.patentInfo != null) {\n Main_Search_ListActivity.handler.sendEmptyMessage(1);\n }\n break;\n case 0x1005://失信查询\n jsonString = (String) response.get();\n DataManager.MyDishonestyS = gson.fromJson(jsonString, DataManager.MyDishonesty.class);\n if (DataManager.MyDishonestyS.data.Courtcaseinfo.size() > 0 && DataManager.MyDishonestyS.data.Courtcaseinfo != null) {\n Main_SearchActivity.handler.sendEmptyMessage(2);\n }\n break;\n case 0x1006://失信查询(上下拉事件)\n jsonString = (String) response.get();\n DataManager.MyDishonestyS = gson.fromJson(jsonString, DataManager.MyDishonesty.class);\n if (DataManager.MyDishonestyS.data.Courtcaseinfo.size() > 0 && DataManager.MyDishonestyS.data.Courtcaseinfo != null) {\n Main_Search_ListActivity.handler.sendEmptyMessage(2);\n }\n break;\n default:\n break;\n }\n } catch (NullPointerException e) {\n showdisplay(what);\n Toast.show(\"后台数据空返回!\");\n } catch (IndexOutOfBoundsException e) {\n showdisplay(what);\n Toast.show(\"后台数据结构变更下标越界!\");\n } catch (ClassCastException e) {\n showdisplay(what);\n Toast.show(\"后台数据变更类型转换出错!\");\n } catch (NumberFormatException e) {\n showdisplay(what);\n Toast.show(\"字符串转换为数字异常!\");\n } catch (JsonSyntaxException e) {\n showdisplay(what);\n Toast.show(\"后台数据变更json解析出错!\");\n }\n }", "void handleWeatherDataForCity(String cityName);", "public List<Customer> getAllByCity(String city) {\n\t\treturn custRepo.findByHomeAddressCity(city);\n\t}", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "private Map<String, Map<String, City>> getCountryCityMap() {\n return countryService.findAll().stream()\n .collect(toMap(Country::getName,\n country -> country.getCities().stream()\n .collect(toMap(City::getName,\n city -> city))));\n }", "public ArrayList<CityBean> getCities(int parentId){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {parentId+\"\"};\n Cursor cursor = database.query(\"area\", columns, \"PARENT_ID=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n LogUtil.e(\"PatientId\",parentId+\"\");\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "public List<String> getLocationAndCity(){\n\t\treturn jtemp.queryForList(\"SELECT location_id||city FROM locations\", String.class);\n\t}", "public List<PersonDto> findByCity(String city) {\n List<Person> models = Collections.emptyList();\n return models.stream()\n .map(personMapper::toDto)\n .collect(Collectors.toList());\n }" ]
[ "0.71632093", "0.6908432", "0.68936074", "0.6828628", "0.68172085", "0.6809198", "0.6746493", "0.65765107", "0.651716", "0.6491625", "0.641753", "0.6352614", "0.6332284", "0.63211656", "0.6278244", "0.6270848", "0.6264004", "0.62638694", "0.62333316", "0.620501", "0.61615956", "0.6161415", "0.6145698", "0.6117301", "0.6085967", "0.6084396", "0.60811985", "0.607718", "0.6064189", "0.60406286", "0.59866804", "0.5981797", "0.5968372", "0.5960402", "0.58858764", "0.5881309", "0.5863074", "0.58515084", "0.58494866", "0.5822081", "0.58100516", "0.58061", "0.57630414", "0.573587", "0.5680465", "0.5672233", "0.566916", "0.56667686", "0.5655525", "0.5654614", "0.5611451", "0.5607245", "0.56047463", "0.5591075", "0.5581735", "0.55797875", "0.5572643", "0.55692214", "0.5548895", "0.55403936", "0.5535955", "0.5535648", "0.55218107", "0.55186766", "0.55169207", "0.5516759", "0.55162865", "0.55052847", "0.54977244", "0.5494289", "0.54741335", "0.54560465", "0.5448837", "0.54483366", "0.54473394", "0.544083", "0.5437519", "0.5431023", "0.5427171", "0.5423534", "0.5417704", "0.54168004", "0.54130006", "0.5394998", "0.5389818", "0.5387004", "0.538031", "0.5378489", "0.53710616", "0.5357243", "0.5348162", "0.534051", "0.5339325", "0.5336147", "0.53279734", "0.5326456", "0.53097165", "0.5303572", "0.5303173", "0.5301765" ]
0.7592953
0
No actual subscription to make, but we still need to acknowledge it.
@Override public void subscribe(final Set<ValueSpecification> valueSpecifications) { LOGGER.debug("Added subscriptions to {}", valueSpecifications); subscriptionsSucceeded(valueSpecifications); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void brokenSubscription() {\n\t\t\n\t}", "private void subscribeCompleted(MqttSubAckMessage ack) {\n LinkedHashMap<String, RequestedQoS> request = this.pendingSubscribes.remove(ack.messageId());\n if (request == null) {\n closeConnection(String.format(\"Unexpected subscription ack response - messageId: %s\", ack.messageId()));\n return;\n }\n if (request.size() != ack.grantedQoSLevels().size()) {\n closeConnection(String.format(\"Mismatch of topics on subscription ack - expected: %d, actual: %d\", request.size(),\n ack.grantedQoSLevels().size()));\n return;\n }\n\n int idx = 0;\n for (String topic : request.keySet()) {\n Integer grantedQoS = ack.grantedQoSLevels().get(idx);\n notifySubscriptionState(topic, SubscriptionState.SUBSCRIBED, grantedQoS);\n idx += 1;\n }\n }", "boolean shouldAutoSubscribe();", "@Override\n\tpublic void onSubscribe(Subscription subscription) {\n\t\tSystem.out.println(\"onSubscribe invoked\");\n\t\tsubscription.request(Long.MAX_VALUE);\n\t}", "private void subscribe() {\n Log.i(TAG, \"Subscribing\");\n mNearbyDevicesArrayAdapter.clear();\n SubscribeOptions options = new SubscribeOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new SubscribeCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer subscribing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mSubscribeSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.subscribe(mGoogleApiClient, mMessageListener, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Subscribed successfully.\");\n } else {\n logAndShowSnackbar(\"Could not subscribe, status = \" + status);\n mSubscribeSwitch.setChecked(false);\n }\n }\n });\n }", "void subscribe();", "@Test\r\n\tpublic void aTestValidSubscribe() {\r\n\t\tbroker.subscribe(intSub);\r\n\t\tbroker.subscribe(unreadSub);\r\n\t\tbroker.subscribe(pIntSub);\r\n\t}", "boolean hasSubscribe();", "@Override\n public void onSubscribe(Subscription s) {\n s.request(10);\n\n // Should not produce anymore data\n s.request(10);\n }", "@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}", "public interface Subscription {\n /**\n * Await cancelled.\n *\n * @throws InterruptedException the interrupted exception\n */\n void awaitCancelled() throws InterruptedException;\n\n /**\n * Await cancelled boolean.\n *\n * @param timeout the timeout\n * @param unit the unit\n * @return the boolean\n * @throws InterruptedException the interrupted exception\n */\n boolean awaitCancelled(long timeout, TimeUnit unit) throws InterruptedException;\n\n /**\n * Cancels this subscription. After this subscription has been cancelled. No more packets will be delivered to\n * the consumer.\n */\n void cancel();\n\n /**\n * Returns whether or not the subscription has been cancelled. @return the boolean\n *\n * @return the boolean\n */\n boolean isCancelled();\n }", "@Override\n protected boolean shouldAck() {\n return true;\n }", "boolean needsAck() { return true; }", "public Subscription() {\n System.out.println(\"create new subscription\");\n }", "public interface Subscription {\n /**\n * Calling this will send the event to the subscribed service\n * @param event the event to transmit to the subscribed service\n */\n boolean onEvent(Event event);\n\n /**\n * Returns a stream of all subscribeRequests that are transmitted by the subbed service\n * @return a stream of subscribeRequests transmitted by subbed service\n */\n Observable<SubscribeRequest> getSubscribeRequestStream();\n\n /**\n * This completable will complete when the subscription is terminated for some reason (most likely a connection termination)\n * @return a completable that will complete when the subscription is terminated\n */\n Completable getCompletable();\n}", "@Override\n protected void onSubscribe() {\n Subscription s = subscription;\n Disposable d = Disposable.from(s);\n \n if (!TerminalAtomics.set(this, DISCONNECT, d)) {\n done = true;\n return;\n }\n \n connected = true;\n s.request(Flow.defaultBufferSize());\n }", "@Override\n public boolean subscribe(Task data) {\n return true;\n }", "public void onSubscribe() {\n\n }", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n public void onSubscribe(Disposable d) {\n }", "public abstract boolean isSubscribesEnabled();", "public void onUnsubscribe() {\n\n }", "boolean hasSubscription();", "void clearSubscriber() {\n if (!(subscriber instanceof AbortingSubscriber)) {\n subscriber = NeverInvokedSubscriber.get();\n }\n }", "public PublishSubscribeChannel() {\n\t\tthis(false);\n\t}", "private void handleEarlySubscribeReceived()\n {\n for(Jid from : earlySubscriptions.keySet())\n {\n handleSubscribeReceived(from, earlySubscriptions.get(from));\n }\n\n earlySubscriptions.clear();\n }", "@Override\n\t\tpublic void onSubscribe(Disposable d) {\n\t\t\tSystem.out.println(\"subscribe\");\n\t\t}", "public void ack() {\n }", "public interface Subscription {\n void cancel();\n\n void request(long j);\n}", "private void subscribeHandler(MqttSubscribeMessage subscribe) {\n\n final int messageId = subscribe.messageId();\n LOG.info(\"SUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_SUBSCRIBE\n\n List<AmqpTopicSubscription> topicSubscriptions =\n subscribe.topicSubscriptions().stream().map(topicSubscription -> {\n return new AmqpTopicSubscription(topicSubscription.topicName(), topicSubscription.qualityOfService());\n }).collect(Collectors.toList());\n\n AmqpSubscribeMessage amqpSubscribeMessage =\n new AmqpSubscribeMessage(this.mqttEndpoint.clientIdentifier(),\n topicSubscriptions);\n\n this.ssEndpoint.sendSubscribe(amqpSubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n ProtonDelivery delivery = done.result();\n\n List<MqttQoS> grantedQoSLevels = null;\n if (delivery.getRemoteState() == Accepted.getInstance()) {\n\n // QoS levels requested are granted\n grantedQoSLevels = amqpSubscribeMessage.topicSubscriptions().stream().map(topicSubscription -> {\n return topicSubscription.qos();\n }).collect(Collectors.toList());\n\n // add accepted topic subscriptions to the local collection\n amqpSubscribeMessage.topicSubscriptions().stream().forEach(amqpTopicSubscription -> {\n this.grantedQoSLevels.put(amqpTopicSubscription.topic(), amqpTopicSubscription.qos());\n });\n\n } else {\n\n // failure for all QoS levels requested\n grantedQoSLevels = new ArrayList<>(Collections.nCopies(amqpSubscribeMessage.topicSubscriptions().size(), MqttQoS.FAILURE));\n }\n\n this.mqttEndpoint.subscribeAcknowledge(messageId, grantedQoSLevels);\n\n LOG.info(\"SUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }", "SubscriptionDetails subscribeToMessage(SubscribeToMessage cmd);", "public void createSubscription(Subscription sub);", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable p1) {\n\t\t\t\t\t}", "void subscribe(Long subscriptionId, ApplicationProperties.VendorConfiguration configuration);", "void invokeOnSubscribe0() {\n try {\n subscriber.onSubscribe(this);\n } catch (Throwable t) {\n processor.unsubscribe(this, t);\n throwIfFatal(t);\n logger.warn(\"Subscriber.onSubscribe() should not raise an exception. subscriber: {}\",\n subscriber, t);\n }\n }", "@Override\n\tpublic void onUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Test\n public void subscribe_unsubscribe() {\n String channelName = \"subscribe_unsubscribe_\" + testParams.name;\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n ably = new AblyRealtime(opts);\n\n /* create a channel and attach */\n final Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n assertEquals(\"Verify attached state reached\", channel.state, ChannelState.attached);\n\n /* subscribe */\n MessageListener testListener = new MessageListener() {\n @Override\n public void onMessage(Message message) {\n }};\n channel.subscribe(\"test_event\", testListener);\n /* unsubscribe */\n channel.unsubscribe(\"test_event\", testListener);\n } catch (AblyException e) {\n e.printStackTrace();\n fail(\"init0: Unexpected exception instantiating library\");\n } finally {\n if(ably != null)\n ably.close();\n }\n }", "@Override\n\tpublic void onSubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Test\n public void attach_implicit_subscribe_fail() throws AblyException {\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[1].keyStr);\n ably = new AblyRealtime(opts);\n\n /* wait until connected */\n new ConnectionWaiter(ably.connection).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", ably.connection.state, ConnectionState.connected);\n\n /* create a channel and subscribe */\n final Channel channel = ably.channels.get(\"subscribe_fail\");\n channel.subscribe(null);\n assertEquals(\"Verify attaching state reached\", channel.state, ChannelState.attaching);\n\n ErrorInfo fail = new ChannelWaiter(channel).waitFor(ChannelState.failed);\n assertEquals(\"Verify failed state reached\", channel.state, ChannelState.failed);\n assertEquals(\"Verify reason code gives correct failure reason\", fail.statusCode, 401);\n } finally {\n if(ably != null)\n ably.close();\n }\n }", "protected void beforeConsume() {\n // Do nothing\n }", "@Override\r\n public void onCompleted() {\n Log.i(TAG, \"subscribed to buyable items\");\r\n }", "public boolean hasSubscribe() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public abstract void publishSelf (SubscriberInterface subscriber);", "public boolean hasSubscribe() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private void Inscrire() {\n\t\t\r\n\t\tSystem.out.println(\"inscription\");\r\n }", "static void confirmSubscribe_C(Messenger messenger, Response_e response)\n {\n sendToClient( messenger, Request_e.Request_Subscribe_Event_C_en.valueOf(), response, null );\n }", "void setAutoSubscribe(boolean autoSubscribe);", "public boolean isSubscribing() {\n\t\treturn isSubscribing;\n\t}", "public final ISubscription<T> subscribe(final InstrumentSpecification spec, final TimeFrame timeFrame) {\n\t\tfinal Topic topic = new Topic(spec, timeFrame);\n\n\t\tsynchronized(activeSubscriptions) {\n\t\t\t// lookup backend subscription\n\t\t\tSubscription subscription = activeBackends.get(topic);\n\t\t\tif(subscription == null) {\n\t\t\t\tsubscription = createSubscription(spec, timeFrame);\n\t\t\t\tactiveBackends.put(topic, subscription);\n\t\t\t}\n\n\t\t\tfinal Subscription backend = subscription;\n\t\t\tbackend.refCount.getAndIncrement();\n\t\t\t\n\t\t\t// instantiate new delegate to backend \n\t\t\tSubscriptionDelegate out = new SubscriptionDelegate() {\n\n\t\t\t\tprivate final AtomicBoolean isActive = new AtomicBoolean(false);\n\t\t\t\tprivate final AtomicBoolean isCanceled = new AtomicBoolean(false);\n\n\t\t\t\tpublic void activate() throws SubscriptionException {\n\t\t\t\t\tif(isCanceled.get()) {\n\t\t\t\t\t\tthrow new IllegalStateException(\"subscription was canceled\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif(isActive.getAndSet(true)) {\n\t\t\t\t\t\treturn; // already active\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(IEventListener<T> l : listeners) {\n\t\t\t\t\t\tbackend.addEventListener(l);\n\t\t\t\t\t}\n\n\t\t\t\t\tlog.debug(\"activating subscription \" + this);\n\t\t\t\t\tbackend.activate();\n\t\t\t\t}\n\n\t\t\t\tpublic void cancel() throws SubscriptionException {\n\n\t\t\t\t\tif(isCanceled.getAndSet(true)) {\n\t\t\t\t\t\treturn; // ignore duplicate cancel requests\n\t\t\t\t\t}\n\n\t\t\t\t\tif(isActive.getAndSet(false)) {\n\t\t\t\t\t\tfor(IEventListener<T> l : listeners) {\n\t\t\t\t\t\t\tbackend.removeEventListener(l);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tlisteners.clear();\n\n\t\t\t\t\tsynchronized(activeSubscriptions) {\n\t\t\t\t\t\tactiveSubscriptions.remove(this);\n\n\t\t\t\t\t\tif(backend.refCount.decrementAndGet() == 0) {\n\t\t\t\t\t\t\tactiveBackends.remove(topic);\n\t\t\t\t\t\t\tlog.debug(\"canceling subscription \" + this);\n\t\t\t\t\t\t\tbackend.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpublic InstrumentSpecification getInstrumentSpecification() {\n\t\t\t\t\treturn spec;\n\t\t\t\t}\n\n\t\t\t\tpublic TimeFrame getTimeFrame() {\n\t\t\t\t\treturn timeFrame;\n\t\t\t\t}\n\n\t\t\t\tpublic String getVendorName() {\n\t\t\t\t\treturn vendorName;\n\t\t\t\t}\n\n\t\t\t\tpublic boolean isActive() {\n\t\t\t\t\treturn isActive.get();\n\t\t\t\t}\n\n\t\t\t\tprivate final Queue<IEventListener<T>> listeners = new ConcurrentLinkedQueue<IEventListener<T>>();\n\n\t\t\t\tpublic void addEventListener(IEventListener<T> listener) {\n\t\t\t\t\tlisteners.add(listener);\n\t\t\t\t\tif(isActive.get()) {\n\t\t\t\t\t\tbackend.addEventListener(listener);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpublic void removeEventListener(IEventListener<T> listener) {\n\t\t\t\t\tif(!listeners.remove(listener)) return;\n\n\t\t\t\t\tif(isActive.get()) {\n\t\t\t\t\t\tbackend.removeEventListener(listener);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\treturn \"Subscription(spec=\" + spec + \", timeFrame=\" + timeFrame + \")\";\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tactiveSubscriptions.add(out);\n\t\t\treturn out;\n\t\t}\n\t}", "public void acknowledgeSubscription(int i, boolean z) {\n ZoomSubscribeRequest item = getItem(i);\n if (item != null) {\n ZoomMessenger zoomMessenger = PTApp.getInstance().getZoomMessenger();\n if (zoomMessenger != null) {\n if (!zoomMessenger.isConnectionGood() || !NetworkUtil.hasDataNetwork(this.mContext)) {\n showConnectionError(this.mContext);\n return;\n }\n zoomMessenger.ackBuddySubscribe(item.getRequestJID(), z);\n this.mListView.reloadAllItems();\n }\n }\n }", "private void tryToConsumeEvent() {\n if (subscriber == null || storedEvent == null) {\n return;\n }\n sendMessageToJs(storedEvent, subscriber);\n\n }", "public void subscribe(String topicName, int qos) throws Throwable {\n /*\n Use a state machine to decide which step to do next. State change occurs\n when a notification is received that an MQTT action has completed\n */\n state = BEGIN;\n while (state != FINISH) {\n switch (state) {\n case BEGIN:\n // Connect using a non-blocking connect\n if (con == null) {\n con = new MqttConnector();\n }\n if (!isConnected()) {\n con.doConnect();\n state = CONNECTING;\n } else {\n state = CONNECTED;\n }\n break;\n case CONNECTING:\n if (client.isConnected()) {\n state = CONNECTED;\n }\n break;\n case CONNECTED:\n // Subscribe using a non-blocking subscribe\n Subscriber sub = new Subscriber();\n sub.doSubscribe(topicName, qos);\n break;\n case SUBSCRIBED:\n case DISCONNECTED:\n state = FINISH;\n donext = true;\n break;\n case DISCONNECT:\n Disconnector disc = new Disconnector();\n disc.doDisconnect();\n break;\n case ERROR:\n throw ex;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + state);\n }\n\n if (BEGIN == state) {\n waitForStateChange(STATE_CHECK_INTERVAL_LONG);\n } else {\n waitForStateChange(STATE_CHECK_INTERVAL_SHORT);\n }\n }\n }", "public final void subscribe() throws InvalidSubscriptionException {\r\n WritableSession session = (WritableSession) WebsocketActionSupport.getInstance().getSession();\r\n if (sessions.contains(session)) {\r\n throw new InvalidSubscriptionException(\"Current session is already subscribed to this topic\");\r\n }\r\n beforeSubscribe(session);\r\n sessions.add(session);\r\n }", "private void unsubscribe() {\n subscriber=null;\n }", "@CallByThread(\"Netty EventLoop\")\n void runCancel() {\n if (referenced > 0) { // is blocking\n incomingPublishService.drain();\n }\n }", "public boolean isSubscribed() {\n\t\treturn isSubscribed;\n\t}", "private void onUnavailable() {\n // TODO: broadcast\n }", "public abstract void enableSubscribes(boolean paramBoolean);", "private void subscribeSent(AsyncResult<Integer> result, LinkedHashMap<String, RequestedQoS> topics) {\n if (result.failed() || result.result() == null) {\n // failed\n for (String topic : topics.keySet()) {\n notifySubscriptionState(topic, SubscriptionState.UNSUBSCRIBED, null);\n }\n } else {\n // record request\n for (String topic : topics.keySet()) {\n notifySubscriptionState(topic, SubscriptionState.SUBSCRIBING, null);\n }\n this.pendingSubscribes.put(result.result(), topics);\n }\n }", "public void drain() {\r\n if (getAndIncrement() == 0) {\r\n SimpleQueue<T> simpleQueue = this.queue;\r\n int i = this.consumed;\r\n int i2 = this.bufferSize;\r\n int i3 = i2 - (i2 >> 2);\r\n boolean z = this.sourceMode != 1;\r\n int i4 = 1;\r\n int i5 = i;\r\n SimpleQueue<T> simpleQueue2 = simpleQueue;\r\n int i6 = i5;\r\n while (true) {\r\n if (simpleQueue2 != null) {\r\n long j = LongCompanionObject.MAX_VALUE;\r\n InnerSubscription[] innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n boolean z2 = false;\r\n for (InnerSubscription innerSubscription : innerSubscriptionArr) {\r\n long j2 = innerSubscription.get();\r\n if (j2 != Long.MIN_VALUE) {\r\n j = Math.min(j2 - innerSubscription.emitted, j);\r\n z2 = true;\r\n }\r\n }\r\n long j3 = 0;\r\n if (!z2) {\r\n j = 0;\r\n }\r\n while (true) {\r\n if (j == j3) {\r\n break;\r\n }\r\n boolean z3 = this.done;\r\n try {\r\n Object poll = simpleQueue2.poll();\r\n boolean z4 = poll == null;\r\n if (!checkTerminated(z3, z4)) {\r\n if (z4) {\r\n break;\r\n }\r\n int length = innerSubscriptionArr.length;\r\n for (int i7 = 0; i7 < length; i7++) {\r\n InnerSubscription innerSubscription2 = innerSubscriptionArr[i7];\r\n if (!innerSubscription2.isCancelled()) {\r\n innerSubscription2.downstream.onNext(poll);\r\n innerSubscription2.emitted++;\r\n }\r\n }\r\n if (z) {\r\n i6++;\r\n if (i6 == i3) {\r\n ((Subscription) this.upstream.get()).request((long) i3);\r\n i6 = 0;\r\n }\r\n }\r\n j--;\r\n if (innerSubscriptionArr != this.subscribers.get()) {\r\n break;\r\n }\r\n j3 = 0;\r\n } else {\r\n return;\r\n }\r\n } catch (Throwable th) {\r\n Throwable th2 = th;\r\n Exceptions.throwIfFatal(th2);\r\n ((Subscription) this.upstream.get()).cancel();\r\n simpleQueue2.clear();\r\n this.done = true;\r\n signalError(th2);\r\n return;\r\n }\r\n }\r\n if (checkTerminated(this.done, simpleQueue2.isEmpty())) {\r\n return;\r\n }\r\n }\r\n this.consumed = i6;\r\n i4 = addAndGet(-i4);\r\n if (i4 != 0) {\r\n if (simpleQueue2 == null) {\r\n simpleQueue2 = this.queue;\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n }\r\n }", "@Override\n public Subscription addConsumer(ConnectionContext context,\n final ConsumerInfo info) throws Exception {\n if (++consumerCount == maxConsumers + (watchTopicAdvisories ? 1:0)) {\n context.setDontSendReponse(true);\n Executors.newSingleThreadExecutor().execute(new Runnable() {\n public void run() {\n LOG.info(\"Stopping broker on consumer: \" + info.getConsumerId());\n try {\n broker.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }\n return super.addConsumer(context, info);\n }", "public void tryTerminate() {\n if (wip.decrementAndGet() != 0) {\n return;\n }\n if (queue.isEmpty()) {\n completableSubscriber.onCompleted();\n } else {\n completableSubscriber.onError(CompletableOnSubscribeMerge.collectErrors(queue));\n }\n }", "@Ignore(\"FIXME: fix exception\")\n @Test\n public void transient_publish_connected() throws AblyException {\n AblyRealtime pubAbly = null, subAbly = null;\n String channelName = \"transient_publish_connected_\" + testParams.name;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n subAbly = new AblyRealtime(opts);\n\n /* wait until connected */\n new ConnectionWaiter(subAbly.connection).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", subAbly.connection.state, ConnectionState.connected);\n\n /* create a channel and subscribe */\n final Channel subChannel = subAbly.channels.get(channelName);\n Helpers.MessageWaiter messageWaiter = new Helpers.MessageWaiter(subChannel);\n new ChannelWaiter(subChannel).waitFor(ChannelState.attached);\n\n pubAbly = new AblyRealtime(opts);\n new ConnectionWaiter(pubAbly.connection).waitFor(ConnectionState.connected);\n Helpers.CompletionWaiter completionWaiter = new Helpers.CompletionWaiter();\n final Channel pubChannel = pubAbly.channels.get(channelName);\n pubChannel.publish(\"Lorem\", \"Ipsum!\", completionWaiter);\n assertEquals(\"Verify channel remains in initialized state\", pubChannel.state, ChannelState.initialized);\n\n ErrorInfo errorInfo = completionWaiter.waitFor();\n assertEquals(\"Verify channel remains in initialized state\", pubChannel.state, ChannelState.initialized);\n\n messageWaiter.waitFor(1);\n assertEquals(\"Verify expected message received\", messageWaiter.receivedMessages.get(0).name, \"Lorem\");\n } finally {\n if(pubAbly != null) {\n pubAbly.close();\n }\n if(subAbly != null) {\n subAbly.close();\n }\n }\n }", "void subscribe(String id);", "protected void unacknowledge() {\n\n ClientConsumer old = consumer;\n ClientSession oldSession = session;\n\n try {\n createSession();\n } catch (Exception e) {\n shutdown();\n throw new RuntimeException(e);\n\n } finally {\n try {\n old.close();\n } catch (ActiveMQException e) {\n }\n try {\n oldSession.close();\n } catch (ActiveMQException e) {\n }\n }\n }", "@Override\n public void receive(SubscriptionCreation event) {\n logger.info(\"###Received subscription creation event with id:\" + event.getSubscriptionId());\n }", "private void handleSubscribeReceived(final Jid fromID,\n final String displayName)\n {\n // run waiting for user response in different thread\n // as this seems to block the packet dispatch thread\n // and we don't receive anything till we unblock it\n new Thread(new Runnable() {\n public void run()\n {\n if (logger.isTraceEnabled())\n {\n logger.trace(\n fromID\n + \" wants to add you to its contact list\");\n }\n\n // buddy want to add you to its roster\n ContactJabberImpl srcContact\n = ssContactList.findContactById(fromID);\n\n Presence.Type responsePresenceType = null;\n\n if(srcContact == null)\n {\n srcContact = createVolatileContact(fromID, displayName);\n }\n else\n {\n if(srcContact.isPersistent())\n responsePresenceType = Presence.Type.subscribed;\n }\n\n if(responsePresenceType == null)\n {\n AuthorizationRequest req = new AuthorizationRequest();\n AuthorizationResponse response\n = handler.processAuthorisationRequest(\n req, srcContact);\n\n if(response != null)\n {\n if(response.getResponseCode()\n .equals(AuthorizationResponse.ACCEPT))\n {\n responsePresenceType\n = Presence.Type.subscribed;\n if (logger.isInfoEnabled())\n logger.info(\n \"Sending Accepted Subscription\");\n }\n else if(response.getResponseCode()\n .equals(AuthorizationResponse.REJECT))\n {\n responsePresenceType\n = Presence.Type.unsubscribed;\n if (logger.isInfoEnabled())\n logger.info(\n \"Sending Rejected Subscription\");\n }\n }\n }\n\n // subscription ignored\n if(responsePresenceType == null)\n return;\n\n Presence responsePacket = new Presence(\n responsePresenceType);\n\n responsePacket.setTo(fromID);\n try\n {\n parentProvider.getConnection().sendStanza(responsePacket);\n }\n catch (NotConnectedException | InterruptedException e)\n {\n logger.error(\"Could not send presence repsonse\", e);\n }\n }}).start();\n }", "public void subscribeActual(Subscriber<? super T> subscriber) {\r\n PublishConnection publishConnection;\r\n while (true) {\r\n publishConnection = (PublishConnection) this.current.get();\r\n if (publishConnection != null) {\r\n break;\r\n }\r\n PublishConnection publishConnection2 = new PublishConnection(this.current, this.bufferSize);\r\n if (this.current.compareAndSet(publishConnection, publishConnection2)) {\r\n publishConnection = publishConnection2;\r\n break;\r\n }\r\n }\r\n InnerSubscription innerSubscription = new InnerSubscription(subscriber, publishConnection);\r\n subscriber.onSubscribe(innerSubscription);\r\n if (publishConnection.add(innerSubscription)) {\r\n if (innerSubscription.isCancelled()) {\r\n publishConnection.remove(innerSubscription);\r\n } else {\r\n publishConnection.drain();\r\n }\r\n return;\r\n }\r\n Throwable th = publishConnection.error;\r\n if (th != null) {\r\n subscriber.onError(th);\r\n } else {\r\n subscriber.onComplete();\r\n }\r\n }", "@Test(expected = SubscriberTypeMismatchException.class)\r\n\tpublic void aTestInvalidSubscribe() {\r\n\t\tbroker.subscribe(new IntegerSubscriber(), Boolean.class);\r\n\t}", "@BackpressureSupport(BackpressureKind.SPECIAL)\n @SchedulerSupport(SchedulerKind.NONE)\n @Override\n public final void subscribe(Subscriber<? super T> s) {\n Objects.requireNonNull(s, \"s is null\");\n subscribeActual(s);\n }", "public LsAcknowledge() {\n }", "default void subscribe(Subscriber<? super Void> s) {\n\t\tOperators.complete(s);\n\t}", "static void confirmUnSubscribe_C(Messenger messenger, Response_e response)\n {\n sendToClient( messenger, Request_e.Request_UnSubscribe_Event_C_en.valueOf(), response, null );\n }", "void complete() {\n try {\n try {\n subscriber.onComplete();\n } catch (Throwable e) {\n Exceptions.handleUncaught(Conformance.onCompleteThrew(e));\n }\n } finally {\n // no need to remove ourselves from psm.\n terminate();\n }\n }", "@Override\n public void receive(SubscriptionTermination event) {\n logger.info(\"###Received subscription termination event with id:\" + event.getSubscriptionId());\n }", "@CallByThread(\"Netty EventLoop\")\n @Override\n public void run() {\n if (referenced > 0) { // is blocking\n incomingPublishService.drain();\n }\n }", "public interface Subject {\n public void addSubscription(Subscription subscription);\n public void removeSubscription(Subscription subscription);\n public void notifyAllSubscriptions();\n}", "@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\ttopicStateChanged.publish(State.OFFLINE);\n\t\t\t\t}", "@Override\n\tpublic void onPUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Test\r\n\tpublic void t01_GetMessageAfterChange() throws Exception {\r\n\t\tSCMPClnSubscribeCall subscribeCall = new SCMPClnSubscribeCall(this.requester, TestConstants.pubServerName1);\r\n\r\n\t\tsubscribeCall.setSessionInfo(TestConstants.publishMsgWithDelayCmd);\r\n\t\tsubscribeCall.setNoDataIntervalSeconds(10);\r\n\t\t// mask does not match\r\n\t\tsubscribeCall.setMask(TestConstants.mask1);\r\n\t\t// publish 10 messages, wait 11 second after publish each message\r\n\t\tsubscribeCall.setRequestBody(\"10|11000\");\r\n\t\tTestCallback cbk = new TestCallback(true);\r\n\t\tsubscribeCall.invoke(cbk, 3000);\r\n\t\tSCMPMessage reply = cbk.getMessageSync(2000);\r\n\t\tTestUtil.checkReply(reply);\r\n\t\tString sessionId = reply.getSessionId();\r\n\r\n\t\t// receive publication - no data\r\n\t\tSCMPReceivePublicationCall receivePublicationCall = new SCMPReceivePublicationCall(this.requester, TestConstants.pubServerName1, sessionId);\r\n\t\treceivePublicationCall.invoke(cbk, 30000);\r\n\t\treply = cbk.getMessageSync(30000);\r\n\t\tAssert.assertTrue(reply.getHeaderFlag(SCMPHeaderAttributeKey.NO_DATA));\r\n\r\n\t\tSCMPClnChangeSubscriptionCall changeSubscriptionCall = new SCMPClnChangeSubscriptionCall(this.requester, TestConstants.pubServerName1, sessionId);\r\n\t\t// mask matches now\r\n\t\tchangeSubscriptionCall.setMask(TestConstants.mask);\r\n\t\tchangeSubscriptionCall.invoke(cbk, 3000);\r\n\t\tTestUtil.checkReply(cbk.getMessageSync(1000));\r\n\r\n\t\t// receive publication first message\r\n\t\treceivePublicationCall = new SCMPReceivePublicationCall(this.requester, TestConstants.pubServerName1, sessionId);\r\n\t\treceivePublicationCall.invoke(cbk, 10000);\r\n\t\treply = cbk.getMessageSync(10000);\r\n\t\tAssert.assertFalse(reply.getHeaderFlag(SCMPHeaderAttributeKey.NO_DATA));\r\n\r\n\t\tSCMPClnUnsubscribeCall unSubscribeCall = new SCMPClnUnsubscribeCall(this.requester, TestConstants.pubServerName1, sessionId);\r\n\t\tunSubscribeCall.invoke(cbk, 3000);\r\n\t\treply = cbk.getMessageSync(1000);\r\n\t\tTestUtil.checkReply(reply);\r\n\t}", "@Override\n\tpublic Service duplexstreamReserveDeliverServiceInit() {\n\t\treturn null;\n\t}", "private void subscribeMqttTopic(String t){\n\n String topic = \"secureIoT\" + t;\n\n int qos = 1;\n try {\n IMqttToken subToken = mqttClient.subscribe(topic, qos);\n subToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n // subscription successful\n\n mqttClient.setCallback(new MqttCallback() {\n @Override\n public void connectionLost(Throwable cause) {\n Log.d(LOG_TAG, \"Connection Lost\");\n }\n\n @Override\n public void messageArrived(String topic, MqttMessage message) throws Exception {\n\n Log.d(LOG_TAG, message.toString());\n handleMessage(message);\n }\n\n @Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n Log.d(LOG_TAG, \"Delivery Complete\");\n }\n });\n\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // The subscription could not be performed, maybe the user was not\n // authorized to subscribe on the specified topic e.g. using wildcards\n }\n\n\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }", "private void requestSubscribe(LinkedHashMap<String, RequestedQoS> topics) {\n if (topics.isEmpty() || this.client == null || !this.client.isConnected()) {\n // nothing to do\n return;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Request Subscribe to: \" + topics);\n }\n\n this.client\n .subscribe(topics.entrySet()\n .stream().collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> e.getValue().toInteger())))\n .onComplete(result -> subscribeSent(result, topics));\n }", "@Override // com.oculus.deviceconfigclient.DeviceConfigCallback\n public void onSuccess() {\n DeviceConfigHelper.sHasSubscribed.set(true);\n DeviceConfigHelper.sDidSubscribeComplete.set(true);\n while (DeviceConfigHelper.sOnSubscribeCompleteCallbacks.peek() != null) {\n ((DeviceConfigHelperSubscribeCompletedCallback) DeviceConfigHelper.sOnSubscribeCompleteCallbacks.remove()).call();\n }\n }", "public boolean isSubscriptionHandled() {\n return SUBSCRIPTIONHANDLED.equals(message);\n }", "private void publishHandler(AmqpPublishData amqpPublishData) {\n\n AmqpPublishMessage publish = amqpPublishData.amqpPublishMessage();\n\n // defensive ... check that current bridge has information about subscriptions and related granted QoS\n // see https://github.com/EnMasseProject/subserv/issues/8\n\n // try to get subscribed topic (that could have wildcards) that matches the publish topic\n String topic = (this.grantedQoSLevels.size() == 0) ? null :\n TopicMatcher.match(this.grantedQoSLevels.keySet().stream().collect(Collectors.toList()), publish.topic());\n\n if (topic != null) {\n\n // MQTT 3.1.1 spec : The QoS of Payload Messages sent in response to a Subscription MUST be\n // the minimum of the QoS of the originally published message and the maximum QoS granted by the Server\n MqttQoS qos = (publish.qos().value() < this.grantedQoSLevels.get(topic).value()) ?\n publish.qos() :\n this.grantedQoSLevels.get(topic);\n\n this.mqttEndpoint.publish(publish.topic(), publish.payload(), qos, publish.isDup(), publish.isRetain());\n // the the message identifier assigned to the published message\n amqpPublishData.setMessageId(this.mqttEndpoint.lastMessageId());\n\n LOG.info(\"PUBLISH [{}] to MQTT client {}\", this.mqttEndpoint.lastMessageId(), this.mqttEndpoint.clientIdentifier());\n\n // for QoS 0, message settled immediately\n if (qos == MqttQoS.AT_MOST_ONCE) {\n this.rcvEndpoint.settle(amqpPublishData.messageId());\n }\n\n } else {\n\n LOG.error(\"Published message : MQTT client {} is not subscribed to {} !!\", this.mqttEndpoint.clientIdentifier(), publish.topic());\n }\n }", "protected void onDiscoveryStarted() {\n logAndShowSnackbar(\"Subscription Started\");\n }", "public void subscribe(final Topic topic) {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20){\r\n try {\r\n if(server.addSubscriber((PubSubAgent.this.agentID), topic)){\r\n subscriberTopics.add(topic);\r\n System.out.print(\"Subscribed.\");\r\n return;\r\n }\r\n } catch (RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(1200);\r\n } catch (InterruptedException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't subscribe to \" + topic.getTopicID() + \" - \" + topic.getTopicName());\r\n }\r\n }).start();\r\n }", "public String subscribe() throws SaaSApplicationException,\n IllegalArgumentException, IOException {\n\n String subscriptionId = model.getSubscription().getSubscriptionId();\n SubscriptionStatus status;\n String outcome = null;\n if (!isServiceAccessible(model.getService().getKey())) {\n redirectToAccessDeniedPage();\n return BaseBean.MARKETPLACE_ACCESS_DENY_PAGE;\n }\n try {\n rewriteParametersAndUdas();\n VOSubscription rc = getSubscriptionService().subscribeToService(\n model.getSubscription(), model.getService().getVO(),\n Collections.emptyList(),\n model.getSelectedPaymentInfo(),\n model.getSelectedBillingContact(),\n subscriptionsHelper.getVoUdaFromUdaRows(\n getModel().getSubscriptionUdaRows()));\n model.setDirty(false);\n menuBean.resetMenuVisibility();\n if (rc == null) {\n ui.handleProgress();\n outcome = OUTCOME_PROCESS;\n } else {\n status = rc.getStatus();\n getSessionBean()\n .setSelectedSubscriptionId(rc.getSubscriptionId());\n getSessionBean().setSelectedSubscriptionKey(rc.getKey());\n\n ui.handle(\n status.isPending() ? INFO_SUBSCRIPTION_ASYNC_CREATED\n : INFO_SUBSCRIPTION_CREATED,\n subscriptionId, rc.getSuccessInfo());\n\n // help the navigation to highlight the correct navigation item\n menuBean.setCurrentPageLink(MenuBean.LINK_SUBSCRIPTION_USERS);\n\n outcome = OUTCOME_SUCCESS;\n }\n\n conversation.end();\n\n } catch (NonUniqueBusinessKeyException e) {\n // if subscription name already existed redirect to page\n // confirmation with error message\n ui.handleError(null, SUBSCRIPTION_NAME_ALREADY_EXISTS,\n new Object[] { subscriptionId });\n outcome = SUBSCRIPTION_CONFIRMATION_PAGE;\n } catch (ObjectNotFoundException e) {\n // if service has been deleted in the meantime, give the\n // inaccessible error message\n if (e.getDomainObjectClassEnum()\n .equals(DomainObjectException.ClassEnum.SERVICE)) {\n ui.handleError(null, ERROR_SERVICE_INACCESSIBLE);\n } else {\n ConcurrentModificationException ex = new ConcurrentModificationException();\n ex.setMessageKey(ERROR_SERVICE_CHANGED);\n ExceptionHandler.execute(ex);\n }\n }\n\n return outcome;\n }", "private void subscribe() {\r\n\r\n OnUpdatePlayerSubscription subscription = OnUpdatePlayerSubscription.builder().build();\r\n subscriptionWatcher = awsAppSyncClient.subscribe(subscription);\r\n subscriptionWatcher.execute(subCallback);\r\n }", "private void assertNotConsumed() {\n if (this.consumed) {\n throw new IllegalStateException(\"Response content has been already consumed\");\n }\n }", "@Test\n public void subscribe_single() throws AblyException {\n /* Ably instance that will emit channel messages */\n AblyRealtime ably1 = null;\n /* Ably instance that will receive channel messages */\n AblyRealtime ably2 = null;\n\n String channelName = \"test.channel.subscribe.single\" + System.currentTimeMillis();\n String messageName = \"name\";\n Message[] messages = new Message[] {\n new Message(messageName, \"Lorem ipsum dolor sit amet,\"),\n new Message(messageName, \"Consectetur adipiscing elit.\"),\n new Message(messageName, \"Pellentesque nulla lorem.\")\n };\n\n try {\n ClientOptions option1 = createOptions(testVars.keys[0].keyStr);\n option1.clientId = \"emitter client\";\n ClientOptions option2 = createOptions(testVars.keys[0].keyStr);\n option2.clientId = \"receiver client\";\n\n ably1 = new AblyRealtime(option1);\n ably2 = new AblyRealtime(option2);\n\n Channel channel1 = ably1.channels.get(channelName);\n channel1.attach();\n new ChannelWaiter(channel1).waitFor(ChannelState.attached);\n\n Channel channel2 = ably2.channels.get(channelName);\n channel2.attach();\n new ChannelWaiter(channel2).waitFor(ChannelState.attached);\n\n ArrayList<Message> receivedMessageStack = new ArrayList<>();\n MessageListener listener = new MessageListener() {\n List<Message> messageStack;\n\n @Override\n public void onMessage(Message message) {\n messageStack.add(message);\n }\n\n public MessageListener setMessageStack(List<Message> messageStack) {\n this.messageStack = messageStack;\n return this;\n }\n }.setMessageStack(receivedMessageStack);\n channel2.subscribe(messageName, listener);\n\n /* Start emitting channel with ably client 1 (emitter) */\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n channel1.publish(messages, null);\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n\n /* Wait until receiver client (ably2) observes {@code Message}\n * on subscribed channel (channel2) emitted by emitter client (ably1)\n */\n new Helpers.MessageWaiter(channel2).waitFor(messages.length + 2);\n\n /* Validate that,\n * - received same amount of emitted specific message\n * - received messages are the ones we emitted\n */\n assertThat(receivedMessageStack.size(), is(equalTo(messages.length)));\n\n Collections.sort(receivedMessageStack, messageComparator);\n for (int i = 0; i < messages.length; i++) {\n Message message = messages[i];\n if(Collections.binarySearch(receivedMessageStack, message, messageComparator) < 0) {\n fail(\"Unable to find expected message: \" + message);\n }\n }\n } finally {\n if (ably1 != null) ably1.close();\n if (ably2 != null) ably2.close();\n }\n }", "private void itCanPubAndSubToBroker(final String brokerUrl)\n throws Throwable {\n final MqttAsyncClient pubClient = new MqttAsyncClient(brokerUrl,\n CLIENT_ID + \"-pub\");\n AsyncPahoUtils.connect(pubClient);\n final MqttAsyncClient subClient = new MqttAsyncClient(brokerUrl,\n CLIENT_ID + \"-sub\");\n AsyncPahoUtils.connect(subClient);\n\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<MqttMessage> msg = new AtomicReference<MqttMessage>();\n\n // Subscribe\n final IMqttMessageListener messageListener = new IMqttMessageListener() {\n\n @Override\n public void messageArrived(final String topic,\n final MqttMessage message) throws Exception {\n msg.set(message);\n latch.countDown();\n }\n };\n AsyncPahoUtils.subscribe(subClient, TOPIC, messageListener);\n\n // Publish the sensor data\n final byte[] expectedPayload = new byte[] { 'a', 'b', 'c' };\n AsyncPahoUtils.publish(pubClient, TOPIC, expectedPayload);\n\n // Await message publish and receipt\n latch.await();\n\n // Get the message received by the callback\n final MqttMessage receivedMessage = msg.get();\n Assert.assertNotNull(receivedMessage);\n Assert.assertNotNull(receivedMessage.getPayload());\n Assert.assertArrayEquals(expectedPayload, receivedMessage.getPayload());\n\n // Close the clients\n AsyncPahoUtils.disconnect(pubClient);\n AsyncPahoUtils.disconnect(subClient);\n\n }", "@Test\n public void testProcessNoResponse() {\n // NOTE: this json file is a RESPONSE, not a request\n String request = ResourceUtils.getResourceAsString(\"org/onap/policy/simulators/appclcm/appc.lcm.success.json\");\n assertNotNull(request);\n\n server.onTopicEvent(CommInfrastructure.NOOP, MY_TOPIC, request);\n\n verify(sink, never()).send(any());\n }", "public interface aps {\n boolean isUnsubscribed();\n\n void unsubscribe();\n}", "void wipeSubscriptions(String sessionID);" ]
[ "0.7068055", "0.68047494", "0.67866135", "0.6706896", "0.6658845", "0.64990646", "0.648497", "0.6453173", "0.64443797", "0.6382455", "0.63115996", "0.6288538", "0.6275278", "0.6263616", "0.6235094", "0.6228639", "0.61571294", "0.6126548", "0.6107501", "0.6107501", "0.6107501", "0.6107501", "0.6107501", "0.6107501", "0.610325", "0.60862863", "0.60745394", "0.6073033", "0.605983", "0.60528916", "0.60438275", "0.6034093", "0.6028519", "0.6014836", "0.6014188", "0.6006263", "0.59915304", "0.59516954", "0.59288543", "0.5920442", "0.5879582", "0.5875246", "0.58747375", "0.5873697", "0.5863469", "0.58418417", "0.5805283", "0.58036804", "0.5795829", "0.57853496", "0.57609695", "0.5753899", "0.57219017", "0.5713029", "0.5711331", "0.5703099", "0.56902575", "0.56901675", "0.5689571", "0.5670508", "0.5663515", "0.5650037", "0.5636861", "0.5635198", "0.561924", "0.56153244", "0.5613846", "0.5606945", "0.560371", "0.5602134", "0.5600429", "0.5569688", "0.5569482", "0.55535805", "0.55419797", "0.55355364", "0.5528159", "0.5525304", "0.55231446", "0.5521577", "0.5519261", "0.5516304", "0.5512744", "0.5501021", "0.54861355", "0.5478757", "0.5474582", "0.5470467", "0.5466057", "0.5464442", "0.5460638", "0.5459064", "0.5446907", "0.5443477", "0.5442637", "0.54387546", "0.54359865", "0.5433106", "0.543068", "0.5429389", "0.54279715" ]
0.0
-1
No actual unsubscription to make
@Override public void unsubscribe(final Set<ValueSpecification> valueSpecifications) { LOGGER.debug("Unsubscribed from {}", valueSpecifications); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void brokenSubscription() {\n\t\t\n\t}", "void unpublish() {\n pendingOps.decrementAndGet();\n }", "public void onUnsubscribe() {\n\n }", "public EligibleQueueUnlink()\n {\n super(\"EligibleQueueUnlink\");\n }", "void unsubscribe();", "@Override\n\t\tpublic void onUserListUnsubscription(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onUserListUnsubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "void unsubscribe(){}", "private void unsubscribe() {\n subscriber=null;\n }", "void clearSubscriber() {\n if (!(subscriber instanceof AbortingSubscriber)) {\n subscriber = NeverInvokedSubscriber.get();\n }\n }", "@Override\n\tpublic void onUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Override\n\tpublic void discardUnget() {\n\t\t\n\t}", "@ForOverride\n public void onNotInUse(InternalSubchannel internalSubchannel) {\n }", "@Override\n\tpublic void onPUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Override\n protected void onUnregistered() throws RemoteException {\n\n }", "void unsubscribe(Subscription subscription);", "@Override\r\n public void unsubscribe() {\n t.interrupt();\r\n }", "void unsetCurrentrun();", "@Override\n public void onUnsubscribe(String s, int i) {\n }", "private void genericUnsubscribeFactory(String request, BandInfo band) {\n if (bandStreams.containsKey(band) && bandStreams.get(band).contains(request)) {\n if (bandStreams.get(band).size() == 1) {\n // Only stream open for this band, remove from bandStreams\n bandStreams.remove(band);\n } else {\n // Other streams open, remove from list\n bandStreams.get(band).remove(request);\n }\n\n // Remove stream from preferences\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n Set<String> streams = prefs.getStringSet(Preferences.getDeviceKey(band.getMacAddress()), new HashSet<String>());\n if (streams.contains(request)) {\n Log.v(TAG, \"Removing stream \" + request);\n streams.remove(request);\n Log.v(TAG, \"Streams after removing \" + request + \": \" + streams);\n prefs.edit().putStringSet(Preferences.getDeviceKey(band.getMacAddress()), streams).apply();\n }\n\n // Unsubscribe from the appropriate stream\n switch (request) {\n case ACCEL_REQ_EXTRA:\n if (accManager != null)\n accManager.unSubscribe(band);\n break;\n case ALT_REQ_EXTRA:\n if (altManager != null)\n altManager.unSubscribe(band);\n break;\n case AMBIENT_REQ_EXTRA:\n if (ambManager != null)\n ambManager.unSubscribe(band);\n break;\n case BAROMETER_REQ_EXTRA:\n if (barometerManager != null)\n barometerManager.unSubscribe(band);\n break;\n case CALORIES_REQ_EXTRA:\n if (calManager != null)\n calManager.unSubscribe(band);\n break;\n case CONTACT_REQ_EXTRA:\n if (conManager != null)\n conManager.unSubscribe(band);\n break;\n case DISTANCE_REQ_EXTRA:\n if (distManager != null)\n distManager.unSubscribe(band);\n break;\n case GSR_REQ_EXTRA:\n if (gsrManager != null)\n gsrManager.unSubscribe(band);\n break;\n case GYRO_REQ_EXTRA:\n if (gyroManager != null)\n gyroManager.unSubscribe(band);\n break;\n case HEART_RATE_REQ_EXTRA:\n if (heartManager != null)\n heartManager.unSubscribe(band);\n break;\n case PEDOMETER_REQ_EXTRA:\n if (pedoManager != null)\n pedoManager.unSubscribe(band);\n break;\n case SKIN_TEMP_REQ_EXTRA:\n if (skinTempManager != null)\n skinTempManager.unSubscribe(band);\n break;\n case UV_REQ_EXTRA:\n if (uvManager != null)\n uvManager.unSubscribe(band);\n break;\n default:\n Log.e(TAG, \"Unknown subscription requested \" + request);\n }\n } else {\n if (!bandStreams.containsKey(band)) {\n Log.e(TAG, \"Error: unsubscribe request for a band that isnt stored\");\n Log.v(TAG, \"Band: \" + band.toString());\n for (BandInfo info :\n bandStreams.keySet()) {\n Log.v(TAG, \"Key: \" + info.toString());\n }\n } else {\n if (!bandStreams.get(band).contains(request)) {\n Log.e(TAG, \"Error: unsubscribe request for unregistered request\");\n }\n }\n }\n }", "@Override\n\tpublic void unsubscribe(Strategy strategy) {\n\t\t\n\t}", "@Override\n public void unregister(Object subscriber) {\n }", "void unsetExchange();", "public void onServiceUnregistered() {\r\n \t// Update the list of sessions\r\n\t\tupdateList();\r\n }", "@Override\n public void onPUnsubscribe(String s, int i) {\n }", "void unsetIssued();", "protected void testUncancelReal() {\n\n log.info(\"Starting testUncancel\");\n\n try {\n\n String prod = \"Shotgun\";\n BillingPeriod term = BillingPeriod.MONTHLY;\n String planSet = IPriceListSet.DEFAULT_PRICELIST_NAME;\n\n // CREATE\n Subscription subscription = createSubscription(prod, term, planSet);\n IPlanPhase trialPhase = subscription.getCurrentPhase();\n assertEquals(trialPhase.getPhaseType(), PhaseType.TRIAL);\n\n // NEXT PHASE\n DateTime expectedPhaseTrialChange = Clock.addDuration(subscription.getStartDate(), trialPhase.getDuration());\n checkNextPhaseChange(subscription, 1, expectedPhaseTrialChange);\n\n // MOVE TO NEXT PHASE\n testListener.pushExpectedEvent(NextEvent.PHASE);\n clock.setDeltaFromReality(trialPhase.getDuration(), DAY_IN_MS);\n assertTrue(testListener.isCompleted(2000));\n IPlanPhase currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n // SET CTD + RE READ SUBSCRIPTION + CHANGE PLAN\n IDuration ctd = getDurationMonth(1);\n DateTime newChargedThroughDate = Clock.addDuration(expectedPhaseTrialChange, ctd);\n billingApi.setChargedThroughDate(subscription.getId(), newChargedThroughDate);\n subscription = (Subscription) entitlementApi.getSubscriptionFromId(subscription.getId());\n\n testListener.pushExpectedEvent(NextEvent.CANCEL);\n\n // CANCEL\n subscription.cancel(clock.getUTCNow(), false);\n assertFalse(testListener.isCompleted(2000));\n\n subscription.uncancel();\n\n // MOVE TO EOT + RECHECK\n clock.addDeltaFromReality(ctd);\n DateTime future = clock.getUTCNow();\n assertFalse(testListener.isCompleted(2000));\n\n IPlan currentPlan = subscription.getCurrentPlan();\n assertEquals(currentPlan.getProduct().getName(), prod);\n currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n } catch (EntitlementUserApiException e) {\n Assert.fail(e.getMessage());\n }\n }", "public void unget() {}", "private void onUnavailable() {\n // TODO: broadcast\n }", "@Override\n public void unsubscribe(Entity e) {\n unsub_queue.add(e);\n }", "private void doUnsubscribe(IoSession session, MessageProtocol request) throws Exception {\n \t\n \tdoExit(session);\n }", "public void testUnlinkLogMessagesFromService() {\n\n\t}", "void unsubscribeAll();", "static void confirmUnSubscribe_C(Messenger messenger, Response_e response)\n {\n sendToClient( messenger, Request_e.Request_UnSubscribe_Event_C_en.valueOf(), response, null );\n }", "private final void m90475d() {\n RxBus.m86979a().mo84367a(new UnFriendlyEvent(1));\n popSelf();\n }", "public void unsubscribeAll() {\n \t\tint failCount = 0;\n \t\t// Make a copy of the collection because it will be modified in #unsubscribe()\n \t\tSet<String> removal = new HashSet<String>(subscriptions.keySet());\n \t\tfor (String subscriptionID : removal) {\n \t\t\tunsubscribe(subscriptionID);\n \t\t}\n \t\tif (failCount > 0) {\n \t\t\tlogger.warn(\n \t\t\t\t\t\"Problem while unsubcribing from all subscriptions: \"\n \t\t\t\t\t\t\t+ failCount\n \t\t\t\t\t\t\t+ \" unsubscriptions failed at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t} else {\n \t\t\tlogger.info(\n \t\t\t\t\t\"Successfully unsubcribed from all subscriptions at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t}\n \t}", "private void playUnsubscriptionConfirmationPromptAndUnsubscribeUser(String callerId) throws AgiException, DAOException\n\t{\n\t\tstreamFile(Constants.PROMPT_FOR_SUCCESSFUL_UNSUBSCRIPTION);\n\n\t\tUserBean user = UserManagerImpl.getInstance().loadByPrimaryKey(callerId);\n\n\t\tuser.setSubscriptionStatus(Constants.SUBSCRIPTION_STATUS_UNSUBSCRIBED);\n\n\t\tuser.update();\n\t}", "public void m65922a() {\n super.a();\n this.f56360b.unsubscribe();\n }", "void unsetSubject();", "private void assertNotConsumed() {\n if (this.consumed) {\n throw new IllegalStateException(\"Response content has been already consumed\");\n }\n }", "void wipeSubscriptions(String sessionID);", "private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "public abstract void unregister();", "@Override\n public void onArmUnsync(Myo myo, long timestamp) {\n\n }", "public void unregister() {\n unregistered = true;\n }", "@Test(expected = UserMismatchException.class)\r\n public void testAdminSaveSubscriptionNotAuthorized() throws Exception {\r\n saveJoePublisher();\r\n saveSamSyndicator();\r\n DatatypeFactory fac = DatatypeFactory.newInstance();\r\n List<Subscription> subs = new ArrayList<Subscription>();\r\n Subscription s = new Subscription();\r\n\r\n s.setMaxEntities(10);\r\n s.setBrief(false);\r\n GregorianCalendar gcal = new GregorianCalendar();\r\n gcal.setTimeInMillis(System.currentTimeMillis());\r\n gcal.add(Calendar.HOUR, 1);\r\n s.setExpiresAfter(fac.newXMLGregorianCalendar(gcal));\r\n s.setSubscriptionFilter(new SubscriptionFilter());\r\n s.getSubscriptionFilter().setFindBusiness(new FindBusiness());\r\n s.getSubscriptionFilter().getFindBusiness().setFindQualifiers(new FindQualifiers());\r\n s.getSubscriptionFilter().getFindBusiness().getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);\r\n s.getSubscriptionFilter().getFindBusiness().getName().add(new Name(UDDIConstants.WILDCARD, null));\r\n subs.add(s);\r\n Holder<List<Subscription>> items = new Holder<List<Subscription>>();\r\n items.value = subs;\r\n publisher.adminSaveSubscription(authInfoSam(), TckPublisher.getJoePublisherId(), items);\r\n deleteJoePublisher();\r\n deleteSamSyndicator();\r\n\r\n }", "public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}", "void unavailable();", "void unavailable();", "@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}", "@Test\n @SuppressWarnings({\"PMD.JUnitTestsShouldIncludeAssert\"})\n public void testUnsubsribeFromRoomBadResponse() {\n // given\n final UnsubscribeRequest unsubscribeRequest =\n UnsubscribeRequest.builder().user(TEST_USER).room(TEST_ROOM).build();\n given(clientResponseProvider.sendPostRequest(\n MultiUserChatConstants.MULTI_USER_CHAT_UNSUBSCRIBE_COMMAND, unsubscribeRequest))\n .willReturn(BAD_RESPONSE);\n\n // when\n multiUserChatService.unsubsribeFromRoom(TEST_USER, TEST_ROOM);\n\n // then\n }", "public interface aps {\n boolean isUnsubscribed();\n\n void unsubscribe();\n}", "void invokeOnSubscribe0() {\n try {\n subscriber.onSubscribe(this);\n } catch (Throwable t) {\n processor.unsubscribe(this, t);\n throwIfFatal(t);\n logger.warn(\"Subscriber.onSubscribe() should not raise an exception. subscriber: {}\",\n subscriber, t);\n }\n }", "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "@Override\n public void onObjectMessage(ReceivedObjectMessage message) {\n //ignore the message\n }", "private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}", "public void takeAvailable() {\n\t\tavailable = false;\n\t}", "public Subscription() {\n System.out.println(\"create new subscription\");\n }", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}", "private void unpublish() {\n Log.i(TAG, \"Unpublishing.\");\n Nearby.Messages.unpublish(mGoogleApiClient, mPubMessage);\n }", "private void onUnregistered() {\n setUnregisteringInProcess(false);\n C2DMSettings.clearC2DMRegistrationId(context);\n for (C2DMObserver observer : observers) {\n onUnregisteredSingleObserver(observer);\n }\n }", "public void unsetWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(WASNOTGIVEN$4, 0);\n }\n }", "private void onUnregisteredSingleObserver(C2DMObserver observer) {\n Intent outgoingIntent = new Intent(context, observer.getObserverClass());\n outgoingIntent.setAction(C2DMessaging.ACTION_UNREGISTERED);\n deliverObserverIntent(observer, outgoingIntent);\n }", "@Override\n\tpublic void detalhar() {\n\t\t\n\t}", "@Override\n protected ExchangeUse getExchangeUse() {return ExchangeUse.DEAD;}", "@Override\n public void reset() {\n setSubject(null);\n }", "public void handleNotInUse() {\n InternalSubchannel.this.callback.onNotInUse(InternalSubchannel.this);\n }", "@Override\n protected synchronized void removeWrite(ChannelHandlerWriteSubscription subscription) {\n super.removeWrite(subscription);\n }", "@Override\n public void onSubscribe(Disposable d) {\n }", "private void unsubscribeHandler(MqttUnsubscribeMessage unsubscribe) {\n\n final int messageId = unsubscribe.messageId();\n LOG.info(\"UNSUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_UNSUBSCRIBE\n\n AmqpUnsubscribeMessage amqpUnsubscribeMessage =\n new AmqpUnsubscribeMessage(this.mqttEndpoint.clientIdentifier(), unsubscribe.topics());\n\n this.ssEndpoint.sendUnsubscribe(amqpUnsubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n this.mqttEndpoint.unsubscribeAcknowledge(messageId);\n\n // removing topics from local collection\n unsubscribe.topics().stream().forEach(topic -> {\n\n this.grantedQoSLevels.remove(topic);\n });\n\n LOG.info(\"UNSUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }", "public void rejectSubscriber(Friend lf);", "private final void m90474c() {\n RxBus.m86979a().mo84367a(new UnFriendlyEvent(2));\n popSelf();\n }", "void onUnregisterForPremount();", "protected void aq() {\n Object object = this.li;\n synchronized (object) {\n if (this.lz != null) {\n this.lp.unregisterReceiver(this.lz);\n this.lz = null;\n }\n return;\n }\n }", "public org.csapi.schema.parlayx.subscribe.manage.v1_0.local.UnSubscribeServiceResponse unSubscribeService(org.csapi.schema.parlayx.subscribe.manage.v1_0.local.UnSubscribeServiceRequest parameters) {\n throw new UnsupportedOperationException(\"Not implemented yet.\");\r\n }", "@Override\n protected void removeMember() {\n }", "@Override\n public void scanAborted() {\n this.mplLiveData.stopAll();\n this.mplLiveData.emptyPool(); // CKA April 25, 2014\n }", "public void unExecute()\n\t{\n\t}", "private void m17251h() {\n this.f13994d.unregisterReceiver(this.f13995e);\n }", "public void createNoSubject() {\n\n }", "@Override\n \tpublic URI getSubscriberURI() {\n \t\treturn null;\n \t}", "public void createBug10476_upgradeSuspendedSubscription() throws Exception {\n setDateFactory(\"2013-08-02 09:00:00\");\n\n // Create own customer, because the customer's payment types\n // are changed later on\n String customerAdminId = \"Bug10476UpgrSusCustomerAdmin\";\n VOOrganization customer = orgSetup.registerCustomer(\n \"Bug10476UpgrSusCustomer\",\n TestOrganizationSetup.ORGANIZATION_DOMICILE_DE,\n customerAdminId, supplierMarketplace.getMarketplaceId(),\n basicSetup.getSupplierOrgID());\n VOUser customerAdmin = orgSetup.getUser(customerAdminId, true);\n\n VOServiceDetails serviceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10476_UPGRSUS_SERVICE\", TestService.EXAMPLE2_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_WEEK_ROLES,\n technicalServiceAsync, supplierMarketplace);\n\n setCutOffDay(basicSetup.getSupplierAdminKey(), 3);\n\n // subscribe\n VOSubscriptionDetails subDetails = subscrSetup.subscribeToService(\n customerAdmin.getKey(), \"BUG10476_UPGRSUS\", serviceDetails,\n customerAdmin,\n VOServiceFactory.getRole(serviceDetails, \"GUEST\"));\n // ASYNC\n setDateFactory(\"2013-08-02 10:00:00\");\n subDetails = subscrSetup.completeAsyncSubscription(\n basicSetup.getSupplierAdminKey(), customerAdmin, subDetails);\n\n // Delete customer payment types\n setDateFactory(\"2013-08-03 00:00:00\");\n paymentSetup.deleteCustomerPaymentTypes(\n basicSetup.getSupplierAdminKey(), customer);\n subDetails = subscrSetup.getSubscriptionDetails(customerAdmin.getKey(),\n subDetails.getSubscriptionId());\n\n // Create upgraded service\n setDateFactory(\"2013-08-04 12:00:00\");\n container.login(customerAdmin.getKey(), ROLE_ORGANIZATION_ADMIN);\n VOServiceDetails upgradedServiceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10476_UPGRSUS_FREE_SERVICE\",\n TestService.EXAMPLE_ASYNC, TestPriceModel.FREE,\n technicalServiceAsync, supplierMarketplace);\n\n serviceSetup.registerCompatibleServices(\n basicSetup.getSupplierAdminKey(), serviceDetails,\n upgradedServiceDetails);\n\n // Upgrade subscription -> subscription is activated because\n // it is free!!\n setDateFactory(\"2013-08-10 22:10:00\");\n VOSubscriptionDetails upgradedSubDetails = subscrSetup\n .upgradeSubscription(customerAdmin.getKey(), subDetails,\n upgradedServiceDetails);\n // ASYNC\n setDateFactory(\"2013-08-10 23:10:00\");\n upgradedSubDetails = subscrSetup.completeAsyncUpgradeSubscription(\n basicSetup.getSupplierAdminKey(), customerAdmin,\n upgradedSubDetails);\n\n setDateFactory(\"2013-08-11 15:00:00\");\n paymentSetup.reassignCustomerPaymentTypes(\n basicSetup.getSupplierAdminKey(), customer);\n upgradedSubDetails = subscrSetup.getSubscriptionDetails(\n customerAdmin.getKey(), upgradedSubDetails.getSubscriptionId());\n\n // Terminate subscription\n setDateFactory(\"2013-08-15 08:12:00\");\n subscrSetup\n .unsubscribeToService(upgradedSubDetails.getSubscriptionId());\n\n resetCutOffDay(basicSetup.getSupplierAdminKey());\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10476_UPGRSUS\", subDetails);\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10476_UPGRSUS\", upgradedSubDetails);\n\n BillingIntegrationTestBase.updateCustomerListForTests(\n \"BUG10476_UPGRSUS\", customer);\n }", "public void ejectTicket(){if(this.inProgress()){this.currentTicket=null;}}", "private Unescaper() {\n\n\t}", "public void cancelCheckOut() {\n throw new UnsupportedOperationException();\n }", "private void clearRefundTo() {\n refundTo_ = emptyProtobufList();\n }", "public abstract boolean uncover();", "public void reportNothingToUndoYet() {\r\n Assert.isTrue(isReceiving());\r\n setNothingToUndoReported(true);\r\n }", "void unsubscribe(Player player);", "public void _release() {\n throw new NO_IMPLEMENT(reason);\n }", "public void unsubscribeSwitchState() {\n\t\t\n\t}", "@Override\n public void undeploy(DeploymentUnit context) {\n \n }", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "public void isDeceased(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }" ]
[ "0.75127363", "0.6698322", "0.6644906", "0.66183716", "0.65430385", "0.65402144", "0.64559877", "0.64215475", "0.63904756", "0.6308438", "0.6305603", "0.62957865", "0.61633354", "0.60891014", "0.6084468", "0.60772306", "0.60603344", "0.60377294", "0.60337144", "0.6032956", "0.5989881", "0.5981171", "0.5946347", "0.59348536", "0.5921882", "0.5901692", "0.58889854", "0.5873859", "0.5862348", "0.58496237", "0.5836246", "0.5795801", "0.57879436", "0.5783282", "0.5753708", "0.5734932", "0.5733861", "0.5724527", "0.57168597", "0.5710578", "0.5697459", "0.56699026", "0.5669412", "0.5669412", "0.5669412", "0.5669412", "0.5669412", "0.5669412", "0.5655832", "0.56495893", "0.56388575", "0.5638506", "0.563668", "0.56283844", "0.56283844", "0.5624391", "0.5619484", "0.5619103", "0.56075466", "0.56058043", "0.5596587", "0.5593433", "0.558903", "0.55833304", "0.5568069", "0.5565226", "0.55583566", "0.5556448", "0.5554134", "0.55472755", "0.5544552", "0.5539195", "0.5536255", "0.5534252", "0.55239713", "0.55193454", "0.5513124", "0.5510777", "0.55100363", "0.55049586", "0.54972243", "0.5495188", "0.54913807", "0.54903024", "0.54791373", "0.5475491", "0.547529", "0.54741806", "0.54716086", "0.54666746", "0.5464586", "0.54642296", "0.546132", "0.5456324", "0.5456316", "0.54555297", "0.54530984", "0.5452667", "0.5451283", "0.5448559", "0.54469365" ]
0.0
-1
Gets array of all "debts" elements
ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry[] getDebtsArray();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry getDebtsArray(int i);", "int sizeOfDebtsArray();", "public CMSRedeemableBalanceAppModel[] getRedeemablesArray() {\n PaymentTransaction txn = getPaymentTransaction();\n Vector payments = new Vector();\n Enumeration e = txn.getPayments();\n while (e.hasMoreElements()) {\n Payment payment = (Payment)e.nextElement();\n if (payment instanceof Redeemable && !(payment instanceof HouseAccount)) {\n payments.addElement(new CMSRedeemableBalanceAppModel((Redeemable)payment));\n }\n }\n return (CMSRedeemableBalanceAppModel[])payments.toArray(new CMSRedeemableBalanceAppModel[0]);\n }", "void setDebtsArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry debts);", "public ArrayList<Debito> getAllDebitos() {\n ArrayList<Debito> debitos = new ArrayList<Debito>();\n String selectQuery = \"SELECT * FROM \" + TABLE_DEBITOS;\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Debito td = new Debito();\n td.setCodigo(c.getInt(c.getColumnIndex(KEY_ID)));\n td.setValor(c.getDouble(c.getColumnIndex(KEY_VALOR)));\n td.setData(c.getString(c.getColumnIndex(KEY_DATA)));\n td.setEstabelecimento((c.getString(c.getColumnIndex(KEY_ESTABELECIMENTO))));\n\n // adding to todo list\n debitos.add(td);\n } while (c.moveToNext());\n }\n\n return debitos;\n }", "java.util.List<com.google.protobuf.ByteString> getTransactionsList();", "public Transaction[] getTransactionsList() throws Exception;", "Object[] getPendingTransactions(int count);", "public List<BigInteger> getFeeList() {\n List<BigInteger> nl = Collections.synchronizedList(new ArrayList<>());\n\n this.getFeeView().entrySet().parallelStream().forEach(e -> nl.add(e.getKey()));\n\n return nl.parallelStream().sorted(Collections.reverseOrder()).collect(Collectors.toList());\n }", "public ImmutableList<B> getBidders() {\n return this.bidders;\n }", "void setDebtsArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry[] debtsArray);", "public String[] getBordas(){\r\n String[] str = new String[bordas.size()];\r\n int i =0;\r\n for(Borda b:bordas){\r\n str[i]=b.toString();\r\n i++;\r\n }\r\n return str;\r\n }", "public ArrayList<Double> getTransactions() {\n return transactions;\r\n }", "public List<Trade> getTrades();", "List<Debt> split(Transaction transaction);", "public double[] getXTBT() {\n return xTBT;\n }", "public static Transaction[] transactionList(){\n int countFullPosition = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n countFullPosition++;\n }\n }\n if(countFullPosition == 0)\n return new Transaction[] {};\n // throw new InternalServerException(\"TransactionList is empty\");\n Transaction[] trList = new Transaction[countFullPosition];\n int index = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n trList[index] = tr;\n index++;\n }\n }\n return trList;\n }", "public List<TreeBidInfo> getListTreeBidInfo() {\n\t\treturn cacheTree.getListTreeBidInfo();\n\t}", "public List<List<Integer>> getTransactions() {\n return transactions;\n }", "public JSONArray getTrades() throws Exception;", "public Item[] dig() {\n if(isDiggable()) {\n Item[] tr = buriedItems.toArray(new Item[0]);\n buriedItems.clear();\n if(tr.length != 0) {\n return tr;\n }\n }\n return null;\n }", "public short[] get_entries_receiveEst() {\n short[] tmp = new short[11];\n for (int index0 = 0; index0 < numElements_entries_receiveEst(0); index0++) {\n tmp[index0] = getElement_entries_receiveEst(index0);\n }\n return tmp;\n }", "public com.inetpsa.boz.rpv.rp.xml.DEALER[] getDEALER() {\r\n\t\tint size = _DEALERList.size();\r\n\t\tcom.inetpsa.boz.rpv.rp.xml.DEALER[] mArray = new com.inetpsa.boz.rpv.rp.xml.DEALER[size];\r\n\t\tfor (int index = 0; index < size; index++) {\r\n\t\t\tmArray[index] = (com.inetpsa.boz.rpv.rp.xml.DEALER) _DEALERList.get(index);\r\n\t\t}\r\n\t\treturn mArray;\r\n\t}", "private Object[] elements() {\n return elements.toArray();\n }", "public BondFixedSecurityDefinition[] getDeliveryBasket() {\n return _deliveryBasket;\n }", "@Override\n public Collection<ExchangeTradedFund> getAllExchangeTradedFunds() {\n return exchangeTradedFundRepository.findAllSorted();\n }", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "@Override\n\tpublic List<BillardAccounts> getBilliardAccounts() {\n\t\treturn announceMapper.getBilliardAccounts();\n\t}", "public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> getFundsList() {\n if (fundsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(funds_);\n } else {\n return fundsBuilder_.getMessageList();\n }\n }", "public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> getFundsList() {\n if (fundsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(funds_);\n } else {\n return fundsBuilder_.getMessageList();\n }\n }", "public List<NoteToken> getElts(){\r\n List<NoteToken> returnList = new ArrayList<NoteToken>();\r\n for (Iterator<Bars> i = BarsList.iterator(); i.hasNext();){\r\n returnList.addAll(i.next().getElts());\r\n }\r\n return returnList;\r\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getTransactions(int index) {\n return instance.getTransactions(index);\n }", "@java.lang.Override\n public java.util.List<com.google.protobuf.ByteString>\n getTransactionsList() {\n return java.util.Collections.unmodifiableList(\n instance.getTransactionsList());\n }", "public Collection<Transaction> getAllTransactions();", "private List<Arbeitspaket> retrieveData() {\r\n\t\treturn Arrays.asList(new Arbeitspaket(\"A\", 0, 0, 0, 0, 0, 0, 0), new Arbeitspaket(\"B\", 0, 0, 0, 0, 0, 0, 0),\r\n\t\t\t\tnew Arbeitspaket(\"C\", 0, 0, 0, 0, 0, 0, 0), new Arbeitspaket(\"D\", 0, 0, 0, 0, 0, 0, 0));\r\n\t}", "java.util.List<WorldUps.UDeliveryMade> \n getDeliveredList();", "@Override\r\n\tpublic List<Transaction> getTransactions() {\n\t\treturn null;\r\n\t}", "com.google.protobuf.ByteString getTransactions(int index);", "@java.lang.Override\n public com.google.protobuf.ByteString getTransactions(int index) {\n return transactions_.get(index);\n }", "@Override\n\tpublic List<Fee_Entity> get_all_fee() {\n\t\treturn fee.get_all_fee();\n\t}", "public Collection<Dealsusagetb> getSdeals() {\n RedeemAmount = 0;\n sdeals = new ArrayList<>();\n Collection<Dealsusagetb> usages = res.readEntity(gDUsages);\n for (Dealsusagetb usage : usages) {\n if(usage.getStatus() == 2) {\n sdeals.add(usage);\n //RedeemAmount += usage.getDealID().getAverageCost();\n }\n }\n return sdeals;\n }", "List<TradeItem> getDeclinedTrades(long accountId);", "public com.zenithbank.mtn.fleet.Transaction[] getCardTrans(boolean includeOpeningBalance) throws java.rmi.RemoteException;", "public List<CryptoFacilitiesCumulatedBidAsk> getCumulatedBids() throws JsonProcessingException, IOException\n\t{\n return parseCumulatedReverseString(this.cumulatedBids);\n\t}", "public TradeList getTradeRequests(){\n TradeList tradesToReturn = new TradeList();\n for(Trade aTrade : trades){\n if (aTrade.getStatus().equals(\"Pending\") && aTrade.getType().equals(\"Current Incoming\")){\n tradesToReturn.add(aTrade);\n }\n }\n return tradesToReturn;\n }", "List<WayBill> getWayBillVisited();", "@Override\r\n\t@Transactional\r\n\tpublic ArrayList<Transactions> getClosedTransactions() {\r\n\r\n\t\tArrayList<Transactions> transactions = orderDao.getDeliveredTransactions();\r\n\t\tArrayList<Transactions> closedTransactions = new ArrayList<Transactions>();\r\n\t\t\r\n\t\tif(transactions!=null)\r\n\t\t{\r\n\t\t\tfor(Transactions transaction : transactions)\r\n\t\t\t{\r\n\t\t\t\tlog.debug(\"Transaction delivery time is of id = \" + transaction.getTransaction_id() + \"and time is \" + transaction.getDelivery_time());\r\n\t\t\t\tif(isCustomerSatisfied(transaction.getDelivery_time()))\r\n\t\t\t\t{\r\n\t\t\t\t\ttransaction.setStatus(\"CLOSED\");\r\n\t\t\t\t\tclosedTransactions.add(transaction);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn closedTransactions;\r\n\t}", "void removeDebts(int i);", "public List<Bouquet> getAllBouquetsInOrder() {\n readOrderId();\n if (orderId != null) {\n return orderDAO.get(orderId).getBouquets();\n }\n return new LinkedList<>();\n }", "java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> \n getTransitFlightsList();", "@java.lang.Override\n public java.util.List<com.google.protobuf.ByteString>\n getTransactionsList() {\n return transactions_;\n }", "public nc.vo.crd.acc.feeaccr.feeaccrbvo.FeeAccrBVO[] getFeeAccrBVOItemArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(FEEACCRBVOITEM$2, targetList);\n nc.vo.crd.acc.feeaccr.feeaccrbvo.FeeAccrBVO[] result = new nc.vo.crd.acc.feeaccr.feeaccrbvo.FeeAccrBVO[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public NSMutableArray<I_WorkFlowItem> getTachesObligatoiresAbsentes() {\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = new NSMutableArray<I_WorkFlowItem>();\n\n\t\tfor (int i = 0; i < tachesObligatoires().count(); i++) {\n\t\t\tI_WorkFlowItem tache = tachesObligatoires().objectAtIndex(i);\n\t\t\tif (!tachesFaites.containsObject(tache)) {\n\t\t\t\ttachesObligatoiresAbsentes.addObject(tache);\n\t\t\t}\n\t\t}\n\n\t\treturn tachesObligatoiresAbsentes;\n\t}", "public Bomb[] getBombs() {\r\n\t\treturn bombs;\r\n\t}", "public List<TransactionInfo> getAll() {\n return transactions;\n }", "public List<Consultor> getConsultores()\n\t{\n\t\tList<Consultor> nombres = new ArrayList<Consultor>();\n\t\tLinkedList<Consultor> tb = Consultor.findAll();\n\t\tfor(Consultor c : tb)\n\t\t{\n\t\t\tnombres.add(c);\n\t\t}\n\t\treturn nombres;\t\n\t}", "@Override\n\tpublic List<Transaction> getTransactions() {\n\t\treturn null;\n\t}", "public Bids[] populateBids() {\r\n\t\tint bidsLength = bids.size();\r\n\t\tint index = 0;\r\n\t\t\r\n\t\tBids[] auctionBids = new Bids[bidsLength];\r\n\t\tfor(Map.Entry<Integer, Bids> auctions: bids.entrySet()) {\r\n\t\t\tauctionBids[index] = auctions.getValue();\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn auctionBids;\r\n\t\r\n\t}", "public @NotNull Set<Bidder> findAllBidders() throws BazaarException;", "public Collection<Dealsusagetb> getDusages() {\n Collection<Dealsusagetb> usages = res.readEntity(gDUsages);\n dusages = new ArrayList<>();\n for (Dealsusagetb usage : usages) {\n if(usage.getStatus() == 1) {\n dusages.add(usage);\n }\n }\n return dusages;\n }", "public Breeder[] getBreederList() {\n Breeder[] copyBreeders = new Breeder[breederList.length];\n for(int i = 0; i < breederList.length; i++){\n copyBreeders[i] = breederList[i].softClone(this);\n }\n return copyBreeders;\n }", "public Collection eleicoesAbertas(){\n return this.eleicaoDB.eleicoesAberta();\n }", "public BuffList buffs();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<BookCopiesNumber> getDeletableBooks() throws SQLException{\n\t\treturn (List<BookCopiesNumber>) super.manager.getDeletableBooks(true);\n\t}", "public Object[] getElements() {\r\n\t\treturn data.toArray();\r\n\t}", "public Iterator getTransactions() {\n return (transactions.listIterator());\n }", "public @NotNull Set<Bid> findAllBids() throws BazaarException;", "public static Leave[] listAll(){\r\n List<Leave> es=dao().list();\r\n return es.toArray(new Leave[es.size()]);\r\n }", "public ArrayList<Trade> getTrades() {\n return trades;\n }", "public List<Account> getCustomerAccountListDegrade(String id){\n \t Account userDefaultAccount = new Account();\n \t userDefaultAccount.setAccountType(\"CompteCourant\");\n \t userDefaultAccount.setOwner(id);\n \t userDefaultAccount.setStatus(\"*****ServiceDégradé****\");\n \t userDefaultAccount.setBalance(1.00);\n \t return (List<Account>)Arrays.asList(userDefaultAccount);\n \t \n }", "public biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[] getPedidoDetalle(){\n return localPedidoDetalle;\n }", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n if (deliveredBuilder_ == null) {\n return java.util.Collections.unmodifiableList(delivered_);\n } else {\n return deliveredBuilder_.getMessageList();\n }\n }", "public List<String> getUnsentData(){\n\r\n\t}", "public java.util.List<com.networknt.taiji.token.TokenTransaction> getTokenTransactionArray() {\n return TokenTransactionArray;\n }", "public ArrayList<OrderBillPO> getUnmarkingBills() {\n\t\tArrayList<OrderBillPO> result;\n\t\ttry {\n\t\t\tresult=si.getUnjudged();\n\t\t\treturn result;\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "Price[] getTradePrices();", "public List<Department> FindAllDep() {\n\t\treturn ddi.findAllDeps();\n\t}", "public Weet[] getWeets() {\n return array.getWeetsFromStore();\n //return tree.toArray();\n }", "public List<FeeComponent> getFeeList() {\r\n if (feeList==null) {\r\n feeList = new ArrayList<FeeComponent>();\r\n }\r\n return feeList;\r\n }", "public static Transactions getTransactions() {\n return Transactions;\n }", "public com.redknee.util.crmapi.soap.subscriptions.xsd._2009._04.SubscriptionBundleBalance[] getBalances(){\n return localBalances;\n }", "public com.cybersource.stub.PaypalTransaction[] getTransaction() {\r\n return transaction;\r\n }", "private Deque<JooqTransaction> transactions() {\n Deque<JooqTransaction> result = transactionDeques.get();\n\n if (result == null) {\n result = new ArrayDeque<>();\n transactionDeques.set(result);\n }\n\n return result;\n }", "@Override\n\tpublic List<Charge> getCharges() {\n\t\tList<Charge> list = chargeMapper.getCharges();\n\t\treturn list;\n\t}", "public List<BMessageReceipt> getBMessageReceiptList() {\n if (bMessageReceiptList == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n BMessageReceiptDao targetDao = daoSession.getBMessageReceiptDao();\n List<BMessageReceipt> bMessageReceiptListNew = targetDao._queryBMessage_BMessageReceiptList(id);\n synchronized (this) {\n if(bMessageReceiptList == null) {\n bMessageReceiptList = bMessageReceiptListNew;\n }\n }\n }\n return bMessageReceiptList;\n }", "public edu.umich.icpsr.ddi.DataChckType[] getDataChckArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DATACHCK$14, targetList);\n edu.umich.icpsr.ddi.DataChckType[] result = new edu.umich.icpsr.ddi.DataChckType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "@Override\r\n\tpublic long[] getTicketMoney() {\n\t\tlong[] result = new long[2];\r\n\t\tList<FeeRecord> card = feeRecordDao.getCardRecords();\r\n\t\tList<FeeRecord> cash = feeRecordDao.getCashRecords();\r\n\t\tfor(FeeRecord feeRecord:card){\r\n\t\t\tresult[0] += feeRecord.getMoney();\r\n\t\t}\r\n\t\tfor(FeeRecord feeRecord:cash){\r\n\t\t\tresult[1] += feeRecord.getMoney();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public XMLFieldDescriptor[] getElementDescriptors() {\n XMLFieldDescriptor[] fields\n = new XMLFieldDescriptor[elementDescriptors.size()];\n elementDescriptors.toArray(fields);\n return fields;\n }", "@Override\n\tpublic Payment getPayDeatilsById(long transactionid) {\n\t\treturn paydao.fetchPayDeatilsById(transactionid);\n\t}", "java.util.List<WorldUps.UGoDeliver> \n getDeliveriesList();", "public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}", "@java.lang.Override\n public cosmos.base.v1beta1.CoinOuterClass.Coin getFunds(int index) {\n return funds_.get(index);\n }", "@java.lang.Override\n public cosmos.base.v1beta1.CoinOuterClass.Coin getFunds(int index) {\n return funds_.get(index);\n }", "public List<Payer> getPayers() {\n\t\tList<Payer> listPayer = new ArrayList<Payer>();\n\t\tAddTransaction transaction = new AddTransaction();\n\t\tPayer payer1 = new Payer();\n\t\tpayer1.setPayerName(\"DANNON\");\n\t\tlistPayer.add(payer1);\n\t\tPayer payer2 = new Payer();\n\t\tpayer2.setPayerName(\"UNILEVER\");\n\t\tlistPayer.add(payer2);\n\t\tPayer payer3 = new Payer();\n\t\tpayer3.setPayerName(\"MILLER COORS\");\n\t\tlistPayer.add(payer3);\n\t\ttransaction.addTransaction(\"DANNON\", 1000, LocalDateTime.parse(\"2020-11-02T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"UNILEVER\", 200, LocalDateTime.parse(\"2020-10-31T11:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", -200, LocalDateTime.parse(\"2020-10-31T15:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"MILLER COORS\", 10000, LocalDateTime.parse(\"2020-11-01T14:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\ttransaction.addTransaction(\"DANNON\", 300, LocalDateTime.parse(\"2020-10-31T10:00:00\").format(formatter),\n\t\t\t\tlistPayer);\n\t\treturn listPayer;\n\t}", "public List<DietaBalanceada> consultar_dietaBalanceada();", "public ArrayList<DrinkAndQuantity> getDrinks()\n {\n return drinksAndQuantities;\n }", "List<Trade> getAllTrades();", "E[] getAll();", "public ArrayList<Billing> getBillings() \n\t{\n\t\treturn billings;\n\t}" ]
[ "0.7424578", "0.61986023", "0.6074906", "0.60314393", "0.6025782", "0.60169846", "0.594942", "0.5946034", "0.58814853", "0.5843697", "0.5793037", "0.5696804", "0.56721354", "0.56611913", "0.5650281", "0.5602518", "0.55999094", "0.55815744", "0.55393094", "0.5534621", "0.55190295", "0.5490546", "0.54876775", "0.54446393", "0.5434196", "0.54329526", "0.54289037", "0.54289037", "0.54215753", "0.53971", "0.53971", "0.53948337", "0.53914124", "0.53766906", "0.53643197", "0.5361186", "0.5360959", "0.5355723", "0.5346693", "0.53405786", "0.5338564", "0.53358245", "0.5329766", "0.5318308", "0.5317246", "0.5315089", "0.5292513", "0.52860373", "0.52777773", "0.52751815", "0.52717227", "0.52676105", "0.5257133", "0.5256432", "0.5248178", "0.52435863", "0.52318245", "0.52289355", "0.5225573", "0.52246225", "0.52199084", "0.52157915", "0.5200283", "0.5195821", "0.51840425", "0.5183089", "0.51805675", "0.5167083", "0.5166669", "0.51642805", "0.5157957", "0.51552856", "0.51479995", "0.5133137", "0.51306117", "0.5125445", "0.51242346", "0.5121434", "0.5116146", "0.5114772", "0.51109815", "0.5104295", "0.5096779", "0.5094041", "0.50909716", "0.5085302", "0.50844306", "0.50823075", "0.508156", "0.507947", "0.5073702", "0.50722486", "0.5072151", "0.5072151", "0.5069562", "0.50687754", "0.5059632", "0.50563127", "0.5055863", "0.5054347" ]
0.8074222
0
Gets ith "debts" element
ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry getDebtsArray(int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeDebts(int i);", "public Debt getDebtAt(int rowIndex) {\n if (rowIndex < 0) {\n return null;\n }\n if (rowIndex >= getRowCount()) {\n return null;\n }\n List<Debt> debts = model.getDebts();\n return debts.get(rowIndex);\n }", "private Element getElementForwards(int index) {\n Element element = this._headAndTail.getNext();\n\n for (int i = index; i > 0; --i) {\n element = element.getNext();\n }\n\n return element;\n }", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry[] getDebtsArray();", "private Element getElement(int index) {\n if (index < this._size / 2) {\n return this.getElementForwards(index);\n } else {\n return this.getElementBackwards(index);\n }\n }", "private Element getElementBackwards(int index) {\n Element element = this._headAndTail;\n\n for (int i = this._size - index; i > 0; --i) {\n element = element.getPrevious();\n }\n\n return element;\n }", "public Integer at(int i){\n\t\tint cont = 0;\n\t\tNodo aux = first;\n\t\twhile(i<this.size()){\n\t\t\tif(cont == i){\n\t\t\t\treturn aux.getInfo();\n\t\t\t}else{\n\t\t\t\taux = aux.getNext();\n\t\t\t\tcont++;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public RTWElementRef getAsElement(int i);", "@Override\n public T get(int index){\n if(isEmpty()){\n return null;\n } else{ \n DLLNode<T> current = first;\n for(int i = 0; i < index - 1; i++){\n current = current.successor;\n }\n return current.element;\n }\n }", "public int first() throws Exception{\n if(isEmpty())\n throw new Exception();\n return front.getData();\n }", "public Object getLast() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.previous.element;\r\n }", "public Object peek() {\r\n\t\treturn al.getElementAt(al.listSize - 1);\r\n\t}", "public long getElem(int index) {\r\n return a[index];\r\n }", "public Object get(int index) {\n Node answer = first;\n for (int i = 0; i < index; i++) {\n answer = answer.next;\n }\n return answer.data;\n }", "protected int _getIntLE(int index)\r\n/* 389: */ {\r\n/* 390:403 */ return HeapByteBufUtil.getIntLE(this.array, index);\r\n/* 391: */ }", "public int getElementAt(int i)\n\t{\n\t\tint elem = 0;\n\t\tint index = -1;\n\t\tSinglyLinkedListNode nextNode = head;\n\t\tSinglyLinkedListNode prevNode = null;\n\t\tif((i < 0 || i >= size()))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\twhile(true)\n\t\t{\n\t\t\tindex = index + 1;\n\t\t\tif(index == i)\n\t\t\t{\n\t\t\t\telem = nextNode.getData();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprevNode = nextNode;\n\t\t\t\tnextNode = prevNode.getNext();\n\t\t\t}\n\t\t}\t\t\n\t\treturn elem;\n\t}", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "public int peek() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return elementData[1];\n }", "public Object getFirst()\n {\n if(first == null){\n throw new NoSuchElementException();}\n \n \n \n return first.data;\n }", "public E get(int index) {\n return this.elements[index];\n }", "public int getFirstElement() {\n\t\tif( head == null) {\n\t\t\tSystem.out.println(\"List is empty\");\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse {\n\t\t\treturn head.data;\n\t\t}\n\t}", "public E getFirst() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}", "public E getTail() {\n if (isCurrent() && tail != null) { return tail.getData(); }\n else { throw new IllegalStateException(\"There is no tail element.\"); }\n }", "public T getFirst()\n\t{\n\t\treturn head.getData();\n\t}", "public PostingsEntry get( int i ) {\n\t return list.get(i);\n }", "public Object nextElement() {\n/* 75 */ return this.iterator.next();\n/* */ }", "@Override\n public T get(int index){\n if(isEmpty() || index > size() || index < 0){//if list is empty or given index is invalid, provide error message\n throw new IndexOutOfBoundsException();\n }\n \n DLNode<T> current = first;//a reference pointing to the first node\n for (int i = 0; i < index; i++) {//find the required index using a loop\n current = current.next;\n }\n return current.elem;//return element at the specified index\n }", "public XMLElement getChild(int index)\n/* */ {\n/* 545 */ return (XMLElement)this.children.elementAt(index);\n/* */ }", "public int getElem()\r\n\t{\r\n\t\treturn elem;\r\n\t}", "public Item dequeue() {\n\t\tItem i = first.item;\n\t\tfirst = first.next;\n\t\treturn i;\n\t}", "@Override public BTreeNode getChild(int index) {\n return this.children[index];\n }", "public E getLast() {\r\n\t\tif (tail == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(size - 1).data;\t\r\n\t\t}\r\n\t}", "public T nextElement() {\r\n\t\treturn items[currentObject++];\r\n \t}", "public synchronized DoubleLinkedListNodeInt getLast() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\treturn tail.getPrev();\n\t}", "private Element peekElement() {\r\n return ((Element)this.elements.get(this.elements.size() - 1));\r\n }", "public @Override E get(int index) {\n \treturn getNode(index).data;\n }", "public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }", "public Item get(int index) {\n StuffNode ptr = sentinel;\n int ind = 0;\n if ((index + 1 > this.size()) || this.isEmpty() ) {\n return null;\n }\n while (ind <= index) {\n ptr = ptr.next;\n ind += 1;\n }\n return ptr.item;\n }", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "private Object getNextElement()\n {\n return __m_NextElement;\n }", "public Item get(int i) {\n return items[i - 1];\n }", "int sizeOfDebtsArray();", "public Object pop(){\n if(first == null){\n throw new NoSuchElementException();\n }\n else\n {\n Object element = first.data;\n first = first.next;\n return element;\n }\n }", "public Object get(int index) {\r\n return entry(index).element;\r\n }", "public Pair get()\n {\n return this.MapItr.element;\n }", "protected Tuple fetchNext() throws NoSuchElementException, TransactionAbortedException, DbException {\n\t\t// some code goes here\n\t\tTuple ret;\n\t\twhile (childOperator.hasNext()) {\n\t\t\tret = childOperator.next();\n\t\t\tif (pred.filter(ret))\n\t\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}", "public Trade get(int i) throws NullPointerException,IndexOutOfBoundsException{\n try {\n return trades.get(i);\n }catch (IndexOutOfBoundsException e){\n e.printStackTrace();\n return null;\n }\n }", "public Object element() {\n return queue.element();\n }", "public Message peek() \n { \n return elements[head]; \n }", "public Node elementAt() {\n\t\treturn mHead.next;\n\t}", "public E getLast() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tNode p = mHead.next;\n\t\twhile (p.next != mTail) {\n\t\t\tp = p.next;\n\t\t}\n\n\t\treturn p.data;\n\t}", "public int getIterator(T element) {\n for (int j = 1; j < numberOfBlocks; ++j) {\n if (dataInBegin[j] != null && comparator.compare((T)dataInBegin[j], element) > 0) {\n for (int k = (len * (j - 1) << 1); k < endOfBlock[j - 1]; ++k) {\n if (comparator.compare((T) data[k], element) == 0) {\n return k;\n }\n }\n }\n }\n\n for (int k = (len * (numberOfBlocks - 1) << 1); k < endOfBlock[numberOfBlocks - 1]; k++)\n if (comparator.compare((T)data[k], element) == 0) {\n return k;\n }\n return NO_ELEMENT;\n }", "void setDebtsArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry debts);", "public Object getNext() { \t\n\t\t\tcurrIndex++;\t \n\t\t\treturn collection.elementAt(currIndex);\n\t\t}", "public E getFirst(){\n return head.getNext().getElement();\n }", "public Object firstElement() {\n return _queue.firstElement();\n }", "public int get(int index) {\n\t checkIndex(index);\n\t return elementData[index];\n\t }", "public Object peek() {return collection.get(collection.size() - 1);}", "public int obtenirTaille()\n\t{\n\t\treturn this.taille;\n\t}", "public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "@Override\n public E get(int index) throws IndexOutOfBoundsException\n {\n if(index > size() - 1 || index < 0)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n return currNode.getElement(); \n }", "public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}", "public E getLast(){\n return tail.getPrevious().getElement();\n }", "public Integer peek() {\n if (isPeeked)\n return peekedElement;\n else {\n if (!hasNext())\n return -1;\n peekedElement = iterator.next();\n isPeeked = true;\n return peekedElement;\n }\n }", "public T getNext()\n {\n T elem = handler.getTop();\n handler.pop();\n return elem;\n }", "public Item getDeletedEntry() {\n Item item = deletedEntries.lastElement();\n deletedEntries.pop();\n return item;\n }", "public WalkIn peek() {\n if(isEmpty()) System.err.println(\"The queue is empty! Nobody is next!\");\n \n return first.getData();\n }", "public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }", "public int peek() {\n\t return first;\n\t}", "public Hashtable getElementHashEntry() {\n\t\treturn (element);\n\t}", "public T get(int i) {\n if (i == 0) {\n return this.first;\n }\n else {\n return this.rest.get(i--);\n }\n }", "protected Tuple readNext()\n throws TransactionAbortedException, DbException {\n if(readNextCalled)\n return null;\n readNextCalled = true;\n\n BufferPool bp = Database.getBufferPool();\n int insertCount = 0;\n while(child.hasNext()) {\n bp.insertTuple(tid, tableid, child.next());\n insertCount++;\n }\n\n Tuple retTuple = new Tuple(td);\n retTuple.setField(0, new IntField(insertCount));\n return retTuple;\n }", "public int getRear() {\n if(size == 0) return -1;\n return tail.prev.val;\n}", "@Override\n public E getFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[head];\n }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "private Element findByIndex(int index) {\n\t\tElement e = head;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\te = e.next;\n\t\t}\n\t\treturn e;\n\t}", "public Nodo obtener_Nodo() {\n\t\treturn this.elem;\n\t}", "@Override\n\tpublic Object pop() {\n\t\tif (elementCount == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\telementCount--;\n\t\treturn elementData[elementCount];\n\t}", "public Object peek() {\n\t\tcheckIfStackIsEmpty();\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tObject lastElement = collection.get(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}", "public BankTracker getDeletedBankTracker() {\n BankTracker bt = deletedBanks.lastElement();\n deletedBanks.pop();\n return bt;\n }", "public E peek() \r\n {\r\n return list.get(getSize() - 1);\r\n }", "public int getNbTreeBidInfo() {\n\t\treturn cacheTree.getNbTreeBidInfo();\n\t}", "@Override\n\tpublic T get(int indice) {\n\t\tif (indice >= 0 && indice < tamanho) {\n\t\t\treturn elementosDaLista[indice];\n\t\t}\n\t\treturn null;\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry insertNewDebts(int i);", "Object getElementAt(int index);", "public Integer retrieveBF(Vertex vert, Stack<Integer> st)\r\n\t{\r\n\t\tfor(int k = 0; k < vertices.size(); k++)\r\n\t\t{\r\n\t\t\t/*for(int j = 0; j < vertices.get(k).getEdges().size(); j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!vert.get.isTraversed())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}*/\r\n\t\t\t//else if(this.getEdge(i, k) != null && vertices.get(i).getEdge(k).isTraversed() == false);\r\n\t\t\t//{\r\n\t\t\t/*else */\r\n\t\t\tif(vert.getEdge(k) != null && vert.getEdge(k).isTraversed() == false)\r\n\t\t\t{\t\t\t\t\r\n\t\t\t\tvert.getEdge(k).setTraversed();\r\n\t\t\t\tst.push(retrieveBF(vert.getEdge(k).getVertex(vert.getID()),st));\r\n\t\t\t\t//return st.push(retrieveBF(vert.getEdge(k).getVertex(vert.getID()),st));\r\n\t\t\t}\r\n\t\t\t\treturn st.push(retrieveBF(vert,st));\r\n\t\t}\r\n\t\treturn st.pop();\r\n\t}", "public int getBid() {\n return instance.getBid();\n }", "com.google.protobuf.ByteString getTransactions(int index);", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}", "public T getAt(int iterator) {\n return (T)data[iterator];\n }", "public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}", "public E last() {\n\r\n if(tail == null) {\r\n return null;\r\n } else {\r\n return tail.getItem();\r\n\r\n }\r\n }", "public Integer peek() {\n return nums.get(index);\n }", "private E getElement(int index) {\n if (index >= contents.size()) {\n return null;\n } else {\n return contents.get(index);\n }\n }", "@Override\n public Item getBack() {\n int lastActualItemIndex = size - 1;\n return items[lastActualItemIndex];\n }", "public E element() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}", "teledon.network.protobuffprotocol.TeledonProtobufs.Donator getDonatori(int index);" ]
[ "0.58519554", "0.5813309", "0.5734203", "0.5520156", "0.5503801", "0.54962367", "0.5472306", "0.5436275", "0.54243666", "0.5383221", "0.5359305", "0.53516144", "0.5338905", "0.5298354", "0.5275746", "0.5260034", "0.52306634", "0.52293766", "0.52157784", "0.5215188", "0.5213748", "0.52072656", "0.51981395", "0.5197468", "0.5195499", "0.5171813", "0.5157796", "0.5156663", "0.5151621", "0.51439005", "0.5138978", "0.5136173", "0.5131188", "0.5123775", "0.511466", "0.51092756", "0.5098833", "0.5094269", "0.50907236", "0.50896543", "0.50843513", "0.50758815", "0.5072771", "0.5070816", "0.5070268", "0.5067034", "0.5065327", "0.5061617", "0.50601417", "0.50405973", "0.5038776", "0.50347376", "0.5030776", "0.5028719", "0.50234044", "0.50194466", "0.5017249", "0.50162596", "0.50160694", "0.50105476", "0.5008057", "0.5004869", "0.5001927", "0.49968606", "0.49861172", "0.4985051", "0.49820924", "0.49803025", "0.49786556", "0.49781504", "0.49780816", "0.49763975", "0.4974988", "0.4964572", "0.4962088", "0.49604172", "0.49601802", "0.495393", "0.4952788", "0.4952165", "0.4951843", "0.49485835", "0.49466014", "0.49431816", "0.49407178", "0.49406856", "0.49401873", "0.49395192", "0.49317965", "0.49307415", "0.49268648", "0.4926295", "0.49209866", "0.49184355", "0.49181715", "0.49157324", "0.49111882", "0.49091196", "0.49084643", "0.49062157" ]
0.6506251
0
Returns number of "debts" element
int sizeOfDebtsArray();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size(){\n return trades.size();\n }", "int getTransactionsCount();", "int getDeliveredCount();", "public int getFundsCount() {\n if (fundsBuilder_ == null) {\n return funds_.size();\n } else {\n return fundsBuilder_.getCount();\n }\n }", "public int getFundsCount() {\n if (fundsBuilder_ == null) {\n return funds_.size();\n } else {\n return fundsBuilder_.getCount();\n }\n }", "int getFundsCount();", "int getFundsCount();", "@java.lang.Override\n public int getFundsCount() {\n return funds_.size();\n }", "@java.lang.Override\n public int getFundsCount() {\n return funds_.size();\n }", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "int getDeliveriesCount();", "Long getNumberOfElement();", "int getNumOfBuyOrders();", "int getTotalDepositCount();", "public int getNumberOfBeds() {\n\t\tint total;\n\t\ttotal = getNbrOfBeds()[0] + getNbrOfBeds()[1] + getNbrOfBeds()[2];\n\t\treturn total;\n\t}", "public int getDeliveredCount() {\n return delivered_.size();\n }", "public int getDeliveredCount() {\n if (deliveredBuilder_ == null) {\n return delivered_.size();\n } else {\n return deliveredBuilder_.getCount();\n }\n }", "public int numberOfItems()\n {\n return dessertList.size();\n }", "public static int numElements_entries_receiveEst() {\n return 11;\n }", "int getNumOfSellOrders();", "public Long getElementCount();", "int getReaultCount();", "public int getTrades() {\n return trades;\n }", "public int numberOfBoats(){\n return this.boats.size();\n }", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "int getActAmountCount();", "public int getLength()\n\t{\n\t\tDNode tem=first;\n\t\tint length=0;\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\tlength=length+1;\n\t\t\ttem=tem.nextDNode;\n\t\t}\n\t\tif(first!=null)\n\t\t\tlength=length+1;\n\t\treturn length;\n\t}", "int getTransitFlightsCount();", "public int size()\n {\n \tDNode<E> temp=first;\n \tint count=0;\n \twhile(temp!=null)\t\t//Iterating till the end of the list\n \t{\n \t\tcount++;\n \t\ttemp=temp.next;\n \t}\n \treturn count;\n }", "protected double getNumWithdrawals() {\n return numWithdrawals;\n }", "@Override\n public int getItemCount() {\n if (funds != null)\n return funds.size();\n else return 0;\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn otherFee == null ? 0 : otherFee.size();\n\t\t}", "public int listAmount() {\n return count;\n }", "public int size() {\n return(RBT.size()); \n }", "@Override\n\tpublic void noOfTransactions() {\n\t\t\n\t}", "public int getSubElementCount() { throw new RuntimeException(\"Stub!\"); }", "int getRefundToCount();", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public int getDepartedPassengerCount() {\n\t\tint total = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttotal += taxi.getTotalNrOfPassengers();\n\t\t}\n\t\treturn total;\n\t}", "protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}", "public int size() {\r\n\t\treturn this.taille;\r\n\t}", "public int getDequeueCount() {\n\t\treturn m_DequeueCount;\n\t}", "public int getNumOfWithdraws() {\n\t\treturn numWithdraws;\n\t}", "public int getNumTransactionsInBlock() {\r\n return numTransactionsInBlock;\r\n }", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "int getPeersCount();", "@Override\r\n\tpublic int[] getTicketCount() {\n\t\tint[] result = new int[2];\r\n\t\tList<FeeRecord> card = feeRecordDao.getCardRecords();\r\n\t\tList<FeeRecord> cash = feeRecordDao.getCashRecords();\r\n\t\tresult[0] = card.size();\r\n\t\tresult[1] = cash.size();\r\n\t\treturn result;\r\n\t}", "public int sizeOf() {\n BookList target = this;\n int count = 0;\n if (isEmpty()){\n count= 0;\n }\n else if (!isEmpty()){\n count = 1;\n while (target.next != null){\n target = target.next;\n if(target.next == null){\n }\n \n ++count;\n }\n \n }\n\t\treturn count;\n\t}", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public int getSuccessfulTradesCount() {\n int successfulTradesCount = 0;\n\n\n Iterator entries = tradesList.entrySet().iterator();\n while (entries.hasNext()) {\n Entry thisEntry = (Entry) entries.next();\n Trade tradeObj = (Trade) thisEntry.getValue();\n if (!(tradeObj.getStatus().equals(\"DECLINED\"))){\n successfulTradesCount++;\n }\n }\n return successfulTradesCount;\n }", "public int quantasEleicoesPeriodoCandidaturaAberta(){\n return this.eleicaoDB.quantasEleicoesPeriodoCandidaturaAberta();\n }", "public int getDEALERCount() {\r\n\t\treturn _DEALERList.size();\r\n\t}", "public int getAmountOfDeformation ()\n\t{\n\t\treturn mAmountOfDeformation;\n\t}", "int getBlockNumbersCount();", "public static int size_receivets() {\n return (32 / 8);\n }", "public int remainingFees()\r\n\t{\r\n\t\treturn feesTotal-feesPaid;\t\t\r\n\t}", "@Transactional\r\n\tpublic Integer countBudgetAccounts() {\r\n\t\treturn ((Long) budgetAccountDAO.createQuerySingleResult(\"select count(o) from BudgetAccount o\").getSingleResult()).intValue();\r\n\t}", "public int getNbDeliveries() {\n\t\treturn nbDeliveries;\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry getDebtsArray(int i);", "public int getNumberOfElements();", "public static int numberOfElement()\n\t{\n\t\treturn REF_INT_STRING.size();\n\t}", "@java.lang.Override\n public int getTransactionsCount() {\n return instance.getTransactionsCount();\n }", "public int sizeOfFeeAccrBVOItemArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FEEACCRBVOITEM$2);\n }\n }", "public int getRemaining(){\n\t\treturn count+1;\n\t}", "public int getAmountDone();", "int getPeerCount();", "public void getDepartureFlightcount()\n\t{\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\t//List<WebElement> depatureFlight = driver.findElements(By.xpath(\"//div[@class='fli-list splitVw-listing']/input[@name='splitowJourney']\"));\n\t\tint count = depatureFlight.size();\n\t\tSystem.out.println(\"Total number of departure Flight records: \"+count);\n\t}", "public int getCouts(){\r\n\t\treturn listeEleves.size();\r\n\t}", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "public int getDeliveriesCount() {\n if (deliveriesBuilder_ == null) {\n return deliveries_.size();\n } else {\n return deliveriesBuilder_.getCount();\n }\n }", "public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "@java.lang.Override\n public int getTransactionsCount() {\n return transactions_.size();\n }", "public int length() {\n return discharge.length;\n }", "public int getDegree() {\n return this.customers.size() + this.peers.size() + this.providers.size();\n }", "public int size(){\r\n return boats.size();\r\n }", "public int getDeliveriesCount() {\n return deliveries_.size();\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry[] getDebtsArray();", "public int getRemainingFees() {\n\t\treturn totalFees - feesPayed;\n\t}", "public int amountOfBuffs() {\r\n return buffs.size();\r\n }", "public int getNeighBorCount(){\n\t\treturn serventList.size(); \n\t}", "long getTotalAcceptCount();", "int getBlockNumsCount();", "int getBlockNumsCount();", "public int getNumAnnouncements(){\n return message.length;\n }", "public int getNumberBidders() {\n return this.bidders.size();\n }", "int getTotalElements();", "public int getCountTradeCards() {\r\n\t\treturn countTradeCards;\r\n\t}", "int count() {\n return index.capacity() / 24;\n }", "public int totalAllocatedOrders();", "public int sizeOfFootnoteRefArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FOOTNOTEREF$10);\n }\n }", "public Integer getBuyCount() {\n return buyCount;\n }", "int getBlocksAmount();", "public int getNumberOfEntries()\r\n\t{\r\n\t\treturn tr.size();\r\n\t}", "public int getCount() {\n\t\tint count = 0;\r\n\t\tif (newTwitts != null)\r\n\t\t\tcount += newTwitts.size();\r\n\t\tif (oldTwitts.moveToFirst())\r\n\t\t\tcount += oldTwitts.getCount();\r\n\t\treturn count;\r\n\t}", "public static int elementSize_entries_receiveEst() {\n return (8 / 8);\n }", "public String getTotalDeposits(){\n double sum = 0;\n for(Customer record : bank.getName2CustomersMapping().values()){\n for(Account acc: record.getAccounts()){\n sum += acc.getOpeningBalance();\n }\n }\n return \"Total deposits: \"+sum;\n }" ]
[ "0.67490363", "0.67266256", "0.66956514", "0.6418296", "0.6418296", "0.6326902", "0.6326902", "0.6306468", "0.6306468", "0.6304462", "0.6302227", "0.6297656", "0.6278208", "0.6256168", "0.6192882", "0.6179728", "0.61784637", "0.6165027", "0.611948", "0.6086998", "0.6083909", "0.60663444", "0.60169137", "0.6009603", "0.60055345", "0.59748536", "0.5927476", "0.5893255", "0.5867247", "0.58523136", "0.58477527", "0.5847676", "0.5845429", "0.584131", "0.5835495", "0.58335286", "0.5825386", "0.58218604", "0.58077943", "0.5806646", "0.58043486", "0.57990366", "0.57984847", "0.5796686", "0.5794511", "0.579021", "0.57840663", "0.5783299", "0.57803065", "0.5778238", "0.5775949", "0.57705355", "0.57575107", "0.5756458", "0.5755719", "0.5748121", "0.57389814", "0.5738334", "0.57308173", "0.5730613", "0.57290614", "0.57231545", "0.5722576", "0.5716348", "0.5704979", "0.57003033", "0.5696252", "0.5693894", "0.56885964", "0.56885964", "0.56885964", "0.56885964", "0.56885964", "0.56862974", "0.56796986", "0.56731457", "0.56724215", "0.56577235", "0.56577057", "0.56546366", "0.5648885", "0.56420934", "0.5633345", "0.56303024", "0.56288606", "0.5628184", "0.5628184", "0.56245804", "0.5623221", "0.56172985", "0.5614121", "0.5613334", "0.56107134", "0.56087685", "0.56064254", "0.5596184", "0.5593422", "0.55880654", "0.5587956", "0.55840623" ]
0.788059
0