| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.sqldialect.postgis.PostGISGeometryConverter
public class PostGISGeometryConverter
GeometryParticleConverter for PostGIS databases.
| Constructor Summary | |
|---|---|
PostGISGeometryConverter(String column,
                         ICRS crs,
                         String srid,
                         boolean useLegacyPredicates)
Creates a new PostGISGeometryConverter instance. | 
|
| Method Summary | |
|---|---|
 ICRS | 
getCrs()
 | 
 String | 
getSelectSnippet(String tableAlias)
Returns an SQL fragment for SELECTing the particle value from the associated database table.  | 
 String | 
getSetSnippet(Geometry particle)
Returns a PreparedStatement fragment for setting the given particle value in an SQL statement. | 
 String | 
getSrid()
 | 
 void | 
setParticle(PreparedStatement stmt,
            Geometry particle,
            int paramIndex)
Converts the given particle and sets the designated SQL parameter in the given PreparedStatement. | 
 Geometry | 
toParticle(ResultSet rs,
           int colIndex)
Builds a particle from the specified column of the current row of the given ResultSet. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PostGISGeometryConverter(String column,
                                ICRS crs,
                                String srid,
                                boolean useLegacyPredicates)
PostGISGeometryConverter instance.
column - (unqualified) column that stores the geometry, must not be nullcrs - CRS of the stored geometries, can be nullsrid - PostGIS spatial reference identifier, must not be nulluseLegacyPredicates - if true, legacy-style PostGIS spatial predicates are used (e.g. Intersects instead of
            ST_Intersects)| Method Detail | 
|---|
public String getSelectSnippet(String tableAlias)
ParticleConverter
getSelectSnippet in interface ParticleConverter<Geometry>tableAlias - alias that's used for disambiguating the table, may be null
X1.columname), may be null
public Geometry toParticle(ResultSet rs,
                           int colIndex)
                    throws SQLException
ParticleConverterResultSet.
toParticle in interface ParticleConverter<Geometry>rs - result set, never nullcolIndex - index of the column in the result set
null
SQLExceptionpublic String getSetSnippet(Geometry particle)
ParticleConverterPreparedStatement fragment for setting the given particle value in an SQL statement.
 
 The value may be set in a literal SQL fashion (e.g. '2007-08-09') or as a PreparedStatement placeholder
 ('?').
 
getSetSnippet in interface ParticleConverter<Geometry>particle - particle value, can be null
- Returns:
 - SQL fragment (e.g. 
?), may be null 
public void setParticle(PreparedStatement stmt,
                        Geometry particle,
                        int paramIndex)
                 throws SQLException
ParticleConverterPreparedStatement.
setParticle in interface ParticleConverter<Geometry>stmt - prepared statement, never nullparticle - particle value, can be nullparamIndex - index of the SQL parameter in the statement
- Throws:
 SQLExceptionpublic String getSrid()
getSrid in interface GeometryParticleConverterpublic ICRS getCrs()
getCrs in interface GeometryParticleConverter
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||