Polishing.

Add Javadoc.

Closes #1297
This commit is contained in:
Mark Paluch
2022-09-01 09:49:33 +02:00
parent af5d499c10
commit 43b964f1dc

View File

@@ -287,6 +287,14 @@ public abstract class AbstractCassandraConfiguration extends AbstractSessionConf
return new ByteArrayResource(content.getBytes());
}
/**
* Creates a new {@link UserTypeResolver} from the given {@link CqlSession}. Uses by default the configured
* {@link #getKeyspaceName() keyspace name}.
*
* @param cqlSession the Cassandra {@link CqlSession} to use.
* @return a new {@link SimpleUserTypeResolver}.
* @since 3.4.3
*/
protected UserTypeResolver userTypeResolver(CqlSession cqlSession) {
return new SimpleUserTypeResolver(cqlSession, CqlIdentifier.fromCql(getKeyspaceName()));
}