Java Doc for BBOXDataStore.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » geometryless » 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.geometryless 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.data.jdbc.JDBCDataStore
   org.geotools.data.geometryless.JDBCDataStore
      org.geotools.data.geometryless.BBOXDataStore

BBOXDataStore
public class BBOXDataStore extends org.geotools.data.geometryless.JDBCDataStore (Code)
An implementation of the GeoTools Data Store API for a generic non-spatial database platform. This specialisation uses X,Y (lat/lon) database colums to hold Envelope (BBOX) geometries the constructor is used to pass metadata from datastore to SQLEncoder class
Please see org.geotools.data.jdbc.JDBCDataStore class JDBCDataStore and org.geotools.data.DataStore interface DataStore for DataStore usage details.
author:
   Rob Atkinson Social Change Online



Constructor Summary
public  BBOXDataStore(DataSource connectionPool)
    
public  BBOXDataStore(DataSource connectionPool, String databaseSchemaName, String namespace, String xmin, String ymin, String xmax, String ymax, String geomName)
     Constructor for BBOXDataStore where the database schema name is provided.
Parameters:
  connectionPool - a MySQL org.geotools.data.jdbc.ConnectionPool ConnectionPool
Parameters:
  databaseSchemaName - the database schema.

Method Summary
protected  AttributeTypebuildAttributeType(ResultSet rs)
     Constructs an AttributeType from a row in a ResultSet.
protected  JDBCFeatureWritercreateFeatureWriter(FeatureReader reader, QueryData queryData)
    
public  FeatureWritergetFeatureWriter(String typeName)
     Utility method for getting a FeatureWriter for modifying existing features, using no feature filtering and auto-committing.
public  FeatureWritergetFeatureWriterAppend(String typeName)
     Utility method for getting a FeatureWriter for adding new features, using auto-committing.
protected  AttributeIOgetGeometryAttributeIO(AttributeType type, QueryData queryData)
    
public  SQLBuildergetSqlBuilder(String typeName)
    


Constructor Detail
BBOXDataStore
public BBOXDataStore(DataSource connectionPool) throws IOException(Code)



BBOXDataStore
public BBOXDataStore(DataSource connectionPool, String databaseSchemaName, String namespace, String xmin, String ymin, String xmax, String ymax, String geomName) throws IOException(Code)
Constructor for BBOXDataStore where the database schema name is provided.
Parameters:
  connectionPool - a MySQL org.geotools.data.jdbc.ConnectionPool ConnectionPool
Parameters:
  databaseSchemaName - the database schema. Can be null. See the comments for the parameter schemaPattern in java.sql.DatabaseMetaData.getTables(StringStringStringString[]) DatabaseMetaData.getTables, because databaseSchemaName behaves in the same way.
throws:
  IOException - if the database cannot be properly accessed




Method Detail
buildAttributeType
protected AttributeType buildAttributeType(ResultSet rs) throws IOException(Code)
Constructs an AttributeType from a row in a ResultSet. The ResultSet contains the information retrieved by a call to getColumns() on the DatabaseMetaData object. This information can be used to construct an Attribute Type.

In addition to standard SQL types, this method identifies MySQL 4.1's geometric datatypes and creates attribute types accordingly. This happens when the datatype, identified by column 5 of the ResultSet parameter, is equal to java.sql.Types.OTHER. If a Types.OTHER ends up not being geometric, this method simply calls the parent class's buildAttributeType method to do something with it.

Note: Overriding methods must never move the current row pointer in the result set.


Parameters:
  rs - The ResultSet containing the result of aDatabaseMetaData.getColumns call. The AttributeType built from the ResultSet.
throws:
  SQLException - If an error occurs processing the ResultSet.
throws:
  DataSourceException - Provided for overriding classes to wrapexceptions caused by other operations they may perform todetermine additional types. This will only be thrown by thedefault implementation if a type is present that is not presentin the TYPE_MAPPINGS.



createFeatureWriter
protected JDBCFeatureWriter createFeatureWriter(FeatureReader reader, QueryData queryData) throws IOException(Code)



getFeatureWriter
public FeatureWriter getFeatureWriter(String typeName) throws IOException(Code)
Utility method for getting a FeatureWriter for modifying existing features, using no feature filtering and auto-committing. Not used for adding new features.
Parameters:
  typeName - the feature type name (the table name) a FeatureWriter for modifying existing features
throws:
  IOException - if the database cannot be properly accessed



getFeatureWriterAppend
public FeatureWriter getFeatureWriterAppend(String typeName) throws IOException(Code)
Utility method for getting a FeatureWriter for adding new features, using auto-committing. Not used for modifying existing features.
Parameters:
  typeName - the feature type name (the table name) a FeatureWriter for adding new features
throws:
  IOException - if the database cannot be properly accessed



getGeometryAttributeIO
protected AttributeIO getGeometryAttributeIO(AttributeType type, QueryData queryData)(Code)

See Also:   org.geotools.data.jdbc.JDBCDataStore.getGeometryAttributeIO(org.geotools.feature.AttributeType)



getSqlBuilder
public SQLBuilder getSqlBuilder(String typeName) throws IOException(Code)



Fields inherited from org.geotools.data.geometryless.JDBCDataStore
public static String DEFAULT_NAMESPACE(Code)(Java Doc)

Methods inherited from org.geotools.data.geometryless.JDBCDataStore
protected AttributeType buildAttributeType(ResultSet rs) throws IOException(Code)(Java Doc)
protected JDBCFeatureWriter createFeatureWriter(FeatureReader reader, QueryData queryData) throws IOException(Code)(Java Doc)
protected FeatureTypeHandler getFeatureTypeHandler(JDBCDataStoreConfig config) throws IOException(Code)(Java Doc)
public FeatureWriter getFeatureWriter(String typeName) throws IOException(Code)(Java Doc)
public FeatureWriter getFeatureWriterAppend(String typeName) throws IOException(Code)(Java Doc)
protected AttributeIO getGeometryAttributeIO(AttributeType type, QueryData queryData)(Code)(Java Doc)
public SQLBuilder getSqlBuilder(String typeName) throws IOException(Code)(Java Doc)
public void registerView(String typeName, SelectBody select) throws IOException(Code)(Java Doc)
public void registerView(String typeName, String sqlQuery) throws IOException(Code)(Java Doc)

Fields inherited from org.geotools.data.jdbc.JDBCDataStore
protected DataSource dataSource(Code)(Java Doc)
protected String databaseSchema(Code)(Java Doc)

Methods inherited from org.geotools.data.jdbc.JDBCDataStore
final public Connection connection()(Code)(Java Doc)
protected ContentState createContentState(ContentEntry entry)(Code)(Java Doc)
protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException(Code)(Java Doc)
protected SQLBuilder createSQLBuilder()(Code)(Java Doc)
public void createSchema(FeatureType featureType) throws IOException(Code)(Java Doc)
protected JDBCTypeBuilder createTypeBuilder()(Code)(Java Doc)
protected JDBCTypeBuilder createTypeBuilder(SimpleTypeFactory typeFactory)(Code)(Java Doc)
protected List createTypeNames() throws IOException(Code)(Java Doc)
public DataSource getDataSource()(Code)(Java Doc)
public String getDatabaseSchema()(Code)(Java Doc)
public Logger getLogger()(Code)(Java Doc)
public PrimaryKey getPrimaryKey(ContentEntry entry) throws IOException(Code)(Java Doc)
public PrimaryKey getPrimaryKey(FeatureType featureType) throws IOException(Code)(Java Doc)
public void setDataSource(DataSource dataSource)(Code)(Java Doc)
public void setDatabaseSchema(String databaseSchema)(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.