Examples of addCondition()


Examples of org.hibernate.sql.SimpleSelect.addCondition()

      select.addColumns( rootTableKeyColumnNames );
    }
    if ( getFactory().getSettings().isCommentsEnabled() ) {
      select.setComment( "get version " + getEntityName() );
    }
    return select.addCondition( rootTableKeyColumnNames, "=?" ).toStatementString();
  }

  protected String generateInsertGeneratedValuesSelectString() {
    return generateGeneratedValuesSelectString( getPropertyInsertGenerationInclusions() );
  }
View Full Code Here

Examples of org.hsqldb.RangeVariable.RangeVariableConditions.addCondition()

                                            : rangeVar.joinConditions[0];

                conditions.addIndexCondition(exprList, index, colCount);

                if (isOuter) {
                    conditions.addCondition(in);
                }
            }
        }
    }
}
View Full Code Here

Examples of org.jamesii.model.carules.reader.antlr.parser.AndExpression.addCondition()

    AndExpression a = new AndExpression(new BooleanCondition(true));
    List<String> states = Arrays.asList(allStates);
    for (Entry<String, Integer> e : map.entrySet()) {
      int i = states.indexOf(e.getKey());
      a.addCondition(new StateCondition(i, e.getValue(), e.getValue()));
    }

    return new CARule(new CurrentStateCondition(states.indexOf(currentState)),
        a, states.indexOf(targetState), 1d);
  }
View Full Code Here

Examples of org.jvnet.glassfish.comms.deployment.backend.Pattern.addCondition()

                // create a mapping for this servlet
                ExistsOperand existsOperand = new ExistsOperand();
                existsOperand.setVariable("request.method");
                Pattern pattern = new Pattern();
                pattern.addCondition(existsOperand);

                ServletMapping servletMapping = new ServletMapping();
                servletMapping.setServletName(value);
                servletMapping.setPattern(pattern);
View Full Code Here

Examples of org.opensaml.SAMLAssertion.addCondition()

                    attributeStatement.addAttribute(attribute);
                }
            }

            samlAssertion.addStatement(samlAuthenticationStatement);
            samlAssertion.addCondition(samlAudienceRestrictionCondition);
            samlResponse.addAssertion(samlAssertion);

            final String xmlResponse = samlResponse.toString();

            response.setContentType("text/xml; charset=" + this.encoding);
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.assertion.ConditionsType.addCondition()

        ConditionsType conditions = new ConditionsType();
        conditions.setNotBefore(notBefore);
        conditions.setNotOnOrAfter(notOnOrAfter);
        if (restrictions != null) {
            for (ConditionAbstractType condition : restrictions) {
                conditions.addCondition(condition);
            }

        }
        return conditions;
    }
View Full Code Here

Examples of org.rhq.core.domain.alert.AlertDefinition.addCondition()

        goingDown.setCategory(AlertConditionCategory.AVAILABILITY);
        goingDown.setComparator("==");
        goingDown.setOption(AvailabilityType.DOWN.toString());

        AlertDefinition def = new AlertDefinition();
        def.addCondition(goingDown);
        def.setName("Test alert definition");
        def.setPriority(AlertPriority.MEDIUM);
        def.setAlertDampening(new AlertDampening(AlertDampening.Category.NONE));
        def.setRecoveryId(0);
        alertDefinitionManager.createAlertDefinitionInNewTransaction(overlord, def, res.getId(), true);
View Full Code Here

Examples of org.teiid.query.processor.xml.IfInstruction.addCondition()

        Program childProgram = new Program();
        IfInstruction ifInst = (IfInstruction)context.get(node.getParentNode());
       
        if (node.getCriteria() != null) {
            Condition condition = new CriteriaCondition(node.getCriteriaNode(), childProgram);
            ifInst.addCondition(condition);           
        }
       
        if (node.isDefault()) {
            DefaultCondition defCondition = new DefaultCondition(childProgram);
            ifInst.setDefaultCondition(defCondition);           
View Full Code Here

Examples of org.teiid.query.processor.xml.IfInstruction.addCondition()

        // this is set by root recursive node. Note that the MappingClass on recursive
        // node is same as the source on the root recursive node.
        Program recursiveProgram = (Program)context.get(element.getMappingClass().toUpperCase());
        IfInstruction ifInst = new IfInstruction();
        RecurseProgramCondition recurseCondition = buildRecurseCondition(element, recursiveProgram);
        ifInst.addCondition(recurseCondition);
        ifInst.setDefaultCondition(new DefaultCondition(new Program()));
       
        currentProgram.addInstruction(ifInst);
    }  
   
View Full Code Here

Examples of org.teiid.query.processor.xml.IfInstruction.addCondition()

        i9.setBlockProgram(whileProgram);
        whileProgram.addInstruction(i10);

        Program thenProgram = new Program();
        Condition cond = new CriteriaCondition(crit, thenProgram);
        i10.addCondition(cond);

        thenProgram.addInstruction(i11);
        thenProgram.addInstruction(i12);
        thenProgram.addInstruction(i13);
        thenProgram.addInstruction(i14);
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.