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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
minConnections
protected int minConnections -
maxConnections
protected int maxConnections
-
-
Constructor Details
-
DataSourceDescriptor
public DataSourceDescriptor()
-
-
Method Details
-
getJdbcDriver
-
setJdbcDriver
-
getDataSourceUrl
-
setDataSourceUrl
-
getUserName
-
setUserName
-
getPassword
-
setPassword
-
getMinConnections
public int getMinConnections() -
setMinConnections
public void setMinConnections(int minConnections) -
getMaxConnections
public int getMaxConnections() -
setMaxConnections
public void setMaxConnections(int maxConnections) -
equals
-
hashCode
public int hashCode() -
encodeAsXML
Description copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXMLin interfaceXMLSerializable
-
toString
-