public class PrimaryKey
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,KeyAttribute> |
components |
Constructor and Description |
---|
PrimaryKey() |
PrimaryKey(KeyAttribute... components)
Constructs with the specified key components.
|
PrimaryKey(java.lang.String hashKeyName,
java.lang.Object hashKeyValue)
Constructs with a hash key.
|
PrimaryKey(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue)
Constructs with a hash key and a range key.
|
Modifier and Type | Method and Description |
---|---|
PrimaryKey |
addComponent(java.lang.String keyAttributeName,
java.lang.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(java.lang.Object in) |
java.util.Set<java.lang.String> |
getComponentNameSet()
Returns all the key component names of this primary key as a set.
|
java.util.Collection<KeyAttribute> |
getComponents()
Returns all the key components of this primary key.
|
boolean |
hasComponent(java.lang.String attrName)
Returns true if this primary has the specified key attribute name;
false otherwise.
|
int |
hashCode() |
java.lang.String |
toString() |
private final java.util.Map<java.lang.String,KeyAttribute> components
public PrimaryKey()
public PrimaryKey(KeyAttribute... components)
public PrimaryKey(java.lang.String hashKeyName, java.lang.Object hashKeyValue)
public PrimaryKey(java.lang.String hashKeyName, java.lang.Object hashKeyValue, java.lang.String rangeKeyName, java.lang.Object rangeKeyValue)
public java.util.Collection<KeyAttribute> getComponents()
public java.util.Set<java.lang.String> getComponentNameSet()
public boolean hasComponent(java.lang.String attrName)
public PrimaryKey addComponents(KeyAttribute... components)
public PrimaryKey addComponent(java.lang.String keyAttributeName, java.lang.Object keyAttributeValue)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object in)
equals
in class java.lang.Object