public interface CassandraPersistentEntity<T> extends PersistentEntity<T,CassandraPersistentProperty>
PersistentEntity
abstraction.Modifier and Type | Method and Description |
---|---|
com.datastax.oss.driver.api.core.CqlIdentifier |
getTableName()
Returns the table name to which the entity shall be persisted.
|
com.datastax.oss.driver.api.core.type.TupleType |
getTupleType() |
com.datastax.oss.driver.api.core.type.UserDefinedType |
getUserType() |
boolean |
isCompositePrimaryKey()
Returns whether this entity represents a composite primary key.
|
boolean |
isTupleType() |
boolean |
isUserDefinedType() |
void |
setForceQuote(boolean forceQuote)
Deprecated.
since 3.0. The table name gets converted into
CqlIdentifier
hence it no longer requires an indication whether the name should be quoted. |
default void |
setTableName(CqlIdentifier tableName)
Deprecated.
since 3.0, use
setTableName(CqlIdentifier) instead. |
void |
setTableName(com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Sets the CQL table name.
|
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
forEach, iterator, spliterator
boolean isCompositePrimaryKey()
@Deprecated void setForceQuote(boolean forceQuote)
CqlIdentifier
hence it no longer requires an indication whether the name should be quoted.getTableName()
in CQL.forceQuote
- true to enforce quoting; false to disable enforced quoting usage.CqlIdentifier.fromInternal(String)
com.datastax.oss.driver.api.core.CqlIdentifier getTableName()
@Deprecated default void setTableName(CqlIdentifier tableName)
setTableName(CqlIdentifier)
instead.tableName
- must not be null.void setTableName(com.datastax.oss.driver.api.core.CqlIdentifier tableName)
tableName
- must not be null.boolean isTupleType()
Tuple
@Nullable com.datastax.oss.driver.api.core.type.TupleType getTupleType()
TupleType
matching the data types from mapped
tuple elements
.boolean isUserDefinedType()
UserDefinedType
@Nullable com.datastax.oss.driver.api.core.type.UserDefinedType getUserType()
UserType
if the type is a mapped user defined type, otherwise null.UserDefinedType
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.