Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_897 / libraries / libGDBMS / src / main / java / com / hardcode / gdbms / engine / data / file / FileDataSourceFactory.java @ 10444

History | View | Annotate | Download (745 Bytes)

1
package com.hardcode.gdbms.engine.data.file;
2

    
3

    
4

    
5
/**
6
 * Factory to create FileDataSources
7
 */
8
public class FileDataSourceFactory {
9
    /**
10
     * Creates a new FileDataSource
11
     *
12
     * @return FileDataSource
13
     */
14
    public static FileDataSource newInstance() {
15
        return new FileDataSourceAdapter();
16
    }
17

    
18
    /**
19
     * Creates a new FileDataWare
20
     *
21
     * @param driver
22
     *
23
     * @return
24
     *
25
     */
26
    public static FileDataWare newDataWareInstance() {
27
        return new FileDataWareImpl();
28
    }
29

    
30
    /**
31
     * Creates a new FileSpatialDataSource
32
     *
33
     * @return FileSpatialDataSource
34
     */
35
    public static FileDataSource newSpatialInstance() {
36
        return new FileSpatialDataSourceAdapter();
37
    }
38
}