Package org.apache.cayenne.conn
Class DataSourceInfo
java.lang.Object
org.apache.cayenne.conn.DataSourceInfo
- All Implemented Interfaces:
Serializable
,Cloneable
,XMLSerializable
public class DataSourceInfo extends Object implements Cloneable, Serializable, XMLSerializable
Helper JavaBean class that holds DataSource login information.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected String
adapterClassName
protected String
dataSourceUrl
protected String
jdbcDriver
protected int
maxConnections
protected int
minConnections
protected String
password
static String
PASSWORD_LOCATION_CLASSPATH
static String
PASSWORD_LOCATION_EXECUTABLE
static String
PASSWORD_LOCATION_MODEL
static String
PASSWORD_LOCATION_URL
protected String
passwordEncoderClass
protected String
passwordEncoderKey
protected String
passwordLocation
protected String
passwordSourceExecutable
protected String
passwordSourceFilename
protected String
passwordSourceModel
protected String
passwordSourceUrl
protected String
userName
-
Constructor Summary
Constructors Constructor Description DataSourceInfo()
-
Method Summary
-
Field Details
-
PASSWORD_LOCATION_CLASSPATH
- See Also:
- Constant Field Values
-
PASSWORD_LOCATION_EXECUTABLE
- See Also:
- Constant Field Values
-
PASSWORD_LOCATION_MODEL
- See Also:
- Constant Field Values
-
PASSWORD_LOCATION_URL
- See Also:
- Constant Field Values
-
userName
-
password
-
jdbcDriver
-
dataSourceUrl
-
adapterClassName
-
minConnections
protected int minConnections -
maxConnections
protected int maxConnections -
passwordEncoderClass
-
passwordEncoderKey
-
passwordLocation
-
passwordSourceExecutable
-
passwordSourceFilename
-
passwordSourceModel
- See Also:
- Constant Field Values
-
passwordSourceUrl
-
-
Constructor Details
-
DataSourceInfo
public DataSourceInfo()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
encodeAsXML
Description copied from interface:XMLSerializable
Prints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXML
in interfaceXMLSerializable
- Since:
- 3.1
-
cloneInfo
-
getAdapterClassName
-
setAdapterClassName
-
setMinConnections
public void setMinConnections(int minConnections) -
getMinConnections
public int getMinConnections() -
setMaxConnections
public void setMaxConnections(int maxConnections) -
getMaxConnections
public int getMaxConnections() -
setUserName
-
getUserName
-
setPassword
-
getPassword
-
setJdbcDriver
-
getJdbcDriver
-
setDataSourceUrl
-
getDataSourceUrl
-
getPasswordEncoder
Deprecated.since 4.0 as class loading should not happen here. -
getPasswordEncoderClass
- Returns:
- the passwordEncoderClass
-
setPasswordEncoderClass
- Parameters:
passwordEncoderClass
- the passwordEncoderClass to set
-
getPasswordEncoderKey
- Returns:
- the passwordEncoderKey
-
setPasswordEncoderKey
- Parameters:
passwordEncoderKey
- the passwordEncoderKey to set
-
getPasswordSourceFilename
- Returns:
- the passwordLocationFilename
-
setPasswordSourceFilename
- Parameters:
passwordSourceFilename
- the passwordSourceFilename to set
-
getPasswordSourceModel
- Returns:
- the passwordLocationModel
-
getPasswordSourceUrl
- Returns:
- the passwordLocationUrl
-
setPasswordSourceUrl
- Parameters:
passwordSourceUrl
- the passwordSourceUrl to set
-
getPasswordSourceExecutable
- Returns:
- the passwordLocationExecutable
-
setPasswordSourceExecutable
- Parameters:
passwordSourceExecutable
- the passwordSourceExecutable to set
-
getPasswordSource
-
setPasswordSource
-
getPasswordLocation
- Returns:
- the passwordLocation
-
setPasswordLocation
- Parameters:
passwordLocation
- the passwordLocation to set
-
toString
-