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
- TheOptional
ofGeneratedValue.Type
since 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 aSqlSequenceMapping
record class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()
Returns the value of thedataType
record component.@Nullable String
Returns the value of thedefinedName
record component.@Nullable String
Returns the value of thedefinition
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegeneratedValueType
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 aSqlSequenceMapping
record class.- Parameters:
definition
- the value for thedefinition
record componentdefinedName
- the value for thedefinedName
record componentdataType
- the value for thedataType
record componentgeneratedValueType
- the value for thegeneratedValueType
record 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 thedefinition
record component.- Returns:
- the value of the
definition
record component
-
definedName
Returns the value of thedefinedName
record component.- Returns:
- the value of the
definedName
record component
-
dataType
Returns the value of thedataType
record component.- Returns:
- the value of the
dataType
record component
-
generatedValueType
Returns the value of thegeneratedValueType
record component.- Returns:
- the value of the
generatedValueType
record component
-