Record Class DynamoDBQuery
java.lang.Object
java.lang.Record
org.eclipse.jnosql.databases.dynamodb.communication.DynamoDBQuery
-
Constructor Summary
ConstructorsConstructorDescriptionDynamoDBQuery(String table, String projectionExpression, String filterExpression, Map<String, String> expressionAttributeNames, Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue> expressionAttributeValues) Creates an instance of aDynamoDBQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Supplier<DynamoDBQuery>builderOf(String table, String partitionKey, org.eclipse.jnosql.communication.semistructured.SelectQuery query) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionAttributeNamesrecord component.Returns the value of theexpressionAttributeValuesrecord component.Returns the value of thefilterExpressionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectionExpressionrecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DynamoDBQuery
public DynamoDBQuery(String table, String projectionExpression, String filterExpression, Map<String, String> expressionAttributeNames, Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue> expressionAttributeValues) Creates an instance of aDynamoDBQueryrecord class.- Parameters:
table- the value for thetablerecord componentprojectionExpression- the value for theprojectionExpressionrecord componentfilterExpression- the value for thefilterExpressionrecord componentexpressionAttributeNames- the value for theexpressionAttributeNamesrecord componentexpressionAttributeValues- the value for theexpressionAttributeValuesrecord component
-
-
Method Details
-
builderOf
public static Supplier<DynamoDBQuery> builderOf(String table, String partitionKey, org.eclipse.jnosql.communication.semistructured.SelectQuery query) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
projectionExpression
Returns the value of theprojectionExpressionrecord component.- Returns:
- the value of the
projectionExpressionrecord component
-
filterExpression
Returns the value of thefilterExpressionrecord component.- Returns:
- the value of the
filterExpressionrecord component
-
expressionAttributeNames
Returns the value of theexpressionAttributeNamesrecord component.- Returns:
- the value of the
expressionAttributeNamesrecord component
-
expressionAttributeValues
public Map<String,software.amazon.awssdk.services.dynamodb.model.AttributeValue> expressionAttributeValues()Returns the value of theexpressionAttributeValuesrecord component.- Returns:
- the value of the
expressionAttributeValuesrecord component
-