@SuppressWarnings("unchecked") public int size() { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).size(); }
propertyWrapper.setValue(value);
propertyWrapper.setValue(value);
wrapper = new PropertyWrapper(); propertiesMap.put(propertyName, wrapper); Object wrapperValue = wrapper.getValue(); if (wrapperValue instanceof ValueHolderInterface) { ValueHolderInterface vh = (ValueHolderInterface) wrapperValue; wrapper.isSet(true); wrapper.setValue(value); wrapper.isSet(true);
wrapper = new PropertyWrapper(); propertiesMap.put(propertyName, wrapper); Object value = wrapper.getValue();
wrapper = new PropertyWrapper(); propertiesMap.put(propertyName, wrapper); Object wrapperValue = wrapper.getValue(); if (wrapperValue instanceof ValueHolderInterface) { ValueHolderInterface vh = (ValueHolderInterface) wrapperValue; wrapper.isSet(true); wrapper.setValue(value); wrapper.isSet(true);
wrapper = new PropertyWrapper(); propertiesMap.put(propertyName, wrapper); Object value = wrapper.getValue();
public boolean isSet(String propertyName) throws DynamicException { if (fetchPropertiesManager().contains(propertyName)) { if (_persistence_getFetchGroup() != null && !_persistence_getFetchGroup().containsAttributeInternal(propertyName)) { return false; } PropertyWrapper wrapper = propertiesMap.get(propertyName); if (wrapper == null) { // properties can be added after constructor is called wrapper = new PropertyWrapper(); propertiesMap.put(propertyName, wrapper); } return wrapper.isSet(); } else { throw DynamicException.invalidPropertyName(fetchPropertiesManager().getType(), propertyName); } }
public boolean isSet(String propertyName) throws DynamicException { if (fetchPropertiesManager().contains(propertyName)) { if (_persistence_getFetchGroup() != null && !_persistence_getFetchGroup().containsAttributeInternal(propertyName)) { return false; } PropertyWrapper wrapper = propertiesMap.get(propertyName); if (wrapper == null) { // properties can be added after constructor is called wrapper = new PropertyWrapper(); propertiesMap.put(propertyName, wrapper); } return wrapper.isSet(); } else { throw DynamicException.invalidPropertyName(fetchPropertiesManager().getType(), propertyName); } }
public void setAttributeValueInObject(Object entity, Object value) throws DescriptorException { Map<String, PropertyWrapper> propertiesMap = ((XRDynamicEntity)entity).getPropertiesMap(); PropertyWrapper wrapper = propertiesMap.get(attributeName); if (value instanceof ValueHolderInterface) { // ValueHolders go directly into the PropertyWrapper wrapper.setValue(value); } else { if (!wrapper.isSet()) { wrapper.setValue(new ValueHolder(value)); } else { ((ValueHolderInterface)wrapper.getValue()).setValue(value); } } } }
public void setAttributeValueInObject(Object entity, Object value) throws DescriptorException { Map<String, PropertyWrapper> propertiesMap = ((XRDynamicEntity)entity).getPropertiesMap(); PropertyWrapper wrapper = propertiesMap.get(attributeName); if (value instanceof ValueHolderInterface) { // ValueHolders go directly into the PropertyWrapper wrapper.setValue(value); } else { if (!wrapper.isSet()) { wrapper.setValue(new ValueHolder(value)); } else { ((ValueHolderInterface)wrapper.getValue()).setValue(value); } } } }
@SuppressWarnings("unchecked") public boolean containsAll(Collection<?> c) { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).containsAll(c); }
@SuppressWarnings("unchecked") public Iterator<Object> iterator() { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).iterator(); }
@SuppressWarnings("unchecked") public boolean add(Object e) { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).add(e); }
@SuppressWarnings("unchecked") public boolean removeAll(Collection<?> c) { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).removeAll(c); }
@SuppressWarnings("unchecked") public boolean isEmpty() { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).isEmpty(); }
@SuppressWarnings("unchecked") public void clear() { ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).clear(); }
@SuppressWarnings("unchecked") public boolean remove(Object o) { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).remove(o); }
@SuppressWarnings("unchecked") public boolean isEmpty() { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).isEmpty(); }
@SuppressWarnings("unchecked") public Object[] toArray() { return ((Collection<Object>)propertiesMap.get(ITEMS_PROPERTY).getValue()).toArray(); }