Revision 42544

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/DataStoreProviderFactory.java
3 3
 *
4 4
 * Copyright (C) 2007-2013 gvSIG Association.
5 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.
6
 * This program is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License as published by the Free Software
8
 * Foundation; either version 3 of the License, or (at your option) any later
9
 * version.
10 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.
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
 * details.
15 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.
16
 * You should have received a copy of the GNU General Public License along with
17
 * this program; if not, write to the Free Software Foundation, Inc., 51
18
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 19
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
20
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
23 22
 */
24 23
package org.gvsig.fmap.dal;
25 24

  
......
29 28

  
30 29
public interface DataStoreProviderFactory extends ProviderFactory {
31 30

  
32
	public static final int UNKNOWN = 0;
33
	public static final int YES = 1;
34
	public static final int NO = 2;
31
    public static final int UNKNOWN = 0;
32
    public static final int YES = 1;
33
    public static final int NO = 2;
35 34

  
36
	/**
37
	 * Returns the name of the provider
38
	 *
39
	 * @return name of the provider
40
	 */
41
	public String getName();
35
    /**
36
     * Returns the name of the provider
37
     *
38
     * @return name of the provider
39
     */
40
    public String getName();
42 41

  
43
	/**
44
	 * Return a short descripion about the provider
45
	 *
46
	 * @return description about the provider
47
	 */
48
	public String getDescription();
42
    /**
43
     * Return a short descripion about the provider
44
     *
45
     * @return description about the provider
46
     */
47
    public String getDescription();
49 48

  
50
	/**
51
	 * The provider has read support
52
	 *
53
	 * @return YES if has read support
54
	 */
55
	public int allowRead();
49
    /**
50
     * The provider has read support
51
     *
52
     * @return YES if has read support
53
     */
54
    public int allowRead();
56 55

  
57
	/**
58
	 * The provider has write support
59
	 *
60
	 * @return YES if has write support
61
	 */
62
	public int allowWrite();
56
    /**
57
     * The provider has write support
58
     *
59
     * @return YES if has write support
60
     */
61
    public int allowWrite();
63 62

  
64
	/**
65
	 * The provider can create new stores.
66
	 *
67
	 * @return YES if has creation support
68
	 */
69
	public int allowCreate();
63
    /**
64
     * The provider can create new stores.
65
     *
66
     * @return YES if has creation support
67
     */
68
    public int allowCreate();
70 69

  
71
	/**
72
	 * The provider has tabular support.
73
	 * This support is the minimum requisite for a FeatureStore.
74
	 *
75
	 * @return YES if has write support
76
	 */
77
	public int hasTabularSupport();
70
    /**
71
     * The provider has tabular support. This support is the minimum requisite
72
     * for a FeatureStore.
73
     *
74
     * @return YES if has write support
75
     */
76
    public int hasTabularSupport();
78 77

  
79
	/**
80
	 * The provider has vectorial support.
81
	 *
82
	 * @return YES if has vectorial support
83
	 */
84
	public int hasVectorialSupport();
78
    /**
79
     * The provider has vectorial support.
80
     *
81
     * @return YES if has vectorial support
82
     */
83
    public int hasVectorialSupport();
85 84

  
86
	/**
87
	 * The provider has raster support.
88
	 *
89
	 * @return YES if has raster support
90
	 */
91
	public int hasRasterSupport();
85
    /**
86
     * The provider has raster support.
87
     *
88
     * @return YES if has raster support
89
     */
90
    public int hasRasterSupport();
92 91

  
93
	/**
94
	 * Builds a specific provider
95
	 *
96
	 * @return the provider
97
	 */
98
	public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException;
99

  
100 92
    /**
101
     * Returns max size for attributes names
102
     * returns -1 if it is undefined
103
     * @return
93
     * Builds a specific provider
94
     *
95
     * @param parameters
96
     * @param providerServices
97
     * @return the provider
98
     * @throws org.gvsig.fmap.dal.exception.InitializeException
104 99
     */
105
    public int getMaxAttributeNameSize();
100
    public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException;
106 101

  
107 102
}

Also available in: Unified diff