Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.spi / src / main / java / org / gvsig / fmap / dal / feature / spi / FeatureReferenceProviderServices.java @ 40559

History | View | Annotate | Download (2.38 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
/*
25
 * AUTHORS (In addition to CIT):
26
 * 2008 {{Company}}   {{Task}}
27
 */
28

    
29
package org.gvsig.fmap.dal.feature.spi;
30

    
31
import org.gvsig.fmap.dal.feature.FeatureReference;
32
import org.gvsig.fmap.dal.feature.FeatureType;
33

    
34
/**
35
 * Interface for feature references services for feature based data providers
36
 *
37
 *
38
 * @author jmvivo
39
 *
40
 */
41
public interface FeatureReferenceProviderServices extends FeatureReference {
42

    
43
        /**
44
         * Return the OID (Object IDentifier) object that represents this reference
45
         *
46
         * <strong>Note:</strong> this can be <code>null</code> if provider does not
47
         * support OID
48
         *
49
         * @return <code>Object</code> that identifies a feature
50
         *
51
         * @see FeatureStoreProvider#getOIDType()
52
         * @see FeatureType#hasOID()
53
         */
54
        public Object getOID();
55

    
56
        /**
57
         * Return the attribute names that compound the Primary Key of represented
58
         * feature
59
         *
60
         * @return attribute names
61
         *
62
         * @see #getKeyValue(String)
63
         */
64
        public String[] getKeyNames();
65

    
66
        /**
67
         * Return the value of an attribute that compound the Primary Key of
68
         * represented feature
69
         *
70
         * @param name
71
         * @return
72
         *
73
         * @see #getKeyNames()
74
         */
75
        public Object getKeyValue(String name);
76

    
77
        /**
78
         * Inform that represented feature is not stored in the original data store
79
         *
80
         * @return true if not in the original store
81
         */
82
        public boolean isNewFeature();
83

    
84
        /**
85
         * Return the identifier of the {@link FeatureType} of the represented
86
         * feature
87
         *
88
         * @return
89
         */
90
        public String getFeatureTypeId();
91

    
92
}