/** * @param rundata * @param context * @return */ @Override protected ResultList<EipTNoteMap> selectList(RunData rundata, Context context) { try { userId = Integer.toString(ALEipUtils.getUserId(rundata)); newNoteAllSum = NoteUtils.getNewReceivedNoteAllSum(rundata, userId); unreadReceivedNotesAllSum = NoteUtils.getUnreadReceivedNotesAllSum(rundata, userId); SelectQuery<EipTNoteMap> query = getSelectQuery(rundata, context); buildSelectQueryForListView(query); buildSelectQueryForListViewSort(query, rundata, context); return query.getResultList(); } catch (Exception ex) { logger.error("note", ex); return null; } }
/** * @param userId * @return */ public String getUserName(String userId) { return NoteUtils.getUserName(userId); }
/** * @param userName * @return */ public String getUserId(String userName) { return NoteUtils.getUserId(userName); }
/** * 検索条件を設定した Criteria を返す. * * @param rundata * @return */ private SelectQuery<EipTNoteMap> getSelectQuery(RunData rundata, Context context) { return NoteUtils.getSelectQueryNoteList(rundata, context); }