public PersistenceContextRef property(final String name, final String value) { getPersistenceProperty().add(new Property(name, value)); return this; }
boolean flag = true; for (Property prpty : persistenceProperties) { if (prpty.getName().equals(persistenceProperty.getKey())) { flag = false; break; Property property = new Property(); property.setName(persistenceProperty.getKey()); property.setValue(persistenceProperty.getValue()); persistenceProperties.add(property);
boolean flag = true; for (final Property prpty : persistenceProperties) { if (prpty.getName().equals(persistenceProperty.getKey())) { flag = false; break; final Property property = new Property(); property.setName(persistenceProperty.getKey()); property.setValue(persistenceProperty.getValue()); persistenceProperties.add(property);
boolean flag = true; for (final Property prpty : persistenceProperties) { if (prpty.getName().equals(persistenceProperty.getKey())) { flag = false; break; final Property property = new Property(); property.setName(persistenceProperty.getKey()); property.setValue(persistenceProperty.getValue()); persistenceProperties.add(property);
public PersistenceContextRef property(final String name, final String value) { getPersistenceProperty().add(new Property(name, value)); return this; }
public DataSource property(final String name, final String value) { getProperty().add(new Property(name, value)); return this; }
public JMSDestination property(final String name, final String value) { getProperty().add(new Property(name, value)); return this; }
private List<PersistenceContextReferenceInfo> buildPersistenceContextRefInfos(JndiConsumer jndiConsumer, URI moduleId) { ArrayList<PersistenceContextReferenceInfo> infos = new ArrayList<PersistenceContextReferenceInfo>(); for (PersistenceContextRef contextRef : jndiConsumer.getPersistenceContextRef()) { PersistenceContextReferenceInfo info = new PersistenceContextReferenceInfo(); info.referenceName = contextRef.getPersistenceContextRefName(); info.persistenceUnitName = contextRef.getPersistenceUnitName(); info.unitId = contextRef.getMappedName(); info.location = buildLocationInfo(contextRef); info.extended = (contextRef.getPersistenceContextType() == PersistenceContextType.EXTENDED); List<Property> persistenceProperty = contextRef.getPersistenceProperty(); for (Property property : persistenceProperty) { String name = property.getName(); String value = property.getValue(); info.properties.setProperty(name, value); } info.targets.addAll(buildInjectionInfos(contextRef)); infos.add(info); } return infos; }
public JMSConnectionFactory property(final String name, final String value) { getProperty().add(new Property(name, value)); return this; }
private void buildPersistenceContextRefInfos(final JndiConsumer jndiConsumer, final JndiEncInfo moduleJndiEnc, final JndiEncInfo compJndiEnc) { for (final PersistenceContextRef contextRef : jndiConsumer.getPersistenceContextRef()) { final PersistenceContextReferenceInfo info = new PersistenceContextReferenceInfo(); info.referenceName = contextRef.getPersistenceContextRefName(); info.persistenceUnitName = contextRef.getPersistenceUnitName(); info.unitId = contextRef.getMappedName(); info.location = buildLocationInfo(contextRef); info.extended = contextRef.getPersistenceContextType() == PersistenceContextType.EXTENDED; final List<Property> persistenceProperty = contextRef.getPersistenceProperty(); for (final Property property : persistenceProperty) { final String name = property.getName(); final String value = property.getValue(); info.properties.setProperty(name, value); } info.targets.addAll(buildInjectionInfos(contextRef)); insert( info, appInfo.globalJndiEnc.persistenceContextRefs, appInfo.appJndiEnc.persistenceContextRefs, moduleJndiEnc.persistenceContextRefs, compJndiEnc.persistenceContextRefs ); } }
public DataSource property(final String name, final String value) { getProperty().add(new Property(name, value)); return this; }
private void buildPersistenceContextRefInfos(final JndiConsumer jndiConsumer, final JndiEncInfo moduleJndiEnc, final JndiEncInfo compJndiEnc) { for (final PersistenceContextRef contextRef : jndiConsumer.getPersistenceContextRef()) { final PersistenceContextReferenceInfo info = new PersistenceContextReferenceInfo(); info.referenceName = contextRef.getPersistenceContextRefName(); info.persistenceUnitName = contextRef.getPersistenceUnitName(); info.synchronizationType = contextRef.getPersistenceContextSynchronization() != null ? contextRef.getPersistenceContextSynchronization().name() : null; info.unitId = contextRef.getMappedName(); info.location = buildLocationInfo(contextRef); info.extended = contextRef.getPersistenceContextType() == PersistenceContextType.EXTENDED; final List<Property> persistenceProperty = contextRef.getPersistenceProperty(); for (final Property property : persistenceProperty) { final String name = property.getName(); final String value = property.getValue(); info.properties.setProperty(name, value); } info.targets.addAll(buildInjectionInfos(contextRef)); insert( info, appInfo.globalJndiEnc.persistenceContextRefs, appInfo.appJndiEnc.persistenceContextRefs, moduleJndiEnc.persistenceContextRefs, compJndiEnc.persistenceContextRefs ); } }