org.jboss.test.cmp2.dbschema.util
Class Column

java.lang.Object
  extended byorg.jboss.test.cmp2.dbschema.util.Column

public final class Column
extends java.lang.Object


Constructor Summary
Column(java.sql.ResultSet rs)
           
 
Method Summary
 void assertDataType(int dataType)
           
 void assertName(java.lang.String name)
           
 void assertNotNull(boolean notNullable)
           
 void assertTypeNotNull(int dataType, boolean notNull)
           
 java.lang.String getColumnDef()
           
 int getColumnSize()
           
 short getDataType()
           
 java.lang.String getName()
           
 java.lang.String getTableName()
           
 java.lang.String getTypeName()
           
 boolean isNotNullable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Column

public Column(java.sql.ResultSet rs)
       throws java.sql.SQLException
Method Detail

getTableName

public java.lang.String getTableName()

getName

public java.lang.String getName()

getDataType

public short getDataType()

getTypeName

public java.lang.String getTypeName()

getColumnSize

public int getColumnSize()

isNotNullable

public boolean isNotNullable()

getColumnDef

public java.lang.String getColumnDef()

assertName

public void assertName(java.lang.String name)
                throws java.lang.Exception
Throws:
java.lang.Exception

assertDataType

public void assertDataType(int dataType)
                    throws java.lang.Exception
Throws:
java.lang.Exception

assertNotNull

public void assertNotNull(boolean notNullable)
                   throws java.lang.Exception
Throws:
java.lang.Exception

assertTypeNotNull

public void assertTypeNotNull(int dataType,
                              boolean notNull)
                       throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()