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 aDbAttachInfo
record class.DbAttachInfo
(String serverName, Integer portNumber, String attachObjectName) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachObjectName
record component.<T extends IAttachProperties<T>>
voidcopyTo
(T attachProperties) final boolean
Indicates whether some other object is "equal to" this one.boolean
final int
hashCode()
Returns a hash code value for this object.boolean
static DbAttachInfo
of
(AttachmentProperties attachmentProperties) static DbAttachInfo
parseConnectString
(String connectString) int
Returns the value of theportNumber
record component.Returns the value of theserverName
record component.final String
toString()
Returns a string representation of this record class.withAttachObjectName
(String attachObjectName) withServerName
(String serverName)
-
Constructor Details
-
DbAttachInfo
Creates an instance of aDbAttachInfo
record class.- Parameters:
serverName
- the value for theserverName
record componentportNumber
- the value for theportNumber
record componentattachObjectName
- the value for theattachObjectName
record 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 theserverName
record component.- Returns:
- the value of the
serverName
record component
-
portNumber
public int portNumber()Returns the value of theportNumber
record component.- Returns:
- the value of the
portNumber
record component
-
attachObjectName
Returns the value of theattachObjectName
record component.- Returns:
- the value of the
attachObjectName
record component
-