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


java.lang.Object
   org.geotools.data.mysql.MysqlGeomColumn

MysqlGeomColumn
public class MysqlGeomColumn (Code)
MysqlGeoColumn is used by MysqlDataSource to query its specific geometric information. There should be one created for each geometry column of each feature table. It encapsulates information about the column, such as the name of the corresponding geometric table, the storage type used by that table, the type of geometry contained, and various other useful information culled from the GEOMETRY_COLUMNS table. It also generates the geometries of the column when queried with the ID from the feature table.
author:
   Chris Holmes, Vision for New York
version:
   $Id: MysqlGeomColumn.java 27862 2007-11-12 19:51:19Z desruisseaux $


Field Summary
final public static  StringGEOMETRY_META_NAME
    
final public static  intNORMALIZED_STORAGE_TYPE
    
final public static  intWKB_STORAGE_TYPE
    

Constructor Summary
public  MysqlGeomColumn()
    
public  MysqlGeomColumn(String feaTabName, String feaGeomColumn, String geomTabName)
     Convenience constructor with the minimum meta information needed to do anything useful.
public  MysqlGeomColumn(Connection dbConnection, String feaTableName)
     A convenience constructor, when you there is an open connection, and only using flat features.

Method Summary
public  StringgetFeaTableCat()
     Getter method for Feature Catalog.
public  StringgetFeaTableName()
     Getter method for feature table name.
public  StringgetFeaTableSchema()
     Getter method for feature schema.
public  StringgetGeomColName()
     Getter method for geometry column.
public  StringgetGeomTableCat()
     Getter method for Geometry Catalog.
public  StringgetGeomTableName()
     Getter method for geometry table name.
public  StringgetGeomTableSchema()
    
public  intgetGeomType()
     Gets the Geometry type of the geometry column.
public  GeometrygetGeometry(int geomID)
     Returns a jts Geometry when queried with a geometry ID.
Parameters:
  geomID - the ID of the feature geometry.
public  FeatureTypegetSchema()
     Gets the schema for this geometry column.
public  intgetStorageType()
     Gets the type used for storage in the geometry column.
public static  FeatureTypemakeSchema(ResultSetMetaData metaData, String geoColumn)
     Creates the schema, a FeatureType of the attributes.
Parameters:
  metaData - from the query of the feature table.
Parameters:
  geoColumn - the name of the geometry column in the feature table.
public  voidpopulateData(int geomID, String wellKnownText)
     Stores the geometry information by geometry ID, so that it can be queried later.
public  voidremoveData(int geomID)
     Takes out a geometry according to its ID.
public  voidsetFeaTableCat(String catalog)
     Setter method for feature catalog.
public  voidsetFeaTableName(String name)
     Setter method for feature table name.
public  voidsetFeaTableSchema(String schema)
     Setter method for feature schema.
public  voidsetGeomColName(String name)
     Setter method for geometry column.
public  voidsetGeomTableCat(String catalog)
     Setter method for geometry catalog.
public  voidsetGeomTableName(String name)
     Setter method for geometry table name.
public  voidsetGeomTableSchema(String schema)
     Setter method for geometry schema.
public  voidsetGeomType(int gType)
     Sets the Geometry type of the geometry column.
public  voidsetSchema(FeatureType schema)
     sets the schema for this geometry column.
public  voidsetStorageType(int sType)
     Sets the type used for storage in the geometry column.

Field Detail
GEOMETRY_META_NAME
final public static String GEOMETRY_META_NAME(Code)
From the SFS for SQL spec, always has the meta data



NORMALIZED_STORAGE_TYPE
final public static int NORMALIZED_STORAGE_TYPE(Code)
For get and set Storage type, see SFS for SQL spec



WKB_STORAGE_TYPE
final public static int WKB_STORAGE_TYPE(Code)
For get and set Storage type, see SFS for SQL spec, the Well Known Binary




Constructor Detail
MysqlGeomColumn
public MysqlGeomColumn()(Code)
Default constructor



MysqlGeomColumn
public MysqlGeomColumn(String feaTabName, String feaGeomColumn, String geomTabName)(Code)
Convenience constructor with the minimum meta information needed to do anything useful.
Parameters:
  feaTabName - The name of the feature table for this geometry.
Parameters:
  feaGeomColumn - The name of the column in the feature table thatrefers to the MysqlGeomColumn.
Parameters:
  geomTabName - The name of the table holding the geometry data.



MysqlGeomColumn
public MysqlGeomColumn(Connection dbConnection, String feaTableName) throws SQLException, SchemaException(Code)
A convenience constructor, when you there is an open connection, and only using flat features. This constructor will not work with feature tables that contain multiple geometries as the query on the feature table will return multiple rows, which will be discarded. For multiple geometries an array of MysqlGeomColumns must be created, each initialized with the default constructor, filling in the values through the accesssor functions.
Parameters:
  dbConnection - An open connection to the database.
Parameters:
  feaTableName - The feature table that references this Geometry Col.
throws:
  SQLException - if there were problems accessing the database.
throws:
  SchemaException - if there were problems creating the schema.




Method Detail
getFeaTableCat
public String getFeaTableCat()(Code)
Getter method for Feature Catalog. the name of the catalog.



getFeaTableName
public String getFeaTableName()(Code)
Getter method for feature table name. the name of the feature table.



getFeaTableSchema
public String getFeaTableSchema()(Code)
Getter method for feature schema. the name of the schema.



getGeomColName
public String getGeomColName()(Code)
Getter method for geometry column. the name of the column.



getGeomTableCat
public String getGeomTableCat()(Code)
Getter method for Geometry Catalog. the name of the catalog.



getGeomTableName
public String getGeomTableName()(Code)
Getter method for geometry table name. the name of the catalog.



getGeomTableSchema
public String getGeomTableSchema()(Code)
Getter method for geometry schema the name of the schema.



getGeomType
public int getGeomType()(Code)
Gets the Geometry type of the geometry column. the int representation of the GeometryType



getGeometry
public Geometry getGeometry(int geomID) throws DataSourceException(Code)
Returns a jts Geometry when queried with a geometry ID.
Parameters:
  geomID - the ID of the feature geometry. a jts geometry represention of the stored data, returns null isit is not found.
throws:
  DataSourceException - if there is trouble with the Database.



getSchema
public FeatureType getSchema()(Code)
Gets the schema for this geometry column. the schema corresponding to this geometry column.



getStorageType
public int getStorageType()(Code)
Gets the type used for storage in the geometry column. 0 for NORMALIZED_STORAGE_TYPE, 1 for WKB_STORAGE_TYPE



makeSchema
public static FeatureType makeSchema(ResultSetMetaData metaData, String geoColumn) throws SQLException, SchemaException(Code)
Creates the schema, a FeatureType of the attributes.
Parameters:
  metaData - from the query of the feature table.
Parameters:
  geoColumn - the name of the geometry column in the feature table. a FeatureType of the attributes.
throws:
  SQLException - if there was database connectivity issues.
throws:
  SchemaException - if there was problems creating the FeatureType.



populateData
public void populateData(int geomID, String wellKnownText)(Code)
Stores the geometry information by geometry ID, so that it can be queried later. Currently only takes Well Known Text. This should eventually change to Well Known Binary, possible stored as a bit stream? And in time an overloaded populateData that allows for normalized SQL 92 storage.
Parameters:
  geomID - the primary key for a row in the Geometry Table;
Parameters:
  wellKnownText - the WKT representation of the geometry; tasks:TODO: Well Known Binary, and normalized SQL 92 (see SFS for forSQL spec 2.2.5)



removeData
public void removeData(int geomID)(Code)
Takes out a geometry according to its ID.
Parameters:
  geomID - the primary key for a rwo in the Geometry Table



setFeaTableCat
public void setFeaTableCat(String catalog)(Code)
Setter method for feature catalog.
Parameters:
  catalog - the name of the catalog.



setFeaTableName
public void setFeaTableName(String name)(Code)
Setter method for feature table name.
Parameters:
  name - the name of the feature table.



setFeaTableSchema
public void setFeaTableSchema(String schema)(Code)
Setter method for feature schema.
Parameters:
  schema - the name of the schema.



setGeomColName
public void setGeomColName(String name)(Code)
Setter method for geometry column.
Parameters:
  name - the name of the column.



setGeomTableCat
public void setGeomTableCat(String catalog)(Code)
Setter method for geometry catalog.
Parameters:
  catalog - the name of the catalog.



setGeomTableName
public void setGeomTableName(String name)(Code)
Setter method for geometry table name.
Parameters:
  name - the name of the geometry table.



setGeomTableSchema
public void setGeomTableSchema(String schema)(Code)
Setter method for geometry schema.
Parameters:
  schema - the name of the catalog.



setGeomType
public void setGeomType(int gType)(Code)
Sets the Geometry type of the geometry column.
Parameters:
  gType - the geometery type



setSchema
public void setSchema(FeatureType schema)(Code)
sets the schema for this geometry column.
Parameters:
  schema - for this geometry column.



setStorageType
public void setStorageType(int sType)(Code)
Sets the type used for storage in the geometry column.
Parameters:
  sType - 0 for NORMALIZED_STORAGE_TYPE 1, for WKB_STORAGE_TYPE



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.