/Users/lyon/j4p/src/net/server/servlets/FormCDataColumns.java

1    package net.server.servlets; 
2     
3    /** 
4     *  FormCDataColumns Inteface 
5     */ 
6     
7    public interface FormCDataColumns { 
8     
9        /** 
10        * CSV File Columns 
11        */ 
12    
13       static final int COURSE_NO = 1; 
14       static final int SECTION = 2; 
15       static final int TERM = 4; 
16       static final int YEAR = 5; 
17       static final int COURSE_NAME = 7; 
18       static final int INSTR = 8; 
19       static final int INSTR_NAME = 9; 
20       static final int STUDENT_ID = 12; 
21       static final int FIRST_NAME = 15; 
22       static final int MIDDLE_NAME = 16; 
23       static final int LAST_NAME = 17; 
24    
25    
26       /** 
27        * Selected fields order from CSV File 
28        */ 
29    
30       static final int IND_TERM = 0; 
31       static final int IND_COURSE_NO = 1; 
32       static final int IND_COURSE_NAME = 2; 
33       static final int IND_SECTION = 3; 
34       static final int IND_YEAR = 4; 
35       static final int IND_INSTR = 5; 
36       static final int IND_INSTR_NAME = 6; 
37       static final int IND_STUDENT_ID = 7; 
38       static final int IND_FIRST_NAME = 8; 
39       static final int IND_MIDDLE_NAME = 9; 
40       static final int IND_LAST_NAME = 10; 
41    
42       /** 
43        * Course Key array column order 
44        */ 
45    
46       static final int COURSE_KEY = 0; 
47       static final int COURSE_KEY_TERM = 1; 
48       static final int COURSE_KEY_COURSE_NO = 2; 
49       static final int COURSE_KEY_COURSE_NAME = 3; 
50       static final int COURSE_KEY_SECTION = 4; 
51       static final int COURSE_KEY_YEAR = 5; 
52       static final int COURSE_KEY_INSTR = 6; 
53    
54       /** 
55        * Students array column order 
56        */ 
57    
58       static final int S_STUDENT_ID = 0; 
59       static final int S_STUDENT_NAME = 1; 
60    
61       static final int STUDENTS_ARRAY_SIZE = 2; 
62       static final int COURSE_KEY_ARRAY_SIZE = 7; 
63    
64       /** 
65        * Column order for Line Consumer 
66        */ 
67    
68       static final int columnOrder[] = {TERM, 
69                                         COURSE_NO, 
70                                         COURSE_NAME, 
71                                         SECTION, 
72                                         YEAR, 
73                                         INSTR, 
74                                         INSTR_NAME, 
75                                         STUDENT_ID, 
76                                         FIRST_NAME, 
77                                         MIDDLE_NAME, 
78                                         LAST_NAME}; 
79    
80    
81   } 
82