Code example for SQLException

0
  public SimpleTypeInfo buildSimpleTypeInfo(Connection con, String typeOwner, String typeName, int precision, int scale)
      throws SQLException 
  { 
    if(!isSimpleType(con, typeOwner, typeName))
    { 
      throw new SQLException("Not a simple type. (" + typeName + ")");
    } 
    return new SimpleTypeInfo(typeName, precision, scale);
  } 
 
  // Collections 
  public boolean isCollectionType(Connection con, String ownerName, String typeName)
      throws SQLException 
  { 
    PreparedStatement stmt = null;
    ResultSet rs = null;
    try 
    { 
      // Query to see if  collection type information exists for this collection type 
      stmt = con.prepareStatement("SELECT 1 FROM ALL_COLL_TYPES " +