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

Can't access any method after bucket.newQuery() #1

Closed
svarogSLASHc opened this issue Mar 28, 2016 · 1 comment
Closed

Can't access any method after bucket.newQuery() #1

svarogSLASHc opened this issue Mar 28, 2016 · 1 comment
Assignees

Comments

@svarogSLASHc
Copy link

Hi! Thank you for nice lib, but I can't build project because every time I get error "Cannot access xxx method in ""com.xmartlabs.rxsimplenosql.Bucket.BucketQueryBuilder".
Example:
`class SampleBean implements Entity {
private String name;
private String id;
private Map<String, Integer> mapping;

public String getName() {
    return name;
}

public void setName(String name) {
    this.name = name;
}

@Override
public String getId() {
    return id;
}

public void setId(String id) {
    this.id = id;
}

public Map<String, Integer> getMapping() {
    return mapping;
}

public void setMapping(Map<String, Integer> mapping) {
    this.mapping = mapping;
}

class sss{
    Bucket<SampleBean> bucket;
    public sss(Context context){
        Bucket<SampleBean> bucket = new Bucket<>(context, SampleBean.class, "bucketId");
    }

    public void single(){
        SampleBean entity = new SampleBean();
        entity.setId("1");
        entity.setName("Colin");
        Map<String, Integer> birthday = new HashMap<String, Integer>();
        birthday.put("day", 17);
        birthday.put("month", 2);
        birthday.put("year", 1982);
        entity.setMapping(birthday);

        bucket.newQuery()
                .save(entity)
                .subscribe();
    }
}

}`
Have you any ideas what is the problem?

@bryant1410
Copy link
Member

Yeah, this was because the inner class BucketQueryBuilder was not public.

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

2 participants