/** * The date and time when this item was created. * * @return The date and time. */ @DoNotEncrypt @DynamoDBAttribute(attributeName = "CreateDate") @DynamoDBTypeConverted(converter = InstantConverter.class) public Instant getCreatedDate() { return createdDate; }
/** * Returns an attribute that combines the CPC+ processed state and the date of creation. * * This is mostly useful in the CPC+ global secondary index. * * @return The combined attribute. */ @DoNotEncrypt @DynamoDBAttribute(attributeName = Constants.DYNAMO_CPC_PROCESSED_CREATE_DATE_ATTRIBUTE) public String getCpcProcessedCreateDate() { String combination = null; if (cpcProcessed != null) { DateTimeFormatter formatter = DateTimeFormatter.ISO_INSTANT; combination = cpcProcessed.toString() + "#" + formatter.format(createdDate); } return combination; }
public String getOverriddenAttributeName(Method method) { if (method != null) { if (method.getAnnotation(DynamoDBAttribute.class) != null && StringUtils.isNotEmpty(method.getAnnotation(DynamoDBAttribute.class).attributeName())) { return method.getAnnotation(DynamoDBAttribute.class).attributeName(); } if (method.getAnnotation(DynamoDBHashKey.class) != null && StringUtils.isNotEmpty(method.getAnnotation(DynamoDBHashKey.class).attributeName())) { return method.getAnnotation(DynamoDBHashKey.class).attributeName(); } if (method.getAnnotation(DynamoDBRangeKey.class) != null && StringUtils.isNotEmpty(method.getAnnotation(DynamoDBRangeKey.class).attributeName())) { return method.getAnnotation(DynamoDBRangeKey.class).attributeName(); } if (method.getAnnotation(DynamoDBIndexRangeKey.class) != null && StringUtils.isNotEmpty(method.getAnnotation(DynamoDBIndexRangeKey.class).attributeName())) { return method.getAnnotation(DynamoDBIndexRangeKey.class).attributeName(); } if (method.getAnnotation(DynamoDBIndexHashKey.class) != null && StringUtils.isNotEmpty(method.getAnnotation(DynamoDBIndexHashKey.class).attributeName())) { return method.getAnnotation(DynamoDBIndexHashKey.class).attributeName(); } if (method.getAnnotation(DynamoDBVersionAttribute.class) != null && StringUtils.isNotEmpty(method.getAnnotation(DynamoDBVersionAttribute.class).attributeName())) { return method.getAnnotation(DynamoDBVersionAttribute.class).attributeName(); } } return null; }
@DynamoDBAttribute(attributeName = DynamoDBItem.ATTRIBUTE_NAME_ITEMSTATE) @Override public BigDecimal getState() { // When serializing this to the wire, we round the number in order to ensure // that it is within the dynamodb limits return loseDigits(state); }
@DynamoDBAttribute public String getName() { return name; }
/** * The NPI associated with the the conversion. * * @return The NPI. */ @DoNotEncrypt @DynamoDBAttribute(attributeName = "Npi") public String getNpi() { return npi; }
/** * The APM Entity ID associated with the the conversion. Used with CPC+. * * @return The APM Entity ID. */ @DoNotEncrypt @DynamoDBAttribute(attributeName = "Apm") public String getApm() { return apm; }
/** * The submission year associated with the the conversion. * * @return The submission year. */ @DoNotEncrypt @DynamoDBAttribute(attributeName = "SubmissionYear") public Long getSubmissionYear() { return submissionYear; }
/** * The success or failure of the conversion and the submission validation. * * @return Success or failure. */ @DoNotEncrypt @DynamoDBAttribute(attributeName = "OverallStatus") public Boolean getOverallStatus() { return overallStatus; }
/** * The success or failure of only the conversion. * * @return Success or failure. */ @DoNotEncrypt @DynamoDBAttribute(attributeName = "ConversionStatus") public Boolean getConversionStatus() { return conversionStatus; }
/** * The success or failure of only the submission validation. * * @return Success or failure. */ @DoNotEncrypt @DynamoDBAttribute(attributeName = "ValidationStatus") public Boolean getValidationStatus() { return validationStatus; }
@DynamoDBAttribute public String getIsbn() { return isbn; }
@DynamoDBAttribute public String getCost() { return cost; }
@Override @DynamoDBAttribute(attributeName = "product") public String getProduct() { return super.getProduct(); }
@Override @DynamoDBAttribute(attributeName = "amount") public Double getAmount() { return super.getAmount(); }
@Override @DynamoDBAttribute(attributeName = "unit") public String getUnit() { return super.getUnit(); }
@Override @DynamoDBAttribute(attributeName = "price") public double getPrice() { return super.getPrice(); }
@DynamoDBAttribute(attributeName = "status") public String getStatus() { return status; }
@Override @DynamoDBAttribute(attributeName = "user_id") public String getUserId() { return super.getUserId(); }
@Override @DynamoDBAttribute(attributeName = "updated_on") public String getUpdatedOn() { return super.getUpdatedOn(); }
@Override @DynamoDBAttribute(attributeName = "items") @DynamoDBTypeConverted(converter = OrderItemConverter.class) public List<OrderItem> getItems() { return super.getItems(); }
@DynamoDBTypeConverted(converter = UnitPriceConverter.class) @DynamoDBAttribute(attributeName = "unit_prices") public List<UnitPrice> getUnitPrices() { return unitPrices; }
@DynamoDBAttribute(attributeName = "first_name") public String getFirstName() { return firstName; }
@DynamoDBAttribute(attributeName = "last_name") public String getLastName() { return lastName; }
@DynamoDBAttribute(attributeName = "address") public String getAddress() { return address; }
@DynamoDBAttribute(attributeName = "facebook_id") public String getFacebookId() { return facebookId; }
@Override @DynamoDBAttribute(attributeName = "items") @DynamoDBTypeConverted(converter = ShoppingCartItemConverter.class) public List<ShoppingCartItem> getItems() { return super.getItems(); }
@DynamoDBAttribute(attributeName = "type") public String getType() { return type; }
@DynamoDBAttribute(attributeName="address") public String getAddress() { return address; }
@DynamoDBTypeConvertedTimestamp() @DynamoDBAttribute(attributeName = "ExecutionTime") public Date getExecutionTime() { return executionTime; }
@DynamoDBTypeConvertedTimestamp @DynamoDBAttribute(attributeName = "LockExpireTime", mappedBy = "N") public Date getLockExpireTime() { return lockExpireTime; }