Examples of Entity


Examples of org.geomajas.layer.entity.Entity

      throw new LayerException(e, ExceptionCode.FEATURE_MODEL_PROBLEM);
    }
  }

  public Geometry getGeometry(Object feature) throws LayerException {
    Entity entity = entityMapper.asEntity(feature);
    Object geometry = entity.getAttribute(getGeometryAttributeName());
    if (!wkt || null == geometry) {
      log.debug("bean.getGeometry {}", geometry);
      return (Geometry) geometry;
    } else {
      try {
View Full Code Here

Examples of org.hibernate.metamodel.domain.Entity

        : new EntityBinding( superEntityBinding );

    final String entityName = entitySource.getEntityName();
    final String className = currentHierarchyEntityMode == EntityMode.POJO ? entitySource.getClassName() : null;

    final Entity entity = new Entity(
        entityName,
        className,
        currentBindingContext.makeClassReference( className ),
        superEntityBinding == null ? null : superEntityBinding.getEntity()
    );
View Full Code Here

Examples of org.hibernate.test.instrument.domain.Entity

*/
public class TestManyToOneProxyExecutable extends AbstractExecutable {
  public void execute() {
    Session s = getFactory().openSession();
    Transaction t = s.beginTransaction();
    Entity root = new Entity( "root" );
    Entity child1 = new Entity( "child1" );
    Entity child2 = new Entity( "child2" );
    root.setChild( child1 );
    child1.setSibling( child2 );
    Entity gChild1 = new Entity( "grandchild 1" );
    Entity gChild2 = new Entity( "grandchild 2" );
    child1.setChild( gChild1 );
    gChild1.setSibling( gChild2 );
    s.save( root );
    t.commit();
    s.close();
View Full Code Here

Examples of org.jboss.seam.Entity

      this.jaasConfigName = jaasConfigName;
   }

   public void checkEntityPermission(Object entity, EntityAction action)
   {     
      Entity e = Entity.forClass(entity.getClass());
     
      if (e != null)
      {
         String name = Seam.getComponentName(entity.getClass());
         if (name == null) name = entity.getClass().getName()
        
         Method m = null;
         switch (action)
         {
            case READ:
               m = e.getPostLoadMethod();
               break;
            case INSERT:
               m = e.getPrePersistMethod();
               break;
            case UPDATE:
               m = e.getPreUpdateMethod();
               break;
            case DELETE:
               m = e.getPreRemoveMethod();
         }
        
         Restrict restrict = null;
        
         if (m != null && m.isAnnotationPresent(Restrict.class))
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.Entity

   }
  
   public void testExtendedPersistencePassivation() throws Exception
   {
      EntityFacade stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
      Entity entity = null;
      entity = stateful.createEntity("Kalin");
     
      //passivate
      Thread.sleep(10 * 1000);
     
      MBeanServerConnection server = getServer();
      ObjectName objectName = new ObjectName("jboss.jca:service=CachedConnectionManager");
      int inUseConnections = (Integer)server.getAttribute(objectName, "InUseConnections");
      System.out.println("inUseConnections \n" + inUseConnections);
      assertEquals(0, inUseConnections);
     
      //activate
      entity = stateful.loadEntity(entity.getId());
     
      inUseConnections = (Integer)server.getAttribute(objectName, "InUseConnections");
      System.out.println("inUseConnections \n" + inUseConnections);
      if (inUseConnections != 0)
         printStats(server);
      assertEquals(0, inUseConnections);
     
      entity = stateful.createEntity("Kalin" + entity.getId());
     
      inUseConnections = (Integer)server.getAttribute(objectName, "InUseConnections");
      System.out.println("inUseConnections \n" + inUseConnections);
     
      if (inUseConnections != 0)
View Full Code Here

Examples of org.jboss.test.perf.interfaces.Entity

      Object obj = getInitialContext().lookup(ENTITY);
      obj = PortableRemoteObject.narrow(obj, EntityHome.class);
      EntityHome home = (EntityHome) obj;
      getLog().debug("Found EntityHome @ jndiName=Entity");
      EntityPK key = new EntityPK(0);
      Entity bean = null;

      getLog().debug("Running with " + iterationCount + " instances...");
      findByPrimaryKey(key, home);
   }
View Full Code Here

Examples of org.jboss.test.security.interfaces.Entity

        String echo = null;
        try
        {
            InitialContext ctx = new InitialContext();
            EntityHome home = (EntityHome) ctx.lookup("java:comp/env/ejb/Entity");
            Entity bean = home.findByPrimaryKey(arg);
            echo = bean.echo(arg);
        }
        catch(Exception e)
        {
            log.debug("Entity.echo failed", e);
            e.fillInStackTrace();
View Full Code Here

Examples of org.jboss.test.web.interfaces.Entity

            Context enc = (Context) ctx.lookup("java:comp/env");
            EntityHome home = (EntityHome) enc.lookup("ejb/Entity");
            try
            {
               //Remove old entity beans from previous test runs
               Entity existing = home.findByPrimaryKey(new EntityPK(12345));
               if(existing != null)
               {
                  existing.remove();
               }
            }
            catch(Exception e)
            {
               //ignore
            }
            Entity bean = home.create(12345, 6789);
            bean.write(7890);
            bean.read();
            bean.remove();
        }
        catch(Exception e)
        {
            throw new ServletException("Failed to call Entity through remote interfaces", e);
        }
View Full Code Here

Examples of org.jbpm.identity.Entity

    }
    return new IdentitySession(jbpmContext.getSession());
  }

  protected Entity resolveFirstTerm(String term) {
    Entity entity = null;
   
    log.debug("resolving first term '"+term+"'");
   
    if (term.equalsIgnoreCase("previous")) {
    String userName = SecurityHelper.getAuthenticatedActorId();
View Full Code Here

Examples of org.jclouds.vcloud.director.v1_5.domain.Entity

   @Test(description = "GET /entity/{id}")
   public void testResolveEntity() {
      for (Reference orgRef : context.getApi().getOrgApi().list()) {
         Org org = context.getApi().getOrgApi().get(orgRef.getHref());
         Entity entity = context.getApi().resolveEntity(org.getId());
         checkEntityType(entity);
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.