|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.dao.db.Column
public class Column
| Constructor Summary | |
|---|---|
Column()
|
|
| Method Summary | |
|---|---|
int |
columnTypeSize(String type)
columnTypeSize |
boolean |
equals(Object obj)
|
int |
getColumnSqlType()
getColumnSqlType |
String |
getDefaultValue()
getDefaultValue |
String |
getName()
getName |
int |
getSize()
getSize |
String |
getType()
getType |
boolean |
hasDefaultValue()
hasDefaultValue |
int |
hashCode()
hashCode |
boolean |
isNotNull()
isNotNull |
static String |
normalizeColumnType(String column,
boolean hasSize)
normalizeColumnType |
void |
parse(String column)
parse |
void |
parseColumnType(String columnType)
parseColumnType |
void |
setDefaultValue(String defaultValue)
setDefaultValue |
void |
setName(String name)
setName |
void |
setNotNull(boolean notNull)
setNotNull |
void |
setSize(int size)
setSize |
void |
setType(String type)
setType |
String |
toString()
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Column()
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode
hashCode in class Objectpublic String toString()
toString
toString in class ObjectString object.public String getName()
getName
String object.public void setName(String name)
setName
name - a String object.public boolean isNotNull()
isNotNull
public void setNotNull(boolean notNull)
setNotNull
notNull - a boolean.public int getSize()
getSize
public void setSize(int size)
setSize
size - a int.public String getType()
getType
String object.public void setType(String type)
setType
type - a String object.public String getDefaultValue()
getDefaultValue
String object.public boolean hasDefaultValue()
hasDefaultValue
public void setDefaultValue(String defaultValue)
setDefaultValue
defaultValue - a String object.
public void parse(String column)
throws Exception
parse
column - a String object.
Exception - if any.
public void parseColumnType(String columnType)
throws Exception
parseColumnType
columnType - a String object.
Exception - if any.
public int getColumnSqlType()
throws Exception
getColumnSqlType
Exception - if any.
public static String normalizeColumnType(String column,
boolean hasSize)
throws Exception
normalizeColumnType
column - a String object.hasSize - a boolean.
String object.
Exception - if any.
public int columnTypeSize(String type)
throws Exception
columnTypeSize
type - a String object.
Exception - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||