deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.datastore.sql.transaction.delete
Class TableNode

java.lang.Object
  extended by org.deegree.io.datastore.sql.transaction.delete.TableNode

public class TableNode
extends java.lang.Object

Represents a table row that has to be deleted as part of a Delete operation.

Connected table entries (rows that refer to this row or that are referenced by this row) are also stored.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
TableGraph

Constructor Summary
TableNode(FeatureId fid)
          Creates a new DeleteNode instance for a feature instance.
TableNode(java.lang.String table, java.util.Collection<KeyColumn> keyColumns)
          Creates a new DeleteNode instance.
 
Method Summary
(package private)  void connect(TableNode targetNode)
          Connects this node to the given target node.
 boolean equals(java.lang.Object obj)
           
(package private)  java.util.Collection<KeyColumn> getKeyColumns()
          Returns the key columns that identify the table row.
(package private)  KeyColumn getKeyColumnValue(java.lang.String columnName)
          Returns the value for the given key column name.
(package private)  java.util.Collection<TableNode> getPostNodes()
          Returns the set of post nodes, i.e. table rows that are referenced by this row.
(package private)  java.util.Collection<TableNode> getPreNodes()
          Returns the set of pre nodes, i.e. table rows that refer to this row.
(package private)  java.lang.String getTable()
          Returns the table name.
 int hashCode()
           
(package private)  boolean isDeleteVetoPossible()
           
(package private)  void setDeleteVetoPossible()
           
 java.lang.String toString()
           
(package private)  java.lang.String toString(java.lang.String indent, java.util.Set<TableNode> printedNodes)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableNode

TableNode(java.lang.String table,
          java.util.Collection<KeyColumn> keyColumns)
Creates a new DeleteNode instance.

Parameters:
table -
keyColumns -

TableNode

TableNode(FeatureId fid)
Creates a new DeleteNode instance for a feature instance.

Parameters:
fid -
Method Detail

isDeleteVetoPossible

boolean isDeleteVetoPossible()

setDeleteVetoPossible

void setDeleteVetoPossible()

getTable

java.lang.String getTable()
Returns the table name.

Returns:
the table name

getKeyColumns

java.util.Collection<KeyColumn> getKeyColumns()
Returns the key columns that identify the table row.

Returns:
the key columns that identify the table row

getKeyColumnValue

KeyColumn getKeyColumnValue(java.lang.String columnName)
Returns the value for the given key column name.

Parameters:
columnName -
Returns:
the value for the given key column name

getPostNodes

java.util.Collection<TableNode> getPostNodes()
Returns the set of post nodes, i.e. table rows that are referenced by this row.

Returns:
the set of post nodes

getPreNodes

java.util.Collection<TableNode> getPreNodes()
Returns the set of pre nodes, i.e. table rows that refer to this row.

Returns:
the set of pre nodes

connect

void connect(TableNode targetNode)
Connects this node to the given target node.

NOTE: The target node is the one that stores the primary key.

Parameters:
targetNode -

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

java.lang.String toString(java.lang.String indent,
                          java.util.Set<TableNode> printedNodes)

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org