FileDocCategorySizeDatePackage
PeopleFinderImpl.javaAPI DocExample3159Thu Dec 15 22:39:00 GMT 2005com.oreilly.jent.annotation.xdoclet.soap

PeopleFinderImpl

public class PeopleFinderImpl extends Object
PeopleFinderImpl: Implementation of our remote PeopleFinder interface. XDoclet tags:
web.servlet
name="PeopleFinderService"

Fields Summary
Constructors Summary
public PeopleFinderImpl()

Methods Summary
public com.oreilly.jent.annotation.people.Person[]findPeople(com.oreilly.jent.annotation.people.SearchArg[] args)
Implementation of findPeople. Here we simply invoke our PersonDAO to perform the search using whatever information source it's configured to use.

web.interface-method

        PersonDAO dao = PersonDAO.getInstance();
        Map searchParamsMap = new HashMap();
        for (int i = 0; i < args.length; i++) {
            searchParamsMap.put(args[i].getName(), args[i].getValue());
        }
        Collection people = dao.findPeople(searchParamsMap);
        Person[] peopleArray = new Person[people.size()];
        Iterator pIter = people.iterator();
        int i = 0;
        while (pIter.hasNext()) {
            peopleArray[i++] = (Person)pIter.next();
        }
        return peopleArray;
    
public com.oreilly.jent.annotation.people.PersonfindPerson(java.lang.String id)

web.interface-method

      return null;  
    
private java.sql.ConnectiongetConnection()
Utility method for retrieving a database connection

        return null;