Package org.pjdbc.capabilities
Record Class DriverCapability.SideEffects
java.lang.Object
java.lang.Record
org.pjdbc.capabilities.DriverCapability.SideEffects
- Enclosing class:
DriverCapability
public static record DriverCapability.SideEffects(boolean logging, boolean metrics, boolean network, boolean filesystem, boolean stateful)
extends Record
Represents side effects a driver may produce.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSideEffects(boolean logging, boolean metrics, boolean network, boolean filesystem, boolean stateful) Creates an instance of aSideEffectsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefilesystemrecord component.final inthashCode()Returns a hash code value for this object.booleanlogging()Returns the value of theloggingrecord component.booleanmetrics()Returns the value of themetricsrecord component.booleannetwork()Returns the value of thenetworkrecord component.booleanstateful()Returns the value of thestatefulrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
-
Constructor Details
-
SideEffects
public SideEffects(boolean logging, boolean metrics, boolean network, boolean filesystem, boolean stateful) Creates an instance of aSideEffectsrecord class.- Parameters:
logging- the value for theloggingrecord componentmetrics- the value for themetricsrecord componentnetwork- the value for thenetworkrecord componentfilesystem- the value for thefilesystemrecord componentstateful- the value for thestatefulrecord 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 with '=='. -
logging
public boolean logging()Returns the value of theloggingrecord component.- Returns:
- the value of the
loggingrecord component
-
metrics
public boolean metrics()Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
network
public boolean network()Returns the value of thenetworkrecord component.- Returns:
- the value of the
networkrecord component
-
filesystem
public boolean filesystem()Returns the value of thefilesystemrecord component.- Returns:
- the value of the
filesystemrecord component
-
stateful
public boolean stateful()Returns the value of thestatefulrecord component.- Returns:
- the value of the
statefulrecord component
-