View Javadoc

1   package migratool.model;
2   
3    /**
4    * 
5    * MIGRATOOL Program to migrate spatial databsets.
6    * Copyright (C) 2007 Fábio Luiz Leite Júnior
7    * Universidade Federal de Campina Grande
8    * contact: fabioleite@gmail.com
9    *
10   * This program is free software; you can redistribute it and/or
11   * modify it under the terms of the GNU General Public License
12   * as published by the Free Software Foundation; either version 2
13   * of the License, or (at your option) any later version.
14   *
15   * This program is distributed in the hope that it will be useful,
16   * but WITHOUT ANY WARRANTY; without even the implied warranty of
17   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18   * GNU General Public License for more details.
19   *
20   * You should have received a copy of the GNU General Public License
21   * along with this program; if not, write to the Free Software
22   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23   *
24   * @author fabio
25   *
26   */
27   
28  public class BDdescription {
29  	
30  	private int positionGeometryField = -1;
31  	private String name;
32  	private String user;
33  	private String password;
34  	private String url;
35  	private String driver;
36  	private String beanFactory;
37  	private String tableName;
38  
39  	/**
40  	 * @return
41  	 */
42  	public String getDriver() {
43  		return driver;
44  	}
45  
46  	/**
47  	 * @return
48  	 */
49  	public String getName() {
50  		return name;
51  	}
52  
53  	/**
54  	 * @return
55  	 */
56  	public String getPassword() {
57  		return password;
58  	}
59  
60  	/**
61  	 * @return
62  	 */
63  	public String getUrl() {
64  		return url;
65  	}
66  
67  	/**
68  	 * @return
69  	 */
70  	public String getUser() {
71  		return user;
72  	}
73  
74  	/**
75  	 * @param string
76  	 */
77  	public void setDriver(String string) {
78  		driver = string;
79  	}
80  
81  	/**
82  	 * @param string
83  	 */
84  	public void setName(String string) {
85  		name = string;
86  	}
87  
88  	/**
89  	 * @param string
90  	 */
91  	public void setPassword(String string) {
92  		password = string;
93  	}
94  
95  	/**
96  	 * @param string
97  	 */
98  	public void setUrl(String string) {
99  		url = string;
100 	}
101 
102 	/**
103 	 * @param string
104 	 */
105 	public void setUser(String string) {
106 		user = string;
107 	}
108 
109 	/**
110 	 * @return
111 	 */
112 	public String getBeanFactory() {
113 		return beanFactory;
114 	}
115 
116 	/**
117 	 * @param string
118 	 */
119 	public void setBeanFactory(String string) {
120 		beanFactory = string;
121 	}
122 
123 	/**
124 	 * @return
125 	 */
126 	public String getTableName() {
127 		return tableName;
128 	}
129 
130 	/**
131 	 * @param string
132 	 */
133 	public void setTableName(String string) {
134 		tableName = string;
135 	}
136 	
137 	/**
138 	 * @return
139 	 */
140 	public int getPositionGeometryField() {
141 		return positionGeometryField;
142 	}
143 	
144 	public void setPositionGeometryField(String positionGeometryField){
145 		this.positionGeometryField = Integer.parseInt(positionGeometryField);
146 	}
147 
148 }