Java Doc for SearchQueryHandler.java in  » Database-ORM » MMBase » org » mmbase » storage » search » 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 » Database ORM » MMBase » org.mmbase.storage.search 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mmbase.storage.search.SearchQueryHandler

All known Subclasses:   org.mmbase.storage.search.implementation.database.BasicQueryHandler,
SearchQueryHandler
public interface SearchQueryHandler (Code)
Defines methods for an object that handles search query requests.
author:
   Rob van Maris
version:
   $Id: SearchQueryHandler.java,v 1.7 2007/11/06 17:12:38 michiel Exp $
since:
   MMBase-1.7


Field Summary
final public static  intFEATURE_MAX_NUMBER
     Feature that allows specifying the maximum number of results to be returned.
final public static  intFEATURE_OFFSET
     Feature that allows specifying an index in the list of results, as a starting popublic final static int for results to be returned.
final public static  intFEATURE_REGEXP
     Feature that allows to search on string by a regular expression.
final public static  intSUPPORT_NONE
     Support level for features that are not supported.
final public static  intSUPPORT_NORMAL
     Support level for features that are available for use under normal circumstances.
final public static  intSUPPORT_OPTIMAL
     Support level for features that are optimally supported.
final public static  intSUPPORT_WEAK
     Support level for features that are supported, but not recommended when performance is critical.


Method Summary
public  StringcreateSqlString(SearchQuery query)
     Makes a String of a query, taking into consideration if the database supports offset and maxnumber features.
public  List<org.mmbase.module.core.MMObjectNode>getNodes(SearchQuery query, MMObjectBuilder builder)
     Processes a search query, returns the result as a list of nodes. Depending on the specified builder, the results will be:
  • Resultnodes, with fields named according to the field aliases specified by the query.
  • Clusternodes, with fields named <step alias>.<field name>, where the step alias is required to be of the form <step tablename><x>, and <x> is either empty or a single digit.
public  intgetSupportLevel(int feature, SearchQuery query)
     Gets the level at which a feature is supported for a query by this handler.
public  intgetSupportLevel(Constraint constraint, SearchQuery query)
     Gets the level at which a constraint is supported for a query by this handler.

Field Detail
FEATURE_MAX_NUMBER
final public static int FEATURE_MAX_NUMBER(Code)
Feature that allows specifying the maximum number of results to be returned.
See Also:   SearchQuery.getMaxNumber



FEATURE_OFFSET
final public static int FEATURE_OFFSET(Code)
Feature that allows specifying an index in the list of results, as a starting popublic final static int for results to be returned.
See Also:   SearchQuery.getOffset



FEATURE_REGEXP
final public static int FEATURE_REGEXP(Code)
Feature that allows to search on string by a regular expression.
See Also:   SearchQuery.getOffset



SUPPORT_NONE
final public static int SUPPORT_NONE(Code)
Support level for features that are not supported.



SUPPORT_NORMAL
final public static int SUPPORT_NORMAL(Code)
Support level for features that are available for use under normal circumstances.



SUPPORT_OPTIMAL
final public static int SUPPORT_OPTIMAL(Code)
Support level for features that are optimally supported. This applies also to features that are supported without a significant impact on performance penalty.



SUPPORT_WEAK
final public static int SUPPORT_WEAK(Code)
Support level for features that are supported, but not recommended when performance is critical.





Method Detail
createSqlString
public String createSqlString(SearchQuery query) throws SearchQueryException(Code)
Makes a String of a query, taking into consideration if the database supports offset and maxnumber features. The resulting String is an SQL query which can be fed to the database.
Parameters:
  query - the query to convert to sql the sql string
throws:
  SearchQueryException - when error occurs while making the string
since:
   MMBase-1.8.5



getNodes
public List<org.mmbase.module.core.MMObjectNode> getNodes(SearchQuery query, MMObjectBuilder builder) throws SearchQueryException(Code)
Processes a search query, returns the result as a list of nodes. Depending on the specified builder, the results will be:
  • Resultnodes, with fields named according to the field aliases specified by the query.
  • Clusternodes, with fields named <step alias>.<field name>, where the step alias is required to be of the form <step tablename><x>, and <x> is either empty or a single digit. Examples:
    images.number, images0.number, images1.number
  • Real nodes, where all fields are required to be included in the query.

Parameters:
  query - The search query.
Parameters:
  builder - The builder for the result nodes. Specify aResultBuilder ResultBuilderto get resultnodes.org.mmbase.module.core.ClusterBuilder ClusterBuilderto get clusternodes. The resulting nodes.
See Also:   ResultNode
See Also:   org.mmbase.module.core.ClusterNode



getSupportLevel
public int getSupportLevel(int feature, SearchQuery query) throws SearchQueryException(Code)
Gets the level at which a feature is supported for a query by this handler. This is one of either: Given the choice, the query handler with the highest level of support is prefered.



getSupportLevel
public int getSupportLevel(Constraint constraint, SearchQuery query) throws SearchQueryException(Code)
Gets the level at which a constraint is supported for a query by this handler. This is one of either: Given the choice, the query handler with the highest level of support is prefered.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.