Back to project page CursorMapper.
The source code is released under:
Apache License
If you think the Android project CursorMapper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package cursor.mapper.example; //from ww w. jav a 2 s. c o m import cursor.mapper.annotation.CursorName; import cursor.mapper.example.ExampleContentProvider.Contract; public class UserModel { @CursorName(Contract.FIRST_NAME) private String firstName; @CursorName(Contract.EMAIL) private String email; @CursorName(Contract.SURNAME) private String surname; @CursorName(Contract.AGE) private int age; public int getAge() { return age; } public String getEmail() { return email; } public String getFirstName() { return firstName; } public String getSurname() { return surname; } }