|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.jca.ManagedConnectionFactoryImpl
Factory for creating Factories, connections and matching connections Does not currently support unmanaged environments
Constructor Summary | |
ManagedConnectionFactoryImpl()
|
Method Summary | |
Object |
createConnectionFactory()
NOT SUPPORTED |
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Creates a Hibernate SessionFactory for the container |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
Creates a ManagedConnection |
boolean |
equals(Object object)
JCA 1.0, 5.5.3 It is required that the ManagedConnectionFactory implementation class extend the implementation of the hashCode and equals methods defined in the java.lang.Object class. |
String |
getDatasourceJndi()
|
String |
getDialect()
|
String |
getHibernateProperties()
|
PrintWriter |
getLogWriter()
|
String |
getMapResources()
|
int |
hashCode()
JCA 1.0, 5.5.3 It is required that the ManagedConnectionFactory implementation class extend the implementation of the hashCode and equals methods defined in the java.lang.Object class. |
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set mcs,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
|
void |
setDatasourceJndi(String datasourceJndi)
|
void |
setDialect(String dialect)
|
void |
setHibernateProperties(String properties)
|
void |
setLogWriter(PrintWriter out)
|
void |
setMapResources(String mapResources)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ManagedConnectionFactoryImpl()
Method Detail |
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
- can't create Session Factory
(thrown with linked exception)public Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.NotSupportedException
- Unmanaged environments are not currently supported
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info)
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
public void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection matchManagedConnections(Set mcs, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
public boolean equals(Object object)
equals
in interface javax.resource.spi.ManagedConnectionFactory
public void setDatasourceJndi(String datasourceJndi)
public String getDatasourceJndi()
public String getDialect()
public void setDialect(String dialect)
public String getMapResources()
public void setMapResources(String mapResources)
public String getHibernateProperties()
public void setHibernateProperties(String properties)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |