1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kns.util.spring; |
17 | |
|
18 | |
import java.sql.Connection; |
19 | |
|
20 | |
import org.apache.ojb.broker.accesslayer.LookupException; |
21 | |
import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor; |
22 | |
import org.apache.ojb.broker.util.pooling.ByPassConnection; |
23 | |
import org.springmodules.orm.ojb.support.LocalDataSourceConnectionFactory; |
24 | |
|
25 | 0 | public class WorkflowSpringConnectionFactoryManagedImpl extends LocalDataSourceConnectionFactory { |
26 | |
public Connection lookupConnection(JdbcConnectionDescriptor jcd) throws LookupException { |
27 | 0 | return new ByPassConnection(super.lookupConnection(jcd)); |
28 | |
} |
29 | |
|
30 | |
protected Connection newConnectionFromDriverManager(JdbcConnectionDescriptor arg0) throws LookupException { |
31 | 0 | throw new UnsupportedOperationException("Not supported in managed environment"); |
32 | |
} |
33 | |
} |