OpenAPI 1.0

com.aquafold.openapi.compare
Interface AQSchemaComparator


public interface AQSchemaComparator

This interface facilitates bulk comparison of schema objects.


Method Summary
 void addArrayLeft(AQServerObject[] serverObjects)
          Adds an array of server objects to the left side.
 void addArrayRight(AQServerObject[] serverObjects)
          Adds an array of server objects to the right side.
 void addLeft(AQServerObject serverObject)
          Adds an object to the left side.
 void addRight(AQServerObject serverObject)
          Adds an object to the right side.
 AQSchemaDifferences compare()
          Performs comparison of CREATE DDL scripts.
 AQCompareOptions getCompareOptions()
          Returns a mutable object which allows for setting comparison options.
 AQScriptOptions getOptions()
          Returns the script options object which controls generation of CREATE scripts used in the comparison process.
 void setQualifySchema(boolean qualifySchema)
          Defines whether the object schema name is taken into account when considering objects that have the same name but different schema.
 

Method Detail

getOptions

AQScriptOptions getOptions()
Returns the script options object which controls generation of CREATE scripts used in the comparison process.


addLeft

void addLeft(AQServerObject serverObject)
Adds an object to the left side.

Parameters:
serverObject -

addArrayLeft

void addArrayLeft(AQServerObject[] serverObjects)
Adds an array of server objects to the left side.

Parameters:
serverObjects -

addRight

void addRight(AQServerObject serverObject)
Adds an object to the right side.

Parameters:
serverObject -

addArrayRight

void addArrayRight(AQServerObject[] serverObjects)
Adds an array of server objects to the right side.

Parameters:
serverObjects -

compare

AQSchemaDifferences compare()
Performs comparison of CREATE DDL scripts.


setQualifySchema

void setQualifySchema(boolean qualifySchema)
Defines whether the object schema name is taken into account when considering objects that have the same name but different schema.

Parameters:
qualifySchema - If value is set to true, then object with the same name but different schemas are to be considered different. Default value is false.

getCompareOptions

AQCompareOptions getCompareOptions()
Returns a mutable object which allows for setting comparison options. The options must be set prior to the first comparison operation.


OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.