Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / FeatureStoreTransform.java @ 25210

History | View | Annotate | Download (2.16 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22

    
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2008 IVER T.I. S.A.   {{Task}}
26
*/
27

    
28
package org.gvsig.fmap.dal.feature;
29

    
30
import java.util.List;
31

    
32
import org.gvsig.fmap.dal.exception.DataException;
33
import org.gvsig.tools.persistence.Persistent;
34

    
35
/**
36
 * A FeatureStoreTransform provides a mechanism for mapping a source 
37
 * FeatureType to a target FeatureType, allowing to build different views
38
 * (as in database view) over different feature types even from different 
39
 * stores.
40
 * 
41
 * @author jmvivo
42
 *
43
 */
44
public interface FeatureStoreTransform extends Persistent {
45

    
46
        /**
47
         * Returns the default {@link FeatureType}.
48
         * 
49
         * @return
50
         *                 default {@link FeatureType}
51
         * 
52
         * @throws DataException
53
         */
54
        public FeatureType getDefaultFeatureType() throws DataException;
55

    
56
        /**
57
         * Returns this FeatureStoreTransform's FeatureType(s)
58
         * @return
59
         * @throws DataException
60
         */
61
        public List getFeatureTypes() throws DataException;
62

    
63
        /**
64
         * Applies this transform between two features, copying the source data
65
         * to the target feature.
66
         * 
67
         * @param source
68
         *                         feature whose data will be used as source
69
         * 
70
         * @param target
71
         *                         feature in which the source data will be copied
72
         * 
73
         * @throws DataException
74
         */
75
        public void applyTransform(Feature source, EditableFeature target)
76
                        throws DataException;
77

    
78
}