cpo-core

CPO is a persistence layer that allows you to persist POJOs. cpo-core is the persistence agnostic classes that are used for all persistence types.

License

License

GroupId

GroupId

org.synchronoss.cpo
ArtifactId

ArtifactId

cpo-core
Last Version

Last Version

5.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

cpo-core
CPO is a persistence layer that allows you to persist POJOs. cpo-core is the persistence agnostic classes that are used for all persistence types.

Download cpo-core

How to add to project

<!-- https://jarcasting.com/artifacts/org.synchronoss.cpo/cpo-core/ -->
<dependency>
    <groupId>org.synchronoss.cpo</groupId>
    <artifactId>cpo-core</artifactId>
    <version>5.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.synchronoss.cpo/cpo-core/
implementation 'org.synchronoss.cpo:cpo-core:5.2.1'
// https://jarcasting.com/artifacts/org.synchronoss.cpo/cpo-core/
implementation ("org.synchronoss.cpo:cpo-core:5.2.1")
'org.synchronoss.cpo:cpo-core:jar:5.2.1'
<dependency org="org.synchronoss.cpo" name="cpo-core" rev="5.2.1">
  <artifact name="cpo-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.synchronoss.cpo', module='cpo-core', version='5.2.1')
)
libraryDependencies += "org.synchronoss.cpo" % "cpo-core" % "5.2.1"
[org.synchronoss.cpo/cpo-core "5.2.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.9
org.apache.xmlbeans : xmlbeans jar 2.4.0

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.1.0

test (3)

Group / Artifact Type Version
junit : junit jar 4.11
org.slf4j : slf4j-log4j12 jar 1.7.9
log4j : log4j jar 1.2.17

Project Modules

There are no modules declared in this project.

cpo-api

Class Persistence Object (CPO) Application Programming Interface (API).

Documentation can be found here: http://synchronoss.github.io/cpo-api/site/

CPO is a java api that maps plain old java objects (POJOs) and interfaces to persistence functions. Unlike most ORM technologies and the java persistence api (JPA), CPO is designed to allow you to fully utilize the native syntax and functionality of your datastore.

CPO supports the following datastores:

*MySQL *MariaDB *Oracle *Postgres sans BLOBS *HSqlDB *Cassandra

CPO exploits that fact that datastores have a language that is used to manipulate data in that datastore. SQL is used for Relational Databases, CQL is used for Cassandra, and XPath is used for XML. Each language consists of a defined syntax that allows you to build expressions to access data in the datastore. CPO provides the means to map POJOs and interfaces into the parameters of these expressions prior to execution and then map the results of the executed expressions into one POJO or a java.util.List of POJOs

CPO stores all queries outside of your code providing the following benefits: runtime reloading, improved versioning, improved searching, and improved re-use. It also allows you to use the same POJO across tables or databases as the POJO has no direct linkage to a datastore. In fact, the same POJO can be used directly by jaxb as well.

CPO supports a polymorphic configuration system which allows programs to override cpo configurations in imported libraries. The program will be able to include the libraries' cpo configuration into its own and can override class level configurations. This allows library writers to provide default queries that can be overridden by the programmer that imports the library

cpo-api has a companion project cpo-util which is a utility program for managing cpo's xml configuration file. It provides a graphical user interface for configuring CPO. It also provides tools for automatically generate configuration file from an existing datastore.

CPO also comes with a maven plugin which will generate the cpo interfaces and/or pojos at build time. This allows the developer to only have to keep the configuration information up to date. Cpo-plugin will then manage the classes.

org.synchronoss.cpo

Synchronoss

Synchronoss Open Source Projects

Versions

Version
5.2.1
5.2.0
5.1.1
5.1.0
5.0.6
5.0.5
5.0.1
5.0.0