com.caucho.config.types
Class DataSourceRef

java.lang.Object
  extended by com.caucho.config.program.ConfigProgram
      extended by com.caucho.config.types.ResourceGroupConfig
          extended by com.caucho.config.types.DataSourceRef
All Implemented Interfaces:
ObjectProxy, java.lang.Comparable<ConfigProgram>

public class DataSourceRef
extends ResourceGroupConfig

Configuration for the env-entry pattern.


Constructor Summary
DataSourceRef()
           
 
Method Summary
 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()
           
 
Methods inherited from class com.caucho.config.types.ResourceGroupConfig
addInjectionTarget, createObject, error, getJndiClassLoader, getLookupName, getProgram, getProgram, inferTypeFromInjection, isProgram, setConfigLocation, setDefaultInjectionClass, setDescription, setJndiClassLoader, setLookupName, setProgram
 
Methods inherited from class com.caucho.config.program.ConfigProgram
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSourceRef

public DataSourceRef()
Method Detail

setId

public void setId(java.lang.String id)
Overrides:
setId in class ResourceGroupConfig

setName

@Configurable
public void setName(java.lang.String name)

setClassName

@Configurable
public void setClassName(java.lang.Class<?> cl)

setDatabaseName

@Configurable
public void setDatabaseName(java.lang.String value)

setServerName

@Configurable
public void setServerName(java.lang.String value)

setPortNumber

@Configurable
public void setPortNumber(int value)

setUrl

@Configurable
public void setUrl(java.lang.String url)

setUser

@Configurable
public void setUser(java.lang.String userName)

setPassword

@Configurable
public void setPassword(java.lang.String password)

addProperty

@Configurable
public void addProperty(com.caucho.config.types.DataSourceRef.Property prop)

setLoginTimeout

public void setLoginTimeout(int ms)

setTransactional

public void setTransactional(boolean isTransactional)

setIsolationLevel

public void setIsolationLevel(java.lang.String level)

setInitialPoolSize

public void setInitialPoolSize(int size)

setMinPoolSize

public void setMinPoolSize(int size)

setMaxPoolSize

public void setMaxPoolSize(int size)

setMaxIdleTime

public void setMaxIdleTime(int time)

setMaxStatements

public void setMaxStatements(int statements)

init

@PostConstruct
public void init()
          throws java.lang.Exception
Gets the env-entry-value

Overrides:
init in class ResourceGroupConfig
Throws:
java.lang.Exception

inject

public <T> void inject(T bean,
                       CreationalContext<T> env)
Configures the bean using the current program.

Overrides:
inject in class ResourceGroupConfig
Parameters:
bean - the bean to configure
env - the Config environment

getValue

public java.lang.Object getValue()
Overrides:
getValue in class ResourceGroupConfig

deploy

public void deploy()
Overrides:
deploy in class ResourceGroupConfig

toString

public java.lang.String toString()
Overrides:
toString in class ResourceGroupConfig