com.cyclops.dbdigger.schema
Class DefaultColumn

java.lang.Object
  extended bycom.cyclops.dbdigger.schema.DefaultColumn
All Implemented Interfaces:
Column
Direct Known Subclasses:
TorqueColumn

public class DefaultColumn
extends Object
implements Column

Add description HERE!

Since:
2003-6-11 11:07:47
Author:
joel guo

Field Summary
 
Fields inherited from interface com.cyclops.dbdigger.schema.Column
EMPTY_ARRAY
 
Constructor Summary
DefaultColumn()
           
 
Method Summary
 DBType getDBType()
          Method getDbtype()
 String getDefaultValue()
          Override method getDefaultValue() in super class
 String getDescription()
          Override method getDescription() of super class
 String getJavaPropertyName()
          Override method getJavaPropertyName() in super class
 String getName()
          Override method getName() in super class
 int getSize()
          Method getSize()
 Table getTable()
          Override method getTable() in super class
 String getType()
          Method getType()
 boolean hasDefaultValue()
          Override method hasDefaultValue() in super class
 boolean isPrimaryKey()
          Override method isPrimaryKey() in super class
 boolean isRequired()
          Override method isRequired() in super class
 void setDBType(DBType atype)
          Method setDbtype()
 void setDefaultValue(String string)
          Method setDefaultValue() in class DefaultColumn
 void setDescription(String string)
          Method setDescription()
 void setJavaPropertyName(String string)
          Method setJavaPropertyName() in class DefaultColumn
 void setName(String string)
          Method setName() in class DefaultColumn
 void setPrimaryKey(boolean b)
          Method setPrimaryKey() in class DefaultColumn
 void setRequired(boolean b)
          Method setRequired() in class DefaultColumn
 void setSize(int i)
          Method setSize()
 void setTable(Table atable)
          Method setTable() in class DefaultColumn
 void setType(String string)
          Method setType()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultColumn

public DefaultColumn()
Method Detail

getDBType

public DBType getDBType()
Method getDbtype()

Specified by:
getDBType in interface Column
Returns:
DBType object

getDefaultValue

public String getDefaultValue()
Override method getDefaultValue() in super class

Specified by:
getDefaultValue in interface Column
Returns:
Default value of column
See Also:
Column.getDefaultValue()

getDescription

public String getDescription()
Override method getDescription() of super class

Specified by:
getDescription in interface Column
Returns:
Description of this Column
See Also:
Column.getDescription()

getJavaPropertyName

public String getJavaPropertyName()
Override method getJavaPropertyName() in super class

Specified by:
getJavaPropertyName in interface Column
Returns:
Map to java property name
See Also:
Column.getJavaPropertyName()

getName

public String getName()
Override method getName() in super class

Specified by:
getName in interface Column
Returns:
Column name in database
See Also:
Column.getName()

getSize

public int getSize()
Method getSize()

Returns:
Size of this column

getTable

public Table getTable()
Override method getTable() in super class

Specified by:
getTable in interface Column
Returns:
Belong to Table object
See Also:
Column.getTable()

getType

public String getType()
Method getType()

Returns:
Type name

hasDefaultValue

public boolean hasDefaultValue()
Override method hasDefaultValue() in super class

Specified by:
hasDefaultValue in interface Column
Returns:
Is this column has a default value
See Also:
Column.hasDefaultValue()

isPrimaryKey

public boolean isPrimaryKey()
Override method isPrimaryKey() in super class

Specified by:
isPrimaryKey in interface Column
Returns:
Is this column primary key
See Also:
Column.isPrimaryKey()

isRequired

public boolean isRequired()
Override method isRequired() in super class

Specified by:
isRequired in interface Column
Returns:
Is value of this column required
See Also:
Column.isRequired()

setDBType

public void setDBType(DBType atype)
Method setDbtype()

Parameters:
atype - DBType object

setDefaultValue

public void setDefaultValue(String string)
Method setDefaultValue() in class DefaultColumn

Parameters:
string - Default value of this column

setDescription

public void setDescription(String string)
Method setDescription()

Parameters:
string - Description of this column

setJavaPropertyName

public void setJavaPropertyName(String string)
Method setJavaPropertyName() in class DefaultColumn

Parameters:
string - Java property name

setName

public void setName(String string)
Method setName() in class DefaultColumn

Parameters:
string - Name of this column

setPrimaryKey

public void setPrimaryKey(boolean b)
Method setPrimaryKey() in class DefaultColumn

Parameters:
b - Is this column primary key

setRequired

public void setRequired(boolean b)
Method setRequired() in class DefaultColumn

Parameters:
b - Is this column required

setSize

public void setSize(int i)
Method setSize()

Parameters:
i - Size of this column

setTable

public void setTable(Table atable)
Method setTable() in class DefaultColumn

Parameters:
atable - Table object of this column

setType

public void setType(String string)
Method setType()

Parameters:
string - Type name


Copyright © 2003 Cyclops Group. All Rights Reserved.