public interface WLDataSource
WLDataSource provides methods for the following:
DataSource| Modifier and Type | Method | Description | 
|---|---|---|
java.sql.Connection | 
createConnection(java.util.Properties additionalProperties) | 
 Attempts to create a new database connection with the requested additional
 connection properties. 
 | 
java.sql.Connection | 
createConnectionToInstance(java.lang.String instance,
                          java.util.Properties additionalProperties) | 
 Attempts to create a new database connection with the requested additional
 connection properties to the specified instance. 
 | 
java.sql.Connection | 
getConnection(java.lang.String username,
             java.lang.String password,
             java.util.Properties labels) | 
 Attempts to obtain a database connection with the requested connection
 labels. 
 | 
java.sql.Connection | 
getConnection(java.util.Properties labels) | 
 Attempts to obtain a database connection with the requested connection
 labels. 
 | 
void | 
registerConnectionInitializationCallback(ConnectionInitializationCallback cbk) | 
 Registers a connection initialization callback with the underlying
 connection pool. 
 | 
void | 
registerConnectionLabelingCallback(ConnectionLabelingCallback cbk) | 
 Registers a connection labeling callback with the underlying connection
 pool. 
 | 
void | 
removeConnectionLabelingCallback() | 
 Removes the  
ConnectionLabelingCallback object registered
 with the underlying connection pool, if any. | 
void | 
unregisterConnectionInitializationCallback() | 
 Unregisters the  
ConnectionInitializationCallback object
 registered with the underlying connection pool, if any. | 
java.sql.Connection getConnection(java.util.Properties labels)
                           throws java.sql.SQLException
labels - The requested connection labels.java.sql.SQLException - if a database-access error occurs.java.sql.Connection getConnection(java.lang.String username,
                                  java.lang.String password,
                                  java.util.Properties labels)
                           throws java.sql.SQLException
username - The database user on whose behalf the connection is being made.password - The user's password.labels - The requested connection labels.java.sql.SQLException - if a database-access error occurs.void registerConnectionLabelingCallback(ConnectionLabelingCallback cbk) throws java.sql.SQLException
cbk - The ConnectionLabelingCallback object to be
            registered.java.sql.SQLException - If there is a callback already registered with the pool.void removeConnectionLabelingCallback()
                               throws java.sql.SQLException
ConnectionLabelingCallback object registered
 with the underlying connection pool, if any.java.sql.SQLException - If callback removal fails.void registerConnectionInitializationCallback(ConnectionInitializationCallback cbk) throws java.sql.SQLException
cbk - The ConnectionInitializationCallback object to be
            registered.java.sql.SQLException - If there is a callback already registered with the pool.void unregisterConnectionInitializationCallback()
                                         throws java.sql.SQLException
ConnectionInitializationCallback object
 registered with the underlying connection pool, if any.java.sql.SQLException - If callback removal fails.java.sql.Connection createConnection(java.util.Properties additionalProperties)
                              throws java.sql.SQLException
additionalProperties - The requested additional connection properties.java.sql.SQLException - if a database-access error occurs.java.sql.Connection createConnectionToInstance(java.lang.String instance,
                                               java.util.Properties additionalProperties)
                                        throws java.sql.SQLException
instance - Target instance.additionalProperties - The requested additional connection properties.java.sql.SQLException - if a database-access error occurs.SQLFeatureNotSupportedException - The method was invoked on an
           unsupported connection or driver type