com.vividsolutions.jump.workbench.datastore
Class ConnectionDescriptor

java.lang.Object
  extended by com.vividsolutions.jump.workbench.datastore.ConnectionDescriptor

public class ConnectionDescriptor
extends java.lang.Object

Contains a ParameterList and its associated DataStoreDriver.


Nested Class Summary
static class ConnectionDescriptor.PersistentParameterList
           
static class ConnectionDescriptor.PersistentParameterListSchema
           
 
Constructor Summary
ConnectionDescriptor()
           
ConnectionDescriptor(java.lang.Class dataStoreDriverClass, ParameterList parameterList)
           
ConnectionDescriptor(java.lang.String name, java.lang.Class dataStoreDriverClass, ParameterList parameterList)
           
 
Method Summary
 DataStoreConnection createConnection(DataStoreDriver driver)
           
 boolean equals(java.lang.Object other)
           
 java.lang.String getDataStoreDriverClassName()
           
 java.lang.String getName()
           
 ParameterList getParameterList()
           
 ConnectionDescriptor.PersistentParameterList getParameterListWithObfuscatedPassword()
           
 ParameterList getParameterListWithoutPassword()
           
 java.lang.String getParametersString()
           
 int hashCode()
           
static java.lang.String passwordParameterName(ParameterListSchema schema)
           
 void setDataStoreDriverClassName(java.lang.String dataStoreDriverClassName)
           
 void setName(java.lang.String name)
           
 void setParameterList(ParameterList parameterList)
           
 void setParameterListWithObfuscatedPassword(ConnectionDescriptor.PersistentParameterList parameterListWithObfuscatedPassword)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionDescriptor

public ConnectionDescriptor()

ConnectionDescriptor

public ConnectionDescriptor(java.lang.Class dataStoreDriverClass,
                            ParameterList parameterList)

ConnectionDescriptor

public ConnectionDescriptor(java.lang.String name,
                            java.lang.Class dataStoreDriverClass,
                            ParameterList parameterList)
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

createConnection

public DataStoreConnection createConnection(DataStoreDriver driver)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

getParameterList

public ParameterList getParameterList()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParametersString

public java.lang.String getParametersString()

getParameterListWithoutPassword

public ParameterList getParameterListWithoutPassword()

setParameterListWithObfuscatedPassword

public void setParameterListWithObfuscatedPassword(ConnectionDescriptor.PersistentParameterList parameterListWithObfuscatedPassword)

getParameterListWithObfuscatedPassword

public ConnectionDescriptor.PersistentParameterList getParameterListWithObfuscatedPassword()

setDataStoreDriverClassName

public void setDataStoreDriverClassName(java.lang.String dataStoreDriverClassName)

getDataStoreDriverClassName

public java.lang.String getDataStoreDriverClassName()

setParameterList

public void setParameterList(ParameterList parameterList)

passwordParameterName

public static java.lang.String passwordParameterName(ParameterListSchema schema)