1 package migratool.definition.parser; 2 3 import migratool.model.BDdescription; 4 5 /** 6 * 7 * MIGRATOOL Program to migrate spatial databsets. 8 * Copyright (C) 2007 Fábio Luiz Leite Júnior 9 * Universidade Federal de Campina Grande 10 * contact: fabioleite@gmail.com 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; either version 2 15 * of the License, or (at your option) any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * You should have received a copy of the GNU General Public License 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 25 * 26 * @author fabio 27 * 28 * Classe que encapsula as várias definições de fonte de dados origem e destino 29 */ 30 31 public class MigBean { 32 33 private String dataSourceFactoryType; 34 private BDdescription source; 35 private BDdescription destination; 36 37 38 /** 39 * @return 40 */ 41 public BDdescription getSource() { 42 return source; 43 } 44 45 public boolean isGeometric(){ 46 if(destination.getPositionGeometryField() == -1) 47 return false; 48 return true; 49 } 50 51 /** 52 * @param ddefinition 53 */ 54 public void setSource(BDdescription ddefinition) { 55 source = ddefinition; 56 } 57 58 59 /** 60 * @return 61 */ 62 public BDdescription getDestination() { 63 return destination; 64 } 65 66 /** 67 * @param ddescription 68 */ 69 public void setDestination(BDdescription ddescription) { 70 destination = ddescription; 71 } 72 73 /** 74 * 75 */ 76 public String getDataSourceFactoryType() { 77 return dataSourceFactoryType; 78 } 79 80 /** 81 * @param string 82 */ 83 public void setDataSourceFactoryType(String string) { 84 dataSourceFactoryType = string; 85 } 86 87 }