public class AttributeDefinition
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents an attribute for describing the key schema for the table and indexes.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attributeName
A name for the attribute.
|
private java.lang.String |
attributeType
The data type for the attribute, where:
|
Constructor and Description |
---|
AttributeDefinition()
Default constructor for AttributeDefinition object.
|
AttributeDefinition(java.lang.String attributeName,
ScalarAttributeType attributeType)
Constructs a new AttributeDefinition object.
|
AttributeDefinition(java.lang.String attributeName,
java.lang.String attributeType)
Constructs a new AttributeDefinition object.
|
Modifier and Type | Method and Description |
---|---|
AttributeDefinition |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttributeName()
A name for the attribute.
|
java.lang.String |
getAttributeType()
The data type for the attribute, where:
|
int |
hashCode() |
void |
setAttributeName(java.lang.String attributeName)
A name for the attribute.
|
void |
setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
|
void |
setAttributeType(java.lang.String attributeType)
The data type for the attribute, where:
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttributeDefinition |
withAttributeName(java.lang.String attributeName)
A name for the attribute.
|
AttributeDefinition |
withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
|
AttributeDefinition |
withAttributeType(java.lang.String attributeType)
The data type for the attribute, where:
|
private java.lang.String attributeName
A name for the attribute.
private java.lang.String attributeType
The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
public AttributeDefinition()
public AttributeDefinition(java.lang.String attributeName, java.lang.String attributeType)
attributeName
- A name for the attribute.attributeType
- The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
public AttributeDefinition(java.lang.String attributeName, ScalarAttributeType attributeType)
attributeName
- A name for the attribute.attributeType
- The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
public void setAttributeName(java.lang.String attributeName)
A name for the attribute.
attributeName
- A name for the attribute.public java.lang.String getAttributeName()
A name for the attribute.
public AttributeDefinition withAttributeName(java.lang.String attributeName)
A name for the attribute.
attributeName
- A name for the attribute.public void setAttributeType(java.lang.String attributeType)
The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
attributeType
- The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
ScalarAttributeType
public java.lang.String getAttributeType()
The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
ScalarAttributeType
public AttributeDefinition withAttributeType(java.lang.String attributeType)
The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
attributeType
- The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
ScalarAttributeType
public void setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
attributeType
- The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
ScalarAttributeType
public AttributeDefinition withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
attributeType
- The data type for the attribute, where:
S
- the attribute is of type String
N
- the attribute is of type Number
B
- the attribute is of type Binary
ScalarAttributeType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AttributeDefinition clone()
clone
in class java.lang.Object