|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.data.util.sqlcontainer.RowItem
public final class RowItem
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.
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 | |
---|---|
RowItem(SQLContainer container,
RowId id,
java.util.Collection<ColumnProperty> properties)
|
Method Summary | |
---|---|
boolean |
addItemProperty(java.lang.Object id,
Property property)
Adding properties is not supported. |
void |
commit()
|
SQLContainer |
getContainer()
|
RowId |
getId()
|
Property |
getItemProperty(java.lang.Object id)
Gets the Property corresponding to the given Property ID stored in the Item. |
java.util.Collection<?> |
getItemPropertyIds()
Gets the collection of IDs of all Properties stored in the Item. |
boolean |
isModified()
|
boolean |
removeItemProperty(java.lang.Object id)
Removing properties is not supported. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RowItem(SQLContainer container, RowId id, java.util.Collection<ColumnProperty> properties)
Method Detail |
---|
public Property getItemProperty(java.lang.Object id)
Item
null
is
returned.
getItemProperty
in interface Item
id
- identifier of the Property to get
null
public java.util.Collection<?> getItemPropertyIds()
Item
getItemPropertyIds
in interface Item
public boolean addItemProperty(java.lang.Object id, Property property) throws java.lang.UnsupportedOperationException
addItemProperty
in interface Item
id
- ID of the new Propertyproperty
- the Property to be added and associated with the id
true
if the operation succeeded, false
if not
java.lang.UnsupportedOperationException
- if the operation is not supported.public boolean removeItemProperty(java.lang.Object id) throws java.lang.UnsupportedOperationException
removeItemProperty
in interface Item
id
- ID of the Property to be removed
true
if the operation succeeded
java.lang.UnsupportedOperationException
- if the operation is not supported. false
if notpublic RowId getId()
public SQLContainer getContainer()
public boolean isModified()
public java.lang.String toString()
toString
in class java.lang.Object
public void commit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |