net.aditsu.depeche
public class Column extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
Returns the class name for this column's values, or null if not known
|
Class<?> |
getColumnClass()
Returns the class used for this column's values
|
String |
getComment()
Returns this column's comment
|
int |
getDecimals()
Returns this column's scale, i.e.
|
String |
getDefValue()
Returns this column's default value as a string
|
FKey |
getFKey()
Returns the foreign key that contains this column (if it exists and is unique)
|
String |
getLabel()
Returns this column's label
|
String |
getName()
Returns this column's name (use
getLabel() for aliases) |
int |
getNullable()
Returns this column's NULL setting; 0 = NOT NULL, 1 = nullable, 2 = unknown
|
int |
getSize()
Returns this column's size (e.g.
|
int |
getSqlType()
Returns this column's SQL type
|
ColumnType |
getType()
Returns this column's type (as a
ColumnType value) |
String |
getTypeName()
Returns this column's type name
|
boolean |
isAutoIncrement()
Returns true if this is an auto-incrementing column
|
boolean |
isNotNull()
Returns true if this column is defined as NOT NULL
|
void |
setType(ColumnType type) |
String |
toString() |
public boolean isNotNull()
public String getName()
getLabel() for aliases)public String getLabel()
public int getSqlType()
Typespublic String getTypeName()
public ColumnType getType()
ColumnType value)public int getSize()
public int getDecimals()
public int getNullable()
public String getComment()
public String getDefValue()
public boolean isAutoIncrement()
public FKey getFKey()
public String getClassName()
public Class<?> getColumnClass()
public void setType(ColumnType type)