Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8857887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:41:54+00:00 2026-06-14T14:41:54+00:00

I’m trying to append two BooleanExpression. One is a regulate BooleanExpression, the other is

  • 0

I’m trying to append two BooleanExpression.
One is a regulate BooleanExpression, the other is created out of a Path.
I think my usage of the Path is wrong. My code:

public static Path<?> getPathByColumnName(String columnName) {
    Path<?> retval = null;      

    QProfile p = QProfile.profile;

    if (columnName.equals("name")) {
        retval = p.name;
    } else if (columnName.equals("account")) {
        retval = p.account.name;    
    } else if (columnName.equals("isPublic")) {
        retval = p.isPublic;
    } else if (columnName.equals("datavendors")) {
        retval = p.dataVendors.any().name;
    }

    return retval;
}

The Path is then sent to the following method

public static BooleanExpression getFilterPredicateByFilterAndPath(Path path, FilerType type, String filter) {
BooleanExpression retval = null;

    if (path instanceof StringPath) {
        if (FilerType.CONTAIN.equals(type)) {
            retval = ((StringPath)path).like(filter);
        }               
    } else if (path instanceof BooleanPath) {
        if (FilerType.EQUAL.equals(type)) {
            retval = ((BooleanPath)path).eq(Boolean.valueOf(filter));
        }
    }       

    return retval;
}

Then I’m trying to abbend the recived BooleanExpression to the regulare one. This does not work. Any Ideas will be welcomed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:41:55+00:00Added an answer on June 14, 2026 at 2:41 pm

    My bad. The usage of Path was correct the error was in a different part of the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying to setup two listeners for one button. Here is my code: This
I'm trying to append two structures into one Ex. l1 = add(1, add(2, NULL));
I'm trying to create a function that would append two vectors together, but I
I'm trying to merge two lists if they contain a certain word. My code
i'm trying to use jquery to append an element to two places, but only
I am trying to append two chars but for some reason I am getting
I'm trying to append information to my page from two different JavaScript arrays. It
I am trying to append one list with another . If i pass a
I have two string variables ticker and detail. I'm trying to print out the
I have been trying to append two 2 D arrays in java. Is it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.