public interface DbObject
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DbObjectVisitor visitor)
Allows a visitor to be invoked against this DbObject.
|
void |
diff(DbObject right,
DiffContext ctx)
Generate a report of differences between this object ('left') and another object ('right').
|
java.lang.String |
getName()
All items can be asked for their name, but it may be null.
|
DbObject |
getParent()
Get the parent object for which this object is a child.
|
java.lang.String |
getTypeName()
Type name, e.g.
|
java.util.List |
getValidators()
Retrieve the list of validators associated with this database object.
|
boolean |
hasObjectLevelValidator()
Is there at least one validator that assumes object-level validation
that removes the requirement for reporting of differences for this object?
|
boolean |
hasValidators()
Does the database object have any validators associated with it?
|
boolean |
sameAs(DbObject other)
Are the two
DbObjects logically the same? For example two Index objects may have
different names, but are the same index as they both index the same columns for the same table. |
void |
setParent(DbObject parent)
Sets the parent object.
|
void |
setValidators(java.util.List validators)
Set/override the validators associated with this database object.
|
boolean sameAs(DbObject other)
DbObjects logically the same? For example two Index objects may have
different names, but are the same index as they both index the same columns for the same table.
If two objects a and b have the same logical identity, it does not mean that a.equals(b) == true.
The two objects may well have differences and will be flagged as such by the schema comparison tool. When
a.sameAs(b) == true it makes it easier to show the differences as related, i.e. a and b are
different rather than, a is only in the 'left' tree and b is only in the 'right' tree.
other - java.lang.String getName()
void diff(DbObject right, DiffContext ctx)
Results
object passed in to this method.right - The object to compare against.ctx - The DiffContextvoid accept(DbObjectVisitor visitor)
visitor - DbObject getParent()
void setParent(DbObject parent)
parent - DbObject.getParent()java.util.List getValidators()
DbValidatorvoid setValidators(java.util.List validators)
validators - boolean hasValidators()
boolean hasObjectLevelValidator()
java.lang.String getTypeName()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.