public class ManagedConnectionFactoryImpl extends Object implements javax.resource.spi.ManagedConnectionFactory
Constructor and Description |
---|
ManagedConnectionFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Object |
createConnectionFactory()
Creator for the connection factory
|
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cm)
Creator for the connection factory.
|
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Creator for a managed connection.
|
boolean |
equals(Object other)
Equality operator.
|
protected void |
freezeConfiguration()
Freezes the current configuration.
|
PrintWriter |
getLogWriter()
Accessor for the Log writer
|
org.datanucleus.api.jdo.JDOPersistenceManagerFactory |
getPersistenceManagerFactory() |
int |
hashCode() |
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set mcs,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Method to match managed connections.
|
void |
setLogWriter(PrintWriter writer)
Mutator for the Log Writer
|
void |
setPersistenceUnitName(String name)
Mutator for the name of the persistence unit.
|
void |
setPersistenceXmlFilename(String name)
Mutator for the filename of the persistence.xml file.
|
void |
setPrimaryClassLoader(String name)
Setter for the primaryClassLoader
|
protected void freezeConfiguration()
org.datanucleus.exceptions.NucleusException
- if the configuration was invalid or inconsistent in some waypublic void setPersistenceUnitName(String name)
name
- Name of the persistence unitpublic void setPersistenceXmlFilename(String name)
name
- Filename of the persistence unitpublic void setPrimaryClassLoader(String name)
name
- Name of the class to use to set the primary class loader. Otherwise uses this classpublic org.datanucleus.api.jdo.JDOPersistenceManagerFactory getPersistenceManagerFactory()
public boolean equals(Object other)
public int hashCode()
public Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
- Thrown if an error occurspublic Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
cm
- ConnectionManagerjavax.resource.ResourceException
- Thrown if an error occurspublic javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
subject
- The subject (what ?)cri
- Connection request info.javax.resource.ResourceException
- Thrown if an error occurspublic javax.resource.spi.ManagedConnection matchManagedConnections(Set mcs, Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
mcs
- managed connectionssubject
- The subjectcri
- request infojavax.resource.ResourceException
- Thrown if an error occurspublic PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
- Thrown if an error occurs.public void setLogWriter(PrintWriter writer) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
writer
- The log writerjavax.resource.ResourceException
- Thrown if an error occursCopyright © 2015. All rights reserved.