Class CciJMSConnectionSpec
java.lang.Object
org.eclipse.persistence.internal.eis.adapters.jms.CciJMSConnectionSpec
- All Implemented Interfaces:
ConnectionSpec
INTERNAL:
Provides the behavior of instantiating a JMS ConnectionSpec.
- Since:
- OracleAS TopLink 10g (10.1.3)
-
Field Summary
Modifier and TypeFieldDescriptionprotected ConnectionFactory
protected String
protected char[]
protected String
-
Constructor Summary
ConstructorDescriptionThe default constructor.CciJMSConnectionSpec
(ConnectionFactory factory) This constructor sets the connection factory.CciJMSConnectionSpec
(ConnectionFactory factory, String name, String pass) This constructor sets the connection factory, username and password/This constructor sets the connection factory url.CciJMSConnectionSpec
(String url, String name, String pass) This constructor sets the connection factory url, username and password. -
Method Summary
Modifier and TypeMethodDescriptionReturn the connection factory class.Returns the JNDI lookup name of the connection factory.Return the password used when getting a queue connection.Return the username used when getting a queue connection.boolean
Indicates if JNDI is to be used to get the connection factory.boolean
Indicates if the username property has been set.void
setConnectionFactory
(ConnectionFactory connFactory) Set the connection factory class to be used.void
setConnectionFactoryURL
(String jndiName) Set the JNDI lookup name of the connection factory.void
setPassword
(String pass) Set the password to be used when getting a queue connection.void
setUsername
(String name) Set the username to be used when getting a queue connection.
-
Field Details
-
username
-
password
protected char[] password -
connectionFactoryURL
-
connectionFactory
-
-
Constructor Details
-
CciJMSConnectionSpec
public CciJMSConnectionSpec()The default constructor. -
CciJMSConnectionSpec
This constructor sets the connection factory url.- Parameters:
url
- - the JNDI lookup name of the connection factory
-
CciJMSConnectionSpec
This constructor sets the connection factory.- Parameters:
factory
- - the connection factory class
-
CciJMSConnectionSpec
This constructor sets the connection factory url, username and password.- Parameters:
url
- - the JNDI lookup name of the connection factoryname
- - the username to be used when obtaining the queue connectionpass
- - the password to be used when obtaining the queue connection
-
CciJMSConnectionSpec
This constructor sets the connection factory, username and password/- Parameters:
factory
- - the connection factory classname
- - the username to be used when obtaining the queue connectionpass
- - the password to be used when obtaining the queue connection
-
-
Method Details
-
getUsername
Return the username used when getting a queue connection.- Returns:
- username
-
setUsername
Set the username to be used when getting a queue connection. -
getPassword
Return the password used when getting a queue connection.- Returns:
- password
-
setPassword
Set the password to be used when getting a queue connection. -
hasUsername
public boolean hasUsername()Indicates if the username property has been set.- Returns:
- true if the username property is non-null and has a length greater than 0
-
hasConnectionFactoryURL
public boolean hasConnectionFactoryURL()Indicates if JNDI is to be used to get the connection factory.- Returns:
- true if a JNDI lookup name has been set, false otherwise.
-
getConnectionFactoryURL
Returns the JNDI lookup name of the connection factory.- Returns:
- connection factory lookup name in JNDI
-
setConnectionFactoryURL
Set the JNDI lookup name of the connection factory. -
setConnectionFactory
Set the connection factory class to be used.- Parameters:
connFactory
- - the factory class to be used
-
getConnectionFactory
Return the connection factory class.- Returns:
- connection factory class
-