Record Class SqlSequenceMapping
java.lang.Object
java.lang.Record
io.micronaut.data.model.schema.sql.SqlSequenceMapping
- Record Components:
definition- The custom definition as SQL command to be executed to create sequence if present or else nulldefinedName- The sequence name defined on the attributedataType- The data type of the property defining sequencegeneratedValueType- TheOptionalofGeneratedValue.Typesince type might not be explicitly declared
@Internal
public record SqlSequenceMapping(@Nullable String definition, @Nullable String definedName, DataType dataType, Optional<GeneratedValue.Type> generatedValueType)
extends Record
The SQL table sequence.
-
Constructor Summary
ConstructorsConstructorDescriptionSqlSequenceMapping(@Nullable String definition, @Nullable String definedName, DataType dataType, Optional<GeneratedValue.Type> generatedValueType) Creates an instance of aSqlSequenceMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()Returns the value of thedataTyperecord component.@Nullable StringReturns the value of thedefinedNamerecord component.@Nullable StringReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratedValueTyperecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlSequenceMapping
public SqlSequenceMapping(@Nullable @Nullable String definition, @Nullable @Nullable String definedName, DataType dataType, Optional<GeneratedValue.Type> generatedValueType) Creates an instance of aSqlSequenceMappingrecord class.- Parameters:
definition- the value for thedefinitionrecord componentdefinedName- the value for thedefinedNamerecord componentdataType- the value for thedataTyperecord componentgeneratedValueType- the value for thegeneratedValueTyperecord 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). -
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
definedName
Returns the value of thedefinedNamerecord component.- Returns:
- the value of the
definedNamerecord component
-
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-
generatedValueType
Returns the value of thegeneratedValueTyperecord component.- Returns:
- the value of the
generatedValueTyperecord component
-