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 SummaryFields Modifier and Type Field Description protected StringadapterClassNameprotected StringdataSourceUrlprotected StringjdbcDriverprotected intmaxConnectionsprotected intminConnectionsprotected Stringpasswordstatic StringPASSWORD_LOCATION_CLASSPATHstatic StringPASSWORD_LOCATION_EXECUTABLEstatic StringPASSWORD_LOCATION_MODELstatic StringPASSWORD_LOCATION_URLprotected StringpasswordEncoderClassprotected StringpasswordEncoderKeyprotected StringpasswordLocationprotected StringpasswordSourceExecutableprotected StringpasswordSourceFilenameprotected StringpasswordSourceModelprotected StringpasswordSourceUrlprotected StringuserName
- 
Constructor SummaryConstructors 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
- 
minConnectionsprotected int minConnections
- 
maxConnectionsprotected int maxConnections
- 
passwordEncoderClass
- 
passwordEncoderKey
- 
passwordLocation
- 
passwordSourceExecutable
- 
passwordSourceFilename
- 
passwordSourceModel- See Also:
- Constant Field Values
 
- 
passwordSourceUrl
 
- 
- 
Constructor Details- 
DataSourceInfopublic DataSourceInfo()
 
- 
- 
Method Details- 
equals
- 
hashCodepublic int hashCode()
- 
encodeAsXMLDescription copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
- encodeAsXMLin interface- XMLSerializable
- Since:
- 3.1
 
- 
cloneInfo
- 
getAdapterClassName
- 
setAdapterClassName
- 
setMinConnectionspublic void setMinConnections(int minConnections)
- 
getMinConnectionspublic int getMinConnections()
- 
setMaxConnectionspublic void setMaxConnections(int maxConnections)
- 
getMaxConnectionspublic int getMaxConnections()
- 
setUserName
- 
getUserName
- 
setPassword
- 
getPassword
- 
setJdbcDriver
- 
getJdbcDriver
- 
setDataSourceUrl
- 
getDataSourceUrl
- 
getPasswordEncoderDeprecated.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
 
-