Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use path value in WHERE clause? #88

Open
actionuiuc opened this issue Feb 1, 2018 · 0 comments
Open

How to use path value in WHERE clause? #88

actionuiuc opened this issue Feb 1, 2018 · 0 comments

Comments

@actionuiuc
Copy link

Hi,
I believe this has been asked in a couple different ways, but I don't see any answer. I'll try to summarize. Is it possible to use a value such as 'expTime' below(pathSegment = 4) in the ? of the 'where' clause? I would want the whereColumn to compare with pathSegment value 2 and the where to use pathSegment 4.

    @InexactContentUri(
            path = Path.ITEMS + "/" + Path.NOTIFY_FLAG + "/#/" + Path.EXPIRE_NOTIFY + "/#",
            name = "ITEM_EXPIRE_LESS",
            type = "vnd.android.cursor.item/item",
            whereColumn = ItemColumns.ITEM_NOTIFY,
            where = "item_exp_date < ?",
            pathSegment = {2,4})
    public static Uri withExp(long expTime) {
        return buildUri(Path.ITEMS, Path.NOTIFY_FLAG, "1", Path.EXPIRE_NOTIFY, String.valueOf(expTime));
    }

Thanks,

Brian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant