Class TransformingNamingStrategy
java.lang.Object
org.springframework.data.cassandra.core.mapping.TransformingNamingStrategy
- All Implemented Interfaces:
NamingStrategy
- Since:
- 3.0
- Author:
- Mark Paluch
-
Field Summary
Fields inherited from interface org.springframework.data.cassandra.core.mapping.NamingStrategy
CASE_SENSITIVE, INSTANCE, SNAKE_CASE -
Constructor Summary
ConstructorsConstructorDescriptionTransformingNamingStrategy(NamingStrategy delegate, Function<String, String> mappingFunction) -
Method Summary
Modifier and TypeMethodDescriptiongetColumnName(CassandraPersistentProperty property) Create a column name from the givenproperty.getTableName(CassandraPersistentEntity<?> entity) Create a table name from the givenCassandraPersistentEntity.getUserDefinedTypeName(CassandraPersistentEntity<?> entity) Create a user-defined type name from the givenCassandraPersistentEntity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.cassandra.core.mapping.NamingStrategy
transform
-
Constructor Details
-
TransformingNamingStrategy
-
-
Method Details
-
getTableName
Description copied from interface:NamingStrategyCreate a table name from the givenCassandraPersistentEntity.- Specified by:
getTableNamein interfaceNamingStrategy
-
getUserDefinedTypeName
Description copied from interface:NamingStrategyCreate a user-defined type name from the givenCassandraPersistentEntity.- Specified by:
getUserDefinedTypeNamein interfaceNamingStrategy
-
getColumnName
Description copied from interface:NamingStrategyCreate a column name from the givenproperty.- Specified by:
getColumnNamein interfaceNamingStrategy
-