01: package de.webman.form.db;
02:
03: import java.sql.Types;
04:
05: /**
06: * The Field Constants interface provides column names, and column
07: * types used by the <CODE>FIELD</CODE> table.
08: *
09: * @author $Author: uli $
10: * @version $Revision: 1.2 $
11: */
12: public interface FieldConstants {
13:
14: // Constants.
15:
16: /**
17: * The <CODE>FIELD_ID</CODE> column.
18: */
19: short FIELD_ID = 0;
20:
21: /**
22: * The <CODE>FORM_ID</CODE> column.
23: */
24: short FORM_ID = 1;
25:
26: /**
27: * The <CODE>FIELD_TYPE</CODE> column.
28: */
29: short FIELD_TYPE = 2;
30:
31: /**
32: * The <CODE>FIELD_NAME</CODE> column.
33: */
34: short FIELD_NAME = 3;
35:
36: /**
37: * The <CODE>FIELD_SHOW_NAME</CODE> column.
38: */
39: short FIELD_SHOW_NAME = 4;
40:
41: /**
42: * The column names.
43: */
44: String[] COLUMN_NAMES = { "FIELD_ID", "FORM_ID", "FIELD_TYPE",
45: "FIELD_NAME", "FIELD_SHOW_NAME" };
46:
47: /**
48: * The column types.
49: */
50: Integer[] COLUMN_TYPES = { new Integer(Types.INTEGER),
51: new Integer(Types.INTEGER), new Integer(Types.VARCHAR),
52: new Integer(Types.VARCHAR), new Integer(Types.VARCHAR) };
53:
54: }
|