Package net.sf.jkniv.whinstone.spi
Interface RepositoryFactory
-
public interface RepositoryFactoryBuild a new instance ofRepositoryFactory to construct it according the data access technology like JPA, JDBC, CASSANDRA, COUCHDB, etc- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description net.sf.jkniv.sqlegance.RepositoryTypegetType()The type ofRepositoryRepositorynewInstance()New instance of Repository using default name fromSqlContext"repository-sql.xml".RepositorynewInstance(String sqlContext)RepositorynewInstance(Properties props)New instance ofRepositoryusing default name fromSqlContext"repository-sql.xml" with additional properties.RepositorynewInstance(Properties props, net.sf.jkniv.sqlegance.SqlContext sqlContext)New instance ofRepositoryusing additional properties andSqlContextinstance.RepositorynewInstance(net.sf.jkniv.sqlegance.SqlContext sqlContext)
-
-
-
Method Detail
-
newInstance
Repository newInstance()
New instance of Repository using default name fromSqlContext"repository-sql.xml".- Returns:
- new instance of
Repository.
-
newInstance
Repository newInstance(Properties props)
New instance ofRepositoryusing default name fromSqlContext"repository-sql.xml" with additional properties.- Parameters:
props- additional properties ofRepository- Returns:
- new instance of
Repository.
-
newInstance
Repository newInstance(Properties props, net.sf.jkniv.sqlegance.SqlContext sqlContext)
New instance ofRepositoryusing additional properties andSqlContextinstance.- Parameters:
props- additional properties ofRepositorysqlContext- theSqlContextwith the queries fromRepository.- Returns:
- new instance of
Repository.
-
newInstance
Repository newInstance(String sqlContext)
- Parameters:
sqlContext- the name of XML file with the queries fromRepository.- Returns:
- new instance of
Repository.
-
newInstance
Repository newInstance(net.sf.jkniv.sqlegance.SqlContext sqlContext)
- Parameters:
sqlContext- theSqlContextwith the queries fromRepository.- Returns:
- new instance of
Repository.
-
getType
net.sf.jkniv.sqlegance.RepositoryType getType()
The type ofRepository- Returns:
- the type of
Repositorylike: JDBC, JPA, COUCHDB, CASSANDRA
-
-