Sharding Support

Lance Andersen lance.andersen at
Tue Jun 30 17:25:33 UTC 2015

As there are several databases that provide support for sharding, we have put together a simple sharding API for JDBC.  

    DataSource ds = new MyDataSource();
    ShardKey shardKey = ds.createShardKeyBuilder()
                           .subkey("abc", JDBCType.VARCHAR)
                           .subkey(94002, JDBCType.INTEGER)
    Connection con = ds.createConnectionBuilder()

  You can find the specdiff  at:

Note you will see the start of a few additional clean-ups as well in the javadocs


Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at

More information about the jdbc-spec-discuss mailing list