当前位置: 首页>>代码示例>>Java>>正文


Java DynamoDBAttribute类代码示例

本文整理汇总了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;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:12,代码来源:Metadata.java

示例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;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:20,代码来源:Metadata.java

示例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;

	}
 
开发者ID:michaellavelle,项目名称:spring-data-dynamodb,代码行数:32,代码来源:DynamoDBEntityMetadataSupport.java

示例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);
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:8,代码来源:DynamoDBBigDecimalItem.java

示例5: getName

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@DynamoDBAttribute
public String getName() {
    return name;
}
 
开发者ID:arun-gupta,项目名称:alexa-skill-java,代码行数:5,代码来源:Person.java

示例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;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:11,代码来源:Metadata.java

示例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;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:11,代码来源:Metadata.java

示例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;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:11,代码来源:Metadata.java

示例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;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:11,代码来源:Metadata.java

示例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;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:11,代码来源:Metadata.java

示例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;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:11,代码来源:Metadata.java

示例12: getName

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@DynamoDBAttribute
public String getName() {
	return name;
}
 
开发者ID:arun-gupta,项目名称:dynamodb-java-helloworld,代码行数:5,代码来源:Book.java

示例13: getIsbn

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@DynamoDBAttribute
public String getIsbn() {
	return isbn;
}
 
开发者ID:arun-gupta,项目名称:dynamodb-java-helloworld,代码行数:5,代码来源:Book.java

示例14: getCost

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@DynamoDBAttribute
public String getCost() {
	return cost;
}
 
开发者ID:arun-gupta,项目名称:dynamodb-java-helloworld,代码行数:5,代码来源:Book.java

示例15: getProduct

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; //导入依赖的package包/类
@Override
@DynamoDBAttribute(attributeName = "product")
public String getProduct() {
    return super.getProduct();
}
 
开发者ID:satr,项目名称:aws-amazon-shopping-bot-lambda-func,代码行数:6,代码来源:OrderItem.java


注:本文中的com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。