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 TypeMethodDescriptionboolean
int
getName()
TypeInfo<?>
getType()
int
hashCode()
boolean
boolean
boolean
boolean
isUnique()
void
setAutoIncrement
(boolean autoIncrement) void
setDefaultValue
(Object defaultValue) void
setJdbcType
(int jdbcType) void
void
setNotNull
(boolean notNull) void
setPrimaryKey
(boolean primaryKey) void
void
setUnique
(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
-