org.jdesktop.dataset.provider.sql
Class WebRowSetDataProvider

java.lang.Object
  extended by org.jdesktop.dataset.DataProvider
      extended by org.jdesktop.dataset.provider.sql.WebRowSetDataProvider

public class WebRowSetDataProvider
extends DataProvider

Takes webrowset XML and uses it to populate a DataTable. This particular DataProvider will drop all of the columns from the DataTable and add new columns back in based on the meta data in the XML.

Author:
Richard Bair

Constructor Summary
WebRowSetDataProvider()
          Creates a new instance of WebRowSetDataProvider
 
Method Summary
protected  LoadTask createLoadTask(DataTable[] tables)
          Creates a Task that loads data from the data store into one or more DataTables.
protected  SaveTask createSaveTask(DataTable[] tables)
          Creates a task that saves data from an array of DataTables to the data store.
 java.lang.Runnable getCompletionRunnable()
           
 java.lang.Runnable getMetadataCompleteRunnable()
           
 java.net.URL getUrl()
           
 void setCompletionRunnable(java.lang.Runnable completionRunnable)
           
 void setMetadataCompleteRunnable(java.lang.Runnable metadataCompleteRunnable)
           
 void setUrl(java.net.URL url)
           
 
Methods inherited from class org.jdesktop.dataset.DataProvider
addPropertyChangeListener, addPropertyChangeListener, getCommand, getConnection, load, load, loadAndWait, loadAndWait, removePropertyChangeListener, runTask, runTaskAndWait, save, save, saveAndWait, saveAndWait, setCommand, setConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebRowSetDataProvider

public WebRowSetDataProvider()
Creates a new instance of WebRowSetDataProvider

Method Detail

createSaveTask

protected SaveTask createSaveTask(DataTable[] tables)
Description copied from class: DataProvider
Creates a task that saves data from an array of DataTables to the data store. All of these tables will be saved serially on the same background thread.

Specified by:
createSaveTask in class DataProvider

createLoadTask

protected LoadTask createLoadTask(DataTable[] tables)
Description copied from class: DataProvider
Creates a Task that loads data from the data store into one or more DataTables. All of these tables will be loaded serially using the same background thread.

Specified by:
createLoadTask in class DataProvider

getUrl

public java.net.URL getUrl()

setUrl

public void setUrl(java.net.URL url)

getCompletionRunnable

public java.lang.Runnable getCompletionRunnable()

setCompletionRunnable

public void setCompletionRunnable(java.lang.Runnable completionRunnable)

getMetadataCompleteRunnable

public java.lang.Runnable getMetadataCompleteRunnable()

setMetadataCompleteRunnable

public void setMetadataCompleteRunnable(java.lang.Runnable metadataCompleteRunnable)


Copyright © 2005 Sun Microsystems All Rights Reserved.