Record Class DatabaseInfo
java.lang.Object
java.lang.Record
top.magstar.framework.database.services.DatabaseInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveConnectionsrecord component.Returns the value of thedatabaseTyperecord component.Returns the value of thedriverNamerecord component.Returns the value of thedriverVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxConnectionsrecord component.Returns the value of theproductNamerecord component.Returns the value of theproductVersionrecord component.@NotNull StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
DatabaseInfo
public DatabaseInfo(String productName, String productVersion, String driverName, String driverVersion, String url, String username, int activeConnections, int maxConnections, String databaseType) Creates an instance of aDatabaseInforecord class.- Parameters:
productName- the value for theproductNamerecord componentproductVersion- the value for theproductVersionrecord componentdriverName- the value for thedriverNamerecord componentdriverVersion- the value for thedriverVersionrecord componenturl- the value for theurlrecord componentusername- the value for theusernamerecord componentactiveConnections- the value for theactiveConnectionsrecord componentmaxConnections- the value for themaxConnectionsrecord componentdatabaseType- the value for thedatabaseTyperecord component
-
-
Method Details
-
toString
-
hashCode
-
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 '=='. -
productName
Returns the value of theproductNamerecord component.- Returns:
- the value of the
productNamerecord component
-
productVersion
Returns the value of theproductVersionrecord component.- Returns:
- the value of the
productVersionrecord component
-
driverName
Returns the value of thedriverNamerecord component.- Returns:
- the value of the
driverNamerecord component
-
driverVersion
Returns the value of thedriverVersionrecord component.- Returns:
- the value of the
driverVersionrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
activeConnections
public int activeConnections()Returns the value of theactiveConnectionsrecord component.- Returns:
- the value of the
activeConnectionsrecord component
-
maxConnections
public int maxConnections()Returns the value of themaxConnectionsrecord component.- Returns:
- the value of the
maxConnectionsrecord component
-
databaseType
Returns the value of thedatabaseTyperecord component.- Returns:
- the value of the
databaseTyperecord component
-