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


java.lang.Object
   org.mmbase.storage.search.implementation.BasicSearchQuery

All known Subclasses:   org.mmbase.storage.search.implementation.NodeSearchQuery,
BasicSearchQuery
public class BasicSearchQuery implements SearchQuery,Cloneable(Code)
Basic implementation.
author:
   Rob van Maris
version:
   $Id: BasicSearchQuery.java,v 1.45 2008/02/22 12:28:19 michiel Exp $
since:
   MMBase-1.7


Field Summary
final public static  intCOPY_AGGREGATING
    
final public static  intCOPY_NORMAL
    
final public static  intCOPY_WITHOUTFIELDS
    
protected  List<StepField>fields
    

Constructor Summary
public  BasicSearchQuery(boolean aggregating)
     Constructor.
public  BasicSearchQuery()
     Constructor, constructs non-aggragating query.
public  BasicSearchQuery(SearchQuery q, int copyMethod)
     A deep copy, but sets also aggregating, and clear fields if aggregating is true then.
public  BasicSearchQuery(SearchQuery q)
     A deep copy.

Method Summary
public  BasicAggregatedFieldaddAggregatedField(Step step, CoreField field, int aggregationType)
     Adds new aggregated field to this SearchQuery.
Parameters:
  step - The associated step.
Parameters:
  field - The associated Field.
Parameters:
  aggregationType - The aggregation type.
public  BasicStepFieldaddField(Step step, CoreField fieldDefs)
     Adds new field to this SearchQuery.
Parameters:
  step - The associated step.
Parameters:
  fieldDefs - The associated fieldDefs.
public  BasicStepFieldaddFieldUnlessPresent(Step step, CoreField fieldDefs)
    
public  voidaddFields(Step step)
    
public  BasicRelationStepaddRelationStep(InsRel builder, MMObjectBuilder nextBuilder)
     Adds new relationstep to this SearchQuery. This adds the next step as well, it can be retrieved by calling org.mmbase.storage.search.RelationStep.getNext getNext() on the relationstep, and cast to BasicStep BasicStep .
Parameters:
  builder - The builder associated with the relation step.
Parameters:
  nextBuilder - The builder associated with the next step.
public  BasicSortOrderaddSortOrder(StepField field)
     Creates sortorder for this SearchQuery.
Parameters:
  field - The associated stepfield.
public  BasicStepaddStep(MMObjectBuilder builder)
     Adds new step to this SearchQuery.
Parameters:
  builder - The builder associated with the step.
public  Objectclone()
    
protected static  ConstraintcopyConstraint(SearchQuery q, Constraint c)
     Used by copy-constructor.
protected  voidcopyFields(SearchQuery q)
    
protected  voidcopySortOrders(SearchQuery q)
    
protected  voidcopySteps(SearchQuery q)
    
protected static  StepFieldcreateNewStepField(SearchQuery q, StepField f)
     Creates a new StepField like f for query q.
public  booleanequals(Object obj)
    
public  CachePolicygetCachePolicy()
    
public  ConstraintgetConstraint()
    
public  List<StepField>getFields()
    
public  intgetMaxNumber()
    
public  intgetOffset()
    
public  List<SortOrder>getSortOrders()
    
public  List<Step>getSteps()
    
public  inthashCode()
    
public  booleanisAggregating()
    
public  booleanisDistinct()
    
protected  voidmapField(CoreField field, BasicStepField stepField)
    
public  voidremoveFields()
    
public  voidsetCachePolicy(CachePolicy policy)
    
public  voidsetConstraint(Constraint constraint)
     Sets constraint.
public  BasicSearchQuerysetDistinct(boolean distinct)
     Sets distinct.
Parameters:
  distinct - The distinct value.
public  BasicSearchQuerysetMaxNumber(int maxNumber)
     Sets maxNumber.
Parameters:
  maxNumber - The maxNumber value.
public  BasicSearchQuerysetOffset(int offset)
     Sets offset.
Parameters:
  offset - The offset value.
public  StringtoString()
    

Field Detail
COPY_AGGREGATING
final public static int COPY_AGGREGATING(Code)



COPY_NORMAL
final public static int COPY_NORMAL(Code)



COPY_WITHOUTFIELDS
final public static int COPY_WITHOUTFIELDS(Code)



fields
protected List<StepField> fields(Code)




Constructor Detail
BasicSearchQuery
public BasicSearchQuery(boolean aggregating)(Code)
Constructor.
Parameters:
  aggregating - True for an aggregating query, false otherwise.



BasicSearchQuery
public BasicSearchQuery()(Code)
Constructor, constructs non-aggragating query.



BasicSearchQuery
public BasicSearchQuery(SearchQuery q, int copyMethod)(Code)
A deep copy, but sets also aggregating, and clear fields if aggregating is true then.



BasicSearchQuery
public BasicSearchQuery(SearchQuery q)(Code)
A deep copy. Needed if you want to do multiple queries (and change the query between them). Used by bridge.Query#clone (so it will be decided that that is not needed, ths can be removed too)
See Also:   org.mmbase.bridge.Query.clone




Method Detail
addAggregatedField
public BasicAggregatedField addAggregatedField(Step step, CoreField field, int aggregationType)(Code)
Adds new aggregated field to this SearchQuery.
Parameters:
  step - The associated step.
Parameters:
  field - The associated Field.
Parameters:
  aggregationType - The aggregation type. The new field.
throws:
  IllegalArgumentException - when an invalid argument is supplied.
throws:
  UnsupportedOperationException - when calledon an non-aggregating query.



addField
public BasicStepField addField(Step step, CoreField fieldDefs)(Code)
Adds new field to this SearchQuery.
Parameters:
  step - The associated step.
Parameters:
  fieldDefs - The associated fieldDefs. The new field.
throws:
  IllegalArgumentException - when an invalid argument is supplied.
throws:
  UnsupportedOperationException - when calledon an aggregating query.



addFieldUnlessPresent
public BasicStepField addFieldUnlessPresent(Step step, CoreField fieldDefs)(Code)

since:
   MMBase-1.8.2



addFields
public void addFields(Step step)(Code)
Add all fields of given step



addRelationStep
public BasicRelationStep addRelationStep(InsRel builder, MMObjectBuilder nextBuilder)(Code)
Adds new relationstep to this SearchQuery. This adds the next step as well, it can be retrieved by calling org.mmbase.storage.search.RelationStep.getNext getNext() on the relationstep, and cast to BasicStep BasicStep .
Parameters:
  builder - The builder associated with the relation step.
Parameters:
  nextBuilder - The builder associated with the next step. The new relationstep.
throws:
  IllegalArgumentException - when an invalid argument is supplied.
throws:
  IllegalStateException - when there is no previous step.



addSortOrder
public BasicSortOrder addSortOrder(StepField field)(Code)
Creates sortorder for this SearchQuery.
Parameters:
  field - The associated stepfield. The new sortOrder
throws:
  IllegalArgumentException - when an invalid argument is supplied.



addStep
public BasicStep addStep(MMObjectBuilder builder)(Code)
Adds new step to this SearchQuery.
Parameters:
  builder - The builder associated with the step. The new step.
throws:
  IllegalArgumentException - when an invalid argument is supplied.



clone
public Object clone()(Code)



copyConstraint
protected static Constraint copyConstraint(SearchQuery q, Constraint c)(Code)
Used by copy-constructor. Constraints have to be done recursively.



copyFields
protected void copyFields(SearchQuery q)(Code)



copySortOrders
protected void copySortOrders(SearchQuery q)(Code)



copySteps
protected void copySteps(SearchQuery q)(Code)



createNewStepField
protected static StepField createNewStepField(SearchQuery q, StepField f)(Code)
Creates a new StepField like f for query q.



equals
public boolean equals(Object obj)(Code)



getCachePolicy
public CachePolicy getCachePolicy()(Code)



getConstraint
public Constraint getConstraint()(Code)



getFields
public List<StepField> getFields()(Code)



getMaxNumber
public int getMaxNumber()(Code)



getOffset
public int getOffset()(Code)



getSortOrders
public List<SortOrder> getSortOrders()(Code)



getSteps
public List<Step> getSteps()(Code)



hashCode
public int hashCode()(Code)



isAggregating
public boolean isAggregating()(Code)



isDistinct
public boolean isDistinct()(Code)



mapField
protected void mapField(CoreField field, BasicStepField stepField)(Code)



removeFields
public void removeFields()(Code)



setCachePolicy
public void setCachePolicy(CachePolicy policy)(Code)



setConstraint
public void setConstraint(Constraint constraint)(Code)
Sets constraint.
Parameters:
  constraint - The constraint.
throws:
  IllegalArgumentException - when an invalid argument is supplied.



setDistinct
public BasicSearchQuery setDistinct(boolean distinct)(Code)
Sets distinct.
Parameters:
  distinct - The distinct value. This BasicSearchQuery instance.



setMaxNumber
public BasicSearchQuery setMaxNumber(int maxNumber)(Code)
Sets maxNumber.
Parameters:
  maxNumber - The maxNumber value. This BasicSearchQuery instance.
throws:
  IllegalArgumentException - when an invalid argument is supplied.



setOffset
public BasicSearchQuery setOffset(int offset)(Code)
Sets offset.
Parameters:
  offset - The offset value. This BasicSearchQuery instance.
throws:
  IllegalArgumentException - when an invalid argument is supplied.



toString
public String toString()(Code)



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.