Package org.jboss.metadata.javaee.spec

Examples of org.jboss.metadata.javaee.spec.PropertiesMetaData


                    BindingConfiguration bindingConfiguration = null;
                    if (!isEmpty(lookup)) {
                        bindingConfiguration = new BindingConfiguration(name, new LookupInjectionSource(lookup));
                    } else if (!isEmpty(persistenceUnitName)) {
                        PropertiesMetaData properties = puRef.getProperties();
                        Map map = new HashMap();
                        if (properties != null) {
                            for (PropertyMetaData prop : properties) {
                                map.put(prop.getKey(), prop.getValue());
                            }
View Full Code Here


                BindingConfiguration bindingConfiguration = null;
                if (!isEmpty(lookup)) {
                    bindingConfiguration = new BindingConfiguration(name, new LookupInjectionSource(lookup));
                } else if (!isEmpty(persistenceUnitName)) {
                    PropertiesMetaData properties = puRef.getProperties();
                    Map map = new HashMap();
                    if (properties != null) {
                        for (PropertyMetaData prop : properties) {
                            map.put(prop.getKey(), prop.getValue());
                        }
View Full Code Here

/*  80 */     ref.setPersistenceContextType(type);
/*     */
/*  82 */     PersistenceProperty[] properties = annotation.properties();
/*  83 */     if (properties.length > 0)
/*     */     {
/*  85 */       PropertiesMetaData refProperties = new PropertiesMetaData();
/*  86 */       for (PersistenceProperty p : properties)
/*     */       {
/*  88 */         PropertyMetaData pmd = new PropertyMetaData();
/*  89 */         pmd.setName(p.name());
/*  90 */         pmd.setValue(p.value());
/*  91 */         refProperties.add(pmd);
/*     */       }
/*  93 */       ref.setProperties(refProperties);
/*     */     }
/*     */
/*  96 */     Set injectionTargets = ProcessorUtils.getInjectionTargets(name, element);
View Full Code Here

                BindingConfiguration bindingConfiguration = null;
                if (!isEmpty(lookup)) {
                    bindingConfiguration = new BindingConfiguration(name, new LookupInjectionSource(lookup));
                } else if (!isEmpty(persistenceUnitName)) {
                    PropertiesMetaData properties = puRef.getProperties();
                    Map map = new HashMap();
                    if (properties != null) {
                        for (PropertyMetaData prop : properties) {
                            map.put(prop.getKey(), prop.getValue());
                        }
View Full Code Here

                    break;
                case PERSISTENCE_UNIT_NAME:
                    pcReference.setPersistenceUnitName(reader.getElementText());
                    break;
                case PERSISTENCE_PROPERTY:
                    PropertiesMetaData properties = pcReference.getProperties();
                    if (properties == null) {
                        properties = new PropertiesMetaData();
                        pcReference.setProperties(properties);
                    }
                    properties.add(PropertyMetaDataParser.parse(reader));
                    break;
                default: throw unexpectedElement(reader);
            }
        }
View Full Code Here

                    break;
                case PASSWORD:
                    dataSource.setPassword(reader.getElementText());
                    break;
                case PROPERTY:
                    PropertiesMetaData properties = dataSource.getProperties();
                    if (properties == null) {
                        properties = new PropertiesMetaData();
                        dataSource.setProperties(properties);
                    }
                    properties.add(PropertyMetaDataParser.parse(reader));
                    break;
                case LOGIN_TIMEOUT:
                    dataSource.setLoginTimeout(Integer.valueOf(reader.getElementText()));
                    break;
                case TRANSACTIONAL:
View Full Code Here

TOP

Related Classes of org.jboss.metadata.javaee.spec.PropertiesMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.