[Jiemamy-notify:2228] commit [3275] javadoc

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 14日 (火) 22:38:54 JST


Revision: 3275
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3275
Author:   daisuke_m
Date:     2009-04-14 22:38:54 +0900 (Tue, 14 Apr 2009)

Log Message:
-----------
javadoc

Modified Paths:
--------------
    leto/jiemamy-commons/trunk/src/main/java/org/jiemamy/utils/ResultSetUtil.java


-------------- next part --------------
Modified: leto/jiemamy-commons/trunk/src/main/java/org/jiemamy/utils/ResultSetUtil.java
===================================================================
--- leto/jiemamy-commons/trunk/src/main/java/org/jiemamy/utils/ResultSetUtil.java	2009-04-14 13:33:25 UTC (rev 3274)
+++ leto/jiemamy-commons/trunk/src/main/java/org/jiemamy/utils/ResultSetUtil.java	2009-04-14 13:38:54 UTC (rev 3275)
@@ -23,12 +23,19 @@
 import java.sql.SQLException;
 
 /**
- * TODO for daisuke
+ * {@link ResultSet}のユーティリティクラス。
  * 
  * @author daisuke
  */
 public final class ResultSetUtil {
 	
+	/**
+	 * {@link ResultSet#getAsciiStream(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code null}
+	 */
 	public static InputStream getAsciiStream(ResultSet rs, String columnName) {
 		try {
 			return rs.getAsciiStream(columnName);
@@ -37,6 +44,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getBinaryStream(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code null}
+	 */
 	public static InputStream getBinaryStream(ResultSet rs, String columnName) {
 		try {
 			return rs.getAsciiStream(columnName);
@@ -45,6 +59,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getBoolean(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code false}
+	 */
 	public static boolean getBoolean(ResultSet rs, String columnName) {
 		try {
 			return rs.getBoolean(columnName);
@@ -53,6 +74,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getByte(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code 0}
+	 */
 	public static byte getByte(ResultSet rs, String columnName) {
 		try {
 			return rs.getByte(columnName);
@@ -61,6 +89,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getBytes(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は長さ0の配列
+	 */
 	public static byte[] getBytes(ResultSet rs, String columnName) {
 		try {
 			return rs.getBytes(columnName);
@@ -69,6 +104,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getDate(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code null}
+	 */
 	public static java.sql.Date getDate(ResultSet rs, String columnName) {
 		try {
 			return rs.getDate(columnName);
@@ -77,6 +119,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getDouble(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code 0}
+	 */
 	public static double getDouble(ResultSet rs, String columnName) {
 		try {
 			return rs.getDouble(columnName);
@@ -85,6 +134,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getFloat(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code 0}
+	 */
 	public static float getFloat(ResultSet rs, String columnName) {
 		try {
 			return rs.getFloat(columnName);
@@ -93,6 +149,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getInt(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code 0}
+	 */
 	public static int getInt(ResultSet rs, String columnName) {
 		try {
 			return rs.getInt(columnName);
@@ -101,6 +164,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getLong(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code 0}
+	 */
 	public static long getLong(ResultSet rs, String columnName) {
 		try {
 			return rs.getLong(columnName);
@@ -109,6 +179,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getShort(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code 0}
+	 */
 	public static short getShort(ResultSet rs, String columnName) {
 		try {
 			return rs.getShort(columnName);
@@ -117,6 +194,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getString(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code null}
+	 */
 	public static String getString(ResultSet rs, String columnName) {
 		try {
 			return rs.getString(columnName);
@@ -125,6 +209,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getTime(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code null}
+	 */
 	public static java.sql.Time getTime(ResultSet rs, String columnName) {
 		try {
 			return rs.getTime(columnName);
@@ -133,6 +224,13 @@
 		}
 	}
 	
+	/**
+	 * {@link ResultSet#getTimestamp(String)}の結果を取得する。
+	 * 
+	 * @param rs {@link ResultSet}
+	 * @param columnName カラム名
+	 * @return 結果. {@link SQLException}が発生した場合は{@code null}
+	 */
 	public static java.sql.Timestamp getTimestamp(ResultSet rs, String columnName) {
 		try {
 			return rs.getTimestamp(columnName);



Jiemamy-notify メーリングリストの案内
Back to archive index