public enum CqlScalar extends Enum<CqlScalar>
This is used in both the CQL-first and GraphQL-first APIs.
| Enum Constant and Description |
|---|
ASCII |
BIGINT |
BLOB |
COUNTER |
DATE |
DECIMAL |
DURATION |
FLOAT |
INET |
SMALLINT |
TIME |
TIMESTAMP |
TIMEUUID |
TINYINT |
UUID |
VARINT |
| Modifier and Type | Method and Description |
|---|---|
static Optional<CqlScalar> |
fromCqlType(Column.Type cqlType) |
static Optional<CqlScalar> |
fromGraphqlName(String graphqlName) |
Column.Type |
getCqlType() |
Class<?> |
getCqlValueClass()
The Java type that the persistence API expects for this type.
|
graphql.schema.GraphQLScalarType |
getGraphqlType() |
static CqlScalar |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CqlScalar[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CqlScalar UUID
public static final CqlScalar TIMEUUID
public static final CqlScalar INET
public static final CqlScalar DATE
public static final CqlScalar DURATION
public static final CqlScalar BIGINT
public static final CqlScalar COUNTER
public static final CqlScalar ASCII
public static final CqlScalar DECIMAL
public static final CqlScalar VARINT
public static final CqlScalar FLOAT
public static final CqlScalar BLOB
public static final CqlScalar SMALLINT
public static final CqlScalar TINYINT
public static final CqlScalar TIMESTAMP
public static final CqlScalar TIME
public static CqlScalar[] values()
for (CqlScalar c : CqlScalar.values()) System.out.println(c);
public static CqlScalar valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Column.Type getCqlType()
public Class<?> getCqlValueClass()
public graphql.schema.GraphQLScalarType getGraphqlType()
public static Optional<CqlScalar> fromCqlType(Column.Type cqlType)
Copyright © 2023. All rights reserved.