Class AttributeDefinition
- All Implemented Interfaces:
Serializable
,Cloneable
Represents an attribute for describing the key schema for the table and indexes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for AttributeDefinition object.AttributeDefinition
(String attributeName, ScalarAttributeType attributeType) Constructs a new AttributeDefinition object.AttributeDefinition
(String attributeName, String attributeType) Constructs a new AttributeDefinition object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A name for the attribute.The data type for the attribute, where:int
hashCode()
void
setAttributeName
(String attributeName) A name for the attribute.void
setAttributeType
(ScalarAttributeType attributeType) The data type for the attribute, where:void
setAttributeType
(String attributeType) The data type for the attribute, where:toString()
Returns a string representation of this object; useful for testing and debugging.withAttributeName
(String attributeName) A name for the attribute.withAttributeType
(ScalarAttributeType attributeType) The data type for the attribute, where:withAttributeType
(String attributeType) The data type for the attribute, where:
-
Constructor Details
-
AttributeDefinition
public AttributeDefinition()Default constructor for AttributeDefinition object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
AttributeDefinition
Constructs a new AttributeDefinition object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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
-
-
AttributeDefinition
Constructs a new AttributeDefinition object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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
-
-
-
Method Details
-
setAttributeName
A name for the attribute.
- Parameters:
attributeName
- A name for the attribute.
-
getAttributeName
A name for the attribute.
- Returns:
- A name for the attribute.
-
withAttributeName
A name for the attribute.
- Parameters:
attributeName
- A name for the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttributeType
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
- Parameters:
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
-
- See Also:
-
-
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
- Returns:
- 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
-
- See Also:
-
-
withAttributeType
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setAttributeType
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
- Parameters:
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
-
- See Also:
-
-
withAttributeType
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-