public ConnectedCrud < T , K > table ( DataSource dataSource , String table ) throws SQLException { Connection connection = dataSource . getConnection ( ) ; try { return new ConnectedCrud < T , K > ( new DataSourceTransactionTemplate ( dataSource ) , table ( connection , table ) ) ; } finally { connection . close ( ) ; } }
Create a connected crud against the specified table validating it against the specified datasource .