类 AttributeDefinition


  • public class AttributeDefinition
    extends Object
    Represents an attribute with name and value type for a table.
    • 构造器详细资料

      • AttributeDefinition

        public AttributeDefinition()
        Constructs a new AttributeDefinition object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
    • 方法详细资料

      • setAttributeName

        public void setAttributeName​(String name)
        The method set the attribute name for a new attribute.
        参数:
        name - The name of the attribute.
      • withAttributeName

        public AttributeDefinition withAttributeName​(String name)
        The method set the attribute name for a new attribute.
        参数:
        name - The name of the attribute.
      • getAttributeName

        public String getAttributeName()
        The method get the attribute name of a new attribute.
        返回:
        The name of the attribute.
      • setAttributeType

        public void setAttributeType​(String type)
        The method set the attribute value type for a new attribute.
        参数:
        type - The value type of the attribute, the value is "N","S", or "B".
      • withAttributeType

        public AttributeDefinition withAttributeType​(String type)
        The method set the attribute value type for a new attribute.
        参数:
        type - The value type of the attribute, the value is "N","S", or "B".
      • getAttributeType

        public String getAttributeType()
        The method get the attribute value type of a new attribute.
        返回:
        The value type of the attribute, the value is "N","S", or "B".
      • toJsonObj

        protected Object toJsonObj()