Line | |
---|
1 | package gov.va.med.edp.rpc;
|
---|
2 |
|
---|
3 | import org.springframework.dao.support.DaoSupport;
|
---|
4 |
|
---|
5 | public class VistaLinkDaoSupport extends DaoSupport {
|
---|
6 |
|
---|
7 | private VistaLinkRpcTemplate rpcTemplate;
|
---|
8 |
|
---|
9 | protected void checkDaoConfig() throws IllegalArgumentException {
|
---|
10 | if (this.rpcTemplate == null) {
|
---|
11 | setConnectionFactoryLocator(new InstitutionMappingConnectionFactoryLocator());
|
---|
12 | }
|
---|
13 | }
|
---|
14 |
|
---|
15 | protected VistaLinkRpcTemplate createRpcTemplate(ConnectionFactoryLocator connectionFactoryLocator) {
|
---|
16 | return new VistaLinkRpcTemplate(connectionFactoryLocator);
|
---|
17 | }
|
---|
18 |
|
---|
19 | public ConnectionFactoryLocator getConnectionFactoryLocator() {
|
---|
20 | return rpcTemplate.getConnectionFactoryLocator();
|
---|
21 | }
|
---|
22 |
|
---|
23 | public void setConnectionFactoryLocator(ConnectionFactoryLocator connectionFactoryLocator) {
|
---|
24 | setRpcTemplate(createRpcTemplate(connectionFactoryLocator));
|
---|
25 | }
|
---|
26 |
|
---|
27 | public VistaLinkRpcTemplate getRpcTemplate() {
|
---|
28 | return rpcTemplate;
|
---|
29 | }
|
---|
30 |
|
---|
31 | public void setRpcTemplate(VistaLinkRpcTemplate rpcTemplate) {
|
---|
32 | this.rpcTemplate = rpcTemplate;
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.