Skip to content

JpoRx Configuration Default

Francesco edited this page Jul 12, 2015 · 2 revisions

Creation of a new instance of JpoRx:

import javax.sql.DataSource;
import com.jporm.rx.session.datasource.JpoRxDataSourceBuilder;

public class sdfsdf {

// Your datasource here
public JpoRx newInstance(DataSource datasource, int maxParallelConnections) {

	// Use the JpoRxDataSourceBuilder to create a new instance of JPO.
	// The maxParallelConnections parameter indicates how many parallel connections
	// Jpo will use at max
	return new JpoRxDataSourceBuilder().build(datasource, maxParallelConnections);

}

JPO basics

JPO-RX

  • Configuration
  • Simple CRUD action
    • Prepare the beans
    • CRUD
  • Complex queries
    • Select
      • Join
    • Update
    • Save
    • Delete

JPO-RM

  • Configuration
  • Simple CRUD action
    • Prepare the beans
    • CRUD
  • Complex queries
    • Select
      • Join
    • Update
    • Save
    • Delete
Clone this wiki locally