public void configure(PersistenceAdapter adapter) throws IOException { if (adapter instanceof JDBCPersistenceAdapter) { this.jdbcAdapter = (JDBCPersistenceAdapter) adapter; this.dataSource = ((JDBCPersistenceAdapter) adapter).getLockDataSource(); // we cannot get the statements (yet) as they may be configured later } }
public void configure(PersistenceAdapter adapter) throws IOException { if (adapter instanceof JDBCPersistenceAdapter) { this.jdbcAdapter = (JDBCPersistenceAdapter) adapter; this.dataSource = ((JDBCPersistenceAdapter) adapter).getLockDataSource(); // we cannot get the statements (yet) as they may be configured later } }
public void configure(PersistenceAdapter adapter) throws IOException { if (adapter instanceof JDBCPersistenceAdapter) { this.jdbcAdapter = (JDBCPersistenceAdapter) adapter; this.dataSource = ((JDBCPersistenceAdapter) adapter).getLockDataSource(); // we cannot get the statements (yet) as they may be configured later } }
public void configure(PersistenceAdapter adapter) throws IOException { if (adapter instanceof JDBCPersistenceAdapter) { this.jdbcAdapter = (JDBCPersistenceAdapter) adapter; this.dataSource = ((JDBCPersistenceAdapter) adapter).getLockDataSource(); // we cannot get the statements (yet) as they may be configured later } }
public void setPersistenceAdapter(JDBCPersistenceAdapter adapter) throws IOException { this.dataSource = adapter.getLockDataSource(); this.statements = adapter.getStatements(); }