FaturamentoAtividade.java
8.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
/*
* Copyright (C) 2007-2007 the GSAN - Sistema Integrado de Gestão de Serviços de Saneamento
*
* This file is part of GSAN, an integrated service management system for Sanitation
*
* GSAN is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
* GSAN is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
/*
* GSAN - Sistema Integrado de Gestão de Serviços de Saneamento
* Copyright (C) <2007>
* Adriano Britto Siqueira
* Alexandre Santos Cabral
* Ana Carolina Alves Breda
* Ana Maria Andrade Cavalcante
* Aryed Lins de Araújo
* Bruno Leonardo Rodrigues Barros
* Carlos Elmano Rodrigues Ferreira
* Cláudio de Andrade Lira
* Denys Guimarães Guenes Tavares
* Eduardo Breckenfeld da Rosa Borges
* Fabíola Gomes de Araújo
* Flávio Leonardo Cavalcanti Cordeiro
* Francisco do Nascimento Júnior
* Homero Sampaio Cavalcanti
* Ivan Sérgio da Silva Júnior
* José Edmar de Siqueira
* José Thiago Tenório Lopes
* Kássia Regina Silvestre de Albuquerque
* Leonardo Luiz Vieira da Silva
* Márcio Roberto Batista da Silva
* Maria de Fátima Sampaio Leite
* Micaela Maria Coelho de Araújo
* Nelson Mendonça de Carvalho
* Newton Morais e Silva
* Pedro Alexandre Santos da Silva Filho
* Rafael Corrêa Lima e Silva
* Rafael Francisco Pinto
* Rafael Koury Monteiro
* Rafael Palermo de Araújo
* Raphael Veras Rossiter
* Roberto Sobreira Barbalho
* Rodrigo Avellar Silveira
* Rosana Carvalho Barbosa
* Sávio Luiz de Andrade Cavalcante
* Tai Mu Shih
* Thiago Augusto Souza do Nascimento
* Tiago Moreno Rodrigues
* Vivianne Barbosa Sousa
*
* Este programa é software livre; você pode redistribuí-lo e/ou
* modificá-lo sob os termos de Licença Pública Geral GNU, conforme
* publicada pela Free Software Foundation; versão 2 da
* Licença.
* Este programa é distribuído na expectativa de ser útil, mas SEM
* QUALQUER GARANTIA; sem mesmo a garantia implícita de
* COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM
* PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais
* detalhes.
* Você deve ter recebido uma cópia da Licença Pública Geral GNU
* junto com este programa; se não, escreva para Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307, USA.
*/
package gcom.faturamento;
import gcom.batch.Processo;
import gcom.interceptor.ObjetoGcom;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;
/** @author Hibernate CodeGenerator */
public class FaturamentoAtividade extends ObjetoGcom {
private static final long serialVersionUID = 1L;
/** identifier field */
private Integer id;
/** nullable persistent field */
private String descricao;
/** nullable persistent field */
private Short indicadorUso;
/** nullable persistent field */
private Short indicadorObrigatoriedadeAtividade;
/** nullable persistent field */
private Short indicadorPossibilidadeRepeticaoAtividade;
/** nullable persistent field */
private Short indicadorPossibilidadeComandoAtividade;
/** nullable persistent field */
private Date ultimaAlteracao;
/** persistent field */
private gcom.faturamento.FaturamentoAtividade faturamentoAtividadePrecedente;
private Processo processo;
/** persistent field */
private Short ordemRealizacao;
/** persistent field */
private gcom.cobranca.CobrancaAcao cobrancaAcao;
// --CONSTANTES
/**
* Description of the Field
*/
public final static Integer GERAR_ARQUIVO_LEITURA = new Integer(1);
public final static Integer EFETUAR_LEITURA = new Integer(2);
public final static Integer REGISTRAR_LEITURA_ANORMALIDADE = new Integer(3);
public final static Integer GERAR_FISCALIZACAO = new Integer(4);
public final static Integer TRANSMITIR_ARQUIVO = new Integer(7);
public final static Integer DISTRIBUIR_CONTAS = new Integer(6);
public final static Integer FATURAR_GRUPO = new Integer(5);
public final static Integer SIMULAR_FATURAMENTO = new Integer(8);
public final static Integer PRE_FATURAR_GRUPO = new Integer(0);
public final static Integer CONSISTIR_LEITURAS_E_CALCULAR_CONSUMOS = new Integer(
9);
public final static Short ATIVIDADE_POSSIVEL_COMANDO = new Short("1");
public final static Short ATIVIDADE_POSSIVEL_REPETICAO = new Short("1");
public String[] retornaCamposChavePrimaria() {
String[] retorno = new String[1];
retorno[0] = "id";
return retorno;
}
/** full constructor */
public FaturamentoAtividade(
String descricao,
Short indicadorUso,
Short indicadorObrigatoriedadeAtividade,
Short indicadorPossibilidadeRepeticaoAtividade,
Short indicadorPossibilidadeComandoAtividade,
Date ultimaAlteracao,
gcom.faturamento.FaturamentoAtividade faturamentoAtividadePrecedente,
Short ordemRealizacao) {
this.descricao = descricao;
this.indicadorUso = indicadorUso;
this.indicadorObrigatoriedadeAtividade = indicadorObrigatoriedadeAtividade;
this.indicadorPossibilidadeRepeticaoAtividade = indicadorPossibilidadeRepeticaoAtividade;
this.indicadorPossibilidadeComandoAtividade = indicadorPossibilidadeComandoAtividade;
this.ultimaAlteracao = ultimaAlteracao;
this.faturamentoAtividadePrecedente = faturamentoAtividadePrecedente;
this.ordemRealizacao = ordemRealizacao;
}
/** default constructor */
public FaturamentoAtividade() {
}
/** minimal constructor */
public FaturamentoAtividade(
gcom.faturamento.FaturamentoAtividade faturamentoAtividadePrecedente) {
this.faturamentoAtividadePrecedente = faturamentoAtividadePrecedente;
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDescricao() {
return this.descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
public Short getIndicadorUso() {
return this.indicadorUso;
}
public void setIndicadorUso(Short indicadorUso) {
this.indicadorUso = indicadorUso;
}
public Short getIndicadorObrigatoriedadeAtividade() {
return this.indicadorObrigatoriedadeAtividade;
}
public void setIndicadorObrigatoriedadeAtividade(
Short indicadorObrigatoriedadeAtividade) {
this.indicadorObrigatoriedadeAtividade = indicadorObrigatoriedadeAtividade;
}
public Short getIndicadorPossibilidadeRepeticaoAtividade() {
return this.indicadorPossibilidadeRepeticaoAtividade;
}
public void setIndicadorPossibilidadeRepeticaoAtividade(
Short indicadorPossibilidadeRepeticaoAtividade) {
this.indicadorPossibilidadeRepeticaoAtividade = indicadorPossibilidadeRepeticaoAtividade;
}
public Short getIndicadorPossibilidadeComandoAtividade() {
return this.indicadorPossibilidadeComandoAtividade;
}
public void setIndicadorPossibilidadeComandoAtividade(
Short indicadorPossibilidadeComandoAtividade) {
this.indicadorPossibilidadeComandoAtividade = indicadorPossibilidadeComandoAtividade;
}
public Date getUltimaAlteracao() {
return this.ultimaAlteracao;
}
public void setUltimaAlteracao(Date ultimaAlteracao) {
this.ultimaAlteracao = ultimaAlteracao;
}
public gcom.faturamento.FaturamentoAtividade getFaturamentoAtividadePrecedente() {
return this.faturamentoAtividadePrecedente;
}
public void setFaturamentoAtividadePrecedente(
gcom.faturamento.FaturamentoAtividade faturamentoAtividadePrecedente) {
this.faturamentoAtividadePrecedente = faturamentoAtividadePrecedente;
}
public String toString() {
return new ToStringBuilder(this).append("id", getId()).toString();
}
/**
* @return Returns the ordemRealizacao.
*/
public Short getOrdemRealizacao() {
return ordemRealizacao;
}
/**
* @param ordemRealizacao
* The ordemRealizacao to set.
*/
public void setOrdemRealizacao(Short ordemRealizacao) {
this.ordemRealizacao = ordemRealizacao;
}
public Processo getProcesso() {
return processo;
}
public void setProcesso(Processo processo) {
this.processo = processo;
}
public gcom.cobranca.CobrancaAcao getCobrancaAcao() {
return cobrancaAcao;
}
public void setCobrancaAcao(gcom.cobranca.CobrancaAcao cobrancaAcao) {
this.cobrancaAcao = cobrancaAcao;
}
}