DATACASS-291 - Deprecate CachedPreparedStatementCreator.

The original o.s.d.c.c.CachedPreparedStatementCreator is deprecated as it uses an static held Map to cache statements.
This commit is contained in:
Mark Paluch
2017-06-01 16:34:10 +02:00
committed by John Blum
parent dfe9c9d8a2
commit e8ac154bb8

View File

@@ -36,7 +36,11 @@ import com.datastax.driver.core.exceptions.DriverException;
*
* @author David Webb
* @author Mark Paluch
* @deprecated since 2.0. This class uses an unsafe, static held cache and is not able to prepare
* {@link com.datastax.driver.core.querybuilder.BuiltStatement}. Use
* {@link org.springframework.data.cql.core.support.CachedPreparedStatementCreator}.
*/
@Deprecated
public class CachedPreparedStatementCreator implements PreparedStatementCreator {
private static final Map<Session, Map<String, PreparedStatement>> CACHE = new ConcurrentHashMap<>();