return name;
}
+ /**
+ * True if the type is Real (numeric and with decimal part) according to java.sql.Types
+ * @param type
+ * @return
+ */
+ public static boolean isReal(int type) {
+ return (type == DECIMAL || type == DOUBLE || type == FLOAT ||
+ type == NUMERIC || type == REAL );
+ }
+
+ /**
+ * True if the type is Numeric according to java.sql.Types
+ * @param type
+ * @return
+ */
+ public static boolean isNumeric(int type) {
+ return (type == DECIMAL || type == DOUBLE || type ==FLOAT ||
+ type == NUMERIC || type == REAL || type == BIGINT ||
+ type == TINYINT || type == SMALLINT || type == INTEGER );
+ }
+
+ /**
+ * True if the type is textual according to java.sql.Types
+ * @param type
+ * @return
+ */
+ public static boolean isText(int type) {
+ return ( type == CHAR || type == VARCHAR || type == LONGVARCHAR
+ || type == BINARY || type == VARBINARY || type == LONGVARBINARY
+ || type == CLOB || type == BLOB);
+ }
}