FishEye
Chart
Search
Changelog
Browse
Help
HibernateSpatial
:/
trunk
/.../
org
/
hibernatespatial
/
sqlserver
/
DialectProvider.java
revision
230
Quick Search:
View
Revision:
230
201
182
146
142
141
Diff
Diff from 230 to:
230
201
182
146
142
141
Annotations
Annotate by Age |
Author
|
Mixed
|
None
Annotated File View
maesenka
141
1
/*
maesenka
182
2
* $Id: DialectProvider.java 230 2010-06-30 16:49:34Z maesenka $
maesenka
141
3
*
4
* This file is part of Hibernate Spatial, an extension to the
5
* hibernate ORM solution for geographic data.
6
*
7
* Copyright © 2009 Geovise BVBA
8
*
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License as published by the Free Software Foundation; either
12
* version 2.1 of the License, or (at your option) any later version.
13
*
14
* This library is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* Lesser General Public License for more details.
18
*
19
* You should have received a copy of the GNU Lesser General Public
20
* License along with this library; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
*
23
* For more information, visit:
http://www.hibernatespatial.org/
24
*/
25
26
package
org
.
hibernatespatial
.
sqlserver
;
27
maesenka
146
28
import
org
.
hibernatespatial
.
SpatialDialect
;
maesenka
141
29
import
org
.
hibernatespatial
.
spi
.
SpatialDialectProvider
;
30
31
/**
maesenka
182
32
* A <code>SpatialDialectProvider</code> for SQL Server (2008).
33
*
maesenka
141
34
*
@author
Karel Maesen, Geovise BVBA.
35
*/
36
public
class
DialectProvider
implements
SpatialDialectProvider
{
37
38
39
public
SpatialDialect
createSpatialDialect
(
String
dialect
) {
maesenka
230
40
if
(
dialect
.
equals
(
SQLServerSpatialDialect
.
class
.
getCanonicalName
())
41
||
dialect
.
equals
(
"org.hibernate.dialect.SQLServerDialect"
)
42
||
dialect
.
equals
(
SQLServerSpatialDialect
.
SHORT_NAME
)) {
43
return
new
SQLServerSpatialDialect
();
44
}
45
return
null
;
maesenka
141
46
}
47
48
public
SpatialDialect
getDefaultDialect
() {
maesenka
182
49
return
new
SQLServerSpatialDialect
();
maesenka
141
50
}
51
52
public
String
[]
getSupportedDialects
() {
maesenka
182
53
return
new
String
[]{
SQLServerSpatialDialect
.
class
.
getCanonicalName
()};
maesenka
141
54
}
55
}
FishEye: Open Source License registered to Hibernate Spatial.
Your maintenance has expired.
You can renew your license at
http://www.atlassian.com/fisheye/renew
Atlassian FishEye
,
Subversion, CVS & Perforce analysis
. (Version:1.5.2 Build:build-298 2008-05-26 ) -
Administration
- Page generated 2010-09-09 22:43 +0200