Record Class DataNodeDescriptor
java.lang.Object
java.lang.Record
org.apache.cayenne.configuration.DataNodeDescriptor
public record DataNodeDescriptor(String name, DataSource dataSource, Class<? extends DbAdapter> adapterType, Class<? extends SchemaUpdateStrategy> schemaUpdateStrategyType)
extends Record
Contains
DataNode configuration.- Since:
- 5.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDataNodeDescriptor(String name, DataSource dataSource, Class<? extends DbAdapter> adapterType, Class<? extends SchemaUpdateStrategy> schemaUpdateStrategyType) Creates an instance of aDataNodeDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadapterTyperecord component.Returns the value of thedataSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static DataNodeDescriptor.BuilderClass<? extends SchemaUpdateStrategy> Returns the value of theschemaUpdateStrategyTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataNodeDescriptor
public DataNodeDescriptor(String name, DataSource dataSource, Class<? extends DbAdapter> adapterType, Class<? extends SchemaUpdateStrategy> schemaUpdateStrategyType) Creates an instance of aDataNodeDescriptorrecord class.- Parameters:
name- the value for thenamerecord componentdataSource- the value for thedataSourcerecord componentadapterType- the value for theadapterTyperecord componentschemaUpdateStrategyType- the value for theschemaUpdateStrategyTyperecord component
-
-
Method Details
-
of
- Since:
- 5.0
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-
adapterType
-
schemaUpdateStrategyType
Returns the value of theschemaUpdateStrategyTyperecord component.- Returns:
- the value of the
schemaUpdateStrategyTyperecord component
-