Interface WSConnectionSpec

All Known Subinterfaces:
JDBCConnectionSpec

public interface WSConnectionSpec

Enables connections to be requested and matched based on additional attributes.

  • Method Details

    • getCatalog

      String getCatalog()
      Get the catalog name.
      Returns:
      the catalog name.
    • getPassword

      String getPassword()
      Get the password.
      Returns:
      the password.
    • getTypeMap

      Map getTypeMap()
      Get the type map, which is used for the custom mapping of SQL structured types and distinct types.
      Returns:
      the type map.
    • getHoldability

      int getHoldability()

      Get the cursor holdability value. 0 indicates to use the JDBC driver's default.

      Returns:
      the cursor holdability.
    • getUserName

      String getUserName()
      Get the user name.
      Returns:
      the user name.
    • isReadOnly

      Boolean isReadOnly()
      Get the read-only indicator for the database.
      Returns:
      true if the connection is read only; otherwise false. Value will be null if the readOnly property was never set, which means the database default will be used.
    • getSchema

      String getSchema()
      Gets the requested schema.
      Returns:
      the schema.
    • getNetworkTimeout

      int getNetworkTimeout()
      Gets the requested network timeout.
      Returns:
      the network timeout.
    • setCatalog

      void setCatalog(String catalog)
      Set the catalog name. A value of null indicates to use the database default.
      Parameters:
      catalog - the catalog name.
    • setPassword

      void setPassword(String pwd)
      Set the password.
      Parameters:
      pwd - the password.
    • setReadOnly

      void setReadOnly(Boolean readOnly)
      Indicate whether the connection is read only. A value of null indicates to use the database default.
      Parameters:
      readOnly - a flag indicating whether the connection is read only.
    • setTypeMap

      void setTypeMap(Map map)
      Set the type map for this connection. The type map is used for the custom mapping of SQL structured types and distinct types. A value of null indicates to use the database default.
      Parameters:
      map - the type map.
    • setUserName

      void setUserName(String userName)
      Set the user name.
      Parameters:
      userName - the user name.
    • setHoldability

      void setHoldability(int holdability)
      Sets the cursor holdability value. A value of 0 indicates to use the JDBC driver's default. If the JDBC driver doesn't support setting the cursor holdability via the JDBC spec-defined mechanism, you can set the holdability value to 0.
      Parameters:
      holdability - the cursor holdability
    • setSchema

      void setSchema(String schema)
      Sets the requested schema.
      Parameters:
      schema - the schema.
    • setNetworkTimeout

      void setNetworkTimeout(int networkTimeout)
      Sets the requested network timeout.
      Parameters:
      networkTimeout - the network timeout.