Java Doc for ArcSDEQuery.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.ArcSDEQuery

ArcSDEQuery
class ArcSDEQuery (Code)
Wrapper class for SeQuery to hold a SeConnection until close() is called and provide utility methods.
author:
   Gabriel Roldan, Axios Engineering
version:
   $Id: ArcSDEQuery.java 27863 2007-11-12 20:34:34Z desruisseaux $

Inner Class :public static class FilterSet

Field Summary
 ArcSDEPooledConnectionconnection
     The connection to the ArcSDE server obtained when first created the SeQuery in getSeQuery.


Method Summary
public static  EnvelopecalculateQueryExtent(ArcSDEDataStore ds, Query query)
     Convenient method to just calculate the resulting bound box of a given query.
public  EnvelopecalculateQueryExtent()
     Returns the envelope for all features within the layer that pass any SQL construct, state, or spatial constraints for the stream.
public static  intcalculateResultCount(ArcSDEDataStore ds, Query query)
     Convenient method to just calculate the result count of a given query.
public  intcalculateResultCount()
     if the query has been parsed as just a where clause filter, or has no filter at all, the result count calculation is optimized by selecting a count() single row.
public  voidcancel(boolean reset)
     Cancels the current operation on the stream.
public  voidclose()
     Closes the query and releases the holded connection back to the connection pool.
public static  ArcSDEQuery.FilterSetcreateFilters(SeLayer layer, FeatureType schema, Filter filter, SeQueryInfo qInfo, PlainSelect viewSelect, FIDReader fidReader)
    
public static  ArcSDEQuerycreateQuery(ArcSDEDataStore store, Query query)
    
public static  ArcSDEQuerycreateQuery(ArcSDEDataStore store, FeatureType schema, Query query)
    
public  voidexecute()
     Tells the server to execute a stream operation.
public  SdeRowfetch()
     Fetches an SeRow of data.
public  voidflushBufferedWrites()
     Flushes any outstanding insert/update buffers.
public  FIDReadergetFidReader()
    
public  ArcSDEQuery.FilterSetgetFilters()
    
public  FeatureTypegetSchema()
    
public  voidprepareQuery()
     Initializes a stream with a query using a selected set of columns and an SeSqlConstruct object for the where clause.
public  voidsetRowLocking(int lockActions)
     Sets the row locking environment for a stream.

The row locking environment remains in effect until the stream is closed with reset TRUE or the stream is freed.

public  voidsetSpatialConstraints(SeFilter[] filters)
    
public  StringtoString()
    

Field Detail
connection
ArcSDEPooledConnection connection(Code)
The connection to the ArcSDE server obtained when first created the SeQuery in getSeQuery. It is retained until close() is called. Do not use it directly, but through getConnection().

NOTE: this member is package visible only for unit test pourposes






Method Detail
calculateQueryExtent
public static Envelope calculateQueryExtent(ArcSDEDataStore ds, Query query) throws IOException(Code)
Convenient method to just calculate the resulting bound box of a given query.
Parameters:
  ds - DOCUMENT ME!
Parameters:
  query - DOCUMENT ME! DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



calculateQueryExtent
public Envelope calculateQueryExtent() throws IOException(Code)
Returns the envelope for all features within the layer that pass any SQL construct, state, or spatial constraints for the stream. DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!
throws:
  DataSourceException - DOCUMENT ME!



calculateResultCount
public static int calculateResultCount(ArcSDEDataStore ds, Query query) throws IOException(Code)
Convenient method to just calculate the result count of a given query.
Parameters:
  ds -
Parameters:
  query -
throws:
  IOException -



calculateResultCount
public int calculateResultCount() throws IOException(Code)
if the query has been parsed as just a where clause filter, or has no filter at all, the result count calculation is optimized by selecting a count() single row. If the filter involves any kind of spatial filter, such as BBOX, the calculation can't be optimized by this way, because the ArcSDE Java API throws a "DATABASE LEVEL ERROR OCURRED" exception. So, in this case, a query over the shape field is made and the result is traversed counting the number of rows inside a while loop DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!
throws:
  DataSourceException - DOCUMENT ME!



cancel
public void cancel(boolean reset) throws IOException(Code)
Cancels the current operation on the stream. If reset is TRUE, the query status is set to INACTIVE. If reset is FALSE the query status is set to CLOSED.
Parameters:
  reset - if true the Query is closed, else it is resetted to bereused
throws:
  IOException - DOCUMENT ME!
throws:
  DataSourceException - DOCUMENT ME!



close
public void close()(Code)
Closes the query and releases the holded connection back to the connection pool. If reset is TRUE, the query status is set to INACTIVE; also releases the SeConnection back to the SeConnectionPool



createFilters
public static ArcSDEQuery.FilterSet createFilters(SeLayer layer, FeatureType schema, Filter filter, SeQueryInfo qInfo, PlainSelect viewSelect, FIDReader fidReader) throws NoSuchElementException, IOException(Code)
DOCUMENT ME!
Parameters:
  store - DOCUMENT ME!
Parameters:
  typeName - DOCUMENT ME!
Parameters:
  filter - DOCUMENT ME! DOCUMENT ME!
throws:
  NoSuchElementException - DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



createQuery
public static ArcSDEQuery createQuery(ArcSDEDataStore store, Query query) throws IOException(Code)
DOCUMENT ME!
Parameters:
  store - DOCUMENT ME!
Parameters:
  query - DOCUMENT ME! DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



createQuery
public static ArcSDEQuery createQuery(ArcSDEDataStore store, FeatureType schema, Query query) throws IOException(Code)
DOCUMENT ME!
Parameters:
  store - DOCUMENT ME!
Parameters:
  schema - DOCUMENT ME!
Parameters:
  query - DOCUMENT ME! the newly created ArcSDEQuery or null if Filter.EXCLUDE ==query.getFilter().
throws:
  IOException - see throws DataSourceException bellow.
throws:
  NullPointerException - if some of the arguments is null.
throws:
  DataSourceException - DOCUMENT ME!



execute
public void execute() throws IOException(Code)
Tells the server to execute a stream operation.
throws:
  IOException - DOCUMENT ME!
throws:
  DataSourceException - DOCUMENT ME!



fetch
public SdeRow fetch() throws IOException, IllegalStateException(Code)
Fetches an SeRow of data. DOCUMENT ME!
throws:
  IOException - (DataSourceException) if the fetching fails
throws:
  IllegalStateException - if the query was already closed or ArcSDEQuery.execute() hastn'tbeen called yet



flushBufferedWrites
public void flushBufferedWrites() throws IOException(Code)
Flushes any outstanding insert/update buffers.
throws:
  IOException - DOCUMENT ME!
throws:
  DataSourceException - DOCUMENT ME!



getFidReader
public FIDReader getFidReader()(Code)
Returns the FID strategy used DOCUMENT ME!



getFilters
public ArcSDEQuery.FilterSet getFilters()(Code)
DOCUMENT ME! DOCUMENT ME!



getSchema
public FeatureType getSchema()(Code)
Returns the schema of the originating Query the schema of the originating Query



prepareQuery
public void prepareQuery() throws IOException(Code)
Initializes a stream with a query using a selected set of columns and an SeSqlConstruct object for the where clause. The where clause can?t contain any ORDER BY or GROUP BY clauses.
throws:
  IOException - DOCUMENT ME!
throws:
  DataSourceException - DOCUMENT ME!



setRowLocking
public void setRowLocking(int lockActions) throws IOException(Code)
Sets the row locking environment for a stream.

The row locking environment remains in effect until the stream is closed with reset TRUE or the stream is freed. The row lock types are:

  • SE_ROWLOCKING_LOCK_ON_QUERY - Rows selected by a query are locked.
  • SE_ROWLOCKING_LOCK_ON_INSERT - New rows are locked when inserted.
  • SE_ROWLOCKING_LOCK_ON_UPDATE - Updated rows are locked.
  • SE_ROWLOCKING_UNLOCK_ON_QUERY - Locks are removed upon query.
  • SE_ROWLOCKING_UNLOCK_ON_UPDATE - Modified rows are unlocked.
  • SE_ROWLOCKING_FILTER_MY_LOCKS - Only rows locked by the user are returned on query.
  • SE_ROWLOCKING_FILTER_OTHER_LOCKS - Only rows locked by other users are returned on query.
  • SE_ROWLOCKING_FILTER_UNLOCKED - Only unlocked rows are returned.
  • SE_ROWLOCKING_LOCK_ONLY - Query operations lock but don't return rows.


Parameters:
  lockActions - DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!
throws:
  DataSourceException - DOCUMENT ME!



setSpatialConstraints
public void setSpatialConstraints(SeFilter[] filters) throws IOException(Code)
Sets the spatial filters on the query using SE_OPTIMIZE as the policy for spatial index search
Parameters:
  filters - a set of spatial constraints to filter upon
throws:
  IOException - DOCUMENT ME!
throws:
  DataSourceException - DOCUMENT ME!



toString
public String toString()(Code)
DOCUMENT ME! DOCUMENT ME!



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.