コード例 #1
0
ファイル: RssUtil.java プロジェクト: jeongjaehong/framework2
 /** rss item 문자열 생성 */
 private static String rssItemStr(RecordSet rs) {
   String title = null;
   String link = null;
   String description = null;
   String author = null;
   String category = null;
   Date pubDate = null;
   try {
     title = rs.getString("TITLE");
   } catch (ColumnNotFoundException e) {
   }
   try {
     link = rs.getString("LINK");
   } catch (ColumnNotFoundException e) {
   }
   try {
     description = rs.getString("DESCRIPTION");
   } catch (ColumnNotFoundException e) {
   }
   try {
     author = rs.getString("AUTHOR");
   } catch (ColumnNotFoundException e) {
   }
   try {
     category = rs.getString("CATEGORY");
   } catch (ColumnNotFoundException e) {
   }
   try {
     pubDate = rs.getTimestamp("PUBDATE");
   } catch (ColumnNotFoundException e) {
   }
   return rssItemStr(makeRssItem(title, link, description, author, category, pubDate));
 }