home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / Types.java < prev    next >
Text File  |  1997-05-20  |  2KB  |  69 lines

  1. /*
  2.  * @(#)Types.java    1.4 96/11/23
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. package java.sql;
  24.  
  25. /**
  26.  * <P>This class defines constants that are used to identify SQL types.
  27.  * The actual type constant values are equivalent to those in XOPEN.
  28.  *
  29.  */
  30. public class Types {
  31.  
  32.     public final static int BIT         =  -7;
  33.     public final static int TINYINT     =  -6;
  34.     public final static int SMALLINT    =   5;
  35.     public final static int INTEGER     =   4;
  36.     public final static int BIGINT         =  -5;
  37.  
  38.     public final static int FLOAT         =   6;
  39.     public final static int REAL         =   7;
  40.     public final static int DOUBLE         =   8;
  41.  
  42.     public final static int NUMERIC     =   2;
  43.     public final static int DECIMAL        =   3;
  44.  
  45.     public final static int CHAR        =   1;
  46.     public final static int VARCHAR     =  12;
  47.     public final static int LONGVARCHAR     =  -1;
  48.  
  49.     public final static int DATE         =  91;
  50.     public final static int TIME         =  92;
  51.     public final static int TIMESTAMP     =  93;
  52.  
  53.     public final static int BINARY        =  -2;
  54.     public final static int VARBINARY     =  -3;
  55.     public final static int LONGVARBINARY     =  -4;
  56.  
  57.     public final static int NULL        =   0;
  58.  
  59.     /**
  60.      * OTHER indicates that the SQL type is database specific and
  61.      * gets mapped to a Java object which can be accessed via
  62.      * getObject and setObject.
  63.      */
  64.     public final static int OTHER        = 1111;
  65.  
  66.     // Prevent instantiation
  67.     private Types() {}
  68. }
  69.