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


java.lang.Object
   org.mmbase.bridge.implementation.BasicQuery

All known Subclasses:   org.mmbase.bridge.implementation.BasicNodeQuery,
BasicQuery
public class BasicQuery implements Query(Code)
'Basic' implementation of bridge Query. Wraps a 'BasicSearchQuery' from core. This implementation is actually ussuable with other implementations of bridge too, because it has the public constructor: BasicQuery.BasicQuery(Cloud,BasicSearchQuery) .
author:
   Michiel Meeuwissen
version:
   $Id: BasicQuery.java,v 1.71 2008/02/27 11:48:44 michiel Exp $
since:
   MMBase-1.7
See Also:   org.mmbase.storage.search.implementation.BasicSearchQuery


Field Summary
protected  booleanaggregating
     Whether this Query is aggregating.
protected  Cloudcloud
     reference to the cloud.
protected  List<StepField>explicitFields
     The explicitely added 'extra' fields.
protected  List<StepField>implicitFields
     The implicitely added 'extra' fields.
protected  ConstraintinsecureConstraint
     If a the contraint was made 'secure', in insecureConstraint the original Constraint is stored.
protected  BasicSearchQueryquery
    
protected  Authorization.QueryCheckqueryCheck
     The QueryCheck object associated with this Query, or null if no such object was determined yet.
protected  booleanused
     Whether this Query was used already.

Constructor Summary
 BasicQuery(Cloud c)
    
 BasicQuery(Cloud c, boolean aggregating)
    
public  BasicQuery(Cloud c, BasicSearchQuery q)
    

Method Summary
public  AggregatedFieldaddAggregatedField(Step step, Field field, int aggregationType)
    
public  StepFieldaddField(Step step, Field field)
    
public  StepFieldaddField(String fieldIdentifier)
    
protected  voidaddFieldImplicit(Step step, Field field)
     Fields which are added 'implicity' should be added by this function.
public  voidaddNode(Step s, int nodeNumber)
    
public  voidaddNode(Step s, Node node)
    
protected  BasicRelationStepaddRelationStep(InsRel insrel, NodeManager otherNodeManager, int direction)
    
public  RelationStepaddRelationStep(NodeManager otherNodeManager)
    
public  RelationStepaddRelationStep(NodeManager otherNodeManager, String role, String direction)
    
protected  RelationStepaddRelationStep(NodeManager otherNodeManager, String role, String direction, boolean warnOnImpossibleStep)
    
public  SortOrderaddSortOrder(StepField f, int direction)
    
public  SortOrderaddSortOrder(StepField f, int direction, boolean caseSensitive)
    
public  SortOrderaddSortOrder(StepField f, int direction, boolean caseSensitive, int part)
    
public  StepaddStep(NodeManager nm)
    
public  QueryaggregatingClone()
    
public  Objectclone()
    
public  QuerycloneWithoutFields()
    
protected  StringcreateAlias(String name)
    
public  LegacyConstraintcreateConstraint(String s)
    
public  FieldNullConstraintcreateConstraint(StepField f)
    
public  FieldValueConstraintcreateConstraint(StepField f, Object v)
    
public  FieldValueConstraintcreateConstraint(StepField f, int op, Object v, int part)
    
public  FieldValueConstraintcreateConstraint(StepField f, int op, Object v)
    
public  CompareFieldsConstraintcreateConstraint(StepField f, int op, StepField v)
    
public  FieldValueBetweenConstraintcreateConstraint(StepField f, Object o1, Object o2)
    
public  FieldValueInConstraintcreateConstraint(StepField f, SortedSet<? extends Object> v)
    
public  CompositeConstraintcreateConstraint(Constraint c1, int operator, Constraint c2)
    
protected  voidcreateNewQuery()
    
public  StepFieldcreateStepField(Step step, Field field)
    
public  StepFieldcreateStepField(Step step, String fieldName)
    
public  StepFieldcreateStepField(String fieldIdentifier)
    
public  booleanequals(Object obj)
    
public  CachePolicygetCachePolicy()
    
public  ConstraintgetCleanConstraint()
    
public  CloudgetCloud()
    
public  ConstraintgetConstraint()
    
public  List<StepField>getFields()
    
public  NodeListgetList()
    
public  intgetMaxNumber()
    
public  intgetOffset()
    
public  BasicSearchQuerygetQuery()
    
public  List<SortOrder>getSortOrders()
    
public  StepgetStep(String stepAlias)
    
public  List<Step>getSteps()
    
protected  StringglueAlias(String aliasBase, Integer seq)
     Glues a string and integer together to a new string.
public  inthashCode()
    
public  booleanisAggregating()
    
public  booleanisDistinct()
    
 booleanisSecure()
    
public  booleanisUsed()
    
public  booleanmarkUsed()
    
public  voidremoveFields()
    
 voidremoveSecurityConstraint()
    
protected  voidremoveSecurityConstraintFromClone(BasicSearchQuery clone)
    
public  voidsetAlias(Step step, String alias)
    
public  voidsetCachePolicy(CachePolicy policy)
    
public  FieldConstraintsetCaseSensitive(FieldConstraint c, boolean s)
    
public  voidsetConstraint(Constraint c)
    
public  QuerysetDistinct(boolean distinct)
    
public  ConstraintsetInverse(Constraint c, boolean i)
    
public  QuerysetMaxNumber(int maxNumber)
    
public  QuerysetOffset(int offset)
    
 voidsetSecurityConstraint(Authorization.QueryCheck c)
     Applies a security-constraint to this Query.
public  StringtoSql()
    
public  StringtoString()
    

Field Detail
aggregating
protected boolean aggregating(Code)
Whether this Query is aggregating.



cloud
protected Cloud cloud(Code)
reference to the cloud.



explicitFields
protected List<StepField> explicitFields(Code)
The explicitely added 'extra' fields. Because you explicitely added those, they will not be removed if the query becomes 'distinct'.



implicitFields
protected List<StepField> implicitFields(Code)
The implicitely added 'extra' fields. These are removed if the query becomes 'distinct'. So, you can e.g. not do element= on a distinct query result.



insecureConstraint
protected Constraint insecureConstraint(Code)
If a the contraint was made 'secure', in insecureConstraint the original Constraint is stored. This object is null if either the queryCheck object is not yet determined, or the orignal query did not have constraints.



query
protected BasicSearchQuery query(Code)
The core query which is 'wrapped'



queryCheck
protected Authorization.QueryCheck queryCheck(Code)
The QueryCheck object associated with this Query, or null if no such object was determined yet.



used
protected boolean used(Code)
Whether this Query was used already. If it is used, it may not be changed any more.




Constructor Detail
BasicQuery
BasicQuery(Cloud c)(Code)



BasicQuery
BasicQuery(Cloud c, boolean aggregating)(Code)



BasicQuery
public BasicQuery(Cloud c, BasicSearchQuery q)(Code)




Method Detail
addAggregatedField
public AggregatedField addAggregatedField(Step step, Field field, int aggregationType)(Code)



addField
public StepField addField(Step step, Field field)(Code)



addField
public StepField addField(String fieldIdentifier)(Code)



addFieldImplicit
protected void addFieldImplicit(Step step, Field field)(Code)
Fields which are added 'implicity' should be added by this function.



addNode
public void addNode(Step s, int nodeNumber)(Code)

since:
   MMBase-1.7.1



addNode
public void addNode(Step s, Node node)(Code)



addRelationStep
protected BasicRelationStep addRelationStep(InsRel insrel, NodeManager otherNodeManager, int direction)(Code)



addRelationStep
public RelationStep addRelationStep(NodeManager otherNodeManager)(Code)



addRelationStep
public RelationStep addRelationStep(NodeManager otherNodeManager, String role, String direction)(Code)



addRelationStep
protected RelationStep addRelationStep(NodeManager otherNodeManager, String role, String direction, boolean warnOnImpossibleStep)(Code)



addSortOrder
public SortOrder addSortOrder(StepField f, int direction)(Code)



addSortOrder
public SortOrder addSortOrder(StepField f, int direction, boolean caseSensitive)(Code)



addSortOrder
public SortOrder addSortOrder(StepField f, int direction, boolean caseSensitive, int part)(Code)



addStep
public Step addStep(NodeManager nm)(Code)



aggregatingClone
public Query aggregatingClone()(Code)



clone
public Object clone()(Code)



cloneWithoutFields
public Query cloneWithoutFields()(Code)



createAlias
protected String createAlias(String name)(Code)
Creates a unique alias for this Query based on a given base String



createConstraint
public LegacyConstraint createConstraint(String s)(Code)



createConstraint
public FieldNullConstraint createConstraint(StepField f)(Code)



createConstraint
public FieldValueConstraint createConstraint(StepField f, Object v)(Code)



createConstraint
public FieldValueConstraint createConstraint(StepField f, int op, Object v, int part)(Code)



createConstraint
public FieldValueConstraint createConstraint(StepField f, int op, Object v)(Code)



createConstraint
public CompareFieldsConstraint createConstraint(StepField f, int op, StepField v)(Code)



createConstraint
public FieldValueBetweenConstraint createConstraint(StepField f, Object o1, Object o2)(Code)



createConstraint
public FieldValueInConstraint createConstraint(StepField f, SortedSet<? extends Object> v)(Code)



createConstraint
public CompositeConstraint createConstraint(Constraint c1, int operator, Constraint c2)(Code)



createNewQuery
protected void createNewQuery()(Code)



createStepField
public StepField createStepField(Step step, Field field)(Code)



createStepField
public StepField createStepField(Step step, String fieldName)(Code)



createStepField
public StepField createStepField(String fieldIdentifier)(Code)



equals
public boolean equals(Object obj)(Code)



getCachePolicy
public CachePolicy getCachePolicy()(Code)



getCleanConstraint
public Constraint getCleanConstraint()(Code)



getCloud
public Cloud getCloud()(Code)



getConstraint
public Constraint getConstraint()(Code)



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



getList
public NodeList getList()(Code)



getMaxNumber
public int getMaxNumber()(Code)



getOffset
public int getOffset()(Code)



getQuery
public BasicSearchQuery getQuery()(Code)



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



getStep
public Step getStep(String stepAlias)(Code)



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



glueAlias
protected String glueAlias(String aliasBase, Integer seq)(Code)
Glues a string and integer together to a new string.



hashCode
public int hashCode()(Code)



isAggregating
public boolean isAggregating()(Code)



isDistinct
public boolean isDistinct()(Code)



isSecure
boolean isSecure()(Code)



isUsed
public boolean isUsed()(Code)



markUsed
public boolean markUsed()(Code)



removeFields
public void removeFields()(Code)



removeSecurityConstraint
void removeSecurityConstraint()(Code)
Remove a previously set security constraint (if set one)
See Also:   BasicQuery.setSecurityConstraint



removeSecurityConstraintFromClone
protected void removeSecurityConstraintFromClone(BasicSearchQuery clone)(Code)

since:
   MMBase-1.7.1



setAlias
public void setAlias(Step step, String alias)(Code)



setCachePolicy
public void setCachePolicy(CachePolicy policy)(Code)



setCaseSensitive
public FieldConstraint setCaseSensitive(FieldConstraint c, boolean s)(Code)



setConstraint
public void setConstraint(Constraint c)(Code)



setDistinct
public Query setDistinct(boolean distinct)(Code)



setInverse
public Constraint setInverse(Constraint c, boolean i)(Code)



setMaxNumber
public Query setMaxNumber(int maxNumber)(Code)



setOffset
public Query setOffset(int offset)(Code)



setSecurityConstraint
void setSecurityConstraint(Authorization.QueryCheck c)(Code)
Applies a security-constraint to this Query. Such a constraint can be removed easily (needed before cloning a query and so on).
See Also:   BasicQuery.removeSecurityConstraint



toSql
public String toSql()(Code)



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.