Data Persistence: DAO Pattern.

The DAO persistence pattern serves to isolate the persistence layer of the application layer, thus allowing both parts to evolve separately without knowing anything about the other.

Structures

Structures
└── src
└── main
└── java
└── com.your_company_name.your_name_app
.
.
.
└── persistence
└──SampleDAO.java

You can see an example using DAO in TotalCross in the SQLite documentation​

Referencies