public class RepositoryFactoryCassandra extends Object implements RepositoryFactory
Constructor and Description |
---|
RepositoryFactoryCassandra() |
Modifier 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) |
public RepositoryFactoryCassandra()
public Repository newInstance()
RepositoryFactory
SqlContext
"repository-sql.xml".newInstance
in interface RepositoryFactory
Repository
.public Repository newInstance(Properties props)
RepositoryFactory
Repository
using default name from SqlContext
"repository-sql.xml"
with additional properties.newInstance
in interface RepositoryFactory
props
- additional properties of Repository
Repository
.public Repository newInstance(Properties props, SqlContext sqlContext)
RepositoryFactory
Repository
using additional properties and SqlContext
instance.newInstance
in interface RepositoryFactory
props
- additional properties of Repository
sqlContext
- the SqlContext
with the queries from Repository
.Repository
.public Repository newInstance(String sqlContext)
newInstance
in interface RepositoryFactory
sqlContext
- the name of XML file with the queries from Repository
.Repository
.public Repository newInstance(SqlContext sqlContext)
newInstance
in interface RepositoryFactory
sqlContext
- the SqlContext
with the queries from Repository
.Repository
.public RepositoryType getType()
RepositoryFactory
Repository
getType
in interface RepositoryFactory
Repository
like: JDBC, JPA, COUCHDB, CASSANDRACopyright © 2012–2020 jkniv, copyleft code. All rights reserved.