Package org.mypj.db.server.impl

Examples of org.mypj.db.server.impl.PersonManagerImpl


   */
  private static final long serialVersionUID = 1L;

  @Override
  public PersonInfo[] searchPersons(String filter) {
    PersonManagerImpl impl = new PersonManagerImpl();
    List<Person> ps = impl.getAll();
    if (ps == null)
      return null;
    PersonInfo[] info = new PersonInfo[ps.size()];
    for (int i = 0; i < ps.size(); i++) {
      Person p = ps.get(i);
View Full Code Here


   */
  private static final long serialVersionUID = 1L;

  @Override
  public BasicInfo createPerson(BasicInfo info) {
    PersonManagerImpl impl = new PersonManagerImpl();
    Person p1 = new Person(info.getEditName());
    p1.setBirthday(info.getEditBirthday());
    p1.setSex(info.getEditSex());
    p1.setPs(info.getEditPs());
    Contact c1 = new Contact(info.getEditContact());
    p1.getContacts().add(c1);
    if (!impl.isExist(p1)) {
      impl.create(p1);
      info.setViewName(info.getEditName());
      info.setViewContact(info.getEditContact());
      if (info.getEditBirthday() != null) {
        info.setViewBirthday(info.getEditBirthday().toString());
      }
View Full Code Here

//        ApiProxy.setDelegate(new ApiProxyLocalImpl(new File("war")){});
//
//        ApiProxyLocalImpl proxy = (ApiProxyLocalImpl) ApiProxy.getDelegate();
//        proxy.setProperty(LocalDatastoreService.NO_STORAGE_PROPERTY, Boolean.TRUE.toString());
       
        impl = new PersonManagerImpl();
  }
View Full Code Here

TOP

Related Classes of org.mypj.db.server.impl.PersonManagerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.