public interface AQComparator
Please refer to AQDifferences
for more details on the generated result.
Modifier and Type | Method and Description |
---|---|
AQDifferences |
compare(AQServerObject a,
AQServerObject b)
This method compares CREATE scripts of two server objects.
|
AQDifferences |
compareText(java.lang.String a,
java.lang.String b)
This method compares two text strings line-by-line, based on configured settings.
|
AQCompareOptions |
getCompareOptions()
Returns a mutable object which allows for setting comparison options.
|
void |
setIgnoreCase(boolean on)
A shortcut method to configure the comparator to ignore case.
|
void |
setIgnoreSpaces(boolean on)
A shortcut method to configure the comparator to ignore:
all spaces
blank lines
leading
trailing
spaces between keywords, but not the whitespace itself (when comparing AQServerObjects).
Please use getCompareOptions() method for finer control over comparison options.
|
AQDifferences compare(AQServerObject a, AQServerObject b) throws java.lang.Exception
The following server objects are currently supported: AQTable, AQConstraint, AQDatabase, AQArrayType, AQCluster, AQMatView, AQObjectType, AQPackage, AQPackageBody, AQProcedure, AQSchema, AQSequence, AQTableType, AQTrigger, AQDatabaseLink, AQDataType, AQDefault, AQFunction, AQIndex, AQRole, AQRule, AQSynonym, AQUser, AQView, AQEvent, AQNickname
a
- First server object to compare; required.b
- Second server object to compare; required.java.lang.Exception
- On errorAQDifferences compareText(java.lang.String a, java.lang.String b) throws java.lang.Exception
a
- First text string to compare; required. Empty string is acceptable; null is not.b
- Second text string to compare; required. Empty string is acceptable; null is not.java.lang.Exception
- On errorvoid setIgnoreSpaces(boolean on)
on
- When set, the comparator will ignore spaces.void setIgnoreCase(boolean on)
on
- When set, the comparator will ignore case.AQCompareOptions getCompareOptions()
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.