Package com.aquafold.openapi.compare
Interface AQSchemaCompareItem
-
public interface AQSchemaCompareItemThis object represents one item in the schema comparison results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDiffCount()Returns the number of lines by which two CREATE scripts are different.javax.swing.ImageIcongetIcon()Returns the icon corresponding to the object type.AQServerObjectgetLeftObject()Returns left side schema object, or null for "added" items.java.lang.StringgetLeftScript()Returns CREATE script for the left side schema object, or null for "added" items.java.lang.StringgetName()Returns the item name.AQServerObjectgetRightObject()Returns right side schema object, or null for "deleted" items.java.lang.StringgetRightScript()Returns CREATE script for the right side schema object, or null for "deleted" items.java.lang.StringgetTypeName()Returns the name of the underlying object type.booleanisAdded()Returns true if the right side was added.booleanisDeleted()Returns true if the right side was deleted.booleanisModified()Returns true if the right side item differs from the left side item.booleanisUnchanged()Returns true if the right item is considered equal to the left side according to the comparison criteria.
-
-
-
Method Detail
-
isAdded
boolean isAdded()
Returns true if the right side was added.- Returns:
- TRUE if it is added
-
isDeleted
boolean isDeleted()
Returns true if the right side was deleted.- Returns:
- TRUE if it is deleted
-
isModified
boolean isModified()
Returns true if the right side item differs from the left side item.- Returns:
- TRUE if it is modified
-
isUnchanged
boolean isUnchanged()
Returns true if the right item is considered equal to the left side according to the comparison criteria.- Returns:
- TRUE if it is unchanged
-
getLeftObject
AQServerObject getLeftObject()
Returns left side schema object, or null for "added" items.- Returns:
- the left object
-
getRightObject
AQServerObject getRightObject()
Returns right side schema object, or null for "deleted" items.- Returns:
- the right object
-
getLeftScript
java.lang.String getLeftScript()
Returns CREATE script for the left side schema object, or null for "added" items.- Returns:
- the left script
-
getRightScript
java.lang.String getRightScript()
Returns CREATE script for the right side schema object, or null for "deleted" items.- Returns:
- the right script
-
getTypeName
java.lang.String getTypeName()
Returns the name of the underlying object type.- Returns:
- the type name
-
getIcon
javax.swing.ImageIcon getIcon()
Returns the icon corresponding to the object type.- Returns:
- the icon
-
getName
java.lang.String getName()
Returns the item name.- Returns:
- the name
-
getDiffCount
int getDiffCount()
Returns the number of lines by which two CREATE scripts are different.- Returns:
- the diff count
-
-