How to create database using Db4o in android?

守給你的承諾、 提交于 2019-12-06 05:35:37

To store the object in database use

db().store(exercise);  

To retrieve All records from database, use

db().query(Object);

To retrieve particular record from database, use

db().queryByExample(Object);

If you need example, Try My blog example using db4o. In this example, simple student object will be stored in database using db4o. Student object will contain student name, register number, and his age.

Thank you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!