Package org.pgcodekeeper.core.schema
Class PgOverride
java.lang.Object
org.pgcodekeeper.core.schema.PgOverride
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 Summary
ConstructorsConstructorDescriptionPgOverride(PgStatement newStatement, PgStatement oldStatement) Creates a new override instance. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of the overridden statement.Gets the location information for the new statement.Gets the file path where the new statement is defined.Gets the location information for the old statement.Gets the file path where the old statement is defined.getType()Gets the type of the overridden statement.
-
Constructor Details
-
PgOverride
Creates a new override instance.- Parameters:
newStatement- the new statement that overrides the old oneoldStatement- the original statement being overridden
-
-
Method Details
-
getOldStatement
-
getNewStatement
-
getName
Gets the name of the overridden statement.- Returns:
- the statement name
-
getType
Gets the type of the overridden statement.- Returns:
- the statement type
-
getNewPath
Gets the file path where the new statement is defined.- Returns:
- the file path of the new statement
-
getOldPath
Gets the file path where the old statement is defined.- Returns:
- the file path of the old statement
-
getNewLocation
Gets the location information for the new statement.- Returns:
- location of the new statement
-
getOldLocation
Gets the location information for the old statement.- Returns:
- location of the old statement
-