Package org.opennms.core.db.install
Class Column
- java.lang.Object
-
- org.opennms.core.db.install.Column
-
public class Column extends Object
-
-
Constructor Summary
Constructors Constructor Description Column()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
columnTypeSize(String type)
columnTypeSizeboolean
equals(Object obj)
int
getColumnSqlType()
getColumnSqlTypeString
getDefaultValue()
getDefaultValueString
getName()
getNameint
getSize()
getSizeString
getType()
getTypeboolean
hasDefaultValue()
hasDefaultValueint
hashCode()
hashCodeboolean
isNotNull()
isNotNullstatic String
normalizeColumnType(String column, boolean hasSize)
normalizeColumnTypevoid
parse(String column)
parsevoid
parseColumnType(String columnType)
parseColumnTypevoid
setDefaultValue(String defaultValue)
setDefaultValuevoid
setName(String name)
setNamevoid
setNotNull(boolean notNull)
setNotNullvoid
setSize(int size)
setSizevoid
setType(String type)
setTypeString
toString()
toString
-
-
-
Method Detail
-
toString
public String toString()
toString
-
isNotNull
public boolean isNotNull()
isNotNull
- Returns:
- a boolean.
-
setNotNull
public void setNotNull(boolean notNull)
setNotNull
- Parameters:
notNull
- a boolean.
-
getSize
public int getSize()
getSize
- Returns:
- a int.
-
setSize
public void setSize(int size)
setSize
- Parameters:
size
- a int.
-
hasDefaultValue
public boolean hasDefaultValue()
hasDefaultValue
- Returns:
- a boolean.
-
setDefaultValue
public void setDefaultValue(String defaultValue)
setDefaultValue
- Parameters:
defaultValue
- aString
object.
-
getColumnSqlType
public int getColumnSqlType() throws Exception
getColumnSqlType
- Returns:
- a int.
- Throws:
Exception
- if any.
-
normalizeColumnType
public static String normalizeColumnType(String column, boolean hasSize) throws Exception
normalizeColumnType
-
-