Package de.espirit.or

Class ConnectionConfiguration

java.lang.Object
de.espirit.or.ConnectionConfiguration
All Implemented Interfaces:
Serializable

public class ConnectionConfiguration extends Object implements Serializable
FirstSpirit database connection configuration parameter holder.
Since:
4.0.17
See Also:
  • Constructor Details

    • ConnectionConfiguration

      public ConnectionConfiguration()
      Creates an empty ConnectionConfiguration.
      Since:
      4.0.17
  • Method Details

    • getHost

      public String getHost()
      Returns the host as string.
      Returns:
      The host
      Since:
      4.0.17
    • setHost

      public void setHost(String host)
      Set the host.
      Parameters:
      host - The hostname
      Since:
      4.0.17
    • getLayer

      public String getLayer()
      Get the layer as string.
      Returns:
      The layer
      Since:
      4.0.17
    • setLayer

      public void setLayer(String layer)
      Set the layer.
      Parameters:
      layer - The layer
      Since:
      4.0.17
    • getPassword

      public String getPassword()
      Get the password string.
      Returns:
      The password
      Since:
      4.0.17
    • setPassword

      public void setPassword(String password)
      Set the password.
      Parameters:
      password - The password to be set
      Since:
      4.0.17
    • getPort

      public int getPort()
      Return the port number.
      Returns:
      The port number
      Since:
      4.0.17
    • setPort

      public void setPort(int port)
      Set port number. Has to be a positive integer.
      Parameters:
      port - The port number
      Since:
      4.0.17
    • getUser

      public String getUser()
      Get the username.
      Returns:
      The user
      Since:
      4.0.17
    • setUser

      public void setUser(String user)
      Set the username.
      Parameters:
      user - The username
      Since:
      4.0.17
    • getDriver

      public String getDriver()
      Get the driver.
      Returns:
      The driver name
      Since:
      4.0.17
    • setDriver

      public void setDriver(String driver)
      Set the driver.
      Parameters:
      driver - The name of the driver
      Since:
      4.0.17
    • getDatabase

      public String getDatabase()
      Get the database name.
      Returns:
      The database name
      Since:
      4.0.17
    • setDatabase

      public void setDatabase(String database)
      Set the database name.
      Parameters:
      database - The database name
      Since:
      4.0.17
    • getSchema

      public String getSchema()
      Get the schema name.
      Returns:
      The name of the schema
      Since:
      4.0.17
    • setSchema

      public void setSchema(String schema)
      Set the schema name
      Parameters:
      schema - The name of the schema
      Since:
      4.0.17
    • getParams

      public String getParams()
      Get the parameter for the connection.
      Returns:
      The parameter
      Since:
      4.0.17
    • setParams

      public void setParams(String params)
      Set the parameter for the connection.
      Parameters:
      params - The connection parameter
      Since:
      4.0.17
    • toString

      public String toString()
      Get a connection configuration as string. Passwords an username stay hidden.
      Overrides:
      toString in class Object
      Returns:
      The connection configuration as a string
      Since:
      4.0.17
    • getConnectionRetry

      public Integer getConnectionRetry()
      Get the number of max retries for the connection.
      Returns:
      Number of max retries
      Since:
      4.0.19
    • setConnectionRetry

      public void setConnectionRetry(int retry)
      Set number of max retries for the connection.
      Parameters:
      retry - The number of max retries
      Since:
      4.0.19
    • getConnectionRetryCycle

      public Long getConnectionRetryCycle()
      Get the retry cycle for the connection (in milliseconds).
      Returns:
      The connection retry cycle
      Since:
      4.0.19
    • setConnectionRetryCycle

      public void setConnectionRetryCycle(long retryCycle)
      Set the retry cycle for the connection (milliseconds).
      Parameters:
      retryCycle - Cycle in milliseconds
      Since:
      4.0.19
    • getConnectionTimeout

      public Long getConnectionTimeout()
      Get the connection timeout.
      Returns:
      The timeout in milliseconds
      Since:
      4.0.19
    • setConnectionTimeout

      public void setConnectionTimeout(long timeout)
      Set the connection timeout in milliseconds.
      Parameters:
      timeout - The timeout in milliseconds
      Since:
      4.0.19
    • getMaxStringLength

      public Integer getMaxStringLength()
      Get the maximum string length.
      Returns:
      The maximum string length
      Since:
      4.0.19
    • setMaxStringLength

      public void setMaxStringLength(int stringLength)
      Set the maximum string length.
      Parameters:
      stringLength - The maximum string length
      Since:
      4.0.19
    • getPoolCheckInterval

      public Long getPoolCheckInterval()
      Get the interval in which the connection pool will be checked.
      Returns:
      The interval in milliseconds
      Since:
      4.0.19
    • setPoolCheckInterval

      public void setPoolCheckInterval(long checkInterval)
      Set the interval in which the connection pool will be checked.
      Parameters:
      checkInterval - The interval in milliseconds
      Since:
      4.0.19
    • getPoolMax

      public Integer getPoolMax()
      Get the maximum number of pool connections.
      Returns:
      The maximum number of pool connections
      Since:
      4.0.19
    • setPoolMax

      public void setPoolMax(int max)
      Set the maximum number of pool connections.
      Parameters:
      max - The maximum number of pool connections
      Since:
      4.0.19
    • getPoolMin

      public Integer getPoolMin()
      Get the minimum number of pool connections.
      Returns:
      The minimum number of pool connections
      Since:
      4.0.19
    • setPoolMin

      public void setPoolMin(int min)
      Set the minimum number of pool connections.
      Parameters:
      min - The minimum number of pool connections
      Since:
      4.0.19
    • getPoolTimeout

      public Long getPoolTimeout()
      Get the timeout for a pool connection.
      Returns:
      The timeout in milliseconds
      Since:
      4.0.19
    • setPoolTimeout

      public void setPoolTimeout(long timeout)
      Set the timeout for a pool connection
      Parameters:
      timeout - The timeout in milliseconds
      Since:
      4.0.19
    • getPlainUrl

      public String getPlainUrl()
      Get the plain url
      Returns:
      The plain url
      Since:
      4.0.63
    • setPlainUrl

      public void setPlainUrl(String plainUrl)
      Set the plain url
      Parameters:
      plainUrl - The url
      Since:
      4.0.63
    • getGenericProperties

      public Map<String,String> getGenericProperties()
      Get the generic properties as a map
      Returns:
      The properties
      Since:
      4.0.132
    • setGenericProperty

      public void setGenericProperty(String name, String value)
      Set eneric properties
      Parameters:
      name - The name of the property
      value - The value of the property
      Since:
      4.0.132