org.deegree_impl.io.sdeapi
Class Transaction

java.lang.Object
  extended byorg.deegree_impl.io.sdeapi.Transaction

public class Transaction
extends java.lang.Object

the class offers access to the transactional behavior of the a connection to ArcSDE

Version:
$Revision: 1.8 $ $Date: 2004/03/15 07:34:39 $

Field Summary
private  java.util.HashMap colDefs
           
private  java.util.ArrayList colDefsList
           
private  SeConnection conn
           
private  SeLayer layer
           
private  SeShape spatialFilter
           
 
Constructor Summary
Transaction(java.lang.String server, int port, java.lang.String database, java.lang.String user, java.lang.String password)
          Creates a new SpatialQuery object.
 
Method Summary
 void closeConnection()
          Close the current connection to the ArcSDE server
throws SeException
 void deleteFeature(java.lang.String where, GM_Object extent)
          deletes a feature from the ArcSDE
 void insertFeature(java.util.HashMap inRow)
          inserts a feature into the ArcSDE
 void openConnection(java.lang.String server, int port, java.lang.String database, java.lang.String user, java.lang.String password)
          Connect to the ArcSDE server
throws SeException
 void setLayer(java.lang.String layername)
          Set a SDE layer to work on and appropriate table
throws SeException
 void setSpatialFilter(double minx, double miny, double maxx, double maxy)
          Set a SpatialFilter to Query (BoundingBox)
throws SeException
private  SeRow setValue(SeRow row, int pos, int type, java.lang.Object value, SeCoordinateReference crs)
          fills the passed row with the also passed value considering its type
 void updateFeature(java.util.HashMap inRow, java.lang.String where, GM_Object extent)
          updates a feature of the ArcSDE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

private SeConnection conn

layer

private SeLayer layer

colDefs

private java.util.HashMap colDefs

colDefsList

private java.util.ArrayList colDefsList

spatialFilter

private SeShape spatialFilter
Constructor Detail

Transaction

public Transaction(java.lang.String server,
                   int port,
                   java.lang.String database,
                   java.lang.String user,
                   java.lang.String password)
            throws SeException
Creates a new SpatialQuery object.

Parameters:
server -
port -
database -
user -
password -
Throws:
SeException
Method Detail

openConnection

public void openConnection(java.lang.String server,
                           int port,
                           java.lang.String database,
                           java.lang.String user,
                           java.lang.String password)
                    throws SeException
Connect to the ArcSDE server
throws SeException

Throws:
SeException

closeConnection

public void closeConnection()
                     throws SeException
Close the current connection to the ArcSDE server
throws SeException

Throws:
SeException

setLayer

public void setLayer(java.lang.String layername)
              throws SeException
Set a SDE layer to work on and appropriate table
throws SeException

Throws:
SeException

setSpatialFilter

public void setSpatialFilter(double minx,
                             double miny,
                             double maxx,
                             double maxy)
                      throws SeException
Set a SpatialFilter to Query (BoundingBox)
throws SeException

Throws:
SeException

insertFeature

public void insertFeature(java.util.HashMap inRow)
                   throws SeException
inserts a feature into the ArcSDE

Parameters:
inRow - feature/row to be inserted
Throws:
SeException

setValue

private SeRow setValue(SeRow row,
                       int pos,
                       int type,
                       java.lang.Object value,
                       SeCoordinateReference crs)
                throws SeException
fills the passed row with the also passed value considering its type

Parameters:
row - SDE row to insert
pos - position where to set the value in the row
type - value type
value - value to insert
Throws:
SeException

updateFeature

public void updateFeature(java.util.HashMap inRow,
                          java.lang.String where,
                          GM_Object extent)
                   throws SeException
updates a feature of the ArcSDE

Parameters:
inRow - update data
where - none spatial condtions to limit the targeted rows
extent - spatial condtion to limit the targeted rows (not considered yet)
Throws:
SeException

deleteFeature

public void deleteFeature(java.lang.String where,
                          GM_Object extent)
                   throws SeException
deletes a feature from the ArcSDE

Parameters:
where - none spatial condtions to limit the targeted rows
extent - spatial condtion to limit the targeted rows (not considered yet)
Throws:
SeException