Package org.blueoxygen.aconix.entity

Examples of org.blueoxygen.aconix.entity.PageCollectionDetail


    }
   
    return SUCCESS;
  }
  public String AddNew(){
    PageCollectionDetail pColDel;
    LogInformation logInfo;
    if("".equalsIgnoreCase(getId())){
      pColDel = new PageCollectionDetail();
      logInfo = new LogInformation();
     
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
      logInfo.setCreateBy(sc.getCurrentUser().getId());
    }else{
      pColDel = (PageCollectionDetail) getManager().getById(PageCollectionDetail.class, getId());
      logInfo = pColDel.getLogInformation();
    }
   
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
    logInfo.setLastUpdateBy(sc.getCurrentUser().getId());
   
    if(getPCol().getId() != null && !"".equalsIgnoreCase(getPCol().getId())){
      pCol = (PageCollection) getManager().getById(PageCollection.class, getPCol().getId());
    }else{
      pCol = null;
    }
    if(getCollectionId() != null && !"".equalsIgnoreCase(getCollectionId())){
      Collection = (ACollection) getManager().getById(ACollection.class, getCollectionId());
    }else{
      Collection = null;
    }
   
    pColDel.setCollection(Collection);
    pColDel.setPageCollection(pCol);
    pColDel.setLogInformation(logInfo);
    getManager().save(pColDel);
    setCollectionId("");
    setCollectionDescription("");
    setId("");
   
View Full Code Here

TOP

Related Classes of org.blueoxygen.aconix.entity.PageCollectionDetail

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.