문제

How to make a simple sql where in another field that is not the primary key, it uses the method where the class manager? does anyone know?

Not found in the documentation (http://droidparts.org) official as still under construction!

Thanks all!

도움이 되었습니까?

해결책

In an EntityManager subclass:

// Select is used to provide data to EntityCursorAdapter
Select<EntityType> select = select().columns("_id", "name").where("external_id",
        Is.EQUAL, 10);
// alternatively, call execute() to get the underlying Cursor
Cursor cursor = select().where("name", Is.LIKE, "%%alex%%").execute();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top