src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/AdbaType.java
branchJDK-8188051-branch
changeset 56824 62e92191354d
parent 56797 fb523d4d9185
child 56997 c9cbac2979fb
equal deleted inserted replaced
56823:6ba0dbf6a75f 56824:62e92191354d
   202 
   202 
   203     /**
   203     /**
   204      * Identifies the generic SQL type {@code TIMESTAMP WITH TIME ZONE}.
   204      * Identifies the generic SQL type {@code TIMESTAMP WITH TIME ZONE}.
   205      */
   205      */
   206     TIMESTAMP_WITH_TIME_ZONE(OffsetDateTime.class);
   206     TIMESTAMP_WITH_TIME_ZONE(OffsetDateTime.class);
       
   207     
       
   208   private static final String STANDARD_VENDOR = "jdk.incubator.sql2";
   207 
   209 
   208   protected final Class javaType;
   210   protected final Class javaType;
   209   
   211   
   210   AdbaType(Class type) {
   212   AdbaType(Class type) {
   211     javaType = type;
   213     javaType = type;
   221   }
   223   }
   222 
   224 
   223     /**
   225     /**
   224      * Returns the name of the vendor that supports this data type.
   226      * Returns the name of the vendor that supports this data type.
   225      * @return  The name of the vendor for this data type which is
   227      * @return  The name of the vendor for this data type which is
   226      * {@literal java.sql} for ABDAType.
   228      * the package name containing this type.
   227      */
   229      */
   228   @Override
   230   @Override
   229   public String getVendor() {
   231   public String getVendor() {
   230     throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   232     return STANDARD_VENDOR;
   231   }
   233   }
   232 
   234 
   233     /**
   235     /**
   234      * Returns the vendor specific type number for the data type.
   236      * Returns the vendor specific type number for the data type.
   235      * @return  An Integer representing the data type. For {@code ABDAType},
   237      * @return  An Integer representing the data type. For {@code ABDAType},
   236      * the value will be the same value as in {@code Types} for the data type.
   238      * the value will be the same value as in {@code Types} for the data type.
   237      */
   239      */
   238   @Override
   240   @Override
   239   public Integer getVendorTypeNumber() {
       
   240     throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
       
   241   }
       
   242   
       
   243   @Override
       
   244   public <T> Class<T> getJavaType() {
   241   public <T> Class<T> getJavaType() {
   245     return javaType;
   242     return javaType;
   246   }
   243   }
   247   
   244   
   248 }
   245 }