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 (ornullfor 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 aGenericResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongblobId()Returns the value of theblobIdrecord component.byte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theobjectHandlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GenericResponse
Creates an instance of aGenericResponserecord class.- Parameters:
objectHandle- the value for theobjectHandlerecord componentblobId- the value for theblobIdrecord componentdata- the value for thedatarecord componentexception- the value for theexceptionrecord 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 theobjectHandlerecord component.- Returns:
- the value of the
objectHandlerecord component
-
blobId
public long blobId()Returns the value of theblobIdrecord component.- Returns:
- the value of the
blobIdrecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-