Examples of Relation


Examples of PrologPlusCG.cg.Relation

    }
  }

  CG createCGBranch(Relation rel) {
    // 1. Creer le CG cadre
    Relation newRelation = new Relation();
    newRelation.m_pdRelationName = rel.m_pdRelationName;

    Concept concSrce = rel.m_concSource;
    Concept newConcSrce = new Concept(concSrce.m_pdType,
              concSrce.m_pdReferent, concSrce.m_pdValue,
View Full Code Here

Examples of adipe.translate.ra.Relation

     * TODO update
     */
    protected State2 registerTableByName(String primaryName, String knownAs, List<String> derivedColumnList)
            throws IndexOutOfBoundsException, TranslationException
    {
        Relation r;
        ColumnNamesImpl[] colNamesWr = new ColumnNamesImpl[1];
        try {
            r = schema.instantiateTable(primaryName, knownAs, derivedColumnList, colNamesWr);
        } catch (IllegalStateException exc) {
            throw new TranslationException(exc.getMessage(), exc);
        }
        registerRelation(r.alias(), colNamesWr[0]);
        return makeState2(r, colNamesWr[0].asColumnIndexesLookup(), addQualifiedColumnNames(knownAs == null?primaryName:knownAs, colNamesWr[0]));
    }
View Full Code Here

Examples of ar.com.AmberSoft.iEvenTask.backend.entities.Relation

          logger.debug("Ejecucion " + executionCount.toString()
              + " , deteccion evento: " + event.getName());
         
          Iterator<Relation> iRelations = relations.iterator();
          while (iRelations.hasNext()) {
            Relation relation = (Relation) iRelations.next();
            relation.execute();
          }
        }

        event.setExecutions(executionCount);
        UpdateEntityService updateEntityService = new UpdateEntityService();
View Full Code Here

Examples of ar.com.AmberSoft.iEvenTask.backend.entities.Relation

      }

      Collection<Relation> relaciones = (Collection<Relation>) result.get(ParamsConst.DATA);
      Iterator<Relation> itRelaciones = relaciones.iterator();
      while (itRelaciones.hasNext()) {
        Relation relation = (Relation) itRelaciones.next();
        if (relation instanceof RelationWithActionCreateTask) {
          RelationWithActionCreateTask create = (RelationWithActionCreateTask) relation;
          create.setTarea(null);
        }
        if (relation instanceof RelationWithModifyStateTask) {
          RelationWithModifyStateTask modify = (RelationWithModifyStateTask) relation;
          Collection tareas = modify.getTareas();
          if (tareas!=null){
            Iterator<Tarea> itTareas = tareas.iterator();
            while (itTareas.hasNext()) {
              Tarea tarea = (Tarea) itTareas.next();
              //tarea.set
            }
          }
          //modify.setTareas(null);
        }
        Collection visibles = relation.getVisibles();
        if (visibles!=null){
          Iterator<VisibleRelation> itVisibles = visibles.iterator();
          while (itVisibles.hasNext()) {
            VisibleRelation visibleRelation = (VisibleRelation) itVisibles.next();
            visibleRelation.setRelation(null);
View Full Code Here

Examples of ar.com.AmberSoft.iEvenTask.backend.entities.Relation

 
  protected void previousReturnMap(Map params, Map map) {
    Collection<Relation> relaciones = (Collection<Relation>) map.get(ParamsConst.DATA);
    Iterator<Relation> itRelaciones = relaciones.iterator();
    while (itRelaciones.hasNext()) {
      Relation relation = (Relation) itRelaciones.next();
      /*if (relation instanceof RelationWithActionCreateTask) {
        RelationWithActionCreateTask create = (RelationWithActionCreateTask) relation;
        create.setTarea(null);
      }*/
      if (relation instanceof RelationWithModifyStateTask) {
View Full Code Here

Examples of br.com.caelum.vraptor.restfulie.relation.Relation

    assertThat(xml, not(containsString("atom:link")));
  }

  @Test
  public void shouldSerializeOneLinkIfThereIsATransition() {
    Relation kill = mock(Relation.class);
    when(kill.getName()).thenReturn("kill");
    when(kill.getUri()).thenReturn("/kill");

    when(builder.getRelations()).thenReturn(Arrays.asList(kill));
    String xml = xstream.toXML(resource);
    assertThat(xml, containsString("<atom:link rel=\"kill\" href=\"http://www.caelum.com.br/kill\" xmlns:atom=\"http://www.w3.org/2005/Atom\"/>"));
  }
View Full Code Here

Examples of com.buschmais.cdo.neo4j.api.annotation.Relation

        return new IndexedPropertyMetadata(indexed.create());
    }

    @Override
    public RelationshipMetadata createRelationMetadata(PropertyMethod propertyMethod) {
        Relation relation = propertyMethod.getAnnotationOfProperty(Relation.class);
        String name = relation != null ? relation.value() : StringUtils.capitalize(propertyMethod.getName());
        DynamicRelationshipType relationshipType = DynamicRelationshipType.withName(name);
        return new RelationshipMetadata(relationshipType);
    }
View Full Code Here

Examples of com.buschmais.jqassistant.core.store.api.model.Relation

     * @param mapper     The mapper.
     */
    private <T extends Descriptor> void flushRelations(T descriptor, Node node, DescriptorMapper<T> mapper) {
        Map<Relation, Set<? extends Descriptor>> relations = mapper.getRelations(descriptor);
        for (Entry<Relation, Set<? extends Descriptor>> relationEntry : relations.entrySet()) {
            Relation relationType = relationEntry.getKey();
            Set<? extends Descriptor> targetDescriptors = relationEntry.getValue();
            if (!targetDescriptors.isEmpty()) {
                Set<Node> existingTargetNodes = new HashSet<>();
                Iterable<Relationship> relationships = node.getRelationships(relationType, Direction.OUTGOING);
                if (relationships != null) {
View Full Code Here

Examples of com.buschmais.xo.neo4j.api.annotation.Relation

        return new IndexedPropertyMetadata(indexed.create(), indexed.unique());
    }

    @Override
    public RelationshipMetadata createRelationMetadata(AnnotatedElement<?> annotatedElement, Map<Class<?>, TypeMetadata> metadataByType) {
        Relation relationAnnotation;
        if (annotatedElement instanceof PropertyMethod) {
            relationAnnotation = ((PropertyMethod) annotatedElement).getAnnotationOfProperty(Relation.class);
        } else {
            relationAnnotation = annotatedElement.getAnnotation(Relation.class);
        }
        String name = null;
        if (relationAnnotation != null) {
            String value = relationAnnotation.value();
            if (!Relation.DEFAULT_VALUE.equals(value)) {
                name = value;
            }
        }
        if (name == null) {
View Full Code Here

Examples of com.facebook.presto.sql.tree.Relation

            // find source table (TODO: do this in analyzer)
            QueryBody queryBody = analysis.getQuery().getQueryBody();
            checkState(queryBody instanceof QuerySpecification, "Query is not a simple select statement");
            List<Relation> relations = ((QuerySpecification) queryBody).getFrom();
            checkState(relations.size() == 1, "Query has more than one source table");
            Relation relation = Iterables.getOnlyElement(relations);
            checkState(relation instanceof Table, "FROM clause is not a simple table name");
            QualifiedTableName sourceTable = MetadataUtil.createQualifiedTableName(session, ((Table) relation).getName());

            // create source table and optional import information
            storageManager.insertTableSource(((NativeTableHandle) targetTable), sourceTable);
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.