Record Class DataConnError.FailToCastDataConn
java.lang.Object
java.lang.Record
com.github.sttk.sabi.DataConnError.FailToCastDataConn
- Record Components:
name- the logical name of the data connectionfromTypeName- the actual class name of the data connectiontoTypeName- the target class name requested by the caller
- All Implemented Interfaces:
DataConnError
- Enclosing interface:
DataConnError
public static record DataConnError.FailToCastDataConn(String name, String fromTypeName, String toTypeName)
extends Record
implements DataConnError
Indicates that a cached data connection could not be cast to the requested type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataConnError
DataConnError.FailToCastDataConn, DataConnError.FailToCommitDataConn, DataConnError.FailToPostCommitDataConn, DataConnError.FailToPreCommitDataConn -
Constructor Summary
ConstructorsConstructorDescriptionFailToCastDataConn(String name, String fromTypeName, String toTypeName) Creates an instance of aFailToCastDataConnrecord 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
-
FailToCastDataConn
Creates an instance of aFailToCastDataConnrecord 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
-