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
,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 com.datastax.oss.driver.api.core.CqlIdentifier
boolean
Methods inherited from class org.springframework.data.cassandra.core.mapping.BasicCassandraPersistentEntity
addAssociation, doWithAssociations, getProperty, getTableName, getVerifier, isCompositePrimaryKey, isTupleType, setApplicationContext, setForceQuote, setNamingStrategy, setTableName, setVerifier, verify
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addPersistentProperty, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, setPersistentPropertyAccessorFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.cassandra.core.mapping.CassandraPersistentEntity
setTableName
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, 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:
determineTableName
in classBasicCassandraPersistentEntity<T>
-
isUserDefinedType
public boolean isUserDefinedType()- Specified by:
isUserDefinedType
in interfaceCassandraPersistentEntity<T>
- Overrides:
isUserDefinedType
in classBasicCassandraPersistentEntity<T>
- Returns:
- true if the type is a mapped user defined type.
- See Also:
-