本文整理汇总了Java中com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute类的典型用法代码示例。如果您正苦于以下问题:Java DynamoDBAttribute类的具体用法?Java DynamoDBAttribute怎么用?Java DynamoDBAttribute使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DynamoDBAttribute类属于com.amazonaws.services.dynamodbv2.datamodeling包,在下文中一共展示了DynamoDBAttribute类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCreatedDate
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
/**
* 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;
}
示例2: getCpcProcessedCreateDate
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
/**
* 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;
}
示例3: getOverriddenAttributeName
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
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;
}
示例4: getState
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@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);
}
示例5: getName
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@DynamoDBAttribute
public String getName() {
return name;
}
示例6: getNpi
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
/**
* The NPI associated with the the conversion.
*
* @return The NPI.
*/
@DoNotEncrypt
@DynamoDBAttribute(attributeName = "Npi")
public String getNpi() {
return npi;
}
示例7: getApm
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
/**
* 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;
}
示例8: getSubmissionYear
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
/**
* The submission year associated with the the conversion.
*
* @return The submission year.
*/
@DoNotEncrypt
@DynamoDBAttribute(attributeName = "SubmissionYear")
public Long getSubmissionYear() {
return submissionYear;
}
示例9: getOverallStatus
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
/**
* The success or failure of the conversion and the submission validation.
*
* @return Success or failure.
*/
@DoNotEncrypt
@DynamoDBAttribute(attributeName = "OverallStatus")
public Boolean getOverallStatus() {
return overallStatus;
}
示例10: getConversionStatus
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
/**
* The success or failure of only the conversion.
*
* @return Success or failure.
*/
@DoNotEncrypt
@DynamoDBAttribute(attributeName = "ConversionStatus")
public Boolean getConversionStatus() {
return conversionStatus;
}
示例11: getValidationStatus
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
/**
* The success or failure of only the submission validation.
*
* @return Success or failure.
*/
@DoNotEncrypt
@DynamoDBAttribute(attributeName = "ValidationStatus")
public Boolean getValidationStatus() {
return validationStatus;
}
示例12: getName
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@DynamoDBAttribute
public String getName() {
return name;
}
示例13: getIsbn
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@DynamoDBAttribute
public String getIsbn() {
return isbn;
}
示例14: getCost
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@DynamoDBAttribute
public String getCost() {
return cost;
}
示例15: getProduct
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@Override
@DynamoDBAttribute(attributeName = "product")
public String getProduct() {
return super.getProduct();
}