Java Doc for WhereConditionGroup.java in  » Content-Management-System » harmonise » org » openharmonise » commons » dsi » dml » 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 » Content Management System » harmonise » org.openharmonise.commons.dsi.dml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openharmonise.commons.dsi.dml.WhereConditionGroup

WhereConditionGroup
public class WhereConditionGroup (Code)
A collection of where conditions that can be applied to a DML statement. In this context a condition can either be a WhereCondition or a WhereConditions object. This object represents a set of conditions which can be strung together with a stringing operator such as 'and' or 'or', for example; '[condition 1] and [condition 2] and [condition 3]' has three conditions strung together with the 'and' operator but '[[condition 1] or [condition 2]] and [condition 3]' has two top level conditions strung with 'and' with one nested conditional group containing two conditions string together with 'or'.
author:
   Michael Bell
version:
   $Revision: 1.1 $



Constructor Summary
public  WhereConditionGroup()
    

Method Summary
public  voidaddCondition(WhereConditionGroup where)
     Adds the collection of where condition to this collection.
public  voidaddCondition(WhereCondition where)
     Adds a where condition to this collection.
public  voidaddCondition(ColumnRef Col1, int i)
     Adds a where condition from the given parameters using the default comparison operator.
public  voidaddCondition(ColumnRef Col1, String sOperator, int i)
     Adds a where condition from the given parameters using the specified comparison operator.
public  voidaddCondition(ColumnRef Col1, Object obj)
     Adds a where condition from the given parameters using the default comparison operator.
public  voidaddCondition(ColumnRef Col1, String sOperator, Object obj)
     Adds a where condition from the given parameters using the specified comparison operator.
public  voidaddCondition(ColumnRef Col1, List vals)
     Adds a where condition from the given parameters using the default comparison operator.
public  voidaddCondition(ColumnRef Col1, String sOperator, List vals)
     Adds a where condition from the given parameters using the specified comparison operator.
public  voidempty()
     Removes all conditions from this collection.
public  StringgetColumnName(int index)
     Returns the column name for the column reference of the condition at the specified index.
public  ListgetColumnRefs()
     Returns the full list of column references contained in this collection of where conditions.
public  ObjectgetCondition(int index)
     Returns the condition, either a WhereCondition or a WhereConditions, at the specified position in this collection.
public  StringgetFullColumnRef(int index)
     Returns the full string representation of the column reference for the condition at the specified index.
public  StringgetOperator(int index)
     Returns the comparison operator of the condition at the specified index.
public  StringgetStringingOperator()
     Returns the stringing operator for this collection of where conditions.
public  ListgetTableList()
     Returns the list of all tables included in this collection of where conditions.
public  StringgetTableName(int index)
     Returns the table name for the column reference of the condition at the specified index.
public  ListgetValues(int index)
     Returns the list of conditional values for the condition at the specified index.
public  booleanisWhereConditionsLeaf(int index)
     Returns true if the condition object at the specified position is a WhereCondition rather than a WhereConditions object.
public  voidsetStringingOperator(String sOp)
     Sets the stringing operator for this collection of where conditions.
public  intsize()
     Returns the number of conditions in this collection, not including those conditions contained in WhereConditions which have been added to this collection as a condition.


Constructor Detail
WhereConditionGroup
public WhereConditionGroup()(Code)
Constructs collection for where conditions




Method Detail
addCondition
public void addCondition(WhereConditionGroup where)(Code)
Adds the collection of where condition to this collection.
Parameters:
  where - the collection of where conditions to add



addCondition
public void addCondition(WhereCondition where)(Code)
Adds a where condition to this collection.
Parameters:
  where - the where condition to add



addCondition
public void addCondition(ColumnRef Col1, int i) throws DataStoreException(Code)
Adds a where condition from the given parameters using the default comparison operator.
Parameters:
  Col1 - the conditional column reference
Parameters:
  i - the conditional value
throws:
  DataStoreException - if the condition is invalid



addCondition
public void addCondition(ColumnRef Col1, String sOperator, int i) throws DataStoreException(Code)
Adds a where condition from the given parameters using the specified comparison operator.
Parameters:
  Col1 - the conditional column reference
Parameters:
  sOperator - the comparison operator
Parameters:
  i - the conditional value
throws:
  DataStoreException - if the condition is invalid



addCondition
public void addCondition(ColumnRef Col1, Object obj) throws DataStoreException(Code)
Adds a where condition from the given parameters using the default comparison operator.
Parameters:
  Col1 - the conditional column reference
Parameters:
  obj - the conditional value
throws:
  DataStoreException - if the condition is invalid



addCondition
public void addCondition(ColumnRef Col1, String sOperator, Object obj) throws DataStoreException(Code)
Adds a where condition from the given parameters using the specified comparison operator.
Parameters:
  Col1 - the conditional column reference
Parameters:
  sOperator - the comparison operator
Parameters:
  obj - the conditional value
throws:
  DataStoreException - if the condition is invalid



addCondition
public void addCondition(ColumnRef Col1, List vals) throws DataStoreException(Code)
Adds a where condition from the given parameters using the default comparison operator.
Parameters:
  Col1 - the conditional column reference
Parameters:
  vals - the list of conditional values
throws:
  DataStoreException - if the condition is invalid



addCondition
public void addCondition(ColumnRef Col1, String sOperator, List vals) throws DataStoreException(Code)
Adds a where condition from the given parameters using the specified comparison operator.
Parameters:
  Col1 - the conditional column reference
Parameters:
  sOperator - the comparison operator
Parameters:
  vals - the list of conditional values
throws:
  DataStoreException - if the condition is invalid



empty
public void empty()(Code)
Removes all conditions from this collection.



getColumnName
public String getColumnName(int index) throws DataStoreException(Code)
Returns the column name for the column reference of the condition at the specified index.
Parameters:
  index - the index of the condition the column name for the condition column reference
throws:
  DataStoreException - if the condition at the specified index is not a WhereCondition



getColumnRefs
public List getColumnRefs()(Code)
Returns the full list of column references contained in this collection of where conditions. the list of column references



getCondition
public Object getCondition(int index)(Code)
Returns the condition, either a WhereCondition or a WhereConditions, at the specified position in this collection.
Parameters:
  index - index of condition to return the condition at the specified position



getFullColumnRef
public String getFullColumnRef(int index) throws DataStoreException(Code)
Returns the full string representation of the column reference for the condition at the specified index.
Parameters:
  index - the index of the condition the full string representation of the column reference
throws:
  DataStoreException - if the condition at the specified index is not a WhereCondition



getOperator
public String getOperator(int index) throws DataStoreException(Code)
Returns the comparison operator of the condition at the specified index.
Parameters:
  index - the index of the condition the comparison operator of the condition
throws:
  DataStoreException - if the condition at the specified index is not a WhereCondition



getStringingOperator
public String getStringingOperator()(Code)
Returns the stringing operator for this collection of where conditions. the stringing operator



getTableList
public List getTableList() throws DataStoreException(Code)
Returns the list of all tables included in this collection of where conditions. the list of all tables
throws:
  DataStoreException - if an error occurs accessing the table names



getTableName
public String getTableName(int index) throws DataStoreException(Code)
Returns the table name for the column reference of the condition at the specified index.
Parameters:
  index - the index of the condition the table name for the condition column reference
throws:
  DataStoreException - if the condition at the specified index is not a WhereCondition



getValues
public List getValues(int index) throws DataStoreException(Code)
Returns the list of conditional values for the condition at the specified index.
Parameters:
  index - the index of the condition the list of conditional values for the condition
throws:
  DataStoreException - if the condition at the specified index is not a WhereCondition



isWhereConditionsLeaf
public boolean isWhereConditionsLeaf(int index)(Code)
Returns true if the condition object at the specified position is a WhereCondition rather than a WhereConditions object.
Parameters:
  index - index of condition true if the condition object at the specified position



setStringingOperator
public void setStringingOperator(String sOp) throws DataStoreException(Code)
Sets the stringing operator for this collection of where conditions.
Parameters:
  sOp - the stringing operator
throws:
  DataStoreException - if the stringing operator is invalid



size
public int size()(Code)
Returns the number of conditions in this collection, not including those conditions contained in WhereConditions which have been added to this collection as a condition. the number of conditions in this collection



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.