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.UserDefinedTypecontext, DEFAULT_VERIFIER, forceQuote, mappingContext, spelContext, tableName, verifier| Constructor and Description |
|---|
CassandraUserTypePersistentEntity(TypeInformation<T> typeInformation,
CassandraMappingContext mappingContext,
CassandraPersistentEntityMetadataVerifier verifier,
UserTypeResolver resolver)
Creates a new
CassandraUserTypePersistentEntity. |
| Modifier and Type | Method and Description |
|---|---|
protected CqlIdentifier |
determineTableName() |
com.datastax.driver.core.UserType |
getUserType() |
boolean |
isUserDefinedType() |
addAssociation, addCompositePrimaryKeyProperties, determineDefaultName, determineName, doWithAssociations, getApplicationContext, getCompositePrimaryKeyProperties, getMappingContext, getTableName, getVerifier, isCompositePrimaryKey, setApplicationContext, setForceQuote, setTableName, setVerifier, verifyaddPersistentProperty, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, returnPropertyIfBetterIdPropertyCandidateOrNull, setPersistentPropertyAccessorFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPersistentProperty, setPersistentPropertyAccessorFactorydoWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionPropertypublic CassandraUserTypePersistentEntity(TypeInformation<T> typeInformation, CassandraMappingContext mappingContext, CassandraPersistentEntityMetadataVerifier verifier, UserTypeResolver resolver)
CassandraUserTypePersistentEntity.typeInformation - must not be null.mappingContext - must not be null.verifier - must not be null.resolver - must not be null.protected CqlIdentifier determineTableName()
determineTableName in class BasicCassandraPersistentEntity<T>public boolean isUserDefinedType()
isUserDefinedType in interface CassandraPersistentEntity<T>isUserDefinedType in class BasicCassandraPersistentEntity<T>UserDefinedTypepublic com.datastax.driver.core.UserType getUserType()
getUserType in interface CassandraPersistentEntity<T>getUserType in class BasicCassandraPersistentEntity<T>UserType if the type is a mapped user defined type, otherwise null.UserDefinedTypeCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.