View Javadoc
1   /*
2    * Copyright (c) 2002-2017, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.adminsql.business;
35  
36  
37  /**
38   * Creates a new instance of Field
39   */
40  public class Field
41  {
42      /** Creates a new instance of Row */
43  
44      // Variables declarations 
45      private String _strFieldName;
46      private String _strTypeValue;
47      private String _strLabelTypeValue;
48      private String _strLengthTypeValue;
49      private String _strLabelNullValue;
50      private String _strLabelKeyValue;
51      private String _strDefaultValue;
52      private String _strCommentValue;
53      private String _strAfterTheField;
54      private int _nIdFieldName;
55      private int _nIdTypeValue;
56      private int _nIdNullValue;
57      private int _nIdKeyValue;
58      private int _nFieldEndOfTable;
59      private int _nFieldBeginningOfTable;
60      private int _nFieldAfterAField;
61      private int _nPlaceOfField;
62  
63      /**
64       * Returns the idFieldName
65       * @return The idFieldName
66       */
67      public int getIdFieldName(  )
68      {
69          return _nIdFieldName;
70      }
71  
72      /**
73       * Sets the idFieldName
74       * @param nIdFieldName set the id field name
75       */
76      public void setIdFieldName( int nIdFieldName )
77      {
78          _nIdFieldName = nIdFieldName;
79      }
80  
81      /**
82       * Get the field name
83       * @return the field name
84       */
85      public String getFieldName(  )
86      {
87          return _strFieldName;
88      }
89  
90      /**
91       * Sets the field name
92       * @param strFieldName the name of the field
93       */
94      public void setFieldName( String strFieldName )
95      {
96          _strFieldName = strFieldName;
97      }
98  
99      /**
100      * Returns the TypeValue
101      * @return The TypeValue
102      */
103     public String getTypeValue(  )
104     {
105         return _strTypeValue;
106     }
107 
108     /**
109      * Sets the TypeValue
110      * @param strTypeValue The TypeValue
111      */
112     public void setTypeValue( String strTypeValue )
113     {
114         _strTypeValue = strTypeValue;
115     }
116 
117     /**
118         * Returns the TypeValue
119         * @return The TypeValue
120         */
121     public String getLabelTypeValue(  )
122     {
123         return _strLabelTypeValue;
124     }
125 
126     /**
127      * Sets the TypeValue
128      * @param strLabelTypeValue set the label type value
129      */
130     public void setLabelTypeValue( String strLabelTypeValue )
131     {
132         _strLabelTypeValue = strLabelTypeValue;
133     }
134 
135     /**
136      * Get the length of the type
137      * @return get the length of the type
138      */
139     public String getLengthTypeValue(  )
140     {
141         return _strLengthTypeValue;
142     }
143 
144     /**
145      * Sets the TypeValue
146      * @param strLengthTypeValue set the length of the type value
147      */
148     public void setLengthTypeValue( String strLengthTypeValue )
149     {
150         _strLengthTypeValue = strLengthTypeValue;
151     }
152 
153     /**
154      * Returns the NullValue
155      * @return The NullValue
156      */
157     public String getLabelNullValue(  )
158     {
159         return _strLabelNullValue;
160     }
161 
162     /**
163      * Sets the NullValue
164      * @param strLabelNullValue set the label of the null value
165      */
166     public void setLabelNullValue( String strLabelNullValue )
167     {
168         _strLabelNullValue = strLabelNullValue;
169     }
170 
171     /**
172      * Returns the KeyValue
173      * @return The KeyValue
174      */
175     public String getLabelKeyValue(  )
176     {
177         return _strLabelKeyValue;
178     }
179 
180     /**
181      * Sets the KeyValue
182      * @param strLabelKeyValue set the label of the key value
183      */
184     public void setLabelKeyValue( String strLabelKeyValue )
185     {
186         _strLabelKeyValue = strLabelKeyValue;
187     }
188 
189     /**
190      * Returns the DefaultValue
191      * @return The DefaultValue
192      */
193     public String getDefaultValue(  )
194     {
195         return _strDefaultValue;
196     }
197 
198     /**
199      * Sets the DefaultValue
200      * @param strDefaultValue the dafault value
201      */
202     public void setDefaultValue( String strDefaultValue )
203     {
204         _strDefaultValue = strDefaultValue;
205     }
206 
207     /**
208      * Get id type value
209      * @return id type value
210      */
211     public int getIdTypeValue(  )
212     {
213         return _nIdTypeValue;
214     }
215 
216     /**
217      * Sets id type value
218      * @param nIdTypeValue set the id of the type value
219      */
220     public void setIdTypeValue( int nIdTypeValue )
221     {
222         _nIdTypeValue = nIdTypeValue;
223     }
224 
225     /**
226      * Gets id null value
227      * @return id null value
228      */
229     public int getIdNullValue(  )
230     {
231         return _nIdNullValue;
232     }
233 
234     /**
235      * Sets id null value
236      * @param nIdNullValue the id null value
237      */
238     public void setIdNullValue( int nIdNullValue )
239     {
240         _nIdNullValue = nIdNullValue;
241     }
242 
243     /**
244      * Gets the id key value
245      * @return id key vallue
246      */
247     public int getIdKeyValue(  )
248     {
249         return _nIdKeyValue;
250     }
251 
252     /**
253      * Sets the id key value
254      * @param nIdKeyValue id key value
255      */
256     public void setIdKeyValue( int nIdKeyValue )
257     {
258         _nIdKeyValue = nIdKeyValue;
259     }
260     
261     /**
262      * Gets the end of table field
263      * @return the end of table field
264      */
265     public int getFieldEndOfTable(  )
266     {
267         return _nFieldEndOfTable;
268     }
269 
270     /**
271      * Sets the end of table field
272      * @param nFieldEndOfTable the end of table field
273      */
274     public void setFieldEndOfTable( int nFieldEndOfTable )
275     {
276         _nFieldEndOfTable = nFieldEndOfTable;
277     }
278 
279     /**
280      * Gets the beginning of table field
281      * @return the beginning of table field
282      */
283     public int getFieldBeginningOfTable(  )
284     {
285         return _nFieldBeginningOfTable;
286     }
287 
288     /**
289      * Sets the beginning of table field
290      * @param nFieldBeginningOfTable the beginning of table field
291      */
292     public void setFieldBeginningOfTable( int nFieldBeginningOfTable )
293     {
294         _nFieldBeginningOfTable = nFieldBeginningOfTable;
295     }
296 
297     /**
298      * Gets the field after a field
299      * @return a field name
300      */
301     public int getFieldAfterAField(  )
302     {
303         return _nFieldAfterAField;
304     }
305 
306     /**
307      * Sets a field after a field
308      * @param nFieldAfterAField a field
309      */
310     public void setFieldAfterAField( int nFieldAfterAField )
311     {
312         _nFieldAfterAField = nFieldAfterAField;
313     }
314 
315     /**
316      * Gets place of field
317      * @return place of field
318      */
319     public int getPlaceOfField(  )
320     {
321         return _nPlaceOfField;
322     }
323 
324     /**
325      * Sets place of field
326      * @param nPlaceOfField id place of field
327      */
328     public void setPlaceOfField( int nPlaceOfField )
329     {
330         _nPlaceOfField = nPlaceOfField;
331     }
332 
333     /**
334      * Gets after the field
335      * @return the field before
336      */
337     public String getAfterTheField(  )
338     {
339         return _strAfterTheField;
340     }
341 
342     /**
343      * Sets the field before the insertion
344      * @param strAfterTheField the field before the insertion
345      */
346     public void setAfterTheField( String strAfterTheField )
347     {
348         _strAfterTheField = strAfterTheField;
349     }
350 }