Skip to content

How to use path value in WHERE clause? #88

Description

@actionuiuc

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions