public class TransformingNamingStrategy extends Object implements NamingStrategy
INSTANCE, SNAKE_CASE| Constructor and Description |
|---|
TransformingNamingStrategy(NamingStrategy delegate,
Function<String,String> mappingFunction) |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnName(CassandraPersistentProperty property)
Create a column name from the given
property. |
String |
getTableName(CassandraPersistentEntity<?> entity)
Create a table name from the given
CassandraPersistentEntity. |
String |
getUserDefinedTypeName(CassandraPersistentEntity<?> entity)
Create a user-defined type name from the given
CassandraPersistentEntity. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic TransformingNamingStrategy(NamingStrategy delegate, Function<String,String> mappingFunction)
public String getTableName(CassandraPersistentEntity<?> entity)
NamingStrategyCassandraPersistentEntity.getTableName in interface NamingStrategypublic String getUserDefinedTypeName(CassandraPersistentEntity<?> entity)
NamingStrategyCassandraPersistentEntity.getUserDefinedTypeName in interface NamingStrategypublic String getColumnName(CassandraPersistentProperty property)
NamingStrategyproperty.getColumnName in interface NamingStrategyCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.