|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hardcode.gdbms.engine.data.command.AbstractUndoableDataSource
com.hardcode.gdbms.engine.data.command.UndoableSpatialDataSource
public class UndoableSpatialDataSource
Field Summary |
---|
Fields inherited from class com.hardcode.gdbms.engine.data.command.AbstractUndoableDataSource |
---|
cs, dataSource |
Fields inherited from interface com.hardcode.gdbms.engine.data.SpatialDataSource |
---|
ANY, LINE, MULTILINE, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON |
Fields inherited from interface com.hardcode.gdbms.engine.data.DataSource |
---|
COHERENT_ROW_ORDER, DIRECT_MODE, DISPATCH, IGNORE, STORE |
Constructor Summary | |
---|---|
UndoableSpatialDataSource(DataSource ds)
|
Method Summary | |
---|---|
void |
buildIndex()
Builds a spatial index. |
void |
clearIndex()
Clears the spatial index. |
void |
deleteRow(long rowId)
Deletes the ith row of the DataSource if there is no spatial index. |
java.awt.geom.Rectangle2D |
getFullExtent()
Gets the full extent of the data accessed |
java.awt.geom.Rectangle2D |
getGeometryBounds(long rowIndex)
Gets the bounds of the geometry at the specified index. |
int |
getGeometryType()
Gets the geometry type of the data source. |
int |
getSpatialFieldIndex()
Returns the index of the field containing spatial data |
void |
insertEmptyRow()
Inserts a row at the end of the dataware |
void |
insertEmptyRowAt(long index)
Inserts an empty row at the end of the dataware. |
void |
insertFilledRow(Value[] values)
Inserts a row at the end of the dataware with the specified values |
void |
insertFilledRowAt(long index,
Value[] values)
Inserts a row at the specified index with the specified values. |
boolean |
isIndexed()
|
java.util.List |
queryIndex(java.awt.geom.Rectangle2D area)
Queries the index and gets a List of Integer's with the indexes of those rows of the DataSource near the argument |
Methods inherited from class com.hardcode.gdbms.engine.data.command.AbstractUndoableDataSource |
---|
addEditionListener, addField, addField, addMetadataEditionListener, addSelectionListener, beginTrans, canRedo, canUndo, check, commitTrans, getAlias, getAsString, getDataSourceFactory, getDataSourceMetadata, getDispatchingMode, getDriver, getDriverMetadata, getEmptyRow, getFieldIndexByName, getFieldNames, getFieldValue, getMemento, getName, getRow, getRowCount, getSelectedRows, getWhereFilter, isModified, redo, remove, removeEditionListener, removeField, removeMetadataEditionListener, removeSelectionListener, rollBackTrans, saveData, setDataSourceFactory, setDispatchingMode, setFieldName, setFieldValue, setSelectedRows, start, stop, undo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hardcode.gdbms.engine.data.DataSource |
---|
addEditionListener, addField, addField, addMetadataEditionListener, addSelectionListener, beginTrans, canRedo, canUndo, check, commitTrans, getAlias, getAsString, getDataSourceFactory, getDataSourceMetadata, getDispatchingMode, getDriver, getDriverMetadata, getFieldIndexByName, getFieldNames, getMemento, getName, getRow, getSelectedRows, getWhereFilter, isModified, redo, remove, removeEditionListener, removeField, removeMetadataEditionListener, removeSelectionListener, rollBackTrans, saveData, setDataSourceFactory, setDispatchingMode, setFieldName, setFieldValue, setSelectedRows, start, stop, undo |
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.ReadAccess |
---|
getFieldValue, getRowCount |
Constructor Detail |
---|
public UndoableSpatialDataSource(DataSource ds)
Method Detail |
---|
public void deleteRow(long rowId) throws DriverException
SpatialDataSource
deleteRow
in interface SpatialDataSource
rowId
- index of the row to be deleted
DriverException
- if the row could not be deletedpublic void insertFilledRowAt(long index, Value[] values) throws DriverException, java.lang.UnsupportedOperationException
SpatialDataSource
insertFilledRowAt
in interface SpatialDataSource
index
- index where the row will be inserted. No data is lost.values
- Values of the inserted row fields in the field order
DriverException
- if the row could not be inserted
java.lang.UnsupportedOperationException
- If there is a spatial indexpublic void insertEmptyRowAt(long index) throws DriverException, java.lang.UnsupportedOperationException
SpatialDataSource
insertEmptyRowAt
in interface SpatialDataSource
index
- index where the row will be inserted. No data is lost.
DriverException
- if the row could not be inserted
java.lang.UnsupportedOperationException
- if there is a spatial indexpublic void insertFilledRow(Value[] values) throws DriverException
DataSource
insertFilledRow
in interface DataSource
values
- Values of the inserted row fields in the field order
DriverException
- if the row could not be insertedpublic void insertEmptyRow() throws DriverException
DataSource
insertEmptyRow
in interface DataSource
DriverException
- if the row could not be insertedpublic java.awt.geom.Rectangle2D getFullExtent() throws DriverException
SpatialDataSource
getFullExtent
in interface SpatialDataSource
DriverException
- if the operation failspublic int getGeometryType() throws DriverException
SpatialDataSource
getGeometryType
in interface SpatialDataSource
DriverException
public void buildIndex() throws DriverException
SpatialDataSource
buildIndex
in interface SpatialDataSource
DriverException
- If the build failspublic void clearIndex() throws DriverException
SpatialDataSource
clearIndex
in interface SpatialDataSource
DriverException
public java.util.List queryIndex(java.awt.geom.Rectangle2D area)
SpatialDataSource
queryIndex
in interface SpatialDataSource
public boolean isIndexed()
isIndexed
in interface SpatialDataSource
public int getSpatialFieldIndex() throws DriverException
SpatialDataSource
getSpatialFieldIndex
in interface SpatialDataSource
DriverException
public java.awt.geom.Rectangle2D getGeometryBounds(long rowIndex) throws DriverException
SpatialDataSource
getGeometryBounds
in interface SpatialDataSource
DriverException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |