java.lang.Object
java.lang.Record
org.firebirdsql.gds.ng.wire.InlineBlobResponse
- Record Components:
transactionHandle- transaction handle the inline blob is valid forblobId- blob idinfo- byte array with blob infodata- byte array with blob data (without segments)
- All Implemented Interfaces:
Response
@NullMarked
public record InlineBlobResponse(int transactionHandle, long blobId, byte[] info, byte[] data)
extends Record
implements Response
Response instance for an inline blob (
op_inline_blob) response.- Since:
- 6.0.2
- Author:
- Mark Rotteveel
-
Constructor Summary
ConstructorsConstructorDescriptionInlineBlobResponse(int transactionHandle, long blobId, byte[] info, byte[] data) Creates an instance of aInlineBlobResponserecord 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.final inthashCode()Returns a hash code value for this object.byte[]info()Returns the value of theinforecord component.toInlineBlob(FbWireDatabase database) final StringtoString()Returns a string representation of this record class.intReturns the value of thetransactionHandlerecord component.
-
Constructor Details
-
InlineBlobResponse
public InlineBlobResponse(int transactionHandle, long blobId, byte[] info, byte[] data) Creates an instance of aInlineBlobResponserecord class.- Parameters:
transactionHandle- the value for thetransactionHandlerecord componentblobId- the value for theblobIdrecord componentinfo- the value for theinforecord componentdata- the value for thedatarecord component
-
-
Method Details
-
toInlineBlob
-
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 '=='. -
transactionHandle
public int transactionHandle()Returns the value of thetransactionHandlerecord component.- Returns:
- the value of the
transactionHandlerecord component
-
blobId
public long blobId()Returns the value of theblobIdrecord component.- Returns:
- the value of the
blobIdrecord component
-
info
public byte[] info()Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-