org.opennms.netmgt.dao.db
Class Column
java.lang.Object
org.opennms.netmgt.dao.db.Column
public class Column
- extends Object
Column
public Column()
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.