Class ConnectionParameters.WalletConnection

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    ConnectionParameters

    public static class ConnectionParameters.WalletConnection
    extends ConnectionParameters
    A connection using a wallet file, service name found in tnsnames.ora and proxy parameters.
    • Constructor Detail

      • WalletConnection

        public WalletConnection​(java.lang.String user,
                                char[] password,
                                java.lang.String walletPath,
                                java.lang.String service)
      • WalletConnection

        public WalletConnection​(java.lang.String user,
                                char[] password,
                                java.lang.String walletPath,
                                java.lang.String service,
                                java.lang.String proxyHost,
                                int proxyPort)
    • Method Detail

      • getService

        public java.lang.String getService()
      • getWalletPath

        public java.lang.String getWalletPath()
      • getProxyHost

        public java.lang.String getProxyHost()
      • getProxyPort

        public int getProxyPort()
      • getWalletDirectory

        public java.lang.String getWalletDirectory()
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • connect

        public java.sql.Connection connect()
                                    throws java.lang.Exception
        Specified by:
        connect in class ConnectionParameters
        Throws:
        java.lang.Exception
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class ConnectionParameters
      • getTitle

        public java.lang.String getTitle()
        Specified by:
        getTitle in class ConnectionParameters
        Returns:
        A string to be displayed as window title that describes the connection.
      • getGdalConnectionString

        public java.lang.String getGdalConnectionString()
        Specified by:
        getGdalConnectionString in class ConnectionParameters
        Returns:
        A string in gdal georaster driver format to be used as source or destiny of a import or export operation.