org.springframework.jca.cci.connection.ConnectionFactoryUtils Java Examples
The following examples show how to use
org.springframework.jca.cci.connection.ConnectionFactoryUtils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CciDaoSupport.java From spring-analysis-note with MIT License | 2 votes |
/** * Get a CCI Connection, either from the current transaction or a new one. * @return the CCI Connection * @throws org.springframework.jca.cci.CannotGetCciConnectionException * if the attempt to get a Connection failed * @see org.springframework.jca.cci.connection.ConnectionFactoryUtils#getConnection(javax.resource.cci.ConnectionFactory) */ protected final Connection getConnection() throws CannotGetCciConnectionException { ConnectionFactory connectionFactory = getConnectionFactory(); Assert.state(connectionFactory != null, "No ConnectionFactory set"); return ConnectionFactoryUtils.getConnection(connectionFactory); }
Example #2
Source File: CciDaoSupport.java From spring-analysis-note with MIT License | 2 votes |
/** * Close the given CCI Connection, created via this bean's ConnectionFactory, * if it isn't bound to the thread. * @param con the Connection to close * @see org.springframework.jca.cci.connection.ConnectionFactoryUtils#releaseConnection */ protected final void releaseConnection(Connection con) { ConnectionFactoryUtils.releaseConnection(con, getConnectionFactory()); }
Example #3
Source File: CciDaoSupport.java From java-technology-stack with MIT License | 2 votes |
/** * Get a CCI Connection, either from the current transaction or a new one. * @return the CCI Connection * @throws org.springframework.jca.cci.CannotGetCciConnectionException * if the attempt to get a Connection failed * @see org.springframework.jca.cci.connection.ConnectionFactoryUtils#getConnection(javax.resource.cci.ConnectionFactory) */ protected final Connection getConnection() throws CannotGetCciConnectionException { ConnectionFactory connectionFactory = getConnectionFactory(); Assert.state(connectionFactory != null, "No ConnectionFactory set"); return ConnectionFactoryUtils.getConnection(connectionFactory); }
Example #4
Source File: CciDaoSupport.java From java-technology-stack with MIT License | 2 votes |
/** * Close the given CCI Connection, created via this bean's ConnectionFactory, * if it isn't bound to the thread. * @param con the Connection to close * @see org.springframework.jca.cci.connection.ConnectionFactoryUtils#releaseConnection */ protected final void releaseConnection(Connection con) { ConnectionFactoryUtils.releaseConnection(con, getConnectionFactory()); }
Example #5
Source File: CciDaoSupport.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Get a CCI Connection, either from the current transaction or a new one. * @return the CCI Connection * @throws org.springframework.jca.cci.CannotGetCciConnectionException * if the attempt to get a Connection failed * @see org.springframework.jca.cci.connection.ConnectionFactoryUtils#getConnection(javax.resource.cci.ConnectionFactory) */ protected final Connection getConnection() throws CannotGetCciConnectionException { return ConnectionFactoryUtils.getConnection(getConnectionFactory()); }
Example #6
Source File: CciDaoSupport.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Close the given CCI Connection, created via this bean's ConnectionFactory, * if it isn't bound to the thread. * @param con Connection to close * @see org.springframework.jca.cci.connection.ConnectionFactoryUtils#releaseConnection */ protected final void releaseConnection(Connection con) { ConnectionFactoryUtils.releaseConnection(con, getConnectionFactory()); }
Example #7
Source File: CciDaoSupport.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Get a CCI Connection, either from the current transaction or a new one. * @return the CCI Connection * @throws org.springframework.jca.cci.CannotGetCciConnectionException * if the attempt to get a Connection failed * @see org.springframework.jca.cci.connection.ConnectionFactoryUtils#getConnection(javax.resource.cci.ConnectionFactory) */ protected final Connection getConnection() throws CannotGetCciConnectionException { return ConnectionFactoryUtils.getConnection(getConnectionFactory()); }
Example #8
Source File: CciDaoSupport.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Close the given CCI Connection, created via this bean's ConnectionFactory, * if it isn't bound to the thread. * @param con Connection to close * @see org.springframework.jca.cci.connection.ConnectionFactoryUtils#releaseConnection */ protected final void releaseConnection(Connection con) { ConnectionFactoryUtils.releaseConnection(con, getConnectionFactory()); }