Class DDLField

java.lang.Object
net.java.ao.schema.ddl.DDLField

public class DDLField extends Object
Database-agnostic representation of a field within a table containing all associated attributes such as type and constraints. The only field-relative attribute not contained within this class is whether or not the field is indexed at the database level.
Author:
Daniel Spiewak
  • Constructor Details

    • DDLField

      public DDLField()
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getType

      public TypeInfo<?> getType()
    • setType

      public void setType(TypeInfo<?> type)
    • getJdbcType

      public int getJdbcType()
    • setJdbcType

      public void setJdbcType(int jdbcType)
    • isPrimaryKey

      public boolean isPrimaryKey()
    • setPrimaryKey

      public void setPrimaryKey(boolean primaryKey)
    • isAutoIncrement

      public boolean isAutoIncrement()
    • setAutoIncrement

      public void setAutoIncrement(boolean autoIncrement)
    • isNotNull

      public boolean isNotNull()
    • setNotNull

      public void setNotNull(boolean notNull)
    • isUnique

      public boolean isUnique()
    • setUnique

      public void setUnique(boolean unique)
    • getDefaultValue

      public Object getDefaultValue()
    • setDefaultValue

      public void setDefaultValue(Object defaultValue)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object