DatabaseConnections has never been used in the product (to
 represent stores of other types of connection) so there is no point in
 keeping this interface.@Deprecated
public interface Connections
| Modifier and Type | Method and Description | 
|---|---|
void | 
addConnection(java.lang.String connName,
             java.util.Properties props)
Deprecated.  
Creates a connection in the underlying namespace with the given name and
 properties. 
 | 
void | 
addDisconnectListener(DisconnectListener l)
Deprecated.  
Adds a listener to be asked about and notified of disconnect events. 
 | 
void | 
addListener(ConnectionsListener l)
Deprecated.  
Adds a listener to be notified of add/remove/update events in this
 connection store. 
 | 
void | 
disconnect(java.lang.String connName)
Deprecated.  
If the connection store has a cached connection for this connection name
 then disconnect it. 
 | 
java.util.Properties | 
getProperties(java.lang.String connName)
Deprecated.  
Returns a Properties object containing the properties for the given
 connection name. 
 | 
javax.naming.Referenceable | 
getReferenceable(java.lang.String connName)
Deprecated.  
Returns the Referenceable for the given connection name, containing the
 details about the connection. 
 | 
java.util.Collection<java.lang.String> | 
listConnections()
Deprecated.  
Lists the names of the available connections. 
 | 
java.util.Collection<java.lang.String> | 
listConnections(java.util.Properties props)
Deprecated.  
Lists any connections whose properties match the values in the given
 set. 
 | 
boolean | 
removeConnection(java.lang.String connName)
Deprecated.  
Removes the connection with the given name. 
 | 
boolean | 
removeDisconnectListener(DisconnectListener l)
Deprecated.  
Removes the given listener from this store if it was registered. 
 | 
boolean | 
removeListener(ConnectionsListener l)
Deprecated.  
Removes the given listener from this store if it was registered. 
 | 
void | 
saveConnections()
Deprecated.  
Saves this connection store. 
 | 
void | 
testConnection(java.util.Properties props)
Deprecated.  
Takes the given properties for a connection and attempts to create an
 actual connection to test the properties are valid. 
 | 
boolean | 
updateConnection(java.lang.String connName,
                java.lang.String newName,
                java.util.Properties newProps)
Deprecated.  
Updates the definition of the given connection with the new set of
 properties. 
 | 
void addListener(ConnectionsListener l)
boolean removeListener(ConnectionsListener l)
void addDisconnectListener(DisconnectListener l)
boolean removeDisconnectListener(DisconnectListener l)
java.util.Collection<java.lang.String> listConnections()
java.util.Collection<java.lang.String> listConnections(java.util.Properties props)
javax.naming.Referenceable getReferenceable(java.lang.String connName)
                                     throws ConnectionException
ConnectionException - if an error occurs locating the given connection name.java.util.Properties getProperties(java.lang.String connName)
                            throws ConnectionException
ConnectionException - if an error occurs locating the given connection name.void addConnection(java.lang.String connName,
                   java.util.Properties props)
            throws ConnectionException
ConnectionExceptionboolean removeConnection(java.lang.String connName)
                  throws ConnectionException
connName - the name of the connection to removeConnectionException - if an error is encountered removing the connectionvoid disconnect(java.lang.String connName)
         throws ConnectionException
connName - the connection to disconnectConnectionException - if an error is encountered getting or
 disconnecting the connection.boolean updateConnection(java.lang.String connName,
                         java.lang.String newName,
                         java.util.Properties newProps)
                  throws ConnectionException
connName - the name of the connection as already definednewName - the new name for the connection. if null the old name is
 keptnewProps - the new Properties for the connection.ConnectionExceptionvoid testConnection(java.util.Properties props)
             throws ConnectionException
ConnectionExceptionvoid saveConnections()
              throws ConnectionException
IOExceptionConnectionException