Enum Class SimpleTupleTypeFactory
java.lang.Object
java.lang.Enum<SimpleTupleTypeFactory>
org.springframework.data.cassandra.core.mapping.SimpleTupleTypeFactory
- All Implemented Interfaces:
Serializable
,Comparable<SimpleTupleTypeFactory>
,Constable
,TupleTypeFactory
- Since:
- 3.0
- Author:
- Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefaultSimpleTupleTypeFactory
using newest protocol versions and the defaultCodecRegistry
. -
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.oss.driver.api.core.type.TupleType
create
(com.datastax.oss.driver.api.core.type.DataType... types) Create aTupleType
representing the giventuple element types
.com.datastax.oss.driver.api.core.type.TupleType
Create aTupleType
representing the giventuple element types
.static SimpleTupleTypeFactory
Returns the enum constant of this class with the specified name.static SimpleTupleTypeFactory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
DefaultSimpleTupleTypeFactory
using newest protocol versions and the defaultCodecRegistry
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public com.datastax.oss.driver.api.core.type.TupleType create(com.datastax.oss.driver.api.core.type.DataType... types) Description copied from interface:TupleTypeFactory
Create aTupleType
representing the giventuple element types
.- Specified by:
create
in interfaceTupleTypeFactory
- Parameters:
types
- must not be null and not contain null elements.- Returns:
- the
TupleType
representing the giventuple element types
.
-
create
public com.datastax.oss.driver.api.core.type.TupleType create(List<com.datastax.oss.driver.api.core.type.DataType> types) Description copied from interface:TupleTypeFactory
Create aTupleType
representing the giventuple element types
.- Specified by:
create
in interfaceTupleTypeFactory
- Parameters:
types
- must not be null.- Returns:
- the
TupleType
representing the giventuple element types
.
-