public interface RepositoryFactory
Repository
Factory to construct it
according the data access technology like JPA, JDBC, CASSANDRA, COUCHDB, etcModifier and Type | Method and Description |
---|---|
RepositoryType |
getType()
The type of
Repository |
Repository |
newInstance()
New instance of Repository using default name from
SqlContext "repository-sql.xml". |
Repository |
newInstance(Properties props)
New instance of
Repository using default name from SqlContext "repository-sql.xml"
with additional properties. |
Repository |
newInstance(Properties props,
SqlContext sqlContext)
New instance of
Repository using additional properties and SqlContext instance. |
Repository |
newInstance(SqlContext sqlContext) |
Repository |
newInstance(String sqlContext) |
Repository newInstance()
SqlContext
"repository-sql.xml".Repository
.Repository newInstance(Properties props)
Repository
using default name from SqlContext
"repository-sql.xml"
with additional properties.props
- additional properties of Repository
Repository
.Repository newInstance(Properties props, SqlContext sqlContext)
Repository
using additional properties and SqlContext
instance.props
- additional properties of Repository
sqlContext
- the SqlContext
with the queries from Repository
.Repository
.Repository newInstance(String sqlContext)
sqlContext
- the name of XML file with the queries from Repository
.Repository
.Repository newInstance(SqlContext sqlContext)
sqlContext
- the SqlContext
with the queries from Repository
.Repository
.RepositoryType getType()
Repository
Repository
like: JDBC, JPA, COUCHDB, CASSANDRACopyright © 2012–2020 jkniv, copyleft code. All rights reserved.