Examples of equal()


Examples of org.eclipse.persistence.expressions.ExpressionBuilder.equal()

                // nested paths must be single valued.
                collectionBase = collectionBase.get(pathExpression.getPath(i));
            }
            String lastPath = pathExpression.getPath(pathExpression.pathSize() - 1);
            // The following code is copied from Expression.noneOf and altered a bit
            Expression criteria = newBuilder.equal(parentExpression).and(collectionBase.anyOf(lastPath).equal(entityExpression));
            ReportQuery subQuery = new ReportQuery();
            subQuery.setShouldRetrieveFirstPrimaryKey(true);
            subQuery.setSelectionCriteria(criteria);
            // subQuery has the same reference class as parentExpression (which is an ExpressionBuilder).
            subQuery.setReferenceClass(((ExpressionBuilder)parentExpression).getQueryClass());
View Full Code Here

Examples of org.eclipse.persistence.internal.expressions.FunctionExpression.equal()

            expression.addChild(Expression.from(null, geom1));
        }else{
            expression.addChild(Expression.from(params, geom1));
        }
        expression.setOperator(anOperator);
        Expression finalExpression = expression.equal("TRUE");
        return finalExpression;
    }
}
View Full Code Here

Examples of org.geotools.filter.FilterFactoryImpl.equal()

  @Test
  public void test() {
    FilterFactoryImpl factory = new FilterFactoryImpl();
    Expression exp1 = factory.createAttributeExpression(type,"pid");
    Expression exp2 = factory.createLiteralExpression("a89dhd-123-abc");
    Filter f = factory.equal(exp1, exp2, false);
    String ss = FilterToCQLTool.toCQL(f);
    assertTrue(ss.contains("'a89dhd-123-abc'"));
   
  }
View Full Code Here

Examples of org.jatha.dynatype.LispValue.equal()

        assertEquals("Argument 1 should be correct",arg1,outp6.get(a_sym));
        assertEquals("Argument 2 should be correct",arg2,outp6.get(c_sym));
        assertEquals("Argument 1 supplied should be correct",lisp.T,outp6.get(b_sym));
        assertEquals("Argument 2 supplied should be correct",lisp.T,outp6.get(d_sym));
        assertTrue("Rest argument should be correct",expected6.equal((LispValue)outp6.get(x_sym)) == lisp.T);
    }

    public void testNormalKeyParameters() {
        final LispValue arg1 = lisp.makeInteger(17);
        final LispValue arg2 = lisp.makeString("Ojsan sa");
View Full Code Here

Examples of org.omg.CORBA.Any.equal()

            try
            {
                for (int _x = 0; _x < _memberCount; _x++)
                {
                    if (_any.equal(unionTypeCode.member_label(_x)))
                    {
                        return unionTypeCode.member_name(_x);
                    }
                }
            } catch (Bounds b)
View Full Code Here

Examples of org.omg.CORBA.TypeCode.equal()

        TEST(av.extract_string().equals(ANY_VALUE));
        s1.next();
        tc = s1.get_typecode();
        s1.next();
        TEST(tc.equal(TYPECODE_VALUE));
        TEST(s1.get_reference() == null);
        s1.next();
        str = s1.get_string();
        s1.next();
        TEST(str.equals(STRING_VALUE));
View Full Code Here

Examples of org.opengis.filter.FilterFactory.equal()

        OGRDataStore s = new OGRDataStore(getAbsolutePath(STATE_POP), null, null, ogr);
        FeatureSource fs = s.getFeatureSource(s.getTypeNames()[0]);
       
        // equality filter
        FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
        Filter f = ff.equal(ff.property("STATE_NAME"), ff.literal("New York"), true);
        assertEquals(1, fs.getFeatures(f).size());
       
        // greater than
        f = ff.greater(ff.property("PERSONS"), ff.literal(10000000));
        assertEquals(6, fs.getFeatures(f).size());
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.equal()

    private org.opengis.filter.Filter createGeometryTypeFilter( String geomName, String type )
            throws IllegalFilterException {
        FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);
        Function function = ff.function("geometryType", ff.property(geomName));
        return ff.equal(function, ff.literal(type)); //$NON-NLS-1$
    }

    private boolean writeToShapefile(SimpleFeatureCollection fc, SimpleFeatureType type, File file ) throws IOException {
       
        if (!canWrite(file)) {
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.OpComparators.OpEquator.equal()

    assertTrue(eq.equalNullable((DocOp) null, null));
    assertFalse(eq.equalNullable(null, new DocOpBuffer().finish()));
    assertFalse(eq.equalNullable(new DocOpBuffer().finish(), null));

    try {
      eq.equal(new DocOpBuffer().finish(), null);
      fail();
    } catch (NullPointerException e) {
      // ok
    }
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.