|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wfs.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.
Due to the use of PreparedStatements this class should be generic, but for Geometry-fields, the updateRows()-method has to be overwritten in a specific class.
Field Summary | |
protected java.sql.Connection |
con
|
protected FeatureType |
ft
|
protected java.lang.String |
keyfield
|
protected java.util.Set |
keys
|
protected DBAccess |
osa
|
protected TableDescription |
table
|
protected int |
type
|
Constructor Summary | |
RowSelector(TableDescription table,
java.lang.String keyfield,
java.util.Set keys,
DBAccess osa,
FeatureType ft)
Creates a new instance of RowSelector |
Method Summary | |
void |
deleteRows()
Deletes the selected rows from the table. |
RowSelector[] |
getReferencedRows()
Creates new RowSelector-objects that represent the rows in other tables that are referenced from the current table's rows. |
java.lang.String |
getTableName()
Returns the associated table name. |
protected void |
setFieldValue(java.sql.PreparedStatement stmt,
int i,
int type,
java.lang.String value,
java.lang.String field)
Convenience method that calls the right setXXX ()-method for the given PreparedStatment. |
java.lang.String |
toString()
Produces a String representation of this object. |
void |
updateRows(java.util.ArrayList changeList)
Updates the selected rows of the table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected TableDescription table
protected java.util.Set keys
protected java.lang.String keyfield
protected int type
protected DBAccess osa
protected FeatureType ft
protected java.sql.Connection con
Constructor Detail |
public RowSelector(TableDescription table, java.lang.String keyfield, java.util.Set keys, DBAccess osa, FeatureType ft) throws java.sql.SQLException
Method Detail |
public java.lang.String getTableName()
public RowSelector[] getReferencedRows() throws java.sql.SQLException
java.sql.SQLException
public void deleteRows() throws java.sql.SQLException
java.sql.SQLException
public void updateRows(java.util.ArrayList changeList) throws java.sql.SQLException
changeList
- list of changes to be performed
java.sql.SQLException
public java.lang.String toString()
protected void setFieldValue(java.sql.PreparedStatement stmt, int i, int type, java.lang.String value, java.lang.String field) throws java.sql.SQLException
stmt
- the PreparedStatement to be "filled"i
- index of the field to be settype
- java.sql.Types-constant for the field typevalue
- new String value for the field
java.sql.SQLException
- if the conversion of the String failed (for example
in the case of Integers or Dates)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |