Package it.eng.qbe.model.structure

Examples of it.eng.qbe.model.structure.ModelEntity


         propertyName = propertyNames[i]
        
        
         //String entityName = getEntityNameFromEntityType(entityType);
         String entityName = propertyName;
         IModelEntity subentity = new ModelEntity(entityName, null, columnName, entityType, dataMartEntity.getStructure());   
         subEntities.add(subentity)
        
       } else if (propertyType instanceof CollectionType) { // chiave interna
       
        
View Full Code Here


        if(a.getPersistentAttributeType().equals(PersistentAttributeType.MANY_TO_ONE)){
          Class c = a.getJavaType();
          String entityType = c.getName();
          String columnName = a.getName();
          String entityName =  a.getName(); //getEntityNameFromEntityType(entityType);
           IModelEntity subentity = new ModelEntity(entityName, null, columnName, entityType, dataMartEntity.getStructure());   
           subEntities.add(subentity);   
      }else//composite key
        if(a.getPersistentAttributeType().equals(PersistentAttributeType.EMBEDDED)){
        Set<Attribute> keyAttre = ((EmbeddableType)((SingularAttribute)a).getType()).getAttributes();
        Iterator<Attribute> keyIter = keyAttre.iterator();
View Full Code Here

    Query query = new Query();
   
    IModelStructure modelStructure = dataSource.getModelStructure();
    List entities = modelStructure.getRootEntities(modelName);
    if(entities.size() > 0) {
      ModelEntity entity = (ModelEntity)entities.get(0);
      List fields = entity.getAllFields();
      for(int i = 0; i < fields.size(); i++) {
        IModelField field = (IModelField)fields.get(i);

        query.addSelectFiled(field.getUniqueName(), null, field.getName(), true, true, false, null, null);     
      }
View Full Code Here

TOP

Related Classes of it.eng.qbe.model.structure.ModelEntity

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.