Class RowItem
- java.lang.Object
-
- com.vaadin.data.util.sqlcontainer.RowItem
-
- All Implemented Interfaces:
Item,Serializable
public final class RowItem extends Object implements Item
RowItem represents one row of a result set obtained from a QueryDelegate. Note that depending on the QueryDelegate in use this does not necessarily map into an actual row in a database table.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.data.Item
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer
-
-
Constructor Summary
Constructors Constructor Description RowItem(SQLContainer container, RowId id, Collection<ColumnProperty> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddItemProperty(Object id, Property property)Adding properties is not supported.voidcommit()SQLContainergetContainer()RowIdgetId()PropertygetItemProperty(Object id)Gets the Property corresponding to the given Property ID stored in the Item.Collection<?>getItemPropertyIds()Gets the collection of IDs of all Properties stored in the Item.booleanisModified()booleanremoveItemProperty(Object id)Removing properties is not supported.StringtoString()
-
-
-
Constructor Detail
-
RowItem
public RowItem(SQLContainer container, RowId id, Collection<ColumnProperty> properties)
-
-
Method Detail
-
getItemProperty
public Property getItemProperty(Object id)
Description copied from interface:ItemGets the Property corresponding to the given Property ID stored in the Item. If the Item does not contain the Property,nullis returned.- Specified by:
getItemPropertyin interfaceItem- Parameters:
id- identifier of the Property to get- Returns:
- the Property with the given ID or
null
-
getItemPropertyIds
public Collection<?> getItemPropertyIds()
Description copied from interface:ItemGets the collection of IDs of all Properties stored in the Item.- Specified by:
getItemPropertyIdsin interfaceItem- Returns:
- unmodifiable collection containing IDs of the Properties stored the Item
-
addItemProperty
public boolean addItemProperty(Object id, Property property) throws UnsupportedOperationException
Adding properties is not supported. Properties are generated by SQLContainer.- Specified by:
addItemPropertyin interfaceItem- Parameters:
id- ID of the new Propertyproperty- the Property to be added and associated with the id- Returns:
trueif the operation succeeded,falseif not- Throws:
UnsupportedOperationException- if the operation is not supported.
-
removeItemProperty
public boolean removeItemProperty(Object id) throws UnsupportedOperationException
Removing properties is not supported. Properties are generated by SQLContainer.- Specified by:
removeItemPropertyin interfaceItem- Parameters:
id- ID of the Property to be removed- Returns:
trueif the operation succeeded- Throws:
UnsupportedOperationException- if the operation is not supported.falseif not
-
getId
public RowId getId()
-
getContainer
public SQLContainer getContainer()
-
isModified
public boolean isModified()
-
commit
public void commit()
-
-