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').
|
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.
|
String |
getTypeName()
Type name, e.g.
|
List<DbValidator> |
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
DbObject s 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(List<DbValidator> validators)
Set/override the validators associated with this database object.
|
boolean sameAs(DbObject other)
DbObject
s 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
- DbObjectString 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
- DbObjectVisitorDbObject getParent()
void setParent(DbObject parent)
parent
- DbObjectgetParent()
List<DbValidator> getValidators()
DbValidator
void setValidators(List<DbValidator> validators)
boolean hasValidators()
boolean hasObjectLevelValidator()
String getTypeName()
Copyright © 2005–2017 Alfresco Software. All rights reserved.