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()booleanA name for the attribute.The data type for the attribute, where:inthashCode()voidsetAttributeName(String attributeName) A name for the attribute.voidsetAttributeType(ScalarAttributeType attributeType) The data type for the attribute, where:voidsetAttributeType(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
-
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
-
equals
-
hashCode
-
clone
-