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
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, wait
Methods inherited from interface org.springframework.data.cassandra.core.mapping.NamingStrategy
transform
-
Constructor Details
-
TransformingNamingStrategy
-
-
Method Details
-
getTableName
Description copied from interface:NamingStrategy
Create a table name from the givenCassandraPersistentEntity
.- Specified by:
getTableName
in interfaceNamingStrategy
-
getUserDefinedTypeName
Description copied from interface:NamingStrategy
Create a user-defined type name from the givenCassandraPersistentEntity
.- Specified by:
getUserDefinedTypeName
in interfaceNamingStrategy
-
getColumnName
Description copied from interface:NamingStrategy
Create a column name from the givenproperty
.- Specified by:
getColumnName
in interfaceNamingStrategy
-