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 TypeMethodDescriptionvoid
encodeAsXML
(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.boolean
int
int
int
hashCode()
void
setDataSourceUrl
(String dataSourceUrl) void
setJdbcDriver
(String jdbcDriver) void
setMaxConnections
(int maxConnections) void
setMinConnections
(int minConnections) void
setPassword
(String password) void
setUserName
(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:XMLSerializable
Prints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXML
in interfaceXMLSerializable
-
toString
-