com.jpattern.orm.jdbctemplate.NullPlatformTransactionManager Maven / Gradle / Ivy
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 {
}
}