1 /*
2 * Copyright (c) 2002-2009, 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.actes.business.transaction;
35
36
37 /**
38 * This is the business class for the object Transaction
39 */
40 public class Transaction
41 {
42 public static final int STATUS_ERROR = -1;
43 public static final int STATUS_ANNULE = 0;
44 public static final int STATUS_POSTE = 1;
45 public static final int STATUS_EN_ATTENTE = 2;
46 public static final int STATUS_TRANSMIS = 3;
47 public static final int STATUS_ACQUITE = 4;
48 public static final int STATUS_VALIDE = 5;
49 public static final int STATUS_REFUSE = 6;
50
51 // Variables declarations
52 private int _nId;
53 private String _strCode;
54 private String _strNature;
55 private String _strClassification;
56 private String _strDateDecision;
57 private String _strNumeroInterne;
58 private String _strObjet;
59 private int _nStatus;
60
61 /**
62 * Returns the Transaction Id
63 * @return The Transaction Id
64 */
65 public int getId( )
66 {
67 return _nId;
68 }
69
70 /**
71 * Sets the Transaction Id
72 * @param nId The Transaction Id
73 */
74 public void setId( int nId )
75 {
76 _nId = nId;
77 }
78
79 /**
80 * Returns the Transaction Code
81 * @return The Transaction Code
82 */
83 public String getCode( )
84 {
85 return _strCode;
86 }
87
88 /**
89 * Sets the Transaction Code
90 * @param strCode The Transaction Code
91 */
92 public void setCode( String strCode )
93 {
94 _strCode = strCode;
95 }
96
97 /**
98 * Returns the Nature
99 * @return The Nature
100 */
101 public String getNature( )
102 {
103 return _strNature;
104 }
105
106 /**
107 * Sets the Nature
108 * @param strNature The Nature
109 */
110 public void setNature( String strNature )
111 {
112 _strNature = strNature;
113 }
114
115 /**
116 * Returns the Classification
117 * @return The Classification
118 */
119 public String getClassification( )
120 {
121 return _strClassification;
122 }
123
124 /**
125 * Sets the Classification
126 * @param strClassification The Classification
127 */
128 public void setClassification( String strClassification )
129 {
130 _strClassification = strClassification;
131 }
132
133 /**
134 * Returns the DateDecision
135 * @return The DateDecision
136 */
137 public String getDateDecision( )
138 {
139 return _strDateDecision;
140 }
141
142 /**
143 * Sets the DateDecision
144 * @param strDateDecision The DateDecision
145 */
146 public void setDateDecision( String strDateDecision )
147 {
148 _strDateDecision = strDateDecision;
149 }
150
151 /**
152 * Returns the NumeroInterne
153 * @return The NumeroInterne
154 */
155 public String getNumeroInterne( )
156 {
157 return _strNumeroInterne;
158 }
159
160 /**
161 * Sets the NumeroInterne
162 * @param strNumeroInterne The NumeroInterne
163 */
164 public void setNumeroInterne( String strNumeroInterne )
165 {
166 _strNumeroInterne = strNumeroInterne;
167 }
168
169 /**
170 * Returns the Objet
171 * @return The Objet
172 */
173 public String getObjet( )
174 {
175 return _strObjet;
176 }
177
178 /**
179 * Sets the Objet
180 * @param strObjet The Objet
181 */
182 public void setObjet( String strObjet )
183 {
184 _strObjet = strObjet;
185 }
186
187 /**
188 * Returns the Status
189 * @return The Status
190 */
191 public int getStatus( )
192 {
193 return _nStatus;
194 }
195
196 /**
197 * Sets the Status
198 * @param nStatus The Status
199 */
200 public void setStatus( int nStatus )
201 {
202 _nStatus = nStatus;
203 }
204 }