--- a/src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/AdbaType.java Mon Apr 02 15:52:50 2018 -0400
+++ b/src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/AdbaType.java Fri Apr 06 17:01:04 2018 -0400
@@ -26,227 +26,204 @@
package jdk.incubator.sql2;
/**
- * Remove dependence on java.sql.
+ * <P>Defines the constants that are used to identify generic
+ * SQL types, called JDBC types.
+ *
+ * @see SqlType
+ * @since 1.8
*/
public enum AdbaType implements SqlType {
-
- /**
- *
- */
- ARRAY,
-
- /**
- *
- */
- BIGINT,
-
- /**
- *
- */
- BINARY,
-
- /**
- *
- */
- BIT,
-
- /**
- *
- */
- BOOLEAN,
-
- /**
- *
- */
- CHAR,
-
- /**
- *
- */
- CLOB,
-
- /**
- *
- */
- CURSOR,
-
- /**
- *
- */
- DATALINK,
-
- /**
- *
- */
- DATE,
-
- /**
- *
- */
- DECIMAL,
-
- /**
- *
- */
- DISTINCT,
-
- /**
- *
- */
- DOUBLE,
-
- /**
- *
- */
- FLOAT,
-
- /**
- *
- */
- INTEGER,
-
- /**
- *
- */
- JAVA_OBJECT,
-
- /**
- *
- */
- LONGNVARCHAR,
-
- /**
- *
- */
- LONGVARBINARY,
-
- /**
- *
- */
- LONGVARCHAR,
+
+ /**
+ * Identifies the generic SQL type {@code BIT}.
+ */
+ BIT,
+ /**
+ * Identifies the generic SQL type {@code TINYINT}.
+ */
+ TINYINT,
+ /**
+ * Identifies the generic SQL type {@code SMALLINT}.
+ */
+ SMALLINT,
+ /**
+ * Identifies the generic SQL type {@code INTEGER}.
+ */
+ INTEGER,
+ /**
+ * Identifies the generic SQL type {@code BIGINT}.
+ */
+ BIGINT,
+ /**
+ * Identifies the generic SQL type {@code FLOAT}.
+ */
+ FLOAT,
+ /**
+ * Identifies the generic SQL type {@code REAL}.
+ */
+ REAL,
+ /**
+ * Identifies the generic SQL type {@code DOUBLE}.
+ */
+ DOUBLE,
+ /**
+ * Identifies the generic SQL type {@code NUMERIC}.
+ */
+ NUMERIC,
+ /**
+ * Identifies the generic SQL type {@code DECIMAL}.
+ */
+ DECIMAL,
+ /**
+ * Identifies the generic SQL type {@code CHAR}.
+ */
+ CHAR,
+ /**
+ * Identifies the generic SQL type {@code VARCHAR}.
+ */
+ VARCHAR,
+ /**
+ * Identifies the generic SQL type {@code LONGVARCHAR}.
+ */
+ LONGVARCHAR,
+ /**
+ * Identifies the generic SQL type {@code DATE}.
+ */
+ DATE,
+ /**
+ * Identifies the generic SQL type {@code TIME}.
+ */
+ TIME,
+ /**
+ * Identifies the generic SQL type {@code TIMESTAMP}.
+ */
+ TIMESTAMP,
+ /**
+ * Identifies the generic SQL type {@code BINARY}.
+ */
+ BINARY,
+ /**
+ * Identifies the generic SQL type {@code VARBINARY}.
+ */
+ VARBINARY,
+ /**
+ * Identifies the generic SQL type {@code LONGVARBINARY}.
+ */
+ LONGVARBINARY,
+ /**
+ * Identifies the generic SQL value {@code NULL}.
+ */
+ NULL,
+ /**
+ * Indicates that the SQL type
+ * is database-specific and gets mapped to a Java object that can be
+ * accessed via the methods getObject and setObject.
+ */
+ OTHER,
+ /**
+ * Indicates that the SQL type
+ * is database-specific and gets mapped to a Java object that can be
+ * accessed via the methods getObject and setObject.
+ */
+ JAVA_OBJECT,
+ /**
+ * Identifies the generic SQL type {@code DISTINCT}.
+ */
+ DISTINCT,
+ /**
+ * Identifies the generic SQL type {@code STRUCT}.
+ */
+ STRUCT,
+ /**
+ * Identifies the generic SQL type {@code ARRAY}.
+ */
+ ARRAY,
+ /**
+ * Identifies the generic SQL type {@code BLOB}.
+ */
+ BLOB,
+ /**
+ * Identifies the generic SQL type {@code CLOB}.
+ */
+ CLOB,
+ /**
+ * Identifies the generic SQL type {@code REF}.
+ */
+ REF,
+ /**
+ * Identifies the generic SQL type {@code DATALINK}.
+ */
+ DATALINK,
+ /**
+ * Identifies the generic SQL type {@code BOOLEAN}.
+ */
+ BOOLEAN,
- /**
- *
- */
- NCHAR,
-
- /**
- *
- */
- NCLOB,
-
- /**
- *
- */
- NULL,
-
- /**
- *
- */
- NUMERIC,
-
- /**
- *
- */
- NVARCHAR,
-
- /**
- *
- */
- OTHER,
-
- /**
- *
- */
- REAL,
-
- /**
- *
- */
- REF,
-
- /**
- *
- */
- REF_CURSOR,
-
- /**
- *
- */
- ROWID,
+ /**
+ * Identifies the SQL type {@code ROWID}.
+ */
+ ROWID,
+ /**
+ * Identifies the generic SQL type {@code NCHAR}.
+ */
+ NCHAR,
+ /**
+ * Identifies the generic SQL type {@code NVARCHAR}.
+ */
+ NVARCHAR,
+ /**
+ * Identifies the generic SQL type {@code LONGNVARCHAR}.
+ */
+ LONGNVARCHAR,
+ /**
+ * Identifies the generic SQL type {@code NCLOB}.
+ */
+ NCLOB,
+ /**
+ * Identifies the generic SQL type {@code SQLXML}.
+ */
+ SQLXML,
- /**
- *
- */
- SMALLINT,
-
- /**
- *
- */
- SQLXML,
+ /**
+ * Identifies the generic SQL type {@code REF_CURSOR}.
+ */
+ REF_CURSOR,
- /**
- *
- */
- STRUCT,
-
- /**
- *
- */
- TIME,
-
- /**
- *
- */
- TIMESTAMP,
+ /**
+ * Identifies the generic SQL type {@code TIME_WITH_TIMEZONE}.
+ */
+ TIME_WITH_TIMEZONE,
- /**
- *
- */
- TIME_WITH_TIME_ZONE,
-
- /**
- *
- */
- TIMESTAMP_WITH_TIME_ZONE,
-
- /**
- *
- */
- TINYINT,
+ /**
+ * Identifies the generic SQL type {@code TIMESTAMP_WITH_TIMEZONE}.
+ */
+ TIMESTAMP_WITH_TIMEZONE;
- /**
- *
- */
- VARBINARY,
-
- /**
- *
- */
- VARCHAR;
-
- /**
- *
- * @return
- */
+
+ /**
+ *{@inheritDoc }
+ * @return The name of this {@code SQLType}.
+ */
@Override
public String getName() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
- /**
- *
- * @return
- */
+ /**
+ * Returns the name of the vendor that supports this data type.
+ * @return The name of the vendor for this data type which is
+ * {@literal java.sql} for ABDAType.
+ */
@Override
public String getVendor() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
- /**
- *
- * @return
- */
+ /**
+ * Returns the vendor specific type number for the data type.
+ * @return An Integer representing the data type. For {@code ABDAType},
+ * the value will be the same value as in {@code Types} for the data type.
+ */
@Override
public Integer getVendorTypeNumber() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.