org.free.garminimg.export
Class Saver

java.lang.Object
  extended by org.free.garminimg.export.Saver
Direct Known Subclasses:
PointSaver, PolygonSaver, PolylineSaver

public abstract class Saver
extends java.lang.Object


Field Summary
protected  MapExporter mapExporter
           
protected  java.sql.PreparedStatement stmt
           
 
Constructor Summary
Saver(MapExporter mapExporter)
           
 
Method Summary
protected  void checkBatch()
           
 void finish()
           
protected abstract  java.lang.String getQuery()
           
 void init(java.sql.Connection conn)
           
protected  void setString(int pos, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapExporter

protected MapExporter mapExporter

stmt

protected java.sql.PreparedStatement stmt
Constructor Detail

Saver

public Saver(MapExporter mapExporter)
Method Detail

init

public void init(java.sql.Connection conn)
          throws java.sql.SQLException
Throws:
java.sql.SQLException

checkBatch

protected void checkBatch()
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

finish

public void finish()
            throws java.sql.SQLException
Throws:
java.sql.SQLException

setString

protected void setString(int pos,
                         java.lang.String value)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getQuery

protected abstract java.lang.String getQuery()


Copyright © 2008. All Rights Reserved.