Skip to main content

PerstLite DB query

No replies
faisal29
Offline
Joined: 2009-05-16
Points: 0

Hi friends,

I'm developing an mobile Flight schedule finder. major task is to do it offline. I was able to fetch data from my .txt file, which I did as per PerstLite example illustrated. in that example they are comparing a single field with DB.

Iterator iterator = root.depStn.prefixIterator(SRC_CODE);
if (iterator.hasNext())
{
// pass iterator through all located objects to the
// ScheduleForm constructor
new ScheduleForm(uar, iterator, uar.menu);
}
the above code only compares source station.

I need two fields to be compared, i.e, source and destination stations are to be compared. how can it be done.

your time & patience are appreciated.
Faisal Mohammed.