Re: Querying for a range of dates using Persistent

Gene <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
I think you can use

p.setCustomWhereClause("myfield < 'yyyy/mm/dd'");
List results = p.query();

not tested for syntax.
hth
gene

Max wrote:
> Hi,
> 
> I'm trying to query for a range of dates on a timestamp field using Keel 
> Persistents and can't find any documentation explaining how to build 
> these kinds of queries. Can I use something like:
> 
> p.clear();
> p.setField("timestamp", "< 'yyyy/mm/dd'");
> List results = p.query();
> 
> Thanks,
> Max
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> 
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.