Record Class ConnectionFactoryConfig
java.lang.Object
java.lang.Record
cz.cvut.kbss.ontodriver.rdf4j.connector.ConnectionFactoryConfig
- Record Components:
isGraphDB
- Whether the underlying repository is GraphDBtxIsolationLevel
- Configured transaction isolation level, possiblynull
public record ConnectionFactoryConfig(boolean isGraphDB, org.eclipse.rdf4j.common.transaction.IsolationLevel txIsolationLevel)
extends Record
Configuration for the
ConnectionFactoryImpl
.-
Constructor Summary
ConstructorsConstructorDescriptionConnectionFactoryConfig
(boolean isGraphDB, org.eclipse.rdf4j.common.transaction.IsolationLevel txIsolationLevel) Creates an instance of aConnectionFactoryConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisGraphDB
record component.final String
toString()
Returns a string representation of this record class.org.eclipse.rdf4j.common.transaction.IsolationLevel
Returns the value of thetxIsolationLevel
record component.
-
Constructor Details
-
ConnectionFactoryConfig
public ConnectionFactoryConfig(boolean isGraphDB, org.eclipse.rdf4j.common.transaction.IsolationLevel txIsolationLevel) Creates an instance of aConnectionFactoryConfig
record class.- Parameters:
isGraphDB
- the value for theisGraphDB
record componenttxIsolationLevel
- the value for thetxIsolationLevel
record 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 '=='. -
isGraphDB
public boolean isGraphDB()Returns the value of theisGraphDB
record component.- Returns:
- the value of the
isGraphDB
record component
-
txIsolationLevel
public org.eclipse.rdf4j.common.transaction.IsolationLevel txIsolationLevel()Returns the value of thetxIsolationLevel
record component.- Returns:
- the value of the
txIsolationLevel
record component
-