コード例 #1
0
 /** INTERNAL: Returns true if the given class is a valid clob type. */
 public static boolean isValidClobType(MetadataClass cls) {
   return cls.equals(char[].class)
       || cls.equals(String.class)
       || cls.equals(Character[].class)
       || cls.equals(java.sql.Clob.class);
 }
コード例 #2
0
 /** INTERNAL: Returns true if the given class is a valid blob type. */
 public static boolean isValidBlobType(MetadataClass cls) {
   return cls.equals(byte[].class) || cls.equals(Byte[].class) || cls.equals(java.sql.Blob.class);
 }