Package org.apache.cayenne.configuration
Class DataSourceDescriptor
java.lang.Object
org.apache.cayenne.configuration.DataSourceDescriptor
- All Implemented Interfaces:
- Serializable,- XMLSerializable
Helper JavaBean class that holds DataSource information for the Cayenne-managed DataSource.
- Since:
- 5.0
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.booleanintintinthashCode()voidsetDataSourceUrl(String dataSourceUrl) voidsetJdbcDriver(String jdbcDriver) voidsetMaxConnections(int maxConnections) voidsetMinConnections(int minConnections) voidsetPassword(String password) voidsetUserName(String userName) toString()
- 
Field Details- 
jdbcDriver
- 
dataSourceUrl
- 
userName
- 
password
- 
minConnectionsprotected int minConnections
- 
maxConnectionsprotected int maxConnections
 
- 
- 
Constructor Details- 
DataSourceDescriptorpublic DataSourceDescriptor()
 
- 
- 
Method Details- 
getJdbcDriver
- 
setJdbcDriver
- 
getDataSourceUrl
- 
setDataSourceUrl
- 
getUserName
- 
setUserName
- 
getPassword
- 
setPassword
- 
getMinConnectionspublic int getMinConnections()
- 
setMinConnectionspublic void setMinConnections(int minConnections) 
- 
getMaxConnectionspublic int getMaxConnections()
- 
setMaxConnectionspublic void setMaxConnections(int maxConnections) 
- 
equals
- 
hashCodepublic int hashCode()
- 
encodeAsXMLDescription copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
- encodeAsXMLin interface- XMLSerializable
 
- 
toString
 
-