Record Class SqlColumnMapping.ReservableOptions
java.lang.Object
java.lang.Record
io.micronaut.data.model.schema.sql.SqlColumnMapping.ReservableOptions
- Record Components:
reservable- whether the column is an Oracle reservable columncheckConstraints- generated check constraints
- Enclosing class:
SqlColumnMapping
public static record SqlColumnMapping.ReservableOptions(boolean reservable, List<SqlColumnMapping.SqlCheckConstraint> checkConstraints)
extends Record
Oracle reservable column options.
- Since:
- 4.13.0
- Author:
- radovanradic
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SqlColumnMapping.ReservableOptionsDefault non-reservable column options. -
Constructor Summary
ConstructorsConstructorDescriptionReservableOptions(boolean reservable, List<SqlColumnMapping.SqlCheckConstraint> checkConstraints) Creates an instance of aReservableOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckConstraintsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thereservablerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
Default non-reservable column options.
-
-
Constructor Details
-
ReservableOptions
public ReservableOptions(boolean reservable, List<SqlColumnMapping.SqlCheckConstraint> checkConstraints) Creates an instance of aReservableOptionsrecord class.- Parameters:
reservable- the value for thereservablerecord componentcheckConstraints- the value for thecheckConstraintsrecord 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. -
reservable
public boolean reservable()Returns the value of thereservablerecord component.- Returns:
- the value of the
reservablerecord component
-
checkConstraints
Returns the value of thecheckConstraintsrecord component.- Returns:
- the value of the
checkConstraintsrecord component
-