Absolutely! The match there seems to be perfect.
The only suggestion I would make is - hide the language name in the
expression:
Query q = persistenceManager.getQuery(MyClass.class,
"javascript:someObjects.myProperty < $varName" );
This will only simplify your implementation.
- Dmitri
--- Juozas Baliuka <[EMAIL PROTECTED]> wrote:
> This project is very intersting for me,
> I will start "query" implementation next week and I plan to use JEX
> to plug
> compilers.
> As I understand it can be used right now to implemet simple filters
> something like this:
>
> Query q = persistenceManager.getQuery("javascript", MyClass.class,
>
> "someObjects.myProperty
> > $varName" );
>
> q.compile();
> q.bind( "varName", new Integer(0) );
> Collection objectsFound = q.execute();
> ..............................................
> q.bind( "varName", new Integer(3) );
> objectsFound = q.execute();
> .......................................................
>
>
>
>
>
>
> > Juozas, Stephen,
> >
> > Sounds very exciting. The JEX APIs are not cast in stone as yet.
> Let
> > me know how they should be changed to accomodate your needs. I
> will
> > happily make the changes. We could also use more contributors on
> JEX.
> >
> > Thanks,
> >
> > - Dmitri
> >
> >
> > --- Juozas Baliuka <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > > I going to use this idea to implement in memory query for
> persistent
> > > objects
> > > and may be for JDO QL.
> > >
> > > At 14:38 2002.06.12 +0000, Stephen Colebourne wrote:
> > > >Dmitri,
> > > >I have had a simiilar idea of using a prefix such as xpath:. I
> need
> > > to add
> > > >functionality similar to this to the Joda project to access data
> (as
> > > with
> > > >BeanUtils), so I am interested in using this if the API is
> suitable
> > > ;-)
> > > >
> > > >Stephen
> > [...snip...]
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>