|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.bc.sql.DataSources
public class DataSources
| Constructor Summary | |
|---|---|
DataSources(java.util.logging.Logger logger)
|
|
| Method Summary | |
|---|---|
void |
addDataSource(org.ow2.petals.component.framework.jbidescriptor.generated.Provides key,
javax.sql.DataSource dataSource)
add the dataSource in the Map |
void |
closeDataSource(javax.sql.DataSource dataSource)
Close the DataSource (assume this is a BasicDataSource) |
javax.sql.DataSource |
createDataSourceForService(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
create a dataSource related to the information stored in the SU: url, driver(optional, resolve by jdbc url), user, password, maxActive(optional), maxIdle(optional), minIdle(optional), maxWait(optional), timeBEviction(optional) |
javax.sql.DataSource |
getDataSource(org.ow2.petals.component.framework.jbidescriptor.generated.Provides key)
get the dataSource in the Map |
java.util.Set<org.ow2.petals.component.framework.jbidescriptor.generated.Provides> |
getDataSourceKeys()
Return all keys map of the created datasources. |
static java.lang.String |
printDataSourceInfo(javax.sql.DataSource dataSource)
Print info for a BasicDataSource |
javax.sql.DataSource |
removeDataSource(org.ow2.petals.component.framework.jbidescriptor.generated.Provides key)
remove the dataSource in the Map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSources(java.util.logging.Logger logger)
| Method Detail |
|---|
public javax.sql.DataSource createDataSourceForService(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
extensions - http://commons.apache.org/dbcp/configuration.html
public void addDataSource(org.ow2.petals.component.framework.jbidescriptor.generated.Provides key,
javax.sql.DataSource dataSource)
key - dataSource - public javax.sql.DataSource getDataSource(org.ow2.petals.component.framework.jbidescriptor.generated.Provides key)
key - dataSource - public java.util.Set<org.ow2.petals.component.framework.jbidescriptor.generated.Provides> getDataSourceKeys()
public javax.sql.DataSource removeDataSource(org.ow2.petals.component.framework.jbidescriptor.generated.Provides key)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
key -
org.ow2.petals.component.framework.api.exception.PEtALSCDKExceptionpublic final void closeDataSource(javax.sql.DataSource dataSource)
dataSource - public static final java.lang.String printDataSourceInfo(javax.sql.DataSource dataSource)
dataSource -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||