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

public enum SimpleTupleTypeFactory extends Enum<SimpleTupleTypeFactory> implements TupleTypeFactory
CodecRegistry-based TupleTypeFactory using DefaultTupleType to create tuple types. tuple types.
Since:
3.0
Author:
Mark Paluch
  • Enum Constant Details

  • Method Details

    • values

      public static SimpleTupleTypeFactory[] 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

      public static SimpleTupleTypeFactory valueOf(String name)
      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 name
      NullPointerException - 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 a TupleType representing the given tuple element types.
      Specified by:
      create in interface TupleTypeFactory
      Parameters:
      types - must not be null and not contain null elements.
      Returns:
      the TupleType representing the given tuple 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 a TupleType representing the given tuple element types.
      Specified by:
      create in interface TupleTypeFactory
      Parameters:
      types - must not be null.
      Returns:
      the TupleType representing the given tuple element types.