public class CassandraUserTypePersistentEntity<T> extends BasicCassandraPersistentEntity<T>
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.UserDefinedType
Constructor and Description |
---|
CassandraUserTypePersistentEntity(TypeInformation<T> typeInformation,
CassandraPersistentEntityMetadataVerifier verifier,
UserTypeResolver resolver)
Create a new
CassandraUserTypePersistentEntity . |
Modifier and Type | Method and Description |
---|---|
protected com.datastax.oss.driver.api.core.CqlIdentifier |
determineTableName() |
com.datastax.oss.driver.api.core.type.UserDefinedType |
getUserType() |
boolean |
isUserDefinedType() |
addAssociation, doWithAssociations, getTableName, getTupleType, getVerifier, isCompositePrimaryKey, isTupleType, setApplicationContext, setForceQuote, setTableName, setVerifier, verify
addPersistentProperty, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, setPersistentPropertyAccessorFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setTableName
doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
forEach, iterator, spliterator
public CassandraUserTypePersistentEntity(TypeInformation<T> typeInformation, CassandraPersistentEntityMetadataVerifier verifier, UserTypeResolver resolver)
CassandraUserTypePersistentEntity
.typeInformation
- must not be null.verifier
- must not be null.resolver
- must not be null.protected com.datastax.oss.driver.api.core.CqlIdentifier determineTableName()
determineTableName
in class BasicCassandraPersistentEntity<T>
public boolean isUserDefinedType()
isUserDefinedType
in interface CassandraPersistentEntity<T>
isUserDefinedType
in class BasicCassandraPersistentEntity<T>
UserDefinedType
public com.datastax.oss.driver.api.core.type.UserDefinedType getUserType()
getUserType
in interface CassandraPersistentEntity<T>
getUserType
in class BasicCassandraPersistentEntity<T>
UserType
if the type is a mapped user defined type, otherwise null.UserDefinedType
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.