Package com.taobao.zeus.store.mysql.persistence

Examples of com.taobao.zeus.store.mysql.persistence.ZeusFollowPersistence


 
  public static ZeusFollowPersistence convert(ZeusFollow zf){
    if(zf==null){
      return null;
    }
    ZeusFollowPersistence persiste=new ZeusFollowPersistence();
    persiste.setId(zf.getId());
    persiste.setTargetId(Long.valueOf(zf.getTargetId()));
    persiste.setType(zf.getType());
    persiste.setUid(zf.getUid());
    return persiste;
  }
View Full Code Here


    });
    if(list!=null && !list.isEmpty()){
      ZeusFollow zf=PersistenceAndBeanConvert.convert(list.get(0));
      return zf;
    }
    ZeusFollowPersistence persist=new ZeusFollowPersistence();
    persist.setGmtCreate(new Date());
    persist.setGmtModified(new Date());
    persist.setTargetId(Long.valueOf(targetId));
    persist.setType(type);
    persist.setUid(uid);
    getHibernateTemplate().save(persist);
   
    return PersistenceAndBeanConvert.convert(persist);
  }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.store.mysql.persistence.ZeusFollowPersistence

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.