Package com.centraview.common.source

Examples of com.centraview.common.source.SourceLocalHome


  public void createSource(SourceVO svo)
  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      SourceLocalHome home = (SourceLocalHome)ic.lookup("local/Source");
      SourceLocal remote =  home.create(svo,this.dataSource);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.createSource] Exception Thrown: "+e);
      //e.printStackTrace();
    }
  }
View Full Code Here


  public void updateSource(int sourceId, SourceVO svo)
  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      SourceLocalHome home = (SourceLocalHome)ic.lookup("local/Source");
      SourceLocal remote =  home.findByPrimaryKey(new SourcePK(sourceId,this.dataSource));
      remote.setSourceVO(svo);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.updateSource] Exception Thrown: "+e);
      //e.printStackTrace();
    }
View Full Code Here

   */
  public void deleteSource(int sourceId)
  {
    try{
      InitialContext ic = CVUtility.getInitialContext();
      SourceLocalHome home = (SourceLocalHome)ic.lookup("local/Source");
      SourceLocal remote =  home.findByPrimaryKey(new SourcePK(sourceId,this.dataSource));
      remote.remove();
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(FinderException fe){
      System.out.println("[Exception][ContactFacadeEJB.deleteSource] Exception Thrown: "+fe);
View Full Code Here

TOP

Related Classes of com.centraview.common.source.SourceLocalHome

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.