Class VersionedSchemaObject

  • Direct Known Subclasses:
    Table.Builder

    public class VersionedSchemaObject
    extends Object
    Base class for the schema object builders which also carry a version (change) number
    • Field Detail

      • version

        protected int version
    • Constructor Detail

      • VersionedSchemaObject

        public VersionedSchemaObject​(String schemaName,
                                     String objectName)
    • Method Detail

      • setVersionValue

        protected void setVersionValue​(int v)
        Setter to override the default version number for this object (usually used for alter statements, or new tables and indexes)
        Parameters:
        v -
      • getVersion

        public int getVersion()
        Getter for the object's version (change) number
        Returns:
      • getSchemaName

        public String getSchemaName()
        Getter for the object's schema name
        Returns:
      • getObjectName

        public String getObjectName()
        Getter for the object's name
        Returns:
      • getQualifiedName

        public String getQualifiedName()
      • addMigration

        public VersionedSchemaObject addMigration​(Migration... migration)
        Add migration steps to perform to upgrade from previous versions of this object
        Parameters:
        migration -
        Returns: