Skip to content

JDBCDatabaseService

Rogiel edited this page Sep 13, 2011 · 1 revision

This is an implementation of DatabaseService that provides an layer to JDBC.

Internal specification

The [[Query]] object

If you wish to implement a new DAO you should try not use [[Query]] object directly because it only provides low level access to the JDBC architecture. Instead, you could use an specialized class, like [[InsertUpdateQuery]], [[SelectListQuery]] or [[SelectSingleQuery]]. If you do need low level access, feel free to use the Query class directly.

The [[Mapper]] object

The mapper object maps an JDBC ResultSet into an Java Object. All Model objects support [[CachedMapper]] that will cache result based on its ID and always use the same object with the same ID.

Clone this wiki locally