src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/SqlType.java
branchJDK-8188051-branch
changeset 56797 fb523d4d9185
parent 56397 729f80d0cf31
child 56824 62e92191354d
--- a/src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/SqlType.java	Wed Jun 20 15:12:52 2018 -0400
+++ b/src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/SqlType.java	Wed Jun 20 15:38:40 2018 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c)  2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c)  2017, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,32 +26,31 @@
 package jdk.incubator.sql2;
 
 /**
- * An object that is used to identify a generic SQL type, called a JDBC type or
- * a vendor specific data type.
- *
- * @since 1.8
+ * Remove dependence on java.sql.
  */
 public interface SqlType {
 
-    /**
-     * Returns the {@code SQLType} name that represents a SQL data type.
-     *
-     * @return The name of this {@code SQLType}.
-     */
+  /**
+   *
+   * @return
+   */
   public String getName();
 
-    /**
-     * Returns the name of the vendor that supports this data type. The value
-     * returned typically is the package name for this vendor.
-     *
-     * @return The name of the vendor for this data type
-     */
+  /**
+   *
+   * @return
+   */
   public String getVendor();
 
-    /**
-     * Returns the vendor specific type number for the data type.
-     *
-     * @return An Integer representing the vendor specific data type
-     */
+  /**
+   *
+   * @return
+   */
   public Integer getVendorTypeNumber();
+  
+  /**
+   * 
+   * @return Java type
+   */
+  public <T> Class<T> getJavaType();
 }