public class Table extends AbstractDbObject
comparisonUtils| Constructor and Description |
|---|
Table(Schema parentSchema,
String name,
Collection<Column> columns,
PrimaryKey primaryKey,
Collection<ForeignKey> foreignKeys,
Collection<Index> indexes) |
Table(String name) |
Table(String name,
Collection<Column> columns,
PrimaryKey primaryKey,
Collection<ForeignKey> foreignKeys,
Collection<Index> indexes) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DbObjectVisitor visitor)
Allows a visitor to be invoked against this DbObject.
|
protected void |
doDiff(DbObject other,
DiffContext ctx)
Override this method to provide subclass specific diffing logic.
|
boolean |
equals(Object obj) |
List<Column> |
getColumns() |
List<ForeignKey> |
getForeignKeys() |
List<Index> |
getIndexes() |
PrimaryKey |
getPrimaryKey() |
int |
hashCode() |
boolean |
hasPrimaryKey() |
void |
setColumns(Collection<Column> columns) |
void |
setForeignKeys(Collection<ForeignKey> foreignKeys) |
void |
setIndexes(Collection<Index> indexes) |
void |
setPrimaryKey(PrimaryKey primaryKey) |
diff, getName, getParent, getTypeName, getValidators, hasObjectLevelValidator, hasValidators, sameAs, setComparisonUtils, setName, setParent, setValidators, toStringpublic Table(String name)
public Table(String name, Collection<Column> columns, PrimaryKey primaryKey, Collection<ForeignKey> foreignKeys, Collection<Index> indexes)
public Table(Schema parentSchema, String name, Collection<Column> columns, PrimaryKey primaryKey, Collection<ForeignKey> foreignKeys, Collection<Index> indexes)
public void setColumns(Collection<Column> columns)
columns - the columns to setpublic PrimaryKey getPrimaryKey()
public boolean hasPrimaryKey()
public void setPrimaryKey(PrimaryKey primaryKey)
primaryKey - the primaryKey to setpublic List<ForeignKey> getForeignKeys()
public void setForeignKeys(Collection<ForeignKey> foreignKeys)
foreignKeys - the foreignKeys to setpublic void setIndexes(Collection<Index> indexes)
indexes - the indexes to setpublic int hashCode()
hashCode in class AbstractDbObjectpublic boolean equals(Object obj)
equals in class AbstractDbObjectprotected void doDiff(DbObject other, DiffContext ctx)
AbstractDbObjectdoDiff in class AbstractDbObjectother - DbObjectctx - DiffContextpublic void accept(DbObjectVisitor visitor)
DbObjectvisitor - DbObjectVisitorCopyright © 2005–2018 Alfresco Software. All rights reserved.