|
||||||||||
| 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 SpatialDataSourcerowId - index of the row to be deleted
DriverException - if the row could not be deleted
public void insertFilledRowAt(long index,
Value[] values)
throws DriverException,
java.lang.UnsupportedOperationException
SpatialDataSource
insertFilledRowAt in interface SpatialDataSourceindex - 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 index
public void insertEmptyRowAt(long index)
throws DriverException,
java.lang.UnsupportedOperationException
SpatialDataSource
insertEmptyRowAt in interface SpatialDataSourceindex - 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 index
public void insertFilledRow(Value[] values)
throws DriverException
DataSource
insertFilledRow in interface DataSourcevalues - Values of the inserted row fields in the field order
DriverException - if the row could not be inserted
public void insertEmptyRow()
throws DriverException
DataSource
insertEmptyRow in interface DataSourceDriverException - if the row could not be inserted
public java.awt.geom.Rectangle2D getFullExtent()
throws DriverException
SpatialDataSource
getFullExtent in interface SpatialDataSourceDriverException - if the operation fails
public int getGeometryType()
throws DriverException
SpatialDataSource
getGeometryType in interface SpatialDataSourceDriverException
public void buildIndex()
throws DriverException
SpatialDataSource
buildIndex in interface SpatialDataSourceDriverException - If the build fails
public void clearIndex()
throws DriverException
SpatialDataSource
clearIndex in interface SpatialDataSourceDriverExceptionpublic java.util.List queryIndex(java.awt.geom.Rectangle2D area)
SpatialDataSource
queryIndex in interface SpatialDataSourcepublic boolean isIndexed()
isIndexed in interface SpatialDataSource
public int getSpatialFieldIndex()
throws DriverException
SpatialDataSource
getSpatialFieldIndex in interface SpatialDataSourceDriverException
public java.awt.geom.Rectangle2D getGeometryBounds(long rowIndex)
throws DriverException
SpatialDataSource
getGeometryBounds in interface SpatialDataSourceDriverException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||