net.java.ao.schema.ddl
Class DDLField

java.lang.Object
  extended by 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 Summary
DDLField()
           
 
Method Summary
 boolean equals(Object obj)
           
 Object getDefaultValue()
           
 int getJdbcType()
           
 String getName()
           
 TypeInfo<?> getType()
           
 int hashCode()
           
 boolean isAutoIncrement()
           
 boolean isNotNull()
           
 boolean isPrimaryKey()
           
 boolean isUnique()
           
 void setAutoIncrement(boolean autoIncrement)
           
 void setDefaultValue(Object defaultValue)
           
 void setJdbcType(int jdbcType)
           
 void setName(String name)
           
 void setNotNull(boolean notNull)
           
 void setPrimaryKey(boolean primaryKey)
           
 void setType(TypeInfo<?> type)
           
 void setUnique(boolean unique)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DDLField

public DDLField()
Method Detail

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


Copyright © 2007-2011. All Rights Reserved.