@Test(expected = ReadOnlyException.class) public void testPropertyValue_Unbuffered_ReadOnly_throwsException() { entity.setFirstName("Joe"); entity.setLastName("Cool"); item.getItemProperty("fullName").setValue("Blah"); }
public EntityItemProperty getItemProperty(Object id) { assert id != null : "id must not be null"; ItemProperty p = propertyMap.get(id); if (p == null) { if (!getItemPropertyIds().contains(id.toString())) { return null; } p = new ItemProperty(id.toString()); propertyMap.put(id, p); } return p; }
JPAContainerItem implements EntityItem<T> { public EntityItemProperty getItemProperty(Object id) { assert id != null : "id must not be null"; ItemProperty p = propertyMap.get(id); if (p == null) { if (!getItemPropertyIds().contains(id.toString())) { return null; } p = new ItemProperty(id.toString()); propertyMap.put(id, p); } return p; } }
JPAContainerItem implements EntityItem<T> { public EntityItemProperty getItemProperty(Object id) { assert id != null : "id must not be null"; ItemProperty p = propertyMap.get(id); if (p == null) { if (!getItemPropertyIds().contains(id.toString())) { return null; } p = new ItemProperty(id.toString()); propertyMap.put(id, p); } return p; } JPAContainerItem(JPAContainer<T> container, T entity);   JPAContainerItem(JPAContainer<T> container, T entity, Object itemId,
            boolean persistent); }
JPAContainerItem implements EntityItem<T> { public EntityItemProperty getItemProperty(Object id) { assert id != null : "id must not be null"; ItemProperty p = propertyMap.get(id); if (p == null) { if (!getItemPropertyIds().contains(id.toString())) { return null; } p = new ItemProperty(id.toString()); propertyMap.put(id, p); } return p; } JPAContainerItem(JPAContainer<T> container, T entity);   JPAContainerItem(JPAContainer<T> container, T entity, Object itemId,
            boolean persistent); Object getItemId(); boolean addItemProperty(Object id, Property property); void addNestedContainerProperty(String nestedProperty); EntityItemProperty getItemProperty(Object id); Collection<String> getItemPropertyIds(); boolean removeItemProperty(Object id); boolean isModified(); boolean isDirty(); boolean isPersistent(); boolean isDeleted(); EntityContainer<T> getContainer(); T getEntity(); void commit(); void discard(); boolean isReadThrough(); boolean isWriteThrough(); void setReadThrough(boolean readThrough); void setWriteThrough(boolean writeThrough); void addListener(ValueChangeListener listener); void removeListener(ValueChangeListener listener); void addValueChangeListener(ValueChangeListener listener); void removeValueChangeListener(ValueChangeListener listener); @Override String toString(); @SuppressWarnings("serial") void refresh(); void setBuffered(boolean buffered); boolean isBuffered(); }
JPAContainerItem implements EntityItem<T> { public EntityItemProperty getItemProperty(Object id) { assert id != null : "id must not be null"; ItemProperty p = propertyMap.get(id); if (p == null) { if (!getItemPropertyIds().contains(id.toString())) { return null; } p = new ItemProperty(id.toString()); propertyMap.put(id, p); } return p; } JPAContainerItem(JPAContainer<T> container, T entity);   JPAContainerItem(JPAContainer<T> container, T entity, Object itemId,
            boolean persistent); Object getItemId(); boolean addItemProperty(Object id, Property property); void addNestedContainerProperty(String nestedProperty); EntityItemProperty getItemProperty(Object id); Collection<String> getItemPropertyIds(); boolean removeItemProperty(Object id); boolean isModified(); boolean isDirty(); boolean isPersistent(); boolean isDeleted(); EntityContainer<T> getContainer(); T getEntity(); void commit(); void discard(); boolean isReadThrough(); boolean isWriteThrough(); void setReadThrough(boolean readThrough); void setWriteThrough(boolean writeThrough); void addListener(ValueChangeListener listener); void removeListener(ValueChangeListener listener); void addValueChangeListener(ValueChangeListener listener); void removeValueChangeListener(ValueChangeListener listener); @Override String toString(); @SuppressWarnings("serial") void refresh(); void setBuffered(boolean buffered); boolean isBuffered();  }