Record Class DbObject
java.lang.Object
java.lang.Record
org.pgcodekeeper.core.model.graph.DbObject
- Record Components:
oldStatement- the statement from the old database schemanewStatement- the statement from the new database schema
Record representing a database object pair for comparison operations.
Contains both old and new versions of a database statement for diff analysis.
-
Constructor Summary
ConstructorsConstructorDescriptionDbObject(IStatement oldStatement, IStatement newStatement) Creates an instance of aDbObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenewStatementrecord component.Returns the value of theoldStatementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DbObject
Creates an instance of aDbObjectrecord class.- Parameters:
oldStatement- the value for theoldStatementrecord componentnewStatement- the value for thenewStatementrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
oldStatement
Returns the value of theoldStatementrecord component.- Returns:
- the value of the
oldStatementrecord component
-
newStatement
Returns the value of thenewStatementrecord component.- Returns:
- the value of the
newStatementrecord component
-