Polishing.
Annotation serialVersionUID fields with Serial annotation. See #1399
This commit is contained in:
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.PermissionDeniedDataAccessException;
|
import org.springframework.dao.PermissionDeniedDataAccessException;
|
||||||
|
|
||||||
import com.datastax.oss.driver.api.core.metadata.EndPoint;
|
import com.datastax.oss.driver.api.core.metadata.EndPoint;
|
||||||
@@ -26,7 +28,7 @@ import com.datastax.oss.driver.api.core.metadata.EndPoint;
|
|||||||
*/
|
*/
|
||||||
public class CassandraAuthenticationException extends PermissionDeniedDataAccessException {
|
public class CassandraAuthenticationException extends PermissionDeniedDataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 8556304586797273927L;
|
@Serial private static final long serialVersionUID = 8556304586797273927L;
|
||||||
|
|
||||||
private final EndPoint host;
|
private final EndPoint host;
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -30,7 +31,7 @@ import com.datastax.oss.driver.api.core.metadata.Node;
|
|||||||
*/
|
*/
|
||||||
public class CassandraConnectionFailureException extends DataAccessResourceFailureException {
|
public class CassandraConnectionFailureException extends DataAccessResourceFailureException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 6299912054261646552L;
|
@Serial private static final long serialVersionUID = 6299912054261646552L;
|
||||||
|
|
||||||
private final Map<Node, Throwable> messagesByHost;
|
private final Map<Node, Throwable> messagesByHost;
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.TransientDataAccessException;
|
import org.springframework.dao.TransientDataAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +26,7 @@ import org.springframework.dao.TransientDataAccessException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraInsufficientReplicasAvailableException extends TransientDataAccessException {
|
public class CassandraInsufficientReplicasAvailableException extends TransientDataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 6415130674604814905L;
|
@Serial private static final long serialVersionUID = 6415130674604814905L;
|
||||||
|
|
||||||
private int numberRequired;
|
private int numberRequired;
|
||||||
private int numberAlive;
|
private int numberAlive;
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.DataAccessException;
|
import org.springframework.dao.DataAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +26,7 @@ import org.springframework.dao.DataAccessException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraInternalException extends DataAccessException {
|
public class CassandraInternalException extends DataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 433061676465346338L;
|
@Serial private static final long serialVersionUID = 433061676465346338L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraInternalException}.
|
* Constructor for {@link CassandraInternalException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -25,7 +27,7 @@ import org.springframework.dao.InvalidDataAccessApiUsageException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraInvalidConfigurationInQueryException extends InvalidDataAccessApiUsageException {
|
public class CassandraInvalidConfigurationInQueryException extends InvalidDataAccessApiUsageException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 4594321191806182918L;
|
@Serial private static final long serialVersionUID = 4594321191806182918L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraInvalidConfigurationInQueryException}.
|
* Constructor for {@link CassandraInvalidConfigurationInQueryException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +26,7 @@ import org.springframework.dao.InvalidDataAccessApiUsageException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraInvalidQueryException extends InvalidDataAccessApiUsageException {
|
public class CassandraInvalidQueryException extends InvalidDataAccessApiUsageException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 4594321191806182918L;
|
@Serial private static final long serialVersionUID = 4594321191806182918L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraInvalidQueryException}.
|
* Constructor for {@link CassandraInvalidQueryException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Spring data access exception for Cassandra when a keyspace being created already exists.
|
* Spring data access exception for Cassandra when a keyspace being created already exists.
|
||||||
*
|
*
|
||||||
@@ -22,7 +24,7 @@ package org.springframework.data.cassandra;
|
|||||||
*/
|
*/
|
||||||
public class CassandraKeyspaceExistsException extends CassandraSchemaElementExistsException {
|
public class CassandraKeyspaceExistsException extends CassandraSchemaElementExistsException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 6032967419751410352L;
|
@Serial private static final long serialVersionUID = 6032967419751410352L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraKeyspaceExistsException}.
|
* Constructor for {@link CassandraKeyspaceExistsException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +26,7 @@ import org.springframework.dao.InvalidDataAccessApiUsageException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraQuerySyntaxException extends InvalidDataAccessApiUsageException {
|
public class CassandraQuerySyntaxException extends InvalidDataAccessApiUsageException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 4398474399882434154L;
|
@Serial private static final long serialVersionUID = 4398474399882434154L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraQuerySyntaxException}.
|
* Constructor for {@link CassandraQuerySyntaxException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.QueryTimeoutException;
|
import org.springframework.dao.QueryTimeoutException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -25,7 +27,7 @@ import org.springframework.dao.QueryTimeoutException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraReadTimeoutException extends QueryTimeoutException {
|
public class CassandraReadTimeoutException extends QueryTimeoutException {
|
||||||
|
|
||||||
private static final long serialVersionUID = -787022307935203387L;
|
@Serial private static final long serialVersionUID = -787022307935203387L;
|
||||||
|
|
||||||
private final boolean wasDataPresent;
|
private final boolean wasDataPresent;
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.NonTransientDataAccessException;
|
import org.springframework.dao.NonTransientDataAccessException;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
||||||
@@ -26,7 +28,7 @@ import org.springframework.lang.Nullable;
|
|||||||
*/
|
*/
|
||||||
public class CassandraSchemaElementExistsException extends NonTransientDataAccessException {
|
public class CassandraSchemaElementExistsException extends NonTransientDataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 7798361273692300162L;
|
@Serial private static final long serialVersionUID = 7798361273692300162L;
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public enum ElementType {
|
public enum ElementType {
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Spring data access exception for when a Cassandra table being created already exists.
|
* Spring data access exception for when a Cassandra table being created already exists.
|
||||||
*
|
*
|
||||||
@@ -22,7 +24,7 @@ package org.springframework.data.cassandra;
|
|||||||
*/
|
*/
|
||||||
public class CassandraTableExistsException extends CassandraSchemaElementExistsException {
|
public class CassandraTableExistsException extends CassandraSchemaElementExistsException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 6032967419751410352L;
|
@Serial private static final long serialVersionUID = 6032967419751410352L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraTableExistsException}.
|
* Constructor for {@link CassandraTableExistsException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.TransientDataAccessException;
|
import org.springframework.dao.TransientDataAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +26,7 @@ import org.springframework.dao.TransientDataAccessException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraTraceRetrievalException extends TransientDataAccessException {
|
public class CassandraTraceRetrievalException extends TransientDataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = -3163557220324700239L;
|
@Serial private static final long serialVersionUID = -3163557220324700239L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraTraceRetrievalException}.
|
* Constructor for {@link CassandraTraceRetrievalException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.TransientDataAccessException;
|
import org.springframework.dao.TransientDataAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +26,7 @@ import org.springframework.dao.TransientDataAccessException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraTruncateException extends TransientDataAccessException {
|
public class CassandraTruncateException extends TransientDataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 5730642491362430311L;
|
@Serial private static final long serialVersionUID = 5730642491362430311L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraTruncateException}.
|
* Constructor for {@link CassandraTruncateException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.TypeMismatchDataAccessException;
|
import org.springframework.dao.TypeMismatchDataAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +26,7 @@ import org.springframework.dao.TypeMismatchDataAccessException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraTypeMismatchException extends TypeMismatchDataAccessException {
|
public class CassandraTypeMismatchException extends TypeMismatchDataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = -7420058975444905629L;
|
@Serial private static final long serialVersionUID = -7420058975444905629L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraTypeMismatchException}.
|
* Constructor for {@link CassandraTypeMismatchException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.PermissionDeniedDataAccessException;
|
import org.springframework.dao.PermissionDeniedDataAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +26,7 @@ import org.springframework.dao.PermissionDeniedDataAccessException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraUnauthorizedException extends PermissionDeniedDataAccessException {
|
public class CassandraUnauthorizedException extends PermissionDeniedDataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 4618185356687726647L;
|
@Serial private static final long serialVersionUID = 4618185356687726647L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraUnauthorizedException}.
|
* Constructor for {@link CassandraUnauthorizedException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.UncategorizedDataAccessException;
|
import org.springframework.dao.UncategorizedDataAccessException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -25,7 +27,7 @@ import org.springframework.dao.UncategorizedDataAccessException;
|
|||||||
*/
|
*/
|
||||||
public class CassandraUncategorizedException extends UncategorizedDataAccessException {
|
public class CassandraUncategorizedException extends UncategorizedDataAccessException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1029525121238025444L;
|
@Serial private static final long serialVersionUID = 1029525121238025444L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for {@link CassandraUncategorizedException}.
|
* Constructor for {@link CassandraUncategorizedException}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra;
|
package org.springframework.data.cassandra;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.QueryTimeoutException;
|
import org.springframework.dao.QueryTimeoutException;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
||||||
@@ -26,7 +28,7 @@ import org.springframework.lang.Nullable;
|
|||||||
*/
|
*/
|
||||||
public class CassandraWriteTimeoutException extends QueryTimeoutException {
|
public class CassandraWriteTimeoutException extends QueryTimeoutException {
|
||||||
|
|
||||||
private static final long serialVersionUID = -4374826375213670718L;
|
@Serial private static final long serialVersionUID = -4374826375213670718L;
|
||||||
|
|
||||||
private @Nullable String writeType;
|
private @Nullable String writeType;
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.cql;
|
package org.springframework.data.cassandra.core.cql;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
@@ -39,7 +40,7 @@ import org.springframework.util.Assert;
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public final class CqlIdentifier implements Comparable<CqlIdentifier>, Serializable {
|
public final class CqlIdentifier implements Comparable<CqlIdentifier>, Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = -974441606330912437L;
|
@Serial private static final long serialVersionUID = -974441606330912437L;
|
||||||
|
|
||||||
public static final String UNQUOTED_REGEX = "(?i)[a-z][\\w]*";
|
public static final String UNQUOTED_REGEX = "(?i)[a-z][\\w]*";
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.cql;
|
package org.springframework.data.cassandra.core.cql;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
@@ -31,7 +32,7 @@ import com.datastax.oss.driver.api.core.metadata.Node;
|
|||||||
*/
|
*/
|
||||||
public final class RingMember implements Serializable {
|
public final class RingMember implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = -2582309141903132916L;
|
@Serial private static final long serialVersionUID = -2582309141903132916L;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ring attributes
|
* Ring attributes
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping;
|
package org.springframework.data.cassandra.core.mapping;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
import org.springframework.data.mapping.MappingException;
|
import org.springframework.data.mapping.MappingException;
|
||||||
@@ -28,7 +29,7 @@ import org.springframework.lang.Nullable;
|
|||||||
*/
|
*/
|
||||||
public class IdInterfaceException extends MappingException {
|
public class IdInterfaceException extends MappingException {
|
||||||
|
|
||||||
private static final long serialVersionUID = -1635695314254522703L;
|
@Serial private static final long serialVersionUID = -1635695314254522703L;
|
||||||
|
|
||||||
private final String idInterfaceName;
|
private final String idInterfaceName;
|
||||||
|
|
||||||
|
|||||||
@@ -15,11 +15,13 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping;
|
package org.springframework.data.cassandra.core.mapping;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||||
|
|
||||||
public class UnsupportedCassandraOperationException extends InvalidDataAccessApiUsageException {
|
public class UnsupportedCassandraOperationException extends InvalidDataAccessApiUsageException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 4921001859094231277L;
|
@Serial private static final long serialVersionUID = 4921001859094231277L;
|
||||||
|
|
||||||
public UnsupportedCassandraOperationException(String msg) {
|
public UnsupportedCassandraOperationException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping.event;
|
package org.springframework.data.cassandra.core.mapping.event;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
||||||
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
||||||
@@ -28,7 +30,7 @@ import com.datastax.oss.driver.api.core.cql.Row;
|
|||||||
*/
|
*/
|
||||||
public class AfterConvertEvent<E> extends CassandraMappingEvent<E> {
|
public class AfterConvertEvent<E> extends CassandraMappingEvent<E> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
@Serial private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final Row row;
|
private final Row row;
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping.event;
|
package org.springframework.data.cassandra.core.mapping.event;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
||||||
import com.datastax.oss.driver.api.core.cql.Statement;
|
import com.datastax.oss.driver.api.core.cql.Statement;
|
||||||
|
|
||||||
@@ -27,7 +29,7 @@ import com.datastax.oss.driver.api.core.cql.Statement;
|
|||||||
*/
|
*/
|
||||||
public class AfterDeleteEvent<T> extends AbstractDeleteEvent<T> {
|
public class AfterDeleteEvent<T> extends AbstractDeleteEvent<T> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
@Serial private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new {@link AfterDeleteEvent}.
|
* Create a new {@link AfterDeleteEvent}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping.event;
|
package org.springframework.data.cassandra.core.mapping.event;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
||||||
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
||||||
@@ -29,7 +31,7 @@ import com.datastax.oss.driver.api.core.cql.Row;
|
|||||||
*/
|
*/
|
||||||
public class AfterLoadEvent<T> extends CassandraMappingEvent<Row> {
|
public class AfterLoadEvent<T> extends CassandraMappingEvent<Row> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
@Serial private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final Class<T> type;
|
private final Class<T> type;
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping.event;
|
package org.springframework.data.cassandra.core.mapping.event;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -26,7 +28,7 @@ import com.datastax.oss.driver.api.core.CqlIdentifier;
|
|||||||
*/
|
*/
|
||||||
public class AfterSaveEvent<E> extends CassandraMappingEvent<E> {
|
public class AfterSaveEvent<E> extends CassandraMappingEvent<E> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
@Serial private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new {@link AfterSaveEvent}.
|
* Creates a new {@link AfterSaveEvent}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping.event;
|
package org.springframework.data.cassandra.core.mapping.event;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
||||||
import com.datastax.oss.driver.api.core.cql.Statement;
|
import com.datastax.oss.driver.api.core.cql.Statement;
|
||||||
|
|
||||||
@@ -27,7 +29,7 @@ import com.datastax.oss.driver.api.core.cql.Statement;
|
|||||||
*/
|
*/
|
||||||
public class BeforeDeleteEvent<T> extends AbstractDeleteEvent<T> {
|
public class BeforeDeleteEvent<T> extends AbstractDeleteEvent<T> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
@Serial private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new {@link BeforeDeleteEvent}.
|
* Create a new {@link BeforeDeleteEvent}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping.event;
|
package org.springframework.data.cassandra.core.mapping.event;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
import com.datastax.oss.driver.api.core.CqlIdentifier;
|
||||||
import com.datastax.oss.driver.api.core.cql.Statement;
|
import com.datastax.oss.driver.api.core.cql.Statement;
|
||||||
|
|
||||||
@@ -27,7 +29,7 @@ import com.datastax.oss.driver.api.core.cql.Statement;
|
|||||||
*/
|
*/
|
||||||
public class BeforeSaveEvent<E> extends AbstractStatementAwareMappingEvent<E> {
|
public class BeforeSaveEvent<E> extends AbstractStatementAwareMappingEvent<E> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
@Serial private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new {@link BeforeSaveEvent}.
|
* Create a new {@link BeforeSaveEvent}.
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.cassandra.core.mapping.event;
|
package org.springframework.data.cassandra.core.mapping.event;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.springframework.context.ApplicationEvent;
|
import org.springframework.context.ApplicationEvent;
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
||||||
@@ -29,7 +31,7 @@ import com.datastax.oss.driver.api.core.CqlIdentifier;
|
|||||||
*/
|
*/
|
||||||
public class CassandraMappingEvent<T> extends ApplicationEvent {
|
public class CassandraMappingEvent<T> extends ApplicationEvent {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
@Serial private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final CqlIdentifier tableName;
|
private final CqlIdentifier tableName;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user