01: package simpleorm.examples;
02:
03: import simpleorm.core.*;
04:
05: /** This test class defines the Department table */
06: public class Department extends SRecordInstance {
07:
08: public static final SRecordMeta meta = new SRecordMeta(
09: Department.class, "XX_DEPARTMENT");
10: // ie. SRecord objects describe SRecordInstances
11:
12: public static final SFieldString DEPT_ID = new SFieldString(meta,
13: "DEPT_ID", 10, SCon.SFD_PRIMARY_KEY);
14:
15: public static final SFieldString NAME = new SFieldString(meta,
16: "NAME", 40, SCon.SFD_DESCRIPTIVE);
17:
18: public static final SFieldString MISSION = new SFieldString(meta,
19: "Mission", 40); // Mixed case column name
20:
21: public static final SFieldDouble BUDGET = new SFieldDouble(meta,
22: "BUDGET");
23:
24: public static final SFieldDouble MAX_SALARY = new SFieldDouble(
25: meta, "MAX_SALARY");
26:
27: public SRecordMeta getMeta() {
28: return meta;
29: }; // specializes abstract method
30: }
|