Examples of clone()


Examples of org.teiid.query.sql.symbol.GroupSymbol.clone()

        Collection<GroupSymbol> groups = GroupCollectorVisitor.getGroupsIgnoreInlineViews(stagableQuery, false);
       
        //check for already staged queries
        if (groups.size() == 1) {
            GroupSymbol group = groups.iterator().next();
            group = QueryUtil.createResolvedGroup((GroupSymbol)group.clone(), planEnv.getGlobalMetadata());
            if (planEnv.isStagingTable(group.getMetadataID()) && stagableQuery.getCriteria() == null) {
                return false;
            }
        }
       
View Full Code Here

Examples of org.teiid.query.sql.symbol.SearchedCaseExpression.clone()

    }
   
    public void testEquals() {
        SearchedCaseExpression sc1 = example(3);
        assertTrue(sc1.equals(sc1));
        assertTrue(sc1.equals(sc1.clone()));
        assertTrue(sc1.clone().equals(sc1));
        assertTrue(sc1.equals(example(3)));
       
        SearchedCaseExpression sc2 = example(4);
       
View Full Code Here

Examples of org.teiid.query.sql.symbol.SelectSymbol.clone()

      List thisSymbols = getSymbols();
      List copySymbols = new ArrayList(thisSymbols.size());
      Iterator iter = thisSymbols.iterator();
      while(iter.hasNext()) {
        SelectSymbol ss = (SelectSymbol) iter.next();
        copySymbols.add(ss.clone());   
      }
           
    Select copy = new Select(copySymbols);
    copy.setDistinct( isDistinct() );
    return copy;
View Full Code Here

Examples of org.teiid.query.sql.symbol.SingleElementSymbol.clone()

          }
          Expression expr = SymbolMap.getExpression(querySymbol);
          if (!previousExpressions.add(expr) || (queryCommand instanceof Query && EvaluatableVisitor.willBecomeConstant(expr))) {
                orderBy.removeOrderByItem(i--);
          } else if (!isUnrelated) {
            orderBy.getOrderByItems().get(i).setSymbol((SingleElementSymbol)querySymbol.clone());
          } else {
            hasUnrelatedExpression = true;
          }
        }
        if (orderBy.getVariableCount() == 0) {
View Full Code Here

Examples of org.teiid.query.util.CommandContext.clone()

        // Find the commands to be executed
        for (int i = 0; i < updateCommands.size(); i++) {
            Command updateCommand = (Command)updateCommands.get(i).clone();
            CommandContext context = this.getContext();
            if (this.contexts != null && !this.contexts.isEmpty()) {
              context = context.clone();
              context.setVariableContext(this.contexts.get(i));
            }
            boolean needProcessing = false;
            if(shouldEvaluate != null && shouldEvaluate.get(i)) {
                updateCommand = (Command) updateCommand.clone();
View Full Code Here

Examples of org.tinyuml.model.UmlRelation.clone()

    connectionPrototypes.put(RelationType.ASSOCIATION, assocPrototype);

    Association compPrototype = (Association)
      Association.getPrototype().clone();
    compPrototype.setAssociationType(AssociationType.COMPOSITION);
    compPrototype.setRelation((Relation) targetnavigable.clone());
    connectionPrototypes.put(RelationType.COMPOSITION, compPrototype);

    Association aggrPrototype = (Association)
      Association.getPrototype().clone();
    aggrPrototype.setAssociationType(AssociationType.AGGREGATION);
View Full Code Here

Examples of org.tuba.plugins.meta.MetaArtefactOperation.clone()

    if (operations == null)
      collectOperations();
    MetaArtefactOperation op = operations.get(id);
    if (op == null)
      return null;
    return op.clone();
  }

  public IArtefactProvider instantiateProvider(MetaProvider provider) {
    if (provider == null)
      return null;
View Full Code Here

Examples of org.tuba.plugins.meta.MetaIntegrator.clone()

    if (integrators == null)
      collectIntegrator();
    MetaIntegrator in = integrators.get(id);
    if (in == null)
      return null;
    return in.clone();
  }

  public List<MetaProvider> getProviders() {
    if (providers == null)
      collectProviders();
View Full Code Here

Examples of org.uengine.kernel.HumanActivity.clone()

          approver.setEndDate(new Timestamp(Calendar.getInstance().getTimeInMillis()));
          approver.setComment(psMsg.getComment());
          approvalActs.add(draftAct);
          continue;
        }
        ExternalApprovalActivity childAct = (ExternalApprovalActivity) draftAct.clone();
        childAct.setName("결재");
        childAct.setTracingTag(null);
        childAct.setRole(null);
        childAct.setApprovalTypeByString(approver.getType());
       
View Full Code Here

Examples of org.uengine.kernel.ProcessDefinition.clone()

     
      //ProcessDefinition orginial = getProcessDefinition(""+pil.getDefVerId());
       
      //Some EJB containers doesn't carry out serialization for object passing (especially in case that the caller is in the same VM).
      // So, it is required to make a copy so that the original object cannot be modified.
      return (ProcessDefinition)orginial.clone();
    }catch(Exception e){
      e.printStackTrace();
      throw new RemoteException("ProcessManagerError:"+e.getMessage(), e);
    }
  }
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.