thanks for all of you, problem Solved
Expression qual =
ExpressionFactory.likeIgnoreCaseExp("galleryName",likePattern);
SelectQuery query = new SelectQuery(<yourBusinessClass>, qual);
System.out.println("List : " + query );
List galleries = ctxt.performQuery(query);
<yourBusinessClass> gallery = (<yourBusinessClass>)
galleries.get(0);
System.out.println("\nFound gallery '" + gallery.getgalleryName() +
"'.\n");
----- Original Message -----
From: <jsaa..eb.de>
To: <cayenne-use..bjectstyle.org>
Sent: Thursday, June 24, 2004 2:11 PM
Subject: Re: read Row
> Expression qual =
ExpressionFactory.likeIgnoreCaseExp("galleryName",likePattern);
> SelectQuery query = new SelectQuery(<yourBusinessClass>, qual);
> ResultIterator result = myContext.performIteratedQuery(query);
>
> // where query is a DataContext instance
>
>
> "Sako!" <webobject..tcc.datos.de> schrieb am 24.06.04 12:41:34:
> >
> > Hello Cayenne users,
> > i try to get a Row from DB/Table.
> > i checked the example and tried to fit it to my table.
> > read String
> > Expression qual = ExpressionFactory.likeIgnoreCaseExp("galleryName",
> > likePattern);
> >
> > i look for an int
> >
> > Expression qual = ExpressionFactory.likeIgnoreCaseExp("Nr", nr); // nr
is an
> > int.
> >
> > i checked the ExpressionFactory API, but didnt really find a good
> > explination.
> > any can help here please?
> >
> > thank you!
> > Sako
>
> ____________________________________________________
> Aufnehmen, abschicken, nah sein - So einfach ist
> WEB.DE Video-Mail: http://freemail.web.de/?mc=021200
>
>
This archive was generated by hypermail 2.0.0 : Thu Jun 24 2004 - 10:31:20 EDT