org.alfresco.util.schemacomp.model
Class PrimaryKey
java.lang.Object
org.alfresco.util.schemacomp.model.AbstractDbObject
org.alfresco.util.schemacomp.model.PrimaryKey
- All Implemented Interfaces:
- DbObject
public class PrimaryKey
- extends AbstractDbObject
Primary key on a table.
|
Constructor Summary |
PrimaryKey(java.lang.String name)
|
PrimaryKey(Table table,
java.lang.String name,
java.util.List columnNames,
java.util.List columnOrders)
Constructor |
| Methods inherited from class org.alfresco.util.schemacomp.model.AbstractDbObject |
diff, getName, getNameStrength, getParent, getValidators, sameAs, setComparisonUtils, setName, setNameStrength, setParent, setValidators, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PrimaryKey
public PrimaryKey(java.lang.String name)
PrimaryKey
public PrimaryKey(Table table,
java.lang.String name,
java.util.List columnNames,
java.util.List columnOrders)
- Constructor
- Parameters:
table - the parent tablename - columnNames -
getColumnNames
public java.util.List getColumnNames()
- Returns:
- the columnNames
setColumnNames
public void setColumnNames(java.util.List columnNames)
- Parameters:
columnNames - the columnNames to set
getColumnOrders
public java.util.List getColumnOrders()
- Returns:
- the columnOrders
setColumnOrders
public void setColumnOrders(java.util.List columnOrders)
- Parameters:
columnOrders - the columnOrders to set
hashCode
public int hashCode()
- Overrides:
hashCode in class AbstractDbObject
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class AbstractDbObject
doDiff
protected void doDiff(DbObject right,
DiffContext ctx,
Result.Strength strength)
- Description copied from class:
AbstractDbObject
- Override this method to provide subclass specific diffing logic.
- Overrides:
doDiff in class AbstractDbObject
accept
public void accept(DbObjectVisitor visitor)
- Description copied from interface:
DbObject
- Allows a visitor to be invoked against this DbObject. Implementations should ensure that child
objects are visited first (by calling accept on them) before invoking the visitor on itself.
getTypeName
public java.lang.String getTypeName()
- Description copied from interface:
DbObject
- Type name, e.g. "column", "foreign key"
- Specified by:
getTypeName in interface DbObject- Overrides:
getTypeName in class AbstractDbObject
- Returns:
- String
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.