An example of the java service -> dao pattern