Class CassandraUserTypePersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T, CassandraPersistentProperty>
org.springframework.data.cassandra.core.mapping.BasicCassandraPersistentEntity<T>
org.springframework.data.cassandra.core.mapping.CassandraUserTypePersistentEntity<T>
- All Implemented Interfaces:
Iterable<CassandraPersistentProperty>, Aware, ApplicationContextAware, EnvironmentAware, EnvironmentCapable, CassandraPersistentEntity<T>, MutablePersistentEntity<T, CassandraPersistentProperty>, PersistentEntity<T, CassandraPersistentProperty>
PersistentEntity for a mapped user-defined type (UDT). A mapped UDT consists
of a set of fields. Each field requires a data type that can be either a simple Cassandra type or an UDT.- Since:
- 1.5
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraUserTypePersistentEntity(TypeInformation<T> typeInformation, CassandraPersistentEntityMetadataVerifier verifier) Create a newCassandraUserTypePersistentEntity. -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable com.datastax.oss.driver.api.core.CqlIdentifierprotected com.datastax.oss.driver.api.core.CqlIdentifierbooleanMethods inherited from class BasicCassandraPersistentEntity
addAssociation, doWithAssociations, getEvaluationContext, getEvaluationContext, getKeyspace, getProperty, getTableName, getValueEvaluationContext, getValueEvaluationContext, getVerifier, isCompositePrimaryKey, isTupleType, setApplicationContext, setKeyspace, setNamingStrategy, setTableName, setVerifier, toString, verifyMethods inherited from class BasicPersistentEntity
addPersistentProperty, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEnvironment, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactoryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CassandraPersistentEntity
getRequiredKeyspace, hasKeyspaceMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface PersistentEntity
doWithAll, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Constructor Details
-
CassandraUserTypePersistentEntity
public CassandraUserTypePersistentEntity(TypeInformation<T> typeInformation, CassandraPersistentEntityMetadataVerifier verifier) Create a newCassandraUserTypePersistentEntity.- Parameters:
typeInformation- must not be null.verifier- must not be null.
-
-
Method Details
-
determineTableName
protected com.datastax.oss.driver.api.core.CqlIdentifier determineTableName()- Overrides:
determineTableNamein classBasicCassandraPersistentEntity<T>
-
determineKeyspace
protected @Nullable com.datastax.oss.driver.api.core.CqlIdentifier determineKeyspace()- Overrides:
determineKeyspacein classBasicCassandraPersistentEntity<T>
-
isUserDefinedType
public boolean isUserDefinedType()- Specified by:
isUserDefinedTypein interfaceCassandraPersistentEntity<T>- Overrides:
isUserDefinedTypein classBasicCassandraPersistentEntity<T>- Returns:
- true if the type is a mapped user defined type.
- See Also:
-