Package tigase.db.util.importexport

# Class DataSourceHelper

java.lang.Object
tigase.db.util.importexport.DataSourceHelper

public class DataSourceHelper extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DataSourceHelper(List<SchemaManager.DataSourceInfo> dataSourceInfos)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<R> R`
  `createRepository(SchemaManager.RepoInfo repoInfo)`
  `DataSource`
  `get(String name)`
  `DataSource`
  `get(SchemaManager.DataSourceInfo dataSourceInfo)`
  `DataSource`
  `getDefault()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DataSourceHelper

    public DataSourceHelper(List<SchemaManager.DataSourceInfo> dataSourceInfos)

- ## Method Details

  - ### getDefault

    public DataSource getDefault() throws RepositoryException
    Throws:
      `RepositoryException`

  - ### get

    public DataSource get(String name) throws RepositoryException
    Throws:
      `RepositoryException`

  - ### get

    public DataSource get(SchemaManager.DataSourceInfo dataSourceInfo) throws RepositoryException
    Throws:
      `RepositoryException`

  - ### createRepository

    public <R> R createRepository(SchemaManager.RepoInfo repoInfo) throws RepositoryException, InstantiationException, IllegalAccessException
    Throws:
      `RepositoryException`
      `InstantiationException`
      `IllegalAccessException`