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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected intprotected intprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected final Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.booleanintintDeprecated.since 4.0 as class loading should not happen here.inthashCode()voidsetAdapterClassName(String adapterClassName) voidsetDataSourceUrl(String dataSourceUrl) voidsetJdbcDriver(String jdbcDriver) voidsetMaxConnections(int maxConnections) voidsetMinConnections(int minConnections) voidsetPassword(String password) voidsetPasswordEncoderClass(String passwordEncoderClass) voidsetPasswordEncoderKey(String passwordEncoderKey) voidsetPasswordLocation(String passwordLocation) voidsetPasswordSource(String passwordSource) voidsetPasswordSourceExecutable(String passwordSourceExecutable) voidsetPasswordSourceFilename(String passwordSourceFilename) voidsetPasswordSourceUrl(String passwordSourceUrl) voidsetUserName(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:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXMLin 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
-