@Autowired protected AllCallDetailRecords(@Qualifier("callLogDbConnector") CouchDbConnector db) throws IOException { super(CallDetailRecord.class, new LuceneAwareCouchDbConnector(db.getDatabaseName(), new StdCouchDbInstance(db.getConnection()))); initStandardDesignDocument(); }
@Autowired protected AllCallDetailRecords(@Qualifier("callDetailRecord") CouchDbConnector db) throws IOException { super(CallDetailRecord.class, new LuceneAwareCouchDbConnector(db.getDatabaseName(), new StdCouchDbInstance(db.getConnection()))); initStandardDesignDocument(); }
private void removeDatabase() { HttpClient connection = couchDbConnector.getConnection(); RestTemplate restTemplate = new RestTemplate(connection); restTemplate.delete(couchDbConnector.path()); couchDbConnector.createDatabaseIfNotExists(); }
private void removeDatabase() { HttpClient connection = couchDbConnector.getConnection(); RestTemplate restTemplate = new RestTemplate(connection); restTemplate.delete(couchDbConnector.path()); couchDbConnector.createDatabaseIfNotExists(); }