org.deegree_impl.services.wfs.postgis
Class PostgisRowSelector

java.lang.Object
  extended byorg.deegree_impl.services.wfs.RowSelector
      extended byorg.deegree_impl.services.wfs.postgis.PostgisRowSelector

public class PostgisRowSelector
extends RowSelector

Encapsulates selected rows of a table that are identified by a table, a Set of key values, and a keyfield. Used in the processing of WFSDelete-requests.

Adds Point-DB specific handling of Update-Requests to the base class.

Version:
$Revision: 1.5 $ $Date: 2004/02/23 07:47:51 $
Author:
Andreas Poth

Field Summary
 
Fields inherited from class org.deegree_impl.services.wfs.RowSelector
con, ft, keyfield, keys, osa, table, type
 
Constructor Summary
PostgisRowSelector(TableDescription table, java.lang.String keyfield, java.util.Set keys, DBAccess osa, FeatureType ft)
          Creates a new instance of RowSelector
 
Method Summary
 RowSelector[] getReferencedRows()
          Creates new RowSelector-objects that represent the rows in other tables that are referenced from the current table's rows.
 void updateRows(java.util.ArrayList changeList)
          Updates the selected rows of the table.
 
Methods inherited from class org.deegree_impl.services.wfs.RowSelector
deleteRows, getTableName, setFieldValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PostgisRowSelector

public PostgisRowSelector(TableDescription table,
                          java.lang.String keyfield,
                          java.util.Set keys,
                          DBAccess osa,
                          FeatureType ft)
                   throws java.sql.SQLException
Creates a new instance of RowSelector

Method Detail

getReferencedRows

public RowSelector[] getReferencedRows()
                                throws java.sql.SQLException
Creates new RowSelector-objects that represent the rows in other tables that are referenced from the current table's rows.

Overrides:
getReferencedRows in class RowSelector
Returns:
the referenced rows represented by new RowSelectors
Throws:
java.sql.SQLException

updateRows

public void updateRows(java.util.ArrayList changeList)
                throws java.sql.SQLException
Updates the selected rows of the table. The changes to be performed are given as an ArrayList of String-Arrays s [] of the following form:

Overrides:
updateRows in class RowSelector
Parameters:
changeList - list of changes to be performed
Throws:
java.sql.SQLException