1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.dbforms.taglib;
25
26 import org.dbforms.config.ResultSetVector;
27
28 import java.util.Map;
29
30
31
32 /***
33 * This is the context of the dbform tag. Used as TEI class element. In the
34 * pagecontext is holded a map named dbform with name of form as key and this
35 * context as object.
36 *
37 * @author Henner Kollmann
38 */
39 public class DbFormContext {
40 private Map currentRow;
41 private Map searchFieldAlgorithmNames;
42 private Map searchFieldModeNames;
43 private Map searchFieldNames;
44 private ResultSetVector rsv;
45 private String position;
46
47 /***
48 * Creates a new DbFormContext object.
49 *
50 * @param searchFieldNames DOCUMENT ME!
51 * @param searchFieldModeNames DOCUMENT ME!
52 * @param searchFieldAlgorithmNames DOCUMENT ME!
53 * @param rsv DOCUMENT ME!
54 */
55 public DbFormContext(Map searchFieldNames,
56 Map searchFieldModeNames,
57 Map searchFieldAlgorithmNames,
58 ResultSetVector rsv) {
59 this.searchFieldNames = searchFieldNames;
60 this.searchFieldModeNames = searchFieldModeNames;
61 this.searchFieldAlgorithmNames = searchFieldAlgorithmNames;
62 this.rsv = rsv;
63 }
64
65 /***
66 * DOCUMENT ME!
67 *
68 * @param map
69 */
70 public void setCurrentRow(Map map) {
71 currentRow = map;
72 }
73
74
75 /***
76 * DOCUMENT ME!
77 *
78 * @return
79 */
80 public Map getCurrentRow() {
81 return currentRow;
82 }
83
84
85 /***
86 * DOCUMENT ME!
87 *
88 * @param string
89 */
90 public void setPosition(String string) {
91 position = string;
92 }
93
94
95 /***
96 * DOCUMENT ME!
97 *
98 * @return
99 */
100 public String getPosition() {
101 return position;
102 }
103
104
105 /***
106 * DOCUMENT ME!
107 *
108 * @return
109 */
110 public ResultSetVector getRsv() {
111 return rsv;
112 }
113
114
115 /***
116 * DOCUMENT ME!
117 *
118 * @return
119 */
120 public Map getSearchFieldAlgorithmNames() {
121 return searchFieldAlgorithmNames;
122 }
123
124
125 /***
126 * DOCUMENT ME!
127 *
128 * @return
129 */
130 public Map getSearchFieldModeNames() {
131 return searchFieldModeNames;
132 }
133
134
135 /***
136 * DOCUMENT ME!
137 *
138 * @return
139 */
140 public Map getSearchFieldNames() {
141 return searchFieldNames;
142 }
143 }