Code example for SessionImplementor

Methods: getEventListenerManagergetFactorygetTransactionCoordinator

0
				.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; 
Experience pair programming with AI  Get Codota for Java