proprietary.datasources.arcsde
Class UpdateableArcSDEDataSource

java.lang.Object
  extended bygistoolkit.datasources.SimpleDataSource
      extended bygistoolkit.datasources.SimpleDBDataSource
          extended byproprietary.datasources.arcsde.ArcSDEDataSource
              extended byproprietary.datasources.arcsde.UpdateableArcSDEDataSource
All Implemented Interfaces:
DataSource

public class UpdateableArcSDEDataSource
extends ArcSDEDataSource

Retrieves data from an ArcSDEDataSource.

Version:
0.1
Author:
tomluxj

Field Summary
 
Fields inherited from class gistoolkit.datasources.SimpleDataSource
 
Constructor Summary
UpdateableArcSDEDataSource()
          Creates new ArcSDEDataSource
 
Method Summary
 void commit()
          Commit all changes since the last commit.
 void doDelete(Record inRecord)
          Delete this record from the database.
 void doInsert(Record inRecord)
          Inserts the given record into the datasource.
 void doUpdate(Record inRecord)
          Update the data source with the changed record.
 Node getNode()
          Get the configuration information for this data source
 boolean isUpdateable()
          Returns true.
 void rollback()
          Rollback any changes to this datasource since the last commit.
 void setNode(Node inNode)
          Set the configuration information for this data source
 
Methods inherited from class proprietary.datasources.arcsde.ArcSDEDataSource
connect, getDatabaseName, getMaxX, getMaxY, getMinX, getMinY, getPassword, getPortNumber, getServername, getStyle, getTableName, getUsername, load, main, readEnvelope, readShapes, setDatabaseName, setMaxX, setMaxY, setMinX, setMinY, setPassword, setPortNumber, setServername, setTableName, setUsername
 
Methods inherited from class gistoolkit.datasources.SimpleDBDataSource
getFilter, getFilterSQL, getSQLConverter, setFilter
 
Methods inherited from class gistoolkit.datasources.SimpleDataSource
addDataSourceListener, clearCache, delete, doCommit, doRollback, filterDataset, fireCommit, fireDelete, fireInsert, fireRead, fireRollBack, fireUpdate, getCached, getCacheDataset, getCacheEnvelope, getEnvelope, getFromProjection, getName, getToProjection, getValidShapeTypes, insert, isCachedProjected, projectBackward, projectForward, queryFromCache, readDataset, readDataset, removeDataSourceListener, setCache, setCached, setFromProjection, setName, setProjection, setToProjection, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateableArcSDEDataSource

public UpdateableArcSDEDataSource()
Creates new ArcSDEDataSource

Method Detail

isUpdateable

public boolean isUpdateable()
Returns true.

Specified by:
isUpdateable in interface DataSource
Overrides:
isUpdateable in class SimpleDataSource
Returns:
always true

doInsert

public void doInsert(Record inRecord)
              throws java.lang.Exception
Inserts the given record into the datasource.

Overrides:
doInsert in class SimpleDataSource
Parameters:
inRecord - Record to insert
Throws:
java.lang.Exception

doUpdate

public void doUpdate(Record inRecord)
              throws java.lang.Exception
Update the data source with the changed record. By default this is a read only data source, so this method does nothing.

Overrides:
doUpdate in class SimpleDataSource
Parameters:
inRecord - Record to update
Throws:
java.lang.Exception

doDelete

public void doDelete(Record inRecord)
              throws java.lang.Exception
Delete this record from the database. By default this is a read only data source, so this method does nothing.

Overrides:
doDelete in class SimpleDataSource
Parameters:
inRecord -
Throws:
java.lang.Exception

commit

public void commit()
            throws java.lang.Exception
Commit all changes since the last commit. This is a read only data source by default, so this method does nothing.

Specified by:
commit in interface DataSource
Overrides:
commit in class SimpleDataSource
Throws:
java.lang.Exception

rollback

public void rollback()
              throws java.lang.Exception
Rollback any changes to this datasource since the last commit.

Specified by:
rollback in interface DataSource
Overrides:
rollback in class SimpleDataSource
Throws:
java.lang.Exception

getNode

public Node getNode()
Get the configuration information for this data source

Specified by:
getNode in interface DataSource
Overrides:
getNode in class ArcSDEDataSource

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set the configuration information for this data source

Specified by:
setNode in interface DataSource
Overrides:
setNode in class ArcSDEDataSource
Throws:
java.lang.Exception