Package net.sf.jkniv.sqlegance.builder
Class RepositoryConfig
- java.lang.Object
-
- net.sf.jkniv.sqlegance.builder.RepositoryConfig
-
public class RepositoryConfig extends Object
- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Constructor Summary
Constructors Constructor Description RepositoryConfig()RepositoryConfig(String name)Build new configuration object that access to DataSource and your properties Default instance is created if parameter is anullname
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String key, String value)voidadd(Properties props)DataMaskinggetDataMasking()StringgetDescription()StringgetJdbcAdapterFactory()StringgetJndiDataSource()StringgetName()PropertiesgetProperties()StringgetProperty(String proper)StringgetProperty(String proper, String defaultValue)StringgetProperty(RepositoryProperty proper)StringgetQueryNameStrategy()RepositoryTypegetRepositoryType()SqlDialectgetSqlDialect()StatisticalgetStatistical()TransactionTypegetTransactionType()booleanhasProperties()booleanisReloadableXmlEnable()booleanisShotKeyEnable()DataSourcelookup()voidsetSqlDialect(SqlDialect sqlDialect)StringtoString()
-
-
-
Constructor Detail
-
RepositoryConfig
public RepositoryConfig()
-
RepositoryConfig
public RepositoryConfig(String name)
Build new configuration object that access to DataSource and your properties Default instance is created if parameter is anullname- Parameters:
name- from repository configuration- Throws:
IllegalArgumentException- if the name isnull
-
-
Method Detail
-
getQueryNameStrategy
public String getQueryNameStrategy()
-
getJdbcAdapterFactory
public String getJdbcAdapterFactory()
-
isShotKeyEnable
public boolean isShotKeyEnable()
-
isReloadableXmlEnable
public boolean isReloadableXmlEnable()
-
add
public void add(Properties props)
-
hasProperties
public boolean hasProperties()
-
getDataMasking
public DataMasking getDataMasking()
-
getDescription
public String getDescription()
-
getName
public String getName()
-
getTransactionType
public TransactionType getTransactionType()
-
getSqlDialect
public SqlDialect getSqlDialect()
-
setSqlDialect
public void setSqlDialect(SqlDialect sqlDialect)
-
getStatistical
public Statistical getStatistical()
-
getJndiDataSource
public String getJndiDataSource()
-
getProperties
public Properties getProperties()
-
getProperty
public String getProperty(RepositoryProperty proper)
-
lookup
public DataSource lookup()
-
getRepositoryType
public RepositoryType getRepositoryType()
-
-