01: /*
02: * Created on 14/10/2004
03: *
04: * Swing Components - visit http://sf.net/projects/gfd
05: *
06: * Copyright (C) 2004 Igor Regis da Silva Simões
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License
10: * as published by the Free Software Foundation; either version 2
11: * of the License, or (at your option) any later version.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with this program; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21: *
22: */
23: package br.com.igor.security;
24:
25: import java.sql.SQLException;
26:
27: import br.com.igor.db.Coluna;
28: import br.com.igor.db.Table;
29:
30: /**
31: * @author Igor Regis da Silva Simoes
32: */
33: @Table(name="Acesso")
34: public class Acesso extends BasicAccessDataObject {
35: @Coluna(isPk=false,nome="Nome",readMethodName="getNome",writeMethodName="setNome")
36: private String nome = null;
37:
38: @Coluna(isPk=false,nome="SuperTipo",readMethodName="getSuperTipo",writeMethodName="setSuperTipo")
39: private Integer super Tipo = null;
40:
41: /**
42: * Cria um novo acesso
43: */
44: public Acesso() {
45: //
46: }
47:
48: /**
49: * Cria um novo acesso com o dado nome
50: * @param nome Nome do acesso
51: */
52: public Acesso(String nome) {
53: setNome(nome);
54: }
55:
56: /**
57: * @see br.com.igor.db.PersistentObject#validate()
58: */
59: public void validate() throws SQLException {
60: // TODO Auto-generated method stub
61:
62: }
63:
64: /**
65: * @see br.com.igor.db.PersistentObject#getAsString(int)
66: */
67: public String getAsString(int format) {
68: // TODO Auto-generated method stub
69: return null;
70: }
71:
72: /**
73: * @return Returns the persistentNome.
74: */
75: public String getNome() {
76: return nome;
77: }
78:
79: /**
80: * @param persistentNome The persistentNome to set.
81: */
82: public void setNome(String persistentNome) {
83: this .nome = persistentNome;
84: }
85:
86: /**
87: * @return Returns the persistentSuperTipo.
88: */
89: public Integer getSuperTipo() {
90: return super Tipo;
91: }
92:
93: /**
94: * @param persistentSuperTipo The persistentSuperTipo to set.
95: */
96: public void setSuperTipo(Integer persistentSuperTipo) {
97: this.superTipo = persistentSuperTipo;
98: }
99: }
|