Package app.ductape.sdk.database.types
Record Class SchemaTypes.AlterTableOperation
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.SchemaTypes.AlterTableOperation
- Enclosing class:
- SchemaTypes
public static record SchemaTypes.AlterTableOperation(String type, SchemaTypes.ColumnDefinition column, String columnName, String oldName, String newName, SchemaTypes.ConstraintDefinition constraint, String constraintName)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAlterTableOperation(String type, SchemaTypes.ColumnDefinition column, String columnName, String oldName, String newName, SchemaTypes.ConstraintDefinition constraint, String constraintName) Creates an instance of aAlterTableOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumn()Returns the value of thecolumnrecord component.Returns the value of thecolumnNamerecord component.Returns the value of theconstraintrecord component.Returns the value of theconstraintNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newName()Returns the value of thenewNamerecord component.oldName()Returns the value of theoldNamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AlterTableOperation
public AlterTableOperation(String type, SchemaTypes.ColumnDefinition column, String columnName, String oldName, String newName, SchemaTypes.ConstraintDefinition constraint, String constraintName) Creates an instance of aAlterTableOperationrecord class.- Parameters:
type- the value for thetyperecord componentcolumn- the value for thecolumnrecord componentcolumnName- the value for thecolumnNamerecord componentoldName- the value for theoldNamerecord componentnewName- the value for thenewNamerecord componentconstraint- the value for theconstraintrecord componentconstraintName- the value for theconstraintNamerecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
oldName
Returns the value of theoldNamerecord component.- Returns:
- the value of the
oldNamerecord component
-
newName
Returns the value of thenewNamerecord component.- Returns:
- the value of the
newNamerecord component
-
constraint
Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-
constraintName
Returns the value of theconstraintNamerecord component.- Returns:
- the value of the
constraintNamerecord component
-