Java Doc for JRAbstractQueryExecuter.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » query » 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 » Report » jasperreports 2.0.1 » net.sf.jasperreports.engine.query 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jasperreports.engine.query.JRAbstractQueryExecuter

All known Subclasses:   net.sf.jasperreports.engine.query.JRJpaQueryExecuter,  net.sf.jasperreports.olap.JRMondrianQueryExecuter,  net.sf.jasperreports.engine.query.JRXPathQueryExecuter,  net.sf.jasperreports.engine.query.JRJdbcQueryExecuter,  net.sf.jasperreports.olap.xmla.JRXmlaQueryExecuter,  net.sf.jasperreports.engine.query.JRHibernateQueryExecuter,
JRAbstractQueryExecuter
abstract public class JRAbstractQueryExecuter implements JRQueryExecuter(Code)
Base abstract query executer.
author:
   Lucian Chirita (lucianc@users.sourceforge.net)
version:
   $Id: JRAbstractQueryExecuter.java 1737 2007-06-04 15:18:39Z teodord $

Inner Class :protected static class QueryParameter

Field Summary
final protected static  intCLAUSE_POSITION_ID
    
final protected  MapclauseFunctions
     Clause function registry.
final protected  JRDatasetdataset
    

Constructor Summary
protected  JRAbstractQueryExecuter(JRDataset dataset, Map parametersMap)
    

Method Summary
protected  voidaddQueryMultiParameters(String parameterName, int count)
     Records a multi-valued query parameter.
protected  voidaddQueryParameter(String parameterName)
     Records a query parameter.
protected  voidappendClauseChunk(StringBuffer sbuffer, String[] clauseTokens)
     Handles a JRQueryChunk.TYPE_CLAUSE_TOKENS clause query chunk .
protected  voidappendParameterChunk(StringBuffer sbuffer, String chunkText)
    
protected  voidappendParameterClauseChunk(StringBuffer sbuffer, String chunkText)
    
protected  voidappendQueryChunk(StringBuffer sbuffer, JRQueryChunk chunk)
    
protected  voidappendTextChunk(StringBuffer sbuffer, String text)
    
protected  voidapplyClause(JRClauseFunction function, JRClauseTokens tokens, StringBuffer sbuffer)
    
protected  voidcheckParameter(String parameterName)
    
protected  ListgetCollectedParameterNames()
     Returns the list of parameter names in the order in which they appear in the query.
protected  ListgetCollectedParameters()
     Returns the list of QueryParameter query parameters in the order in which they appear in the query.
protected  JRFillParametergetParameter(String parameterName)
     Return a fill parameter from the paramter map.
abstract protected  StringgetParameterReplacement(String parameterName)
     Returns the replacement text for a query paramter.
protected  ObjectgetParameterValue(String parameterName, boolean ignoreMissing)
     Returns the value of a fill paramter.
protected  ObjectgetParameterValue(String parameterName)
     Returns the value of a fill paramter.
protected  StringgetQueryString()
     Returns the parsed query string with the paramter clauses replaced by the paramter values and the parameters replaced by JRAbstractQueryExecuter.getParameterReplacement(String) getParameterReplacement .
protected  JRValueParametergetValueParameter(String parameterName, boolean ignoreMissing)
     Return a value parameter from the paramters map.
protected  JRValueParametergetValueParameter(String parameterName)
     Return a value parameter from the parameters map.
protected  voidparseQuery()
     Parses the query and replaces the parameter clauses by the paramter values and the parameters by the return value of JRAbstractQueryExecuter.getParameterReplacement(String) getParameterReplacement .
protected  voidregisterClauseFunction(String id, JRClauseFunction function)
     Registers a clause function.
protected  JRClauseFunctionresolveFunction(String id)
     Resolves a clause function ID to a function instance.
protected  voidunregisterClauseFunction(String id)
     Unregisters a clause function.

Field Detail
CLAUSE_POSITION_ID
final protected static int CLAUSE_POSITION_ID(Code)



clauseFunctions
final protected Map clauseFunctions(Code)
Clause function registry.



dataset
final protected JRDataset dataset(Code)




Constructor Detail
JRAbstractQueryExecuter
protected JRAbstractQueryExecuter(JRDataset dataset, Map parametersMap)(Code)




Method Detail
addQueryMultiParameters
protected void addQueryMultiParameters(String parameterName, int count)(Code)
Records a multi-valued query parameter.
Parameters:
  parameterName - the parameter name
Parameters:
  count - the value count
See Also:   JRAbstractQueryExecuter.getCollectedParameters()
See Also:   QueryParameter.isMulti



addQueryParameter
protected void addQueryParameter(String parameterName)(Code)
Records a query parameter.
Parameters:
  parameterName - the parameter name
See Also:   JRAbstractQueryExecuter.getCollectedParameters()



appendClauseChunk
protected void appendClauseChunk(StringBuffer sbuffer, String[] clauseTokens)(Code)
Handles a JRQueryChunk.TYPE_CLAUSE_TOKENS clause query chunk .

The default implementation considers the first token as a JRClauseFunction clause function ID and delegates the call to the function.

Extending query executers can override this to implement custom query clause handling.


Parameters:
  sbuffer - the query text buffer
Parameters:
  clauseTokens - clause tokens
See Also:   JRAbstractQueryExecuter.registerClauseFunction(String,JRClauseFunction)
throws:
  JRRuntimeException - if there is no first token or no clause function is found for the ID



appendParameterChunk
protected void appendParameterChunk(StringBuffer sbuffer, String chunkText)(Code)



appendParameterClauseChunk
protected void appendParameterClauseChunk(StringBuffer sbuffer, String chunkText)(Code)



appendQueryChunk
protected void appendQueryChunk(StringBuffer sbuffer, JRQueryChunk chunk)(Code)



appendTextChunk
protected void appendTextChunk(StringBuffer sbuffer, String text)(Code)



applyClause
protected void applyClause(JRClauseFunction function, JRClauseTokens tokens, StringBuffer sbuffer)(Code)



checkParameter
protected void checkParameter(String parameterName)(Code)



getCollectedParameterNames
protected List getCollectedParameterNames()(Code)
Returns the list of parameter names in the order in which they appear in the query. the list of parameter names



getCollectedParameters
protected List getCollectedParameters()(Code)
Returns the list of QueryParameter query parameters in the order in which they appear in the query. the list of query parameters



getParameter
protected JRFillParameter getParameter(String parameterName)(Code)
Return a fill parameter from the paramter map.
Parameters:
  parameterName - the paramter name the parameterJRAbstractQueryExecuter.getValueParameter(String) getValueParameter(String)



getParameterReplacement
abstract protected String getParameterReplacement(String parameterName)(Code)
Returns the replacement text for a query paramter.
Parameters:
  parameterName - the paramter name the replacement text
See Also:   JRQueryChunk.TYPE_PARAMETER



getParameterValue
protected Object getParameterValue(String parameterName, boolean ignoreMissing)(Code)
Returns the value of a fill paramter.
Parameters:
  parameterName - the paramter name
Parameters:
  ignoreMissing - if true, the method will return null for non existing parameters;otherwise, an exception will be thrown if the parameter does not exist the parameter value



getParameterValue
protected Object getParameterValue(String parameterName)(Code)
Returns the value of a fill paramter.
Parameters:
  parameterName - the paramter name the parameter value



getQueryString
protected String getQueryString()(Code)
Returns the parsed query string with the paramter clauses replaced by the paramter values and the parameters replaced by JRAbstractQueryExecuter.getParameterReplacement(String) getParameterReplacement . the parsed query string



getValueParameter
protected JRValueParameter getValueParameter(String parameterName, boolean ignoreMissing)(Code)
Return a value parameter from the paramters map.
Parameters:
  parameterName - the paramter name
Parameters:
  ignoreMissing - if true, the method will return null for non existing parameters;otherwise, an exception will be thrown if the parameter does not exist the parameter



getValueParameter
protected JRValueParameter getValueParameter(String parameterName)(Code)
Return a value parameter from the parameters map.
Parameters:
  parameterName - the parameter name the parameter



parseQuery
protected void parseQuery()(Code)
Parses the query and replaces the parameter clauses by the paramter values and the parameters by the return value of JRAbstractQueryExecuter.getParameterReplacement(String) getParameterReplacement .



registerClauseFunction
protected void registerClauseFunction(String id, JRClauseFunction function)(Code)
Registers a clause function.
Parameters:
  id - the function ID
Parameters:
  function - the function



resolveFunction
protected JRClauseFunction resolveFunction(String id)(Code)
Resolves a clause function ID to a function instance.
Parameters:
  id - the function ID the clause function registered for the ID
throws:
  JRRuntimeException - if no function for the ID is found



unregisterClauseFunction
protected void unregisterClauseFunction(String id)(Code)
Unregisters a clause function.
Parameters:
  id - the function ID



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.