com.bstek.dorado.core.store
public abstract class SqlBaseStoreSupport extends java.lang.Object implements SqlBaseStore, org.springframework.beans.factory.BeanNameAware
Modifier and Type | Field and Description |
---|---|
protected java.util.Properties |
connectionProperties |
protected java.lang.Boolean |
defaultAutoCommit |
protected java.lang.String |
defaultCatalog |
protected java.lang.Boolean |
defaultReadOnly |
protected java.lang.Integer |
defaultTransactionIsolation |
protected java.lang.String |
driverClassName |
protected java.lang.Integer |
initialSize |
protected java.util.List<java.lang.String> |
initScriptFiles |
protected java.lang.Integer |
maxActive |
protected java.lang.Integer |
maxIdle |
protected java.lang.Long |
maxWait |
protected java.lang.Long |
minEvictableIdleTimeMillis |
protected java.lang.Integer |
minIdle |
protected java.lang.String |
namespace |
protected java.lang.String |
password |
protected java.lang.String |
scriptFileCharset |
protected java.lang.Long |
timeBetweenEvictionRunsMillis |
protected java.lang.String |
username |
protected int |
version |
Constructor and Description |
---|
SqlBaseStoreSupport() |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getConnection() |
java.util.Properties |
getConnectionProperties() |
protected abstract java.lang.String |
getConnectionUrl() |
protected javax.sql.DataSource |
getDataSource() |
java.lang.Boolean |
getDefaultAutoCommit() |
java.lang.String |
getDefaultCatalog() |
java.lang.Boolean |
getDefaultReadOnly() |
java.lang.Integer |
getDefaultTransactionIsolation() |
java.lang.String |
getDriverClassName() |
java.lang.Integer |
getInitialSize() |
java.util.List<java.lang.String> |
getInitScriptFiles() |
java.lang.Integer |
getMaxActive() |
java.lang.Integer |
getMaxIdle() |
java.lang.Long |
getMaxWait() |
java.lang.Long |
getMinEvictableIdleTimeMillis() |
java.lang.Integer |
getMinIdle() |
java.lang.String |
getNamespace() |
java.lang.String |
getPassword() |
java.lang.String |
getScriptFileCharset() |
java.lang.Long |
getTimeBetweenEvictionRunsMillis() |
java.lang.String |
getUsername() |
int |
getVersion() |
protected void |
initNamespace(java.sql.Connection conn) |
protected abstract void |
prepareNamespace() |
protected void |
runInitScriptFile(java.sql.Connection conn,
Resource initScriptFile) |
void |
setBeanName(java.lang.String name) |
void |
setConnectionProperties(java.util.Properties connectionProperties) |
void |
setDefaultAutoCommit(java.lang.Boolean defaultAutoCommit) |
void |
setDefaultCatalog(java.lang.String defaultCatalog) |
void |
setDefaultReadOnly(java.lang.Boolean defaultReadOnly) |
void |
setDefaultTransactionIsolation(java.lang.Integer defaultTransactionIsolation) |
void |
setDriverClassName(java.lang.String driverClassName) |
void |
setInitialSize(java.lang.Integer initialSize) |
void |
setInitScriptFiles(java.util.List<java.lang.String> initScriptFiles) |
void |
setMaxActive(java.lang.Integer maxActive) |
void |
setMaxIdle(java.lang.Integer maxIdle) |
void |
setMaxWait(java.lang.Long maxWait) |
void |
setMinEvictableIdleTimeMillis(java.lang.Long minEvictableIdleTimeMillis) |
void |
setMinIdle(java.lang.Integer minIdle) |
void |
setNamespace(java.lang.String namespace) |
void |
setPassword(java.lang.String password) |
void |
setScriptFileCharset(java.lang.String scriptFileCharset) |
void |
setTimeBetweenEvictionRunsMillis(java.lang.Long timeBetweenEvictionRunsMillis) |
void |
setUsername(java.lang.String username) |
void |
setVersion(int version) |
protected java.lang.String namespace
protected int version
protected java.util.List<java.lang.String> initScriptFiles
protected java.lang.String scriptFileCharset
protected java.lang.Boolean defaultAutoCommit
protected java.lang.String defaultCatalog
protected java.lang.Boolean defaultReadOnly
protected java.lang.Integer defaultTransactionIsolation
protected java.lang.String driverClassName
protected java.lang.Integer maxActive
protected java.lang.Integer maxIdle
protected java.lang.Integer minIdle
protected java.lang.Integer initialSize
protected java.lang.Long maxWait
protected java.lang.Long timeBetweenEvictionRunsMillis
protected java.lang.Long minEvictableIdleTimeMillis
protected java.lang.String password
protected java.lang.String username
protected java.util.Properties connectionProperties
public void setBeanName(java.lang.String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
public int getVersion()
public void setVersion(int version)
public java.util.List<java.lang.String> getInitScriptFiles()
public void setInitScriptFiles(java.util.List<java.lang.String> initScriptFiles)
public java.lang.String getScriptFileCharset()
public void setScriptFileCharset(java.lang.String scriptFileCharset)
public java.lang.Boolean getDefaultAutoCommit()
public void setDefaultAutoCommit(java.lang.Boolean defaultAutoCommit)
public java.lang.String getDefaultCatalog()
public void setDefaultCatalog(java.lang.String defaultCatalog)
public java.lang.Boolean getDefaultReadOnly()
public void setDefaultReadOnly(java.lang.Boolean defaultReadOnly)
public java.lang.Integer getDefaultTransactionIsolation()
public void setDefaultTransactionIsolation(java.lang.Integer defaultTransactionIsolation)
public java.lang.String getDriverClassName()
public void setDriverClassName(java.lang.String driverClassName)
public java.lang.Integer getMaxActive()
public void setMaxActive(java.lang.Integer maxActive)
public java.lang.Integer getMaxIdle()
public void setMaxIdle(java.lang.Integer maxIdle)
public java.lang.Integer getMinIdle()
public void setMinIdle(java.lang.Integer minIdle)
public java.lang.Integer getInitialSize()
public void setInitialSize(java.lang.Integer initialSize)
public java.lang.Long getMaxWait()
public void setMaxWait(java.lang.Long maxWait)
public java.lang.Long getTimeBetweenEvictionRunsMillis()
public void setTimeBetweenEvictionRunsMillis(java.lang.Long timeBetweenEvictionRunsMillis)
public java.lang.Long getMinEvictableIdleTimeMillis()
public void setMinEvictableIdleTimeMillis(java.lang.Long minEvictableIdleTimeMillis)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.util.Properties getConnectionProperties()
public void setConnectionProperties(java.util.Properties connectionProperties)
protected javax.sql.DataSource getDataSource() throws java.lang.Exception
java.lang.Exception
protected void initNamespace(java.sql.Connection conn) throws java.lang.Exception
java.lang.Exception
protected void runInitScriptFile(java.sql.Connection conn, Resource initScriptFile) throws java.lang.Exception
java.lang.Exception
protected abstract java.lang.String getConnectionUrl() throws java.lang.Exception
java.lang.Exception
protected abstract void prepareNamespace() throws java.lang.Exception
java.lang.Exception
public java.sql.Connection getConnection() throws java.lang.Exception
getConnection
in interface SqlBaseStore
java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.