Android Open Source - sqlite-provider Uri To Sql Attributes

From Project

Back to project page sqlite-provider.


The source code is released under:

Apache License

If you think the Android project sqlite-provider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package novoda.lib.sqliteprovider.util;
/*from   ww w .j av  a 2s  .  c o  m*/

public class UriToSqlAttributes {

    private final Uri uri;

    public UriToSqlAttributes(Uri uri) {
        this.uri = uri;

    public boolean hasWhereClauseInQuery() {
        if (uri.toString().split("\\?").length >= 2) {
            return true;
        return false;

    protected Uri getUri() {
        return uri;

Java Source Code List