|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connections
Interface for a store of connection information.
| Method Summary | |
|---|---|
void |
addConnection(java.lang.String connName, java.util.Properties props)Creates a connection in the underlying namespace with the given name and properties. |
void |
addDisconnectListener(DisconnectListener l)Adds a listener to be asked about and notified of disconnect events. |
void |
addListener(ConnectionsListener l)Adds a listener to be notified of add/remove/update events in this connection store. |
void |
disconnect(java.lang.String connName)If the connection store has a cached connection for this connection name then disconnect it. |
java.util.Properties |
getProperties(java.lang.String connName)Returns a Properties object containing the properties for the given connection name. |
javax.naming.Referenceable |
getReferenceable(java.lang.String connName)Returns the Referenceable for the given connection name, containing the details about the connection. |
java.util.Collection<java.lang.String> |
listConnections()Lists the names of the available connections. |
java.util.Collection<java.lang.String> |
listConnections(java.util.Properties props)Lists any connections whose properties match the values in the given set. |
boolean |
removeConnection(java.lang.String connName)Removes the connection with the given name. |
boolean |
removeDisconnectListener(DisconnectListener l)Removes the given listener from this store if it was registered. |
boolean |
removeListener(ConnectionsListener l)Removes the given listener from this store if it was registered. |
void |
saveConnections()Saves this connection store. |
void |
testConnection(java.util.Properties props)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)Updates the definition of the given connection with the new set of properties. |
| Method Detail |
|---|
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
ConnectionException
boolean removeConnection(java.lang.String connName)
throws ConnectionException
connName - the name of the connection to removeConnectionException - if an error is encountered removing the connection
void 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.ConnectionException
void testConnection(java.util.Properties props)
throws ConnectionException
ConnectionException
void saveConnections()
throws ConnectionException
IOExceptionConnectionException
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||