Examples of EntityType


Examples of org.beangle.model.entity.types.EntityType

  protected Entity<?> getEntity(String entityName, String name) {
    Long entityId = getEntityId(name);
    Entity<?> entity = null;
    try {
      EntityType type = Model.getEntityType(entityName);
      if (null == entityId) {
        entity = (Entity<?>) populate(type.newInstance(), type.getEntityName(), name);
      } else {
        entity = getModel(entityName, entityId);
      }
    } catch (Exception e) {
      throw new RuntimeException(e.getMessage());
View Full Code Here

Examples of org.beangle.model.entity.types.EntityType

    return entity;
  }

  @SuppressWarnings("unchecked")
  protected <T> T getEntity(Class<T> entityClass, String shortName) {
    EntityType type = null;
    if (entityClass.isInterface()) {
      type = Model.getEntityType(entityClass.getName());
    } else {
      type = Model.getEntityType(entityClass);
    }
    return (T) getEntity(type.getEntityName(), shortName);
  }
View Full Code Here

Examples of org.bukkit.entity.EntityType

   
    List<Entity> entities = player.getNearbyEntities(radius, radius, radius);
    int killCount = 0;
   
    for (Entity entity : entities){
      EntityType eType = entity.getType();
      if (eType.isAlive() && eType.isSpawnable()){
        LivingEntity lEntity = (LivingEntity) entity;
        String typeOfEntity = Utils.typeOfEntity(entity.getType());
        if (typeOfEntity.equalsIgnoreCase(typeToKill) || typeToKill.equalsIgnoreCase("all")
            || eType == ClosestMatches.livingEntity(typeToKill).get(0)){
         
View Full Code Here

Examples of org.eurekastreams.server.domain.EntityType

    public void testNotifyFullFields() throws Exception
    {
        final String url = "http://www.eurekastreams.org";
        final String sourceName = "Source Name";
        final String sourceUniqueId = "Source Unique ID";
        final EntityType sourceType = EntityType.GROUP;
        final String actorUniqueId = "Actor Unique ID";
        final EntityType actorType = EntityType.PERSON;

        final Identifiable source = context.mock(Identifiable.class, "source");
        final Identifiable actor = context.mock(Identifiable.class, "actor");

        context.checking(new Expectations()
View Full Code Here

Examples of org.hibernate.type.EntityType

    for ( Type queryReturn : queryReturnTypes ) {
      if ( queryReturn instanceof EntityType ) {
        if ( metadata != null ) {
          return null;
        }
        EntityType rootReturn = (EntityType) queryReturn;
        OgmEntityPersister persister = (OgmEntityPersister) sessionFactory.getEntityPersister( rootReturn.getName() );
        metadata = new EntityKeyMetadata( persister.getTableName(), persister.getRootTableIdentifierColumnNames() );
      }
    }

    return metadata;
View Full Code Here

Examples of org.jitterbit.integration.data.entity.EntityType

    public void insertEntity(IntegrationEntity entity, IntegrationEntity parent) {
        // TODO: We should perhaps handle the case where entity already
        // belongs to another parent. That should never happen, but since this
        // is a public method and all...
        if (parent == null) {
            EntityType type = EntityUtils.getItemType(entity);
            parent = getRootFolder(type);
        }
        if (ProjectUtils.getProject(parent) != this) {
            return;
        }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.EntityType

  }

  @Override
  public void process(EntityContainer entityContainer) {
    Entity entity = entityContainer.getEntity();
    EntityType type = entity.getType();
    workerPool.submit(entity);
    entityCounter.increment(type);
  }
View Full Code Here

Examples of org.restlet.ext.odata.internal.edm.EntityType

     */
    private String getTag(Object entity) {
        String result = null;
        if (entity != null) {
            Metadata metadata = (Metadata) getMetadata();
            EntityType type = metadata.getEntityType(entity.getClass());

            StringBuilder sb = new StringBuilder();
            boolean found = false;
            for (Property property : type.getProperties()) {
                if (property.isConcurrent()) {
                    found = true;
                    Object value = null;
                    try {
                        value = ReflectUtils.invokeGetter(entity,
View Full Code Here

Examples of org.semanticweb.owlapi.model.EntityType

    }

    @SuppressWarnings("unchecked")
    @Override
    public <C extends EditorCtx, O extends Serializable> EditorManager<C, O> getEditorManager(EditorCtx editorContext) {
        EntityType entityType = ((OWLEntityDataContext) editorContext).getEntityData().getEntity().getEntityType();
        return (EditorManager<C, O>) map.get(entityType);
    }
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.