Package org.pgcodekeeper.core.schema
Interface IOptionContainer
- All Superinterfaces:
IStatement
- All Known Subinterfaces:
ISimpleOptionContainer,PgForeignOptionContainer
- All Known Implementing Classes:
AbstractForeignTable,AbstractIndex,AbstractPgTable,AbstractPgView,AbstractRegularTable,AbstractTable,ChIndex,ChTable,ChTableLog,GpExternalTable,MaterializedPgView,MsConstraintPk,MsIndex,MsTable,PartitionForeignPgTable,PartitionGpTable,PartitionPgTable,PgColumn,PgForeignDataWrapper,PgFtsDictionary,PgIndex,PgServer,PgUserMapping,PgView,SimpleForeignPgTable,SimplePgTable,TypedPgTable
Interface for database objects that support storage and configuration options.
Provides functionality for managing key-value option pairs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of Greenplum-specific storage options. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an option to this container.voidcompareOptions(IOptionContainer newContainer, SQLScript script) Compares options between this container and a new container, generating SQL to update differences.Gets all options for this container.Methods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getDatabase, getName, getParent, getQualifiedName, getStatementType
-
Field Details
-
GP_OPTION_LIST
List of Greenplum-specific storage options.
-
-
Method Details
-
addOption
Adds an option to this container.- Parameters:
key- the option keyvalue- the option value
-
getOptions
Gets all options for this container.- Returns:
- a map of option keys to values
-
compareOptions
Compares options between this container and a new container, generating SQL to update differences.- Parameters:
newContainer- the new container to compare againstscript- the script to append changes to
-