Package org.apache.cayenne.conn
Class DataSourceInfo
java.lang.Object
org.apache.cayenne.conn.DataSourceInfo
- All Implemented Interfaces:
Serializable
,Cloneable
,XMLSerializable
Helper JavaBean class that holds DataSource login information.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected int
protected int
protected String
static final String
static final String
static final String
static final String
protected String
protected String
protected String
protected String
protected String
protected final String
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encodeAsXML
(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.boolean
int
int
Deprecated.since 4.0 as class loading should not happen here.int
hashCode()
void
setAdapterClassName
(String adapterClassName) void
setDataSourceUrl
(String dataSourceUrl) void
setJdbcDriver
(String jdbcDriver) void
setMaxConnections
(int maxConnections) void
setMinConnections
(int minConnections) void
setPassword
(String password) void
setPasswordEncoderClass
(String passwordEncoderClass) void
setPasswordEncoderKey
(String passwordEncoderKey) void
setPasswordLocation
(String passwordLocation) void
setPasswordSource
(String passwordSource) void
setPasswordSourceExecutable
(String passwordSourceExecutable) void
setPasswordSourceFilename
(String passwordSourceFilename) void
setPasswordSourceUrl
(String passwordSourceUrl) void
setUserName
(String userName) toString()
-
Field Details
-
PASSWORD_LOCATION_CLASSPATH
- See Also:
-
PASSWORD_LOCATION_EXECUTABLE
- See Also:
-
PASSWORD_LOCATION_MODEL
- See Also:
-
PASSWORD_LOCATION_URL
- See Also:
-
userName
-
password
-
jdbcDriver
-
dataSourceUrl
-
adapterClassName
-
minConnections
protected int minConnections -
maxConnections
protected int maxConnections -
passwordEncoderClass
-
passwordEncoderKey
-
passwordLocation
-
passwordSourceExecutable
-
passwordSourceFilename
-
passwordSourceModel
- See Also:
-
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
-