Record Class AbstractTransactGetBuilder.Entry
java.lang.Object
java.lang.Record
dev.hogwai.dynamodb.simplified.builder.base.AbstractTransactGetBuilder.Entry
- Record Components:
table- the table reference (eitherDynamoDbTableorDynamoDbAsyncTable)key- the DynamoDB keyprojectionExpression- optional projection expression, may benull
- Enclosing class:
AbstractTransactGetBuilder<S extends AbstractTransactGetBuilder<S>>
public static record AbstractTransactGetBuilder.Entry(Object table, software.amazon.awssdk.enhanced.dynamodb.Key key, @Nullable ProjectionExpression projectionExpression)
extends Record
Stores a table reference, key, and optional per-entry projection expression.
The table is stored as
Object to accommodate both
DynamoDbTable and DynamoDbAsyncTable types without coupling
the base to either package.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anEntrywith no projection expression.Entry(Object table, software.amazon.awssdk.enhanced.dynamodb.Key key, @Nullable ProjectionExpression projectionExpression) Creates an instance of aEntryrecord 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.software.amazon.awssdk.enhanced.dynamodb.Keykey()Returns the value of thekeyrecord component.@Nullable ProjectionExpressionReturns the value of theprojectionExpressionrecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Constructs anEntrywith no projection expression.- Parameters:
table- the table referencekey- the DynamoDB key
-
Entry
public Entry(Object table, software.amazon.awssdk.enhanced.dynamodb.Key key, @Nullable ProjectionExpression projectionExpression) Creates an instance of aEntryrecord class.- Parameters:
table- the value for thetablerecord componentkey- the value for thekeyrecord componentprojectionExpression- the value for theprojectionExpressionrecord component
-
-
Method Details
-
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). -
table
-
key
-
projectionExpression
Returns the value of theprojectionExpressionrecord component.- Returns:
- the value of the
projectionExpressionrecord component
-