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
.getKeyspace
(CassandraPersistentEntity<?> entity) Create a keyspace name from the givenCassandraPersistentEntity
.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
-
getKeyspace
Description copied from interface:NamingStrategy
Create a keyspace name from the givenCassandraPersistentEntity
. Defaults to null meaning the keyspace is being inherited from the Cassandra session instead of using a specific keyspace regardless of the session configuration.- Specified by:
getKeyspace
in interfaceNamingStrategy
-
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
-