Java Doc for PostgisSQLBuilder.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » postgis » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.data.postgis 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.data.jdbc.DefaultSQLBuilder
      org.geotools.data.postgis.PostgisSQLBuilder

PostgisSQLBuilder
public class PostgisSQLBuilder extends DefaultSQLBuilder (Code)
Builds sql for postgis.
author:
   Chris Holmes


Field Summary
protected  booleanWKBEnabled
    
protected  booleanbyteaEnabled
    
protected  JDBCDataStoreConfigconfig
    
protected  booleanschemaEnabled
    

Constructor Summary
public  PostgisSQLBuilder(int srid, JDBCDataStoreConfig config)
    
public  PostgisSQLBuilder(SQLEncoder encoder, JDBCDataStoreConfig config)
     Constructor with encoder.
public  PostgisSQLBuilder(SQLEncoder encoder, JDBCDataStoreConfig config, FeatureType ft)
    

Method Summary
public  StringencodeColumnName(String columnName)
     Surround columnName with quotes.
public  StringencodeTableName(String tableName)
     Encode the table name (if schemaEnabled is true the schema name will be prepended).
public  ColumnStratagygetStratagy(AttributeType attribute)
    
public  booleanisByteaEnabled()
    
public  booleanisSchemaEnabled()
    
public  booleanisWKBEnabled()
    
public  voidsetByteaEnabled(boolean byteaEnable)
    
public  voidsetSchemaEnabled(boolean schemaEnabled)
     Enables/disables schema name qualification.
public  voidsetWKBEnabled(boolean enabled)
    
public  voidsqlColumns(StringBuffer sql, FIDMapper mapper, AttributeType[] attributes)
     Produces the select information required.
public  voidsqlFrom(StringBuffer sql, String typeName)
    
public  voidsqlWhere(StringBuffer sql, Filter preFilter)
     Constructs WHERE clause, if needed, for FILTER.

Field Detail
WKBEnabled
protected boolean WKBEnabled(Code)
If true, WKB format is used instead of WKT



byteaEnabled
protected boolean byteaEnabled(Code)
If true, ByteA function is used to transfer WKB data



config
protected JDBCDataStoreConfig config(Code)
The DataStore we are building SQL for *



schemaEnabled
protected boolean schemaEnabled(Code)
If true, tables are qualified with a schema *




Constructor Detail
PostgisSQLBuilder
public PostgisSQLBuilder(int srid, JDBCDataStoreConfig config)(Code)



PostgisSQLBuilder
public PostgisSQLBuilder(SQLEncoder encoder, JDBCDataStoreConfig config)(Code)
Constructor with encoder. Use PostgisSQLBuilder(encoder, config, ft) if possible.
Parameters:
  encoder -



PostgisSQLBuilder
public PostgisSQLBuilder(SQLEncoder encoder, JDBCDataStoreConfig config, FeatureType ft)(Code)




Method Detail
encodeColumnName
public String encodeColumnName(String columnName)(Code)
Surround columnName with quotes.
Parameters:
  columnName - "columnName"



encodeTableName
public String encodeTableName(String tableName)(Code)
Encode the table name (if schemaEnabled is true the schema name will be prepended).
Parameters:
  tableName - "tableName" or "schema"."tableName"



getStratagy
public ColumnStratagy getStratagy(AttributeType attribute)(Code)



isByteaEnabled
public boolean isByteaEnabled()(Code)
Enables the use of the bytea function to transfer faster WKB geometries



isSchemaEnabled
public boolean isSchemaEnabled()(Code)
true if table names are prefixed with the containing schema.



isWKBEnabled
public boolean isWKBEnabled()(Code)
Returns true if the WKB format is used to transfer geometries, false otherwise



setByteaEnabled
public void setByteaEnabled(boolean byteaEnable)(Code)
Enables/disables the use of the bytea function
Parameters:
  byteaEnable -



setSchemaEnabled
public void setSchemaEnabled(boolean schemaEnabled)(Code)
Enables/disables schema name qualification.



setWKBEnabled
public void setWKBEnabled(boolean enabled)(Code)
If turned on, WKB will be used to transfer geometry data instead of WKT
Parameters:
  enabled -



sqlColumns
public void sqlColumns(StringBuffer sql, FIDMapper mapper, AttributeType[] attributes)(Code)
Produces the select information required.

The featureType, if known, is always requested.

sql: featureID (,attributeColumn)

We may need to provide AttributeReaders with a hook so they can request a wrapper function.


Parameters:
  sql -
Parameters:
  mapper -
Parameters:
  attributes -



sqlFrom
public void sqlFrom(StringBuffer sql, String typeName)(Code)
Consutrcts FROM clause for featureType

sql: FROM typeName


Parameters:
  sql -
Parameters:
  typeName -



sqlWhere
public void sqlWhere(StringBuffer sql, Filter preFilter) throws SQLEncoderException(Code)
Constructs WHERE clause, if needed, for FILTER.

sql: WHERE filter encoding


Parameters:
  sql - DOCUMENT ME!
Parameters:
  preFilter - DOCUMENT ME!
throws:
  SQLEncoderException - DOCUMENT ME!



Fields inherited from org.geotools.data.jdbc.DefaultSQLBuilder
protected ClientTransactionAccessor accessor(Code)(Java Doc)
protected SQLEncoder encoder(Code)(Java Doc)
protected FeatureType ft(Code)(Java Doc)

Methods inherited from org.geotools.data.jdbc.DefaultSQLBuilder
public String buildSQLQuery(String typeName, FIDMapper mapper, AttributeType[] attrTypes, org.opengis.filter.Filter filter) throws SQLEncoderException(Code)(Java Doc)
public Filter getPostQueryFilter(Filter filter)(Code)(Java Doc)
public Filter getPreQueryFilter(Filter filter)(Code)(Java Doc)
public synchronized boolean isForce2D()(Code)(Java Doc)
public void setHints(Hints hints)(Code)(Java Doc)
protected void splitFilter(Filter filter)(Code)(Java Doc)
public void sqlColumns(StringBuffer sql, FIDMapper mapper, AttributeType[] attributes)(Code)(Java Doc)
public void sqlFrom(StringBuffer sql, String typeName)(Code)(Java Doc)
public void sqlGeometryColumn(StringBuffer sql, AttributeType geomAttribute)(Code)(Java Doc)
public void sqlOrderBy(StringBuffer sql, SortBy[] sortBy) throws SQLEncoderException(Code)(Java Doc)
public void sqlWhere(StringBuffer sql, Filter preFilter) throws SQLEncoderException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.