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


java.lang.Object
   org.geotools.arcsde.data.TestData

TestData
public class TestData (Code)
Provides access to the ArcSDEDataStore test data configuration.
author:
   Gabriel Roldan, Axios Engineering
version:
   $Id: TestData.java 27863 2007-11-12 20:34:34Z desruisseaux $


Field Summary
final static  StringCOORD_SYS
    

Constructor Summary
public  TestData()
     Creates a new TestData object.

Method Summary
public  voidcreateTempTable(boolean insertTestData)
     Creates an ArcSDE feature type names as getTemp_table() on the underlying database and if insertTestData == true also inserts some sample values.
public  FeatureCollectioncreateTestFeatures(Class jtsGeomType, int numFeatures)
     Creates a FeatureCollection with features whose schema adheres to the one created in createTestData() and returns it.
public  voiddeleteTempTable()
    
public  voiddeleteTempTable(ArcSDEConnectionPool pool)
    
public  PropertiesgetConProps()
    
public  StringgetConfigKeyword()
    
public  ArcSDEConnectionPoolgetConnectionPool()
    
public  ArcSDEDataStoregetDataStore()
    
public static  SeCoordinateReferencegetGenericCoordRef()
     Creates and returns a SeCoordinateReference CRS, though based on WGS84, is inclusive enough (in terms of valid coordinate range and presicion) to deal with most coordintates.
public  StringgetLine_table()
    
public  StringgetPoint_table()
    
public  StringgetPolygon_table()
    
public  StringgetTemp_table()
    
public  voidsetConProps(Properties conProps)
    
public  voidsetLine_table(String line_table)
    
public  voidsetPoint_table(String point_table)
    
public  voidsetPolygon_table(String polygon_table)
    
public  voidsetUp()
     Must be called from inside the test's setUp() method.
public  voidtearDown(boolean cleanTestTable, boolean cleanPool)
     Must be called from inside the test's tearDown() method.

Field Detail
COORD_SYS
final static String COORD_SYS(Code)
DOCUMENT ME!




Constructor Detail
TestData
public TestData() throws IOException(Code)
Creates a new TestData object.
throws:
  IOException - DOCUMENT ME!




Method Detail
createTempTable
public void createTempTable(boolean insertTestData) throws SeException, IOException, UnavailableArcSDEConnectionException(Code)
Creates an ArcSDE feature type names as getTemp_table() on the underlying database and if insertTestData == true also inserts some sample values.
Parameters:
  insertTestData - wether to insert some sample rows or not
throws:
  SeException - for any error
throws:
  IOException - DOCUMENT ME!
throws:
  UnavailableArcSDEConnectionException - DOCUMENT ME!



createTestFeatures
public FeatureCollection createTestFeatures(Class jtsGeomType, int numFeatures) throws IOException, IllegalAttributeException(Code)
Creates a FeatureCollection with features whose schema adheres to the one created in createTestData() and returns it.

This schema is something like:

 colDefs[0] "INT32_COL", SeColumnDefinition.TYPE_INTEGER, 10, 0, true
 colDefs[1] = "INT16_COL", SeColumnDefinition.TYPE_SMALLINT, 4, 0, true
 colDefs[2] = "FLOAT32_COL", SeColumnDefinition.TYPE_FLOAT, 5, 2, true
 colDefs[3] = "FLOAT64_COL", SeColumnDefinition.TYPE_DOUBLE, 15, 4, true
 colDefs[4] = "STRING_COL", SeColumnDefinition.TYPE_STRING, 25, 0, true
 colDefs[5] = "DATE_COL", SeColumnDefinition.TYPE_DATE, 1, 0, true
 colDefs[6] = "SHAPE", Geometry, 1, 0, true
 


Parameters:
  jtsGeomType - class of JTS geometry to create
Parameters:
  numFeatures - number of features to create.
throws:
  IOException - if the schema for te test table cannot be fetched from thedatabase.
throws:
  IllegalAttributeException - if the feature type created from the test table cannot builda feature with the given attribute values.



deleteTempTable
public void deleteTempTable()(Code)
DOCUMENT ME!



deleteTempTable
public void deleteTempTable(ArcSDEConnectionPool pool)(Code)
DOCUMENT ME!
Parameters:
  pool - DOCUMENT ME!



getConProps
public Properties getConProps()(Code)
DOCUMENT ME! Returns the conProps.



getConfigKeyword
public String getConfigKeyword()(Code)



getConnectionPool
public ArcSDEConnectionPool getConnectionPool() throws DataSourceException(Code)



getDataStore
public ArcSDEDataStore getDataStore() throws IOException(Code)
creates an ArcSDEDataStore using test-data/testparams.properties as holder of datastore parameters DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



getGenericCoordRef
public static SeCoordinateReference getGenericCoordRef() throws SeException(Code)
Creates and returns a SeCoordinateReference CRS, though based on WGS84, is inclusive enough (in terms of valid coordinate range and presicion) to deal with most coordintates.

Actually tested to deal with coordinates with 0.0002 units of separation as well as with large coordinates such as UTM (values greater than 500,000.00)

DOCUMENT ME!
throws:
  SeException - DOCUMENT ME!



getLine_table
public String getLine_table()(Code)
DOCUMENT ME! Returns the line_table.



getPoint_table
public String getPoint_table()(Code)
DOCUMENT ME! Returns the point_table.



getPolygon_table
public String getPolygon_table()(Code)
DOCUMENT ME! Returns the polygon_table.



getTemp_table
public String getTemp_table()(Code)
DOCUMENT ME! Returns the temp_table.



setConProps
public void setConProps(Properties conProps)(Code)
DOCUMENT ME!
Parameters:
  conProps - The conProps to set.



setLine_table
public void setLine_table(String line_table)(Code)
DOCUMENT ME!
Parameters:
  line_table - The line_table to set.



setPoint_table
public void setPoint_table(String point_table)(Code)
DOCUMENT ME!
Parameters:
  point_table - The point_table to set.



setPolygon_table
public void setPolygon_table(String polygon_table)(Code)
DOCUMENT ME!
Parameters:
  polygon_table - The polygon_table to set.



setUp
public void setUp() throws IOException(Code)
Must be called from inside the test's setUp() method. Loads the test fixture from testparams.properties, besides that, does not creates any connection nor any other costly resource.
throws:
  IOException - DOCUMENT ME!



tearDown
public void tearDown(boolean cleanTestTable, boolean cleanPool)(Code)
Must be called from inside the test's tearDown() method.



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.