java.lang.Object
java.lang.Record
org.firebirdsql.gds.impl.DbAttachInfo
@InternalApi
public record DbAttachInfo(String serverName, int portNumber, String attachObjectName)
extends Record
Container for attachment information (i.e. server, port and filename/alias/service name/url).
-
Constructor Summary
ConstructorsConstructorDescriptionDbAttachInfo(String serverName, int portNumber, String attachObjectName) Creates an instance of aDbAttachInforecord class.DbAttachInfo(String serverName, Integer portNumber, String attachObjectName) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachObjectNamerecord component.<T extends IAttachProperties<T>>
voidcopyTo(T attachProperties) final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.booleanstatic DbAttachInfoof(AttachmentProperties attachmentProperties) static DbAttachInfoparseConnectString(String connectString) intReturns the value of theportNumberrecord component.Returns the value of theserverNamerecord component.final StringtoString()Returns a string representation of this record class.withAttachObjectName(String attachObjectName) withServerName(String serverName)
-
Constructor Details
-
DbAttachInfo
Creates an instance of aDbAttachInforecord class.- Parameters:
serverName- the value for theserverNamerecord componentportNumber- the value for theportNumberrecord componentattachObjectName- the value for theattachObjectNamerecord component
-
DbAttachInfo
-
-
Method Details
-
of
-
hasServerName
public boolean hasServerName() -
hasAttachObjectName
public boolean hasAttachObjectName() -
withServerName
-
withAttachObjectName
-
copyTo
-
parseConnectString
- Throws:
SQLException
-
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 '=='. -
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
portNumber
public int portNumber()Returns the value of theportNumberrecord component.- Returns:
- the value of the
portNumberrecord component
-
attachObjectName
Returns the value of theattachObjectNamerecord component.- Returns:
- the value of the
attachObjectNamerecord component
-