com.partnersoft.maps.database
Class RoverShapeTable<T extends RoverShape>

java.lang.Object
  extended by com.partnersoft.maps.database.RoverTable<T>
      extended by com.partnersoft.maps.database.RoverShapeTable<T>
Direct Known Subclasses:
RoverAreaShapeTable, RoverImageShapeTable, RoverLineShapeTable, RoverPointShapeTable, RoverTextShapeTable

public abstract class RoverShapeTable<T extends RoverShape>
extends RoverTable<T>


Field Summary
protected  DynamicByteArray shapeBuffer
           
 
Constructor Summary
RoverShapeTable(RoverDatabase database, java.lang.String name)
           
 
Method Summary
 RoverBytesSqlInput bytesForEntityId(int id)
           
 RoverBytesSqlInput bytesIn(XyBounds bounds, double scale)
           
 void create()
           
 void delete(T oldRecord)
           
 int insert(int dataId, T newRecord)
           
 java.util.List<byte[]> listBytes()
           
 java.util.List<byte[]> listBytesIn(XyBounds bounds, double scale)
           
 java.util.List<RoverShape> listShapes()
           
 java.util.List<RoverShape> listShapesForEntityId(int id)
           
 java.util.List<RoverShape> listShapesIn(XyBounds bounds, double scale)
           
 T recordWithId(int id)
           
 void removeByEntity(java.lang.String frontendName, java.lang.String fileName, java.lang.String entityName)
           
 void removeByFile(java.lang.String frontendName, java.lang.String fileName)
           
 void removeByFrontend(java.lang.String frontendName)
           
 void update(T updatedRecord)
           
 void updateMaximumScales(float[] maximumScales)
           
 
Methods inherited from class com.partnersoft.maps.database.RoverTable
clear, drop, getDatabase, getDeleter, getInserter, getLastGeneratedId, getTable, getUpdater
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shapeBuffer

protected DynamicByteArray shapeBuffer
Constructor Detail

RoverShapeTable

public RoverShapeTable(RoverDatabase database,
                       java.lang.String name)
                throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

listShapes

public java.util.List<RoverShape> listShapes()

listShapesIn

public java.util.List<RoverShape> listShapesIn(XyBounds bounds,
                                               double scale)

listShapesForEntityId

public java.util.List<RoverShape> listShapesForEntityId(int id)

listBytes

public java.util.List<byte[]> listBytes()

listBytesIn

public java.util.List<byte[]> listBytesIn(XyBounds bounds,
                                          double scale)

bytesIn

public RoverBytesSqlInput bytesIn(XyBounds bounds,
                                  double scale)

bytesForEntityId

public RoverBytesSqlInput bytesForEntityId(int id)

create

public void create()
            throws java.sql.SQLException
Specified by:
create in class RoverTable<T extends RoverShape>
Throws:
java.sql.SQLException

updateMaximumScales

public void updateMaximumScales(float[] maximumScales)
                         throws java.sql.SQLException
Throws:
java.sql.SQLException

delete

public void delete(T oldRecord)
            throws java.sql.SQLException
Specified by:
delete in class RoverTable<T extends RoverShape>
Throws:
java.sql.SQLException

insert

public int insert(int dataId,
                  T newRecord)
           throws java.sql.SQLException,
                  java.io.IOException
Specified by:
insert in class RoverTable<T extends RoverShape>
Throws:
java.sql.SQLException
java.io.IOException

recordWithId

public T recordWithId(int id)
                                  throws java.sql.SQLException
Specified by:
recordWithId in class RoverTable<T extends RoverShape>
Throws:
java.sql.SQLException

update

public void update(T updatedRecord)
            throws java.sql.SQLException,
                   java.io.IOException
Specified by:
update in class RoverTable<T extends RoverShape>
Throws:
java.sql.SQLException
java.io.IOException

removeByFrontend

public void removeByFrontend(java.lang.String frontendName)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

removeByFile

public void removeByFile(java.lang.String frontendName,
                         java.lang.String fileName)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

removeByEntity

public void removeByEntity(java.lang.String frontendName,
                           java.lang.String fileName,
                           java.lang.String entityName)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException