Record Class RowLevelSecurityDdl
java.lang.Object
java.lang.Record
org.hibernate.dialect.rowsecurity.spi.RowLevelSecurityDdl
- Record Components:
exportIdentifier- the stable schema-export identifierphase- whether creation occurs before or after table creationcreateCommands- the ordered creation commandsdropCommands- the ordered drop commandsdialectScopes- optional fully qualified Dialect class names
@SPI(USE)
public record RowLevelSecurityDdl(String exportIdentifier, RowLevelSecurityDdl.Phase phase, List<String> createCommands, List<String> dropCommands, Set<String> dialectScopes)
extends Record
Declares one ordered row-level-security schema object or command group.
The export identifier must be stable across renderings. Hibernate uses it to deduplicate database-level declarations. Command and scope collections are immutable snapshots, and at least one create or drop command is required.
- Since:
- 8.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines schema-creation ordering for a row-level-security declaration. -
Constructor Summary
ConstructorsConstructorDescriptionRowLevelSecurityDdl(String exportIdentifier, RowLevelSecurityDdl.Phase phase, List<String> createCommands, List<String> dropCommands, Set<String> dialectScopes) Creates an instance of aRowLevelSecurityDdlrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreateCommandsrecord component.Returns the value of thedialectScopesrecord component.Returns the value of thedropCommandsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexportIdentifierrecord component.final inthashCode()Returns a hash code value for this object.phase()Returns the value of thephaserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RowLevelSecurityDdl
public RowLevelSecurityDdl(String exportIdentifier, RowLevelSecurityDdl.Phase phase, List<String> createCommands, List<String> dropCommands, Set<String> dialectScopes) Creates an instance of aRowLevelSecurityDdlrecord class.- Parameters:
exportIdentifier- the value for theexportIdentifierrecord componentphase- the value for thephaserecord componentcreateCommands- the value for thecreateCommandsrecord componentdropCommands- the value for thedropCommandsrecord 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). -
exportIdentifier
Returns the value of theexportIdentifierrecord component.- Returns:
- the value of the
exportIdentifierrecord component
-
phase
-
createCommands
Returns the value of thecreateCommandsrecord component.- Returns:
- the value of the
createCommandsrecord component
-
dropCommands
Returns the value of thedropCommandsrecord component.- Returns:
- the value of the
dropCommandsrecord component
-
dialectScopes
Returns the value of thedialectScopesrecord component.- Returns:
- the value of the
dialectScopesrecord component
-