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
context, DEFAULT_VERIFIER, forceQuote, mappingContext, spelContext, tableName, verifier
Constructor and Description |
---|
CassandraUserTypePersistentEntity(org.springframework.data.util.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, verify
addPersistentProperty, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, returnPropertyIfBetterIdPropertyCandidateOrNull, setPersistentPropertyAccessorFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPersistentProperty, setPersistentPropertyAccessorFactory
doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty
public CassandraUserTypePersistentEntity(org.springframework.data.util.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>
UserDefinedType
public 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.UserDefinedType
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.