Java Doc for AbstractRequestHandler.java in  » GIS » deegree » org » deegree » io » datastore » sql » 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 » deegree » org.deegree.io.datastore.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.deegree.io.datastore.sql.AbstractRequestHandler

All known Subclasses:   org.deegree.io.datastore.sql.transaction.SQLTransaction,  org.deegree.io.datastore.sql.transaction.UpdateHandler,  org.deegree.io.datastore.sql.FeatureFetcher,  org.deegree.io.datastore.sql.transaction.insert.InsertHandler,  org.deegree.io.datastore.sql.LockHandler,  org.deegree.io.datastore.sql.transaction.delete.DeleteHandler,
AbstractRequestHandler
public class AbstractRequestHandler (Code)
This abstract class implements some common SQL functionality needed by request handlers for SQL based datastores.
See Also:   QueryHandler
author:
   Markus Schneider
author:
   last edited by: $Author: aschmitz $
version:
   $Revision: 10299 $, $Date: 2008-02-26 00:42:07 -0800 (Tue, 26 Feb 2008) $


Field Summary
final protected static  StringFT_COLUMN
     Column used for disambiguation of feature properties that contain features that have more than one concrete type.
final protected static  StringFT_PREFIX
     Column prefix used for disambiguation of feature properties that contain features that have more than one concrete type.
protected  TableAliasGeneratoraliasGenerator
    
protected  Connectionconn
    
protected  AbstractSQLDatastoredatastore
    

Constructor Summary
public  AbstractRequestHandler(AbstractSQLDatastore ds, TableAliasGenerator aliasGenerator, Connection conn)
     Creates a new instance of AbstractRequestHandler from the given parameters.

Method Summary
public  voidappendColumnsList(StatementBuffer query, String[] columns)
     Appends the specified columns as a comma-separated list to the given query.
protected  voidappendFeatureIdColumns(MappedFeatureType featureType, String tableAlias, StatementBuffer query)
     Appends the alias qualified columns that make up the feature id to the given query.
protected  voidappendFeatureIdConstraint(StatementBuffer query, FeatureId fid)
    
protected  voidappendFeatureIdConstraint(StatementBuffer query, FeatureId fid, String tableAlias)
    
protected  voidappendJoinCondition(TableRelation tableRelation, String fromAlias, String toAlias, StatementBuffer query)
    
protected  voidappendJoins(TableRelation[] tableRelation, String fromAlias, String[] toAliases, StatementBuffer query)
    
public  voidappendQualifiedColumn(StatementBuffer query, String tableAlias, String column)
     Appends the specified column to the given query.
public  voidappendQualifiedColumnsList(StatementBuffer query, String tableAlias, String[] columns)
     Appends the specified columns as alias-qualified, comma-separated list to the given query.
public  List<FeatureId>determineAffectedAndModifiableFIDs(MappedFeatureType ft, Filter filter, String lockId)
     Determines the feature ids that are matched by the given filter and that are either not locked or locked by the specified lockId.
public  List<FeatureId>determineAffectedFIDs(MappedFeatureType ft, Filter filter)
     Determines the feature ids that are matched by the given filter.
public  Map<MappedFeaturePropertyType, List<FeatureId>>determineSubFeatures(FeatureId fid)
     Determines all complex properties and contained subfeature ids for a certain feature.
public  Set<FeatureId>determineSuperFeatures(FeatureId fid)
     Determines all super features (as FeatureId instances) for a certain feature.
protected  FeatureIdextractFeatureId(ResultSet rs, MappedFeatureType ft)
     Extracts the FeatureId in the current row of the given ResultSet .
protected  List<FeatureId>extractFeatureIds(ResultSet rs, MappedFeatureType ft)
     Extracts the feature ids in the given ResultSet as a List of FeatureIds.

Field Detail
FT_COLUMN
final protected static String FT_COLUMN(Code)
Column used for disambiguation of feature properties that contain features that have more than one concrete type.



FT_PREFIX
final protected static String FT_PREFIX(Code)
Column prefix used for disambiguation of feature properties that contain features that have more than one concrete type.



aliasGenerator
protected TableAliasGenerator aliasGenerator(Code)



conn
protected Connection conn(Code)



datastore
protected AbstractSQLDatastore datastore(Code)




Constructor Detail
AbstractRequestHandler
public AbstractRequestHandler(AbstractSQLDatastore ds, TableAliasGenerator aliasGenerator, Connection conn)(Code)
Creates a new instance of AbstractRequestHandler from the given parameters.
Parameters:
  ds -
Parameters:
  aliasGenerator -
Parameters:
  conn -




Method Detail
appendColumnsList
public void appendColumnsList(StatementBuffer query, String[] columns)(Code)
Appends the specified columns as a comma-separated list to the given query.
Parameters:
  query - StatementBuffer that the list is appended to
Parameters:
  columns - array of column names



appendFeatureIdColumns
protected void appendFeatureIdColumns(MappedFeatureType featureType, String tableAlias, StatementBuffer query)(Code)
Appends the alias qualified columns that make up the feature id to the given query.
Parameters:
  featureType -
Parameters:
  tableAlias -
Parameters:
  query -



appendFeatureIdConstraint
protected void appendFeatureIdConstraint(StatementBuffer query, FeatureId fid)(Code)



appendFeatureIdConstraint
protected void appendFeatureIdConstraint(StatementBuffer query, FeatureId fid, String tableAlias)(Code)



appendJoinCondition
protected void appendJoinCondition(TableRelation tableRelation, String fromAlias, String toAlias, StatementBuffer query)(Code)



appendJoins
protected void appendJoins(TableRelation[] tableRelation, String fromAlias, String[] toAliases, StatementBuffer query)(Code)



appendQualifiedColumn
public void appendQualifiedColumn(StatementBuffer query, String tableAlias, String column)(Code)
Appends the specified column to the given query.
Parameters:
  query - StatementBuffer that the list is appended to
Parameters:
  tableAlias - alias to use as qualifier (alias.field)
Parameters:
  column - column name



appendQualifiedColumnsList
public void appendQualifiedColumnsList(StatementBuffer query, String tableAlias, String[] columns)(Code)
Appends the specified columns as alias-qualified, comma-separated list to the given query.
Parameters:
  query - StatementBuffer that the list is appended to
Parameters:
  tableAlias - alias to use as qualifier (alias.field)
Parameters:
  columns - array of column names



determineAffectedAndModifiableFIDs
public List<FeatureId> determineAffectedAndModifiableFIDs(MappedFeatureType ft, Filter filter, String lockId) throws DatastoreException(Code)
Determines the feature ids that are matched by the given filter and that are either not locked or locked by the specified lockId.
Parameters:
  ft - non-abstract feature type
Parameters:
  filter - constraints the feature instances
Parameters:
  lockId - optional id of associated lock (may be null) the feature ids that are matched by the given filter
throws:
  DatastoreException -



determineAffectedFIDs
public List<FeatureId> determineAffectedFIDs(MappedFeatureType ft, Filter filter) throws DatastoreException(Code)
Determines the feature ids that are matched by the given filter.
Parameters:
  ft - non-abstract feature type
Parameters:
  filter - constraints the feature instances the feature ids that are matched by the given filter
throws:
  DatastoreException -



determineSubFeatures
public Map<MappedFeaturePropertyType, List<FeatureId>> determineSubFeatures(FeatureId fid) throws DatastoreException(Code)
Determines all complex properties and contained subfeature ids for a certain feature.
Parameters:
  fid - id of the feature all complex properties and contained subfeature ids of the feature
throws:
  DatastoreException -



determineSuperFeatures
public Set<FeatureId> determineSuperFeatures(FeatureId fid) throws DatastoreException(Code)
Determines all super features (as FeatureId instances) for a certain feature.
Parameters:
  fid - id of the feature all super feature ids of the feature
throws:
  DatastoreException -



extractFeatureId
protected FeatureId extractFeatureId(ResultSet rs, MappedFeatureType ft) throws SQLException, DatastoreException(Code)
Extracts the FeatureId in the current row of the given ResultSet .
Parameters:
  rs -
Parameters:
  ft - feature type (may not be abstract) feature ids
throws:
  SQLException -
throws:
  DatastoreException -



extractFeatureIds
protected List<FeatureId> extractFeatureIds(ResultSet rs, MappedFeatureType ft) throws SQLException, DatastoreException(Code)
Extracts the feature ids in the given ResultSet as a List of FeatureIds.

If the given feature type is abstract, it is expected that the first column of the result set contains the local name of the feature type.
Parameters:
  rs -
Parameters:
  ft - feature type (may be abstract) feature ids
throws:
  SQLException -
throws:
  DatastoreException -




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.