fi.paatti.containers
Class TaskContainer

java.lang.Object
  extended by com.vaadin.data.util.sqlcontainer.SQLContainer
      extended by fi.paatti.containers.TaskContainer
All Implemented Interfaces:
com.vaadin.data.Container, com.vaadin.data.Container.Filterable, com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.Sortable, Serializable

public class TaskContainer
extends com.vaadin.data.util.sqlcontainer.SQLContainer

An extended SQLContainer has a possibility to add a listener for getting the new row ID after succesful insert to the database.

Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi
See Also:
Serialized Form
 

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.data.util.sqlcontainer.SQLContainer
com.vaadin.data.util.sqlcontainer.SQLContainer.ItemSetChangeEvent
 
Nested classes/interfaces inherited from interface com.vaadin.data.Container
com.vaadin.data.Container.Editor, com.vaadin.data.Container.Filter, com.vaadin.data.Container.Filterable, com.vaadin.data.Container.Hierarchical, com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeListener, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.PropertySetChangeEvent, com.vaadin.data.Container.PropertySetChangeListener, com.vaadin.data.Container.PropertySetChangeNotifier, com.vaadin.data.Container.SimpleFilterable, com.vaadin.data.Container.Sortable, com.vaadin.data.Container.Viewer
 
Field Summary
 
Fields inherited from class com.vaadin.data.util.sqlcontainer.SQLContainer
CACHE_RATIO, DEFAULT_PAGE_LENGTH
 
Constructor Summary
TaskContainer(com.vaadin.data.util.sqlcontainer.query.FreeformQuery query)
          Constructor.
 
Method Summary
 void addNewRowIdChangeListener(NewRowIDListener listener)
          Adds a NewRowIDListener to the list of listeners.
 void removeNewRowIdChangeListener(NewRowIDListener listener)
          Removes a NewRowIDListener from the list of listeners.
 
Methods inherited from class com.vaadin.data.util.sqlcontainer.SQLContainer
addContainerFilter, addContainerFilter, addContainerProperty, addItem, addItem, addItemAfter, addItemAfter, addItemAt, addItemAt, addListener, addListener, addOrderBy, addReference, commit, containsId, enableCacheFlushNotifications, fireContentsChange, firstItemId, getContainerProperty, getContainerPropertyIds, getIdByIndex, getItem, getItemIds, getItemUnfiltered, getPageLength, getQueryDelegate, getReferencedItem, getReferencedItemId, getSortableContainerPropertyIds, getType, indexOfId, isAutoCommit, isFirstId, isLastId, isModified, lastItemId, nextItemId, prevItemId, refresh, removeAllContainerFilters, removeAllItems, removeContainerFilter, removeContainerFilters, removeContainerProperty, removeItem, removeListener, removeListener, removeReference, rollback, setAutoCommit, setPageLength, setReferencedItem, size, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskContainer

public TaskContainer(com.vaadin.data.util.sqlcontainer.query.FreeformQuery query)
              throws SQLException
Constructor.

Parameters:
query - The FreeformQuery to be used.
Throws:
SQLException.
SQLException
Method Detail

addNewRowIdChangeListener

public void addNewRowIdChangeListener(NewRowIDListener listener)
Adds a NewRowIDListener to the list of listeners.

Parameters:
listener - The listener to be added.

removeNewRowIdChangeListener

public void removeNewRowIdChangeListener(NewRowIDListener listener)
Removes a NewRowIDListener from the list of listeners.

Parameters:
listener - The listener to be removed.


Copyright © 2012. All Rights Reserved.