deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.sdeapi
Class Transaction

java.lang.Object
  extended by org.deegree.io.sdeapi.Transaction

public class Transaction
extends Object

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

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $

Constructor Summary
Transaction(String server, int port, String database, String user, String password)
          Creates a new SpatialQuery object.
 
Method Summary
 void closeConnection()
          Close the current connection to the ArcSDE server
throws SeException
 void deleteFeature(String where, Geometry extent)
          deletes a feature from the ArcSDE
 void insertFeature(HashMap<?,?> inRow)
          inserts a feature into the ArcSDE
 void openConnection(String server, int port, String database, String user, String password)
          Connect to the ArcSDE server
throws SeException
 void setLayer(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
 void updateFeature(HashMap<?,?> inRow, String where, Geometry 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
 

Constructor Detail

Transaction

public Transaction(String server,
                   int port,
                   String database,
                   String user,
                   String password)
            throws com.esri.sde.sdk.client.SeException
Creates a new SpatialQuery object.

Parameters:
server -
port -
database -
user -
password -
Throws:
com.esri.sde.sdk.client.SeException
Method Detail

openConnection

public void openConnection(String server,
                           int port,
                           String database,
                           String user,
                           String password)
                    throws com.esri.sde.sdk.client.SeException
Connect to the ArcSDE server
throws SeException

Parameters:
server -
port -
database -
user -
password -
Throws:
com.esri.sde.sdk.client.SeException

closeConnection

public void closeConnection()
                     throws com.esri.sde.sdk.client.SeException
Close the current connection to the ArcSDE server
throws SeException

Throws:
com.esri.sde.sdk.client.SeException

setLayer

public void setLayer(String layername)
              throws com.esri.sde.sdk.client.SeException
Set a SDE layer to work on and appropriate table
throws SeException

Parameters:
layername -
Throws:
com.esri.sde.sdk.client.SeException

setSpatialFilter

public void setSpatialFilter(double minx,
                             double miny,
                             double maxx,
                             double maxy)
                      throws com.esri.sde.sdk.client.SeException
Set a SpatialFilter to Query (BoundingBox)
throws SeException

Parameters:
minx -
miny -
maxx -
maxy -
Throws:
com.esri.sde.sdk.client.SeException

insertFeature

public void insertFeature(HashMap<?,?> inRow)
                   throws com.esri.sde.sdk.client.SeException,
                          DeegreeSeException
inserts a feature into the ArcSDE

Parameters:
inRow - feature/row to be inserted
Throws:
com.esri.sde.sdk.client.SeException
DeegreeSeException

updateFeature

public void updateFeature(HashMap<?,?> inRow,
                          String where,
                          Geometry extent)
                   throws com.esri.sde.sdk.client.SeException,
                          DeegreeSeException
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:
com.esri.sde.sdk.client.SeException
DeegreeSeException

deleteFeature

public void deleteFeature(String where,
                          Geometry extent)
                   throws com.esri.sde.sdk.client.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:
com.esri.sde.sdk.client.SeException

deegree 2.3 (2010/04/09 10:10 build-4-official)

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