Package overit.geocall.sql
Record Class PooledConnectionConfiguration
java.lang.Object
java.lang.Record
overit.geocall.sql.PooledConnectionConfiguration
- Record Components:
name- the pool's name
Represents the configuration for a pooled connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aPooledConnectionConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncross()driver()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmax()intmin()name()Returns the value of thenamerecord component.intnumber(int def) owner()password()scripts()final StringtoString()Returns a string representation of this record class.type()url()user()waits()
-
Constructor Details
-
PooledConnectionConfiguration
Creates an instance of aPooledConnectionConfigurationrecord class.- Parameters:
name- the value for thenamerecord component
-
-
Method Details
-
url
- Returns:
- the DB's connection string
-
driver
- Returns:
- the JDBC's driver reference
-
user
- Returns:
- The username for the database access
-
password
- Returns:
- The password for the database access
-
testStatement
- Returns:
- an optional test command for the database access
-
scripts
- Returns:
- an optional script that will be executed in the connection phase
-
parameters
- Returns:
- the
StringGetterthat contains the database parameters
-
number
public int number(int def) - Parameters:
def- default connection number- Returns:
- the maximum pool's connections. Default value if there's nothing configured
-
max
public int max()- Returns:
- the maximum pool's connections. -1 if there's no limit
-
min
public int min()- Returns:
- the minimum pool's connections. 0 if there's no connection to keep alive
-
cross
- Returns:
- the name that allows pools, belonging to the same cross, to reuse the connection.
-
waits
- Returns:
- number of seconds that must pass before repeating the reachability test for the database
-
owner
- Returns:
- change the owner user used to invoke the SQL functions. If not indicated, the owner used will be inherited from the default macro settings. This configuration is only effective for sql server DBs.
-
encryptionKey
- Returns:
- key used to encrypt and decrypt values from the database
-
type
- Returns:
- the connection modality used when communicating with the database.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-