public final class CassandraValidationClassMapper extends Object
| Constructor and Description |
|---|
CassandraValidationClassMapper() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getReplicationStrategies()
Gets the replication strategies.
|
static String |
getValidationClass(Class<?> dataType,
boolean isCql3Enabled)
Gets the validation class.
|
static Class<?> |
getValidationClassInstance(Class<?> dataType,
boolean isCql3Enabled)
Gets the validation class instance.
|
static org.apache.cassandra.serializers.TypeSerializer<?> |
getValidationSerializerClassInstance(Class<?> dataType,
boolean isCql3Enabled)
Gets the validation serializer class instance.
|
static List<String> |
getValidatorsAndComparators()
Gets the validators and comparators.
|
static String |
getValueTypeName(Class<?> dataType,
List<Class<?>> genericClasses,
boolean isCql3Enabled)
Gets the value type name.
|
public static String getValidationClass(Class<?> dataType, boolean isCql3Enabled)
dataType - the data typeisCql3Enabled - the is cql3 enabledpublic static Class<?> getValidationClassInstance(Class<?> dataType, boolean isCql3Enabled)
dataType - the data typeisCql3Enabled - the is cql3 enabledpublic static org.apache.cassandra.serializers.TypeSerializer<?> getValidationSerializerClassInstance(Class<?> dataType, boolean isCql3Enabled)
dataType - the data typeisCql3Enabled - the is cql3 enabledpublic static String getValueTypeName(Class<?> dataType, List<Class<?>> genericClasses, boolean isCql3Enabled) throws org.apache.cassandra.exceptions.SyntaxException, org.apache.cassandra.exceptions.ConfigurationException, IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException
dataType - the data typegenericClasses - the generic classesisCql3Enabled - the is cql3 enabledorg.apache.cassandra.exceptions.SyntaxException - the syntax exceptionorg.apache.cassandra.exceptions.ConfigurationException - the configuration exceptionIllegalArgumentException - the illegal argument exceptionIllegalAccessException - the illegal access exceptionNoSuchFieldException - the no such field exceptionSecurityException - the security exceptionpublic static List<String> getReplicationStrategies()
Copyright © 2015. All Rights Reserved.