Package oracle.spatial.georaster.util
Class ConnectionParameters
- java.lang.Object
-
- oracle.spatial.georaster.util.ConnectionParameters
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
ConnectionParameters.BasicConnection
,ConnectionParameters.WalletConnection
public abstract class ConnectionParameters extends java.lang.Object implements java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConnectionParameters.BasicConnection
A connection using Host, Port and Service Name.static class
ConnectionParameters.ConnectionType
static class
ConnectionParameters.WalletConnection
A connection using a wallet file, service name found in tnsnames.ora and proxy parameters.
-
Constructor Summary
Constructors Constructor Description ConnectionParameters(java.lang.String user, char[] password)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
close()
protected void
closeConnection()
abstract java.sql.Connection
connect()
java.sql.Connection
getConnection()
abstract java.lang.String
getGdalConnectionString()
char[]
getPassword()
abstract java.lang.String
getTitle()
abstract java.lang.String
getTreeNodeString()
abstract ConnectionParameters.ConnectionType
getType()
java.lang.String
getUser()
-
-
-
Method Detail
-
close
public abstract void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
connect
public abstract java.sql.Connection connect() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getTitle
public abstract java.lang.String getTitle()
- Returns:
- A string to be displayed as window title that describes the connection.
-
getTreeNodeString
public abstract java.lang.String getTreeNodeString()
- Returns:
- A string to describe this connection.
-
getGdalConnectionString
public abstract java.lang.String getGdalConnectionString()
- Returns:
- A string in gdal georaster driver format to be used as source or destiny of a import or export operation.
-
getType
public abstract ConnectionParameters.ConnectionType getType()
- Returns:
- an instance of
ConnectionParameters.ConnectionType
that represent the subclass of ConnectionParameters
-
getUser
public java.lang.String getUser()
-
getPassword
public char[] getPassword()
-
getConnection
public java.sql.Connection getConnection()
-
closeConnection
protected void closeConnection()
-
-