All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jpattern.orm.jdbctemplate.NullPlatformTransactionManager Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
package com.jpattern.orm.jdbctemplate;

import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionDefinition;
import org.springframework.transaction.TransactionException;
import org.springframework.transaction.TransactionStatus;

/**
 * 
 * @author Francesco Cina
 *
 * 15/giu/2011
 */
class NullPlatformTransactionManager implements PlatformTransactionManager {

	@Override
	public TransactionStatus getTransaction(final TransactionDefinition definition) throws TransactionException {
		return new NullTransactionStatus();
	}

	@Override
	public void commit(final TransactionStatus status) throws TransactionException {
	}

	@Override
	public void rollback(final TransactionStatus status) throws TransactionException {
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy