com.metamatrix.common.jdbc.metadata
Class Column

java.lang.Object
  extended by com.metamatrix.common.jdbc.metadata.JDBCObject
      extended by com.metamatrix.common.jdbc.metadata.Column
Direct Known Subclasses:
IndexColumn, ProcedureColumn

public class Column
extends JDBCObject


Field Summary
 
Fields inherited from class com.metamatrix.common.jdbc.metadata.JDBCObject
DELIMITER
 
Constructor Summary
Column()
           
Column(java.lang.String name)
           
Column(java.lang.String name, int sqlType)
           
 
Method Summary
 boolean getAutoIncremented()
          Gets the autoIncremented.
 int getCharOctetLength()
           
 java.lang.String getClassMapping()
           
 ColumnType getColumnType()
          Gets the columnType.
 int getDataType()
          Returns the JDBC sql data type
 java.lang.String getDataTypeName()
           
 int getDecimalDigits()
           
 java.lang.String getDefaultValue()
           
 java.lang.String getLabel()
           
 Nullability getNullability()
           
 int getPosition()
           
 int getRadix()
           
 java.lang.String getRemarks()
           
 int getSize()
           
 boolean hasDefaultValue(java.lang.String defaultValue)
           
 void setAutoIncremented(boolean autoIncremented)
          Sets the autoIncremented.
 void setCharOctetLength(int charOctetLength)
           
 void setClassMapping(java.lang.String className)
           
 void setColumnType(ColumnType columnType)
          Sets the columnType.
 void setDataType(int dataType)
          Sets the sqlType
 void setDataTypeName(java.lang.String dataTypeName)
           
 void setDecimalDigits(int decimalDigits)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setLabel(java.lang.String label)
           
 void setNullability(Nullability nullability)
           
 void setPosition(int position)
           
 void setRadix(int radix)
           
 void setRemarks(java.lang.String remarks)
           
 void setSize(int size)
           
 
Methods inherited from class com.metamatrix.common.jdbc.metadata.JDBCObject
addFullName, getFullName, getFullName, getName, getOriginalNameNull, getOwner, getProperties, getProperty, hasName, hasOwner, hasProperties, isMarked, lookupJDBCObject, print, print, removeProperty, setMarked, setName, setOriginalNameNull, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Column

public Column()

Column

public Column(java.lang.String name)

Column

public Column(java.lang.String name,
              int sqlType)
Method Detail

getDataType

public int getDataType()
Returns the JDBC sql data type

Returns:
Returns an int
See Also:
Types

setDataType

public void setDataType(int dataType)
Sets the sqlType

Parameters:
sqlType - The sqlType to set
See Also:
Types

getDataTypeName

public java.lang.String getDataTypeName()

setDataTypeName

public void setDataTypeName(java.lang.String dataTypeName)

getSize

public int getSize()

setSize

public void setSize(int size)

getDecimalDigits

public int getDecimalDigits()

setDecimalDigits

public void setDecimalDigits(int decimalDigits)

getRadix

public int getRadix()

setRadix

public void setRadix(int radix)

getRemarks

public java.lang.String getRemarks()

setRemarks

public void setRemarks(java.lang.String remarks)

getDefaultValue

public java.lang.String getDefaultValue()

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)

hasDefaultValue

public boolean hasDefaultValue(java.lang.String defaultValue)

getCharOctetLength

public int getCharOctetLength()

setCharOctetLength

public void setCharOctetLength(int charOctetLength)

getPosition

public int getPosition()

setPosition

public void setPosition(int position)

getNullability

public Nullability getNullability()

setNullability

public void setNullability(Nullability nullability)

setClassMapping

public void setClassMapping(java.lang.String className)

getClassMapping

public java.lang.String getClassMapping()

setLabel

public void setLabel(java.lang.String label)

getLabel

public java.lang.String getLabel()

getColumnType

public ColumnType getColumnType()
Gets the columnType.

Returns:
Returns a ColumnType

setColumnType

public void setColumnType(ColumnType columnType)
Sets the columnType.

Parameters:
columnType - The columnType to set

getAutoIncremented

public boolean getAutoIncremented()
Gets the autoIncremented.

Returns:
Returns a boolean

setAutoIncremented

public void setAutoIncremented(boolean autoIncremented)
Sets the autoIncremented.

Parameters:
autoIncremented - The autoIncremented to set


Copyright © 2009. All Rights Reserved.