Package net.zero.smarttrace.data

Examples of net.zero.smarttrace.data.EReferenceType


    {
    try{
   
    for(int i=0; i<5; i++)
      {
      EReferenceType ref=new EReferenceType();
      ref.setName("tipo" + i);
     
      JPAManager.getJPAManager().startTransaction();
      JPAManager.getJPAManager().getEntityManager().persist(ref);
      System.out.println("Almacenando: " + ref.getId());
      JPAManager.getJPAManager().endTransaction();
     
      Thread.sleep(400);
      }
   
View Full Code Here


    return ret;
    }
 
  public EReferenceType createReferenceType(ReferenceType referenceType)
    {   
    EReferenceType ret=new EReferenceType();
    ret.setName(referenceType.name());
    ret.setSignature(referenceType.signature());
   
    JPAManager.getJPAManager().getEntityManager().persist(ret);
   
    return ret;
    }
View Full Code Here

    return ret;
    }
 
  public EReferenceType createQueryReferenceType(ReferenceType referenceType)
    {
    EReferenceType ret=dataQuerier.getReferenceType(referenceType.name());
    if(ret==null)
      ret=createReferenceType(referenceType);
    return ret;
    }
View Full Code Here

TOP

Related Classes of net.zero.smarttrace.data.EReferenceType

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.