Interface RepositoryFactory


  • public interface RepositoryFactory
    Build a new instance of Repository Factory to construct it according the data access technology like JPA, JDBC, CASSANDRA, COUCHDB, etc
    Since:
    0.6.0
    Author:
    Alisson Gomes
    • Method Detail

      • newInstance

        Repository newInstance()
        New instance of Repository using default name from SqlContext "repository-sql.xml".
        Returns:
        new instance of Repository.
      • newInstance

        Repository newInstance​(Properties props)
        New instance of Repository using default name from SqlContext "repository-sql.xml" with additional properties.
        Parameters:
        props - additional properties of Repository
        Returns:
        new instance of Repository.
      • newInstance

        Repository newInstance​(Properties props,
                               net.sf.jkniv.sqlegance.SqlContext sqlContext)
        New instance of Repository using additional properties and SqlContext instance.
        Parameters:
        props - additional properties of Repository
        sqlContext - the SqlContext with the queries from Repository.
        Returns:
        new instance of Repository.
      • newInstance

        Repository newInstance​(String sqlContext)
        Parameters:
        sqlContext - the name of XML file with the queries from Repository.
        Returns:
        new instance of Repository.
      • newInstance

        Repository newInstance​(net.sf.jkniv.sqlegance.SqlContext sqlContext)
        Parameters:
        sqlContext - the SqlContext with the queries from Repository.
        Returns:
        new instance of Repository.
      • getType

        net.sf.jkniv.sqlegance.RepositoryType getType()
        The type of Repository
        Returns:
        the type of Repository like: JDBC, JPA, COUCHDB, CASSANDRA