public class Column extends Object implements Serializable
Constructor and Description |
---|
Column(String name,
int sqlType)
Creates a new column with the given name and SQL type.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue() |
String |
getName() |
String |
getQuotedName(Dialect dialect) |
int |
getSqlType() |
String |
getSqlTypeString(Dialect dialect) |
boolean |
isNullable() |
boolean |
isPrimary() |
void |
setDefaultValue(String defaultValue) |
void |
setNullable(boolean nullable) |
void |
setPrimary(boolean primary) |
String |
toString() |
public Column(String name, int sqlType)
name
- the column name.sqlType
- the SQL type.public String getName()
public int getSqlType()
public void setPrimary(boolean primary)
public boolean isPrimary()
public void setNullable(boolean nullable)
public boolean isNullable()
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
Copyright © 2011 Nuxeo SA. All Rights Reserved.