cuba.wired
Class DataSourceDesc
java.lang.Object
cuba.wired.AbstractDescriptor
cuba.wired.ResourceFactoryDesc
cuba.wired.DataSourceDesc
public class DataSourceDesc
- extends ResourceFactoryDesc
- Author:
- Arnold Kmpaczyk
Constructor Summary |
DataSourceDesc(java.lang.String globalName,
java.lang.String connectionString,
java.lang.String driverName,
java.lang.String user,
java.lang.String password,
java.util.Properties properties)
|
DataSourceDesc(java.lang.String globalName,
java.lang.String connectionString,
java.lang.String driverName,
java.lang.String user,
java.lang.String password,
java.util.Properties properties,
int connectionPoolMin,
int connectionPoolMax)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_POOL
public static final int NO_POOL
- See Also:
- Constant Field Values
MAX_POOL_MAX
public static final int MAX_POOL_MAX
- See Also:
- Constant Field Values
DataSourceDesc
public DataSourceDesc(java.lang.String globalName,
java.lang.String connectionString,
java.lang.String driverName,
java.lang.String user,
java.lang.String password,
java.util.Properties properties,
int connectionPoolMin,
int connectionPoolMax)
DataSourceDesc
public DataSourceDesc(java.lang.String globalName,
java.lang.String connectionString,
java.lang.String driverName,
java.lang.String user,
java.lang.String password,
java.util.Properties properties)
getConnectionString
public java.lang.String getConnectionString()
getDriverName
public java.lang.String getDriverName()
getUser
public java.lang.String getUser()
getPassword
public java.lang.String getPassword()
getProperties
public java.util.Properties getProperties()
getConnectionPoolMin
public int getConnectionPoolMin()
getConnectionPoolMax
public int getConnectionPoolMax()
checkImplements
public java.lang.String checkImplements(java.lang.Class interfaze,
boolean internal,
boolean exact)
- Description copied from class:
AbstractDescriptor
- Checks wether the component, described by this descriptor
provides the passed interface
- Specified by:
checkImplements
in class AbstractDescriptor
- Parameters:
interfaze
- The required interfaceinternal
- true when looking for an internal interfaceexact
- true when looking for an exact match, otherwise
also a derived interface would be accepted.
- Returns:
- null if the components matches. Otherwise, the name
of the component's interface, supposed to be used in an error message.