Menu

CPO is Open-Sourced!!

The Class Persistence Object (CPO), originally presented at JavaOne 2004, is now open-source.

CPO implements Object to JDBC Mapping (OJM) to allow developers to take full advantage of the database systems that they access.

CPO supports the following features:
- JDBC Transactions
- Batch Updates
- Cached Prepared Statements
- Cached Connections
- BLOBs including Oracle BLOBs
- Oracle XML column types
- Custom column types
- Column level encryption
- Column level hasing
- Column level compression
- POJOs
- one object to one table
- one object to many tables
- one object to many rows in one table (name-value pairs)
- dynamic where clauses
- dyanmic order by clauses
- primitive types
- 68K footprint

CPO allows developers to start with an existing datamodel or to design the datamodel first. CPO can build pojos from queries which represent the pojo.

e.g. "Select * from person" will create a person pojo and use the column names returned by the queries as the names of the attributes and the getters/setters.

CPO plays well in organizations where database development and java development are split. The database developers can build the database with their tools and processes. The java developers can then use CPO to map pojos to the existing database tables.

Posted by David Berry 2006-06-06

Log in to post a comment.