|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.layers.VectorialAdapter com.iver.cit.gvsig.fmap.layers.VectorialDBAdapter
Adapta un driver de base de datos vectorial a la interfaz vectorial, manteniendo además el estado necesario por una capa vectorial de base de datos (parámetros de la conexión)
Constructor Summary | |
VectorialDBAdapter()
|
Method Summary | |
void |
changeRecordsetName(java.lang.String newName)
Método abstracto que se ejecutará cuando se cambie el nombre del DataSource. |
java.awt.geom.Rectangle2D |
getFullExtent()
Devuelve la extensión total de la capa. |
int[] |
getRecordIndexes(java.awt.geom.Rectangle2D rect)
Dado un rectángulo en coordenadas del mapa se devuelve un array de indices de los registros cuyas features estén contenidas o intersecten en dicho rectángulo. |
DataSource |
getRecordset(java.lang.String name)
Devuelve el DataSource a pasrtir del nombre. |
IGeometry |
getShape(int index)
Devuelve la geometría a partir de un índice. |
int |
getShapeCount()
Devuelve el número de Shape. |
int |
getShapeType()
Obtiene el tipo de las geometrías almacenadas en esta fuente de datos |
void |
setDriver(VectorialDatabaseDriver driver)
Inserta el VectorialDatabaseDriver. |
void |
start()
incrementa el contador de las veces que se ha abierto el fichero. |
void |
stop()
decrementa el contador de número de aperturas y cuando llega a cero pide al driver que cierre la conexion con el servidor de base de datos |
Methods inherited from class com.iver.cit.gvsig.fmap.layers.VectorialAdapter |
closeIndexFile, createIndex, getDriver, getDriverAttributes, getImageIcon, getIndexFile, getShapeInfo, hasIndex, openIndexFile, setDriver, setShapeInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VectorialDBAdapter()
Method Detail |
public void start()
public void stop()
public void setDriver(VectorialDatabaseDriver driver)
driver
- public IGeometry getShape(int index) throws DriverIOException
ReadableVectorial
index
- índice.
DriverIOException
ReadableVectorial.getShape(int)
public int getShapeCount() throws DriverIOException
ReadableVectorial
DriverIOException
ReadableVectorial.getShapeCount()
public java.awt.geom.Rectangle2D getFullExtent() throws DriverIOException
ReadableVectorial
DriverIOException
ReadableVectorial.getFullExtent()
public int[] getRecordIndexes(java.awt.geom.Rectangle2D rect) throws DriverIOException, IndexNotExistsException
Index
rect
- Rectángulo.
IndexNotExistsException
DriverIOException
Index.getRecordIndexes(java.awt.geom.Rectangle2D)
public int getShapeType() throws DriverIOException
ReadableVectorial
DriverIOException
ReadableVectorial.getShapeType()
public DataSource getRecordset(java.lang.String name)
VectorialAdapter
getRecordset
in class VectorialAdapter
name
- Nombre.
com.iver.cit.gvsig.fmap.layers.VectorialAdapter#getRecordset()
public void changeRecordsetName(java.lang.String newName) throws DriverException
VectorialAdapter
changeRecordsetName
in class VectorialAdapter
newName
- Nuevo nombre.
DriverException
VectorialAdapter.changeRecordsetName(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |