Interface ClientDataSourceInterface

All Superinterfaces:
CommonDataSource, DataSource, Wrapper
All Known Subinterfaces:
ClientConnectionPoolDataSourceInterface, ClientXADataSourceInterface
All Known Implementing Classes:
BasicClientConnectionPoolDataSource40, BasicClientDataSource40, BasicClientXADataSource40, ClientConnectionPoolDataSource, ClientConnectionPoolDataSource40, ClientDataSource, ClientDataSource40, ClientXADataSource, ClientXADataSource40

public interface ClientDataSourceInterface extends DataSource
Specifies Derby extensions to the java.sqlx.DataSource API common to all Derby client driver data sources.
  • Field Details

    • propertyDefault_portNumber

      static final int propertyDefault_portNumber
      See Also:
    • propertyDefault_serverName

      static final String propertyDefault_serverName
      See Also:
    • propertyDefault_user

      static final String propertyDefault_user
      See Also:
    • propertyDefault_retrieveMessageText

      static final boolean propertyDefault_retrieveMessageText
      See Also:
    • USER_ONLY_SECURITY

      static final short USER_ONLY_SECURITY
      The source security mechanism to use when connecting to a client data source.

      Security mechanism options are:

      • USER_ONLY_SECURITY
      • CLEAR_TEXT_PASSWORD_SECURITY
      • ENCRYPTED_PASSWORD_SECURITY
      • ENCRYPTED_USER_AND_PASSWORD_SECURITY - both password and user are encrypted
      • STRONG_PASSWORD_SUBSTITUTE_SECURITY
      The default security mechanism is USER_ONLY SECURITY

      If the application specifies a security mechanism then it will be the only one attempted. If the specified security mechanism is not supported by the conversation then an exception will be thrown and there will be no additional retries.

      Both user and password need to be set for all security mechanism except USER_ONLY_SECURITY.

      See Also:
    • CLEAR_TEXT_PASSWORD_SECURITY

      static final short CLEAR_TEXT_PASSWORD_SECURITY
      See Also:
    • ENCRYPTED_PASSWORD_SECURITY

      static final short ENCRYPTED_PASSWORD_SECURITY
      See Also:
    • ENCRYPTED_USER_AND_PASSWORD_SECURITY

      static final short ENCRYPTED_USER_AND_PASSWORD_SECURITY
      See Also:
    • STRONG_PASSWORD_SUBSTITUTE_SECURITY

      static final short STRONG_PASSWORD_SUBSTITUTE_SECURITY
      See Also:
    • propertyDefault_securityMechanism

      static final short propertyDefault_securityMechanism
      Default security mechanism is USER_ONLY_SECURITY.
      See Also:
    • propertyDefault_traceFileAppend

      static final boolean propertyDefault_traceFileAppend
      See Also:
  • Method Details

    • setPassword

      void setPassword(String password)
    • getPassword

      String getPassword()
    • setDatabaseName

      void setDatabaseName(String databaseName)
    • getDatabaseName

      String getDatabaseName()
    • setDataSourceName

      void setDataSourceName(String dataSourceName)
    • getDataSourceName

      String getDataSourceName()
    • setDescription

      void setDescription(String description)
    • getDescription

      String getDescription()
    • setPortNumber

      void setPortNumber(int portNumber)
    • getPortNumber

      int getPortNumber()
    • setServerName

      void setServerName(String serverName)
    • getServerName

      String getServerName()
    • setUser

      void setUser(String user)
    • getUser

      String getUser()
    • setRetrieveMessageText

      void setRetrieveMessageText(boolean retrieveMessageText)
    • getRetrieveMessageText

      boolean getRetrieveMessageText()
    • setSecurityMechanism

      void setSecurityMechanism(short securityMechanism)
    • getSecurityMechanism

      short getSecurityMechanism()
    • getSecurityMechanism

      short getSecurityMechanism(String password)
    • setSsl

      void setSsl(String mode) throws SqlException
      Throws:
      SqlException
    • getSsl

      String getSsl()
    • setCreateDatabase

      void setCreateDatabase(String create)
    • getCreateDatabase

      String getCreateDatabase()
    • setShutdownDatabase

      void setShutdownDatabase(String shutdown)
    • getShutdownDatabase

      String getShutdownDatabase()
    • setConnectionAttributes

      void setConnectionAttributes(String prop)
    • getConnectionAttributes

      String getConnectionAttributes()
    • setTraceLevel

      void setTraceLevel(int traceLevel)
    • getTraceLevel

      int getTraceLevel()
    • setTraceFile

      void setTraceFile(String traceFile)
    • getTraceFile

      String getTraceFile()
    • setTraceDirectory

      void setTraceDirectory(String traceDirectory)
    • getTraceDirectory

      String getTraceDirectory()
    • setTraceFileAppend

      void setTraceFileAppend(boolean traceFileAppend)
    • getTraceFileAppend

      boolean getTraceFileAppend()