Record Class DatabaseMigration.ColumnDef
java.lang.Object
java.lang.Record
net.chen.legacyLand.database.DatabaseMigration.ColumnDef
- Record Components:
type- 数据库无关的类型名(如 TEXT/VARCHAR, INTEGER, REAL/DOUBLE, BIGINT)defaultValue- 可为 null 表示无默认值
- Enclosing class:
DatabaseMigration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ColumnDef
-
ColumnDef
Creates an instance of aColumnDefrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentnullable- the value for thenullablerecord componentdefaultValue- the value for thedefaultValuerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
-
nullable
public boolean nullable()Returns the value of thenullablerecord component.- Returns:
- the value of the
nullablerecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-