org.deegree_impl.services.wfs.db
Class PointRowSelector

java.lang.Object
  extended byorg.deegree_impl.services.wfs.RowSelector
      extended byorg.deegree_impl.services.wfs.db.PointRowSelector

public class PointRowSelector
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.4 $ $Date: 2004/02/23 07:47:51 $
Author:
Field Summary
 
Fields inherited from class org.deegree_impl.services.wfs.RowSelector
con, ft, keyfield, keys, osa, table, type
 
Constructor Summary
PointRowSelector(TableDescription table, java.lang.String keyfield, java.util.Set keys, DBAccess osa, FeatureType ft)
          Creates a new instance of RowSelector
 
Method Summary
private  double[] getCoordValues(java.lang.String gml)
          Returns the double values of the coordinates of the given GMLPointXML-fragment.
 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

PointRowSelector

public PointRowSelector(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:
  • s[0]: fieldName (name of the field of the table)
  • s[1]: new value for the field

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

getCoordValues

private double[] getCoordValues(java.lang.String gml)
                         throws java.lang.Exception
Returns the double values of the coordinates of the given GMLPointXML-fragment.

Returns:
[0]: x-coordinate, [1]: y-coordinate
Throws:
java.lang.Exception - if the XML-fragment is not consistent or parseable