|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.SimpleDataSource
gistoolkit.datasources.memory.MemoryDataSource
This data source only exists in memory. It does not contain it's own persistent storage.
Field Summary |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
MemoryDataSource()
Creates new MemoryDataSource |
|
MemoryDataSource(java.lang.String inName)
Creates a new MemoryDataSource with the given name |
|
MemoryDataSource(java.lang.String inName,
GISDataset inDataset)
Creates new MemoryDataSource beginning with the given dataset |
Method Summary | |
void |
doCommit()
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 |
doRollback()
Rollback any changes to this datasource since the last commit. |
void |
doUpdate(Record inRecord)
Update the data source with the changed record. |
java.lang.String[] |
getAttributeNames()
Returns the list of attribute names for this data source. |
AttributeType[] |
getAttributeTypes()
Returns the list of attribute types for this data source. |
java.lang.String |
getName()
Returns the identifier string for the datasource. |
Node |
getNode()
Get the configuration information for this data source |
Style |
getStyle()
Get the style to use with this datasource. |
boolean |
isUpdateable()
Determines if this datasource is updateable. |
void |
load(java.util.Properties inProperties)
Initialize the data source from the properties. |
GISDataset |
readDataset()
Reads all the objects from the data source. |
Envelope |
readEnvelope()
Returns the bounding rectangle of all the shapes in the Data Source. |
protected GISDataset |
readShapes(Envelope inEnvelope)
Reads only the objects from the data source that intersect these envelope. |
void |
setAttributeNamesAndTypes(java.lang.String[] inAttributeNames,
AttributeType[] inAttributeTypes)
Method to set the attributes, names and types for this data source. |
void |
setName(java.lang.String inName)
Sets an identifier string for the datasource. |
void |
setNode(Node inNode)
Set the configuration information for this data source |
Methods inherited from class gistoolkit.datasources.SimpleDataSource |
addDataSourceListener, clearCache, commit, delete, filterDataset, fireCommit, fireDelete, fireInsert, fireRead, fireRollBack, fireUpdate, getCached, getCacheDataset, getCacheEnvelope, getEnvelope, getFilter, getFromProjection, getToProjection, getValidShapeTypes, insert, isCachedProjected, projectBackward, projectForward, queryFromCache, readDataset, removeDataSourceListener, rollback, 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 MemoryDataSource()
public MemoryDataSource(java.lang.String inName)
public MemoryDataSource(java.lang.String inName, GISDataset inDataset)
Method Detail |
public void setName(java.lang.String inName)
setName
in interface DataSource
setName
in class SimpleDataSource
public java.lang.String getName()
getName
in interface DataSource
getName
in class SimpleDataSource
public java.lang.String[] getAttributeNames()
public AttributeType[] getAttributeTypes()
public void setAttributeNamesAndTypes(java.lang.String[] inAttributeNames, AttributeType[] inAttributeTypes)
public void doInsert(Record inRecord) throws java.lang.Exception
doInsert
in class SimpleDataSource
java.lang.Exception
public void doCommit() throws java.lang.Exception
doCommit
in class SimpleDataSource
java.lang.Exception
public void load(java.util.Properties inProperties)
public Envelope readEnvelope() throws java.lang.Exception
readEnvelope
in class SimpleDataSource
java.lang.Exception
public boolean isUpdateable()
isUpdateable
in interface DataSource
isUpdateable
in class SimpleDataSource
public void doDelete(Record inRecord) throws java.lang.Exception
doDelete
in class SimpleDataSource
java.lang.Exception
public void doUpdate(Record inRecord) throws java.lang.Exception
doUpdate
in class SimpleDataSource
java.lang.Exception
public void doRollback() throws java.lang.Exception
doRollback
in class SimpleDataSource
java.lang.Exception
public GISDataset readDataset() throws java.lang.Exception
readDataset
in interface DataSource
readDataset
in class SimpleDataSource
java.lang.Exception
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
public Style getStyle()
getStyle
in interface DataSource
getStyle
in class SimpleDataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |