Class PermissionDDMCF
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDMCF
- All Implemented Interfaces:
- jakarta.resource.Referenceable,- jakarta.resource.spi.ManagedConnectionFactory,- jakarta.resource.spi.ResourceAdapterAssociation,- Serializable,- Referenceable
public class PermissionDDMCF
extends Object
implements jakarta.resource.spi.ManagedConnectionFactory, jakarta.resource.spi.ResourceAdapterAssociation, jakarta.resource.Referenceable, Serializable
ManagedConnectionFactory implementation for PermissionDDMCF. This class provides methods to create and manage
 connections to the underlying EIS. It also implements ResourceAdapterAssociation and Referenceable interfaces.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates a new connection factory instance without a connection manager.createConnectionFactory(jakarta.resource.spi.ConnectionManager cxManager) Creates a new connection factory instance with a connection manager.jakarta.resource.spi.ManagedConnectioncreateManagedConnection(Subject subject, jakarta.resource.spi.ConnectionRequestInfo info) Creates a new managed connection to the underlying EIS.voidLogs debug messages.voiddumpConnectionMetaData(jakarta.resource.spi.ManagedConnection mcon) Dumps the connection metadata.booleanCompares the given object to the ManagedConnectionFactory instance.intgetCount()Gets the count.Gets the factory name.Gets the integer property.Gets the log writer.Gets the password.Gives the reference of the class.jakarta.resource.spi.ResourceAdapterGets the resource adapter for this ManagedConnectionFactory.Gets the setter method value.Gets the TSR value.getUser()Gets the user.Gets the user name.inthashCode()Gives a hash value to a ManagedConnectionFactory object.voidLooks up the TSR.jakarta.resource.spi.ManagedConnectionmatchManagedConnections(Set connectionSet, Subject subject, jakarta.resource.spi.ConnectionRequestInfo info) Returns the existing connection from the connection pool.voidsetCount(int val) Sets the count.voidsetFactoryName(String name) Sets the factory name.voidsetInteger(Integer val) Sets the integer property.voidsetLogWriter(PrintWriter out) Sets the log writer.voidsetPassword(String val) Sets the password.voidsetReference(Reference ref) Sets the reference of the class.voidsetResourceAdapter(jakarta.resource.spi.ResourceAdapter ra) Sets the resource adapter for this ManagedConnectionFactory.voidsetSetterMethodVal(String val) Sets the setter method value.voidsetTsrValue(String name) Sets the TSR value.voidSets the user.voidsetUserName(String val) Sets the user name.
- 
Constructor Details- 
PermissionDDMCFpublic PermissionDDMCF()Default constructor. Initializes the factory name and logs the state.
 
- 
- 
Method Details- 
setSetterMethodValSets the setter method value.- Parameters:
- val- the new value to set
 
- 
getSetterMethodValGets the setter method value.- Returns:
- the current setter method value
 
- 
setFactoryNameSets the factory name.- Parameters:
- name- the new factory name
 
- 
getFactoryNameGets the factory name.- Returns:
- the current factory name
 
- 
getIntegerGets the integer property.- Returns:
- the current integer property value
 
- 
setIntegerSets the integer property.- Parameters:
- val- the new integer property value
 
- 
getUserGets the user.- Returns:
- the current user
 
- 
setUserSets the user.- Parameters:
- val- the new user
 
- 
getUserNameGets the user name.- Returns:
- the current user name
 
- 
setUserNameSets the user name.- Parameters:
- val- the new user name
 
- 
getPasswordGets the password.- Returns:
- the current password
 
- 
setPasswordSets the password.- Parameters:
- val- the new password
 
- 
getTsrValueGets the TSR value.- Returns:
- the current TSR value
 
- 
setTsrValueSets the TSR value.- Parameters:
- name- the new TSR value
 
- 
lookupTSRLooks up the TSR.- Parameters:
- lookup- the lookup string
 
- 
createConnectionFactorypublic Object createConnectionFactory(jakarta.resource.spi.ConnectionManager cxManager) throws jakarta.resource.ResourceException Creates a new connection factory instance with a connection manager.- Specified by:
- createConnectionFactoryin interface- jakarta.resource.spi.ManagedConnectionFactory
- Parameters:
- cxManager- the connection manager
- Returns:
- the new connection factory instance
- Throws:
- jakarta.resource.ResourceException- if an error occurs
 
- 
createConnectionFactoryCreates a new connection factory instance without a connection manager.- Specified by:
- createConnectionFactoryin interface- jakarta.resource.spi.ManagedConnectionFactory
- Returns:
- the new connection factory instance
- Throws:
- jakarta.resource.ResourceException- if an error occurs
 
- 
setResourceAdapterpublic void setResourceAdapter(jakarta.resource.spi.ResourceAdapter ra) throws jakarta.resource.ResourceException Sets the resource adapter for this ManagedConnectionFactory.- Specified by:
- setResourceAdapterin interface- jakarta.resource.spi.ResourceAdapterAssociation
- Parameters:
- ra- the resource adapter
- Throws:
- jakarta.resource.ResourceException- if an error occurs
 
- 
getResourceAdapterpublic jakarta.resource.spi.ResourceAdapter getResourceAdapter()Gets the resource adapter for this ManagedConnectionFactory.- Specified by:
- getResourceAdapterin interface- jakarta.resource.spi.ResourceAdapterAssociation
- Returns:
- the current resource adapter
 
- 
createManagedConnectionpublic jakarta.resource.spi.ManagedConnection createManagedConnection(Subject subject, jakarta.resource.spi.ConnectionRequestInfo info) throws jakarta.resource.ResourceException Creates a new managed connection to the underlying EIS.- Specified by:
- createManagedConnectionin interface- jakarta.resource.spi.ManagedConnectionFactory
- Parameters:
- subject- the subject
- info- the connection request info
- Returns:
- the new managed connection
- Throws:
- jakarta.resource.ResourceException- if an error occurs
 
- 
dumpConnectionMetaDatapublic void dumpConnectionMetaData(jakarta.resource.spi.ManagedConnection mcon) Dumps the connection metadata.- Parameters:
- mcon- the managed connection
 
- 
matchManagedConnectionspublic jakarta.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, jakarta.resource.spi.ConnectionRequestInfo info) throws jakarta.resource.ResourceException Returns the existing connection from the connection pool.- Specified by:
- matchManagedConnectionsin interface- jakarta.resource.spi.ManagedConnectionFactory
- Parameters:
- connectionSet- the set of connections
- subject- the subject
- info- the connection request info
- Returns:
- the matched managed connection, or null if no match is found
- Throws:
- jakarta.resource.ResourceException- if an error occurs
 
- 
setLogWriterSets the log writer.- Specified by:
- setLogWriterin interface- jakarta.resource.spi.ManagedConnectionFactory
- Parameters:
- out- the print writer
- Throws:
- jakarta.resource.ResourceException- if an error occurs
 
- 
getLogWriterGets the log writer.- Specified by:
- getLogWriterin interface- jakarta.resource.spi.ManagedConnectionFactory
- Returns:
- the current print writer
- Throws:
- jakarta.resource.ResourceException- if an error occurs
 
- 
equalsCompares the given object to the ManagedConnectionFactory instance.
- 
hashCodepublic int hashCode()Gives a hash value to a ManagedConnectionFactory object.
- 
getReferenceGives the reference of the class.- Specified by:
- getReferencein interface- Referenceable
- Returns:
- the current reference
 
- 
setReferenceSets the reference of the class.- Specified by:
- setReferencein interface- jakarta.resource.Referenceable
- Parameters:
- ref- the new reference
 
- 
debugLogs debug messages.- Parameters:
- out- the debug message
 
- 
getCountpublic int getCount()Gets the count.- Returns:
- the current count
 
- 
setCountpublic void setCount(int val) Sets the count.- Parameters:
- val- the new count
 
 
-