View Javadoc

1   /*
2    * Copyright James Leigh (c) 2007.
3    *
4    * Licensed under the Aduna BSD-style license.
5    */
6   package org.openrdf.repository.readahead;
7   
8   import org.openrdf.repository.Repository;
9   import org.openrdf.repository.RepositoryConnection;
10  import org.openrdf.repository.RepositoryException;
11  import org.openrdf.repository.base.RepositoryWrapper;
12  
13  /**
14   * Repository wrapper that retrives and caches statements by their subject (if
15   * specified).
16   * 
17   * @author James Leigh
18   * 
19   */
20  public class ReadAheadRepository extends RepositoryWrapper {
21  
22  	public ReadAheadRepository() {
23  		super();
24  	}
25  
26  	public ReadAheadRepository(Repository repository) {
27  		super(repository);
28  	}
29  
30  	@Override
31  	public RepositoryConnection getConnection() throws RepositoryException {
32  		return new ReadAheadConnection(this, super.getConnection());
33  	}
34  
35  }