Class PgOverride

java.lang.Object
org.pgcodekeeper.core.schema.PgOverride

public class PgOverride extends Object
Represents an override of a database statement when loading from multiple sources. Contains both the original statement and the new statement that overrides it, along with location information for tracking where each version came from.
  • Constructor Details

    • PgOverride

      public PgOverride(PgStatement newStatement, PgStatement oldStatement)
      Creates a new override instance.
      Parameters:
      newStatement - the new statement that overrides the old one
      oldStatement - the original statement being overridden
  • Method Details

    • getOldStatement

      public PgStatement getOldStatement()
    • getNewStatement

      public PgStatement getNewStatement()
    • getName

      public String getName()
      Gets the name of the overridden statement.
      Returns:
      the statement name
    • getType

      public DbObjType getType()
      Gets the type of the overridden statement.
      Returns:
      the statement type
    • getNewPath

      public String getNewPath()
      Gets the file path where the new statement is defined.
      Returns:
      the file path of the new statement
    • getOldPath

      public String getOldPath()
      Gets the file path where the old statement is defined.
      Returns:
      the file path of the old statement
    • getNewLocation

      public PgObjLocation getNewLocation()
      Gets the location information for the new statement.
      Returns:
      location of the new statement
    • getOldLocation

      public PgObjLocation getOldLocation()
      Gets the location information for the old statement.
      Returns:
      location of the old statement