Record Class DataSrcError.FailToCastCreatedDataConn
java.lang.Object
java.lang.Record
com.github.sttk.sabi.DataSrcError.FailToCastCreatedDataConn
- Record Components:
name- the logical name of the data sourcefromTypeName- the actual class name of the created data connectiontoTypeName- the target class name requested by the caller
- All Implemented Interfaces:
DataSrcError
- Enclosing interface:
DataSrcError
public static record DataSrcError.FailToCastCreatedDataConn(String name, String fromTypeName, String toTypeName)
extends Record
implements DataSrcError
Indicates that a newly created data connection could not be cast to the requested type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataSrcError
DataSrcError.CreateDataConnIsNull, DataSrcError.FailToCastCreatedDataConn, DataSrcError.FailToCreateDataConn -
Constructor Summary
ConstructorsConstructorDescriptionFailToCastCreatedDataConn(String name, String fromTypeName, String toTypeName) Creates an instance of aFailToCastCreatedDataConnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromTypeNamerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetoTypeNamerecord component.
-
Constructor Details
-
FailToCastCreatedDataConn
Creates an instance of aFailToCastCreatedDataConnrecord class.- Parameters:
name- the value for thenamerecord componentfromTypeName- the value for thefromTypeNamerecord componenttoTypeName- the value for thetoTypeNamerecord component
-
-
Method Details
-
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
-
fromTypeName
Returns the value of thefromTypeNamerecord component.- Returns:
- the value of the
fromTypeNamerecord component
-
toTypeName
Returns the value of thetoTypeNamerecord component.- Returns:
- the value of the
toTypeNamerecord component
-