@Test public void testServiceList_SequenceNumber_NoAutoCommit() throws Exception { createDatabase(); JdbcServiceList service = createServiceCollection(); DatabaseConnection c = createJdbcConnection(); c.setAutoCommit(false); service.setConnection(c); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); service.add(createSequenceNumberService(null, getName(), SequenceNumberCase.DEFAULT_ID)); execute(service, msg); doStandardAssertions(msg); assertTrue(msg.getObjectHeaders().containsKey(JdbcConstants.OBJ_METADATA_DATABASE_CONNECTION_KEY)); Connection sqlCon = (Connection) msg.getObjectHeaders().get(JdbcConstants.OBJ_METADATA_DATABASE_CONNECTION_KEY); }
@Override public void setConnection(AdaptrisConnection c) { this.connection = c; }
JdbcServiceList extends ServiceList implements ConnectedService { @Override public void setConnection(AdaptrisConnection c) { this.connection = c; } }
JdbcServiceList extends ServiceList implements ConnectedService { @Override public void setConnection(AdaptrisConnection c) { this.connection = c; } JdbcServiceList();  JdbcServiceList(Collection<Service> serviceList);  JdbcServiceList(Service... services); }
JdbcServiceList extends ServiceList implements ConnectedService { @Override public void setConnection(AdaptrisConnection c) { this.connection = c; } JdbcServiceList();  JdbcServiceList(Collection<Service> serviceList);  JdbcServiceList(Service... services); @Override void prepare(); @Override AdaptrisConnection getConnection(); @Override void setConnection(AdaptrisConnection c); }
JdbcServiceList extends ServiceList implements ConnectedService { @Override public void setConnection(AdaptrisConnection c) { this.connection = c; } JdbcServiceList();  JdbcServiceList(Collection<Service> serviceList);  JdbcServiceList(Service... services); @Override void prepare(); @Override AdaptrisConnection getConnection(); @Override void setConnection(AdaptrisConnection c);  }