cuba.wired
Class DataSourceDesc

java.lang.Object
  extended by cuba.wired.AbstractDescriptor
      extended by cuba.wired.ResourceFactoryDesc
          extended by cuba.wired.DataSourceDesc

public class DataSourceDesc
extends ResourceFactoryDesc

Author:
Arnold Kmpaczyk

Field Summary
static int MAX_POOL_MAX
           
static int NO_POOL
           
 
Fields inherited from class cuba.wired.AbstractDescriptor
globalName
 
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)
           
 
Method Summary
 java.lang.String checkImplements(java.lang.Class interfaze, boolean internal, boolean exact)
          Checks wether the component, described by this descriptor provides the passed interface
 int getConnectionPoolMax()
           
 int getConnectionPoolMin()
           
 java.lang.String getConnectionString()
           
 java.lang.String getDriverName()
           
 java.lang.String getPassword()
           
 java.util.Properties getProperties()
           
 java.lang.String getUser()
           
 
Methods inherited from class cuba.wired.AbstractDescriptor
getGlobalName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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 interface
internal - true when looking for an internal interface
exact - 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.