Package org.jboss.system.server.profileservice.persistence.xml

Examples of org.jboss.system.server.profileservice.persistence.xml.PersistedCompositeValue


     
      // The objectName
      PersistedProperty pp = restoredElement.getProperties().get(1);
      assertNotNull(pp);
     
      PersistedCompositeValue pcv = (PersistedCompositeValue) pp.getValue();
      assertNotNull(pcv);
     
      PersistedSimpleValue psv = (PersistedSimpleValue) pcv.getValues().get(0);
      assertEquals("domain", psv.getName());
      assertEquals("org.jboss", psv.getValue());
     
      PersistedPropertiesValue ppv = (PersistedPropertiesValue) pcv.getValues().get(1);
      assertEquals("keyPropertyList", ppv.getName());
      assertEquals(2, ppv.getEntries().size());
     
      // The other object name
      PersistedProperty po = restoredElement.getProperties().get(0);
View Full Code Here


    * @param the persisted composite value
    * @return the persistence composite xml meta data
    */
   protected PersistedCompositeValue createCompositeValue(CompositeValue value, CompositeMetaType metaType)
   {
      PersistedCompositeValue composite = new PersistedCompositeValue();
      // Fix the values
      List<PersistedValue> values = composite.getValues();
      if(values == null)
      {
         values = new ArrayList<PersistedValue>();
         composite.setValues(values);
      }
      for(String item : metaType.itemSet())
      {
         MetaType itemType = metaType.getType(item);
         MetaValue itemValue = value.get(item);
View Full Code Here

      {
         return new PersistedGenericValue();
      }
      else if(metaType.isComposite())
      {
         return new PersistedCompositeValue();
      }
      else if(metaType.isTable())
      {
         return new PersistedTableValue();
      }
View Full Code Here

TOP

Related Classes of org.jboss.system.server.profileservice.persistence.xml.PersistedCompositeValue

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.