org.kuali.common.impex.model
Class Column

java.lang.Object
  extended by org.kuali.common.impex.model.Column
All Implemented Interfaces:
NamedElement

public class Column
extends Object
implements NamedElement

This interface provides an implementation-independent API to access database column model information


Field Summary
static Boolean DEFAULT_NULLABLE_VALUE
           
static Boolean DEFAULT_PRIMARY_KEY_VALUE
           
 
Constructor Summary
Column()
           
Column(Column column)
          This is a copy constructor.
Column(String name, DataType dataType)
          Create a new instance of a Column All values are initialized, with a special note that nullable is initially set to true
 
Method Summary
 String getDefaultValue()
           
 String getDescription()
           
 String getName()
           
 DataTypeSize getSize()
           
 DataType getType()
           
 Boolean isNullable()
           
 Boolean isPrimaryKey()
           
 void setDefaultValue(String defaultValue)
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setNullable(Boolean nullable)
           
 void setPrimaryKey(Boolean primaryKey)
           
 void setSize(DataTypeSize typeSize)
           
 void setType(DataType columnDataType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NULLABLE_VALUE

public static final Boolean DEFAULT_NULLABLE_VALUE

DEFAULT_PRIMARY_KEY_VALUE

public static final Boolean DEFAULT_PRIMARY_KEY_VALUE
Constructor Detail

Column

public Column(Column column)
This is a copy constructor. It must create a perfect, deep, copy of this object


Column

public Column()

Column

public Column(String name,
              DataType dataType)
Create a new instance of a Column All values are initialized, with a special note that nullable is initially set to true

Method Detail

getType

public DataType getType()

getName

public String getName()
Specified by:
getName in interface NamedElement

isPrimaryKey

public Boolean isPrimaryKey()

isNullable

public Boolean isNullable()

getDescription

public String getDescription()

setPrimaryKey

public void setPrimaryKey(Boolean primaryKey)

getSize

public DataTypeSize getSize()

setSize

public void setSize(DataTypeSize typeSize)

getDefaultValue

public String getDefaultValue()

setDefaultValue

public void setDefaultValue(String defaultValue)

setNullable

public void setNullable(Boolean nullable)

setDescription

public void setDescription(String description)

setType

public void setType(DataType columnDataType)

setName

public void setName(String name)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.