public class Column extends Object
Constructor and Description |
---|
Column() |
Modifier and Type | Method and Description |
---|---|
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
|
public String toString()
toString
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 boolean hasDefaultValue()
hasDefaultValue
public void setDefaultValue(String defaultValue)
setDefaultValue
defaultValue
- a String
object.public int getColumnSqlType() throws Exception
getColumnSqlType
Exception
- if any.public static String normalizeColumnType(String column, boolean hasSize) throws Exception
normalizeColumnType
Copyright © 2020. All rights reserved.