public boolean isConflict(EntityManagerReferenceDescriptor other) { return getName().equals(other.getName()) && (!( DOLUtils.equals(getUnitName(), other.getUnitName()) && DOLUtils.equals(getPersistenceContextType(), other.getPersistenceContextType()) && properties.equals(other.properties) ) || isConflictResourceGroup(other)); } }
boolean isConflict(EntityManagerReferenceDescriptor other) { return getName().equals(other.getName()) && (!( DOLUtils.equals(getUnitName(), other.getUnitName()) && DOLUtils.equals(getPersistenceContextType(), other.getPersistenceContextType()) && properties.equals(other.properties) ) || isConflictResourceGroup(other)); } }
public Object create(Context ctx) { EntityManagerWrapper emWrapper = new EntityManagerWrapper(txManager, invMgr, compEnvMgr, callFlowAgent); emWrapper.initializeEMWrapper(refDesc.getUnitName(), refDesc.getPersistenceContextType(), refDesc.getProperties()); return emWrapper; } }
public Object create(Context ctx) { EntityManagerWrapper emWrapper = new EntityManagerWrapper(txManager, invMgr, compEnvMgr, callFlowAgent); emWrapper.initializeEMWrapper(refDesc.getUnitName(), refDesc.getPersistenceContextType(), refDesc.getSynchronizationType(), refDesc.getProperties()); return emWrapper; } }
while (iter.hasNext()) { EntityManagerReferenceDescriptor refDesc = iter.next(); if (refDesc.getPersistenceContextType() == PersistenceContextType.EXTENDED) { String unitName = refDesc.getUnitName();
PersistenceContextType contextType = descriptor.getPersistenceContextType(); String contextTypeString = (contextType != null && PersistenceContextType.EXTENDED.equals(contextType)) ?
PersistenceContextType contextType = descriptor.getPersistenceContextType(); String contextTypeString = (contextType != null && PersistenceContextType.EXTENDED.equals(contextType)) ?
while (iter.hasNext()) { EntityManagerReferenceDescriptor refDesc = iter.next(); if (refDesc.getPersistenceContextType() == PersistenceContextType.EXTENDED) { String unitName = refDesc.getUnitName();