@DynamoDBHashKey(attributeName = ACCOUNT_ID_CLUSTER_ENVIRONMENT_NAME_HASH_KEY) private String accountIdClusterEnvironmentName;
public String attributeName() { final DynamoDBHashKey hashKey = actualOf(DynamoDBHashKey.class); if (hashKey != null && !hashKey.attributeName().isEmpty()) { return hashKey.attributeName();
@DynamoDBHashKey(attributeName = ACCOUNT_ID_CLUSTER_HASH_KEY) private String accountIdCluster;
DynamoDBHashKey hashKeyAnnotation = ReflectionUtils.getAnnotationFromGetterOrField(getter, DynamoDBHashKey.class); if ( hashKeyAnnotation != null ) { attributeName = hashKeyAnnotation.attributeName(); if ( attributeName != null && attributeName.length() > 0 ) return cacheAttributeName(getter, attributeName);
@DynamoDBHashKey public Object getHashKey() { return hashKey; }
private String getIdProperty(DynamoDBPersistentProperty idProperty) { DynamoDBHashKey dynamoDBHashKey = idProperty.findAnnotation(DynamoDBHashKey.class); String attributeName = dynamoDBHashKey.attributeName(); if(StringUtils.hasText(attributeName)) { return attributeName; } return idProperty.getName(); }
@DynamoDBHashKey(attributeName = SESSION_ID_ATTRIBUTE_NAME) public String getSessionId() { return sessionId; }
public String getOverriddenAttributeName(Method method) { if (method != null) { if (method.getAnnotation(DynamoDBAttribute.class) != null && !StringUtils.isEmpty(method.getAnnotation(DynamoDBAttribute.class).attributeName())) { return method.getAnnotation(DynamoDBAttribute.class).attributeName(); } if (method.getAnnotation(DynamoDBHashKey.class) != null && !StringUtils.isEmpty(method.getAnnotation(DynamoDBHashKey.class).attributeName())) { return method.getAnnotation(DynamoDBHashKey.class).attributeName(); } if (method.getAnnotation(DynamoDBRangeKey.class) != null && !StringUtils.isEmpty(method.getAnnotation(DynamoDBRangeKey.class).attributeName())) { return method.getAnnotation(DynamoDBRangeKey.class).attributeName(); } if (method.getAnnotation(DynamoDBIndexRangeKey.class) != null && !StringUtils.isEmpty(method.getAnnotation(DynamoDBIndexRangeKey.class).attributeName())) { return method.getAnnotation(DynamoDBIndexRangeKey.class).attributeName(); } if (method.getAnnotation(DynamoDBIndexHashKey.class) != null && !StringUtils.isEmpty(method.getAnnotation(DynamoDBIndexHashKey.class).attributeName())) { return method.getAnnotation(DynamoDBIndexHashKey.class).attributeName(); } if (method.getAnnotation(DynamoDBVersionAttribute.class) != null && !StringUtils.isEmpty(method.getAnnotation(DynamoDBVersionAttribute.class).attributeName())) { return method.getAnnotation(DynamoDBVersionAttribute.class).attributeName(); } } return null; }
@DynamoDBHashKey(attributeName = "CustomerId") public String getCustomerId() { return customerId; }
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; }
@DynamoDBHashKey(attributeName = "CustomerId") public String getCustomerId() { return customerId; }
&& !StringUtils.isEmpty(method.getAnnotation(DynamoDBHashKey.class).attributeName())) { return Optional.of(method.getAnnotation(DynamoDBHashKey.class).attributeName()); && !StringUtils.isEmpty(field.getAnnotation(DynamoDBHashKey.class).attributeName())) { return Optional.of(field.getAnnotation(DynamoDBHashKey.class).attributeName());
@DynamoDBHashKey public Object getHashKey() { return hashKey; }
&& StringUtils.isNotEmpty(method.getAnnotation(DynamoDBHashKey.class).attributeName())) { return method.getAnnotation(DynamoDBHashKey.class).attributeName(); && StringUtils.isNotEmpty(field.getAnnotation(DynamoDBHashKey.class).attributeName())) { return field.getAnnotation(DynamoDBHashKey.class).attributeName();
@DynamoDBHashKey(attributeName="Id") public String getId() { return id; } public void setId(String id) { this.id = id; }
public String attributeName() { final DynamoDBHashKey hashKey = actualOf(DynamoDBHashKey.class); if (hashKey != null && !hashKey.attributeName().isEmpty()) { return hashKey.attributeName();
@DynamoDBHashKey(attributeName="ForumName") public String getForumName() { return forumName; } public void setForumName(String forumName) { this.forumName = forumName; }
DynamoDBHashKey hashKeyAnnotation = ReflectionUtils.getAnnotationFromGetterOrField(getter, DynamoDBHashKey.class); if ( hashKeyAnnotation != null ) { attributeName = hashKeyAnnotation.attributeName(); if ( attributeName != null && attributeName.length() > 0 ) return cacheAttributeName(getter, attributeName);
@DynamoDBHashKey(attributeName="Id") public int getId() { return id; } public void setId(int id) { this.id = id; }
@DynamoDBHashKey(attributeName="ForumName") public String getForumName() { return forumName; } public void setForumName(String forumName) { this.forumName = forumName; }