home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / inprise / JSAMPLES.Z / DataLayout.java < prev    next >
Text File  |  1998-05-08  |  3KB  |  61 lines

  1. /*
  2.  * Copyright (c) 1997-1998 Borland International, Inc. All Rights Reserved.
  3.  * 
  4.  * This SOURCE CODE FILE, which has been provided by Borland as part
  5.  * of a Borland product for use ONLY by licensed users of the product,
  6.  * includes CONFIDENTIAL and PROPRIETARY information of Borland.  
  7.  *
  8.  * USE OF THIS SOFTWARE IS GOVERNED BY THE TERMS AND CONDITIONS 
  9.  * OF THE LICENSE STATEMENT AND LIMITED WARRANTY FURNISHED WITH
  10.  * THE PRODUCT.
  11.  *
  12.  * IN PARTICULAR, YOU WILL INDEMNIFY AND HOLD BORLAND, ITS RELATED
  13.  * COMPANIES AND ITS SUPPLIERS, HARMLESS FROM AND AGAINST ANY CLAIMS
  14.  * OR LIABILITIES ARISING OUT OF THE USE, REPRODUCTION, OR DISTRIBUTION
  15.  * OF YOUR PROGRAMS, INCLUDING ANY CLAIMS OR LIABILITIES ARISING OUT OF
  16.  * OR RESULTING FROM THE USE, MODIFICATION, OR DISTRIBUTION OF PROGRAMS
  17.  * OR FILES CREATED FROM, BASED ON, AND/OR DERIVED FROM THIS SOURCE
  18.  * CODE FILE.
  19.  */
  20.  
  21.  
  22. package borland.samples.tutorial.dataset.providers;
  23.  
  24. import borland.jbcl.util.Variant;
  25.  
  26. // interface DataLayout
  27. //   Contains column definitions of "data.txt".
  28. //
  29. interface DataLayout {
  30.   static final int      COLUMN_COUNT    = 6;
  31.   static final int[]    COLUMN_WIDTHS   = {  6,
  32.                                              9,
  33.                                             12,
  34.                                             18,
  35.                                              4,
  36.                                              9 };
  37.                                             
  38.   static final String[] COLUMN_NAMES    = { "ID",
  39.                                             "Brand",
  40.                                             "Sport",
  41.                                             "Model",
  42.                                             "Year",
  43.                                             "Price" };
  44.                                            
  45.   static final String[] COLUMN_CAPTIONS = { "ID",
  46.                                             "Brand",
  47.                                             "Kind of Sport",
  48.                                             "Model",
  49.                                             "Year of Purchase",
  50.                                             "Original Price" };
  51.                                            
  52.   static final int[]    COLUMN_TYPES    = { Variant.INT,
  53.                                             Variant.STRING, 
  54.                                             Variant.STRING, 
  55.                                             Variant.STRING, 
  56.                                             Variant.INT, 
  57.                                             Variant.BIGDECIMAL };
  58.  
  59.   static final String   ROWID_NAME      = COLUMN_NAMES[0];
  60. }
  61.