Package com.jpoweredcart.common.entity

Examples of com.jpoweredcart.common.entity.Description


  public <T>List<T> createDescriptionList(Class<T> descClass){
    if(Description.class.isAssignableFrom(descClass)){
      try{
        List<T> descs = new ArrayList<T>();
        for(Language language: getList(null)){
          Description desc = (Description)descClass.newInstance();
          desc.setLanguageId(language.getId());
          desc.setLanguageName(language.getName());
          desc.setLanguageImage(language.getImage());
          descs.add((T)desc);
        }
        return descs;
      }catch(Exception e){
        throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.Description

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.