Subversion Repositories hibernate-spatial

Rev

Rev 102 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 102 Rev 200
Line 1... Line 1...
1
/**
1
/*
2
 * $Id: SpatialDialectProvider.java 102 2008-08-15 10:44:01Z maesenka $
2
 * $Id: SpatialDialectProvider.java 200 2010-03-31 19:52:12Z maesenka $
3
 *
3
 *
4
 * This file is part of Hibernate Spatial, an extension to the
4
 * This file is part of Hibernate Spatial, an extension to the
5
 * hibernate ORM solution for geographic data.
5
 * hibernate ORM solution for geographic data.
6
 *
-
 
7
 * Copyright © 2007 Geovise BVBA
-
 
8
 * Copyright © 2007 K.U. Leuven LRD, Spatial Applications Division, Belgium
-
 
9
 *
6
 *
10
 * This work was partially supported by the European Commission,
7
 * Copyright © 2007-2010 Geovise BVBA
11
 * under the 6th Framework Programme, contract IST-2-004688-STP.
-
 
12
 *
8
 *
13
 * This library is free software; you can redistribute it and/or
9
 * This library is free software; you can redistribute it and/or
14
 * modify it under the terms of the GNU Lesser General Public
10
 * modify it under the terms of the GNU Lesser General Public
15
 * License as published by the Free Software Foundation; either
11
 * License as published by the Free Software Foundation; either
16
 * version 2.1 of the License, or (at your option) any later version.
12
 * version 2.1 of the License, or (at your option) any later version.
Line 30... Line 26...
30
 
26
 
31
import org.hibernatespatial.SpatialDialect;
27
import org.hibernatespatial.SpatialDialect;
32
 
28
 
33
/**
29
/**
34
 * Interface that is implemented by a SpatialDialect Provider.
30
 * Interface that is implemented by a SpatialDialect Provider.
35
 *
31
 * <p/>
36
 * A <class>SpatialDialectProvider</class> creates a SpatialDialect for one or
32
 * A <class>SpatialDialectProvider</class> creates a SpatialDialect for one or
37
 * more database systems. These databases are identified by a dialect string.
33
 * more database systems. These databases are identified by a dialect string.
38
 * Usually this is the fully qualified class name of a
34
 * Usually this is the fully qualified class name of a
39
 * <code>org.hibernate.dialect.Dialect</code> or <code>SpatialDialect</code>
35
 * <code>org.hibernate.dialect.Dialect</code> or <code>SpatialDialect</code>
40
 * implementation
36
 * implementation
41
 *
37
 *
42
 * @author Karel Maesen
38
 * @author Karel Maesen, Geovise BVBA
43
 */
39
 */
44
 
40
 
45
public interface SpatialDialectProvider {
41
public interface SpatialDialectProvider {
46
 
42
 
47
	/**
43
    /**
48
	 * create Spatial Dialect with the provided name.
44
     * create Spatial Dialect with the provided name.
49
	 *
45
     *
50
	 * @param dialect
-
 
51
	 *            Name of the dialect to create.
46
     * @param dialect Name of the dialect to create.
52
	 * @return a SpatialDialect
47
     * @return a SpatialDialect
53
	 */
48
     */
54
	public SpatialDialect createSpatialDialect(String dialect);
49
    public SpatialDialect createSpatialDialect(String dialect);
55
 
50
 
56
	/**
51
    /**
57
	 * Returns the default dialect for this provider.
52
     * Returns the default dialect for this provider.
58
	 *
53
     *
59
	 * @return The Default Dialect provided by the implementation.
54
     * @return The Default Dialect provided by the implementation.
60
	 *
55
     *         <p/>
61
	 * Implementations should never return null for this method.
56
     *         Implementations should never return null for this method.
62
	 */
57
     */
63
	public SpatialDialect getDefaultDialect();
58
    public SpatialDialect getDefaultDialect();
64
 
59
 
65
	/**
60
    /**
66
	 * Returns the Dialect names
61
     * Returns the Dialect names
67
	 *
62
     * <p/>
68
	 * This method must return the canonical class names of the Spatialdialect
63
     * This method must return the canonical class names of the Spatialdialect
69
	 * implementations that this provider provides.
64
     * implementations that this provider provides.
70
	 *
65
     *
71
	 * @return array of dialect names.
66
     * @return array of dialect names.
72
	 */
67
     */
73
	public String[] getSupportedDialects();
68
    public String[] getSupportedDialects();
74
 
69
 
75
}
70
}