public class Column extends AbstractDbObject
comparisonUtils
Constructor and Description |
---|
Column(String name) |
Column(Table table,
String name,
String type,
boolean nullable)
Construct a Column.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(DbObjectVisitor visitor)
Allows a visitor to be invoked against this DbObject.
|
protected void |
doDiff(DbObject right,
DiffContext ctx)
Override this method to provide subclass specific diffing logic.
|
boolean |
equals(Object obj) |
int |
getOrder() |
String |
getType() |
int |
hashCode() |
boolean |
isAutoIncrement() |
boolean |
isCompareOrder() |
boolean |
isNullable() |
void |
setAutoIncrement(boolean autoIncrement) |
void |
setCompareOrder(boolean compareOrder) |
void |
setNullable(boolean nullable) |
void |
setOrder(int order) |
void |
setType(String type) |
diff, getName, getParent, getTypeName, getValidators, hasObjectLevelValidator, hasValidators, sameAs, setComparisonUtils, setName, setParent, setValidators, toString
public Column(String name)
public String getType()
public void setType(String type)
type
- the type to setpublic boolean isNullable()
public void setNullable(boolean nullable)
nullable
- the nullable to setpublic int getOrder()
public void setOrder(int order)
order
- the order to setpublic boolean isAutoIncrement()
public void setAutoIncrement(boolean autoIncrement)
autoIncrement
- whether this column has the auto-increment flag set.public boolean isCompareOrder()
public void setCompareOrder(boolean compareOrder)
compareOrder
- the compareOrder to setpublic int hashCode()
hashCode
in class AbstractDbObject
public boolean equals(Object obj)
equals
in class AbstractDbObject
protected void doDiff(DbObject right, DiffContext ctx)
AbstractDbObject
doDiff
in class AbstractDbObject
right
- DbObjectctx
- DiffContextpublic void accept(DbObjectVisitor visitor)
DbObject
visitor
- DbObjectVisitorCopyright © 2005–2017 Alfresco Software. All rights reserved.