Record Class BulkLoadHandle
java.lang.Object
java.lang.Record
io.bloviate.ext.BulkLoadHandle
- Record Components:
description- a short human-readable description of what was disabled, for logging
An opaque token returned by
DatabaseSupport.disableConstraints(Connection, Database) describing what was disabled,
so DatabaseSupport.enableConstraints(Connection, Database, BulkLoadHandle) can restore it.
The session-based PostgreSQL (session_replication_role) and MySQL
(FOREIGN_KEY_CHECKS) mechanisms restore state with a fixed SET statement and carry no
per-table state, so the handle is purely informational (a short description used for logging).
It exists so a future catalog-level mechanism (e.g. dropping and recreating constraints) can carry the
list of objects it must restore without changing the SPI signatures.
- Since:
- 2.17.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBulkLoadHandle(String description) Creates an instance of aBulkLoadHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static BulkLoadHandleCreates a handle with the given description.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BulkLoadHandle
Creates an instance of aBulkLoadHandlerecord class.- Parameters:
description- the value for thedescriptionrecord component
-
-
Method Details
-
of
Creates a handle with the given description.- Parameters:
description- a short human-readable description of what was disabled- Returns:
- the handle
-
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). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-