org.glassfish.persistence.common
Class PersistenceHelper

java.lang.Object
  extended by org.glassfish.persistence.common.PersistenceHelper

public class PersistenceHelper
extends Object

Contains helper methods for persistence module

Author:
Mitesh Meswani

Constructor Summary
PersistenceHelper()
           
 
Method Summary
static DataSource lookupNonTxResource(ConnectorRuntime connectorRuntime, DeploymentContext ctx, String dataSourceName)
           
static DataSource lookupPMResource(ConnectorRuntime connectorRuntime, DeploymentContext ctx, String dataSourceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceHelper

public PersistenceHelper()
Method Detail

lookupNonTxResource

public static DataSource lookupNonTxResource(ConnectorRuntime connectorRuntime,
                                             DeploymentContext ctx,
                                             String dataSourceName)
                                      throws NamingException
Throws:
NamingException

lookupPMResource

public static DataSource lookupPMResource(ConnectorRuntime connectorRuntime,
                                          DeploymentContext ctx,
                                          String dataSourceName)
                                   throws NamingException
Throws:
NamingException


Copyright © 2012 GlassFish Community. All Rights Reserved.