Db4o updating arraylist problem
Mapping object paradigm to relational paradigm is very hectic job for programmer and intensive for processor.
As mobile development move to object oriented paradigm, we need object based database where we can directly store/retrieve/update and delete objects without first converting them to relational table entities.
If the element is not found in the list then this method returns the value -1.
Function get would return the string stored at 3rd position (index 2) and would be assigned to the string “str”.
In the above example we have used methods such as add and remove.
8) int size(): It gives the size of the Array List – Number of elements of the list.
It would return true if the string “Steve” is present in the list else we would get false.
query By Example takes and object and retrieve object/s similar to object supplied in arguments.
In order to get all objects, we need to pass a dummy object whose all fields are set to null/0.