Package org.pjdbc.validation
Record Class ChainEntry
java.lang.Object
java.lang.Record
org.pjdbc.validation.ChainEntry
- Record Components:
capability- Driver metadata from PjdbcCapabilities, null if unknown (e.g., postgresql)prefix- The URL subprotocol (e.g., "cache", "log", "pool")parameters- URL parameters for this driverposition- Position in chain (0 = outermost, increases inward)isTerminal- True if this is the innermost (terminal) driver
public record ChainEntry(DriverCapability capability, String prefix, Map<String,String> parameters, int position, boolean isTerminal)
extends Record
Represents one driver in a PJDBC composition chain.
-
Constructor Summary
ConstructorsConstructorDescriptionChainEntry(DriverCapability capability, String prefix, Map<String, String> parameters, int position, boolean isTerminal) Creates an instance of aChainEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisTerminalrecord component.Returns the value of theparametersrecord component.intposition()Returns the value of thepositionrecord component.prefix()Returns the value of theprefixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChainEntry
public ChainEntry(DriverCapability capability, String prefix, Map<String, String> parameters, int position, boolean isTerminal) Creates an instance of aChainEntryrecord class.- Parameters:
capability- the value for thecapabilityrecord componentprefix- the value for theprefixrecord componentparameters- the value for theparametersrecord componentposition- the value for thepositionrecord componentisTerminal- the value for theisTerminalrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
capability
Returns the value of thecapabilityrecord component.- Returns:
- the value of the
capabilityrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
position
public int position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
isTerminal
public boolean isTerminal()Returns the value of theisTerminalrecord component.- Returns:
- the value of the
isTerminalrecord component
-