Annotation Interface CassandraType
@Documented
@Retention(RUNTIME)
@Target({TYPE,TYPE_PARAMETER,ANNOTATION_TYPE,FIELD,METHOD,PARAMETER})
public @interface CassandraType
Specifies the Cassandra type of the annotated property or parameter when used in query methods.
- Author:
- Alex Shvid, Matthew T. Adams, Mark Paluch
- See Also:
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionIf the property isCollection-like
, then this attribute holds a singleDataType Name
representing the element type of theCollection
.If the property maps to a User-Defined Type (UDT) then this attribute holds the user type name.
-
Element Details
-
type
CassandraType.Name typeTheCassandraType.Name
of the property.
-
-
-
typeArguments
CassandraType.Name[] typeArgumentsIf the property isCollection-like
, then this attribute holds a singleDataType Name
representing the element type of theCollection
.If the property is a
Map
, then this attribute holds exactly twoDataType Names
; the first is the key type and the second is the value type.If the property is neither
Collection-like
nor aMap
, then this attribute is ignored.- Returns:
- an array of
CassandraType.Name
objects. - See Also:
- Default:
- {}
-
userTypeName
String userTypeNameIf the property maps to a User-Defined Type (UDT) then this attribute holds the user type name. ForCollection-like
properties the user type name applies to the component type. ForMap
properties,typeArguments()
configured toCassandraType.Name.UDT
are resolved using the user type name. The user type name is only required if the UDT does not map to a class annotated withUserDefinedType
.- Returns:
name
of the user type- Since:
- 1.5
- Default:
- ""
-