Fix [serial] compiler warnings
Fix serialization warnings by applying @SuppressWarnings("serial")
when appropriate.
In certain cases and for unknown reasons, a correctly-placed
@SuppressWarnings("serial") annotation will fix the warning at the
javac level (i.e. the Gradle command-line), but will produce an
"unnecessary @SuppressWarnings" warning within Eclipse. In these
cases, a private static final serialVersionUID field has been added
with the default value of 1L.
This commit is contained in:
committed by
Chris Beams
parent
7f0aa5cfb2
commit
b0986049a3
@@ -22,6 +22,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CannotAcquireLockException extends PessimisticLockingFailureException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CannotSerializeTransactionException extends PessimisticLockingFailureException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,6 +29,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CleanupFailureDataAccessException extends NonTransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,6 +29,7 @@ package org.springframework.dao;
|
||||
* @see CannotAcquireLockException
|
||||
* @see DeadlockLoserDataAccessException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ConcurrencyFailureException extends TransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,6 +35,7 @@ import org.springframework.core.NestedRuntimeException;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class DataAccessException extends NestedRuntimeException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.dao;
|
||||
* @author Rod Johnson
|
||||
* @author Thomas Risberg
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DataAccessResourceFailureException extends NonTransientDataAccessResourceException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DataIntegrityViolationException extends NonTransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.dao;
|
||||
* @author Juergen Hoeller
|
||||
* @since 13.10.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DataRetrievalFailureException extends NonTransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DeadlockLoserDataAccessException extends PessimisticLockingFailureException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Thomas Risberg
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DuplicateKeyException extends DataIntegrityViolationException {
|
||||
|
||||
/**
|
||||
@@ -43,4 +44,4 @@ public class DuplicateKeyException extends DataIntegrityViolationException {
|
||||
super(msg, cause);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.dao;
|
||||
* @since 2.0
|
||||
* @see IncorrectResultSizeDataAccessException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EmptyResultDataAccessException extends IncorrectResultSizeDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class IncorrectUpdateSemanticsDataAccessException extends InvalidDataAccessResourceUsageException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidDataAccessApiUsageException extends NonTransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidDataAccessResourceUsageException extends NonTransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ package org.springframework.dao;
|
||||
* @since 2.5
|
||||
* @see java.sql.SQLNonTransientException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class NonTransientDataAccessException extends DataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.dao;
|
||||
* @since 2.5
|
||||
* @see java.sql.SQLNonTransientConnectionException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class NonTransientDataAccessResourceException extends NonTransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,7 @@ package org.springframework.dao;
|
||||
* @author Rod Johnson
|
||||
* @see PessimisticLockingFailureException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class OptimisticLockingFailureException extends ConcurrencyFailureException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.dao;
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PermissionDeniedDataAccessException extends NonTransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,6 +30,7 @@ package org.springframework.dao;
|
||||
* @see DeadlockLoserDataAccessException
|
||||
* @see OptimisticLockingFailureException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PessimisticLockingFailureException extends ConcurrencyFailureException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,7 @@ package org.springframework.dao;
|
||||
* @author Thomas Risberg
|
||||
* @since 3.1
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class QueryTimeoutException extends TransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,7 @@ package org.springframework.dao;
|
||||
* @since 2.5
|
||||
* @see java.sql.SQLRecoverableException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class RecoverableDataAccessException extends DataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ package org.springframework.dao;
|
||||
* @since 2.5
|
||||
* @see java.sql.SQLTransientException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class TransientDataAccessException extends DataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.dao;
|
||||
* @since 2.5
|
||||
* @see java.sql.SQLTransientConnectionException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransientDataAccessResourceException extends TransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TypeMismatchDataAccessException extends InvalidDataAccessResourceUsageException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.dao;
|
||||
*
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class UncategorizedDataAccessException extends NonTransientDataAccessException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -38,6 +38,7 @@ import org.springframework.dao.support.PersistenceExceptionTranslator;
|
||||
* @see org.springframework.dao.DataAccessException
|
||||
* @see org.springframework.dao.support.PersistenceExceptionTranslator
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PersistenceExceptionTranslationAdvisor extends AbstractPointcutAdvisor {
|
||||
|
||||
private final PersistenceExceptionTranslationInterceptor advice;
|
||||
|
||||
@@ -27,6 +27,7 @@ import org.springframework.dao.DataAccessResourceFailureException;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.2
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CannotCreateRecordException extends DataAccessResourceFailureException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,7 @@ import org.springframework.dao.DataAccessResourceFailureException;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.2
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CannotGetCciConnectionException extends DataAccessResourceFailureException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,7 @@ import org.springframework.dao.InvalidDataAccessResourceUsageException;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.2
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CciOperationNotSupportedException extends InvalidDataAccessResourceUsageException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,6 +31,7 @@ import org.springframework.dao.InvalidDataAccessResourceUsageException;
|
||||
* @since 1.2
|
||||
* @see javax.resource.cci.ResultSet
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidResultSetAccessException extends InvalidDataAccessResourceUsageException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,7 @@ import org.springframework.dao.InvalidDataAccessResourceUsageException;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.2
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class RecordTypeNotSupportedException extends InvalidDataAccessResourceUsageException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,6 +60,7 @@ import org.springframework.transaction.support.ResourceTransactionManager;
|
||||
* @see TransactionAwareConnectionFactoryProxy
|
||||
* @see org.springframework.jca.cci.core.CciTemplate
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CciLocalTransactionManager extends AbstractPlatformTransactionManager
|
||||
implements ResourceTransactionManager, InitializingBean {
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ import org.springframework.core.NamedThreadLocal;
|
||||
* @since 1.2
|
||||
* @see #getConnection
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ConnectionSpecConnectionFactoryAdapter extends DelegatingConnectionFactory {
|
||||
|
||||
private ConnectionSpec connectionSpec;
|
||||
|
||||
@@ -39,6 +39,7 @@ import org.springframework.beans.factory.InitializingBean;
|
||||
* @since 1.2
|
||||
* @see #getConnection
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DelegatingConnectionFactory implements ConnectionFactory, InitializingBean {
|
||||
|
||||
private ConnectionFactory targetConnectionFactory;
|
||||
|
||||
@@ -51,6 +51,7 @@ import org.springframework.util.Assert;
|
||||
* @see javax.resource.cci.Connection#close()
|
||||
* @see org.springframework.jca.cci.core.CciTemplate
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SingleConnectionFactory extends DelegatingConnectionFactory implements DisposableBean {
|
||||
|
||||
protected final Log logger = LogFactory.getLog(getClass());
|
||||
|
||||
@@ -64,6 +64,7 @@ import javax.resource.cci.ConnectionFactory;
|
||||
* @see ConnectionFactoryUtils#doGetConnection
|
||||
* @see ConnectionFactoryUtils#doReleaseConnection
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionAwareConnectionFactoryProxy extends DelegatingConnectionFactory {
|
||||
|
||||
/**
|
||||
|
||||
@@ -33,6 +33,7 @@ import org.springframework.util.FileCopyUtils;
|
||||
* @since 1.2
|
||||
* @see org.springframework.jca.cci.object.MappingCommAreaOperation
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CommAreaRecord implements Record, Streamable {
|
||||
|
||||
private byte[] bytes;
|
||||
|
||||
@@ -148,6 +148,7 @@ public class GenericMessageEndpointFactory extends AbstractMessageEndpointFactor
|
||||
* directly, leavng it up to the concrete endpoint to apply those -
|
||||
* and to handle any ResourceExceptions thrown from them.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public static class InternalResourceException extends RuntimeException {
|
||||
|
||||
protected InternalResourceException(ResourceException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.transaction;
|
||||
* @author Rod Johnson
|
||||
* @since 17.03.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CannotCreateTransactionException extends TransactionException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.transaction;
|
||||
* @author Juergen Hoeller
|
||||
* @since 17.03.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class HeuristicCompletionException extends TransactionException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.transaction;
|
||||
* @author Juergen Hoeller
|
||||
* @since 21.01.2004
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class IllegalTransactionStateException extends TransactionUsageException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.transaction;
|
||||
* @author Juergen Hoeller
|
||||
* @since 12.05.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidIsolationLevelException extends TransactionUsageException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.transaction;
|
||||
* @author Juergen Hoeller
|
||||
* @since 12.05.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidTimeoutException extends TransactionUsageException {
|
||||
|
||||
private int timeout;
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.transaction;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class NestedTransactionNotSupportedException extends CannotCreateTransactionException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ package org.springframework.transaction;
|
||||
* @author Rod Johnson
|
||||
* @since 17.03.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class NoTransactionException extends TransactionUsageException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ import org.springframework.core.NestedRuntimeException;
|
||||
* @author Rod Johnson
|
||||
* @since 17.03.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class TransactionException extends NestedRuntimeException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.transaction;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionSuspensionNotSupportedException extends CannotCreateTransactionException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.springframework.util.Assert;
|
||||
* @author Juergen Hoeller
|
||||
* @since 24.03.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionSystemException extends TransactionException {
|
||||
|
||||
private Throwable applicationException;
|
||||
|
||||
@@ -42,6 +42,7 @@ package org.springframework.transaction;
|
||||
* @see java.sql.Statement#setQueryTimeout
|
||||
* @see java.sql.SQLException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionTimedOutException extends TransactionException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.transaction;
|
||||
* @author Rod Johnson
|
||||
* @since 22.03.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionUsageException extends TransactionException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.transaction;
|
||||
* @author Rod Johnson
|
||||
* @since 17.03.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class UnexpectedRollbackException extends TransactionException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -49,6 +49,7 @@ import org.springframework.util.ClassUtils;
|
||||
* @see org.springframework.transaction.interceptor.TransactionInterceptor#setTransactionAttributeSource
|
||||
* @see org.springframework.transaction.interceptor.TransactionProxyFactoryBean#setTransactionAttributeSource
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AnnotationTransactionAttributeSource extends AbstractFallbackTransactionAttributeSource
|
||||
implements Serializable {
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ import org.springframework.transaction.interceptor.TransactionAttribute;
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.5
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class Ejb3TransactionAnnotationParser implements TransactionAnnotationParser, Serializable {
|
||||
|
||||
public TransactionAttribute parseTransactionAnnotation(AnnotatedElement ae) {
|
||||
|
||||
@@ -32,6 +32,7 @@ import org.springframework.transaction.interceptor.TransactionAttribute;
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.5
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SpringTransactionAnnotationParser implements TransactionAnnotationParser, Serializable {
|
||||
|
||||
public TransactionAttribute parseTransactionAnnotation(AnnotatedElement ae) {
|
||||
|
||||
@@ -30,6 +30,7 @@ import org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor;
|
||||
* @see TransactionInterceptor
|
||||
* @see TransactionAttributeSourceAdvisor
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class BeanFactoryTransactionAttributeSourceAdvisor extends AbstractBeanFactoryPointcutAdvisor {
|
||||
|
||||
private TransactionAttributeSource transactionAttributeSource;
|
||||
|
||||
@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CompositeTransactionAttributeSource implements TransactionAttributeSource, Serializable {
|
||||
|
||||
private final TransactionAttributeSource[] transactionAttributeSources;
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.springframework.transaction.support.DefaultTransactionDefinition;
|
||||
* @author Rod Johnson
|
||||
* @since 16.03.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DefaultTransactionAttribute extends DefaultTransactionDefinition implements TransactionAttribute {
|
||||
|
||||
private String qualifier;
|
||||
|
||||
@@ -29,6 +29,7 @@ import org.springframework.transaction.support.DelegatingTransactionDefinition;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.2
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class DelegatingTransactionAttribute extends DelegatingTransactionDefinition
|
||||
implements TransactionAttribute, Serializable {
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ import org.springframework.util.ObjectUtils;
|
||||
* @see org.springframework.transaction.interceptor.TransactionProxyFactoryBean
|
||||
* @see org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MatchAlwaysTransactionAttributeSource implements TransactionAttributeSource, Serializable {
|
||||
|
||||
private TransactionAttribute transactionAttribute = new DefaultTransactionAttribute();
|
||||
|
||||
@@ -38,6 +38,7 @@ import org.springframework.util.PatternMatchUtils;
|
||||
* @see #isMatch
|
||||
* @see MethodMapTransactionAttributeSource
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class NameMatchTransactionAttributeSource implements TransactionAttributeSource, Serializable {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.transaction.interceptor;
|
||||
* @author Rod Johnson
|
||||
* @since 09.04.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class NoRollbackRuleAttribute extends RollbackRuleAttribute {
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,6 +31,7 @@ import java.io.Serializable;
|
||||
* @since 09.04.2003
|
||||
* @see NoRollbackRuleAttribute
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class RollbackRuleAttribute implements Serializable{
|
||||
|
||||
/**
|
||||
|
||||
@@ -37,6 +37,7 @@ import org.apache.commons.logging.LogFactory;
|
||||
* @since 09.04.2003
|
||||
* @see TransactionAttributeEditor
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class RuleBasedTransactionAttribute extends DefaultTransactionAttribute implements Serializable {
|
||||
|
||||
/** Prefix for rollback-on-exception rules in description strings */
|
||||
|
||||
@@ -315,6 +315,7 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
|
||||
* tell if there was a transaction created.
|
||||
* @see #getTransactionAttributeSource()
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
protected TransactionInfo createTransactionIfNecessary(
|
||||
PlatformTransactionManager tm, TransactionAttribute txAttr, final String joinpointIdentification) {
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import org.springframework.aop.support.AbstractPointcutAdvisor;
|
||||
* @see #setTransactionInterceptor
|
||||
* @see TransactionProxyFactoryBean
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionAttributeSourceAdvisor extends AbstractPointcutAdvisor {
|
||||
|
||||
private TransactionInterceptor transactionInterceptor;
|
||||
|
||||
@@ -29,6 +29,7 @@ import org.springframework.util.ObjectUtils;
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.5.5
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
abstract class TransactionAttributeSourcePointcut extends StaticMethodMatcherPointcut implements Serializable {
|
||||
|
||||
public boolean matches(Method method, Class targetClass) {
|
||||
|
||||
@@ -117,6 +117,7 @@ import org.springframework.util.StringUtils;
|
||||
* @see #setTransactionManager
|
||||
* @see WebLogicJtaTransactionManager
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class JtaTransactionManager extends AbstractPlatformTransactionManager
|
||||
implements TransactionFactory, InitializingBean, Serializable {
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ import org.springframework.util.ClassUtils;
|
||||
* since Oracle end-of-lifed OC4J in favor of WebLogic
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("serial")
|
||||
public class OC4JJtaTransactionManager extends JtaTransactionManager {
|
||||
|
||||
private static final String TRANSACTION_UTILITY_CLASS_NAME =
|
||||
|
||||
@@ -65,6 +65,7 @@ import org.springframework.transaction.TransactionSystemException;
|
||||
* @see weblogic.transaction.TransactionManager#forceResume
|
||||
* @see weblogic.transaction.TransactionHelper
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class WebLogicJtaTransactionManager extends JtaTransactionManager {
|
||||
|
||||
private static final String USER_TRANSACTION_CLASS_NAME = "weblogic.transaction.UserTransaction";
|
||||
|
||||
@@ -77,6 +77,7 @@ import org.springframework.util.ReflectionUtils;
|
||||
* @see #setUowManagerName
|
||||
* @see com.ibm.wsspi.uow.UOWManager
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class WebSphereUowTransactionManager extends JtaTransactionManager
|
||||
implements CallbackPreferringPlatformTransactionManager {
|
||||
|
||||
|
||||
@@ -78,6 +78,7 @@ import org.springframework.transaction.UnexpectedRollbackException;
|
||||
* @see TransactionSynchronizationManager
|
||||
* @see org.springframework.transaction.jta.JtaTransactionManager
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class AbstractPlatformTransactionManager implements PlatformTransactionManager, Serializable {
|
||||
|
||||
/**
|
||||
|
||||
@@ -32,6 +32,7 @@ import org.springframework.transaction.TransactionDefinition;
|
||||
* @author Juergen Hoeller
|
||||
* @since 08.05.2003
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DefaultTransactionDefinition implements TransactionDefinition, Serializable {
|
||||
|
||||
/** Prefix for the propagation constants defined in TransactionDefinition */
|
||||
|
||||
@@ -30,6 +30,7 @@ import org.springframework.util.Assert;
|
||||
* @author Juergen Hoeller
|
||||
* @since 3.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class DelegatingTransactionDefinition implements TransactionDefinition, Serializable {
|
||||
|
||||
private final TransactionDefinition targetDefinition;
|
||||
|
||||
@@ -59,6 +59,7 @@ import org.springframework.transaction.TransactionSystemException;
|
||||
* @see #setTransactionManager
|
||||
* @see org.springframework.transaction.PlatformTransactionManager
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionTemplate extends DefaultTransactionDefinition
|
||||
implements TransactionOperations, InitializingBean {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user