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/11/16 18:23:40 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer RsQueryObject.java
brj 2003/11/16 09:23:40
Modified: src/java/org/apache/ojb/broker/query Query.java
AbstractQueryImpl.java
src/java/org/apache/ojb/broker/accesslayer
RsQueryObject.java
Log:
added usePaging to Query interface
Revision Changes Path
1.12 +7 -1 db-ojb/src/java/org/apache/ojb/broker/query/Query.java
Index: Query.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/Query.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- Query.java 25 Oct 2003 23:59:27 -0000 1.11
+++ Query.java 16 Nov 2003 17:23:40 -0000 1.12
@@ -169,4 +169,10 @@
void setWithExtents(boolean withExtents);
boolean getWithExtents();
+
+ /**
+ * Answer true if start- and endIndex is set
+ * @return
+ */
+ public boolean usePaging();
}
1.9 +7 -1 db-ojb/src/java/org/apache/ojb/broker/query/AbstractQueryImpl.java
Index: AbstractQueryImpl.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/AbstractQueryImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- AbstractQueryImpl.java 25 Oct 2003 23:59:27 -0000 1.8
+++ AbstractQueryImpl.java 16 Nov 2003 17:23:40 -0000 1.9
@@ -191,4 +191,10 @@
return false;
}
+ public boolean usePaging()
+ {
+ return getEndAtIndex() != NO_END_AT_INDEX
+ || getStartAtIndex() != NO_START_AT_INDEX;
+ }
+
}
1.2 +2 -3 db-ojb/src/java/org/apache/ojb/broker/accesslayer/RsQueryObject.java
Index: RsQueryObject.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RsQueryObject.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RsQueryObject.java 14 Nov 2003 18:16:46 -0000 1.1
+++ RsQueryObject.java 16 Nov 2003 17:23:40 -0000 1.2
@@ -116,8 +116,7 @@
public boolean usePaging()
{
- return query.getEndAtIndex() != Query.NO_END_AT_INDEX
- || query.getStartAtIndex() != Query.NO_START_AT_INDEX;
+ return query.usePaging();
}
public int getStartIndex()
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org