You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2003/01/19 12:50:30 UTC
cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/query SelectionCriteria.java
brj 2003/01/19 03:50:30
Modified: src/java/org/apache/ojb/broker/query SelectionCriteria.java
Log:
enhancements for extent aware path expressions
Revision Changes Path
1.6 +27 -2 jakarta-ojb/src/java/org/apache/ojb/broker/query/SelectionCriteria.java
Index: SelectionCriteria.java
===================================================================
RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/query/SelectionCriteria.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SelectionCriteria.java 2 Sep 2002 19:27:06 -0000 1.5
+++ SelectionCriteria.java 19 Jan 2003 11:50:30 -0000 1.6
@@ -71,8 +71,15 @@
{
private String attribute;
private Object value;
- private boolean negative = false; // true if criterion is negated
- private boolean bound = false; // BRJ: true if criterion is bound
+
+ // true if criterion is negated
+ private boolean negative = false;
+
+ // BRJ: true if criterion is bound
+ private boolean bound = false;
+
+ // BRJ: the criterion must be bound for the main class and for all extents
+ private int numberOfExtentsToBind = 0; // BRJ:
/**
* Constructor declaration
@@ -182,4 +189,22 @@
{
return (getValue() == null);
}
+ /**
+ * Returns the numberOfExtentsToBind.
+ * @return int
+ */
+ public int getNumberOfExtentsToBind()
+ {
+ return numberOfExtentsToBind;
+ }
+
+ /**
+ * Sets the numberOfExtentsToBind.
+ * @param numberOfExtentsToBind The numberOfExtentsToBind to set
+ */
+ public void setNumberOfExtentsToBind(int numberOfExtentsToBind)
+ {
+ this.numberOfExtentsToBind = numberOfExtentsToBind;
+ }
+
}