Record Class DynamoDbCompositeId<T,N>
java.lang.Object
java.lang.Record
io.awspring.spring.data.dynamodb.repository.DynamoDbCompositeId<T,N>
- Record Components:
partitionKey- partition-key valuesortKey- sort-key value
-
Constructor Summary
ConstructorsConstructorDescriptionDynamoDbCompositeId(T partitionKey, N sortKey) Creates an instance of aDynamoDbCompositeIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <T,N> DynamoDbCompositeId <T, N> of(T partitionKey, N sortKey) Creates a composite ID from both key values.Returns the value of thepartitionKeyrecord component.sortKey()Returns the value of thesortKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DynamoDbCompositeId
Creates an instance of aDynamoDbCompositeIdrecord class.- Parameters:
partitionKey- the value for thepartitionKeyrecord componentsortKey- the value for thesortKeyrecord component
-
-
Method Details
-
of
Creates a composite ID from both key values. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
partitionKey
Returns the value of thepartitionKeyrecord component.- Returns:
- the value of the
partitionKeyrecord component
-
sortKey
-