01: package de.webman.form.db;
02:
03: import java.sql.Types;
04: import com.teamkonzept.webman.mainint.DatabaseDefaults;
05:
06: /**
07: * The Form Constants interface provides column names, column types,
08: * and constants used by the <CODE>FORM</CODE> table.
09: *
10: * @author $Author: uli $
11: * @version $Revision: 1.6 $
12: */
13: public interface FormConstants {
14:
15: // Constants.
16:
17: /**
18: * The <CODE>FORM_ID</CODE> column.
19: */
20: short FORM_ID = 0;
21:
22: /**
23: * The <CODE>FORM_TYPE</CODE> column.
24: */
25: short FORM_TYPE = 1;
26:
27: /**
28: * The <CODE>FORM_NAME</CODE> column.
29: */
30: short FORM_NAME = 2;
31:
32: /**
33: * The <CODE>FORM_DESCRIPTION</CODE> column.
34: */
35: short FORM_DESCRIPTION = 3;
36:
37: /**
38: * The <CODE>FORM_NAMESPACE</CODE> column.
39: */
40: short FORM_NAMESPACE = 4;
41:
42: /**
43: * The <CODE>FORM_GRAMMAR</CODE> column.
44: */
45: short FORM_GRAMMAR = 5;
46:
47: /**
48: * The column names.
49: */
50: String[] COLUMN_NAMES = { "FORM_ID", "FORM_TYPE", "FORM_NAME",
51: "FORM_DESCRIPTION", "FORM_NAMESPACE", "FORM_GRAMMAR" };
52:
53: /**
54: * The column types.
55: */
56: Integer[] COLUMN_TYPES = { new Integer(Types.INTEGER),
57: new Integer(Types.INTEGER), new Integer(Types.VARCHAR),
58: new Integer(Types.VARCHAR), new Integer(Types.VARCHAR),
59: new Integer(Types.CLOB) };
60:
61: /**
62: * The <CODE>FORM_FRAGMENT</CODE> form type.
63: */
64: Integer FORM_TYPE_FORM_FRAGMENT = new Integer(
65: DatabaseDefaults.FRAGMENT_FORM_TYPE);
66:
67: /**
68: * The <CODE>CONTENT_FORM</CODE> form type.
69: */
70: Integer FORM_TYPE_CONTENT_FORM = new Integer(
71: DatabaseDefaults.CONTENT_FORM_TYPE);
72:
73: /**
74: * The <CODE>STRUCTURE_FORM</CODE> form type.
75: */
76: Integer FORM_TYPE_STRUCTURE_FORM = new Integer(
77: DatabaseDefaults.STRUCTURE_FORM_TYPE);
78:
79: /**
80: * The <CODE>TEMPORARY_FORM</CODE> form type.
81: */
82: Integer FORM_TYPE_TEMPORARY_FORM = new Integer(
83: DatabaseDefaults.TEMP_CONTENT_FORM_TYPE);
84:
85: }
|