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 theAuxiliaryDatabaseObjectimplementation to use.dialectScopes- Allows scoping the object to specific dialects.
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseObjectRegistration(String create, String drop, String definition, List<DialectScopeRegistration> dialectScopes) Creates an instance of aDatabaseObjectRegistrationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Returns the value of thecreaterecord component.Returns the value of thedefinitionrecord component.Returns the value of thedialectScopesrecord component.drop()Returns the value of thedroprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()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 aDatabaseObjectRegistrationrecord class.- Parameters:
create- the value for thecreaterecord componentdrop- the value for thedroprecord componentdefinition- the value for thedefinitionrecord componentdialectScopes- the value for thedialectScopesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
create
-
drop
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
dialectScopes
Returns the value of thedialectScopesrecord component.- Returns:
- the value of the
dialectScopesrecord component
-