SessionImplementor getTransactionCoordinator - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for SessionImplementor getTransactionCoordinator method.

This code example shows how to use the following methods:getEventListenerManager, getFactory, getTransactionCoordinator
				.getServiceRegistry() 
				.getService( JdbcServices.class ) 
				.getSqlStatementLogger(); 
		return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork( 
				new AbstractReturningWork<IntegralDataTypeHolder>() { 
					@Override 
					public IntegralDataTypeHolder execute(Connection connection) throws SQLException { 
						IntegralDataTypeHolder value = buildHolder(); 
						int rows; 
						do { 
							// The loop ensures atomicity of the 
							// select + update even for no transaction 
							// or read committed isolation level 
 
							statementLogger.logStatement( query, FormatStyle.BASIC.getFormatter() ); 
							PreparedStatement qps = connection.prepareStatement( query ); 
							try { 
								ResultSet rs = qps.executeQuery(); 
								if ( !rs.next() ) { 
									String err = "could not read a hi value - you need to populate the table: " + tableName; 
5
CodeRank
This code example shows how to use the following methods:getTransactionCoordinator
getTransactionCoordinator Method Overview
Retrieve access to the session's transaction coordinator.
See Code Examples for other Hibernate ORM SessionImplementor Methods: