java.lang.Object
java.lang.Record
org.firebirdsql.gds.ng.wire.GenericResponse
- Record Components:
objectHandle
- object handle associated with the responseblobId
- blob id or status valuedata
- dataexception
- exception or warning (ornull
for no exception or warning)
- All Implemented Interfaces:
Response
public record GenericResponse(int objectHandle, long blobId, byte[] data, SQLException exception)
extends Record
implements Response
- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Constructor Summary
ConstructorsConstructorDescriptionGenericResponse
(int objectHandle, long blobId, byte[] data, SQLException exception) Creates an instance of aGenericResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
blobId()
Returns the value of theblobId
record component.byte[]
data()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexception
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theobjectHandle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GenericResponse
Creates an instance of aGenericResponse
record class.- Parameters:
objectHandle
- the value for theobjectHandle
record componentblobId
- the value for theblobId
record componentdata
- the value for thedata
record componentexception
- the value for theexception
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 '=='. -
objectHandle
public int objectHandle()Returns the value of theobjectHandle
record component.- Returns:
- the value of the
objectHandle
record component
-
blobId
public long blobId()Returns the value of theblobId
record component.- Returns:
- the value of the
blobId
record component
-
data
public byte[] data()Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-
exception
Returns the value of theexception
record component.- Returns:
- the value of the
exception
record component
-