/** * This method performs the query associated with the supplied query * expression, returning the results as a list of activity types. * * @param query * The query expression * @return The list of activity types * @throws Exception * Failed to perform query */ @SuppressWarnings("unchecked") public List<ActivityType> query(final String query) throws Exception { List<ActivityType> ret = _jpaStore.withJpa(new JpaWork<List<ActivityType>>() { public List<ActivityType> perform(Session s) { return (List<ActivityType>) s.createQuery(query).list(); } }); if (LOG.isLoggable(Level.FINEST)) { LOG.finest("Query=" + query + " Result=" + new String(ActivityUtil.serializeActivityTypeList(ret))); } return (ret); }
byte[] b=ActivityUtil.serializeActivityTypeList(list);
byte[] b=ActivityUtil.serializeActivityTypeList(list);
+ new String(ActivityUtil.serializeActivityTypeList(ret)));
+new String(ActivityUtil.serializeActivityTypeList(list)));