Record Class SchemaHelper.ColumnVerifyResult
java.lang.Object
java.lang.Record
cool.scx.jdbc.SchemaHelper.ColumnVerifyResult
- Enclosing class:
SchemaHelper
public static record SchemaHelper.ColumnVerifyResult(boolean needChangeDataType, boolean needChangeIndex, boolean needChangeDefaultValue)
extends Record
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionColumnVerifyResult(boolean needChangeDataType, boolean needChangeIndex, boolean needChangeDefaultValue) Creates an instance of aColumnVerifyResultrecord 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.booleanReturns the value of theneedChangeDataTyperecord component.booleanReturns the value of theneedChangeDefaultValuerecord component.booleanReturns the value of theneedChangeIndexrecord component.booleannotEmpty()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColumnVerifyResult
public ColumnVerifyResult(boolean needChangeDataType, boolean needChangeIndex, boolean needChangeDefaultValue) Creates an instance of aColumnVerifyResultrecord class.- Parameters:
needChangeDataType- the value for theneedChangeDataTyperecord componentneedChangeIndex- the value for theneedChangeIndexrecord componentneedChangeDefaultValue- the value for theneedChangeDefaultValuerecord component
-
-
Method Details
-
notEmpty
public boolean notEmpty() -
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
needChangeDataType
public boolean needChangeDataType()Returns the value of theneedChangeDataTyperecord component.- Returns:
- the value of the
needChangeDataTyperecord component
-
needChangeIndex
public boolean needChangeIndex()Returns the value of theneedChangeIndexrecord component.- Returns:
- the value of the
needChangeIndexrecord component
-
needChangeDefaultValue
public boolean needChangeDefaultValue()Returns the value of theneedChangeDefaultValuerecord component.- Returns:
- the value of the
needChangeDefaultValuerecord component
-