Source code: com/flexstor/common/constants/FieldConstantsI.java
1 /*
2 * FieldConstantsI.java
3 *
4 * Copyright $Date: 2003/08/11 02:22:32 $ FLEXSTOR.net Inc.
5 *
6 * This work is licensed for use and distribution under license terms found at
7 * http://www.flexstor.org/license.html
8 *
9 */
10
11 package com.flexstor.common.constants;
12
13 /**
14 * This is the client data object for state information
15 * pertaining to a field.
16 *
17 *
18 * @author Daniel J. Nickel 2/10/99
19 * @version $Id: FieldConstantsI.java,v 1.2 2003/08/11 02:22:32 aleric Exp $
20 * @since FlexDB 3.0
21 */
22
23 public interface FieldConstantsI
24 {
25 public static final String IDENTIFIER="$Id: FieldConstantsI.java,v 1.2 2003/08/11 02:22:32 aleric Exp $";
26
27 // Field Length Max
28 public static final int FIELD_LENGTH_MAX = 4000;
29
30 // This is for field data type
31 public static final int FIELD_TYPE_NUMBER = 0;
32 public static final int FIELD_TYPE_DATE = 1;
33 public static final int FIELD_TYPE_STRING = 2;
34 public static final int FIELD_TYPE_UNDEFINED = 3;
35 public static final int FIELD_TYPE_DATETIME = 4;
36 public static final int FIELD_TYPE_TIME = 5;
37
38 // Field entry types.
39 public static final int ENTRY_TYPE_TEXT_FIELD = 0;
40 public static final int ENTRY_TYPE_CHOICE = 1;
41 public static final int ENTRY_TYPE_UNDEFINED = 2;
42
43
44 // This is for case value
45 public static final int CASE_PROPER = 0;
46 public static final int CASE_LOWER = 1;
47 public static final int CASE_UPPER = 2;
48 public static final int CASE_NONE = 3;
49 public static final int CASE_UNDEFINED = 4;
50
51 /**
52 * Fixed formats for date/time fields coming from the database
53 * used for parsing into java.util.Date objects
54 * Characters are based on java.text.SimpleDateFormat.
55 *
56 * Field Type Format for Type
57 * DATE MM\DD\RRRR
58 * TIME HR24:MI:SS
59 * DATETIME MM\DD\RRRR HR24:MI:SS
60 */
61 public static final String FIELD_FMT_DATE = "MM/dd/yyyy";
62 public static final String FIELD_FMT_DATETIME = "MM/dd/yyyy HH:mm:ss";
63 public static final String FIELD_FMT_TIME = "HH:mm:ss";
64
65 // Constants for blank values in field lookup lists and MultiValueData objects.
66 public static final String DATA_NONE_VALUE = "";
67 public static final long DATA_NONE_ID = 0;
68 }
69