Examples of CustomCondition


Examples of com.lyncode.xoai.dataprovider.filter.conditions.CustomCondition

        List<ScopedFilter> scopedFilters = new ArrayList<ScopedFilter>();
        ParameterMap filterConfiguration = new ParameterMap().withValues(new StringValue()
                .withValue(FIELD_1)
                .withName("fields"));

        scopedFilters.add(new ScopedFilter(new CustomCondition(getFilterResolver(),
                DSpaceMetadataExistsFilter.class,
                filterConfiguration),
                Scope.Query));

        String result = underTest.buildQuery(scopedFilters);
View Full Code Here

Examples of com.lyncode.xoai.dataprovider.filter.conditions.CustomCondition

                        new StringValue().withValue(FIELD_1),
                        new StringValue().withValue(FIELD_2)
                        )
                .withName("fields"));

        scopedFilters.add(new ScopedFilter(new CustomCondition(getFilterResolver(),
                DSpaceMetadataExistsFilter.class,
                filterConfiguration),
                Scope.Query));

        String result = underTest.buildQuery(scopedFilters);
View Full Code Here

Examples of com.lyncode.xoai.dataprovider.filter.conditions.CustomCondition

        List<ScopedFilter> scopedFilters = new ArrayList<ScopedFilter>();
        ParameterMap filterConfiguration = new ParameterMap().withValues(new StringValue()
                .withValue(FIELD_1)
                .withName("fields"));

        scopedFilters.add(new ScopedFilter(new CustomCondition(getFilterResolver(),
                DSpaceMetadataExistsFilter.class,
                filterConfiguration),
                Scope.Query));

        DatabaseQuery result = underTest.buildQuery(scopedFilters, START, LENGTH);
View Full Code Here

Examples of com.lyncode.xoai.dataprovider.filter.conditions.CustomCondition

                        new StringValue().withValue(FIELD_1),
                        new StringValue().withValue(FIELD_2)
                )
                .withName("fields"));

        scopedFilters.add(new ScopedFilter(new CustomCondition(getFilterResolver(),
                DSpaceMetadataExistsFilter.class,
                filterConfiguration),
                Scope.Query));

        DatabaseQuery result = underTest.buildQuery(scopedFilters, START, LENGTH);
View Full Code Here

Examples of org.jooq.impl.CustomCondition

        assertEquals("Hello 'A' 'Hello ?' Is there anybody '' 'B' ' out there '' ? '", r_refI().render(f));
    }

    @Test
    public void testCustomCondition() throws Exception {
        Condition c = new CustomCondition() {
            private static final long serialVersionUID = 6302350477408137757L;

            @Override
            public void toSQL(RenderContext ctx) {
                if (ctx.paramType() == INLINED) {
View Full Code Here

Examples of org.jooq.impl.CustomCondition

                    throw translate("CustomCondition.bind", getSQL(), e);
                }
            }
        };

        Condition c = new CustomCondition() {
            private static final long serialVersionUID = -629253722638033620L;

            @Override
            public void toSQL(RenderContext context) {
                context.setData("Foo-Condition", "Baz");
View Full Code Here

Examples of org.jooq.impl.CustomCondition

        assertEquals("Hello 'A' 'Hello ?' Is there anybody '' 'B' ' out there '' ? '", r_refI().render(f));
    }

    @Test
    public void testCustomCondition() throws Exception {
        Condition c = new CustomCondition() {
            private static final long serialVersionUID = 6302350477408137757L;

            @Override
            public void toSQL(RenderContext ctx) {
                if (ctx.inline()) {
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.