|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.SimpleDataSource
gistoolkit.datasources.shapefile.ShapeFileDataSource
A data source bassed on a shape file.
Field Summary |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
ShapeFileDataSource()
create a new shape file, it is non functional until setFileName is called. |
|
ShapeFileDataSource(java.lang.String inName)
create a new shape file with the given name. |
Method Summary | |
void |
commit()
Commit the data since the last commit. |
void |
doDelete(Record inRecord)
Deletes the data from the datasource. |
void |
doInsert(Record inRecord)
Insert the data source. |
void |
doUpdate(Record inRecord)
Update the data source with the changed record. |
java.lang.String |
getName()
Insert the method's description here. |
Node |
getNode()
Get the configuration information for this data source |
boolean |
isUpdateable()
Returns true |
void |
load(java.util.Properties inProperties)
set the properties of this datasource. |
Envelope |
readEnvelope()
Returns the bounding rectangle of all the shapes in the shape file. |
protected GISDataset |
readShapes(Envelope inEnvelope)
This method should return the shapes from the data source |
void |
rollback()
Rollback any changes to this datasource since the last commit. |
void |
setFileName(java.lang.String inName)
Set the file name for the data source do not include the extension. |
void |
setName(java.lang.String newName)
Set the name of the DataSource. |
void |
setNode(Node inNode)
Set the configuration information for this data source |
Methods inherited from class gistoolkit.datasources.SimpleDataSource |
addDataSourceListener, clearCache, delete, doCommit, doRollback, filterDataset, fireCommit, fireDelete, fireInsert, fireRead, fireRollBack, fireUpdate, getCached, getCacheDataset, getCacheEnvelope, getEnvelope, getFilter, getFromProjection, getStyle, getToProjection, getValidShapeTypes, insert, isCachedProjected, projectBackward, projectForward, queryFromCache, readDataset, readDataset, removeDataSourceListener, setCache, setCached, setFilter, setFromProjection, setProjection, setToProjection, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeFileDataSource()
public ShapeFileDataSource(java.lang.String inName) throws java.lang.Exception
Method Detail |
public void setFileName(java.lang.String inName) throws java.lang.Exception
java.lang.Exception
public void commit() throws java.lang.Exception
commit
in interface DataSource
commit
in class SimpleDataSource
java.lang.Exception
public void doDelete(Record inRecord) throws java.lang.Exception
doDelete
in class SimpleDataSource
java.lang.Exception
public Envelope readEnvelope()
readEnvelope
in class SimpleDataSource
public java.lang.String getName()
getName
in interface DataSource
getName
in class SimpleDataSource
public void doInsert(Record inRecord) throws java.lang.Exception
doInsert
in class SimpleDataSource
java.lang.Exception
public void setName(java.lang.String newName)
setName
in interface DataSource
setName
in class SimpleDataSource
public void doUpdate(Record inRecord) throws java.lang.Exception
doUpdate
in class SimpleDataSource
java.lang.Exception
public void rollback() throws java.lang.Exception
rollback
in interface DataSource
rollback
in class SimpleDataSource
java.lang.Exception
public boolean isUpdateable()
isUpdateable
in interface DataSource
isUpdateable
in class SimpleDataSource
public void load(java.util.Properties inProperties)
public Node getNode()
getNode
in interface DataSource
getNode
in class SimpleDataSource
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface DataSource
setNode
in class SimpleDataSource
java.lang.Exception
protected GISDataset readShapes(Envelope inEnvelope) throws java.lang.Exception
readShapes
in class SimpleDataSource
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |