public class PrimaryKey extends Object
Constructor and Description |
---|
PrimaryKey() |
PrimaryKey(KeyAttribute... components)
Constructs with the specified key components.
|
PrimaryKey(String hashKeyName,
Object hashKeyValue)
Constructs with a hash key.
|
PrimaryKey(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Constructs with a hash key and a range key.
|
Modifier and Type | Method and Description |
---|---|
PrimaryKey |
addComponent(String keyAttributeName,
Object keyAttributeValue)
Add a key component to this primary key.
|
PrimaryKey |
addComponents(KeyAttribute... components)
Add one or multiple key components to this primary key.
|
boolean |
equals(Object in) |
Set<String> |
getComponentNameSet()
Returns all the key component names of this primary key as a set.
|
Collection<KeyAttribute> |
getComponents()
Returns all the key components of this primary key.
|
boolean |
hasComponent(String attrName)
Returns true if this primary has the specified key attribute name;
false otherwise.
|
int |
hashCode() |
String |
toString() |
public PrimaryKey()
public PrimaryKey(KeyAttribute... components)
public Collection<KeyAttribute> getComponents()
public Set<String> getComponentNameSet()
public boolean hasComponent(String attrName)
public PrimaryKey addComponents(KeyAttribute... components)
public PrimaryKey addComponent(String keyAttributeName, Object keyAttributeValue)
Copyright © 2017. All rights reserved.