public class DataSourceRef extends ResourceGroupConfig
Constructor and Description |
---|
DataSourceRef() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(com.caucho.config.types.DataSourceRef.Property prop) |
void |
deploy() |
java.lang.Object |
getValue() |
void |
init()
Gets the env-entry-value
|
<T> void |
inject(T bean,
CreationalContext<T> env)
Configures the bean using the current program.
|
void |
setClassName(java.lang.Class<?> cl) |
void |
setDatabaseName(java.lang.String value) |
void |
setId(java.lang.String id) |
void |
setInitialPoolSize(int size) |
void |
setIsolationLevel(java.lang.String level) |
void |
setLoginTimeout(int ms) |
void |
setMaxIdleTime(int time) |
void |
setMaxPoolSize(int size) |
void |
setMaxStatements(int statements) |
void |
setMinPoolSize(int size) |
void |
setName(java.lang.String name) |
void |
setPassword(java.lang.String password) |
void |
setPortNumber(int value) |
void |
setServerName(java.lang.String value) |
void |
setTransactional(boolean isTransactional) |
void |
setUrl(java.lang.String url) |
void |
setUser(java.lang.String userName) |
java.lang.String |
toString() |
addInjectionTarget, createObject, error, getJndiClassLoader, getLookupName, getProgram, getProgram, inferTypeFromInjection, isProgram, setConfigLocation, setDefaultInjectionClass, setDescription, setJndiClassLoader, setLookupName, setProgram
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init
public void setId(java.lang.String id)
setId
in class ResourceGroupConfig
@Configurable public void setName(java.lang.String name)
@Configurable public void setClassName(java.lang.Class<?> cl)
@Configurable public void setDatabaseName(java.lang.String value)
@Configurable public void setServerName(java.lang.String value)
@Configurable public void setPortNumber(int value)
@Configurable public void setUrl(java.lang.String url)
@Configurable public void setUser(java.lang.String userName)
@Configurable public void setPassword(java.lang.String password)
@Configurable public void addProperty(com.caucho.config.types.DataSourceRef.Property prop)
public void setLoginTimeout(int ms)
public void setTransactional(boolean isTransactional)
public void setIsolationLevel(java.lang.String level)
public void setInitialPoolSize(int size)
public void setMinPoolSize(int size)
public void setMaxPoolSize(int size)
public void setMaxIdleTime(int time)
public void setMaxStatements(int statements)
@PostConstruct public void init() throws java.lang.Exception
init
in class ResourceGroupConfig
java.lang.Exception
public <T> void inject(T bean, CreationalContext<T> env)
inject
in class ResourceGroupConfig
bean
- the bean to configureenv
- the Config environmentpublic java.lang.Object getValue()
getValue
in class ResourceGroupConfig
public void deploy()
deploy
in class ResourceGroupConfig
public java.lang.String toString()
toString
in class ResourceGroupConfig