public class DBColumn extends AbstractDBTableComponent
| Modifier and Type | Field and Description |
|---|---|
protected String |
defaultValue |
protected Integer |
fractionDigits |
protected DBNotNullConstraint |
notNullConstraint |
protected Integer |
size |
protected DBDataType |
type |
protected List<DBUniqueConstraint> |
ukConstraints |
protected boolean |
versionColumn |
doc, name, objectType, owner| Constructor and Description |
|---|
DBColumn(String name,
DBTable table,
DBDataType type) |
DBColumn(String name,
DBTable table,
DBDataType type,
Integer size) |
DBColumn(String name,
DBTable table,
DBDataType type,
Integer size,
Integer fractionDigits) |
DBColumn(String name,
DBTable table,
int jdbcType,
String typeAndSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUkConstraint(DBUniqueConstraint constraint) |
boolean |
equals(Object obj) |
String |
getDefaultValue() |
DBForeignKeyConstraint |
getForeignKeyConstraint() |
Integer |
getFractionDigits() |
DBNotNullConstraint |
getNotNullConstraint() |
Integer |
getSize() |
DBDataType |
getType() |
List<DBUniqueConstraint> |
getUkConstraints() |
int |
hashCode() |
boolean |
isEquivalent(DBObject other) |
boolean |
isIdentical(DBObject other)
tells if an object has the same definition as another one.
|
boolean |
isIntegerType() |
boolean |
isNullable() |
boolean |
isPKComponent() |
boolean |
isUnique() |
boolean |
isVersionColumn() |
void |
setDefaultValue(String defaultValue) |
void |
setFractionDigits(Integer fractionDigits) |
void |
setNotNullConstraint(DBNotNullConstraint notNullConstraint) |
void |
setNullable(boolean nullable) |
void |
setSize(Integer size) |
void |
setType(DBDataType type) |
void |
setVersionColumn(boolean versionColumn) |
String |
toString() |
getTable, setTablegetDoc, getName, getObjectType, getOwner, setDoc, setName, setOwnerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDoc, getObjectType, getOwner, setOwnerprotected DBDataType type
protected Integer size
protected Integer fractionDigits
protected String defaultValue
protected boolean versionColumn
protected List<DBUniqueConstraint> ukConstraints
protected DBNotNullConstraint notNullConstraint
public DBColumn(String name, DBTable table, DBDataType type)
public DBColumn(String name, DBTable table, DBDataType type, Integer size)
public DBColumn(String name, DBTable table, DBDataType type, Integer size, Integer fractionDigits)
public DBDataType getType()
public void setType(DBDataType type)
public Integer getSize()
public void setSize(Integer size)
public Integer getFractionDigits()
public void setFractionDigits(Integer fractionDigits)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public boolean isUnique()
public boolean isPKComponent()
public List<DBUniqueConstraint> getUkConstraints()
public void addUkConstraint(DBUniqueConstraint constraint)
public DBNotNullConstraint getNotNullConstraint()
public void setNotNullConstraint(DBNotNullConstraint notNullConstraint)
public boolean isNullable()
public void setNullable(boolean nullable)
public boolean isVersionColumn()
public void setVersionColumn(boolean versionColumn)
public boolean isIntegerType()
public DBForeignKeyConstraint getForeignKeyConstraint()
public boolean equals(Object obj)
equals in class AbstractDBObjectpublic int hashCode()
hashCode in class AbstractDBObjectpublic String toString()
toString in class AbstractDBObjectpublic boolean isIdentical(DBObject other)
DBObjectpublic boolean isEquivalent(DBObject other)
Copyright © 2006–2014 Volker Bergmann. All rights reserved.