Package net.java.ao.schema.ddl
Class DDLField
java.lang.Object
net.java.ao.schema.ddl.DDLField
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetName()TypeInfo<?>getType()inthashCode()booleanbooleanbooleanbooleanisUnique()voidsetAutoIncrement(boolean autoIncrement) voidsetDefaultValue(Object defaultValue) voidsetJdbcType(int jdbcType) voidvoidsetNotNull(boolean notNull) voidsetPrimaryKey(boolean primaryKey) voidvoidsetUnique(boolean unique) toString()
-
Constructor Details
-
DDLField
public DDLField()
-
-
Method Details
-
getName
-
setName
-
getType
-
setType
-
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
-
setDefaultValue
-
toString
-
hashCode
public int hashCode() -
equals
-