Package org.hibernate.boot.models.spi
Record Class DatabaseObjectRegistration
java.lang.Object
java.lang.Record
org.hibernate.boot.models.spi.DatabaseObjectRegistration
- Record Components:
create
- The create commanddrop
- The drop commanddefinition
- (optional) Name of theAuxiliaryDatabaseObject
implementation to use.dialectScopes
- Allows scoping the object to specific dialects.
public record DatabaseObjectRegistration(String create, String drop, String definition, List<DialectScopeRegistration> dialectScopes)
extends Record
Models an auxiliary database object in the boot mapping model
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseObjectRegistration
(String create, String drop, String definition, List<DialectScopeRegistration> dialectScopes) Creates an instance of aDatabaseObjectRegistration
record class. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Returns the value of thecreate
record component.Returns the value of thedefinition
record component.Returns the value of thedialectScopes
record component.drop()
Returns the value of thedrop
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DatabaseObjectRegistration
public DatabaseObjectRegistration(String create, String drop, String definition, List<DialectScopeRegistration> dialectScopes) Creates an instance of aDatabaseObjectRegistration
record class.- Parameters:
create
- the value for thecreate
record componentdrop
- the value for thedrop
record componentdefinition
- the value for thedefinition
record componentdialectScopes
- the value for thedialectScopes
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)
. -
create
Returns the value of thecreate
record component.- Returns:
- the value of the
create
record component
-
drop
Returns the value of thedrop
record component.- Returns:
- the value of the
drop
record component
-
definition
Returns the value of thedefinition
record component.- Returns:
- the value of the
definition
record component
-
dialectScopes
Returns the value of thedialectScopes
record component.- Returns:
- the value of the
dialectScopes
record component
-