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(String a,
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 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.Exception
- On errorAQDifferences compareText(String a, String b) throws 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.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.