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 used loadByRowId()? #1020

Open
DearDaXiong opened this issue Mar 16, 2020 · 0 comments
Open

How to used loadByRowId()? #1020

DearDaXiong opened this issue Mar 16, 2020 · 0 comments

Comments

@DearDaXiong
Copy link

package com.example.greendaotest;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

@entity
public class User {
@id(autoincrement = true)
private Long id;

private String name;

@Generated(hash = 873297011)
public User(Long id, String name) {
    this.id = id;
    this.name = name;
}

@Generated(hash = 586692638)
public User() {
}

public Long getId() {
    return this.id;
}

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

public String getName() {
    return this.name;
}

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

}

I want to query the records with the specified number of rows。for example,There are five records in this table. I want to check the third record。I see that the loadbyrowid() interface is available,but not query.
so,i want to know How to use the loadbyrowid() interface?and my issues can how to query?

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