org.opennms.netmgt.dao.db
Class Column

java.lang.Object
  extended by org.opennms.netmgt.dao.db.Column

public class Column
extends Object


Constructor Summary
Column()
           
 
Method Summary
 int columnTypeSize(String type)
           
 boolean equals(Object other_o)
           
 int getColumnSqlType()
           
 String getDefaultValue()
           
 String getName()
           
 int getSize()
           
 String getType()
           
 boolean hasDefaultValue()
           
 int hashCode()
           
 boolean isNotNull()
           
static String normalizeColumnType(String column, boolean hasSize)
           
 void parse(String column)
           
 void parseColumnType(String columnType)
           
 void setDefaultValue(String defaultValue)
           
 void setName(String name)
           
 void setNotNull(boolean notNull)
           
 void setSize(int size)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Column

public Column()
Method Detail

equals

public boolean equals(Object other_o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()

setName

public void setName(String name)

isNotNull

public boolean isNotNull()

setNotNull

public void setNotNull(boolean notNull)

getSize

public int getSize()

setSize

public void setSize(int size)

getType

public String getType()

setType

public void setType(String type)

getDefaultValue

public String getDefaultValue()

hasDefaultValue

public boolean hasDefaultValue()

setDefaultValue

public void setDefaultValue(String defaultValue)

parse

public void parse(String column)
           throws Exception
Throws:
Exception

parseColumnType

public void parseColumnType(String columnType)
                     throws Exception
Throws:
Exception

getColumnSqlType

public int getColumnSqlType()
                     throws Exception
Throws:
Exception

normalizeColumnType

public static String normalizeColumnType(String column,
                                         boolean hasSize)
                                  throws Exception
Throws:
Exception

columnTypeSize

public int columnTypeSize(String type)
                   throws Exception
Throws:
Exception


Copyright © 2009. All Rights Reserved.