@RequestScoped public class ConnectionProducer extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionProducer.Status |
| Constructor and Description |
|---|
ConnectionProducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
createDefault(javax.enterprise.inject.spi.InjectionPoint ip,
JDBCConfig config) |
Connection |
createNamed(javax.enterprise.inject.spi.InjectionPoint ip,
JDBCConfig config) |
Map<String,Connection> |
getCache() |
Connection |
getConnection(String name) |
ConnectionProducer.Status |
getStatus(Connection connection) |
void |
init() |
@PostConstruct public void init()
@Default @Produces public Connection createDefault(javax.enterprise.inject.spi.InjectionPoint ip, JDBCConfig config)
@Produces public Connection createNamed(javax.enterprise.inject.spi.InjectionPoint ip, JDBCConfig config)
public Connection getConnection(String name)
@PreDestroy public void close()
public Map<String,Connection> getCache()
public ConnectionProducer.Status getStatus(Connection connection)
Copyright © 2017 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.